@wavv/ui 1.9.15 → 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/components/Audio.d.ts +2 -2
- package/build/cjs/types/components/Button/Button.d.ts +3 -3
- package/build/cjs/types/components/Button/ButtonLoader.d.ts +1 -1
- package/build/cjs/types/components/Button/ButtonTypes.d.ts +2 -2
- package/build/cjs/types/components/ChartHelpers.d.ts +2 -2
- package/build/cjs/types/components/Checkbox.d.ts +2 -2
- package/build/cjs/types/components/Dropdown/Dropdown.d.ts +2 -2
- package/build/cjs/types/components/Dropdown/DropdownUtils.d.ts +3 -3
- package/build/cjs/types/components/DropdownMenu.d.ts +11 -22
- package/build/cjs/types/components/Form.d.ts +15 -22
- package/build/cjs/types/components/Icon/Icon.d.ts +2 -2
- package/build/cjs/types/components/Input.d.ts +4 -4
- package/build/cjs/types/components/MessageHr.d.ts +2 -2
- package/build/cjs/types/components/OptionHelpers/Container.d.ts +12 -0
- package/build/cjs/types/components/OptionHelpers/Item.d.ts +22 -0
- package/build/cjs/types/components/OptionHelpers/types.d.ts +21 -0
- package/build/cjs/types/components/Options.d.ts +4 -20
- package/build/cjs/types/components/Radio.d.ts +2 -2
- package/build/cjs/types/components/Table/Body.d.ts +2 -2
- package/build/cjs/types/components/Table/Content.d.ts +6 -19
- package/build/cjs/types/components/Table/Table.d.ts +5 -3
- package/build/cjs/types/components/Table/types.d.ts +2 -2
- package/build/cjs/types/components/Toggle.d.ts +2 -2
- package/build/cjs/types/components/Tooltip.d.ts +2 -2
- package/build/cjs/types/components/types.d.ts +8 -3
- package/build/cjs/types/index.d.ts +1 -1
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/components/Audio.d.ts +2 -2
- package/build/esm/types/components/Button/Button.d.ts +3 -3
- package/build/esm/types/components/Button/ButtonLoader.d.ts +1 -1
- package/build/esm/types/components/Button/ButtonTypes.d.ts +2 -2
- package/build/esm/types/components/ChartHelpers.d.ts +2 -2
- package/build/esm/types/components/Checkbox.d.ts +2 -2
- package/build/esm/types/components/Dropdown/Dropdown.d.ts +2 -2
- package/build/esm/types/components/Dropdown/DropdownUtils.d.ts +3 -3
- package/build/esm/types/components/DropdownMenu.d.ts +11 -22
- package/build/esm/types/components/Form.d.ts +15 -22
- package/build/esm/types/components/Icon/Icon.d.ts +2 -2
- package/build/esm/types/components/Input.d.ts +4 -4
- package/build/esm/types/components/MessageHr.d.ts +2 -2
- package/build/esm/types/components/OptionHelpers/Container.d.ts +12 -0
- package/build/esm/types/components/OptionHelpers/Item.d.ts +22 -0
- package/build/esm/types/components/OptionHelpers/types.d.ts +21 -0
- package/build/esm/types/components/Options.d.ts +4 -20
- package/build/esm/types/components/Radio.d.ts +2 -2
- package/build/esm/types/components/Table/Body.d.ts +2 -2
- package/build/esm/types/components/Table/Content.d.ts +6 -19
- package/build/esm/types/components/Table/Table.d.ts +5 -3
- package/build/esm/types/components/Table/types.d.ts +2 -2
- package/build/esm/types/components/Toggle.d.ts +2 -2
- package/build/esm/types/components/Tooltip.d.ts +2 -2
- package/build/esm/types/components/types.d.ts +8 -3
- package/build/esm/types/index.d.ts +1 -1
- package/build/index.d.ts +135 -137
- package/build/types/components/Audio.d.ts +2 -2
- package/build/types/components/Button/Button.d.ts +3 -3
- package/build/types/components/Button/ButtonLoader.d.ts +1 -1
- package/build/types/components/Button/ButtonTypes.d.ts +2 -2
- package/build/types/components/ChartHelpers.d.ts +2 -2
- package/build/types/components/Checkbox.d.ts +2 -2
- package/build/types/components/Dropdown/Dropdown.d.ts +2 -2
- package/build/types/components/Dropdown/DropdownUtils.d.ts +3 -3
- package/build/types/components/DropdownMenu.d.ts +11 -22
- package/build/types/components/Form.d.ts +15 -22
- package/build/types/components/Icon/Icon.d.ts +2 -2
- package/build/types/components/Input.d.ts +4 -4
- package/build/types/components/MessageHr.d.ts +2 -2
- package/build/types/components/OptionHelpers/Container.d.ts +12 -0
- package/build/types/components/OptionHelpers/Item.d.ts +22 -0
- package/build/types/components/OptionHelpers/types.d.ts +21 -0
- package/build/types/components/Options.d.ts +4 -20
- package/build/types/components/Radio.d.ts +2 -2
- package/build/types/components/Table/Body.d.ts +2 -2
- package/build/types/components/Table/Content.d.ts +6 -19
- package/build/types/components/Table/Table.d.ts +5 -3
- package/build/types/components/Table/types.d.ts +2 -2
- package/build/types/components/Toggle.d.ts +2 -2
- package/build/types/components/Tooltip.d.ts +2 -2
- package/build/types/components/types.d.ts +8 -3
- package/build/types/index.d.ts +1 -1
- package/package.json +17 -14
package/build/cjs/index.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/"production"===process.env.NODE_ENV?Ns.exports=function(){if(Rs)return Bs;Rs=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case l:case p:case d:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Bs.ContextConsumer=s,Bs.ContextProvider=a,Bs.Element=t,Bs.ForwardRef=l,Bs.Fragment=r,Bs.Lazy=p,Bs.Memo=d,Bs.Portal=n,Bs.Profiler=i,Bs.StrictMode=o,Bs.Suspense=u,Bs.SuspenseList=f,Bs.isAsyncMode=function(){return!1},Bs.isConcurrentMode=function(){return!1},Bs.isContextConsumer=function(e){return g(e)===s},Bs.isContextProvider=function(e){return g(e)===a},Bs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Bs.isForwardRef=function(e){return g(e)===l},Bs.isFragment=function(e){return g(e)===r},Bs.isLazy=function(e){return g(e)===p},Bs.isMemo=function(e){return g(e)===d},Bs.isPortal=function(e){return g(e)===n},Bs.isProfiler=function(e){return g(e)===i},Bs.isStrictMode=function(e){return g(e)===o},Bs.isSuspense=function(e){return g(e)===u},Bs.isSuspenseList=function(e){return g(e)===f},Bs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Bs.typeOf=g,Bs}():Ns.exports=(Fs||(Fs=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var g=e.type;switch(g){case r:case i:case o:case u:case f:return g;default:var v=g&&g.$$typeof;switch(v){case c:case s:case l:case p:case d:case a:return v;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var v=s,y=a,m=t,b=l,w=r,x=p,C=d,S=n,_=i,O=o,k=u,E=f,j=!1,A=!1;zs.ContextConsumer=v,zs.ContextProvider=y,zs.Element=m,zs.ForwardRef=b,zs.Fragment=w,zs.Lazy=x,zs.Memo=C,zs.Portal=S,zs.Profiler=_,zs.StrictMode=O,zs.Suspense=k,zs.SuspenseList=E,zs.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},zs.isConcurrentMode=function(e){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},zs.isContextConsumer=function(e){return g(e)===s},zs.isContextProvider=function(e){return g(e)===a},zs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},zs.isForwardRef=function(e){return g(e)===l},zs.isFragment=function(e){return g(e)===r},zs.isLazy=function(e){return g(e)===p},zs.isMemo=function(e){return g(e)===d},zs.isPortal=function(e){return g(e)===n},zs.isProfiler=function(e){return g(e)===i},zs.isStrictMode=function(e){return g(e)===o},zs.isSuspense=function(e){return g(e)===u},zs.isSuspenseList=function(e){return g(e)===f},zs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},zs.typeOf=g}()),zs);var Hs=Ns.exports;function Vs(e,n=0,r=[]){return t.Children.toArray(e).reduce(((e,o,i)=>(Hs.isFragment(o)?e.push.apply(e,Vs(o.props.children,n+1,r.concat(o.key||i))):t.isValidElement(o)?e.push(t.cloneElement(o,{key:r.concat(String(o.key)).join(".")})):"string"!=typeof o&&"number"!=typeof o||e.push(o),e)),[])}const Ks=({id:n,children:o,containerRef:i,parentSelector:a,width:s,maxHeight:c=200,offsetY:l,offsetX:u,centerY:f,centerX:d,direction:p})=>{const[h,g]=t.useState(),v=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||v;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<c?n:c)+((r?u:l)||4))}}),[i,p]);const y=e.jsx($s,{id:n,ref:i||v,offsetX:u,offsetY:l,width:s,maxHeight:c,centerY:f,centerX:d,optionsPosition:{direction:p,amount:h},children:o});if(a){const e=document.querySelector(a);return e?r.createPortal(y,e):y}return y};Ks.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:s,color:l,accented:u}=t,f=c(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented"]);return e.jsx(Us,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,noSelect:a,contentPosition:s,color:l,accented:u,tabIndex:a?-1:0},f,{children:n}))};const $s=W.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}:{}})),Us=W.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}))),Ws=(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},Zs=n=>e.jsxs(t.Fragment,{children:[n.leftElement||null,n.header&&n.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Gs,{children:n.header}),e.jsx(Ys,{children:n.body})]}):n.label,n.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),qs=(n,r,o,i,a)=>{const{selected:s}=a,l=((t,n,r,o)=>{if(t&&t.length>0)return Ws(t,o).map((t=>{const o=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(Ks.Item,{id:t.id,onClick:o,children:Zs(t)},t.id)}));return[]})(n,o,i,c(a,["selected"])),u=((e,n,r)=>e?Vs(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return Vs([...l,...u]).map(((e,n)=>e?t.cloneElement(e,{selected:s===n}):null))},Gs=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Ys=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Xs=e=>{let t="top",n="center";if(!e)return{side:t,align:n};const[r,o]=e.split(" ");return"left"===r&&(t="left"),"right"===r&&(t="right"),"bottom"===r&&(t="bottom"),"left"!==o&&"top"!==o||(n="start"),"right"!==o&&"bottom"!==o||(n="end"),{side:t,align:n}},Js=(e,t)=>!t.includes(e),Qs=t=>{var{children:n,options:r,id:o,position:i="bottom",trigger:a,open:s,offset:l=4,arrow:u,width:f,maxHeight:d=200,container:p,zIndex:h,disableScrollLock:g,onChange:v,afterShow:y,afterHide:m}=t,b=c(t,["children","options","id","position","trigger","open","offset","arrow","width","maxHeight","container","zIndex","disableScrollLock","onChange","afterShow","afterHide"]);return e.jsxs(ks,{onOpenChange:e=>{y&&e&&y(),m&&!e&&m()},open:s,modal:!g,children:[e.jsx(Es,{asChild:!0,children:e.jsx(uc,Object.assign({},b,{children:a}))}),e.jsx(js,{container:p,children:e.jsxs(rc,{id:o,maxHeight:d,width:f,zIndex:h,side:Xs(i).side,align:Xs(i).align,sideOffset:l,children:[r&&(null==r?void 0:r.length)>0&&r.map((t=>e.jsx(ec,Object.assign({},t,{onClick:t.onClick||(e=>{((e,t)=>{v&&v(e,t)})(t,e)}),children:Zs(t)}),t.id))),n,u&&e.jsx(Ps,{className:"menu-arrow"})]})})]})},ec=t=>{var{children:n,id:r,disabled:o,onClick:i}=t,a=c(t,["children","id","disabled","onClick"]);return e.jsx(sc,Object.assign({id:null==r?void 0:r.toString(),disabled:o,onSelect:i},a,{children:n}))};Qs.Item=ec,Qs.Sub=t=>{var{children:n,id:r,label:o,zIndex:i,disabled:a,container:s}=t,l=c(t,["children","id","label","zIndex","disabled","container"]);return e.jsxs(Ds,{children:[e.jsxs(cc,{disabled:a,children:[o,e.jsx(fc,{children:e.jsx(dc,{children:e.jsx(fn,{name:"chevron-right",size:"small",inheritColor:a})})})]}),e.jsx(js,{container:s,children:e.jsx(oc,Object.assign({sideOffset:2,alignOffset:-5,zIndex:i,id:r},l,{children:n}))})]})},Qs.Separator=()=>e.jsx(lc,{});const tc=({theme:e,width:t,maxHeight:n,zIndex:r})=>({fontFamily:null==e?void 0:e.font.family.default,fontSize:null==e?void 0:e.font.size.md,width:t||"max-content",maxHeight:n,backgroundColor:null==e?void 0:e.options.background,borderRadius:4,boxShadow:null==e?void 0:e.elevation3,zIndex:r,boxSizing:"border-box",overflowY:"auto"}),nc={shouldForwardProp:e=>Js(e,["maxHeight","zIndex"])},rc=W(As,nc)(tc,(({theme:{options:e}})=>({"& > span > .menu-arrow":{fill:e.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}))),oc=W(Is,nc)(tc),ic=({theme:e,color:t,accented:n,disabled:r,contentPosition:o})=>{const i="start"===o||"end"===o?`flex-${o}`:o,a=n?null==e?void 0:e.optionItem.color.accent:null==e?void 0:e.optionItem.color.inactive;return{border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative",justifyContent:i,color:t||a,cursor:r?"inherit":"pointer",backgroundColor:null==e?void 0:e.optionItem.background.inactive,"&[data-highlighted]":{backgroundColor:null==e?void 0:e.optionItem.background.active},"&[data-disabled]":{color:null==e?void 0:e.scale4},"&:focus":{outline:"none",backgroundColor:null==e?void 0:e.optionItem.background.active}}},ac={shouldForwardProp:e=>Js(e,["selected","noSelect","contentPosition","color","accented"])},sc=W(Ts,ac)(ic),cc=W(Ls,ac)(ic),lc=W(Ms)((({theme:e})=>({height:1,backgroundColor:e.scale2,margin:"4px 8px"}))),uc=W.div({display:"inline-flex"}),fc=W.div({marginLeft:"auto",width:16,height:16}),dc=W.div({position:"absolute",right:8}),pc=t=>{var{size:n,color:r,center:o,background:i,zIndex:a,margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d,position:p,top:h,bottom:g,right:v,left:y}=t,m=c(t,["size","color","center","background","zIndex","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const b={margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d,position:p,top:h,bottom:g,right:v,left:y};return e.jsx(hc,Object.assign({},b,{center:o,background:i,zIndex:a,children:e.jsx(vc,{children:e.jsx(fn,Object.assign({},m,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},hc=W.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"}}),cn,ln),gc=n.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),vc=W.div({animation:`${gc} 1s linear infinite`,width:"max-content",height:"max-content"}),yc=({size:t})=>e.jsx(mc,{className:"button-loader",children:e.jsx(pc,{size:t})}),mc=W.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),bc=n=>{var{children:r,disabled:o,outline:i,size:a,small:s,large:l,secondary:u,negative:f,positive:d,caution:p,collapse:h}=n,g=c(n,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(r){const n=t.Children.count(r);return e.jsx(wc,Object.assign({},g,{children:t.Children.map(r,((e,r)=>{let c;if(n>1&&(c=0===r?"right":r===n-1?"left":"middle"),e){let n=e;"trigger"in e.props&&(n=e.props.trigger);const r=n,g=s||r.props.small,v=l||r.props.large,y=a||r.props.size,m=o||r.props.disabled,b=i||r.props.outline,w=u||r.props.secondary,x=f||r.props.negative,C=d||r.props.positive,S=p||r.props.caution,_=h||r.props.collapse,O=t.cloneElement(n,{joined:c,size:y,small:g,large:v,disabled:m,outline:b,secondary:w,negative:x,positive:C,caution:S,collapse:_});return"trigger"in e.props?t.cloneElement(e,{trigger:O}):O}return null}))}))}return null},wc=W.div((({width:e})=>({display:"inline-flex",width:e})),cn),xc=t=>{const{content:n,children:r,dropdown:o,options:i}=t,a=c(t,["content","children","dropdown","options"]),s=n||r;return o&&i?e.jsx(Sc,Object.assign({options:i},a,{children:s})):e.jsx(Cc,Object.assign({},a,{children:s}))};xc.Group=bc;const Cc=t=>{var{children:r,onClick:o,icon:i,iconPosition:a,iconColor:s,joined:l,size:u,small:f,large:d,isLoading:p,collapse:h,backgroundColor:g,color:v,type:y,animation:m,iconAnimation:b}=t,w=c(t,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation","iconAnimation"]);const{button:x}=n.useTheme(),C=i&&(!r||h),S="right"===a;let _=u||"medium";f?_="small":d&&(_="large");const O=x[_],{iconSize:k}=O,E=h&&i;return e.jsxs(_c,Object.assign({},w,{type:y||"button",size:_,iconOnly:C,iconRight:S,joined:l,onClick:o,isLoading:p,color:v,backgroundColor:g,animation:m,children:[i?e.jsx(fn,{size:k,name:i,marginRight:C||S?0:4,marginLeft:!C&&S?4:0,color:s,inheritColor:!s,animation:b}):null,!E&&e.jsx("span",{children:r}),p&&e.jsx(yc,{size:k})]}))},Sc=n=>{var{children:r,options:o,onClick:i,afterShow:a,afterHide:s,secondary:l,negative:u,positive:f,caution:d,outline:p,subtle:h,link:g,size:v,small:y,large:m,disabled:b,buttonDisabled:w,optionsDisabled:x,isLoading:C,direction:S,collapse:_,width:O,zIndex:k,disableScrollLock:E,hideDivider:j,gap:A}=n,T=c(n,["children","options","onClick","afterShow","afterHide","secondary","negative","positive","caution","outline","subtle","link","size","small","large","disabled","buttonDisabled","optionsDisabled","isLoading","direction","collapse","width","zIndex","disableScrollLock","hideDivider","gap"]);const[M,P]=t.useState(!1),D={secondary:l,negative:u,positive:f,caution:d,outline:p,subtle:h,link:g,size:v,small:y,large:m};return e.jsx(Oc,{children:e.jsxs(bc,{width:_?void 0:O,children:[e.jsx(Cc,Object.assign({},D,T,{disabled:b||w,width:O&&!_?"100%":void 0,collapse:_,isLoading:C,onClick:e=>{i&&i(e)},hideJoinedBorder:j,joinedPadding:A,children:r&&e.jsx(kc,{children:r})})),e.jsx(Qs,{position:`${S||"bottom"} right`,afterShow:()=>{a&&a(),P(!0)},afterHide:()=>{s&&s(),P(!1)},options:o,trigger:e.jsx(Cc,Object.assign({},D,{icon:M?"caret-up":"caret-down",preventPointerEvents:C,tabIndex:-1,joinedPadding:A,disabled:b||x})),zIndex:k,disableScrollLock:E})]})})},_c=W.button((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:s,width:c,height:l,animation:u})=>{const f=i||a&&!o,d=n[r],p=c||"max-content",{height:h,font:g,padding:v,iconOnlyPadding:y}=d,m=l||h,b=a||f?y:v;return{display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:s?"row-reverse":"row",fontSize:g,width:f?m:p,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:u,"&:focus-visible":{outline:`${e} solid 1px`}}}),(({theme:e,joined:t,hideJoinedBorder:n,joinedPadding:r,iconOnly:o,outline:i,negative:a,positive:s,caution:c,secondary:l,disabled:u,subtle:f,link:d})=>{const{button:p,size:h}=e;let g=p.primary;f?g=p.subtle:d?g=p.link:u?g=p.disabled:a?g=p.negative:s?g=p.positive:c?g=p.caution:l&&(g=p.secondary);const v=i?g.outlineBackground:g.background;let y=i?g.outlineColor:g.color;if(d||f){let e=p.subtle;d&&(e=p.link),u?y=p.disabled.color:a?y=e.negativeColor:s?y=e.positiveColor:c?y=e.cautionColor:l&&(y=e.secondaryColor)}const m="left"===t||"middle"===t,b="right"===t||"middle"===t,w=o?h.xs:h.sm,x=r||w;return{backgroundColor:v.default,color:y.default,border:i&&!d?"1px solid":"none",borderColor:g.border.default,"&:hover":{backgroundColor:v.hover,color:y.hover,borderColor:i&&!u?g.border.hover:void 0},"&:active":{backgroundColor:v.active,color:y.active,borderColor:i&&!u?g.border.active:void 0},"&:disabled":{backgroundColor:f?"transparent":void 0,cursor:"not-allowed"},borderTopLeftRadius:m?0:void 0,borderBottomLeftRadius:m?0:void 0,borderTopRightRadius:b?0:void 0,borderBottomRightRadius:b?0:void 0,paddingLeft:m?x:void 0,paddingRight:b?x:void 0,borderRight:b&&!n?`1px solid ${i?g.border.default:g.divider}`:void 0,borderLeft:m&&!n?"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?ir:sr,i="dark"===e?sr:ir;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}}}),cn),Oc=W.div({display:"inline-flex",flexDirection:"column",position:"relative"}),kc=W.div({marginRight:8}),Ec=t=>{var{value:n,max:r=100,step:o=1,width:i,height:a,disabled:s,onChange:l}=t,u=c(t,["value","max","step","width","height","disabled","onChange"]);return e.jsx(Ac,Object.assign({},u,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;l&&l(+t)},step:o,width:i,height:a,disabled:s,readOnly:!l}))},jc=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),Ac=W.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":jc(e,o||i),"&::-moz-range-thumb":jc(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),cn),Tc=t.forwardRef(((n,r)=>{var{src:o,title:i,width:a,infoPosition:s,centerAlignContent:l,small:u,collapsed:f,hideSliderOnStop:d,hideTimeOnStop:p,fontSizeTitle:h,fontSizeTime:g,onPlay:v,onPause:y,onStop:m}=n,b=c(n,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[w,x]=t.useState(!1),[C,S]=t.useState(!0),[_,O]=t.useState(0),[k,E]=t.useState(0),[j,A]=t.useState(""),[T,M]=t.useState(""),P=t.useRef(null),D=()=>{const{current:e}=P;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},L=()=>{const{current:e}=P;e&&e.pause()},I=()=>{const{current:e}=P;e&&e.load()};t.useImperativeHandle(r,(()=>({play:D,pause:L,stop:I})),[P,w]);const R=e=>{x(!1),S(!0),m&&m(e)};t.useEffect((()=>{(()=>{const{current:e}=P;!!e&&e.paused})()}),[w]);const N=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},B=C&&d,F=C&&p;return e.jsxs(Mc,Object.assign({width:a},b,{children:[e.jsx(xc,{outline:!0,small:u,icon:w?"pause":"play",onClick:()=>{w?L():D()},marginRight:8}),!f&&e.jsxs(Pc,{alignDataTop:"top"===s,children:[!B&&e.jsx(Ec,{value:_,max:k,step:.1,onChange:e=>{(null==P?void 0:P.current)&&(P.current.currentTime=e)}}),e.jsxs(Dc,{alignTop:"top"===s,noSlider:B,relative:l||B,children:[i?e.jsx(Lc,{fontSize:h,children:i}):e.jsx("div",{}),!F&&e.jsxs(Lc,{secondary:!0,fontSize:g,children:[j&&!C?`${j} / `:"",T]})]})]}),e.jsxs("audio",{ref:P,onPlay:e=>{x(!0),S(!1),v&&v(e)},onPause:e=>{x(!1),y&&y(e)},onEmptied:R,onEnded:R,onTimeUpdate:()=>{const{current:e}=P;if(e){const{currentTime:t}=e,n=N(t);O(t),A(n)}},onDurationChange:()=>{const{current:e}=P;if(e){const{duration:t}=e,n=N(t);E(t),M(n)}},children:[e.jsx("track",{kind:"captions"}),e.jsx("source",{src:o})]})]}))})),Mc=W.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),cn),Pc=W.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),Dc=W.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%"}))),Lc=W.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var Ic={},Rc={};Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.defaultOptions=void 0,Rc.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.getLocales=Nc.getFractionDigits=Nc.roundTo=Nc.parseValue=void 0,Nc.parseValue=function(e){const t=parseFloat(null==e?void 0:e.toString());if(isNaN(t))throw new Error("Input value is not a number");if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return t},Nc.roundTo=function(e,t){if(!Number.isFinite(e))throw new Error("Input value is not a finite number");if(!Number.isInteger(t)||t<0)throw new Error("Precision is not a positive integer");return Number.isInteger(e)?e:parseFloat(e.toFixed(t))},Nc.getFractionDigits=function(e){var t;if(Number.isInteger(e))return 0;const n=e.toString().split(".")[1];return null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0},Nc.getLocales=function(){var e;return"undefined"==typeof navigator?[]:Array.from(null!==(e=navigator.languages)&&void 0!==e?e:[])},Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.millify=void 0;const Bc=Rc,Fc=Nc,zc=1e3;function*Hc(e){let t=zc;for(;;){const n=e/t;if(n<1)return;yield n,t*=zc}}function Vc(e,t){var n,r;const o=t?{...Bc.defaultOptions,...t}:Bc.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let i;try{i=Fc.parseValue(e)}catch(t){return t instanceof Error&&console.warn(`WARN: ${t.message} (millify)`),String(e)}const a=i<0?"-":"";i=Math.abs(i);let s=0;for(const e of Hc(i))i=e,s+=1;if(s>=o.units.length)return e.toString();let c=Fc.roundTo(i,o.precision);for(const e of Hc(c))c=e,s+=1;const l=null!==(n=o.units[s])&&void 0!==n?n:"",u=o.lowercase?l.toLowerCase():l,f=o.space?" ":"";return`${a}${c.toLocaleString(null!==(r=o.locales)&&void 0!==r?r:Fc.getLocales(),{minimumFractionDigits:Fc.getFractionDigits(c)})}${f}${u}`}Ic.millify=Vc;var Kc=Ic.default=Vc;function $c(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=$c(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Uc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$c(e))&&(r&&(r+=" "),r+=t);return r}var Wc=Array.isArray,Zc="object"==typeof st&&st&&st.Object===Object&&st,qc=Zc,Gc="object"==typeof self&&self&&self.Object===Object&&self,Yc=qc||Gc||Function("return this")(),Xc=Yc.Symbol,Jc=Xc,Qc=Object.prototype,el=Qc.hasOwnProperty,tl=Qc.toString,nl=Jc?Jc.toStringTag:void 0;var rl=function(e){var t=el.call(e,nl),n=e[nl];try{e[nl]=void 0;var r=!0}catch(e){}var o=tl.call(e);return r&&(t?e[nl]=n:delete e[nl]),o},ol=Object.prototype.toString;var il=rl,al=function(e){return ol.call(e)},sl=Xc?Xc.toStringTag:void 0;var cl=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":sl&&sl in Object(e)?il(e):al(e)};var ll=function(e){return null!=e&&"object"==typeof e},ul=cl,fl=ll;var dl=function(e){return"symbol"==typeof e||fl(e)&&"[object Symbol]"==ul(e)},pl=Wc,hl=dl,gl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vl=/^\w*$/;var yl=function(e,t){if(pl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!hl(e))||(vl.test(e)||!gl.test(e)||null!=t&&e in Object(t))};var ml=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},bl=ct(ml),wl=cl,xl=ml;var Cl,Sl=function(e){if(!xl(e))return!1;var t=wl(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},_l=ct(Sl),Ol=Yc["__core-js_shared__"],kl=(Cl=/[^.]+$/.exec(Ol&&Ol.keys&&Ol.keys.IE_PROTO||""))?"Symbol(src)_1."+Cl:"";var El=function(e){return!!kl&&kl in e},jl=Function.prototype.toString;var Al=function(e){if(null!=e){try{return jl.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Tl=Sl,Ml=El,Pl=ml,Dl=Al,Ll=/^\[object .+?Constructor\]$/,Il=Function.prototype,Rl=Object.prototype,Nl=Il.toString,Bl=Rl.hasOwnProperty,Fl=RegExp("^"+Nl.call(Bl).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var zl=function(e,t){return null==e?void 0:e[t]},Hl=function(e){return!(!Pl(e)||Ml(e))&&(Tl(e)?Fl:Ll).test(Dl(e))},Vl=zl;var Kl=function(e,t){var n=Vl(e,t);return Hl(n)?n:void 0},$l=Kl(Object,"create"),Ul=$l;var Wl=function(){this.__data__=Ul?Ul(null):{},this.size=0};var Zl=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ql=$l,Gl=Object.prototype.hasOwnProperty;var Yl=function(e){var t=this.__data__;if(ql){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Gl.call(t,e)?t[e]:void 0},Xl=$l,Jl=Object.prototype.hasOwnProperty;var Ql=$l;var eu=Wl,tu=Zl,nu=Yl,ru=function(e){var t=this.__data__;return Xl?void 0!==t[e]:Jl.call(t,e)},ou=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ql&&void 0===t?"__lodash_hash_undefined__":t,this};function iu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}iu.prototype.clear=eu,iu.prototype.delete=tu,iu.prototype.get=nu,iu.prototype.has=ru,iu.prototype.set=ou;var au=iu;var su=function(){this.__data__=[],this.size=0};var cu=function(e,t){return e===t||e!=e&&t!=t},lu=cu;var uu=function(e,t){for(var n=e.length;n--;)if(lu(e[n][0],t))return n;return-1},fu=uu,du=Array.prototype.splice;var pu=function(e){var t=this.__data__,n=fu(t,e);return!(n<0)&&(n==t.length-1?t.pop():du.call(t,n,1),--this.size,!0)},hu=uu;var gu=function(e){var t=this.__data__,n=hu(t,e);return n<0?void 0:t[n][1]},vu=uu;var yu=uu;var mu=function(e,t){var n=this.__data__,r=yu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},bu=su,wu=pu,xu=gu,Cu=function(e){return vu(this.__data__,e)>-1},Su=mu;function _u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_u.prototype.clear=bu,_u.prototype.delete=wu,_u.prototype.get=xu,_u.prototype.has=Cu,_u.prototype.set=Su;var Ou=_u,ku=Kl(Yc,"Map"),Eu=au,ju=Ou,Au=ku;var Tu=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Mu=function(e,t){var n=e.__data__;return Tu(t)?n["string"==typeof t?"string":"hash"]:n.map},Pu=Mu;var Du=Mu;var Lu=Mu;var Iu=Mu;var Ru=function(e,t){var n=Iu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nu=function(){this.size=0,this.__data__={hash:new Eu,map:new(Au||ju),string:new Eu}},Bu=function(e){var t=Pu(this,e).delete(e);return this.size-=t?1:0,t},Fu=function(e){return Du(this,e).get(e)},zu=function(e){return Lu(this,e).has(e)},Hu=Ru;function Vu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vu.prototype.clear=Nu,Vu.prototype.delete=Bu,Vu.prototype.get=Fu,Vu.prototype.has=zu,Vu.prototype.set=Hu;var Ku=Vu,$u=Ku;function Uu(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Uu.Cache||$u),n}Uu.Cache=$u;var Wu=Uu,Zu=ct(Wu),qu=Wu;var Gu=function(e){var t=qu(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},Yu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xu=/\\(\\)?/g,Ju=Gu((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Yu,(function(e,n,r,o){t.push(r?o.replace(Xu,"$1"):n||e)})),t})),Qu=Ju;var ef=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},tf=ef,nf=Wc,rf=dl,of=Xc?Xc.prototype:void 0,af=of?of.toString:void 0;var sf=function e(t){if("string"==typeof t)return t;if(nf(t))return tf(t,e)+"";if(rf(t))return af?af.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},cf=sf;var lf=function(e){return null==e?"":cf(e)},uf=Wc,ff=yl,df=Qu,pf=lf;var hf=function(e,t){return uf(e)?e:ff(e,t)?[e]:df(pf(e))},gf=dl;var vf=function(e){if("string"==typeof e||gf(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},yf=hf,mf=vf;var bf=function(e,t){for(var n=0,r=(t=yf(t,e)).length;null!=e&&n<r;)e=e[mf(t[n++])];return n&&n==r?e:void 0},wf=bf;var xf=function(e,t,n){var r=null==e?void 0:wf(e,t);return void 0===r?n:r},Cf=ct(xf);var Sf=ct((function(e){return null==e})),_f=cl,Of=Wc,kf=ll;var Ef,jf=ct((function(e){return"string"==typeof e||!Of(e)&&kf(e)&&"[object String]"==_f(e)})),Af={exports:{}},Tf={};var Mf,Pf={};
|
|
18
|
+
*/"production"===process.env.NODE_ENV?Ns.exports=function(){if(Rs)return Bs;Rs=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case l:case p:case d:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Bs.ContextConsumer=s,Bs.ContextProvider=a,Bs.Element=t,Bs.ForwardRef=l,Bs.Fragment=r,Bs.Lazy=p,Bs.Memo=d,Bs.Portal=n,Bs.Profiler=i,Bs.StrictMode=o,Bs.Suspense=u,Bs.SuspenseList=f,Bs.isAsyncMode=function(){return!1},Bs.isConcurrentMode=function(){return!1},Bs.isContextConsumer=function(e){return g(e)===s},Bs.isContextProvider=function(e){return g(e)===a},Bs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Bs.isForwardRef=function(e){return g(e)===l},Bs.isFragment=function(e){return g(e)===r},Bs.isLazy=function(e){return g(e)===p},Bs.isMemo=function(e){return g(e)===d},Bs.isPortal=function(e){return g(e)===n},Bs.isProfiler=function(e){return g(e)===i},Bs.isStrictMode=function(e){return g(e)===o},Bs.isSuspense=function(e){return g(e)===u},Bs.isSuspenseList=function(e){return g(e)===f},Bs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Bs.typeOf=g,Bs}():Ns.exports=(Fs||(Fs=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var g=e.type;switch(g){case r:case i:case o:case u:case f:return g;default:var v=g&&g.$$typeof;switch(v){case c:case s:case l:case p:case d:case a:return v;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var v=s,y=a,m=t,b=l,w=r,x=p,C=d,S=n,_=i,O=o,k=u,E=f,j=!1,A=!1;zs.ContextConsumer=v,zs.ContextProvider=y,zs.Element=m,zs.ForwardRef=b,zs.Fragment=w,zs.Lazy=x,zs.Memo=C,zs.Portal=S,zs.Profiler=_,zs.StrictMode=O,zs.Suspense=k,zs.SuspenseList=E,zs.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},zs.isConcurrentMode=function(e){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},zs.isContextConsumer=function(e){return g(e)===s},zs.isContextProvider=function(e){return g(e)===a},zs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},zs.isForwardRef=function(e){return g(e)===l},zs.isFragment=function(e){return g(e)===r},zs.isLazy=function(e){return g(e)===p},zs.isMemo=function(e){return g(e)===d},zs.isPortal=function(e){return g(e)===n},zs.isProfiler=function(e){return g(e)===i},zs.isStrictMode=function(e){return g(e)===o},zs.isSuspense=function(e){return g(e)===u},zs.isSuspenseList=function(e){return g(e)===f},zs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},zs.typeOf=g}()),zs);var Hs=Ns.exports;function Vs(e,n=0,r=[]){return t.Children.toArray(e).reduce(((e,o,i)=>(Hs.isFragment(o)?e.push.apply(e,Vs(o.props.children,n+1,r.concat(o.key||i))):t.isValidElement(o)?e.push(t.cloneElement(o,{key:r.concat(String(o.key)).join(".")})):"string"!=typeof o&&"number"!=typeof o||e.push(o),e)),[])}const Ks=(e,t)=>!t.includes(e),$s=W("div",{shouldForwardProp:e=>Ks(e,["maxHeight","zIndex","offsetY","offsetX","centerY","centerX","optionsPosition"])})((({theme:e,width:t,maxHeight:n,zIndex:r})=>({backgroundColor:e.options.background,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,maxHeight:n,overflowY:"auto",width:t||"max-content",zIndex:r,"& > span > .menu-arrow":{fill:e.options.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}}))),Us=W("div",{shouldForwardProp:e=>Ks(e,["selected","noSelect","contentPosition","color","accented"])})({border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative"},(({theme:{optionItem:e,scale4:t},color:n,accented:r,selected:o,disabled:i,noSelect:a=!1})=>{const s=r?e.color.accent:e.color.inactive;return{color:i?t:n||s,cursor:i||a?"inherit":"pointer",pointerEvents:i||a?"none":"auto",backgroundColor:!a&&o?e.background.active:e.background.inactive,"&:hover":{backgroundColor:i||a?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active},"&[data-highlighted]":{backgroundColor:e.background.active},"&[data-disabled], &[data-disabled]:hover":{color:t,backgroundColor:e.background.inactive,cursor:"inherit"}}}),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),Ws=({id:n,children:o,containerRef:i,parentSelector:a,width:s,maxHeight:c=200,offsetY:l,offsetX:u,centerY:f,centerX:d,direction:p})=>{const[h,g]=t.useState(),v=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||v;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<c?n:c)+((r?u:l)||4))}}),[i,p]);const y=e.jsx(Zs,{id:n,ref:i||v,offsetX:u,offsetY:l,width:s,maxHeight:c,centerY:f,centerX:d,optionsPosition:{direction:p,amount:h},children:o});if(a){const e=document.querySelector(a);return e?r.createPortal(y,e):y}return y};Ws.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:s,color:l,accented:u}=t,f=c(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented"]);return e.jsx(Us,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,noSelect:a,contentPosition:s,color:l,accented:u,tabIndex:a?-1:0},f,{children:n}))};const Zs=W($s)((({offsetY:e,offsetX:t})=>({zIndex:2,top:e?-e:"100%",position:"absolute",left:t||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}:{}})),qs=(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},Gs=n=>e.jsxs(t.Fragment,{children:[n.leftElement||null,n.header&&n.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Xs,{children:n.header}),e.jsx(Js,{children:n.body})]}):n.label,n.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),Ys=(n,r,o,i,a)=>{const{selected:s}=a,l=((t,n,r,o)=>{if(t&&t.length>0)return qs(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(Ws.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,children:Gs(t)},t.id)}));return[]})(n,o,i,c(a,["selected"])),u=((e,n,r)=>e?Vs(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return Vs([...l,...u]).map(((e,n)=>e?t.cloneElement(e,{selected:s===n}):null))},Xs=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Js=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Qs=e=>{let t="top",n="center";if(!e)return{side:t,align:n};const[r,o]=e.split(" ");return"left"===r&&(t="left"),"right"===r&&(t="right"),"bottom"===r&&(t="bottom"),"left"!==o&&"top"!==o||(n="start"),"right"!==o&&"bottom"!==o||(n="end"),{side:t,align:n}},ec=t=>{var{children:n,options:r,id:o,position:i="bottom",trigger:a,open:s,offset:l=4,arrow:u,width:f,maxHeight:d=200,container:p,zIndex:h,disableScrollLock:g,onChange:v,afterShow:y,afterHide:m}=t,b=c(t,["children","options","id","position","trigger","open","offset","arrow","width","maxHeight","container","zIndex","disableScrollLock","onChange","afterShow","afterHide"]);return e.jsxs(ks,{onOpenChange:e=>{y&&e&&y(),m&&!e&&m()},open:s,modal:!g,children:[e.jsx(Es,{asChild:!0,children:e.jsx(rc,Object.assign({},b,{children:a}))}),e.jsx(js,{container:p,children:e.jsx(As,{asChild:!0,side:Qs(i).side,align:Qs(i).align,sideOffset:l,children:e.jsxs($s,{id:o,maxHeight:d,width:f,zIndex:h,children:[r&&(null==r?void 0:r.length)>0&&r.map((t=>{const{id:n}=t,r=c(t,["id"]),o=null==n?void 0:n.toString();return e.jsx(tc,Object.assign({id:o},r,{onClick:t.onClick||(e=>{((e,t)=>{v&&v(e,t)})(t,e)}),children:Gs(t)}),o)})),n,u&&e.jsx(Ps,{className:"menu-arrow"})]})})})]})},tc=t=>{var{children:n,id:r,disabled:o,onClick:i}=t,a=c(t,["children","id","disabled","onClick"]);return e.jsx(Ts,{asChild:!0,disabled:o,onSelect:i,children:e.jsx(Us,Object.assign({id:null==r?void 0:r.toString()},a,{children:n}))})};ec.Item=tc,ec.Sub=t=>{var{children:n,id:r,label:o,zIndex:i,disabled:a,container:s}=t,l=c(t,["children","id","label","zIndex","disabled","container"]);return e.jsxs(Ds,{children:[e.jsx(Ls,{asChild:!0,disabled:a,children:e.jsxs(Us,{children:[o,e.jsx(oc,{children:e.jsx(ic,{children:e.jsx(fn,{name:"chevron-right",size:"small",inheritColor:a})})})]})}),e.jsx(js,{container:s,children:e.jsx(Is,{asChild:!0,sideOffset:2,alignOffset:-5,children:e.jsx($s,Object.assign({id:r,zIndex:i},l,{children:n}))})})]})},ec.Separator=()=>e.jsx(nc,{});const nc=W(Ms)((({theme:e})=>({height:1,backgroundColor:e.scale2,margin:"4px 8px"}))),rc=W.div({display:"inline-flex"}),oc=W.div({marginLeft:"auto",width:16,height:16}),ic=W.div({position:"absolute",right:8}),ac=t=>{var{size:n,color:r,center:o,background:i,zIndex:a,margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d,position:p,top:h,bottom:g,right:v,left:y}=t,m=c(t,["size","color","center","background","zIndex","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const b={margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d,position:p,top:h,bottom:g,right:v,left:y};return e.jsx(sc,Object.assign({},b,{center:o,background:i,zIndex:a,children:e.jsx(lc,{children:e.jsx(fn,Object.assign({},m,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},sc=W.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"}}),cn,ln),cc=n.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),lc=W.div({animation:`${cc} 1s linear infinite`,width:"max-content",height:"max-content"}),uc=({size:t})=>e.jsx(fc,{className:"button-loader",children:e.jsx(ac,{size:t})}),fc=W.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),dc=n=>{var{children:r,disabled:o,outline:i,size:a,small:s,large:l,secondary:u,negative:f,positive:d,caution:p,collapse:h}=n,g=c(n,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(r){const n=t.Children.count(r);return e.jsx(pc,Object.assign({},g,{children:t.Children.map(r,((e,r)=>{let c;if(n>1&&(c=0===r?"right":r===n-1?"left":"middle"),e){let n=e;"trigger"in e.props&&(n=e.props.trigger);const r=n,g=s||r.props.small,v=l||r.props.large,y=a||r.props.size,m=o||r.props.disabled,b=i||r.props.outline,w=u||r.props.secondary,x=f||r.props.negative,C=d||r.props.positive,S=p||r.props.caution,_=h||r.props.collapse,O=t.cloneElement(n,{joined:c,size:y,small:g,large:v,disabled:m,outline:b,secondary:w,negative:x,positive:C,caution:S,collapse:_});return"trigger"in e.props?t.cloneElement(e,{trigger:O}):O}return null}))}))}return null},pc=W.div((({width:e})=>({display:"inline-flex",width:e})),cn),hc=t=>{const{content:n,children:r,dropdown:o,options:i}=t,a=c(t,["content","children","dropdown","options"]),s=n||r;return o&&i?e.jsx(vc,Object.assign({options:i},a,{children:s})):e.jsx(gc,Object.assign({},a,{children:s}))};hc.Group=dc;const gc=t=>{var{children:r,onClick:o,icon:i,iconPosition:a,iconColor:s,joined:l,size:u,small:f,large:d,isLoading:p,collapse:h,backgroundColor:g,color:v,type:y,animation:m,iconAnimation:b}=t,w=c(t,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation","iconAnimation"]);const{button:x}=n.useTheme(),C=i&&(!r||h),S="right"===a;let _=u||"medium";f?_="small":d&&(_="large");const O=x[_],{iconSize:k}=O,E=h&&i;return e.jsxs(yc,Object.assign({},w,{type:y||"button",size:_,iconOnly:C,iconRight:S,joined:l,onClick:o,isLoading:p,color:v,backgroundColor:g,animation:m,children:[i?e.jsx(fn,{size:k,name:i,marginRight:C||S?0:4,marginLeft:!C&&S?4:0,color:s,inheritColor:!s,animation:b}):null,!E&&e.jsx("span",{children:r}),p&&e.jsx(uc,{size:k})]}))},vc=n=>{var{children:r,options:o,onClick:i,afterShow:a,afterHide:s,secondary:l,negative:u,positive:f,caution:d,outline:p,subtle:h,link:g,size:v,small:y,large:m,disabled:b,buttonDisabled:w,optionsDisabled:x,isLoading:C,direction:S,collapse:_,width:O,zIndex:k,disableScrollLock:E,hideDivider:j,gap:A}=n,T=c(n,["children","options","onClick","afterShow","afterHide","secondary","negative","positive","caution","outline","subtle","link","size","small","large","disabled","buttonDisabled","optionsDisabled","isLoading","direction","collapse","width","zIndex","disableScrollLock","hideDivider","gap"]);const[M,P]=t.useState(!1),D={secondary:l,negative:u,positive:f,caution:d,outline:p,subtle:h,link:g,size:v,small:y,large:m};return e.jsx(mc,{children:e.jsxs(dc,{width:_?void 0:O,children:[e.jsx(gc,Object.assign({},D,T,{disabled:b||w,width:O&&!_?"100%":void 0,collapse:_,isLoading:C,onClick:e=>{i&&i(e)},hideJoinedBorder:j,joinedPadding:A,children:r&&e.jsx(bc,{children:r})})),e.jsx(ec,{position:`${S||"bottom"} right`,afterShow:()=>{a&&a(),P(!0)},afterHide:()=>{s&&s(),P(!1)},options:o,trigger:e.jsx(gc,Object.assign({},D,{icon:M?"caret-up":"caret-down",preventPointerEvents:C,tabIndex:-1,joinedPadding:A,disabled:b||x})),zIndex:k,disableScrollLock:E})]})})},yc=W.button((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:s,width:c,height:l,animation:u})=>{const f=i||a&&!o,d=n[r],p=c||"max-content",{height:h,font:g,padding:v,iconOnlyPadding:y}=d,m=l||h,b=a||f?y:v;return{display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:s?"row-reverse":"row",fontSize:g,width:f?m:p,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:u,"&:focus-visible":{outline:`${e} solid 1px`}}}),(({theme:e,joined:t,hideJoinedBorder:n,joinedPadding:r,iconOnly:o,outline:i,negative:a,positive:s,caution:c,secondary:l,disabled:u,subtle:f,link:d})=>{const{button:p,size:h}=e;let g=p.primary;f?g=p.subtle:d?g=p.link:u?g=p.disabled:a?g=p.negative:s?g=p.positive:c?g=p.caution:l&&(g=p.secondary);const v=i?g.outlineBackground:g.background;let y=i?g.outlineColor:g.color;if(d||f){let e=p.subtle;d&&(e=p.link),u?y=p.disabled.color:a?y=e.negativeColor:s?y=e.positiveColor:c?y=e.cautionColor:l&&(y=e.secondaryColor)}const m="left"===t||"middle"===t,b="right"===t||"middle"===t,w=o?h.xs:h.sm,x=r||w;return{backgroundColor:v.default,color:y.default,border:i&&!d?"1px solid":"none",borderColor:g.border.default,"&:hover":{backgroundColor:v.hover,color:y.hover,borderColor:i&&!u?g.border.hover:void 0},"&:active":{backgroundColor:v.active,color:y.active,borderColor:i&&!u?g.border.active:void 0},"&:disabled":{backgroundColor:f?"transparent":void 0,cursor:"not-allowed"},borderTopLeftRadius:m?0:void 0,borderBottomLeftRadius:m?0:void 0,borderTopRightRadius:b?0:void 0,borderBottomRightRadius:b?0:void 0,paddingLeft:m?x:void 0,paddingRight:b?x:void 0,borderRight:b&&!n?`1px solid ${i?g.border.default:g.divider}`:void 0,borderLeft:m&&!n?"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?ir:sr,i="dark"===e?sr:ir;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}}}),cn),mc=W.div({display:"inline-flex",flexDirection:"column",position:"relative"}),bc=W.div({marginRight:8}),wc=t=>{var{value:n,max:r=100,step:o=1,width:i,height:a,disabled:s,onChange:l}=t,u=c(t,["value","max","step","width","height","disabled","onChange"]);return e.jsx(Cc,Object.assign({},u,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;l&&l(+t)},step:o,width:i,height:a,disabled:s,readOnly:!l}))},xc=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),Cc=W.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":xc(e,o||i),"&::-moz-range-thumb":xc(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),cn),Sc=t.forwardRef(((n,r)=>{var{src:o,title:i,width:a,infoPosition:s,centerAlignContent:l,small:u,collapsed:f,hideSliderOnStop:d,hideTimeOnStop:p,fontSizeTitle:h,fontSizeTime:g,onPlay:v,onPause:y,onStop:m}=n,b=c(n,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[w,x]=t.useState(!1),[C,S]=t.useState(!0),[_,O]=t.useState(0),[k,E]=t.useState(0),[j,A]=t.useState(""),[T,M]=t.useState(""),P=t.useRef(null),D=()=>{const{current:e}=P;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},L=()=>{const{current:e}=P;e&&e.pause()},I=()=>{const{current:e}=P;e&&e.load()};t.useImperativeHandle(r,(()=>({play:D,pause:L,stop:I})),[P,w]);const R=e=>{x(!1),S(!0),m&&m(e)};t.useEffect((()=>{(()=>{const{current:e}=P;!!e&&e.paused})()}),[w]);const N=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},B=C&&d,F=C&&p;return e.jsxs(_c,Object.assign({width:a},b,{children:[e.jsx(hc,{outline:!0,small:u,icon:w?"pause":"play",onClick:()=>{w?L():D()},marginRight:8}),!f&&e.jsxs(Oc,{alignDataTop:"top"===s,children:[!B&&e.jsx(wc,{value:_,max:k,step:.1,onChange:e=>{(null==P?void 0:P.current)&&(P.current.currentTime=e)}}),e.jsxs(kc,{alignTop:"top"===s,noSlider:B,relative:l||B,children:[i?e.jsx(Ec,{fontSize:h,children:i}):e.jsx("div",{}),!F&&e.jsxs(Ec,{secondary:!0,fontSize:g,children:[j&&!C?`${j} / `:"",T]})]})]}),e.jsxs("audio",{ref:P,onPlay:e=>{x(!0),S(!1),v&&v(e)},onPause:e=>{x(!1),y&&y(e)},onEmptied:R,onEnded:R,onTimeUpdate:()=>{const{current:e}=P;if(e){const{currentTime:t}=e,n=N(t);O(t),A(n)}},onDurationChange:()=>{const{current:e}=P;if(e){const{duration:t}=e,n=N(t);E(t),M(n)}},children:[e.jsx("track",{kind:"captions"}),e.jsx("source",{src:o})]})]}))})),_c=W.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),cn),Oc=W.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),kc=W.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%"}))),Ec=W.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var jc={},Ac={};Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.defaultOptions=void 0,Ac.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var Tc={};Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.getLocales=Tc.getFractionDigits=Tc.roundTo=Tc.parseValue=void 0,Tc.parseValue=function(e){const t=parseFloat(null==e?void 0:e.toString());if(isNaN(t))throw new Error("Input value is not a number");if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return t},Tc.roundTo=function(e,t){if(!Number.isFinite(e))throw new Error("Input value is not a finite number");if(!Number.isInteger(t)||t<0)throw new Error("Precision is not a positive integer");return Number.isInteger(e)?e:parseFloat(e.toFixed(t))},Tc.getFractionDigits=function(e){var t;if(Number.isInteger(e))return 0;const n=e.toString().split(".")[1];return null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0},Tc.getLocales=function(){var e;return"undefined"==typeof navigator?[]:Array.from(null!==(e=navigator.languages)&&void 0!==e?e:[])},Object.defineProperty(jc,"__esModule",{value:!0}),jc.millify=void 0;const Mc=Ac,Pc=Tc,Dc=1e3;function*Lc(e){let t=Dc;for(;;){const n=e/t;if(n<1)return;yield n,t*=Dc}}function Ic(e,t){var n,r;const o=t?{...Mc.defaultOptions,...t}:Mc.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let i;try{i=Pc.parseValue(e)}catch(t){return t instanceof Error&&console.warn(`WARN: ${t.message} (millify)`),String(e)}const a=i<0?"-":"";i=Math.abs(i);let s=0;for(const e of Lc(i))i=e,s+=1;if(s>=o.units.length)return e.toString();let c=Pc.roundTo(i,o.precision);for(const e of Lc(c))c=e,s+=1;const l=null!==(n=o.units[s])&&void 0!==n?n:"",u=o.lowercase?l.toLowerCase():l,f=o.space?" ":"";return`${a}${c.toLocaleString(null!==(r=o.locales)&&void 0!==r?r:Pc.getLocales(),{minimumFractionDigits:Pc.getFractionDigits(c)})}${f}${u}`}jc.millify=Ic;var Rc=jc.default=Ic;function Nc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Nc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Bc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Nc(e))&&(r&&(r+=" "),r+=t);return r}var Fc=Array.isArray,zc="object"==typeof st&&st&&st.Object===Object&&st,Hc=zc,Vc="object"==typeof self&&self&&self.Object===Object&&self,Kc=Hc||Vc||Function("return this")(),$c=Kc.Symbol,Uc=$c,Wc=Object.prototype,Zc=Wc.hasOwnProperty,qc=Wc.toString,Gc=Uc?Uc.toStringTag:void 0;var Yc=function(e){var t=Zc.call(e,Gc),n=e[Gc];try{e[Gc]=void 0;var r=!0}catch(e){}var o=qc.call(e);return r&&(t?e[Gc]=n:delete e[Gc]),o},Xc=Object.prototype.toString;var Jc=Yc,Qc=function(e){return Xc.call(e)},el=$c?$c.toStringTag:void 0;var tl=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":el&&el in Object(e)?Jc(e):Qc(e)};var nl=function(e){return null!=e&&"object"==typeof e},rl=tl,ol=nl;var il=function(e){return"symbol"==typeof e||ol(e)&&"[object Symbol]"==rl(e)},al=Fc,sl=il,cl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ll=/^\w*$/;var ul=function(e,t){if(al(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!sl(e))||(ll.test(e)||!cl.test(e)||null!=t&&e in Object(t))};var fl=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},dl=ct(fl),pl=tl,hl=fl;var gl,vl=function(e){if(!hl(e))return!1;var t=pl(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},yl=ct(vl),ml=Kc["__core-js_shared__"],bl=(gl=/[^.]+$/.exec(ml&&ml.keys&&ml.keys.IE_PROTO||""))?"Symbol(src)_1."+gl:"";var wl=function(e){return!!bl&&bl in e},xl=Function.prototype.toString;var Cl=function(e){if(null!=e){try{return xl.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Sl=vl,_l=wl,Ol=fl,kl=Cl,El=/^\[object .+?Constructor\]$/,jl=Function.prototype,Al=Object.prototype,Tl=jl.toString,Ml=Al.hasOwnProperty,Pl=RegExp("^"+Tl.call(Ml).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Dl=function(e,t){return null==e?void 0:e[t]},Ll=function(e){return!(!Ol(e)||_l(e))&&(Sl(e)?Pl:El).test(kl(e))},Il=Dl;var Rl=function(e,t){var n=Il(e,t);return Ll(n)?n:void 0},Nl=Rl(Object,"create"),Bl=Nl;var Fl=function(){this.__data__=Bl?Bl(null):{},this.size=0};var zl=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hl=Nl,Vl=Object.prototype.hasOwnProperty;var Kl=function(e){var t=this.__data__;if(Hl){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Vl.call(t,e)?t[e]:void 0},$l=Nl,Ul=Object.prototype.hasOwnProperty;var Wl=Nl;var Zl=Fl,ql=zl,Gl=Kl,Yl=function(e){var t=this.__data__;return $l?void 0!==t[e]:Ul.call(t,e)},Xl=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Wl&&void 0===t?"__lodash_hash_undefined__":t,this};function Jl(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Jl.prototype.clear=Zl,Jl.prototype.delete=ql,Jl.prototype.get=Gl,Jl.prototype.has=Yl,Jl.prototype.set=Xl;var Ql=Jl;var eu=function(){this.__data__=[],this.size=0};var tu=function(e,t){return e===t||e!=e&&t!=t},nu=tu;var ru=function(e,t){for(var n=e.length;n--;)if(nu(e[n][0],t))return n;return-1},ou=ru,iu=Array.prototype.splice;var au=function(e){var t=this.__data__,n=ou(t,e);return!(n<0)&&(n==t.length-1?t.pop():iu.call(t,n,1),--this.size,!0)},su=ru;var cu=function(e){var t=this.__data__,n=su(t,e);return n<0?void 0:t[n][1]},lu=ru;var uu=ru;var fu=function(e,t){var n=this.__data__,r=uu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},du=eu,pu=au,hu=cu,gu=function(e){return lu(this.__data__,e)>-1},vu=fu;function yu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yu.prototype.clear=du,yu.prototype.delete=pu,yu.prototype.get=hu,yu.prototype.has=gu,yu.prototype.set=vu;var mu=yu,bu=Rl(Kc,"Map"),wu=Ql,xu=mu,Cu=bu;var Su=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var _u=function(e,t){var n=e.__data__;return Su(t)?n["string"==typeof t?"string":"hash"]:n.map},Ou=_u;var ku=_u;var Eu=_u;var ju=_u;var Au=function(e,t){var n=ju(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Tu=function(){this.size=0,this.__data__={hash:new wu,map:new(Cu||xu),string:new wu}},Mu=function(e){var t=Ou(this,e).delete(e);return this.size-=t?1:0,t},Pu=function(e){return ku(this,e).get(e)},Du=function(e){return Eu(this,e).has(e)},Lu=Au;function Iu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Iu.prototype.clear=Tu,Iu.prototype.delete=Mu,Iu.prototype.get=Pu,Iu.prototype.has=Du,Iu.prototype.set=Lu;var Ru=Iu,Nu=Ru;function Bu(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Bu.Cache||Nu),n}Bu.Cache=Nu;var Fu=Bu,zu=ct(Fu),Hu=Fu;var Vu=function(e){var t=Hu(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},Ku=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$u=/\\(\\)?/g,Uu=Vu((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ku,(function(e,n,r,o){t.push(r?o.replace($u,"$1"):n||e)})),t})),Wu=Uu;var Zu=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},qu=Zu,Gu=Fc,Yu=il,Xu=$c?$c.prototype:void 0,Ju=Xu?Xu.toString:void 0;var Qu=function e(t){if("string"==typeof t)return t;if(Gu(t))return qu(t,e)+"";if(Yu(t))return Ju?Ju.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},ef=Qu;var tf=function(e){return null==e?"":ef(e)},nf=Fc,rf=ul,of=Wu,af=tf;var sf=function(e,t){return nf(e)?e:rf(e,t)?[e]:of(af(e))},cf=il;var lf=function(e){if("string"==typeof e||cf(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},uf=sf,ff=lf;var df=function(e,t){for(var n=0,r=(t=uf(t,e)).length;null!=e&&n<r;)e=e[ff(t[n++])];return n&&n==r?e:void 0},pf=df;var hf=function(e,t,n){var r=null==e?void 0:pf(e,t);return void 0===r?n:r},gf=ct(hf);var vf=ct((function(e){return null==e})),yf=tl,mf=Fc,bf=nl;var wf,xf=ct((function(e){return"string"==typeof e||!mf(e)&&bf(e)&&"[object String]"==yf(e)})),Cf={exports:{}},Sf={};var _f,Of={};
|
|
19
19
|
/** @license React v16.13.1
|
|
20
20
|
* react-is.development.js
|
|
21
21
|
*
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/"production"===process.env.NODE_ENV?Af.exports=function(){if(Ef)return Tf;Ef=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case c:case l:case r:case i:case o:case f:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case p:case a:return e;default:return d}}case n:return d}}}function w(e){return b(e)===l}return Tf.AsyncMode=c,Tf.ConcurrentMode=l,Tf.ContextConsumer=s,Tf.ContextProvider=a,Tf.Element=t,Tf.ForwardRef=u,Tf.Fragment=r,Tf.Lazy=h,Tf.Memo=p,Tf.Portal=n,Tf.Profiler=i,Tf.StrictMode=o,Tf.Suspense=f,Tf.isAsyncMode=function(e){return w(e)||b(e)===c},Tf.isConcurrentMode=w,Tf.isContextConsumer=function(e){return b(e)===s},Tf.isContextProvider=function(e){return b(e)===a},Tf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Tf.isForwardRef=function(e){return b(e)===u},Tf.isFragment=function(e){return b(e)===r},Tf.isLazy=function(e){return b(e)===h},Tf.isMemo=function(e){return b(e)===p},Tf.isPortal=function(e){return b(e)===n},Tf.isProfiler=function(e){return b(e)===i},Tf.isStrictMode=function(e){return b(e)===o},Tf.isSuspense=function(e){return b(e)===f},Tf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m||e.$$typeof===g)},Tf.typeOf=b,Tf}():Af.exports=(Mf||(Mf=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var g=e.type;switch(g){case c:case l:case r:case i:case o:case f:return g;default:var v=g&&g.$$typeof;switch(v){case s:case u:case h:case p:case a:return v;default:return d}}case n:return d}}}var w=c,x=l,C=s,S=a,_=t,O=u,k=r,E=h,j=p,A=n,T=i,M=o,P=f,D=!1;function L(e){return b(e)===l}Pf.AsyncMode=w,Pf.ConcurrentMode=x,Pf.ContextConsumer=C,Pf.ContextProvider=S,Pf.Element=_,Pf.ForwardRef=O,Pf.Fragment=k,Pf.Lazy=E,Pf.Memo=j,Pf.Portal=A,Pf.Profiler=T,Pf.StrictMode=M,Pf.Suspense=P,Pf.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||b(e)===c},Pf.isConcurrentMode=L,Pf.isContextConsumer=function(e){return b(e)===s},Pf.isContextProvider=function(e){return b(e)===a},Pf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Pf.isForwardRef=function(e){return b(e)===u},Pf.isFragment=function(e){return b(e)===r},Pf.isLazy=function(e){return b(e)===h},Pf.isMemo=function(e){return b(e)===p},Pf.isPortal=function(e){return b(e)===n},Pf.isProfiler=function(e){return b(e)===i},Pf.isStrictMode=function(e){return b(e)===o},Pf.isSuspense=function(e){return b(e)===f},Pf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m||e.$$typeof===g)},Pf.typeOf=b}()),Pf);var Df=Af.exports,Lf=cl,If=ll;var Rf=function(e){return"number"==typeof e||If(e)&&"[object Number]"==Lf(e)},Nf=ct(Rf),Bf=Rf;var Ff=ct((function(e){return Bf(e)&&e!=+e})),zf=function(e){return 0===e?0:e>0?1:-1},Hf=function(e){return jf(e)&&e.indexOf("%")===e.length-1},Vf=function(e){return Nf(e)&&!Ff(e)},Kf=function(e){return Vf(e)||jf(e)},$f=0,Uf=function(e){var t=++$f;return"".concat(e||"").concat(t)},Wf=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Vf(e)&&!jf(e))return r;if(Hf(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return Ff(n)&&(n=r),o&&n>t&&(n=t),n},Zf=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},qf=function(e,t){return Vf(e)&&Vf(t)?function(n){return e+n*(t-e)}:function(){return t}};function Gf(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):Cf(e,t))===n})):null}function Yf(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Xf(e){return Xf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xf(e)}var Jf=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Qf=["points","pathLength"],ed={svg:["viewBox","children"],polygon:Qf,polyline:Qf},td=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],nd=function(e,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(t.isValidElement(e)&&(r=e.props),!bl(r))return null;var o={};return Object.keys(r).forEach((function(e){td.includes(e)&&(o[e]=n||function(t){return r[e](r,t)})})),o},rd=function(e,t,n){if(!bl(e)||"object"!==Xf(e))return null;var r=null;return Object.keys(e).forEach((function(o){var i=e[o];td.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(i,t,n))})),r},od=["children"],id=["children"];function ad(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 sd(e){return sd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sd(e)}var cd={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ld=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},ud=null,fd=null,dd=function e(n){if(n===ud&&Array.isArray(fd))return fd;var r=[];return t.Children.forEach(n,(function(t){Sf(t)||(Df.isFragment(t)?r=r.concat(e(t.props.children)):r.push(t))})),fd=r,ud=n,r};function pd(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map((function(e){return ld(e)})):[ld(t)],dd(e).forEach((function(e){var t=Cf(e,"type.displayName")||Cf(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}function hd(e,t){var n=pd(e,t);return n&&n[0]}var gd=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Vf(n)||n<=0||!Vf(r)||r<=0)},vd=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],yd=function(e,n,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var o=e;if(t.isValidElement(e)&&(o=e.props),!bl(o))return null;var i={};return Object.keys(o).forEach((function(e){var t;(function(e,t,n,r){var o,i=null!==(o=null==ed?void 0:ed[r])&&void 0!==o?o:[];return!_l(e)&&(r&&i.includes(t)||Jf.includes(t))||n&&td.includes(t)})(null===(t=o)||void 0===t?void 0:t[e],e,n,r)&&(i[e]=o[e])})),i},md=function e(n,r){if(n===r)return!0;var o=t.Children.count(n);if(o!==t.Children.count(r))return!1;if(0===o)return!0;if(1===o)return bd(Array.isArray(n)?n[0]:n,Array.isArray(r)?r[0]:r);for(var i=0;i<o;i++){var a=n[i],s=r[i];if(Array.isArray(a)||Array.isArray(s)){if(!e(a,s))return!1}else if(!bd(a,s))return!1}return!0},bd=function(e,t){if(Sf(e)&&Sf(t))return!0;if(!Sf(e)&&!Sf(t)){var n=e.props||{},r=n.children,o=ad(n,od),i=t.props||{},a=i.children,s=ad(i,id);return r&&a?Yf(o,s)&&md(r,a):!r&&!a&&Yf(o,s)}return!1},wd=function(e,t){var n=[],r={};return dd(e).forEach((function(e,o){if(function(e){return e&&e.type&&jf(e.type)&&vd.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=ld(e.type),a=t[i]||{},s=a.handler,c=a.once;if(s&&(!c||!r[i])){var l=s(e,i,o);n.push(l),r[i]=!0}}})),n},xd=["children","width","height","viewBox","className","style","title","desc"];function Cd(){return Cd=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},Cd.apply(this,arguments)}function Sd(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 _d(e){var n=e.children,r=e.width,o=e.height,i=e.viewBox,a=e.className,s=e.style,c=e.title,l=e.desc,u=Sd(e,xd),f=i||{width:r,height:o,x:0,y:0},d=Uc("recharts-surface",a);return t.createElement("svg",Cd({},yd(u,!0,"svg"),{className:d,width:r,height:o,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),t.createElement("title",null,c),t.createElement("desc",null,l),n)}var Od=["children","className"];function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kd.apply(this,arguments)}function Ed(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 jd=t.forwardRef((function(e,n){var r=e.children,o=e.className,i=Ed(e,Od),a=Uc("recharts-layer",o);return t.createElement("g",kd({className:a},yd(i,!0),{ref:n}),r)})),Ad="production"!==process.env.NODE_ENV,Td=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(Ad&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(t.replace(/%s/g,(function(){return r[i++]})))}};var Md=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i},Pd=Md;var Dd=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Pd(e,t,n)},Ld=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Id=function(e){return Ld.test(e)};var Rd=function(e){return e.split("")},Nd="\\ud800-\\udfff",Bd="["+Nd+"]",Fd="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",zd="\\ud83c[\\udffb-\\udfff]",Hd="[^"+Nd+"]",Vd="(?:\\ud83c[\\udde6-\\uddff]){2}",Kd="[\\ud800-\\udbff][\\udc00-\\udfff]",$d="(?:"+Fd+"|"+zd+")"+"?",Ud="[\\ufe0e\\ufe0f]?",Wd=Ud+$d+("(?:\\u200d(?:"+[Hd,Vd,Kd].join("|")+")"+Ud+$d+")*"),Zd="(?:"+[Hd+Fd+"?",Fd,Vd,Kd,Bd].join("|")+")",qd=RegExp(zd+"(?="+zd+")|"+Zd+Wd,"g");var Gd=function(e){return e.match(qd)||[]},Yd=Rd,Xd=Id,Jd=Gd;var Qd=function(e){return Xd(e)?Jd(e):Yd(e)},ep=Dd,tp=Id,np=Qd,rp=lf;var op=function(e){return function(t){t=rp(t);var n=tp(t)?np(t):void 0,r=n?n[0]:t.charAt(0),o=n?ep(n,1).join(""):t.slice(1);return r[e]()+o}},ip=ct(op("toUpperCase"));function ap(e){return function(){return e}}const sp=Math.cos,cp=Math.sin,lp=Math.sqrt,up=Math.PI,fp=2*up,dp=Math.PI,pp=2*dp,hp=1e-6,gp=pp-hp;function vp(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class yp{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?vp:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return vp;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,s=n-e,c=r-t,l=i-e,u=a-t,f=l*l+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>hp)if(Math.abs(u*s-c*l)>hp&&o){let d=n-i,p=r-a,h=s*s+c*c,g=d*d+p*p,v=Math.sqrt(h),y=Math.sqrt(f),m=o*Math.tan((dp-Math.acos((h+f-g)/(2*v*y)))/2),b=m/y,w=m/v;Math.abs(b-1)>hp&&this._append`L${e+b*l},${t+b*u}`,this._append`A${o},${o},0,0,${+(u*d>l*p)},${this._x1=e+w*s},${this._y1=t+w*c}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),c=e+a,l=t+s,u=1^i,f=i?r-o:o-r;null===this._x1?this._append`M${c},${l}`:(Math.abs(this._x1-c)>hp||Math.abs(this._y1-l)>hp)&&this._append`L${c},${l}`,n&&(f<0&&(f=f%pp+pp),f>gp?this._append`A${n},${n},0,1,${u},${e-a},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:f>hp&&this._append`A${n},${n},0,${+(f>=dp)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function mp(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new yp(t)}function bp(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function wp(e){this._context=e}function xp(e){return new wp(e)}function Cp(e){return e[0]}function Sp(e){return e[1]}function _p(e,t){var n=ap(!0),r=null,o=xp,i=null,a=mp(s);function s(s){var c,l,u,f=(s=bp(s)).length,d=!1;for(null==r&&(i=o(u=a())),c=0;c<=f;++c)!(c<f&&n(l=s[c],c,s))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(l,c,s),+t(l,c,s));if(u)return i=null,u+""||null}return e="function"==typeof e?e:void 0===e?Cp:ap(e),t="function"==typeof t?t:void 0===t?Sp:ap(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:ap(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:ap(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:ap(!!e),s):n},s.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),s):o},s.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),s):r},s}function Op(e,t,n){var r=null,o=ap(!0),i=null,a=xp,s=null,c=mp(l);function l(l){var u,f,d,p,h,g=(l=bp(l)).length,v=!1,y=new Array(g),m=new Array(g);for(null==i&&(s=a(h=c())),u=0;u<=g;++u){if(!(u<g&&o(p=l[u],u,l))===v)if(v=!v)f=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=f;--d)s.point(y[d],m[d]);s.lineEnd(),s.areaEnd()}v&&(y[u]=+e(p,u,l),m[u]=+t(p,u,l),s.point(r?+r(p,u,l):y[u],n?+n(p,u,l):m[u]))}if(h)return s=null,h+""||null}function u(){return _p().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?Cp:ap(+e),t="function"==typeof t?t:ap(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Sp:ap(+n),l.x=function(t){return arguments.length?(e="function"==typeof t?t:ap(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:ap(+t),l):e},l.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ap(+e),l):r},l.y=function(e){return arguments.length?(t="function"==typeof e?e:ap(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t="function"==typeof e?e:ap(+e),l):t},l.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:ap(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:ap(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l}wp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class kp{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}var Ep={draw(e,t){const n=lp(t/up);e.moveTo(n,0),e.arc(0,0,n,0,fp)}},jp={draw(e,t){const n=lp(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};const Ap=lp(1/3),Tp=2*Ap;var Mp={draw(e,t){const n=lp(t/Tp),r=n*Ap;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Pp={draw(e,t){const n=lp(t),r=-n/2;e.rect(r,r,n,n)}};const Dp=cp(up/10)/cp(7*up/10),Lp=cp(fp/10)*Dp,Ip=-sp(fp/10)*Dp;var Rp={draw(e,t){const n=lp(.8908130915292852*t),r=Lp*n,o=Ip*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const i=fp*t/5,a=sp(i),s=cp(i);e.lineTo(s*n,-a*n),e.lineTo(a*r-s*o,s*r+a*o)}e.closePath()}};const Np=lp(3);var Bp={draw(e,t){const n=-lp(t/(3*Np));e.moveTo(0,2*n),e.lineTo(-Np*n,-n),e.lineTo(Np*n,-n),e.closePath()}};const Fp=-.5,zp=lp(3)/2,Hp=1/lp(12),Vp=3*(Hp/2+1);var Kp={draw(e,t){const n=lp(t/Vp),r=n/2,o=n*Hp,i=r,a=n*Hp+n,s=-i,c=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,c),e.lineTo(Fp*r-zp*o,zp*r+Fp*o),e.lineTo(Fp*i-zp*a,zp*i+Fp*a),e.lineTo(Fp*s-zp*c,zp*s+Fp*c),e.lineTo(Fp*r+zp*o,Fp*o-zp*r),e.lineTo(Fp*i+zp*a,Fp*a-zp*i),e.lineTo(Fp*s+zp*c,Fp*c-zp*s),e.closePath()}};function $p(){}function Up(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Wp(e){this._context=e}function Zp(e){this._context=e}function qp(e){this._context=e}function Gp(e){this._context=e}function Yp(e){return e<0?-1:1}function Xp(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(Yp(i)+Yp(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Jp(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Qp(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function eh(e){this._context=e}function th(e){this._context=new nh(e)}function nh(e){this._context=e}function rh(e){this._context=e}function oh(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function ih(e,t){this._context=e,this._t=t}function ah(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function sh(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function ch(e,t){return e[t]}function lh(e){const t=[];return t.key=e,t}function uh(e){return uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uh(e)}Wp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Up(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Up(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Zp.prototype={areaStart:$p,areaEnd:$p,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Up(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},qp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Up(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Gp.prototype={areaStart:$p,areaEnd:$p,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},eh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Qp(this,this._t0,Jp(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Qp(this,Jp(this,n=Xp(this,e,t)),n);break;default:Qp(this,this._t0,n=Xp(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(th.prototype=Object.create(eh.prototype)).point=function(e,t){eh.prototype.point.call(this,t,e)},nh.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},rh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=oh(e),o=oh(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},ih.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var fh=["type","size","sizeType"];function dh(){return dh=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},dh.apply(this,arguments)}function ph(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 hh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach((function(t){gh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gh(e,t,n){return t=function(e){var t=function(e,t){if("object"!=uh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uh(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vh(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 yh={symbolCircle:Ep,symbolCross:jp,symbolDiamond:Mp,symbolSquare:Pp,symbolStar:Rp,symbolTriangle:Bp,symbolWye:Kp},mh=Math.PI/180,bh=function(e){var n,r,o=e.type,i=void 0===o?"circle":o,a=e.size,s=void 0===a?64:a,c=e.sizeType,l=void 0===c?"area":c,u=hh(hh({},vh(e,fh)),{},{type:i,size:s,sizeType:l}),f=u.className,d=u.cx,p=u.cy,h=yd(u,!0);return d===+d&&p===+p&&s===+s?t.createElement("path",dh({},h,{className:Uc("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:(n=function(e){var t="symbol".concat(ip(e));return yh[t]||Ep}(i),r=function(e,t){let n=null,r=mp(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:ap(e||Ep),t="function"==typeof t?t:ap(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:ap(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:ap(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}().type(n).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*mh;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(s,l,i)),r())})):null};function wh(e){return wh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wh(e)}function xh(){return xh=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},xh.apply(this,arguments)}function Ch(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 Sh(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,Ah(r.key),r)}}function _h(e,t,n){return t=kh(t),function(e,t){if(t&&("object"===wh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Oh()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function Oh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oh=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kh(e)}function Eh(e,t){return Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Eh(e,t)}function jh(e,t,n){return(t=Ah(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ah(e){var t=function(e,t){if("object"!=wh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wh(t)?t:String(t)}bh.registerSymbol=function(e,t){yh["symbol".concat(ip(e))]=t};var Th=32,Mh=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),_h(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eh(e,t)}(n,t.PureComponent),r=n,o=[{key:"renderIcon",value:function(e){var n=this.props.inactiveColor,r=16,o=Th/6,i=Th/3,a=e.inactive?n:e.color;if("plainline"===e.type)return t.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:Th,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return t.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(r,"h").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(Th,"M").concat(2*i,",").concat(r,"\n A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return t.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(Th,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(t.isValidElement(e.legendIcon)){var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ch(Object(n),!0).forEach((function(t){jh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ch(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete s.legendIcon,t.cloneElement(e.legendIcon,s)}return t.createElement(bh,{fill:a,cx:r,cy:r,size:Th,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,n=this.props,r=n.payload,o=n.iconSize,i=n.layout,a=n.formatter,s=n.inactiveColor,c={x:0,y:0,width:Th,height:Th},l={display:"horizontal"===i?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(n,r){var i=n.formatter||a,f=Uc(jh(jh({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",n.inactive));if("none"===n.type)return null;var d=_l(n.value)?null:n.value;Td(!_l(n.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var p=n.inactive?s:n.color;return t.createElement("li",xh({className:f,style:l,key:"legend-item-".concat(r)},rd(e.props,n,r)),t.createElement(_d,{width:o,height:o,viewBox:c,style:u},e.renderIcon(n)),t.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},i?i(d,n,r):d))}))}},{key:"render",value:function(){var e=this.props,n=e.payload,r=e.layout,o=e.align;if(!n||!n.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?o:"left"};return t.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],o&&Sh(r.prototype,o),i&&Sh(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();jh(Mh,"displayName","Legend"),jh(Mh,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Ph=Ou;var Dh=Ou,Lh=ku,Ih=Ku;var Rh=Ou,Nh=function(){this.__data__=new Ph,this.size=0},Bh=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Fh=function(e){return this.__data__.get(e)},zh=function(e){return this.__data__.has(e)},Hh=function(e,t){var n=this.__data__;if(n instanceof Dh){var r=n.__data__;if(!Lh||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ih(r)}return n.set(e,t),this.size=n.size,this};function Vh(e){var t=this.__data__=new Rh(e);this.size=t.size}Vh.prototype.clear=Nh,Vh.prototype.delete=Bh,Vh.prototype.get=Fh,Vh.prototype.has=zh,Vh.prototype.set=Hh;var Kh=Vh;var $h=Ku,Uh=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Wh=function(e){return this.__data__.has(e)};function Zh(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $h;++t<n;)this.add(e[t])}Zh.prototype.add=Zh.prototype.push=Uh,Zh.prototype.has=Wh;var qh=Zh;var Gh=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var Yh=function(e,t){return e.has(t)},Xh=qh,Jh=Gh,Qh=Yh;var eg=function(e,t,n,r,o,i){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;var f=-1,d=!0,p=2&n?new Xh:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var h=e[f],g=t[f];if(r)var v=a?r(g,h,f,t,e,i):r(h,g,f,e,t,i);if(void 0!==v){if(v)continue;d=!1;break}if(p){if(!Jh(t,(function(e,t){if(!Qh(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){d=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d};var tg=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var ng=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},rg=Yc.Uint8Array,og=cu,ig=eg,ag=tg,sg=ng,cg=Xc?Xc.prototype:void 0,lg=cg?cg.valueOf:void 0;var ug=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new rg(e),new rg(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return og(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=ag;case"[object Set]":var c=1&r;if(s||(s=sg),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=ig(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(lg)return lg.call(e)==lg.call(t)}return!1};var fg=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},dg=fg,pg=Wc;var hg=function(e,t,n){var r=t(e);return pg(e)?r:dg(r,n(e))};var gg=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var vg=gg,yg=function(){return[]},mg=Object.prototype.propertyIsEnumerable,bg=Object.getOwnPropertySymbols,wg=bg?function(e){return null==e?[]:(e=Object(e),vg(bg(e),(function(t){return mg.call(e,t)})))}:yg,xg=wg;var Cg=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Sg=cl,_g=ll;var Og=function(e){return _g(e)&&"[object Arguments]"==Sg(e)},kg=ll,Eg=Object.prototype,jg=Eg.hasOwnProperty,Ag=Eg.propertyIsEnumerable,Tg=Og(function(){return arguments}())?Og:function(e){return kg(e)&&jg.call(e,"callee")&&!Ag.call(e,"callee")},Mg={exports:{}};var Pg=function(){return!1};!function(e,t){var n=Yc,r=Pg,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(Mg,Mg.exports);var Dg=Mg.exports,Lg=/^(?:0|[1-9]\d*)$/;var Ig=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Lg.test(e))&&e>-1&&e%1==0&&e<t};var Rg=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ng=cl,Bg=Rg,Fg=ll,zg={};zg["[object Float32Array]"]=zg["[object Float64Array]"]=zg["[object Int8Array]"]=zg["[object Int16Array]"]=zg["[object Int32Array]"]=zg["[object Uint8Array]"]=zg["[object Uint8ClampedArray]"]=zg["[object Uint16Array]"]=zg["[object Uint32Array]"]=!0,zg["[object Arguments]"]=zg["[object Array]"]=zg["[object ArrayBuffer]"]=zg["[object Boolean]"]=zg["[object DataView]"]=zg["[object Date]"]=zg["[object Error]"]=zg["[object Function]"]=zg["[object Map]"]=zg["[object Number]"]=zg["[object Object]"]=zg["[object RegExp]"]=zg["[object Set]"]=zg["[object String]"]=zg["[object WeakMap]"]=!1;var Hg=function(e){return Fg(e)&&Bg(e.length)&&!!zg[Ng(e)]};var Vg=function(e){return function(t){return e(t)}},Kg={exports:{}};!function(e,t){var n=Zc,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(Kg,Kg.exports);var $g=Kg.exports,Ug=Hg,Wg=Vg,Zg=$g&&$g.isTypedArray,qg=Zg?Wg(Zg):Ug,Gg=Cg,Yg=Tg,Xg=Wc,Jg=Dg,Qg=Ig,ev=qg,tv=Object.prototype.hasOwnProperty;var nv=function(e,t){var n=Xg(e),r=!n&&Yg(e),o=!n&&!r&&Jg(e),i=!n&&!r&&!o&&ev(e),a=n||r||o||i,s=a?Gg(e.length,String):[],c=s.length;for(var l in e)!t&&!tv.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Qg(l,c))||s.push(l);return s},rv=Object.prototype;var ov=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||rv)};var iv=function(e,t){return function(n){return e(t(n))}},av=iv(Object.keys,Object),sv=ov,cv=av,lv=Object.prototype.hasOwnProperty;var uv=function(e){if(!sv(e))return cv(e);var t=[];for(var n in Object(e))lv.call(e,n)&&"constructor"!=n&&t.push(n);return t},fv=Sl,dv=Rg;var pv=function(e){return null!=e&&dv(e.length)&&!fv(e)},hv=nv,gv=uv,vv=pv;var yv=function(e){return vv(e)?hv(e):gv(e)},mv=hg,bv=xg,wv=yv;var xv=function(e){return mv(e,wv,bv)},Cv=xv,Sv=Object.prototype.hasOwnProperty;var _v=function(e,t,n,r,o,i){var a=1&n,s=Cv(e),c=s.length;if(c!=Cv(t).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in t:Sv.call(t,u)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++l<c;){var g=e[u=s[l]],v=t[u];if(r)var y=a?r(v,g,u,t,e,i):r(g,v,u,e,t,i);if(!(void 0===y?g===v||o(g,v,n,r,i):y)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var m=e.constructor,b=t.constructor;m==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p},Ov=Kl(Yc,"DataView"),kv=Kl(Yc,"Promise"),Ev=Kl(Yc,"Set"),jv=Ov,Av=ku,Tv=kv,Mv=Ev,Pv=Kl(Yc,"WeakMap"),Dv=cl,Lv=Al,Iv="[object Map]",Rv="[object Promise]",Nv="[object Set]",Bv="[object WeakMap]",Fv="[object DataView]",zv=Lv(jv),Hv=Lv(Av),Vv=Lv(Tv),Kv=Lv(Mv),$v=Lv(Pv),Uv=Dv;(jv&&Uv(new jv(new ArrayBuffer(1)))!=Fv||Av&&Uv(new Av)!=Iv||Tv&&Uv(Tv.resolve())!=Rv||Mv&&Uv(new Mv)!=Nv||Pv&&Uv(new Pv)!=Bv)&&(Uv=function(e){var t=Dv(e),n="[object Object]"==t?e.constructor:void 0,r=n?Lv(n):"";if(r)switch(r){case zv:return Fv;case Hv:return Iv;case Vv:return Rv;case Kv:return Nv;case $v:return Bv}return t});var Wv=Kh,Zv=eg,qv=ug,Gv=_v,Yv=Uv,Xv=Wc,Jv=Dg,Qv=qg,ey="[object Arguments]",ty="[object Array]",ny="[object Object]",ry=Object.prototype.hasOwnProperty;var oy=function(e,t,n,r,o,i){var a=Xv(e),s=Xv(t),c=a?ty:Yv(e),l=s?ty:Yv(t),u=(c=c==ey?ny:c)==ny,f=(l=l==ey?ny:l)==ny,d=c==l;if(d&&Jv(e)){if(!Jv(t))return!1;a=!0,u=!1}if(d&&!u)return i||(i=new Wv),a||Qv(e)?Zv(e,t,n,r,o,i):qv(e,t,c,n,r,o,i);if(!(1&n)){var p=u&&ry.call(e,"__wrapped__"),h=f&&ry.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,v=h?t.value():t;return i||(i=new Wv),o(g,v,n,r,i)}}return!!d&&(i||(i=new Wv),Gv(e,t,n,r,o,i))},iy=oy,ay=ll;var sy=function e(t,n,r,o,i){return t===n||(null==t||null==n||!ay(t)&&!ay(n)?t!=t&&n!=n:iy(t,n,r,o,e,i))},cy=Kh,ly=sy;var uy=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var c=(s=n[o])[0],l=e[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in e))return!1}else{var f=new cy;if(r)var d=r(l,u,c,e,t,f);if(!(void 0===d?ly(u,l,3,r,f):d))return!1}}return!0},fy=ml;var dy=function(e){return e==e&&!fy(e)},py=dy,hy=yv;var gy=function(e){for(var t=hy(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,py(o)]}return t};var vy=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},yy=uy,my=gy,by=vy;var wy=function(e){var t=my(e);return 1==t.length&&t[0][2]?by(t[0][0],t[0][1]):function(n){return n===e||yy(n,e,t)}};var xy=function(e,t){return null!=e&&t in Object(e)},Cy=hf,Sy=Tg,_y=Wc,Oy=Ig,ky=Rg,Ey=vf;var jy=function(e,t,n){for(var r=-1,o=(t=Cy(t,e)).length,i=!1;++r<o;){var a=Ey(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ky(o)&&Oy(a,o)&&(_y(e)||Sy(e))},Ay=xy,Ty=jy;var My=function(e,t){return null!=e&&Ty(e,t,Ay)},Py=sy,Dy=xf,Ly=My,Iy=yl,Ry=dy,Ny=vy,By=vf;var Fy=function(e,t){return Iy(e)&&Ry(t)?Ny(By(e),t):function(n){var r=Dy(n,e);return void 0===r&&r===t?Ly(n,e):Py(t,r,3)}};var zy=function(e){return e};var Hy=function(e){return function(t){return null==t?void 0:t[e]}},Vy=bf;var Ky=function(e){return function(t){return Vy(t,e)}},$y=Hy,Uy=Ky,Wy=yl,Zy=vf;var qy=wy,Gy=Fy,Yy=zy,Xy=Wc,Jy=function(e){return Wy(e)?$y(Zy(e)):Uy(e)};var Qy=function(e){return"function"==typeof e?e:null==e?Yy:"object"==typeof e?Xy(e)?Gy(e[0],e[1]):qy(e):Jy(e)};var em=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1};var tm=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1},nm=em,rm=function(e){return e!=e},om=tm;var im=function(e,t,n){return t==t?om(e,t,n):nm(e,rm,n)},am=im;var sm=function(e,t){return!!(null==e?0:e.length)&&am(e,t,0)>-1};var cm=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1};var lm=Ev,um=function(){},fm=lm&&1/ng(new lm([,-0]))[1]==1/0?function(e){return new lm(e)}:um,dm=qh,pm=sm,hm=cm,gm=Yh,vm=fm,ym=ng;var mm=function(e,t,n){var r=-1,o=pm,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=hm;else if(i>=200){var l=t?null:vm(e);if(l)return ym(l);a=!1,o=gm,c=new dm}else c=t?[]:s;e:for(;++r<i;){var u=e[r],f=t?t(u):u;if(u=n||0!==u?u:0,a&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),s.push(u)}else o(c,f,n)||(c!==s&&c.push(f),s.push(u))}return s},bm=Qy,wm=mm;var xm=function(e,t){return e&&e.length?wm(e,bm(t)):[]},Cm=ct(xm);function Sm(e,t,n){return!0===t?Cm(e,n):_l(t)?Cm(e,t):e}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)}var Om=["ref"];function km(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 Em(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?km(Object(n),!0).forEach((function(t){Lm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jm(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,Im(r.key),r)}}function Am(e,t,n){return t=Mm(t),function(e,t){if(t&&("object"===_m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pm(e)}(e,Tm()?Reflect.construct(t,n||[],Mm(e).constructor):t.apply(e,n))}function Tm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tm=function(){return!!e})()}function Mm(e){return Mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mm(e)}function Pm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dm(e,t){return Dm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dm(e,t)}function Lm(e,t,n){return(t=Im(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Im(e){var t=function(e,t){if("object"!=_m(e)||!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)}function Rm(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 Nm(e){return e.value}var Bm=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return Lm(Pm(e=Am(this,n,[].concat(r))),"lastBoundingBox",{width:-1,height:-1}),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dm(e,t)}(n,t.PureComponent),r=n,i=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&Vf(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],(o=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Em({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,s=r.margin,c=r.chartWidth,l=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:s&&s.right||0}:{left:s&&s.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),Em(Em({},t),n)}},{key:"render",value:function(){var e=this,n=this.props,r=n.content,o=n.width,i=n.height,a=n.wrapperStyle,s=n.payloadUniqBy,c=n.payload,l=Em(Em({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return t.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,n){if(t.isValidElement(e))return t.cloneElement(e,n);if("function"==typeof e)return t.createElement(e,n);n.ref;var r=Rm(n,Om);return t.createElement(Mh,r)}(r,Em(Em({},this.props),{},{payload:Sm(c,s,Nm)})))}}])&&jm(r.prototype,o),i&&jm(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();Lm(Bm,"displayName","Legend"),Lm(Bm,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Fm=Tg,zm=Wc,Hm=Xc?Xc.isConcatSpreadable:void 0;var Vm=fg,Km=function(e){return zm(e)||Fm(e)||!!(Hm&&e&&e[Hm])};var $m=function e(t,n,r,o,i){var a=-1,s=t.length;for(r||(r=Km),i||(i=[]);++a<s;){var c=t[a];n>0&&r(c)?n>1?e(c,n-1,r,o,i):Vm(i,c):o||(i[i.length]=c)}return i};var Um=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}},Wm=Um(),Zm=yv;var qm=function(e,t){return e&&Wm(e,t,Zm)},Gm=pv;var Ym=function(e,t){return function(n,r){if(null==n)return n;if(!Gm(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}},Xm=Ym(qm),Jm=Xm,Qm=pv;var eb=function(e,t){var n=-1,r=Qm(e)?Array(e.length):[];return Jm(e,(function(e,o,i){r[++n]=t(e,o,i)})),r};var tb=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},nb=dl;var rb=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=nb(e),a=void 0!==t,s=null===t,c=t==t,l=nb(t);if(!s&&!l&&!i&&e>t||i&&a&&c&&!s&&!l||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!l&&e<t||l&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!c)return-1}return 0};var ob=function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var c=rb(o[r],i[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index},ib=ef,ab=bf,sb=Qy,cb=eb,lb=tb,ub=Vg,fb=ob,db=zy,pb=Wc;var hb=function(e,t,n){t=t.length?ib(t,(function(e){return pb(e)?function(t){return ab(t,1===e.length?e[0]:e)}:e})):[db];var r=-1;t=ib(t,ub(sb));var o=cb(e,(function(e,n,o){return{criteria:ib(t,(function(t){return t(e)})),index:++r,value:e}}));return lb(o,(function(e,t){return fb(e,t,n)}))};var gb=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},vb=gb,yb=Math.max;var mb=function(e,t,n){return t=yb(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=yb(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),vb(e,this,s)}};var bb=function(e){return function(){return e}},wb=Kl,xb=function(){try{var e=wb(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Cb=bb,Sb=xb,_b=Sb?function(e,t){return Sb(e,"toString",{configurable:!0,enumerable:!1,value:Cb(t),writable:!0})}:zy,Ob=_b,kb=Date.now;var Eb=function(e){var t=0,n=0;return function(){var r=kb(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Ob),jb=zy,Ab=mb,Tb=Eb;var Mb=cu,Pb=pv,Db=Ig,Lb=ml;var Ib=function(e,t,n){if(!Lb(n))return!1;var r=typeof t;return!!("number"==r?Pb(n)&&Db(t,n.length):"string"==r&&t in n)&&Mb(n[t],e)},Rb=$m,Nb=hb,Bb=Ib,Fb=ct(function(e,t){return Tb(Ab(e,t,jb),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Bb(e,t[0],t[1])?t=[]:n>2&&Bb(t[0],t[1],t[2])&&(t=[t[0]]),Nb(e,Rb(t,1),[])})));function zb(e){return zb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zb(e)}function Hb(){return Hb=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},Hb.apply(this,arguments)}function Vb(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kb(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 Kb(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 Kb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $b(e,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 Ub(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$b(Object(n),!0).forEach((function(t){Wb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wb(e,t,n){return t=function(e){var t=function(e,t){if("object"!=zb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zb(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zb(e){return Array.isArray(e)&&Kf(e[0])&&Kf(e[1])?e.join(" ~ "):e}var qb=function(e){var n=e.separator,r=void 0===n?" : ":n,o=e.contentStyle,i=void 0===o?{}:o,a=e.itemStyle,s=void 0===a?{}:a,c=e.labelStyle,l=void 0===c?{}:c,u=e.payload,f=e.formatter,d=e.itemSorter,p=e.wrapperClassName,h=e.labelClassName,g=e.label,v=e.labelFormatter,y=e.accessibilityLayer,m=void 0!==y&&y,b=Ub({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=Ub({margin:0},l),x=!Sf(g),C=x?g:"",S=Uc("recharts-default-tooltip",p),_=Uc("recharts-tooltip-label",h);x&&v&&null!=u&&(C=v(g,u));var O=m?{role:"status","aria-live":"assertive"}:{};return t.createElement("div",Hb({className:S,style:b},O),t.createElement("p",{className:_,style:w},t.isValidElement(C)?C:"".concat(C)),function(){if(u&&u.length){var e=(d?Fb(u,d):u).map((function(e,n){if("none"===e.type)return null;var o=Ub({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},s),i=e.formatter||f||Zb,a=e.value,c=e.name,l=a,d=c;if(i&&null!=l&&null!=d){var p=i(a,c,e,n,u);if(Array.isArray(p)){var h=Vb(p,2);l=h[0],d=h[1]}else l=p}return t.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(n),style:o},Kf(d)?t.createElement("span",{className:"recharts-tooltip-item-name"},d):null,Kf(d)?t.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,t.createElement("span",{className:"recharts-tooltip-item-value"},l),t.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return t.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function Gb(e){return Gb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gb(e)}function Yb(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Gb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Gb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gb(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xb="recharts-tooltip-wrapper",Jb={visibility:"hidden"};function Qb(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Uc(Xb,Yb(Yb(Yb(Yb({},"".concat(Xb,"-right"),Vf(n)&&t&&Vf(t.x)&&n>=t.x),"".concat(Xb,"-left"),Vf(n)&&t&&Vf(t.x)&&n<t.x),"".concat(Xb,"-bottom"),Vf(r)&&t&&Vf(t.y)&&r>=t.y),"".concat(Xb,"-top"),Vf(r)&&t&&Vf(t.y)&&r<t.y))}function ew(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(i&&Vf(i[r]))return i[r];var u=n[r]-s-o,f=n[r]+o;return t[r]?a[r]?u:f:a[r]?u<c[r]?Math.max(f,c[r]):Math.max(u,c[r]):f+s>c[r]+l?Math.max(u,c[r]):Math.max(f,c[r])}function tw(e){return tw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tw(e)}function nw(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 rw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nw(Object(n),!0).forEach((function(t){uw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ow(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,fw(r.key),r)}}function iw(e,t,n){return t=sw(t),function(e,t){if(t&&("object"===tw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cw(e)}(e,aw()?Reflect.construct(t,n||[],sw(e).constructor):t.apply(e,n))}function aw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aw=function(){return!!e})()}function sw(e){return sw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sw(e)}function cw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lw(e,t){return lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lw(e,t)}function uw(e,t,n){return(t=fw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fw(e){var t=function(e,t){if("object"!=tw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tw(t)?t:String(t)}var dw=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return uw(cw(e=iw(this,n,[].concat(r))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),uw(cw(e),"lastBoundingBox",{width:-1,height:-1}),uw(cw(e),"handleKeyDown",(function(t){var n,r,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=e.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lw(e,t)}(n,t.PureComponent),r=n,o=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,n=this.props,r=n.active,o=n.allowEscapeViewBox,i=n.animationDuration,a=n.animationEasing,s=n.children,c=n.coordinate,l=n.hasPayload,u=n.isAnimationActive,f=n.offset,d=n.position,p=n.reverseDirection,h=n.useTranslate3d,g=n.viewBox,v=n.wrapperStyle,y=function(e){var t,n,r=e.allowEscapeViewBox,o=e.coordinate,i=e.offsetTopLeft,a=e.position,s=e.reverseDirection,c=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox;return{cssProperties:c.height>0&&c.width>0&&o?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=ew({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:c.width,viewBox:u,viewBoxDimension:u.width}),translateY:n=ew({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:c.height,viewBox:u,viewBoxDimension:u.height}),useTranslate3d:l}):Jb,cssClasses:Qb({translateX:t,translateY:n,coordinate:o})}}({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:f,position:d,reverseDirection:p,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:h,viewBox:g}),m=y.cssClasses,b=y.cssProperties,w=rw(rw({transition:u&&r?"transform ".concat(i,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return t.createElement("div",{tabIndex:-1,className:m,style:w,ref:function(t){e.wrapperNode=t}},s)}}],o&&ow(r.prototype,o),i&&ow(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}(),pw={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return pw[e]},set:function(e,t){if("string"==typeof e)pw[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){pw[t]=e[t]}))}}};function hw(e){return hw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hw(e)}function gw(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 vw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gw(Object(n),!0).forEach((function(t){Cw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yw(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,Sw(r.key),r)}}function mw(e,t,n){return t=ww(t),function(e,t){if(t&&("object"===hw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bw()?Reflect.construct(t,n||[],ww(e).constructor):t.apply(e,n))}function bw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bw=function(){return!!e})()}function ww(e){return ww=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ww(e)}function xw(e,t){return xw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xw(e,t)}function Cw(e,t,n){return(t=Sw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sw(e){var t=function(e,t){if("object"!=hw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hw(t)?t:String(t)}function _w(e){return e.dataKey}var Ow=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),mw(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xw(e,t)}(n,t.PureComponent),r=n,o=[{key:"render",value:function(){var e=this,n=this.props,r=n.active,o=n.allowEscapeViewBox,i=n.animationDuration,a=n.animationEasing,s=n.content,c=n.coordinate,l=n.filterNull,u=n.isAnimationActive,f=n.offset,d=n.payload,p=n.payloadUniqBy,h=n.position,g=n.reverseDirection,v=n.useTranslate3d,y=n.viewBox,m=n.wrapperStyle,b=null!=d?d:[];l&&b.length&&(b=Sm(d.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,_w));var w=b.length>0;return t.createElement(dw,{allowEscapeViewBox:o,animationDuration:i,animationEasing:a,isAnimationActive:u,active:r,coordinate:c,hasPayload:w,offset:f,position:h,reverseDirection:g,useTranslate3d:v,viewBox:y,wrapperStyle:m},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):"function"==typeof e?t.createElement(e,n):t.createElement(qb,n)}(s,vw(vw({},this.props),{},{payload:b})))}}],o&&yw(r.prototype,o),i&&yw(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();Cw(Ow,"displayName","Tooltip"),Cw(Ow,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!pw.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var kw=Yc,Ew=/\s/;var jw=function(e){for(var t=e.length;t--&&Ew.test(e.charAt(t)););return t},Aw=jw,Tw=/^\s+/;var Mw=function(e){return e?e.slice(0,Aw(e)+1).replace(Tw,""):e},Pw=Mw,Dw=ml,Lw=dl,Iw=/^[-+]0x[0-9a-f]+$/i,Rw=/^0b[01]+$/i,Nw=/^0o[0-7]+$/i,Bw=parseInt;var Fw=function(e){if("number"==typeof e)return e;if(Lw(e))return NaN;if(Dw(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Dw(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Pw(e);var n=Rw.test(e);return n||Nw.test(e)?Bw(e.slice(2),n?2:8):Iw.test(e)?NaN:+e},zw=ml,Hw=function(){return kw.Date.now()},Vw=Fw,Kw=Math.max,$w=Math.min;var Uw=function(e,t,n){var r,o,i,a,s,c,l=0,u=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-l>=i}function g(){var e=Hw();if(h(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-c);return f?$w(n,i-(e-l)):n}(e))}function v(e){return s=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=Hw(),n=h(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return l=e,s=setTimeout(g,t),u?p(e):a}(c);if(f)return clearTimeout(s),s=setTimeout(g,t),p(c)}return void 0===s&&(s=setTimeout(g,t)),a}return t=Vw(t)||0,zw(n)&&(u=!!n.leading,i=(f="maxWait"in n)?Kw(Vw(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=o=s=void 0},y.flush=function(){return void 0===s?a:v(Hw())},y},Ww=Uw,Zw=ml;var qw=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Zw(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ww(e,t,{leading:r,maxWait:t,trailing:o})},Gw=ct(qw);function Yw(e){return Yw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yw(e)}function Xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xw(Object(n),!0).forEach((function(t){Qw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qw(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Yw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Yw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yw(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ex(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tx(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 tx(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 tx(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 nx=t.forwardRef((function(e,n){var r=e.aspect,o=e.initialDimension,i=void 0===o?{width:-1,height:-1}:o,a=e.width,s=void 0===a?"100%":a,c=e.height,l=void 0===c?"100%":c,u=e.minWidth,f=void 0===u?0:u,d=e.minHeight,p=e.maxHeight,h=e.children,g=e.debounce,v=void 0===g?0:g,y=e.id,m=e.className,b=e.onResize,w=e.style,x=void 0===w?{}:w,C=t.useRef(null),S=t.useRef();S.current=b,t.useImperativeHandle(n,(function(){return Object.defineProperty(C.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),C.current},configurable:!0})}));var _=ex(t.useState({containerWidth:i.width,containerHeight:i.height}),2),O=_[0],k=_[1],E=t.useCallback((function(e,t){k((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);t.useEffect((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;E(r,o),null===(t=S.current)||void 0===t||t.call(S,r,o)};v>0&&(e=Gw(e,v,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=C.current.getBoundingClientRect(),r=n.width,o=n.height;return E(r,o),t.observe(C.current),function(){t.disconnect()}}),[E,v]);var j=t.useMemo((function(){var e=O.containerWidth,n=O.containerHeight;if(e<0||n<0)return null;Td(Hf(s)||Hf(l),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",s,l),Td(!r||r>0,"The aspect(%s) must be greater than zero.",r);var o=Hf(s)?e:s,i=Hf(l)?n:l;r&&r>0&&(o?i=o/r:i&&(o=i*r),p&&i>p&&(i=p)),Td(o>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",o,i,s,l,f,d,r);var a=!Array.isArray(h)&&Df.isElement(h)&&ld(h.type).endsWith("Chart");return t.Children.map(h,(function(e){return Df.isElement(e)?t.cloneElement(e,Jw({width:o,height:i},a?{style:Jw({height:"100%",width:"100%",maxHeight:i,maxWidth:o},e.props.style)}:{})):e}))}),[r,h,l,p,d,f,O,s]);return t.createElement("div",{id:y?"".concat(y):void 0,className:Uc("recharts-responsive-container",m),style:Jw(Jw({},x),{},{width:s,height:l,minWidth:f,minHeight:d,maxHeight:p}),ref:C},j)})),rx=function(e){return null};function ox(e){return ox="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ox(e)}function ix(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 ax(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ix(Object(n),!0).forEach((function(t){sx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ix(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sx(e,t,n){return t=function(e){var t=function(e,t){if("object"!=ox(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ox(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ox(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}rx.displayName="Cell";var cx={widthCache:{},cacheCount:0},lx={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ux="recharts_measurement_span";var fx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||pw.isSsr)return{width:0,height:0};var n,r=(n=ax({},t),Object.keys(n).forEach((function(e){n[e]||delete n[e]})),n),o=JSON.stringify({text:e,copyStyle:r});if(cx.widthCache[o])return cx.widthCache[o];try{var i=document.getElementById(ux);i||((i=document.createElement("span")).setAttribute("id",ux),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=ax(ax({},lx),r);Object.assign(i.style,a),i.textContent="".concat(e);var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return cx.widthCache[o]=c,++cx.cacheCount>2e3&&(cx.cacheCount=0,cx.widthCache={}),c}catch(e){return{width:0,height:0}}};function dx(e){return dx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dx(e)}function px(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hx(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 hx(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 hx(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 gx(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,vx(r.key),r)}}function vx(e){var t=function(e,t){if("object"!=dx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=dx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dx(t)?t:String(t)}var yx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,mx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bx=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,wx=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,xx={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Cx=Object.keys(xx),Sx="NaN";var _x=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),""===n||bx.test(n)||(this.num=NaN,this.unit=""),Cx.includes(n)&&(this.num=function(e,t){return e*xx[t]}(t,n),this.unit="px")}var t,n,r;return t=e,r=[{key:"parse",value:function(t){var n,r=px(null!==(n=wx.exec(t))&&void 0!==n?n:[],3),o=r[1],i=r[2];return new e(parseFloat(o),null!=i?i:"")}}],(n=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&gx(t.prototype,n),r&&gx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ox(e){if(e.includes(Sx))return Sx;for(var t=e;t.includes("*")||t.includes("/");){var n,r=px(null!==(n=yx.exec(t))&&void 0!==n?n:[],4),o=r[1],i=r[2],a=r[3],s=_x.parse(null!=o?o:""),c=_x.parse(null!=a?a:""),l="*"===i?s.multiply(c):s.divide(c);if(l.isNaN())return Sx;t=t.replace(yx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,f=px(null!==(u=mx.exec(t))&&void 0!==u?u:[],4),d=f[1],p=f[2],h=f[3],g=_x.parse(null!=d?d:""),v=_x.parse(null!=h?h:""),y="+"===p?g.add(v):g.subtract(v);if(y.isNaN())return Sx;t=t.replace(mx,y.toString())}return t}var kx=/\(([^()]*)\)/;function Ex(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=px(kx.exec(t),2)[1];t=t.replace(kx,Ox(n))}return t}(t),t=Ox(t)}function jx(e){var t=function(e){try{return Ex(e)}catch(e){return Sx}}(e.slice(5,-1));return t===Sx?"":t}var Ax=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Tx=["dx","dy","angle","className","breakAll"];function Mx(){return Mx=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},Mx.apply(this,arguments)}function Px(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 Dx(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Lx(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 Lx(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 Lx(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 Ix=/[ \f\n\r\t\v\u2028\u2029]+/,Rx=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return Sf(t)||(o=n?t.toString().split(""):t.toString().split(Ix)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:fx(e,r).width}})),spaceWidth:n?0:fx(" ",r).width}}catch(e){return null}},Nx=function(e){return[{words:Sf(e)?[]:e.toString().split(Ix)}]},Bx=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!pw.isSsr){var s=Rx({breakAll:i,children:r,style:o});return s?function(e,t,n,r,o){var i=e.maxLines,a=e.children,s=e.style,c=e.breakAll,l=Vf(i),u=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<Number(r)))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},d=f(t);if(!l)return d;for(var p,h=function(e){var t=u.slice(0,e),n=Rx({breakAll:c,style:s,children:t+"…"}).wordsWithComputedWidth,o=f(n),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[a,o]},g=0,v=u.length-1,y=0;g<=v&&y<=u.length-1;){var m=Math.floor((g+v)/2),b=Dx(h(m-1),2),w=b[0],x=b[1],C=Dx(h(m),1)[0];if(w||C||(g=m+1),w&&C&&(v=m-1),!w&&C){p=x;break}y++}return p||d}({breakAll:i,children:r,maxLines:a,style:o},s.wordsWithComputedWidth,s.spaceWidth,t,n):Nx(r)}return Nx(r)},Fx="#808080",zx=function(e){var n=e.x,r=void 0===n?0:n,o=e.y,i=void 0===o?0:o,a=e.lineHeight,s=void 0===a?"1em":a,c=e.capHeight,l=void 0===c?"0.71em":c,u=e.scaleToFit,f=void 0!==u&&u,d=e.textAnchor,p=void 0===d?"start":d,h=e.verticalAnchor,g=void 0===h?"end":h,v=e.fill,y=void 0===v?Fx:v,m=Px(e,Ax),b=t.useMemo((function(){return Bx({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:f,style:m.style,width:m.width})}),[m.breakAll,m.children,m.maxLines,f,m.style,m.width]),w=m.dx,x=m.dy,C=m.angle,S=m.className,_=m.breakAll,O=Px(m,Tx);if(!Kf(r)||!Kf(i))return null;var k,E=r+(Vf(w)?w:0),j=i+(Vf(x)?x:0);switch(g){case"start":k=jx("calc(".concat(l,")"));break;case"middle":k=jx("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:k=jx("calc(".concat(b.length-1," * -").concat(s,")"))}var A=[];if(f){var T=b[0].width,M=m.width;A.push("scale(".concat((Vf(M)?M/T:1)/T,")"))}return C&&A.push("rotate(".concat(C,", ").concat(E,", ").concat(j,")")),A.length&&(O.transform=A.join(" ")),t.createElement("text",Mx({},yd(O,!0),{x:E,y:j,className:Uc("recharts-text",S),textAnchor:p,fill:y.includes("url")?Fx:y}),b.map((function(e,n){var r=e.words.join(_?"":" ");return t.createElement("tspan",{x:E,dy:0===n?k:s,key:r},r)})))};function Hx(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Vx(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Kx(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=Hx,n=(t,n)=>Hx(e(t),n),r=(t,n)=>e(t)-n):(t=e===Hx||e===Vx?e:$x,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 $x(){return 0}function Ux(e){return null===e?NaN:+e}const Wx=Kx(Hx).right;Kx(Ux).center;class Zx extends Map{constructor(e,t=Gx){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(qx(this,e))}has(e){return super.has(qx(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 qx({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Gx(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Yx(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const Xx=Math.sqrt(50),Jx=Math.sqrt(10),Qx=Math.sqrt(2);function eC(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>=Xx?10:i>=Jx?5:i>=Qx?2:1;let s,c,l;return o<0?(l=Math.pow(10,-o)/a,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,o)*a,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?eC(e,t,2*n):[s,c,l]}function tC(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?eC(t,e,n):eC(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 nC(e,t,n){return eC(e=+e,t=+t,n=+n)[2]}function rC(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?nC(t,e,n):nC(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function oC(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 iC(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 aC(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?Yx:function(e=Hx){if(e===Hx)return Yx;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),l=.5*Math.sqrt(s*c*(i-c)/i)*(a-i/2<0?-1:1);aC(e,t,Math.max(n,Math.floor(t-a*c/i+l)),Math.min(r,Math.floor(t+(i-a)*c/i+l)),o)}const i=e[t];let a=n,s=r;for(sC(e,n,t),o(e[r],i)>0&&sC(e,n,r);a<s;){for(sC(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?sC(e,n,s):(++s,sC(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function sC(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function cC(e,t,n=Ux){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 lC(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function uC(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 fC=Symbol("implicit");function dC(){var e=new Zx,t=[],n=[],r=fC;function o(o){let i=e.get(o);if(void 0===i){if(r!==fC)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 Zx;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 dC(t,n).unknown(r)},lC.apply(o,arguments),o}function pC(){var e,t,n=dC().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,l=0,u=.5;function f(){var n=r().length,f=a<i,d=f?a:i,p=f?i:a;e=(p-d)/Math.max(1,n-c+2*l),s&&(e=Math.floor(e)),d+=(p-d-e*(n-c))*u,t=e*(1-c),s&&(d=Math.round(d),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return d+e*t}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(l=+e,f()):l},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),f()):u},n.copy=function(){return pC(r(),[i,a]).round(s).paddingInner(c).paddingOuter(l).align(u)},lC.apply(f(),arguments)}function hC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return hC(t())},e}function gC(){return hC(pC.apply(null,arguments).paddingInner(1))}function vC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function mC(){}var bC=.7,wC=1/bC,xC="\\s*([+-]?\\d+)\\s*",CC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",SC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_C=/^#([0-9a-f]{3,8})$/,OC=new RegExp(`^rgb\\(${xC},${xC},${xC}\\)$`),kC=new RegExp(`^rgb\\(${SC},${SC},${SC}\\)$`),EC=new RegExp(`^rgba\\(${xC},${xC},${xC},${CC}\\)$`),jC=new RegExp(`^rgba\\(${SC},${SC},${SC},${CC}\\)$`),AC=new RegExp(`^hsl\\(${CC},${SC},${SC}\\)$`),TC=new RegExp(`^hsla\\(${CC},${SC},${SC},${CC}\\)$`),MC={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 PC(){return this.rgb().formatHex()}function DC(){return this.rgb().formatRgb()}function LC(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_C.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?IC(t):3===n?new BC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?RC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?RC(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=OC.exec(e))?new BC(t[1],t[2],t[3],1):(t=kC.exec(e))?new BC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=EC.exec(e))?RC(t[1],t[2],t[3],t[4]):(t=jC.exec(e))?RC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=AC.exec(e))?$C(t[1],t[2]/100,t[3]/100,1):(t=TC.exec(e))?$C(t[1],t[2]/100,t[3]/100,t[4]):MC.hasOwnProperty(e)?IC(MC[e]):"transparent"===e?new BC(NaN,NaN,NaN,0):null}function IC(e){return new BC(e>>16&255,e>>8&255,255&e,1)}function RC(e,t,n,r){return r<=0&&(e=t=n=NaN),new BC(e,t,n,r)}function NC(e,t,n,r){return 1===arguments.length?function(e){return e instanceof mC||(e=LC(e)),e?new BC((e=e.rgb()).r,e.g,e.b,e.opacity):new BC}(e):new BC(e,t,n,null==r?1:r)}function BC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function FC(){return`#${KC(this.r)}${KC(this.g)}${KC(this.b)}`}function zC(){const e=HC(this.opacity);return`${1===e?"rgb(":"rgba("}${VC(this.r)}, ${VC(this.g)}, ${VC(this.b)}${1===e?")":`, ${e})`}`}function HC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function VC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function KC(e){return((e=VC(e))<16?"0":"")+e.toString(16)}function $C(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new WC(e,t,n,r)}function UC(e){if(e instanceof WC)return new WC(e.h,e.s,e.l,e.opacity);if(e instanceof mC||(e=LC(e)),!e)return new WC;if(e instanceof WC)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 WC(a,s,c,e.opacity)}function WC(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ZC(e){return(e=(e||0)%360)<0?e+360:e}function qC(e){return Math.max(0,Math.min(1,e||0))}function GC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vC(mC,LC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:PC,formatHex:PC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return UC(this).formatHsl()},formatRgb:DC,toString:DC}),vC(BC,NC,yC(mC,{brighter(e){return e=null==e?wC:Math.pow(wC,e),new BC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?bC:Math.pow(bC,e),new BC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new BC(VC(this.r),VC(this.g),VC(this.b),HC(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:FC,formatHex:FC,formatHex8:function(){return`#${KC(this.r)}${KC(this.g)}${KC(this.b)}${KC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:zC,toString:zC})),vC(WC,(function(e,t,n,r){return 1===arguments.length?UC(e):new WC(e,t,n,null==r?1:r)}),yC(mC,{brighter(e){return e=null==e?wC:Math.pow(wC,e),new WC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?bC:Math.pow(bC,e),new WC(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 BC(GC(e>=240?e-240:e+120,o,r),GC(e,o,r),GC(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new WC(ZC(this.h),qC(this.s),qC(this.l),HC(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=HC(this.opacity);return`${1===e?"hsl(":"hsla("}${ZC(this.h)}, ${100*qC(this.s)}%, ${100*qC(this.l)}%${1===e?")":`, ${e})`}`}}));var YC=e=>()=>e;function XC(e){return 1==(e=+e)?JC: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):YC(isNaN(t)?n:t)}}function JC(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):YC(isNaN(e)?t:e)}var QC=function e(t){var n=XC(t);function r(e,t){var r=n((e=NC(e)).r,(t=NC(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=JC(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 eS(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 tS(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]=cS(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 nS(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function rS(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function oS(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]=cS(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var iS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,aS=new RegExp(iS.source,"g");function sS(e,t){var n,r,o,i=iS.lastIndex=aS.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=iS.exec(e))&&(r=aS.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:rS(n,r)})),i=aS.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 cS(e,t){var n,r=typeof t;return null==t||"boolean"===r?YC(t):("number"===r?rS:"string"===r?(n=LC(t))?(t=n,QC):sS:t instanceof LC?QC:t instanceof Date?nS:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?eS:Array.isArray(t)?tS:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?oS:rS)(e,t)}function lS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function uS(e,t){void 0===t&&(t=e,e=cS);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 fS(e){return+e}var dS=[0,1];function pS(e){return e}function hS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function gS(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=hS(o,r),i=n(a,i)):(r=hS(r,o),i=n(i,a)),function(e){return i(r(e))}}function vS(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]=hS(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Wx(e,t,1,r)-1;return i[n](o[n](t))}}function yS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function mS(){var e,t,n,r,o,i,a=dS,s=dS,c=cS,l=pS;function u(){var e=Math.min(a.length,s.length);return l!==pS&&(l=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?vS:gS,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(l(t)))}return f.invert=function(n){return l(t((i||(i=r(s,a.map(e),rS)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,fS),u()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),c=lS,u()},f.clamp=function(e){return arguments.length?(l=!!e||pS,u()):l!==pS},f.interpolate=function(e){return arguments.length?(c=e,u()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,u()}}function bS(){return mS()(pS,pS)}function wS(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 xS(e){return(e=wS(Math.abs(e)))?e[1]:NaN}var CS,SS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _S(e){if(!(t=SS.exec(e)))throw new Error("invalid format: "+e);var t;return new OS({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 OS(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 kS(e,t){var n=wS(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")}_S.prototype=OS.prototype,OS.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 ES={"%":(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)=>kS(100*e,t),r:kS,s:function(e,t){var n=wS(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(CS=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")+wS(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function jS(e){return e}var AS,TS,MS,PS=Array.prototype.map,DS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function LS(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?jS:(t=PS.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?jS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(PS.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=_S(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,g=e.comma,v=e.precision,y=e.trim,m=e.type;"n"===m?(g=!0,m="g"):ES[m]||(void 0===v&&(v=12),y=!0,m="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===d?i:/[%p]/.test(m)?c:"",x=ES[m],C=/[defgprs%]/.test(m);function S(e){var o,i,c,d=b,S=w;if("c"===m)S=x(e)+S,e="";else{var _=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),v),y&&(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)),_&&0==+e&&"+"!==f&&(_=!1),d=(_?"("===f?f:l:"-"===f||"("===f?"":f)+d,S=("s"===m?DS[8+CS/3]:"")+S+(_&&"("===f?")":""),C)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){S=(46===c?a+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var O=d.length+e.length+S.length,k=O<h?new Array(h-O+1).join(t):"";switch(g&&p&&(e=r(k+e,k.length?h-S.length:1/0),k=""),n){case"<":e=d+e+S+k;break;case"=":e=d+k+e+S;break;case"^":e=k.slice(0,O=k.length>>1)+d+e+S+k.slice(O);break;default:e=k+d+e+S}return s(e)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return e+""},S}return{format:f,formatPrefix:function(e,t){var n=f(((e=_S(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(xS(t)/3))),o=Math.pow(10,-r),i=DS[8+r/3];return function(e){return n(o*e)+i}}}}function IS(e,t,n,r){var o,i=rC(e,t,n);switch((r=_S(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(xS(t)/3)))-xS(Math.abs(e)))}(i,a))||(r.precision=o),MS(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,xS(t)-xS(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,-xS(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return TS(r)}function RS(e){var t=e.domain;return e.ticks=function(e){var n=t();return tC(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return IS(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],l=i[s],u=10;for(l<c&&(o=c,c=l,l=o,o=a,a=s,s=o);u-- >0;){if((o=nC(c,l,n))===r)return i[a]=c,i[s]=l,t(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}r=o}return e},e}function NS(){var e=bS();return e.copy=function(){return yS(e,NS())},lC.apply(e,arguments),RS(e)}function BS(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 FS(e){return Math.log(e)}function zS(e){return Math.exp(e)}function HS(e){return-Math.log(-e)}function VS(e){return-Math.exp(-e)}function KS(e){return isFinite(e)?+("1e"+e):e<0?0:e}function $S(e){return(t,n)=>-e(-t,n)}function US(e){const t=e(FS,zS),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?KS:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=$S(r),o=$S(o),e(HS,VS)):e(FS,zS),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 l,u,f=r(a),d=r(s);const p=null==e?10:+e;let h=[];if(!(i%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(l=1;l<i;++l)if(u=f<0?l/o(-f):l*o(f),!(u<a)){if(u>s)break;h.push(u)}}else for(;f<=d;++f)for(l=i-1;l>=1;--l)if(u=f>0?l/o(-f):l*o(f),!(u<a)){if(u>s)break;h.push(u)}2*h.length<p&&(h=tC(a,s,p))}else h=tC(f,d,Math.min(d-f,p)).map(o);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=_S(n)).precision||(n.trim=!0),n=TS(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(BS(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function WS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ZS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function qS(e){var t=1,n=e(WS(t),ZS(t));return n.constant=function(n){return arguments.length?e(WS(t=+n),ZS(t)):t},RS(n)}function GS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function YS(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function XS(e){return e<0?-e*e:e*e}function JS(e){var t=e(pS,pS),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(pS,pS):.5===n?e(YS,XS):e(GS(n),GS(1/n)):n},RS(t)}function QS(){var e=JS(mS());return e.copy=function(){return yS(e,QS()).exponent(e.exponent())},lC.apply(e,arguments),e}function e_(e){return Math.sign(e)*e*e}AS=LS({thousands:",",grouping:[3],currency:["$",""]}),TS=AS.format,MS=AS.formatPrefix;const t_=new Date,n_=new Date;function r_(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=>r_((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)=>(t_.setTime(+t),n_.setTime(+r),e(t_),e(n_),Math.floor(n(t_,n_))),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 o_=r_((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));o_.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?r_((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):o_:null),o_.range;const i_=1e3,a_=6e4,s_=36e5,c_=864e5,l_=6048e5,u_=2592e6,f_=31536e6,d_=r_((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*i_)}),((e,t)=>(t-e)/i_),(e=>e.getUTCSeconds()));d_.range;const p_=r_((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*i_)}),((e,t)=>{e.setTime(+e+t*a_)}),((e,t)=>(t-e)/a_),(e=>e.getMinutes()));p_.range;const h_=r_((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*a_)}),((e,t)=>(t-e)/a_),(e=>e.getUTCMinutes()));h_.range;const g_=r_((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*i_-e.getMinutes()*a_)}),((e,t)=>{e.setTime(+e+t*s_)}),((e,t)=>(t-e)/s_),(e=>e.getHours()));g_.range;const v_=r_((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*s_)}),((e,t)=>(t-e)/s_),(e=>e.getUTCHours()));v_.range;const y_=r_((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a_)/c_),(e=>e.getDate()-1));y_.range;const m_=r_((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/c_),(e=>e.getUTCDate()-1));m_.range;const b_=r_((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/c_),(e=>Math.floor(e/c_)));function w_(e){return r_((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())*a_)/l_))}b_.range;const x_=w_(0),C_=w_(1),S_=w_(2),__=w_(3),O_=w_(4),k_=w_(5),E_=w_(6);function j_(e){return r_((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)/l_))}x_.range,C_.range,S_.range,__.range,O_.range,k_.range,E_.range;const A_=j_(0),T_=j_(1),M_=j_(2),P_=j_(3),D_=j_(4),L_=j_(5),I_=j_(6);A_.range,T_.range,M_.range,P_.range,D_.range,L_.range,I_.range;const R_=r_((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()));R_.range;const N_=r_((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()));N_.range;const B_=r_((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()));B_.every=e=>isFinite(e=Math.floor(e))&&e>0?r_((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,B_.range;const F_=r_((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 z_(e,t,n,r,o,i){const a=[[d_,1,i_],[d_,5,5e3],[d_,15,15e3],[d_,30,3e4],[i,1,a_],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,s_],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,c_],[r,2,1728e5],[n,1,l_],[t,1,u_],[t,3,7776e6],[e,1,f_]];function s(t,n,r){const o=Math.abs(n-t)/r,i=Kx((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(rC(t/f_,n/f_,r));if(0===i)return o_.every(Math.max(rC(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]}F_.every=e=>isFinite(e=Math.floor(e))&&e>0?r_((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,F_.range;const[H_,V_]=z_(F_,N_,A_,b_,v_,h_),[K_,$_]=z_(B_,R_,x_,y_,g_,p_);function U_(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 W_(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 Z_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var q_,G_,Y_,X_={"-":"",_:" ",0:"0"},J_=/^\s*\d+/,Q_=/^%/,eO=/[\\^$*+?|[\]().{}]/g;function tO(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 nO(e){return e.replace(eO,"\\$&")}function rO(e){return new RegExp("^(?:"+e.map(nO).join("|")+")","i")}function oO(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function iO(e,t,n){var r=J_.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function aO(e,t,n){var r=J_.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function sO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function cO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function lO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function uO(e,t,n){var r=J_.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function fO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function dO(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 pO(e,t,n){var r=J_.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function hO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function gO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function vO(e,t,n){var r=J_.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function yO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function bO(e,t,n){var r=J_.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wO(e,t,n){var r=J_.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function xO(e,t,n){var r=J_.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function CO(e,t,n){var r=Q_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function SO(e,t,n){var r=J_.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function _O(e,t,n){var r=J_.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function OO(e,t){return tO(e.getDate(),t,2)}function kO(e,t){return tO(e.getHours(),t,2)}function EO(e,t){return tO(e.getHours()%12||12,t,2)}function jO(e,t){return tO(1+y_.count(B_(e),e),t,3)}function AO(e,t){return tO(e.getMilliseconds(),t,3)}function TO(e,t){return AO(e,t)+"000"}function MO(e,t){return tO(e.getMonth()+1,t,2)}function PO(e,t){return tO(e.getMinutes(),t,2)}function DO(e,t){return tO(e.getSeconds(),t,2)}function LO(e){var t=e.getDay();return 0===t?7:t}function IO(e,t){return tO(x_.count(B_(e)-1,e),t,2)}function RO(e){var t=e.getDay();return t>=4||0===t?O_(e):O_.ceil(e)}function NO(e,t){return e=RO(e),tO(O_.count(B_(e),e)+(4===B_(e).getDay()),t,2)}function BO(e){return e.getDay()}function FO(e,t){return tO(C_.count(B_(e)-1,e),t,2)}function zO(e,t){return tO(e.getFullYear()%100,t,2)}function HO(e,t){return tO((e=RO(e)).getFullYear()%100,t,2)}function VO(e,t){return tO(e.getFullYear()%1e4,t,4)}function KO(e,t){var n=e.getDay();return tO((e=n>=4||0===n?O_(e):O_.ceil(e)).getFullYear()%1e4,t,4)}function $O(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tO(t/60|0,"0",2)+tO(t%60,"0",2)}function UO(e,t){return tO(e.getUTCDate(),t,2)}function WO(e,t){return tO(e.getUTCHours(),t,2)}function ZO(e,t){return tO(e.getUTCHours()%12||12,t,2)}function qO(e,t){return tO(1+m_.count(F_(e),e),t,3)}function GO(e,t){return tO(e.getUTCMilliseconds(),t,3)}function YO(e,t){return GO(e,t)+"000"}function XO(e,t){return tO(e.getUTCMonth()+1,t,2)}function JO(e,t){return tO(e.getUTCMinutes(),t,2)}function QO(e,t){return tO(e.getUTCSeconds(),t,2)}function ek(e){var t=e.getUTCDay();return 0===t?7:t}function tk(e,t){return tO(A_.count(F_(e)-1,e),t,2)}function nk(e){var t=e.getUTCDay();return t>=4||0===t?D_(e):D_.ceil(e)}function rk(e,t){return e=nk(e),tO(D_.count(F_(e),e)+(4===F_(e).getUTCDay()),t,2)}function ok(e){return e.getUTCDay()}function ik(e,t){return tO(T_.count(F_(e)-1,e),t,2)}function ak(e,t){return tO(e.getUTCFullYear()%100,t,2)}function sk(e,t){return tO((e=nk(e)).getUTCFullYear()%100,t,2)}function ck(e,t){return tO(e.getUTCFullYear()%1e4,t,4)}function lk(e,t){var n=e.getUTCDay();return tO((e=n>=4||0===n?D_(e):D_.ceil(e)).getUTCFullYear()%1e4,t,4)}function uk(){return"+0000"}function fk(){return"%"}function dk(e){return+e}function pk(e){return Math.floor(+e/1e3)}function hk(e){return new Date(e)}function gk(e){return e instanceof Date?+e:+new Date(+e)}function vk(e,t,n,r,o,i,a,s,c,l){var u=bS(),f=u.invert,d=u.domain,p=l(".%L"),h=l(":%S"),g=l("%I:%M"),v=l("%I %p"),y=l("%a %d"),m=l("%b %d"),b=l("%B"),w=l("%Y");function x(e){return(c(e)<e?p:s(e)<e?h:a(e)<e?g:i(e)<e?v:r(e)<e?o(e)<e?y:m:n(e)<e?b:w)(e)}return u.invert=function(e){return new Date(f(e))},u.domain=function(e){return arguments.length?d(Array.from(e,gk)):d().map(hk)},u.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:l(t)},u.nice=function(e){var n=d();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(BS(n,e)):u},u.copy=function(){return yS(u,vk(e,t,n,r,o,i,a,s,c,l))},u}function yk(){var e,t,n,r,o,i=0,a=1,s=pS,c=!1;function l(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 u(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),l):[s(0),s(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),l):[i,a]},l.clamp=function(e){return arguments.length?(c=!!e,l):c},l.interpolator=function(e){return arguments.length?(s=e,l):s},l.range=u(cS),l.rangeRound=u(lS),l.unknown=function(e){return arguments.length?(o=e,l):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),l}}function mk(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function bk(){var e=JS(yk());return e.copy=function(){return mk(e,bk()).exponent(e.exponent())},uC.apply(e,arguments)}function wk(){var e,t,n,r,o,i,a,s=0,c=.5,l=1,u=1,f=pS,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(u*e<u*t?r:o),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=uS(e,[n,r,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([s,c,l]=a,e=i(s=+s),t=i(c=+c),n=i(l=+l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p):[s,c,l]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(cS),p.rangeRound=h(lS),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(s),t=a(c),n=a(l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function xk(){var e=JS(wk());return e.copy=function(){return mk(e,xk()).exponent(e.exponent())},uC.apply(e,arguments)}!function(e){q_=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,l=rO(o),u=oO(o),f=rO(i),d=oO(i),p=rO(a),h=oO(a),g=rO(s),v=oO(s),y=rO(c),m=oO(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:OO,e:OO,f:TO,g:HO,G:KO,H:kO,I:EO,j:jO,L:AO,m:MO,M:PO,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:dk,s:pk,S:DO,u:LO,U:IO,V:NO,w:BO,W:FO,x:null,X:null,y:zO,Y:VO,Z:$O,"%":fk},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:UO,e:UO,f:YO,g:sk,G:lk,H:WO,I:ZO,j:qO,L:GO,m:XO,M:JO,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:dk,s:pk,S:QO,u:ek,U:tk,V:rk,w:ok,W:ik,x:null,X:null,y:ak,Y:ck,Z:uk,"%":fk},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.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=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return _(e,t,n,r)},d:gO,e:gO,f:xO,g:fO,G:uO,H:yO,I:yO,j:vO,L:wO,m:hO,M:mO,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:pO,Q:SO,s:_O,S:bO,u:aO,U:sO,V:cO,w:iO,W:lO,x:function(e,t,r){return _(e,n,t,r)},X:function(e,t,n){return _(e,r,t,n)},y:fO,Y:uO,Z:dO,"%":CO};function C(e,t){return function(n){var r,o,i,a=[],s=-1,c=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(o=X_[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 S(e,t){return function(n){var r,o,i=Z_(1900,void 0,1);if(_(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=W_(Z_(i.y,0,1))).getUTCDay(),r=o>4||0===o?T_.ceil(r):T_(r),r=m_.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=U_(Z_(i.y,0,1))).getDay(),r=o>4||0===o?C_.ceil(r):C_(r),r=y_.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?W_(Z_(i.y,0,1)).getUTCDay():U_(Z_(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,W_(i)):U_(i)}}function _(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 X_?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),w.x=C(n,w),w.X=C(r,w),w.c=C(t,w),{format:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}(e),G_=q_.format,q_.parse,Y_=q_.utcFormat,q_.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 Ck=Object.freeze({__proto__:null,scaleBand:pC,scaleDiverging:function e(){var t=RS(wk()(pS));return t.copy=function(){return mk(t,e())},uC.apply(t,arguments)},scaleDivergingLog:function e(){var t=US(wk()).domain([.1,1,10]);return t.copy=function(){return mk(t,e()).base(t.base())},uC.apply(t,arguments)},scaleDivergingPow:xk,scaleDivergingSqrt:function(){return xk.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=qS(wk());return t.copy=function(){return mk(t,e()).constant(t.constant())},uC.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,fS),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,fS):[0,1],RS(r)},scaleImplicit:fC,scaleLinear:NS,scaleLog:function e(){const t=US(mS()).domain([1,10]);return t.copy=()=>yS(t,e()).base(t.base()),lC.apply(t,arguments),t},scaleOrdinal:dC,scalePoint:gC,scalePow:QS,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]=cC(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[Wx(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(Hx),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)},lC.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[Wx(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)},lC.apply(RS(s),arguments)},scaleRadial:function e(){var t,n=bS(),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(e_(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,fS)).map(e_)),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)},lC.apply(i,arguments),RS(i)},scaleSequential:function e(){var t=RS(yk()(pS));return t.copy=function(){return mk(t,e())},uC.apply(t,arguments)},scaleSequentialLog:function e(){var t=US(yk()).domain([1,10]);return t.copy=function(){return mk(t,e()).base(t.base())},uC.apply(t,arguments)},scaleSequentialPow:bk,scaleSequentialQuantile:function e(){var t=[],n=pS;function r(e){if(null!=e&&!isNaN(e=+e))return n((Wx(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(Hx),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 iC(e);if(t>=1)return oC(e);var r,o=(r-1)*t,i=Math.floor(o),a=oC(aC(e,i).subarray(0,i+1));return a+(iC(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},uC.apply(r,arguments)},scaleSequentialSqrt:function(){return bk.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=qS(yk());return t.copy=function(){return mk(t,e()).constant(t.constant())},uC.apply(t,arguments)},scaleSqrt:function(){return QS.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=qS(mS());return t.copy=function(){return yS(t,e()).constant(t.constant())},lC.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[Wx(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)},lC.apply(i,arguments)},scaleTime:function(){return lC.apply(vk(K_,$_,B_,R_,x_,y_,g_,p_,d_,G_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return lC.apply(vk(H_,V_,F_,N_,A_,m_,v_,h_,d_,Y_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:IS}),Sk=dl;var _k=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&&!Sk(a):n(a,s)))var s=a,c=i}return c};var Ok=function(e,t){return e>t},kk=_k,Ek=Ok,jk=zy;var Ak=function(e){return e&&e.length?kk(e,jk,Ek):void 0},Tk=ct(Ak);var Mk=function(e,t){return e<t},Pk=_k,Dk=Mk,Lk=zy;var Ik=function(e){return e&&e.length?Pk(e,Lk,Dk):void 0},Rk=ct(Ik),Nk=ef,Bk=Qy,Fk=eb,zk=Wc;var Hk=$m,Vk=function(e,t){return(zk(e)?Nk:Fk)(e,Bk(t))};var Kk=ct((function(e,t){return Hk(Vk(e,t),1)})),$k=sy;var Uk,Wk=ct((function(e,t){return $k(e,t)})),Zk=1e9,qk=!0,Gk="[DecimalError] ",Yk=Gk+"Invalid argument: ",Xk=Gk+"Exponent out of range: ",Jk=Math.floor,Qk=Math.pow,eE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,tE=1e7,nE=7,rE=9007199254740991,oE=Jk(rE/nE),iE={};function aE(e,t){var n,r,o,i,a,s,c,l,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),qk?vE(t,f):t;if(c=e.d,l=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=l.length):(r=l,o=a,s=c.length),i>(s=(a=Math.ceil(f/nE))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=l.length)<0&&(i=s,r=l,l=c,c=r),n=0;i;)n=(c[--i]=c[i]+l[i]+n)/tE|0,c[i]%=tE;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,qk?vE(t,f):t}function sE(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Yk+e)}function cE(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=nE-r.length)&&(i+=pE(n)),i+=r;a=e[t],(n=nE-(r=a+"").length)&&(i+=pE(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}iE.absoluteValue=iE.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},iE.comparedTo=iE.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},iE.decimalPlaces=iE.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*nE;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},iE.dividedBy=iE.div=function(e){return lE(this,new this.constructor(e))},iE.dividedToIntegerBy=iE.idiv=function(e){var t=this.constructor;return vE(lE(this,new t(e),0,1),t.precision)},iE.equals=iE.eq=function(e){return!this.cmp(e)},iE.exponent=function(){return fE(this)},iE.greaterThan=iE.gt=function(e){return this.cmp(e)>0},iE.greaterThanOrEqualTo=iE.gte=function(e){return this.cmp(e)>=0},iE.isInteger=iE.isint=function(){return this.e>this.d.length-2},iE.isNegative=iE.isneg=function(){return this.s<0},iE.isPositive=iE.ispos=function(){return this.s>0},iE.isZero=function(){return 0===this.s},iE.lessThan=iE.lt=function(e){return this.cmp(e)<0},iE.lessThanOrEqualTo=iE.lte=function(e){return this.cmp(e)<1},iE.logarithm=iE.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(Uk))throw Error(Gk+"NaN");if(n.s<1)throw Error(Gk+(n.s?"NaN":"-Infinity"));return n.eq(Uk)?new r(0):(qk=!1,t=lE(hE(n,i),hE(e,i),i),qk=!0,vE(t,o))},iE.minus=iE.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?yE(t,e):aE(t,(e.s=-e.s,e))},iE.modulo=iE.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(Gk+"NaN");return n.s?(qk=!1,t=lE(n,e,0,1).times(e),qk=!0,n.minus(t)):vE(new r(n),o)},iE.naturalExponential=iE.exp=function(){return uE(this)},iE.naturalLogarithm=iE.ln=function(){return hE(this)},iE.negated=iE.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},iE.plus=iE.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?aE(t,e):yE(t,(e.s=-e.s,e))},iE.precision=iE.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Yk+e);if(t=fE(o)+1,n=(r=o.d.length-1)*nE+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},iE.squareRoot=iE.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(Gk+"NaN")}for(e=fE(s),qk=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=cE(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Jk((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(lE(s,i,a+2)).times(.5),cE(i.d).slice(0,a)===(t=cE(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(vE(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return qk=!0,vE(r,n)},iE.times=iE.mul=function(e){var t,n,r,o,i,a,s,c,l,u=this,f=u.constructor,d=u.d,p=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,n=u.e+e.e,(c=d.length)<(l=p.length)&&(i=d,d=p,p=i,a=c,c=l,l=a),i=[],r=a=c+l;r--;)i.push(0);for(r=l;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+p[r]*d[o-r-1]+t,i[o--]=s%tE|0,t=s/tE|0;i[o]=(i[o]+t)%tE|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,qk?vE(e,f.precision):e},iE.toDecimalPlaces=iE.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(sE(e,0,Zk),void 0===t?t=r.rounding:sE(t,0,8),vE(n,e+fE(n)+1,t))},iE.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=mE(r,!0):(sE(e,0,Zk),void 0===t?t=o.rounding:sE(t,0,8),n=mE(r=vE(new o(r),e+1,t),!0,e+1)),n},iE.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?mE(o):(sE(e,0,Zk),void 0===t?t=i.rounding:sE(t,0,8),n=mE((r=vE(new i(o),e+fE(o)+1,t)).abs(),!1,e+fE(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},iE.toInteger=iE.toint=function(){var e=this,t=e.constructor;return vE(new t(e),fE(e)+1,t.rounding)},iE.toNumber=function(){return+this},iE.toPower=iE.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,l=+(e=new c(e));if(!e.s)return new c(Uk);if(!(s=new c(s)).s){if(e.s<1)throw Error(Gk+"Infinity");return s}if(s.eq(Uk))return s;if(r=c.precision,e.eq(Uk))return vE(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=l<0?-l:l)<=rE){for(o=new c(Uk),t=Math.ceil(r/nE+4),qk=!1;n%2&&bE((o=o.times(s)).d,t),0!==(n=Jk(n/2));)bE((s=s.times(s)).d,t);return qk=!0,e.s<0?new c(Uk).div(o):vE(o,r)}}else if(i<0)throw Error(Gk+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,qk=!1,o=e.times(hE(s,r+12)),qk=!0,(o=uE(o)).s=i,o},iE.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=mE(o,(n=fE(o))<=i.toExpNeg||n>=i.toExpPos):(sE(e,1,Zk),void 0===t?t=i.rounding:sE(t,0,8),r=mE(o=vE(new i(o),e,t),e<=(n=fE(o))||n<=i.toExpNeg,e)),r},iE.toSignificantDigits=iE.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(sE(e,1,Zk),void 0===t?t=n.rounding:sE(t,0,8)),vE(new n(this),e,t)},iE.toString=iE.valueOf=iE.val=iE.toJSON=iE[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=fE(e),n=e.constructor;return mE(e,t<=n.toExpNeg||t>=n.toExpPos)};var lE=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%tE|0,r=n/tE|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*tE+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,l,u,f,d,p,h,g,v,y,m,b,w,x,C,S,_,O=r.constructor,k=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new O(r);if(!o.s)throw Error(Gk+"Division by zero");for(c=r.e-o.e,S=j.length,x=E.length,h=(p=new O(k)).d=[],l=0;j[l]==(E[l]||0);)++l;if(j[l]>(E[l]||0)&&--c,(m=null==i?i=O.precision:a?i+(fE(r)-fE(o))+1:i)<0)return new O(0);if(m=m/nE+2|0,l=0,1==S)for(u=0,j=j[0],m++;(l<x||u)&&m--;l++)b=u*tE+(E[l]||0),h[l]=b/j|0,u=b%j|0;else{for((u=tE/(j[0]+1)|0)>1&&(j=e(j,u),E=e(E,u),S=j.length,x=E.length),w=S,v=(g=E.slice(0,S)).length;v<S;)g[v++]=0;(_=j.slice()).unshift(0),C=j[0],j[1]>=tE/2&&++C;do{u=0,(s=t(j,g,S,v))<0?(y=g[0],S!=v&&(y=y*tE+(g[1]||0)),(u=y/C|0)>1?(u>=tE&&(u=tE-1),1==(s=t(f=e(j,u),g,d=f.length,v=g.length))&&(u--,n(f,S<d?_:j,d))):(0==u&&(s=u=1),f=j.slice()),(d=f.length)<v&&f.unshift(0),n(g,f,v),-1==s&&(s=t(j,g,S,v=g.length))<1&&(u++,n(g,S<v?_:j,v)),v=g.length):0===s&&(u++,g=[0]),h[l++]=u,s&&g[0]?g[v++]=E[w]||0:(g=[E[w]],v=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),p.e=c,vE(p,a?i+fE(p)+1:i)}}();function uE(e,t){var n,r,o,i,a,s=0,c=0,l=e.constructor,u=l.precision;if(fE(e)>16)throw Error(Xk+fE(e));if(!e.s)return new l(Uk);for(null==t?(qk=!1,a=u):a=t,i=new l(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(Qk(2,c))/Math.LN10*2+5|0,n=r=o=new l(Uk),l.precision=a;;){if(r=vE(r.times(e),a),n=n.times(++s),cE((i=o.plus(lE(r,n,a))).d).slice(0,a)===cE(o.d).slice(0,a)){for(;c--;)o=vE(o.times(o),a);return l.precision=u,null==t?(qk=!0,vE(o,u)):o}o=i}}function fE(e){for(var t=e.e*nE,n=e.d[0];n>=10;n/=10)t++;return t}function dE(e,t,n){if(t>e.LN10.sd())throw qk=!0,n&&(e.precision=n),Error(Gk+"LN10 precision limit exceeded");return vE(new e(e.LN10),t)}function pE(e){for(var t="";e--;)t+="0";return t}function hE(e,t){var n,r,o,i,a,s,c,l,u,f=1,d=e,p=d.d,h=d.constructor,g=h.precision;if(d.s<1)throw Error(Gk+(d.s?"NaN":"-Infinity"));if(d.eq(Uk))return new h(0);if(null==t?(qk=!1,l=g):l=t,d.eq(10))return null==t&&(qk=!0),dE(h,l);if(l+=10,h.precision=l,r=(n=cE(p)).charAt(0),i=fE(d),!(Math.abs(i)<15e14))return c=dE(h,l+2,g).times(i+""),d=hE(new h(r+"."+n.slice(1)),l-10).plus(c),h.precision=g,null==t?(qk=!0,vE(d,g)):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=cE((d=d.times(e)).d)).charAt(0),f++;for(i=fE(d),r>1?(d=new h("0."+n),i++):d=new h(r+"."+n.slice(1)),s=a=d=lE(d.minus(Uk),d.plus(Uk),l),u=vE(d.times(d),l),o=3;;){if(a=vE(a.times(u),l),cE((c=s.plus(lE(a,new h(o),l))).d).slice(0,l)===cE(s.d).slice(0,l))return s=s.times(2),0!==i&&(s=s.plus(dE(h,l+2,g).times(i+""))),s=lE(s,new h(f),l),h.precision=g,null==t?(qk=!0,vE(s,g)):s;s=c,o+=2}}function gE(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=Jk(n/nE),e.d=[],r=(n+1)%nE,n<0&&(r+=nE),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=nE;r<o;)e.d.push(+t.slice(r,r+=nE));t=t.slice(r),r=nE-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),qk&&(e.e>oE||e.e<-oE))throw Error(Xk+n)}else e.s=0,e.e=0,e.d=[0];return e}function vE(e,t,n){var r,o,i,a,s,c,l,u,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=nE,o=t,l=f[u=0];else{if((u=Math.ceil((r+1)/nE))>=(i=f.length))return e;for(l=i=f[u],a=1;i>=10;i/=10)a++;o=(r%=nE)-nE+a}if(void 0!==n&&(s=l/(i=Qk(10,a-o-1))%10|0,c=t<0||void 0!==f[u+1]||l%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?l/Qk(10,a-o):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=fE(e),f.length=1,t=t-i-1,f[0]=Qk(10,(nE-t%nE)%nE),e.e=Jk(-t/nE)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=u,i=1,u--):(f.length=u+1,i=Qk(10,nE-r),f[u]=o>0?(l/Qk(10,a-o)%Qk(10,o)|0)*i:0),c)for(;;){if(0==u){(f[0]+=i)==tE&&(f[0]=1,++e.e);break}if(f[u]+=i,f[u]!=tE)break;f[u--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(qk&&(e.e>oE||e.e<-oE))throw Error(Xk+fE(e));return e}function yE(e,t){var n,r,o,i,a,s,c,l,u,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),qk?vE(t,p):t;if(c=e.d,f=t.d,r=t.e,l=e.e,c=c.slice(),a=l-r){for((u=a<0)?(n=c,a=-a,s=f.length):(n=f,r=l,s=c.length),a>(o=Math.max(Math.ceil(p/nE),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((u=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){u=c[o]<f[o];break}a=0}for(u&&(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]=tE-1;--c[i],c[o]+=tE}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,qk?vE(t,p):t):new d(0)}function mE(e,t,n){var r,o=fE(e),i=cE(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+pE(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+pE(-o-1)+i,n&&(r=n-a)>0&&(i+=pE(r))):o>=a?(i+=pE(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+pE(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=pE(r))),e.s<0?"-"+i:i}function bE(e,t){if(e.length>t)return e.length=t,!0}function wE(e){if(!e||"object"!=typeof e)throw Error(Gk+"Object expected");var t,n,r,o=["precision",1,Zk,"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(!(Jk(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(Yk+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(Yk+n+": "+r);this[n]=new this(r)}return this}var xE=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(Yk+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])):gE(t,e.toString())}if("string"!=typeof e)throw Error(Yk+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!eE.test(e))throw Error(Yk+e);gE(t,e)}if(i.prototype=iE,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=wE,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"});Uk=new xE(1);var CE=xE;function SE(e){return function(e){if(Array.isArray(e))return _E(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 _E(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 _E(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 _E(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 OE=function(e){return e},kE={"@@functional/placeholder":!0},EE=function(e){return e===kE},jE=function(e){return function t(){return 0===arguments.length||1===arguments.length&&EE(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},AE=function e(t,n){return 1===t?n:jE((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!==kE})).length;return a>=t?n.apply(void 0,o):e(t-a,jE((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 EE(e)?t.shift():e}));return n.apply(void 0,SE(i).concat(t))})))}))},TE=function(e){return AE(e.length,e)},ME=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},PE=TE((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),DE=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return OE;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))}},LE=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},IE=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 RE=TE((function(e,t,n){var r=+e;return r+n*(+t-r)})),NE=TE((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),BE=TE((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),FE={rangeStep:function(e,t,n){for(var r=new CE(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 CE(e).abs().log(10).toNumber())+1},interpolateNumber:RE,uninterpolateNumber:NE,uninterpolateTruncation:BE};function zE(e){return function(e){if(Array.isArray(e))return KE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||VE(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 HE(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)||VE(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 VE(e,t){if(e){if("string"==typeof e)return KE(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)?KE(e,t):void 0}}function KE(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 $E(e){var t=HE(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function UE(e,t,n){if(e.lte(0))return new CE(0);var r=FE.getDigitCount(e.toNumber()),o=new CE(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new CE(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new CE(Math.ceil(s))}function WE(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 CE(0),tickMin:new CE(0),tickMax:new CE(0)};var i,a=UE(new CE(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new CE(0):(i=new CE(e).add(t).div(2)).sub(new CE(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new CE(t).sub(i).div(a).toNumber()),l=s+c+1;return l>n?WE(e,t,n,r,o+1):(l<n&&(c=t>0?c+(n-l):c,s=t>0?s:s+(n-l)),{step:a,tickMin:i.sub(new CE(s).mul(a)),tickMax:i.add(new CE(c).mul(a))})}var ZE=IE((function(e){var t=HE(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=HE($E([n,r]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0){var u=l===1/0?[c].concat(zE(ME(0,o-1).map((function(){return 1/0})))):[].concat(zE(ME(0,o-1).map((function(){return-1/0}))),[l]);return n>r?LE(u):u}if(c===l)return function(e,t,n){var r=1,o=new CE(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new CE(10).pow(FE.getDigitCount(e)-1),o=new CE(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new CE(Math.floor(e)))}else 0===e?o=new CE(Math.floor((t-1)/2)):n||(o=new CE(Math.floor(e)));var a=Math.floor((t-1)/2),s=DE(PE((function(e){return o.add(new CE(e-a).mul(r)).toNumber()})),ME);return s(0,t)}(c,o,i);var f=WE(c,l,a,i),d=f.step,p=f.tickMin,h=f.tickMax,g=FE.rangeStep(p,h.add(new CE(.1).mul(d)),d);return n>r?LE(g):g})),qE=IE((function(e,t){var n=HE(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=HE($E([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 l=Math.max(t,2),u=UE(new CE(c).sub(s).div(l-1),i,0),f=[].concat(zE(FE.rangeStep(new CE(s),new CE(c).sub(new CE(.99).mul(u)),u)),[c]);return r>o?LE(f):f})),GE="production"===process.env.NODE_ENV,YE="Invariant failed";function XE(e,t){if(!e){if(GE)throw new Error(YE);var n="function"==typeof t?t():t,r=n?"".concat(YE,": ").concat(n):YE;throw new Error(r)}}var JE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function QE(){return QE=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},QE.apply(this,arguments)}function ej(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tj(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 tj(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 tj(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 nj(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 rj(e){var n=e.offset,r=e.layout,o=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,l=e.yAxis,u=nj(e,JE),f=yd(u,!1);"x"===e.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?XE(!1,'ErrorBar requires Axis type property to be "number".'):XE(!1));var d=a.map((function(e){var a=s(e,i),u=a.x,d=a.y,p=a.value,h=a.errorVal;if(!h)return null;var g,v,y=[];if(Array.isArray(h)){var m=ej(h,2);g=m[0],v=m[1]}else g=v=h;if("vertical"===r){var b=c.scale,w=d+n,x=w+o,C=w-o,S=b(p-g),_=b(p+v);y.push({x1:_,y1:x,x2:_,y2:C}),y.push({x1:S,y1:w,x2:_,y2:w}),y.push({x1:S,y1:x,x2:S,y2:C})}else if("horizontal"===r){var O=l.scale,k=u+n,E=k-o,j=k+o,A=O(p-g),T=O(p+v);y.push({x1:E,y1:T,x2:j,y2:T}),y.push({x1:k,y1:A,x2:k,y2:T}),y.push({x1:E,y1:A,x2:j,y2:A})}return t.createElement(jd,QE({className:"recharts-errorBar",key:"bar-".concat(y.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},f),y.map((function(e){return t.createElement("line",QE({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return t.createElement(jd,{className:"recharts-errorBars"},d)}function oj(e){return oj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oj(e)}function ij(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 aj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ij(Object(n),!0).forEach((function(t){sj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ij(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sj(e,t,n){return t=function(e){var t=function(e,t){if("object"!=oj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=oj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}rj.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},rj.displayName="ErrorBar";var cj=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=hd(n,Bm);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:yj(t),value:o||r,payload:t.props}})),aj(aj(aj({},a.props),Bm.getWithHeight(a,o)),{},{payload:t,item:a})):null};function lj(e){return lj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lj(e)}function uj(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 fj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uj(Object(n),!0).forEach((function(t){dj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dj(e,t,n){return t=function(e){var t=function(e,t){if("object"!=lj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pj(e){return function(e){if(Array.isArray(e))return hj(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 hj(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 hj(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 hj(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 gj(e,t,n){return Sf(e)||Sf(t)?n:Kf(t)?Cf(e,t,n):_l(t)?t(e):n}function vj(e,t,n,r){var o=Kk(e,(function(e){return gj(e,t)}));if("number"===n){var i=o.filter((function(e){return Vf(e)||parseFloat(e)}));return i.length?[Rk(i),Tk(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Sf(e)})):o).map((function(e){return Kf(e)||e instanceof Date?e:""}))}var yj=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},mj=function(e,t,n,r,o){var i=pd(t.props.children,rj).filter((function(e){return function(e,t,n){return!!Sf(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=gj(t,n);if(Sf(r))return e;var o=Array.isArray(r)?[Rk(r),Tk(r)]:[r,r],i=a.reduce((function(e,n){var r=gj(t,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),a=o[1]+Math.abs(Array.isArray(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},bj=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&mj(e,t,i,r)||vj(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}),[])},wj=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},xj=function(e,t,n,r){if(r)return e.map((function(e){return e.coordinate}));var o,i,a=e.map((function(e){return e.coordinate===t&&(o=!0),e.coordinate===n&&(i=!0),e.coordinate}));return o||a.push(t),i||a.push(n),a},Cj=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*zf(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!Ff(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}}))},Sj=new WeakMap,_j=function(e,t){if("function"!=typeof t)return e;Sj.has(e)||Sj.set(e,new WeakMap);var n=Sj.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},Oj=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:pC(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:NS(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:gC(),realScaleType:"point"}:"category"===o?{scale:pC(),realScaleType:"band"}:{scale:NS(),realScaleType:"linear"};if(jf(r)){var s="scale".concat(ip(r));return{scale:(Ck[s]||gC)(),realScaleType:Ck[s]?s:"point"}}return _l(r)?{scale:r}:{scale:gC(),realScaleType:"point"}},kj=1e-4,Ej=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])-kj,i=Math.max(r[0],r[1])+kj,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},jj={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=Ff(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}ah(e,t)}},none:ah,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}ah(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,l=0;s<o;++s){for(var u=e[t[s]],f=u[a][1]||0,d=(f-(u[a-1][1]||0))/2,p=0;p<s;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,l+=d*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=l/c)}n[a-1][1]+=n[a-1][0]=i,ah(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=Ff(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)}}},Aj=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=jj[n],i=function(){var e=ap([]),t=sh,n=ah,r=ch;function o(o){var i,a,s=Array.from(e.apply(this,arguments),lh),c=s.length,l=-1;for(const e of o)for(i=0,++l;i<c;++i)(s[i][l]=[0,+r(e,s[i].key,l,o)]).data=e;for(i=0,a=bp(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:ap(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:ap(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?sh:"function"==typeof e?e:ap(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?ah:e,o):n},o}().keys(r).value((function(e,t){return+gj(e,t,0)})).order(sh).offset(o);return i(e)},Tj=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 l=ZE(c,o,a);return e.domain([Rk(l),Tk(l)]),{niceTicks:l}}if(o&&"number"===r){var u=e.domain();return{niceTicks:qE(u,o,a)}}return null};function Mj(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&&!Sf(o[t.dataKey])){var s=Gf(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=gj(o,Sf(a)?t.dataKey:a);return Sf(c)?null:t.scale(c)}var Pj=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=gj(i,t.dataKey,t.domain[a]);return Sf(s)?null:t.scale(s)-o/2+r},Dj=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[Rk(t.concat([e[0]]).filter(Vf)),Tk(t.concat([e[1]]).filter(Vf))]}),[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}))},Lj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ij=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Rj=function(e,t,n){if(_l(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(Vf(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(Lj.test(e[0])){var o=+Lj.exec(e[0])[1];r[0]=t[0]-o}else _l(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Vf(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(Ij.test(e[1])){var i=+Ij.exec(e[1])[1];r[1]=t[1]+i}else _l(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},Nj=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=Fb(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],l=o[a-1];i=Math.min((c.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},Bj=function(e,t,n){return e&&e.length?Wk(e,Cf(n,"type.defaultProps.domain"))?t:e:t},Fj=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,l=n.hide;return fj(fj({},yd(e,!1)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:yj(e),value:gj(t,r),type:s,payload:t,chartType:c,hide:l})};function zj(e){return zj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zj(e)}function Hj(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 Vj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hj(Object(n),!0).forEach((function(t){Kj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kj(e,t,n){return t=function(e){var t=function(e,t){if("object"!=zj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $j(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Uj(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 Uj(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 Uj(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 Wj=Math.PI/180,Zj=function(e){return 180*e/Math.PI},qj=function(e,t,n,r){return{x:e+Math.cos(-Wj*r)*n,y:t+Math.sin(-Wj*r)*n}},Gj=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},Yj=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:Zj(c),angleInRadian:c}},Xj=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)},Jj=function(e,t){var n=e.x,r=e.y,o=Yj({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 l,u=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=u.startAngle,d=u.endAngle,p=a;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;l=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;l=p>=d&&p<=f}return l?Vj(Vj({},t),{},{radius:i,angle:Xj(p,t)}):null};function Qj(e){return Qj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qj(e)}var eA=["offset"];function tA(e){return function(e){if(Array.isArray(e))return nA(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 nA(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 nA(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 nA(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 rA(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 oA(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 iA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oA(Object(n),!0).forEach((function(t){aA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Qj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Qj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sA(){return sA=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},sA.apply(this,arguments)}var cA=function(e){var t=e.value,n=e.formatter,r=Sf(e.children)?t:e.children;return _l(n)?n(r):r},lA=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,l=e.className,u=s,f=u.cx,d=u.cy,p=u.innerRadius,h=u.outerRadius,g=u.startAngle,v=u.endAngle,y=u.clockWise,m=(p+h)/2,b=function(e,t){return zf(t-e)*Math.min(Math.abs(t-e),360)}(g,v),w=b>=0?1:-1;"insideStart"===a?(o=g+w*c,i=y):"insideEnd"===a?(o=v-w*c,i=!y):"end"===a&&(o=v+w*c,i=y),i=b<=0?i:!i;var x=qj(f,d,m,o),C=qj(f,d,m,o+359*(i?1:-1)),S="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(C.x,",").concat(C.y),_=Sf(e.id)?Uf("recharts-radial-line-"):e.id;return t.createElement("text",sA({},r,{dominantBaseline:"central",className:Uc("recharts-radial-bar-label",l)}),t.createElement("defs",null,t.createElement("path",{id:_,d:S})),t.createElement("textPath",{xlinkHref:"#".concat(_)},n))},uA=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,l=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=qj(i,a,c+n,l),f=u.x;return{x:f,y:u.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=qj(i,a,(s+c)/2,l);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},fA=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,l=i.height,u=l>=0?1:-1,f=u*r,d=u>0?"end":"start",p=u>0?"start":"end",h=c>=0?1:-1,g=h*r,v=h>0?"end":"start",y=h>0?"start":"end";if("top"===o)return iA(iA({},{x:a+c/2,y:s-u*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return iA(iA({},{x:a+c/2,y:s+l+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+l),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+l/2,textAnchor:v,verticalAnchor:"middle"};return iA(iA({},m),n?{width:Math.max(m.x-n.x,0),height:l}:{})}if("right"===o){var b={x:a+c+g,y:s+l/2,textAnchor:y,verticalAnchor:"middle"};return iA(iA({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var w=n?{width:c,height:l}:{};return"insideLeft"===o?iA({x:a+g,y:s+l/2,textAnchor:y,verticalAnchor:"middle"},w):"insideRight"===o?iA({x:a+c-g,y:s+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?iA({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?iA({x:a+c/2,y:s+l-f,textAnchor:"middle",verticalAnchor:d},w):"insideTopLeft"===o?iA({x:a+g,y:s+f,textAnchor:y,verticalAnchor:p},w):"insideTopRight"===o?iA({x:a+c-g,y:s+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===o?iA({x:a+g,y:s+l-f,textAnchor:y,verticalAnchor:d},w):"insideBottomRight"===o?iA({x:a+c-g,y:s+l-f,textAnchor:v,verticalAnchor:d},w):bl(o)&&(Vf(o.x)||Hf(o.x))&&(Vf(o.y)||Hf(o.y))?iA({x:a+Wf(o.x,c),y:s+Wf(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):iA({x:a+c/2,y:s+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},dA=function(e){return"cx"in e&&Vf(e.cx)};function pA(e){var n,r=e.offset,o=iA({offset:void 0===r?5:r},rA(e,eA)),i=o.viewBox,a=o.position,s=o.value,c=o.children,l=o.content,u=o.className,f=void 0===u?"":u,d=o.textBreakAll;if(!i||Sf(s)&&Sf(c)&&!t.isValidElement(l)&&!_l(l))return null;if(t.isValidElement(l))return t.cloneElement(l,o);if(_l(l)){if(n=t.createElement(l,o),t.isValidElement(n))return n}else n=cA(o);var p=dA(i),h=yd(o,!0);if(p&&("insideStart"===a||"insideEnd"===a||"end"===a))return lA(o,n,h);var g=p?uA(o):fA(o);return t.createElement(zx,sA({className:Uc("recharts-label",f)},h,g,{breakAll:d}),n)}pA.displayName="Label";var hA=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,l=e.outerRadius,u=e.x,f=e.y,d=e.top,p=e.left,h=e.width,g=e.height,v=e.clockWise,y=e.labelViewBox;if(y)return y;if(Vf(h)&&Vf(g)){if(Vf(u)&&Vf(f))return{x:u,y:f,width:h,height:g};if(Vf(d)&&Vf(p))return{x:d,y:p,width:h,height:g}}return Vf(u)&&Vf(f)?{x:u,y:f,width:0,height:0}:Vf(t)&&Vf(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:l||s||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};pA.parseViewBox=hA,pA.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=hA(e),a=pd(o,pA).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var s=function(e,n){return e?!0===e?t.createElement(pA,{key:"label-implicit",viewBox:n}):Kf(e)?t.createElement(pA,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===pA?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(pA,{key:"label-implicit",content:e,viewBox:n}):_l(e)?t.createElement(pA,{key:"label-implicit",content:e,viewBox:n}):bl(e)?t.createElement(pA,sA({viewBox:n},e,{key:"label-implicit"})):null:null}(e.label,n||i);return[s].concat(tA(a))};var gA=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},vA=ct(gA);function yA(e){return yA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yA(e)}var mA=["valueAccessor"],bA=["data","dataKey","clockWise","id","textBreakAll"];function wA(e){return function(e){if(Array.isArray(e))return xA(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 xA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CA(){return CA=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},CA.apply(this,arguments)}function SA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SA(Object(n),!0).forEach((function(t){OA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=yA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=yA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yA(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var EA=function(e){return Array.isArray(e.value)?vA(e.value):e.value};function jA(e){var n=e.valueAccessor,r=void 0===n?EA:n,o=kA(e,mA),i=o.data,a=o.dataKey,s=o.clockWise,c=o.id,l=o.textBreakAll,u=kA(o,bA);return i&&i.length?t.createElement(jd,{className:"recharts-label-list"},i.map((function(e,n){var o=Sf(a)?r(e,n):gj(e&&e.payload,a),i=Sf(c)?{}:{id:"".concat(c,"-").concat(n)};return t.createElement(pA,CA({},yd(e,!0),u,i,{parentViewBox:e.parentViewBox,value:o,textBreakAll:l,viewBox:pA.parseViewBox(Sf(s)?e:_A(_A({},e),{},{clockWise:s})),key:"label-".concat(n),index:n}))}))):null}function AA(e){return AA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AA(e)}function TA(){return TA=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},TA.apply(this,arguments)}function MA(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 PA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MA(Object(n),!0).forEach((function(t){DA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=AA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=AA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==AA(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}jA.displayName="LabelList",jA.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=pd(e.children,jA).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(jA,{key:"labelList-implicit",data:n}):t.isValidElement(e)||_l(e)?t.createElement(jA,{key:"labelList-implicit",data:n,content:e}):bl(e)?t.createElement(jA,CA({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n)].concat(wA(o)):o};var LA=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,l=s*(a?1:-1)+r,u=Math.asin(s/l)/Wj,f=c?o:o+i*u,d=c?o-i*u:o;return{center:qj(t,n,l,f),circleTangency:qj(t,n,r,f),lineTangency:qj(t,n,l*Math.cos(u*Wj),d),theta:u}},IA=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return zf(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=qj(t,n,o,i),l=qj(t,n,o,s),u="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(l.x,",").concat(l.y,"\n ");if(r>0){var f=qj(t,n,r,i),d=qj(t,n,r,s);u+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},RA={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},NA=function(e){var n=PA(PA({},RA),e),r=n.cx,o=n.cy,i=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,c=n.forceCornerRadius,l=n.cornerIsExternal,u=n.startAngle,f=n.endAngle,d=n.className;if(a<i||u===f)return null;var p,h=Uc("recharts-sector",d),g=a-i,v=Wf(s,g,0,!0);return p=v>0&&Math.abs(u-f)<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,l=e.endAngle,u=zf(l-c),f=LA({cx:t,cy:n,radius:o,angle:c,sign:u,cornerRadius:i,cornerIsExternal:s}),d=f.circleTangency,p=f.lineTangency,h=f.theta,g=LA({cx:t,cy:n,radius:o,angle:l,sign:-u,cornerRadius:i,cornerIsExternal:s}),v=g.circleTangency,y=g.lineTangency,m=g.theta,b=s?Math.abs(c-l):Math.abs(c-l)-h-m;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):IA({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n ");if(r>0){var x=LA({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),C=x.circleTangency,S=x.lineTangency,_=x.theta,O=LA({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=O.circleTangency,E=O.lineTangency,j=O.theta,A=s?Math.abs(c-l):Math.abs(c-l)-_-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(+(u<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(u>0),",").concat(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(v,g/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:u,endAngle:f}):IA({cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f}),t.createElement("path",TA({},yd(n,!0),{className:h,d:p,role:"img"}))};function BA(e){return BA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BA(e)}function FA(){return FA=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},FA.apply(this,arguments)}function zA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zA(Object(n),!0).forEach((function(t){VA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=BA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BA(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KA={curveBasisClosed:function(e){return new Zp(e)},curveBasisOpen:function(e){return new qp(e)},curveBasis:function(e){return new Wp(e)},curveBumpX:function(e){return new kp(e,!0)},curveBumpY:function(e){return new kp(e,!1)},curveLinearClosed:function(e){return new Gp(e)},curveLinear:xp,curveMonotoneX:function(e){return new eh(e)},curveMonotoneY:function(e){return new th(e)},curveNatural:function(e){return new rh(e)},curveStep:function(e){return new ih(e,.5)},curveStepAfter:function(e){return new ih(e,1)},curveStepBefore:function(e){return new ih(e,0)}},$A=function(e){return e.x===+e.x&&e.y===+e.y},UA=function(e){return e.x},WA=function(e){return e.y},ZA=function(e){var t,n=e.type,r=void 0===n?"linear":n,o=e.points,i=void 0===o?[]:o,a=e.baseLine,s=e.layout,c=e.connectNulls,l=void 0!==c&&c,u=function(e,t){if(_l(e))return e;var n="curve".concat(ip(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?KA[n]||xp:KA["".concat(n).concat("vertical"===t?"Y":"X")]}(r,s),f=l?i.filter((function(e){return $A(e)})):i;if(Array.isArray(a)){var d=l?a.filter((function(e){return $A(e)})):a,p=f.map((function(e,t){return HA(HA({},e),{},{base:d[t]})}));return(t="vertical"===s?Op().y(WA).x1(UA).x0((function(e){return e.base.x})):Op().x(UA).y1(WA).y0((function(e){return e.base.y}))).defined($A).curve(u),t(p)}return(t="vertical"===s&&Vf(a)?Op().y(WA).x1(UA).x0(a):Vf(a)?Op().x(UA).y1(WA).y0(a):_p().x(UA).y(WA)).defined($A).curve(u),t(f)},qA=function(e){var n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?ZA(e):o;return t.createElement("path",FA({},yd(e,!1),nd(e),{className:Uc("recharts-curve",n),d:a,ref:i}))},GA={exports:{}},YA=Object.getOwnPropertySymbols,XA=Object.prototype.hasOwnProperty,JA=Object.prototype.propertyIsEnumerable;var QA,eT,tT,nT,rT,oT,iT,aT,sT,cT,lT=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,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))XA.call(n,a)&&(o[a]=n[a]);if(YA){r=YA(n);for(var s=0;s<r.length;s++)JA.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o};function uT(){if(eT)return QA;eT=1;return QA="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function fT(){return nT?tT:(nT=1,tT=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var dT=Df;GA.exports=function(){if(aT)return iT;aT=1;var e=Df,t=lT,n=uT(),r=fT(),o=function(){if(oT)return rT;oT=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=uT(),n={},r=fT();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,c){if("production"!==process.env.NODE_ENV)for(var l in o)if(r(o,l)){var u;try{if("function"!=typeof o[l]){var f=Error((s||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=o[l](i,l,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var d=c?c():"";e("Failed "+a+" type: "+u.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},rT=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),iT=function(s,c){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",f="<<anonymous>>",d={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:g(a),arrayOf:function(e){return g((function(t,r,o,i,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new h("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<s.length;c++){var l=e(s,c,o,i,a+"["+c+"]",n);if(l instanceof Error)return l}return null}))},element:g((function(e,t,n,r,o){var i=e[t];return s(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,r,o){return m(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,o,i,a,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=t[o],l=b(c);if("object"!==l)return new h("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in c)if(r(c,u)){var f=e(c,u,i,a,s+"."+u,n);if(f instanceof Error)return f}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===w(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return g((function(t,o,i,a,s){for(var c=[],l=0;l<e.length;l++){var u=(0,e[l])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&c.push(u.data.expectedType)}return new h("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,r,o,i,a){var s=t[r],c=b(s);if("object"!==c)return new h("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in e){var u=e[l];if("function"!=typeof u)return y(o,i,a,l,w(u));var f=u(s,l,o,i,a+"."+l,n);if(f)return f}return null}))},exact:function(e){return g((function(o,i,a,s,c){var l=o[i],u=b(l);if("object"!==u)return new h("Invalid "+s+" `"+c+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var f=t({},o[i],e);for(var d in f){var p=e[d];if(r(e,d)&&"function"!=typeof p)return y(a,s,c,d,w(p));if(!p)return new h("Invalid "+s+" `"+c+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=p(l,d,a,s,c+"."+d,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,s,l,u,d,p){if(l=l||f,d=d||s,p!==n){if(c){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+s;!t[v]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==a[s]?o?null===a[s]?new h("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(a,s,l,u,d)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function v(e){return g((function(t,n,r,o,i,a){var s=t[n];return b(s)!==e?new h("Invalid "+o+" `"+i+"` of type `"+w(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||s(e))return!0;var t=function(e){var t=e&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!m(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},iT}()(dT.isElement,!0)}else GA.exports=function(){if(cT)return sT;cT=1;var e=uT();function t(){}function n(){}return n.resetWarningCache=t,sT=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var pT=ct(GA.exports),hT=Object.getOwnPropertyNames,gT=Object.getOwnPropertySymbols,vT=Object.prototype.hasOwnProperty;function yT(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function mT(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);var s=e(t,n,r);return o.delete(t),o.delete(n),s}}function bT(e){return hT(e).concat(gT(e))}var wT=Object.hasOwn||function(e,t){return vT.call(e,t)};function xT(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var CT="_owner",ST=Object.getOwnPropertyDescriptor,_T=Object.keys;function OT(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function kT(e,t){return xT(e.getTime(),t.getTime())}function ET(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.entries(),s=0;(r=a.next())&&!r.done;){for(var c=t.entries(),l=!1,u=0;(o=c.next())&&!o.done;){var f=r.value,d=f[0],p=f[1],h=o.value,g=h[0],v=h[1];l||i[u]||!(l=n.equals(d,g,s,u,e,t,n)&&n.equals(p,v,d,g,e,t,n))||(i[u]=!0),u++}if(!l)return!1;s++}return!0}function jT(e,t,n){var r,o=_T(e),i=o.length;if(_T(t).length!==i)return!1;for(;i-- >0;){if((r=o[i])===CT&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!wT(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1}return!0}function AT(e,t,n){var r,o,i,a=bT(e),s=a.length;if(bT(t).length!==s)return!1;for(;s-- >0;){if((r=a[s])===CT&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!wT(t,r))return!1;if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;if(o=ST(e,r),i=ST(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function TT(e,t){return xT(e.valueOf(),t.valueOf())}function MT(e,t){return e.source===t.source&&e.flags===t.flags}function PT(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.values();(r=a.next())&&!r.done;){for(var s=t.values(),c=!1,l=0;(o=s.next())&&!o.done;)c||i[l]||!(c=n.equals(r.value,o.value,r.value,o.value,e,t,n))||(i[l]=!0),l++;if(!c)return!1}return!0}function DT(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var LT="[object Arguments]",IT="[object Boolean]",RT="[object Date]",NT="[object Map]",BT="[object Number]",FT="[object Object]",zT="[object RegExp]",HT="[object Set]",VT="[object String]",KT=Array.isArray,$T="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,UT=Object.assign,WT=Object.prototype.toString.call.bind(Object.prototype.toString);var ZT=qT();function qT(e){void 0===e&&(e={});var t=e.circular,n=void 0!==t&&t,r=e.createInternalComparator,o=e.createState,i=e.strict,a=void 0!==i&&i,s=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?AT:OT,areDatesEqual:kT,areMapsEqual:r?yT(ET,AT):ET,areObjectsEqual:r?AT:jT,arePrimitiveWrappersEqual:TT,areRegExpsEqual:MT,areSetsEqual:r?yT(PT,AT):PT,areTypedArraysEqual:r?AT:DT};if(n&&(o=UT({},o,n(o))),t){var i=mT(o.areArraysEqual),a=mT(o.areMapsEqual),s=mT(o.areObjectsEqual),c=mT(o.areSetsEqual);o=UT({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:c})}return o}(e),c=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,c=e.areTypedArraysEqual;return function(e,l,u){if(e===l)return!0;if(null==e||null==l||"object"!=typeof e||"object"!=typeof l)return e!=e&&l!=l;var f=e.constructor;if(f!==l.constructor)return!1;if(f===Object)return o(e,l,u);if(KT(e))return t(e,l,u);if(null!=$T&&$T(e))return c(e,l,u);if(f===Date)return n(e,l,u);if(f===RegExp)return a(e,l,u);if(f===Map)return r(e,l,u);if(f===Set)return s(e,l,u);var d=WT(e);return d===RT?n(e,l,u):d===zT?a(e,l,u):d===NT?r(e,l,u):d===HT?s(e,l,u):d===FT?"function"!=typeof e.then&&"function"!=typeof l.then&&o(e,l,u):d===LT?o(e,l,u):(d===IT||d===BT||d===VT)&&i(e,l,u)}}(s),l=r?r(c):function(e){return function(t,n,r,o,i,a,s){return e(t,n,s)}}(c);return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(e,a){var s=r(),c=s.cache,l=void 0===c?t?new WeakMap:void 0:c,u=s.meta;return n(e,a,{cache:l,equals:o,meta:u,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return n(e,t,a)}}({circular:n,comparator:c,createState:o,equals:l,strict:a})}function GT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)}))}function YT(e){return YT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YT(e)}function XT(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return JT(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 JT(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JT(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 QT(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=XT(r),i=o[0],a=o.slice(1);return"number"==typeof i?void GT(n.bind(null,a),i):(n(i),void GT(n.bind(null,a)))}"object"===YT(r)&&e(r),"function"==typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function eM(e){return eM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eM(e)}function tM(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 nM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tM(Object(n),!0).forEach((function(t){rM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==eM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}qT({strict:!0}),qT({circular:!0}),qT({circular:!0,strict:!0}),qT({createInternalComparator:function(){return xT}}),qT({strict:!0,createInternalComparator:function(){return xT}}),qT({circular:!0,createInternalComparator:function(){return xT}}),qT({circular:!0,createInternalComparator:function(){return xT},strict:!0});var oM=function(e){return e},iM=function(e,t){return Object.keys(t).reduce((function(n,r){return nM(nM({},n),{},rM({},r,e(r,t[r])))}),{})},aM=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")},sM="production"!==process.env.NODE_ENV,cM=function(e,t,n,r,o,i,a,s){if(sM&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;console.warn(t.replace(/%s/g,(function(){return c[l++]})))}};function lM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||fM(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 uM(e){return function(e){if(Array.isArray(e))return dM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||fM(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 fM(e,t){if(e){if("string"==typeof e)return dM(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)?dM(e,t):void 0}}function dM(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 pM=1e-4,hM=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},gM=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},vM=function(e,t){return function(n){var r=hM(e,t);return gM(r,n)}},yM=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,o=0,i=1,a=1;break;case"ease":r=.25,o=.1,i=.25,a=1;break;case"ease-in":r=.42,o=0,i=1,a=1;break;case"ease-out":r=.42,o=0,i=.58,a=1;break;case"ease-in-out":r=0,o=0,i=.58,a=1;break;default:var s=t[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var c=s[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),l=lM(c,4);r=l[0],o=l[1],i=l[2],a=l[3]}else cM(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",t)}cM([r,i,o,a].every((function(e){return"number"==typeof e&&e>=0&&e<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var u,f,d=vM(r,i),p=vM(o,a),h=(u=r,f=i,function(e){var t=hM(u,f),n=[].concat(uM(t.map((function(e,t){return e*t})).slice(1)),[0]);return gM(n,e)}),g=function(e){for(var t,n=e>1?1:e,r=n,o=0;o<8;++o){var i=d(r)-n,a=h(r);if(Math.abs(i-n)<pM||a<pM)return p(r);r=(t=r-i/a)>1?1:t<0?0:t}return p(r)};return g.isStepper=!1,g},mM=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return yM(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,s=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,s=r*a/1e3+e;return Math.abs(s-t)<pM&&Math.abs(i)<pM?[t,0]:[s,i]};return s.isStepper=!0,s.dt=a,s}();default:if("cubic-bezier"===r.split("(")[0])return yM(r);cM(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",t)}return"function"==typeof r?r:(cM(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function bM(e){return bM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bM(e)}function wM(e){return function(e){if(Array.isArray(e))return kM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||OM(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 xM(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 CM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xM(Object(n),!0).forEach((function(t){SM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==bM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _M(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||OM(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 OM(e,t){if(e){if("string"==typeof e)return kM(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)?kM(e,t):void 0}}function kM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var EM=function(e,t,n){return e+(t-e)*n},jM=function(e){return e.from!==e.to},AM=function e(t,n,r){var o=iM((function(e,n){if(jM(n)){var r=_M(t(n.from,n.to,n.velocity),2),o=r[0],i=r[1];return CM(CM({},n),{},{from:o,velocity:i})}return n}),n);return r<1?iM((function(e,t){return jM(t)?CM(CM({},t),{},{velocity:EM(t.velocity,o[e].velocity,r),from:EM(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)},TM=function(e,t,n,r,o){var i,a,s,c,l=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),u=l.reduce((function(n,r){return CM(CM({},n),{},SM({},r,[e[r],t[r]]))}),{}),f=l.reduce((function(n,r){return CM(CM({},n),{},SM({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),d=-1,p=function(){return null};return p=n.isStepper?function(r){s||(s=r);var i=(r-s)/n.dt;f=AM(n,f,i),o(CM(CM(CM({},e),t),iM((function(e,t){return t.from}),f))),s=r,Object.values(f).filter(jM).length&&(d=requestAnimationFrame(p))}:function(i){c||(c=i);var a=(i-c)/r,s=iM((function(e,t){return EM.apply(void 0,wM(t).concat([n(a)]))}),u);if(o(CM(CM(CM({},e),t),s)),a<1)d=requestAnimationFrame(p);else{var l=iM((function(e,t){return EM.apply(void 0,wM(t).concat([n(1)]))}),u);o(CM(CM(CM({},e),t),l))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(d)}}};function MM(e){return MM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MM(e)}var PM=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function DM(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 LM(e){return function(e){if(Array.isArray(e))return IM(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 IM(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 IM(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 IM(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 RM(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 NM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RM(Object(n),!0).forEach((function(t){BM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BM(e,t,n){return(t=zM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FM(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,zM(r.key),r)}}function zM(e){var t=function(e,t){if("object"!==MM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==MM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===MM(t)?t:String(t)}function HM(e,t){return HM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},HM(e,t)}function VM(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 KM(this,n)}}function KM(e,t){if(t&&("object"===MM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $M(e)}function $M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UM(e){return UM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},UM(e)}var WM=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&&HM(e,t)}(a,t.PureComponent);var n,r,o,i=VM(a);function a(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=(n=i.call(this,e,t)).props,o=r.isActive,s=r.attributeName,c=r.from,l=r.to,u=r.steps,f=r.children,d=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind($M(n)),n.changeStyle=n.changeStyle.bind($M(n)),!o||d<=0)return n.state={style:{}},"function"==typeof f&&(n.state={style:l}),KM(n);if(u&&u.length)n.state={style:u[0].style};else if(c){if("function"==typeof f)return n.state={style:c},KM(n);n.state={style:s?BM({},s,c):c}}else n.state={style:{}};return n}return n=a,r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,i=t.shouldReAnimate,a=t.to,s=t.from,c=this.state.style;if(r)if(n){if(!(ZT(e.to,a)&&e.canBegin&&e.isActive)){var l=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=l||i?s:e.to;if(this.state&&c){var f={style:o?BM({},o,u):u};(o&&c[o]!==u||!o&&c!==u)&&this.setState(f)}this.runAnimation(NM(NM({},this.props),{},{from:u,begin:0}))}}else{var d={style:o?BM({},o,a):a};this.state&&c&&(o&&c[o]!==a||!o&&c!==a)&&this.setState(d)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,a=e.begin,s=e.onAnimationEnd,c=e.onAnimationStart,l=TM(n,r,mM(i),o,this.changeStyle);this.manager.start([c,a,function(){t.stopJSAnimation=l()},o,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,i=n[0],a=i.style,s=i.duration,c=void 0===s?0:s;return this.manager.start([o].concat(LM(n.reduce((function(e,r,o){if(0===o)return e;var i=r.duration,a=r.easing,s=void 0===a?"ease":a,c=r.style,l=r.properties,u=r.onAnimationEnd,f=o>0?n[o-1]:r,d=l||Object.keys(c);if("function"==typeof s||"spring"===s)return[].concat(LM(e),[t.runJSAnimation.bind(t,{from:f.style,to:c,duration:i,easing:s}),i]);var p=aM(d,i,s),h=NM(NM(NM({},f.style),c),{},{transition:p});return[].concat(LM(e),[h,i,u]).filter(oM)}),[a,Math.max(c,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=QT());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,c=e.steps,l=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(c.length>1)this.runStepAnimation(e);else{var f=r?BM({},r,o):o,d=aM(Object.keys(f),n,i);u.start([a,t,NM(NM({},f),{},{transition:d}),n,s])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,n=e.children;e.begin;var r=e.duration;e.attributeName,e.easing;var o=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=DM(e,PM),a=t.Children.count(n),s=this.state.style;if("function"==typeof n)return n(s);if(!o||0===a||r<=0)return n;var c=function(e){var n=e.props,r=n.style,o=void 0===r?{}:r,a=n.className;return t.cloneElement(e,NM(NM({},i),{},{style:NM(NM({},o),s),className:a}))};return 1===a?c(t.Children.only(n)):t.createElement("div",null,t.Children.map(n,(function(e){return c(e)})))}}],r&&FM(n.prototype,r),o&&FM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function ZM(e){return ZM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZM(e)}function qM(){return qM=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},qM.apply(this,arguments)}function GM(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return YM(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 YM(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 YM(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 XM(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 JM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XM(Object(n),!0).forEach((function(t){QM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QM(e,t,n){return t=function(e){var t=function(e,t){if("object"!=ZM(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ZM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ZM(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}WM.displayName="Animate",WM.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},WM.propTypes={from:pT.oneOfType([pT.object,pT.string]),to:pT.oneOfType([pT.object,pT.string]),attributeName:pT.string,duration:pT.number,begin:pT.number,easing:pT.oneOfType([pT.string,pT.func]),steps:pT.arrayOf(pT.shape({duration:pT.number.isRequired,style:pT.object.isRequired,easing:pT.oneOfType([pT.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),pT.func]),properties:pT.arrayOf("string"),onAnimationEnd:pT.func})),children:pT.oneOfType([pT.node,pT.func]),isActive:pT.bool,canBegin:pT.bool,onAnimationEnd:pT.func,shouldReAnimate:pT.bool,onAnimationStart:pT.func,onAnimationReStart:pT.func},pT.object,pT.object,pT.object,pT.element,pT.object,pT.object,pT.object,pT.oneOfType([pT.array,pT.element]),pT.any;var eP=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,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+c*u[0],",").concat(t)),i+="L ".concat(e+n-c*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+s*u[1])),i+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,",\n ").concat(e+n-c*u[2],",").concat(t+r)),i+="L ".concat(e+c*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-s*u[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+c*d,",").concat(t,"\n L ").concat(e+n-c*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n,",").concat(t+s*d,"\n L ").concat(e+n,",").concat(t+r-s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n-c*d,",").concat(t+r,"\n L ").concat(e+c*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e,",").concat(t+r-s*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},tP=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),l=Math.max(o,o+a),u=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=l&&r>=u&&r<=f}return!1},nP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},rP=function(e){var n=JM(JM({},nP),e),r=t.useRef(),o=GM(t.useState(-1),2),i=o[0],a=o[1];t.useEffect((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var s=n.x,c=n.y,l=n.width,u=n.height,f=n.radius,d=n.className,p=n.animationEasing,h=n.animationDuration,g=n.animationBegin,v=n.isAnimationActive,y=n.isUpdateAnimationActive;if(s!==+s||c!==+c||l!==+l||u!==+u||0===l||0===u)return null;var m=Uc("recharts-rectangle",d);return y?t.createElement(WM,{canBegin:i>0,from:{width:l,height:u,x:s,y:c},to:{width:l,height:u,x:s,y:c},duration:h,animationEasing:p,isActive:y},(function(e){var o=e.width,a=e.height,s=e.x,c=e.y;return t.createElement(WM,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,isActive:v,easing:p},t.createElement("path",qM({},yd(n,!0),{className:m,d:eP(s,c,o,a,f),ref:r})))})):t.createElement("path",qM({},yd(n,!0),{className:m,d:eP(s,c,l,u,f)}))},oP=["points","className","baseLinePoints","connectNulls"];function iP(){return iP=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},iP.apply(this,arguments)}function aP(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 sP(e){return function(e){if(Array.isArray(e))return cP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return cP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cP(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lP=function(e){return e&&e.x===+e.x&&e.y===+e.y},uP=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){lP(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),lP(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(sP(e),sP(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},fP=function(e){var n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=aP(e,oP);if(!n||!n.length)return null;var s=Uc("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,l=function(e,t,n){var r=uP(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(uP(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",iP({},yd(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),c?t.createElement("path",iP({},yd(a,!0),{fill:"none",d:uP(n,i)})):null,c?t.createElement("path",iP({},yd(a,!0),{fill:"none",d:uP(o,i)})):null)}var u=uP(n,i);return t.createElement("path",iP({},yd(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",className:s,d:u}))};function dP(){return dP=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},dP.apply(this,arguments)}var pP=function(e){var n=e.cx,r=e.cy,o=e.r,i=Uc("recharts-dot",e.className);return n===+n&&r===+r&&o===+o?t.createElement("circle",dP({},yd(e,!1),nd(e),{className:i,cx:n,cy:r,r:o})):null};function hP(e){return hP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hP(e)}var gP=["x","y","top","left","width","height","className"];function vP(){return vP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vP.apply(this,arguments)}function yP(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 mP(e,t,n){return t=function(e){var t=function(e,t){if("object"!=hP(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hP(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bP(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 wP=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},xP=function(e){var n=e.x,r=void 0===n?0:n,o=e.y,i=void 0===o?0:o,a=e.top,s=void 0===a?0:a,c=e.left,l=void 0===c?0:c,u=e.width,f=void 0===u?0:u,d=e.height,p=void 0===d?0:d,h=e.className,g=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yP(Object(n),!0).forEach((function(t){mP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:r,y:i,top:s,left:l,width:f,height:p},bP(e,gP));return Vf(r)&&Vf(i)&&Vf(f)&&Vf(p)&&Vf(s)&&Vf(l)?t.createElement("path",vP({},yd(g,!0),{className:Uc("recharts-cross",h),d:wP(r,i,f,p,s,l)})):null},CP=_k,SP=Ok,_P=Qy;var OP=function(e,t){return e&&e.length?CP(e,_P(t),SP):void 0},kP=ct(OP),EP=_k,jP=Qy,AP=Mk;var TP=function(e,t){return e&&e.length?EP(e,jP(t),AP):void 0},MP=ct(TP),PP=["cx","cy","angle","ticks","axisLine"],DP=["ticks","tick","angle","tickFormatter","stroke"];function LP(e){return LP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LP(e)}function IP(){return IP=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},IP.apply(this,arguments)}function RP(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 NP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RP(Object(n),!0).forEach((function(t){$P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BP(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 FP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,UP(r.key),r)}}function zP(e,t,n){return t=VP(t),function(e,t){if(t&&("object"===LP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,HP()?Reflect.construct(t,n||[],VP(e).constructor):t.apply(e,n))}function HP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(HP=function(){return!!e})()}function VP(e){return VP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VP(e)}function KP(e,t){return KP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KP(e,t)}function $P(e,t,n){return(t=UP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UP(e){var t=function(e,t){if("object"!=LP(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=LP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==LP(t)?t:String(t)}var WP=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),zP(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KP(e,t)}(n,t.PureComponent),r=n,o=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return qj(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=kP(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:MP(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=BP(e,PP),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=qj(n,r,c[0],o),u=qj(n,r,c[1],o),f=NP(NP(NP({},yd(s,!1)),{},{fill:"none"},yd(a,!1)),{},{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return t.createElement("line",IP({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,r=this.props,o=r.ticks,i=r.tick,a=r.angle,s=r.tickFormatter,c=r.stroke,l=BP(r,DP),u=this.getTickTextAnchor(),f=yd(l,!1),d=yd(i,!1),p=o.map((function(r,o){var l=e.getTickValueCoord(r),p=NP(NP(NP(NP({textAnchor:u,transform:"rotate(".concat(90-a,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:c},d),{},{index:o},l),{},{payload:r});return t.createElement(jd,IP({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r.coordinate)},rd(e.props,r,o)),n.renderTickItem(i,p,s?s(r.value,o):r.value))}));return t.createElement(jd,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(jd,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),o&&this.renderTicks(),pA.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(zx,IP({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],o&&FP(r.prototype,o),i&&FP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function ZP(e){return ZP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZP(e)}function qP(){return qP=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},qP.apply(this,arguments)}function GP(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 YP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GP(Object(n),!0).forEach((function(t){nD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XP(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,rD(r.key),r)}}function JP(e,t,n){return t=eD(t),function(e,t){if(t&&("object"===ZP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,QP()?Reflect.construct(t,n||[],eD(e).constructor):t.apply(e,n))}function QP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QP=function(){return!!e})()}function eD(e){return eD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eD(e)}function tD(e,t){return tD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tD(e,t)}function nD(e,t,n){return(t=rD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rD(e){var t=function(e,t){if("object"!=ZP(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ZP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ZP(t)?t:String(t)}$P(WP,"displayName","PolarRadiusAxis"),$P(WP,"axisType","radiusAxis"),$P(WP,"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 oD=Math.PI/180,iD=1e-5,aD=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),JP(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tD(e,t)}(n,t.PureComponent),r=n,o=[{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=qj(n,r,o,e.coordinate),c=qj(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*oD);return n>iD?"outer"===t?"start":"end":n<-iD?"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=YP(YP({},yd(this.props,!1)),{},{fill:"none"},yd(i,!1));if("circle"===a)return t.createElement(pP,qP({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return qj(n,r,o,e.coordinate)}));return t.createElement(fP,qP({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,r=this.props,o=r.ticks,i=r.tick,a=r.tickLine,s=r.tickFormatter,c=r.stroke,l=yd(this.props,!1),u=yd(i,!1),f=YP(YP({},l),{},{fill:"none"},yd(a,!1)),d=o.map((function(r,o){var d=e.getTickLineCoord(r),p=YP(YP(YP({textAnchor:e.getTickTextAnchor(r)},l),{},{stroke:"none",fill:c},u),{},{index:o,payload:r,x:d.x2,y:d.y2});return t.createElement(jd,qP({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r.coordinate)},rd(e.props,r,o)),a&&t.createElement("line",qP({className:"recharts-polar-angle-axis-tick-line"},f,d)),i&&n.renderTickItem(i,p,s?s(r.value,o):r.value))}));return t.createElement(jd,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,o=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(jd,{className:"recharts-polar-angle-axis"},o&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(zx,qP({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],o&&XP(r.prototype,o),i&&XP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();nD(aD,"displayName","PolarAngleAxis"),nD(aD,"axisType","angleAxis"),nD(aD,"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 sD=iv(Object.getPrototypeOf,Object),cD=cl,lD=sD,uD=ll,fD=Function.prototype,dD=Object.prototype,pD=fD.toString,hD=dD.hasOwnProperty,gD=pD.call(Object);var vD=ct((function(e){if(!uD(e)||"[object Object]"!=cD(e))return!1;var t=lD(e);if(null===t)return!0;var n=hD.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pD.call(n)==gD})),yD=cl,mD=ll;var bD=ct((function(e){return!0===e||!1===e||mD(e)&&"[object Boolean]"==yD(e)}));function wD(e){return wD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wD(e)}function xD(){return xD=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},xD.apply(this,arguments)}function CD(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return SD(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 SD(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 SD(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 _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 OD(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){kD(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 kD(e,t,n){return t=function(e){var t=function(e,t){if("object"!=wD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wD(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ED,jD=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")},AD={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},TD=function(e){var n=OD(OD({},AD),e),r=t.useRef(),o=CD(t.useState(-1),2),i=o[0],a=o[1];t.useEffect((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var s=n.x,c=n.y,l=n.upperWidth,u=n.lowerWidth,f=n.height,d=n.className,p=n.animationEasing,h=n.animationDuration,g=n.animationBegin,v=n.isUpdateAnimationActive;if(s!==+s||c!==+c||l!==+l||u!==+u||f!==+f||0===l&&0===u||0===f)return null;var y=Uc("recharts-trapezoid",d);return v?t.createElement(WM,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:f,x:s,y:c},to:{upperWidth:l,lowerWidth:u,height:f,x:s,y:c},duration:h,animationEasing:p,isActive:v},(function(e){var o=e.upperWidth,a=e.lowerWidth,s=e.height,c=e.x,l=e.y;return t.createElement(WM,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,easing:p},t.createElement("path",xD({},yd(n,!0),{className:y,d:jD(c,l,o,a,s),ref:r})))})):t.createElement("g",null,t.createElement("path",xD({},yd(n,!0),{className:y,d:jD(s,c,l,u,f)})))},MD=["option","shapeType","propTransformer","activeClassName","isActive"];function PD(e){return PD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},PD(e)}function DD(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 LD(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 ID(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LD(Object(n),!0).forEach((function(t){RD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RD(e,t,n){return t=function(e){var t=function(e,t){if("object"!=PD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=PD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==PD(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ND(e,t){return ID(ID({},t),e)}function BD(e){var n=e.shapeType,r=e.elementProps;switch(n){case"rectangle":return t.createElement(rP,r);case"trapezoid":return t.createElement(TD,r);case"sector":return t.createElement(NA,r);case"symbols":if(function(e,t){return"symbols"===e}(n))return t.createElement(bh,r);break;default:return null}}function FD(e){var n,r=e.option,o=e.shapeType,i=e.propTransformer,a=void 0===i?ND:i,s=e.activeClassName,c=void 0===s?"recharts-active-shape":s,l=e.isActive,u=DD(e,MD);if(t.isValidElement(r))n=t.cloneElement(r,ID(ID({},u),function(e){return t.isValidElement(e)?e.props:e}(r)));else if(_l(r))n=r(u);else if(vD(r)&&!bD(r)){var f=a(r,u);n=t.createElement(BD,{shapeType:o,elementProps:f})}else{var d=u;n=t.createElement(BD,{shapeType:o,elementProps:d})}return l?t.createElement(jd,{className:c},n):n}function zD(e,t){return null!=t&&"trapezoids"in e.props}function HD(e,t){return null!=t&&"sectors"in e.props}function VD(e,t){return null!=t&&"points"in e.props}function KD(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&i}function $D(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function UD(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function WD(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=function(e,t){var n;return zD(e,t)?n="trapezoids":HD(e,t)?n="sectors":VD(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return zD(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:HD(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:VD(e,t)?t.payload:{}}(n,t),a=r.filter((function(e,r){var a=Wk(i,e),s=n.props[o].filter((function(e){var r=function(e,t){var n;return zD(e,t)?n=KD:HD(e,t)?n=$D:VD(e,t)&&(n=UD),n}(n,t);return r(e,t)})),c=n.props[o].indexOf(s[s.length-1]);return a&&r===c}));return r.indexOf(a[a.length-1])}function ZD(e){return ZD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZD(e)}function qD(){return qD=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},qD.apply(this,arguments)}function GD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GD(Object(n),!0).forEach((function(t){rL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XD(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,oL(r.key),r)}}function JD(e,t,n){return t=eL(t),function(e,t){if(t&&("object"===ZD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tL(e)}(e,QD()?Reflect.construct(t,n||[],eL(e).constructor):t.apply(e,n))}function QD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QD=function(){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){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nL(e,t){return nL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nL(e,t)}function rL(e,t,n){return(t=oL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oL(e){var t=function(e,t){if("object"!=ZD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ZD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ZD(t)?t:String(t)}var iL=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),rL(tL(t=JD(this,n,[e])),"pieRef",null),rL(tL(t),"sectorRefs",[]),rL(tL(t),"id",Uf("recharts-pie-")),rL(tL(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),_l(e)&&e()})),rL(tL(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),_l(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nL(e,t)}(n,t.PureComponent),r=n,o=[{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 r=this.props,o=r.label,i=r.labelLine,a=r.dataKey,s=r.valueKey,c=yd(this.props,!1),l=yd(o,!1),u=yd(i,!1),f=o&&o.offsetRadius||20,d=e.map((function(e,r){var d=(e.startAngle+e.endAngle)/2,p=qj(e.cx,e.cy,e.outerRadius+f,d),h=YD(YD(YD(YD({},c),e),{},{stroke:"none"},l),{},{index:r,textAnchor:n.getTextAnchor(p.x,e.cx)},p),g=YD(YD(YD(YD({},c),e),{},{fill:"none",stroke:e.fill},u),{},{index:r,points:[qj(e.cx,e.cy,e.outerRadius,d),p],key:"line"}),v=a;return Sf(a)&&Sf(s)?v="value":Sf(a)&&(v=s),t.createElement(jd,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(r)},i&&n.renderLabelLineItem(i,g),n.renderLabelItem(o,h,gj(e,v)))}));return t.createElement(jd,{className:"recharts-pie-labels"},d)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,o=r.activeShape,i=r.blendStroke,a=r.inactiveShape;return e.map((function(r,s){if(0===(null==r?void 0:r.startAngle)&&0===(null==r?void 0:r.endAngle)&&1!==e.length)return null;var c=n.isActiveIndex(s),l=a&&n.hasActiveIndex()?a:null,u=c?o:l,f=YD(YD({},r),{},{stroke:i?r.fill:r.stroke,tabIndex:-1});return t.createElement(jd,qD({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},rd(n.props,r,s),{key:"sector-".concat(null==r?void 0:r.startAngle,"-").concat(null==r?void 0:r.endAngle,"-").concat(r.midAngle,"-").concat(s)}),t.createElement(FD,qD({option:u,isActive:c,shapeType:"sector"},f)))}))}},{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,l=this.state,u=l.prevSectors,f=l.prevIsAnimationActive;return t.createElement(WM,{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=u&&u[t],r=t>0?Cf(e,"paddingAngle",0):0;if(n){var s=qf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=YD(YD({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var l=e.endAngle,f=e.startAngle,d=qf(0,l-f)(o),p=YD(YD({},e),{},{startAngle:a+r,endAngle:a+d+r});i.push(p),a=p.endAngle}})),t.createElement(jd,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&&Wk(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,l=n.innerRadius,u=n.outerRadius,f=n.isAnimationActive,d=this.state.isAnimationFinished;if(r||!o||!o.length||!Vf(s)||!Vf(c)||!Vf(l)||!Vf(u))return null;var p=Uc("recharts-pie",i);return t.createElement(jd,{tabIndex:this.props.rootTabIndex,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),pA.renderCallByParent(this.props,null,!1),(!f||d)&&jA.renderCallByParent(this.props,o,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(qA,qD({},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 _l(e)&&(o=e(n),t.isValidElement(o))?o:t.createElement(zx,qD({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}}],o&&XD(r.prototype,o),i&&XD(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();ED=iL,rL(iL,"displayName","Pie"),rL(iL,"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:!pw.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),rL(iL,"parseDeltaAngle",(function(e,t){return zf(t-e)*Math.min(Math.abs(t-e),360)})),rL(iL,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=yd(e.props,!1),i=pd(r,rx);return n&&n.length?n.map((function(e,t){return YD(YD(YD({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return YD(YD({},o),e.props)})):[]})),rL(iL,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=Gj(o,i);return{cx:r+Wf(e.props.cx,o,o/2),cy:n+Wf(e.props.cy,i,i/2),innerRadius:Wf(e.props.innerRadius,a,0),outerRadius:Wf(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),rL(iL,"getComposedData",(function(e){var t=e.item,n=e.offset,r=ED.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,l=o.dataKey,u=o.nameKey,f=o.valueKey,d=o.tooltipType,p=Math.abs(t.props.minAngle),h=ED.parseCoordinateOfPie(t,n),g=ED.parseDeltaAngle(a,s),v=Math.abs(g),y=l;Sf(l)&&Sf(f)?(Td(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y="value"):Sf(l)&&(Td(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y=f);var m,b,w=r.filter((function(e){return 0!==gj(e,y,0)})).length,x=v-w*p-(v>=360?w:w-1)*c,C=r.reduce((function(e,t){var n=gj(t,y,0);return e+(Vf(n)?n:0)}),0);C>0&&(m=r.map((function(e,t){var n,r=gj(e,y,0),o=gj(e,u,t),s=(Vf(r)?r:0)/C,l=(n=t?b.endAngle+zf(g)*c*(0!==r?1:0):a)+zf(g)*((0!==r?p:0)+s*x),f=(n+l)/2,v=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:y,type:d}],w=qj(h.cx,h.cy,v,f);return b=YD(YD(YD({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:v,tooltipPosition:w},e),h),{},{value:gj(e,y),startAngle:n,endAngle:l,payload:e,paddingAngle:zf(g)*c})})));return YD(YD({},h),{},{sectors:m,data:r})}));var aL=Math.ceil,sL=Math.max;var cL=function(e,t,n,r){for(var o=-1,i=sL(aL((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},lL=Fw,uL=1/0;var fL=function(e){return e?(e=lL(e))===uL||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},dL=cL,pL=Ib,hL=fL;var gL=ct(function(e){return function(t,n,r){return r&&"number"!=typeof r&&pL(t,n,r)&&(n=r=void 0),t=hL(t),void 0===n?(n=t,t=0):n=hL(n),r=void 0===r?t<n?1:-1:hL(r),dL(t,n,r,e)}}());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 yL(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 mL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yL(Object(n),!0).forEach((function(t){bL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bL(e,t,n){return t=function(e){var t=function(e,t){if("object"!=vL(e)||!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)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wL=["Webkit","Moz","O","ms"];function xL(e){return xL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xL(e)}function CL(){return CL=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},CL.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 _L(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){ML(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 OL(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,PL(r.key),r)}}function kL(e,t,n){return t=jL(t),function(e,t){if(t&&("object"===xL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return AL(e)}(e,EL()?Reflect.construct(t,n||[],jL(e).constructor):t.apply(e,n))}function EL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EL=function(){return!!e})()}function jL(e){return jL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jL(e)}function AL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TL(e,t){return TL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TL(e,t)}function ML(e,t,n){return(t=PL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PL(e){var t=function(e,t){if("object"!=xL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xL(t)?t:String(t)}var DL=function(e){return e.changedTouches&&!!e.changedTouches.length},LL=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),ML(AL(t=kL(this,n,[e])),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),ML(AL(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),ML(AL(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})})),t.detachDragEndListener()})),ML(AL(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),ML(AL(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),ML(AL(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),ML(AL(t),"handleSlideDragStart",(function(e){var n=DL(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(AL(t),"startX"),endX:t.handleTravellerDragStart.bind(AL(t),"endX")},t.state={},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TL(e,t)}(n,t.PureComponent),r=n,o=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,s=i.data.length-1,c=Math.min(t,r),l=Math.max(t,r),u=n.getIndexInRange(o,c),f=n.getIndexInRange(o,l);return{startIndex:u-u%a,endIndex:f===s?s:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=gj(n[e],o,e);return _l(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,l=i.startIndex,u=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+s-c-o,a+s-c-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===l&&p.endIndex===u||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=DL(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=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[r],s=this.props,c=s.x,l=s.width,u=s.travellerWidth,f=s.onChange,d=s.gap,p=s.data,h={startX:this.state.startX,endX:this.state.endX},g=e.pageX-n;g>0?g=Math.min(g,c+l-u-a):g<0&&(g=Math.max(g,c-a)),h[r]=a+g;var v=this.getIndex(h),y=v.startIndex,m=v.endIndex;this.setState(ML(ML({},r,a+g),"brushMoveStartX",e.pageX),(function(){var e;f&&(e=p.length-1,("startX"===r&&(o>i?y%d==0:m%d==0)||o<i&&m===e||"endX"===r&&(o>i?m%d==0:y%d==0)||o>i&&m===e)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,i=r.startX,a=r.endX,s=this.state[t],c=o.indexOf(s);if(-1!==c){var l=c+e;if(!(-1===l||l>=o.length)){var u=o[l];"startX"===t&&u>=a||"endX"===t&&u<=i||this.setState(ML({},t,u),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{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,l=t.Children.only(s);return l?t.cloneElement(l,{x:n,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,r){var o=this,i=this.props,a=i.y,s=i.travellerWidth,c=i.height,l=i.traveller,u=i.ariaLabel,f=i.data,d=i.startIndex,p=i.endIndex,h=Math.max(e,this.props.x),g=_L(_L({},yd(this.props,!1)),{},{x:h,y:a,width:s,height:c}),v=u||"Min value: ".concat(f[d].name,", Max value: ").concat(f[p].name);return t.createElement(jd,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,r))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(l,g))}},{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,l=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:l,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,l=c.startX,u=c.endX,f={pointerEvents:"none",fill:s};return t.createElement(jd,{className:"recharts-brush-texts"},t.createElement(zx,CL({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(zx,CL({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+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,l=e.alwaysShowText,u=this.state,f=u.startX,d=u.endX,p=u.isTextActive,h=u.isSlideMoving,g=u.isTravellerMoving,v=u.isTravellerFocused;if(!n||!n.length||!Vf(i)||!Vf(a)||!Vf(s)||!Vf(c)||s<=0||c<=0)return null;var y=Uc("recharts-brush",r),m=1===t.Children.count(o),b=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=wL.reduce((function(e,r){return mL(mL({},e),{},bL({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(jd,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(f,d),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(d,"endX"),(p||h||g||v||l)&&this.renderText())}}],i=[{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,r){return t.isValidElement(e)?t.cloneElement(e,r):_l(e)?e(r):n.renderDefaultTraveller(r)}},{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 _L({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=gC().domain(gL(0,s)).range([o,o+i-a]),l=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(r),scale:c,scaleValues:l}}({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 l=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:l}}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}}],o&&OL(r.prototype,o),i&&OL(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();ML(LL,"displayName","Brush"),ML(LL,"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 IL=Xm;var RL=function(e,t){var n;return IL(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},NL=Gh,BL=Qy,FL=RL,zL=Wc,HL=Ib;var VL=function(e,t,n){var r=zL(e)?NL:FL;return n&&HL(e,t,n)&&(t=void 0),r(e,BL(t))},KL=ct(VL),$L=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},UL=xb;var WL=function(e,t,n){"__proto__"==t&&UL?UL(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ZL=WL,qL=qm,GL=Qy;var YL=function(e,t){var n={};return t=GL(t),qL(e,(function(e,r,o){ZL(n,r,t(e,r,o))})),n},XL=ct(YL);var JL=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},QL=Xm;var eI=function(e,t){var n=!0;return QL(e,(function(e,r,o){return n=!!t(e,r,o)})),n},tI=JL,nI=eI,rI=Qy,oI=Wc,iI=Ib;var aI=function(e,t,n){var r=oI(e)?tI:nI;return n&&iI(e,t,n)&&(t=void 0),r(e,rI(t))},sI=ct(aI),cI=["x","y"];function lI(e){return lI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lI(e)}function uI(){return uI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uI.apply(this,arguments)}function fI(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?fI(Object(n),!0).forEach((function(t){pI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pI(e,t,n){return t=function(e){var t=function(e,t){if("object"!=lI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lI(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hI(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 gI(e,t){var n=e.x,r=e.y,o=hI(e,cI),i="".concat(n),a=parseInt(i,10),s="".concat(r),c=parseInt(s,10),l="".concat(t.height||o.height),u=parseInt(l,10),f="".concat(t.width||o.width),d=parseInt(f,10);return dI(dI(dI(dI(dI({},t),o),a?{x:a}:{}),c?{y:c}:{}),{},{height:u,width:d,name:t.name,radius:t.radius})}function vI(e){return t.createElement(FD,uI({shapeType:"rectangle",propTransformer:gI,activeClassName:"recharts-active-bar"},e))}var yI,mI=["value","background"];function bI(e){return bI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bI(e)}function 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 xI(){return xI=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},xI.apply(this,arguments)}function CI(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 SI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CI(Object(n),!0).forEach((function(t){TI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _I(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,MI(r.key),r)}}function OI(e,t,n){return t=EI(t),function(e,t){if(t&&("object"===bI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jI(e)}(e,kI()?Reflect.construct(t,n||[],EI(e).constructor):t.apply(e,n))}function kI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kI=function(){return!!e})()}function EI(e){return EI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EI(e)}function jI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AI(e,t){return AI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AI(e,t)}function TI(e,t,n){return(t=MI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MI(e){var t=function(e,t){if("object"!=bI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=bI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bI(t)?t:String(t)}var PI=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return TI(jI(e=OI(this,n,[].concat(r))),"state",{isAnimationFinished:!1}),TI(jI(e),"id",Uf("recharts-bar-")),TI(jI(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),TI(jI(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AI(e,t)}(n,t.PureComponent),r=n,o=[{key:"renderRectanglesStatically",value:function(e){var n=this,r=this.props,o=r.shape,i=r.dataKey,a=r.activeIndex,s=r.activeBar,c=yd(this.props,!1);return e&&e.map((function(e,r){var l=r===a,u=l?s:o,f=SI(SI(SI({},c),e),{},{isActive:l,option:u,index:r,dataKey:i,onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd});return t.createElement(jd,xI({className:"recharts-bar-rectangle"},rd(n.props,e,r),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),t.createElement(vI,f))}))}},{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,l=n.animationId,u=this.state.prevData;return t.createElement(WM,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,a=r.map((function(e,t){var n=u&&u[t];if(n){var r=qf(n.x,e.x),a=qf(n.y,e.y),s=qf(n.width,e.width),c=qf(n.height,e.height);return SI(SI({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var l=qf(0,e.height)(i);return SI(SI({},e),{},{y:e.y+e.height-l,height:l})}var f=qf(0,e.width)(i);return SI(SI({},e),{},{width:f})}));return t.createElement(jd,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&&Wk(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,n=this.props,r=n.data,o=n.dataKey,i=n.activeIndex,a=yd(this.props.background,!1);return r.map((function(n,r){n.value;var s=n.background,c=wI(n,mI);if(!s)return null;var l=SI(SI(SI(SI(SI({},c),{},{fill:"#eee"},s),a),rd(e.props,n,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return t.createElement(vI,xI({option:e.props.background,isActive:r===i},l))}))}},{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=pd(r.children,rj);if(!c)return null;var l="vertical"===s?o[0].height/2:o[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:gj(e,t)}},f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(jd,f,c.map((function(e){return t.cloneElement(e,{key:"error-bar-".concat(n,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:s,offset:l,dataPointFormatter:u})})))}},{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,l=e.width,u=e.height,f=e.isAnimationActive,d=e.background,p=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=Uc("recharts-bar",o),v=i&&i.allowDataOverflow,y=a&&a.allowDataOverflow,m=v||y,b=Sf(p)?this.id:p;return t.createElement(jd,{className:g},v||y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(b)},t.createElement("rect",{x:v?s:s-l/2,y:y?c:c-u/2,width:v?l:2*l,height:y?u:2*u}))):null,t.createElement(jd,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(b,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,b),(!f||h)&&jA.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],o&&_I(r.prototype,o),i&&_I(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function DI(e){return DI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DI(e)}function LI(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,BI(r.key),r)}}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 RI(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){NI(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 NI(e,t,n){return(t=BI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BI(e){var t=function(e,t){if("object"!=DI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=DI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==DI(t)?t:String(t)}yI=PI,TI(PI,"displayName","Bar"),TI(PI,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!pw.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),TI(PI,"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,l=e.stackedData,u=e.dataStartIndex,f=e.displayedData,d=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var h=t.layout,g=n.props,v=g.dataKey,y=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=l?b.scale.domain():null,x=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:b}),C=pd(y,rx),S=f.map((function(e,t){var r,f,d,g,y,b;l?r=function(e,t){if(!t||2!==t.length||!Vf(t[0])||!Vf(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(!Vf(e[0])||e[0]<n)&&(o[0]=n),(!Vf(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(l[u+t],w):(r=gj(e,v),Array.isArray(r)||(r=[x,r]));var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o="number"==typeof n;return o?e(n,r):(o||("production"!==process.env.NODE_ENV?XE(!1,"minPointSize callback function received a value with type of ".concat(lI(n),". Currently only numbers are supported.")):XE(!1)),t)}}(m,yI.defaultProps.minPointSize)(r[1],t);if("horizontal"===h){var _,O=[a.scale(r[0]),a.scale(r[1])],k=O[0],E=O[1];f=Pj({axis:i,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),d=null!==(_=null!=E?E:k)&&void 0!==_?_:void 0,g=p.size;var j=k-E;if(y=Number.isNaN(j)?0:j,b={x:f,y:a.y,width:g,height:a.height},Math.abs(S)>0&&Math.abs(y)<Math.abs(S)){var A=zf(y||S)*(Math.abs(S)-Math.abs(y));d-=A,y+=A}}else{var T=[i.scale(r[0]),i.scale(r[1])],M=T[0],P=T[1];if(f=M,d=Pj({axis:a,ticks:c,bandSize:o,offset:p.offset,entry:e,index:t}),g=P-M,y=p.size,b={x:i.x,y:d,width:i.width,height:y},Math.abs(S)>0&&Math.abs(g)<Math.abs(S))g+=zf(g||S)*(Math.abs(S)-Math.abs(g))}return SI(SI(SI({},e),{},{x:f,y:d,width:g,height:y,value:l?r:r[1],payload:e,background:b},C&&C[t]&&C[t].props),{},{tooltipPayload:[Fj(n,e)],tooltipPosition:{x:f+g/2,y:d+y/2}})}));return SI({data:S,layout:h},d)}));var FI=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,l=Object.keys(t),u={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=!!hd(c,PI);return l.reduce((function(i,a){var c,l,d,p,h,g=t[a],v=g.orientation,y=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,C="".concat(v).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var S=y[1]-y[0],_=1/0,O=g.categoricalDomain.sort();O.forEach((function(e,t){t>0&&(_=Math.min((e||0)-(O[t-1]||0),_))}));var k=_/S,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var j=Wf(e.barCategoryGap,k*E),A=k*E/2;c=A-j-(A-j)/E*j}}l="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&&(l=[l[1],l[0]]);var T=Oj(g,o,f),M=T.scale,P=T.realScaleType;M.domain(y).range(l),Ej(M);var D=Tj(M,RI(RI({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===v&&!w||"bottom"===v&&w,d=n.left,p=u[C]-h*g.height):"yAxis"===r&&(h="left"===v&&!w||"right"===v&&w,d=u[C]-h*g.width,p=n.top);var L=RI(RI(RI({},g),D),{},{realScaleType:P,x:d,y:p,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return L.bandSize=Nj(L,D),g.hide||"xAxis"!==r?g.hide||(u[C]+=(h?-1:1)*L.width):u[C]+=(h?-1:1)*L.height,RI(RI({},i),{},NI({},a,L))}),{})},zI=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)}},HI=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&&LI(t.prototype,n),r&&LI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();NI(HI,"EPS",1e-4);var VI=function(e){var t=Object.keys(e).reduce((function(t,n){return RI(RI({},t),{},NI({},n,HI.create(e[n])))}),{});return RI(RI({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return XL(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return sI(e,(function(e,n){return t[n].isInRange(e)}))}})};var KI=function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,i=Math.atan(n/t),a=o>i&&o<Math.PI-i?n/Math.sin(o):t/Math.cos(o);return Math.abs(a)},$I=Qy,UI=pv,WI=yv;var ZI=function(e){return function(t,n,r){var o=Object(t);if(!UI(t)){var i=$I(n);t=WI(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}},qI=fL;var GI=em,YI=Qy,XI=function(e){var t=qI(e),n=t%1;return t==t?n?t-n:t:0},JI=Math.max;var QI=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:XI(n);return o<0&&(o=JI(r+o,0)),GI(e,YI(t),o)},eR=ct(ZI(QI)),tR=Zu((function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}}),(function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}));function nR(e){return nR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nR(e)}var rR=t.createContext(void 0),oR=t.createContext(void 0),iR=t.createContext(void 0),aR=t.createContext({}),sR=t.createContext(void 0),cR=t.createContext(0),lR=t.createContext(0),uR=function(e){var n=e.state,r=n.xAxisMap,o=n.yAxisMap,i=n.offset,a=e.clipPathId,s=e.children,c=e.width,l=e.height,u=tR(i);return t.createElement(rR.Provider,{value:r},t.createElement(oR.Provider,{value:o},t.createElement(aR.Provider,{value:i},t.createElement(iR.Provider,{value:u},t.createElement(sR.Provider,{value:a},t.createElement(cR.Provider,{value:l},t.createElement(lR.Provider,{value:c},s)))))))};function fR(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var dR=function(e){var n=t.useContext(rR);null==n&&("production"!==process.env.NODE_ENV?XE(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):XE(!1));var r=n[e];return null==r&&("production"!==process.env.NODE_ENV?XE(!1,'Could not find xAxis by id "'.concat(e,'" [').concat(nR(e),"]. ").concat(fR(n))):XE(!1)),r},pR=function(e){var n=t.useContext(oR);null==n&&("production"!==process.env.NODE_ENV?XE(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):XE(!1));var r=n[e];return null==r&&("production"!==process.env.NODE_ENV?XE(!1,'Could not find yAxis by id "'.concat(e,'" [').concat(nR(e),"]. ").concat(fR(n))):XE(!1)),r},hR=function(){return t.useContext(lR)},gR=function(){return t.useContext(cR)};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 yR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yR(Object(n),!0).forEach((function(t){bR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=vR(e)||!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)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wR(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xR(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 xR(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 xR(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 CR(){return CR=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},CR.apply(this,arguments)}function SR(e){var n=e.x,r=e.y,o=e.segment,i=e.xAxisId,a=e.yAxisId,s=e.shape,c=e.className,l=e.alwaysShow,u=t.useContext(sR),f=dR(i),d=pR(a),p=t.useContext(iR);if(!u||!p)return null;Td(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(e,t,n,r,o,i,a,s,c){var l=o.x,u=o.y,f=o.width,d=o.height;if(n){var p=c.y,h=e.y.apply(p,{position:i});if($L(c,"discard")&&!e.y.isInRange(h))return null;var g=[{x:l+f,y:h},{x:l,y:h}];return"left"===s?g.reverse():g}if(t){var v=c.x,y=e.x.apply(v,{position:i});if($L(c,"discard")&&!e.x.isInRange(y))return null;var m=[{x:y,y:u+d},{x:y,y:u}];return"top"===a?m.reverse():m}if(r){var b=c.segment.map((function(t){return e.apply(t,{position:i})}));return $L(c,"discard")&&KL(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(VI({x:f.scale,y:d.scale}),Kf(n),Kf(r),o&&2===o.length,p,e.position,f.orientation,d.orientation,e);if(!h)return null;var g=wR(h,2),v=g[0],y=v.x,m=v.y,b=g[1],w=b.x,x=b.y,C=mR(mR({clipPath:$L(e,"hidden")?"url(#".concat(u,")"):void 0},yd(e,!0)),{},{x1:y,y1:m,x2:w,y2:x});return t.createElement(jd,{className:Uc("recharts-reference-line",c)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement("line",CR({},n,{className:"recharts-reference-line-line"}))}(s,C),pA.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return zI({x:t,y:n},{x:r,y:o})}({x1:y,y1:m,x2:w,y2:x})))}function _R(e){return _R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_R(e)}function OR(){return OR=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},OR.apply(this,arguments)}function kR(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 ER(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kR(Object(n),!0).forEach((function(t){jR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=_R(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_R(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}SR.displayName="ReferenceLine",SR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function AR(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=Kf(n),c=Kf(r);if(Td(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var l=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=VI({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return $L(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!l)return null;var u=l.x,f=l.y,d=e.shape,p=e.className,h=ER(ER({clipPath:$L(e,"hidden")?"url(#".concat(a,")"):void 0},yd(e,!0)),{},{cx:u,cy:f});return t.createElement(jd,{className:Uc("recharts-reference-dot",p)},AR.renderDot(d,h),pA.renderCallByParent(e,{x:u-o,y:f-o,width:2*o,height:2*o}))}function TR(e){return TR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TR(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 PR(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 DR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PR(Object(n),!0).forEach((function(t){LR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=TR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=TR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==TR(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}AR.displayName="ReferenceDot",AR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},AR.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(pP,OR({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function IR(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;Td(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Kf(n),u=Kf(r),f=Kf(o),d=Kf(i),p=e.shape;if(!(l||u||f||d||p))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,l=o.xAxis,u=o.yAxis;if(!l||!u)return null;var f=VI({x:l.scale,y:u.scale}),d={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},p={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!$L(o,"discard")||f.isInRange(d)&&f.isInRange(p)?zI(d,p):null}(l,u,f,d,e);if(!h&&!p)return null;var g=$L(e,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(jd,{className:Uc("recharts-reference-area",a)},IR.renderRect(p,DR(DR({clipPath:g},yd(e,!0)),h)),pA.renderCallByParent(e,h))}function RR(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 NR(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function BR(e){return BR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BR(e)}function FR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FR(Object(n),!0).forEach((function(t){HR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=BR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BR(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VR(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,u=e.unit,f=e.angle;if(!o||!o.length||!r)return[];if(Vf(c)||pw.isSsr)return function(e,t){return RR(e,t+1)}(o,"number"==typeof c&&Vf(c)?c:0);var d=[],p="top"===s||"bottom"===s?"width":"height",h=u&&"width"===p?fx(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(e,r){var o=_l(l)?l(e.value,r):e.value;return"width"===p?function(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return KI(r,n)}(fx(o,{fontSize:t,letterSpacing:n}),h,f):fx(o,{fontSize:t,letterSpacing:n})[p]},v=o.length>=2?zf(o[1].coordinate-o[0].coordinate):1,y=function(e,t,n){var r="width"===n,o=e.x,i=e.y,a=e.width,s=e.height;return 1===t?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}(i,v,p);return"equidistantPreserveStart"===c?function(e,t,n,r,o){for(var i,a=(r||[]).slice(),s=t.start,c=t.end,l=0,u=1,f=s,d=function(){var t=null==r?void 0:r[l];if(void 0===t)return{v:RR(r,u)};var i,a=l,d=function(){return void 0===i&&(i=n(t,a)),i},p=t.coordinate,h=0===l||NR(e,p,d,f,c);h||(l=0,f=s,u+=1),h&&(f=p+e*(d()/2+o),l+=u)};u<=a.length;)if(i=d())return i.v;return[]}(v,y,g,o,a):(d="preserveStart"===c||"preserveStartEnd"===c?function(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,c=t.start,l=t.end;if(i){var u=r[s-1],f=n(u,s-1),d=e*(u.coordinate+e*f/2-l);a[s-1]=u=zR(zR({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate}),NR(e,u.tickCoord,(function(){return f}),c,l)&&(l=u.tickCoord-e*(f/2+o),a[s-1]=zR(zR({},u),{},{isShow:!0}))}for(var p=i?s-1:s,h=function(t){var r,i=a[t],s=function(){return void 0===r&&(r=n(i,t)),r};if(0===t){var u=e*(i.coordinate-e*s()/2-c);a[t]=i=zR(zR({},i),{},{tickCoord:u<0?i.coordinate-u*e:i.coordinate})}else a[t]=i=zR(zR({},i),{},{tickCoord:i.coordinate});NR(e,i.tickCoord,s,c,l)&&(c=i.tickCoord+e*(s()/2+o),a[t]=zR(zR({},i),{},{isShow:!0}))},g=0;g<p;g++)h(g);return a}(v,y,g,o,a,"preserveStartEnd"===c):function(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,s=t.start,c=t.end,l=function(t){var r,l=i[t],u=function(){return void 0===r&&(r=n(l,t)),r};if(t===a-1){var f=e*(l.coordinate+e*u()/2-c);i[t]=l=zR(zR({},l),{},{tickCoord:f>0?l.coordinate-f*e:l.coordinate})}else i[t]=l=zR(zR({},l),{},{tickCoord:l.coordinate});NR(e,l.tickCoord,u,s,c)&&(c=l.tickCoord-e*(u()/2+o),i[t]=zR(zR({},l),{},{isShow:!0}))},u=a-1;u>=0;u--)l(u);return i}(v,y,g,o,a),d.filter((function(e){return e.isShow})))}IR.displayName="ReferenceArea",IR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},IR.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(rP,MR({},n,{className:"recharts-reference-area-rect"}))};var KR=["viewBox"],$R=["viewBox"],UR=["ticks"];function WR(e){return WR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WR(e)}function ZR(){return ZR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZR.apply(this,arguments)}function qR(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 GR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qR(Object(n),!0).forEach((function(t){nN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YR(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 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,rN(r.key),r)}}function JR(e,t,n){return t=eN(t),function(e,t){if(t&&("object"===WR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,QR()?Reflect.construct(t,n||[],eN(e).constructor):t.apply(e,n))}function QR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QR=function(){return!!e})()}function eN(e){return eN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eN(e)}function tN(e,t){return tN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tN(e,t)}function nN(e,t,n){return(t=rN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rN(e){var t=function(e,t){if("object"!=WR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=WR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==WR(t)?t:String(t)}var oN=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=JR(this,n,[e])).state={fontSize:"",letterSpacing:""},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tN(e,t)}(n,t.Component),r=n,o=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=YR(e,KR),o=this.props,i=o.viewBox,a=YR(o,$R);return!Yf(n,i)||!Yf(r,a)||!Yf(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,l=s.y,u=s.width,f=s.height,d=s.orientation,p=s.tickSize,h=s.mirror,g=s.tickMargin,v=h?-1:1,y=e.tickSize||p,m=Vf(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=l+ +!h*f)-v*y)-v*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*u)-v*y)-v*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*u)+v*y)+v*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=l+ +h*f)+v*y)+v*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,l=GR(GR(GR({},yd(this.props,!1)),yd(c,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!s||"bottom"===a&&s);l=GR(GR({},l),{},{x1:n,y1:r+u*i,x2:n+o,y2:r+u*i})}else{var f=+("left"===a&&!s||"right"===a&&s);l=GR(GR({},l),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",ZR({},l,{className:Uc("recharts-cartesian-axis-line",Cf(c,"className"))}))}},{key:"renderTicks",value:function(e,r,o){var i=this,a=this.props,s=a.tickLine,c=a.stroke,l=a.tick,u=a.tickFormatter,f=a.unit,d=VR(GR(GR({},this.props),{},{ticks:e}),r,o),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=yd(this.props,!1),v=yd(l,!1),y=GR(GR({},g),{},{fill:"none"},yd(s,!1)),m=d.map((function(e,r){var o=i.getTickLineCoord(e),a=o.line,m=o.tick,b=GR(GR(GR(GR({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:c},v),m),{},{index:r,payload:e,visibleTicksCount:d.length,tickFormatter:u});return t.createElement(jd,ZR({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},rd(i.props,e,r)),s&&t.createElement("line",ZR({},y,a,{className:Uc("recharts-cartesian-axis-tick-line",Cf(s,"className"))})),l&&n.renderTickItem(l,b,"".concat(_l(u)?u(e.value,r):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,l=c.ticks,u=YR(c,UR),f=l;return _l(a)&&(f=l&&l.length>0?a(this.props):a(u)),o<=0||i<=0||!f||!f.length?null:t.createElement(jd,{className:Uc("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),pA.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(zx,ZR({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],o&&XR(r.prototype,o),i&&XR(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();nN(oN,"displayName","CartesianAxis"),nN(oN,"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 iN=["x1","y1","x2","y2","key"],aN=["offset"];function sN(e){return sN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sN(e)}function cN(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 lN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cN(Object(n),!0).forEach((function(t){uN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uN(e,t,n){return t=function(e){var t=function(e,t){if("object"!=sN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=sN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sN(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fN(){return fN=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},fN.apply(this,arguments)}function dN(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 pN=function(e){var n=e.fill;if(!n||"none"===n)return null;var r=e.fillOpacity,o=e.x,i=e.y,a=e.width,s=e.height;return t.createElement("rect",{x:o,y:i,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function hN(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(_l(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,l=dN(n,iN),u=yd(l,!1);u.offset;var f=dN(u,aN);r=t.createElement("line",fN({},f,{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}function gN(e){var n=e.x,r=e.width,o=e.horizontal,i=void 0===o||o,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var s=a.map((function(t,o){var a=lN(lN({},e),{},{x1:n,y1:t,x2:n+r,y2:t,key:"line-".concat(o),index:o});return hN(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function vN(e){var n=e.y,r=e.height,o=e.vertical,i=void 0===o||o,a=e.verticalPoints;if(!i||!a||!a.length)return null;var s=a.map((function(t,o){var a=lN(lN({},e),{},{x1:t,y1:n,x2:t,y2:n+r,key:"line-".concat(o),index:o});return hN(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function yN(e){var n=e.horizontalFill,r=e.fillOpacity,o=e.x,i=e.y,a=e.width,s=e.height,c=e.horizontalPoints,l=e.horizontal;if(!(void 0===l||l)||!n||!n.length)return null;var u=c.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var f=u.map((function(e,c){var l=!u[c+1]?i+s-e:u[c+1]-e;if(l<=0)return null;var f=c%n.length;return t.createElement("rect",{key:"react-".concat(c),y:e,x:o,height:l,width:a,stroke:"none",fill:n[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function mN(e){var n=e.vertical,r=void 0===n||n,o=e.verticalFill,i=e.fillOpacity,a=e.x,s=e.y,c=e.width,l=e.height,u=e.verticalPoints;if(!r||!o||!o.length)return null;var f=u.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==f[0]&&f.unshift(0);var d=f.map((function(e,n){var r=!f[n+1]?a+c-e:f[n+1]-e;if(r<=0)return null;var u=n%o.length;return t.createElement("rect",{key:"react-".concat(n),x:e,y:s,width:r,height:l,stroke:"none",fill:o[u],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var bN=function(e,t){var n=e.xAxis,r=e.width,o=e.height,i=e.offset;return xj(VR(lN(lN(lN({},oN.defaultProps),n),{},{ticks:Cj(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},wN=function(e,t){var n=e.yAxis,r=e.width,o=e.height,i=e.offset;return xj(VR(lN(lN(lN({},oN.defaultProps),n),{},{ticks:Cj(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},xN={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function CN(e){var n,r,o,i,a,s,c,l,u=hR(),f=gR(),d=t.useContext(aR),p=lN(lN({},e),{},{stroke:null!==(n=e.stroke)&&void 0!==n?n:xN.stroke,fill:null!==(r=e.fill)&&void 0!==r?r:xN.fill,horizontal:null!==(o=e.horizontal)&&void 0!==o?o:xN.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:xN.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:xN.vertical,verticalFill:null!==(s=e.verticalFill)&&void 0!==s?s:xN.verticalFill,x:Vf(e.x)?e.x:d.left,y:Vf(e.y)?e.y:d.top,width:Vf(e.width)?e.width:d.width,height:Vf(e.height)?e.height:d.height}),h=p.x,g=p.y,v=p.width,y=p.height,m=p.syncWithTicks,b=p.horizontalValues,w=p.verticalValues,x=(c=t.useContext(rR),Zf(c)),C=(l=t.useContext(oR),eR(l,(function(e){return sI(e.domain,Number.isFinite)}))||Zf(l));if(!Vf(v)||v<=0||!Vf(y)||y<=0||!Vf(h)||h!==+h||!Vf(g)||g!==+g)return null;var S=p.verticalCoordinatesGenerator||bN,_=p.horizontalCoordinatesGenerator||wN,O=p.horizontalPoints,k=p.verticalPoints;if((!O||!O.length)&&_l(_)){var E=b&&b.length,j=_({yAxis:C?lN(lN({},C),{},{ticks:E?b:C.ticks}):void 0,width:u,height:f,offset:d},!!E||m);Td(Array.isArray(j),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(sN(j),"]")),Array.isArray(j)&&(O=j)}if((!k||!k.length)&&_l(S)){var A=w&&w.length,T=S({xAxis:x?lN(lN({},x),{},{ticks:A?w:x.ticks}):void 0,width:u,height:f,offset:d},!!A||m);Td(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(sN(T),"]")),Array.isArray(T)&&(k=T)}return t.createElement("g",{className:"recharts-cartesian-grid"},t.createElement(pN,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height}),t.createElement(gN,fN({},p,{offset:d,horizontalPoints:O,xAxis:x,yAxis:C})),t.createElement(vN,fN({},p,{offset:d,verticalPoints:k,xAxis:x,yAxis:C})),t.createElement(yN,fN({},p,{horizontalPoints:O})),t.createElement(mN,fN({},p,{verticalPoints:k})))}CN.displayName="CartesianGrid";var SN=["type","layout","connectNulls","ref"];function _N(e){return _N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_N(e)}function ON(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 kN(){return kN=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},kN.apply(this,arguments)}function EN(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 jN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EN(Object(n),!0).forEach((function(t){NN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AN(e){return function(e){if(Array.isArray(e))return TN(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 TN(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 TN(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 TN(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 MN(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,BN(r.key),r)}}function PN(e,t,n){return t=LN(t),function(e,t){if(t&&("object"===_N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return IN(e)}(e,DN()?Reflect.construct(t,n||[],LN(e).constructor):t.apply(e,n))}function DN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(DN=function(){return!!e})()}function LN(e){return LN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LN(e)}function IN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RN(e,t){return RN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RN(e,t)}function NN(e,t,n){return(t=BN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BN(e){var t=function(e,t){if("object"!=_N(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_N(t)?t:String(t)}var FN=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return NN(IN(e=PN(this,n,[].concat(r))),"state",{isAnimationFinished:!0,totalLength:0}),NN(IN(e),"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),NN(IN(e),"getStrokeDasharray",(function(t,r,o){var i=o.reduce((function(e,t){return e+t}));if(!i)return e.generateSimpleStrokeDasharray(r,t);for(var a=Math.floor(t/i),s=t%i,c=r-t,l=[],u=0,f=0;u<o.length;f+=o[u],++u)if(f+o[u]>s){l=[].concat(AN(o.slice(0,u)),[s-f]);break}var d=l.length%2==0?[0,c]:[c];return[].concat(AN(n.repeat(o,a)),AN(l),d).map((function(e){return"".concat(e,"px")})).join(", ")})),NN(IN(e),"id",Uf("recharts-line-")),NN(IN(e),"pathRef",(function(t){e.mainCurve=t})),NN(IN(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),NN(IN(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RN(e,t)}(n,t.PureComponent),r=n,o=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(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=pd(r.children,rj);if(!c)return null;var l=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:gj(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(jd,u,c.map((function(e){return t.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:s,dataPointFormatter:l})})))}},{key:"renderDots",value:function(e,r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,s=i.points,c=i.dataKey,l=yd(this.props,!1),u=yd(a,!0),f=s.map((function(e,t){var r=jN(jN(jN({key:"dot-".concat(t),r:3},l),u),{},{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.renderDotItem(a,r)})),d={clipPath:e?"url(#clipPath-".concat(r?"":"dots-").concat(o,")"):null};return t.createElement(jd,kN({className:"recharts-line-dots",key:"dots"},d),f)}},{key:"renderCurveStatically",value:function(e,n,r,o){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var l=ON(i,SN),u=jN(jN(jN({},yd(l,!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(qA,kN({},u,{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,l=o.animationDuration,u=o.animationEasing,f=o.animationId,d=o.animateNewValues,p=o.width,h=o.height,g=this.state,v=g.prevPoints,y=g.totalLength;return t.createElement(WM,{begin:c,duration:l,isActive:s,easing:u,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(v){var s=v.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(v[n]){var r=v[n],i=qf(r.x,e.x),a=qf(r.y,e.y);return jN(jN({},e),{},{x:i(o),y:a(o)})}if(d){var c=qf(2*p,e.x),l=qf(h/2,e.y);return jN(jN({},e),{},{x:c(o),y:l(o)})}return jN(jN({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var l,u=qf(0,y)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(u,y,f)}else l=r.generateSimpleStrokeDasharray(y,u);return r.renderCurveStatically(i,e,n,{strokeDasharray:l})}))}},{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||!Wk(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,n=this.props,r=n.hide,o=n.dot,i=n.points,a=n.className,s=n.xAxis,c=n.yAxis,l=n.top,u=n.left,f=n.width,d=n.height,p=n.isAnimationActive,h=n.id;if(r||!i||!i.length)return null;var g=this.state.isAnimationFinished,v=1===i.length,y=Uc("recharts-line",a),m=s&&s.allowDataOverflow,b=c&&c.allowDataOverflow,w=m||b,x=Sf(h)?this.id:h,C=null!==(e=yd(o,!1))&&void 0!==e?e:{r:3,strokeWidth:2},S=C.r,_=void 0===S?3:S,O=C.strokeWidth,k=void 0===O?2:O,E=(function(e){return e&&"object"===sd(e)&&"cx"in e&&"cy"in e&&"r"in e}(o)?o:{}).clipDot,j=void 0===E||E,A=2*_+k;return t.createElement(jd,{className:y},m||b?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(x)},t.createElement("rect",{x:m?u:u-f/2,y:b?l:l-d/2,width:m?f:2*f,height:b?d:2*d})),!j&&t.createElement("clipPath",{id:"clipPath-dots-".concat(x)},t.createElement("rect",{x:u-A/2,y:l-A/2,width:f+A,height:d+A}))):null,!v&&this.renderCurve(w,x),this.renderErrorBar(w,x),(v||o)&&this.renderDots(w,j,x),(!p||g)&&jA.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(AN(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(AN(r),AN(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(_l(e))r=e(n);else{var o=Uc("recharts-line-dot","boolean"!=typeof e?e.className:"");r=t.createElement(pP,kN({},n,{className:o}))}return r}}],o&&MN(r.prototype,o),i&&MN(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function zN(){return zN=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},zN.apply(this,arguments)}NN(FN,"displayName","Line"),NN(FN,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!pw.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),NN(FN,"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,l=e.offset,u=t.layout,f=c.map((function(e,t){var c=gj(e,a);return"horizontal"===u?{x:Mj({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Sf(c)?null:r.scale(c),value:c,payload:e}:{x:Sf(c)?null:n.scale(c),y:Mj({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}}));return jN({points:f,layout:u},l)}));var HN=function(e){var n=e.xAxisId,r=hR(),o=gR(),i=dR(n);return null==i?null:t.createElement(oN,zN({},i,{className:Uc("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(e){return Cj(e,!0)}}))};function VN(){return VN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VN.apply(this,arguments)}HN.displayName="XAxis",HN.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 KN=function(e){var n=e.yAxisId,r=hR(),o=gR(),i=pR(n);return null==i?null:t.createElement(oN,VN({},i,{className:Uc("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(e){return Cj(e,!0)}}))};function $N(e){return function(e){if(Array.isArray(e))return UN(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 UN(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 UN(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 UN(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}KN.displayName="YAxis",KN.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 WN=function(e,t,n,r,o){var i=pd(e,SR),a=pd(e,AR),s=[].concat($N(i),$N(a)),c=pd(e,IR),l="".concat(r,"Id"),u=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[l]===n&&$L(t.props,"extendDomain")&&Vf(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var d="".concat(u,"1"),p="".concat(u,"2");f=c.reduce((function(e,t){if(t.props[l]===n&&$L(t.props,"extendDomain")&&Vf(t.props[d])&&Vf(t.props[p])){var r=t.props[d],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return Vf(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},ZN={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,p=u.length;for(l=0;l<p;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].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,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[i]=1===l.length?l[0]:l: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}(ZN);var qN=new(ct(ZN.exports)),GN="recharts.syncMouseEvents";function YN(e){return YN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YN(e)}function XN(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,QN(r.key),r)}}function JN(e,t,n){return(t=QN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QN(e){var t=function(e,t){if("object"!=YN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=YN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==YN(t)?t:String(t)}var eB=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),JN(this,"activeIndex",0),JN(this,"coordinateList",[]),JN(this,"layout","horizontal")}var t,n,r;return t=e,n=[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,o=e.container,i=void 0===o?null:o,a=e.layout,s=void 0===a?null:a,c=e.offset,l=void 0===c?null:c,u=e.mouseHandlerCallback,f=void 0===u?null:u;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=i?i:this.container,this.layout=null!=s?s:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,i=n.height,a=this.coordinateList[this.activeIndex].coordinate,s=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,c=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,l=r+a+s,u=o+this.offset.top+i/2+c;this.mouseHandlerCallback({pageX:l,pageY:u})}}}],n&&XN(t.prototype,n),r&&XN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tB(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle;return{points:[qj(t,n,r,o),qj(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function nB(e,t,n){var r,o,i,a;if("horizontal"===e)i=r=t.x,o=n.top,a=n.top+n.height;else if("vertical"===e)a=o=t.y,r=n.left,i=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return tB(t);var s=t.cx,c=t.cy,l=t.innerRadius,u=t.outerRadius,f=t.angle,d=qj(s,c,l,f),p=qj(s,c,u,f);r=d.x,o=d.y,i=p.x,a=p.y}return[{x:r,y:o},{x:i,y:a}]}function rB(e){return rB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rB(e)}function oB(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 iB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oB(Object(n),!0).forEach((function(t){aB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aB(e,t,n){return t=function(e){var t=function(e,t){if("object"!=rB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rB(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sB(e){var n,r=e.element,o=e.tooltipEventType,i=e.isActive,a=e.activeCoordinate,s=e.activePayload,c=e.offset,l=e.activeTooltipIndex,u=e.tooltipAxisBandSize,f=e.layout,d=e.chartName;if(!r||!r.props.cursor||!i||!a||"ScatterChart"!==d&&"axis"!==o)return null;var p=qA;if("ScatterChart"===d)n=a,p=xP;else if("BarChart"===d)n=function(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-o,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(f,a,c,u),p=rP;else if("radial"===f){var h=tB(a),g=h.cx,v=h.cy,y=h.radius;n={cx:g,cy:v,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:y,outerRadius:y},p=NA}else n={points:nB(f,a,c)},p=qA;var m=iB(iB(iB(iB({stroke:"#ccc",pointerEvents:"none"},c),n),yd(r.props.cursor,!1)),{},{payload:s,payloadIndex:l,className:"recharts-tooltip-cursor"});return t.isValidElement(r.props.cursor)?t.cloneElement(r.props.cursor,m):t.createElement(p,m)}var cB=["item"],lB=["children","className","width","height","style","compact","title","desc"];function uB(e){return uB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uB(e)}function fB(){return fB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fB.apply(this,arguments)}function dB(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||xB(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 pB(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 hB(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,kB(r.key),r)}}function gB(e,t,n){return t=yB(t),function(e,t){if(t&&("object"===uB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mB(e)}(e,vB()?Reflect.construct(t,n||[],yB(e).constructor):t.apply(e,n))}function vB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vB=function(){return!!e})()}function yB(e){return yB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yB(e)}function mB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bB(e,t){return bB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bB(e,t)}function wB(e){return function(e){if(Array.isArray(e))return CB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xB(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 xB(e,t){if(e){if("string"==typeof e)return CB(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)?CB(e,t):void 0}}function CB(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 SB(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 _B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SB(Object(n),!0).forEach((function(t){OB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OB(e,t,n){return(t=kB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kB(e){var t=function(e,t){if("object"!=uB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uB(t)?t:String(t)}var EB={xAxis:["bottom","top"],yAxis:["left","right"]},jB={width:"100%",height:"100%"},AB={x:0,y:0};function TB(e){return e}var MB=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,o=t.dataEndIndex,i=(null!=n?n:[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(wB(e),wB(n)):e}),[]);return i.length>0?i:e&&e.length&&Vf(r)&&Vf(o)?e.slice(r,o+1):[]};function PB(e){return"number"===e?[0,"auto"]:void 0}var DB=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=MB(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(o,s){var c,l,u=null!==(c=s.props.data)&&void 0!==c?c:t;(u&&e.dataStartIndex+e.dataEndIndex!==0&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=Gf(void 0===u?a:u,i.dataKey,r):l=u&&u[n]||a[n];return l?[].concat(wB(o),[Fj(s,l)]):o}),[])},LB=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,l=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 l=c>0?r[c-1].coordinate:r[a-1].coordinate,u=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,d=void 0;if(zf(u-l)!==zf(f-u)){var p=[];if(zf(f-u)===zf(s[1]-s[0])){d=f;var h=u+s[1]-s[0];p[0]=Math.min(h,(h+l)/2),p[1]=Math.max(h,(h+l)/2)}else{d=l;var g=f+s[1]-s[0];p[0]=Math.min(u,(g+u)/2),p[1]=Math.max(u,(g+u)/2)}var v=[Math.min(u,(d+u)/2),Math.max(u,(d+u)/2)];if(e>v[0]&&e<=v[1]||e>=p[0]&&e<=p[1]){i=r[c].index;break}}else{var y=Math.min(l,f),m=Math.max(l,f);if(e>(y+u)/2&&e<=(m+u)/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(l>=0&&c){var u=c[l]&&c[l].value,f=DB(e,t,l,u),d=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return _B(_B(_B({},r),qj(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return _B(_B(_B({},r),qj(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return AB}(n,a,l,o);return{activeTooltipIndex:l,activeLabel:u,activePayload:f,activeCoordinate:d}}return null},IB=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,l=e.layout,u=e.children,f=e.stackOffset,d=wj(l,o);return n.reduce((function(t,n){var p,h=n.props,g=h.type,v=h.dataKey,y=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,C=n.props[i];if(t[C])return t;var S,_,O,k=MB(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===C})),dataStartIndex:s,dataEndIndex:c}),E=k.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&Vf(r)&&Vf(o))return!0}return!1})(n.props.domain,y,g)&&(S=Rj(n.props.domain,null,y),!d||"number"!==g&&"auto"===b||(O=vj(k,v,"category")));var j=PB(g);if(!S||0===S.length){var A,T=null!==(A=n.props.domain)&&void 0!==A?A:j;if(v){if(S=vj(k,v,g),"category"===g&&d){var M=function(e){if(!Array.isArray(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}(S);m&&M?(_=S,S=gL(0,E)):m||(S=Bj(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(wB(e),[t])}),[]))}else if("category"===g)S=m?S.filter((function(e){return""!==e&&!Sf(e)})):Bj(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Sf(t)?e:[].concat(wB(e),[t])}),[]);else if("number"===g){var P=function(e,t,n,r,o){var i=t.map((function(t){return mj(e,t,n,o,r)})).filter((function(e){return!Sf(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(k,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),v,o,l);P&&(S=P)}!d||"number"!==g&&"auto"===b||(O=vj(k,v,"category"))}else S=d?gL(0,E):a&&a[C]&&a[C].hasStack&&"number"===g?"expand"===f?[0,1]:Dj(a[C].stackGroups,s,c):bj(k,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),g,l,!0);if("number"===g)S=WN(u,S,C,o,w),T&&(S=Rj(T,S,y));else if("category"===g&&T){var D=T;S.every((function(e){return D.indexOf(e)>=0}))&&(S=D)}}return _B(_B({},t),{},OB({},C,_B(_B({},n.props),{},{axisType:o,domain:S,categoricalDomain:O,duplicateDomain:_,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:j,isCategorical:d,layout:l})))}),{})},RB=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,l=e.children,u="".concat(r,"Id"),f=pd(l,o),d={};return f&&f.length?d=IB(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(d=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,f=MB(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),d=f.length,p=wj(l,o),h=-1;return n.reduce((function(e,t){var g,v=t.props[i],y=PB("number");return e[v]?e:(h++,p?g=gL(0,d):a&&a[v]&&a[v].hasStack?(g=Dj(a[v].stackGroups,s,c),g=WN(u,g,v,o)):(g=Rj(y,bj(f,n.filter((function(e){return e.props[i]===v&&!e.props.hide})),"number",l),r.defaultProps.allowDataOverflow),g=WN(u,g,v,o)),_B(_B({},e),{},OB({},v,_B(_B({axisType:o},r.defaultProps),{},{hide:!0,orientation:Cf(EB,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:y,isCategorical:p,layout:l}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),d},NB=function(e){var t=e.children,n=e.defaultShowTooltip,r=hd(t,LL),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},BB=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"}},FB=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,l=n.children,u=n.margin||{},f=hd(l,LL),d=hd(l,Bm),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:_B(_B({},e),{},OB({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:_B(_B({},e),{},OB({},r,Cf(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),g=_B(_B({},h),p),v=g.bottom;f&&(g.bottom+=f.props.height||LL.defaultProps.height),d&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),c=cj({children:o,legendWidth:s});if(c){var l=r||{},u=l.width,f=l.height,d=c.align,p=c.verticalAlign,h=c.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==d&&Vf(e[d]))return fj(fj({},e),{},dj({},d,e[d]+(u||0)));if(("horizontal"===h||"vertical"===h&&"center"===d)&&"middle"!==p&&Vf(e[p]))return fj(fj({},e),{},dj({},p,e[p]+(f||0)))}return e}(g,0,n,t));var y=s-g.left-g.right,m=c-g.top-g.bottom;return _B(_B({brushBottom:v},g),{},{width:Math.max(y,0),height:Math.max(m,0)})},zB=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,l=e.axisComponents,u=e.legendContent,f=e.formatAxisMap,d=e.defaultProps,p=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,u=e.layout,f=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=BB(u),g=h.numericAxisName,v=h.cateAxisName,y=function(e){return!(!e||!e.length)&&e.some((function(e){var t=ld(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=y&&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,l=Object.keys(c),u=0,f=l.length;u<f;u++){var d=c[l[u]],p=d.items,h=d.cateAxisId,g=p.filter((function(e){return ld(e.type).indexOf("Bar")>=0}));if(g&&g.length){var v=g[0].props.barSize,y=g[0].props[h];o[y]||(o[y]=[]),o[y].push({item:g[0],stackList:g.slice(1),barSize:Sf(v)?t:v})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=MB(e.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:s}),y=n.props,w=y.dataKey,x=y.maxBarSize,C=n.props["".concat(g,"Id")],S=n.props["".concat(v,"Id")],_=l.reduce((function(e,r){var o,i,a=t["".concat(r.axisType,"Map")],s=n.props["".concat(r.axisType,"Id")];a&&a[s]||"zAxis"===r.axisType||("production"!==process.env.NODE_ENV?XE(!1,"Specifying a(n) ".concat(r.axisType,"Id requires a corresponding ").concat(r.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==n||null===(i=n.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):XE(!1));var c=a[s];return _B(_B({},e),{},OB(OB({},r.axisType,c),"".concat(r.axisType,"Ticks"),Cj(c)))}),{}),O=_[v],k=_["".concat(v,"Ticks")],E=r&&r[C]&&r[C].hasStack&&function(e,t){var n=e.props.stackId;if(Kf(n)){var r=t[n];if(r){var o=r.items.indexOf(e);return o>=0?r.stackedData[o]:null}}return null}(n,r[C].stackGroups),j=ld(n.type).indexOf("Bar")>=0,A=Nj(O,k),T=[];if(j){var M,P,D=Sf(x)?p:x,L=null!==(M=null!==(P=Nj(O,k,!0))&&void 0!==P?P:D)&&void 0!==M?M:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var c,l=Wf(t,r,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var f=!1,d=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*l)>=r&&(p-=(s-1)*l,l=0),p>=r&&d>0&&(f=!0,p=s*(d*=.9));var h={offset:((r-p)/2>>0)-l,size:0};c=i.reduce((function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+l,size:f?d:t.barSize}},r=[].concat(pj(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:h})})),r}),u)}else{var g=Wf(n,r,0,!0);r-2*g-(s-1)*l<=0&&(l=0);var v=(r-2*g-(s-1)*l)/s;v>1&&(v>>=0);var y=a===+a?Math.min(v,a):v;c=i.reduce((function(e,t,n){var r=[].concat(pj(e),[{item:t.item,position:{offset:g+(v+l)*n+(v-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}),u)}return c}({barGap:f,barCategoryGap:d,bandSize:L!==A?L:A,sizeList:m[S],maxBarSize:D}),L!==A&&(T=T.map((function(e){return _B(_B({},e),{},{position:_B(_B({},e.position),{},{offset:e.position.offset-L/2})})})))}var I,R,N=n&&n.type&&n.type.getComposedData;N&&b.push({props:_B(_B({},N(_B(_B({},_),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},OB(OB(OB({key:n.key||"item-".concat(c)},g,_[g]),v,_[v]),"animationId",i)),childIndex:(I=n,R=e.children,dd(R).indexOf(I)),item:n})})),b},h=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!gd({props:n}))return null;var c=n.children,u=n.layout,d=n.stackOffset,h=n.data,g=n.reverseStackOrder,v=BB(u),y=v.numericAxisName,m=v.cateAxisName,b=pd(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(Kf(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[Uf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return fj(fj({},e),{},dj({},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 fj(fj({},t),{},dj({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:Aj(e,a.items,o)}))}),{})),fj(fj({},t),{},dj({},i,s))}),{})}(h,b,"".concat(y,"Id"),"".concat(m,"Id"),d,g),x=l.reduce((function(e,t){var r="".concat(t.axisType,"Map");return _B(_B({},e),{},OB({},r,RB(n,_B(_B({},t),{},{graphicalItems:b,stackGroups:t.axisType===y&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),C=FB(_B(_B({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=f(n,x[e],C,e.replace("Map",""),r)}));var S,_,O=x["".concat(m,"Map")],k=(S=Zf(O),{tooltipTicks:_=Cj(S,!1,!0),orderedTooltipTicks:Fb(_,(function(e){return e.coordinate})),tooltipAxis:S,tooltipAxisBandSize:Nj(S,_)}),E=p(n,_B(_B({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:C}));return _B(_B({formattedGraphicalItems:E,graphicalItems:b,offset:C,stackGroups:w},k),x)};return n=function(e){function n(e){var o,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),OB(mB(a=gB(this,n,[e])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),OB(mB(a),"accessibilityManager",new eB),OB(mB(a),"handleLegendBBoxUpdate",(function(e){if(e){var t=a.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;a.setState(_B({legendBBox:e},h({props:a.props,dataStartIndex:n,dataEndIndex:r,updateId:o},_B(_B({},a.state),{},{legendBBox:e}))))}})),OB(mB(a),"handleReceiveSyncEvent",(function(e,t,n){if(a.props.syncId===e){if(n===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(t)}})),OB(mB(a),"handleBrushChange",(function(e){var t=e.startIndex,n=e.endIndex;if(t!==a.state.dataStartIndex||n!==a.state.dataEndIndex){var r=a.state.updateId;a.setState((function(){return _B({dataStartIndex:t,dataEndIndex:n},h({props:a.props,dataStartIndex:t,dataEndIndex:n,updateId:r},a.state))})),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}})),OB(mB(a),"handleMouseEnter",(function(e){var t=a.getMouseInfo(e);if(t){var n=_B(_B({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseEnter;_l(r)&&r(n,e)}})),OB(mB(a),"triggeredAfterMouseMove",(function(e){var t=a.getMouseInfo(e),n=t?_B(_B({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseMove;_l(r)&&r(n,e)})),OB(mB(a),"handleItemMouseEnter",(function(e){a.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),OB(mB(a),"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),OB(mB(a),"handleMouseMove",(function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)})),OB(mB(a),"handleMouseLeave",(function(e){a.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var n=a.props.onMouseLeave;_l(n)&&n(t,e)})),OB(mB(a),"handleOuterEvent",(function(e){var t,n=function(e){var t=e&&e.type;return t&&cd[t]?cd[t]:null}(e),r=Cf(a.props,"".concat(n));n&&_l(r)&&r(null!==(t=/.*touch.*/i.test(n)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))&&void 0!==t?t:{},e)})),OB(mB(a),"handleClick",(function(e){var t=a.getMouseInfo(e);if(t){var n=_B(_B({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onClick;_l(r)&&r(n,e)}})),OB(mB(a),"handleMouseDown",(function(e){var t=a.props.onMouseDown;_l(t)&&t(a.getMouseInfo(e),e)})),OB(mB(a),"handleMouseUp",(function(e){var t=a.props.onMouseUp;_l(t)&&t(a.getMouseInfo(e),e)})),OB(mB(a),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),OB(mB(a),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])})),OB(mB(a),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])})),OB(mB(a),"triggerSyncEvent",(function(e){void 0!==a.props.syncId&&qN.emit(GN,a.props.syncId,e,a.eventEmitterSymbol)})),OB(mB(a),"applySyncEvent",(function(e){var t=a.props,n=t.layout,r=t.syncMethod,o=a.state.updateId,i=e.dataStartIndex,s=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(_B({dataStartIndex:i,dataEndIndex:s},h({props:a.props,dataStartIndex:i,dataEndIndex:s,updateId:o},a.state)));else if(void 0!==e.activeTooltipIndex){var c=e.chartX,l=e.chartY,u=e.activeTooltipIndex,f=a.state,d=f.offset,p=f.tooltipTicks;if(!d)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var g=0;g<p.length;g++)if(p[g].value===e.activeLabel){u=g;break}}var v=_B(_B({},d),{},{x:d.left,y:d.top}),y=Math.min(c,v.x+v.width),m=Math.min(l,v.y+v.height),b=p[u]&&p[u].value,w=DB(a.state,a.props.data,u),x=p[u]?{x:"horizontal"===n?p[u].coordinate:y,y:"horizontal"===n?m:p[u].coordinate}:AB;a.setState(_B(_B({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:u}))}else a.setState(e)})),OB(mB(a),"renderCursor",(function(e){var n,o=a.state,i=o.isTooltipActive,s=o.activeCoordinate,c=o.activePayload,l=o.offset,u=o.activeTooltipIndex,f=o.tooltipAxisBandSize,d=a.getTooltipEventType(),p=null!==(n=e.props.active)&&void 0!==n?n:i,h=a.props.layout,g=e.key||"_recharts-cursor";return t.createElement(sB,{key:g,activeCoordinate:s,activePayload:c,activeTooltipIndex:u,chartName:r,element:e,isActive:p,layout:h,offset:l,tooltipAxisBandSize:f,tooltipEventType:d})})),OB(mB(a),"renderPolarAxis",(function(e,n,r){var o=Cf(e,"type.axisType"),i=Cf(a.state,"".concat(o,"Map")),s=i&&i[e.props["".concat(o,"Id")]];return t.cloneElement(e,_B(_B({},s),{},{className:o,key:e.key||"".concat(n,"-").concat(r),ticks:Cj(s,!0)}))})),OB(mB(a),"renderPolarGrid",(function(e){var n=e.props,r=n.radialLines,o=n.polarAngles,i=n.polarRadius,s=a.state,c=s.radiusAxisMap,l=s.angleAxisMap,u=Zf(c),f=Zf(l),d=f.cx,p=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:Array.isArray(o)?o:Cj(f,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(i)?i:Cj(u,!0).map((function(e){return e.coordinate})),cx:d,cy:p,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:r})})),OB(mB(a),"renderLegend",(function(){var e=a.state.formattedGraphicalItems,n=a.props,r=n.children,o=n.width,i=n.height,s=a.props.margin||{},c=o-(s.left||0)-(s.right||0),l=cj({children:r,formattedGraphicalItems:e,legendWidth:c,legendContent:u});if(!l)return null;var f=l.item,d=pB(l,cB);return t.cloneElement(f,_B(_B({},d),{},{chartWidth:o,chartHeight:i,margin:s,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),OB(mB(a),"renderTooltip",(function(){var e,n=a.props,r=n.children,o=n.accessibilityLayer,i=hd(r,Ow);if(!i)return null;var s=a.state,c=s.isTooltipActive,l=s.activeCoordinate,u=s.activePayload,f=s.activeLabel,d=s.offset,p=null!==(e=i.props.active)&&void 0!==e?e:c;return t.cloneElement(i,{viewBox:_B(_B({},d),{},{x:d.left,y:d.top}),active:p,label:f,payload:p?u:[],coordinate:l,accessibilityLayer:o})})),OB(mB(a),"renderBrush",(function(e){var n=a.props,r=n.margin,o=n.data,i=a.state,s=i.offset,c=i.dataStartIndex,l=i.dataEndIndex,u=i.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:_j(a.handleBrushChange,e.props.onChange),data:o,x:Vf(e.props.x)?e.props.x:s.left,y:Vf(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(r.bottom||0),width:Vf(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),OB(mB(a),"renderReferenceElement",(function(e,n,r){if(!e)return null;var o=mB(a).clipPathId,i=a.state,s=i.xAxisMap,c=i.yAxisMap,l=i.offset,u=e.props,f=u.xAxisId,d=u.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:s[f],yAxis:c[d],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:o})})),OB(mB(a),"renderActivePoints",(function(e){var t=e.item,r=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,s=[],c=t.props.key,l=t.item.props,u=l.activeDot,f=_B(_B({index:i,dataKey:l.dataKey,cx:r.x,cy:r.y,r:4,fill:yj(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(c,"-activePoint-").concat(i)},yd(u,!1)),nd(u));return s.push(n.renderActiveDot(u,f)),o?s.push(n.renderActiveDot(u,_B(_B({},f),{},{cx:o.x,cy:o.y,key:"".concat(c,"-basePoint-").concat(i)}))):a&&s.push(null),s})),OB(mB(a),"renderGraphicChild",(function(e,n,r){var o=a.filterFormatItem(e,n,r);if(!o)return null;var i=a.getTooltipEventType(),s=a.state,c=s.isTooltipActive,l=s.tooltipAxis,u=s.activeTooltipIndex,f=s.activeLabel,d=hd(a.props.children,Ow),p=o.props,h=p.points,g=p.isRange,v=p.baseLine,y=o.item.props,m=y.activeDot,b=y.hide,w=y.activeBar,x=y.activeShape,C=Boolean(!b&&c&&d&&(m||w||x)),S={};"axis"!==i&&d&&"click"===d.props.trigger?S={onClick:_j(a.handleItemMouseEnter,e.props.onClick)}:"axis"!==i&&(S={onMouseLeave:_j(a.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:_j(a.handleItemMouseEnter,e.props.onMouseEnter)});var _=t.cloneElement(e,_B(_B({},o.props),S));if(C){if(!(u>=0)){var O,k=(null!==(O=a.getItemByXY(a.state.activeCoordinate))&&void 0!==O?O:{graphicalItem:_}).graphicalItem,E=k.item,j=void 0===E?e:E,A=k.childIndex,T=_B(_B(_B({},o.props),S),{},{activeIndex:A});return[t.cloneElement(j,T),null,null]}var M,P;if(l.dataKey&&!l.allowDuplicatedCategory){var D="function"==typeof l.dataKey?function(e){return"function"==typeof l.dataKey?l.dataKey(e.payload):null}:"payload.".concat(l.dataKey.toString());M=Gf(h,D,f),P=g&&v&&Gf(v,D,f)}else M=null==h?void 0:h[u],P=g&&v&&v[u];if(x||w){var L=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[t.cloneElement(e,_B(_B(_B({},o.props),S),{},{activeIndex:L})),null,null]}if(!Sf(M))return[_].concat(wB(a.renderActivePoints({item:o,activePoint:M,basePoint:P,childIndex:u,isRange:g})))}return g?[_,null,null]:[_,null]})),OB(mB(a),"renderCustomized",(function(e,n,r){return t.cloneElement(e,_B(_B({key:"recharts-customized-".concat(r)},a.props),a.state))})),OB(mB(a),"renderMap",{CartesianGrid:{handler:TB,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:TB},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:TB},YAxis:{handler:TB},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(o=e.id)&&void 0!==o?o:Uf("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=Gw(a.triggeredAfterMouseMove,null!==(i=e.throttleDelay)&&void 0!==i?i:1e3/60),a.state={},a}var o,i,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bB(e,t)}(n,t.Component),o=n,i=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,i=hd(t,Ow);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var s=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,c=DB(this.state,n,a,s),l=this.state.tooltipTicks[a].coordinate,u=(this.state.offset.top+r)/2,f="horizontal"===o?{x:l,y:u}:{y:l,x:u},d=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));d&&(f=_B(_B({},f),d.props.points[a].tooltipPosition),c=d.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:s,activePayload:c,activeCoordinate:f};this.setState(p),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){md([hd(e.children,Ow)],[hd(this.props.children,Ow)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=hd(this.props.children,Ow);if(e&&"boolean"==typeof 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=this.container,r=n.getBoundingClientRect(),o={top:(t=r).top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(e.pageX-o.left),chartY:Math.round(e.pageY-o.top)},a=r.width/n.offsetWidth||1,s=this.inRange(i.chartX,i.chartY,a);if(!s)return null;var c=this.state,l=c.xAxisMap,u=c.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&u){var f=Zf(l).scale,d=Zf(u).scale,p=f&&f.invert?f.invert(i.chartX):null,h=d&&d.invert?d.invert(i.chartY):null;return _B(_B({},i),{},{xValue:p,yValue:h})}var g=LB(this.state,this.props.data,this.props.layout,s);return g?_B(_B({},i),g):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var s=this.state,c=s.angleAxisMap,l=s.radiusAxisMap;if(c&&l){var u=Zf(c);return Jj({x:o,y:i},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=hd(e,Ow),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}),_B(_B({},nd(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){qN.on(GN,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){qN.removeListener(GN,this.handleReceiveSyncEvent)}},{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===ld(a.item.type)&&n===a.childIndex)return a}return null}},{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=dB(t,2),r=n[0],o=n[1];return _B(_B({},e),{},OB({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=dB(t,2),r=n[0],o=n[1];return _B(_B({},e),{},OB({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var o=0,i=n.length;o<i;o++){var a=n[o],s=a.props,c=a.item,l=ld(c.type);if("Bar"===l){var u=(s.data||[]).find((function(t){return tP(e,t)}));if(u)return{graphicalItem:a,payload:u}}else if("RadialBar"===l){var f=(s.data||[]).find((function(t){return Jj(e,t)}));if(f)return{graphicalItem:a,payload:f}}else if(zD(a,r)||HD(a,r)||VD(a,r)){var d=WD({graphicalItem:a,activeTooltipItem:r,itemData:c.props.data}),p=void 0===c.props.activeIndex?d:c.props.activeIndex;return{graphicalItem:_B(_B({},a),{},{childIndex:p}),payload:VD(a,r)?c.props.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var e,n=this;if(!gd(this))return null;var r,o,i=this.props,a=i.children,s=i.className,c=i.width,l=i.height,u=i.style,f=i.compact,d=i.title,p=i.desc,h=pB(i,lB),g=yd(h,!1);if(f)return t.createElement(uR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement(_d,fB({},g,{width:c,height:l,title:d,desc:p}),this.renderClipPath(),wd(a,this.renderMap)));this.props.accessibilityLayer&&(g.tabIndex=null!==(r=this.props.tabIndex)&&void 0!==r?r:0,g.role=null!==(o=this.props.role)&&void 0!==o?o:"application",g.onKeyDown=function(e){n.accessibilityManager.keyboardEvent(e)},g.onFocus=function(){n.accessibilityManager.focus()});var v=this.parseEventsOfWrapper();return t.createElement(uR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement("div",fB({className:Uc("recharts-wrapper",s),style:_B({position:"relative",cursor:"default",width:c,height:l},u)},v,{ref:function(e){n.container=e},role:null!==(e=g.role)&&void 0!==e?e:"region"}),t.createElement(_d,fB({},g,{width:c,height:l,title:d,desc:p,style:jB}),this.renderClipPath(),wd(a,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&hB(o.prototype,i),s&&hB(o,s),Object.defineProperty(o,"prototype",{writable:!1}),n}(),OB(n,"displayName",r),OB(n,"defaultProps",_B({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),OB(n,"getDerivedStateFromProps",(function(e,t){var n=e.dataKey,r=e.data,o=e.children,i=e.width,a=e.height,s=e.layout,c=e.stackOffset,l=e.margin,u=t.dataStartIndex,f=t.dataEndIndex;if(void 0===t.updateId){var d=NB(e);return _B(_B(_B({},d),{},{updateId:0},h(_B(_B({props:e},d),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(n!==t.prevDataKey||r!==t.prevData||i!==t.prevWidth||a!==t.prevHeight||s!==t.prevLayout||c!==t.prevStackOffset||!Yf(l,t.prevMargin)){var p=NB(e),g={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},v=_B(_B({},LB(t,r,s)),{},{updateId:t.updateId+1}),y=_B(_B(_B({},p),g),v);return _B(_B(_B({},y),h(_B({props:e},y),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(!md(o,t.prevChildren)){var m,b,w,x,C=hd(o,LL),S=C&&null!==(m=null===(b=C.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:u,_=C&&null!==(w=null===(x=C.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,O=S!==u||_!==f,k=!Sf(r)&&!O?t.updateId:t.updateId+1;return _B(_B({updateId:k},h(_B(_B({props:e},t),{},{updateId:k,dataStartIndex:S,dataEndIndex:_}),t)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:_})}return null})),OB(n,"renderActiveDot",(function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):_l(e)?e(n):t.createElement(pP,n),t.createElement(jd,{className:"recharts-active-dot",key:n.key},r)})),n},HB=zB({chartName:"LineChart",GraphicalChild:FN,axisComponents:[{axisType:"xAxis",AxisComp:HN},{axisType:"yAxis",AxisComp:KN}],formatAxisMap:FI}),VB=zB({chartName:"BarChart",GraphicalChild:PI,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:HN},{axisType:"yAxis",AxisComp:KN}],formatAxisMap:FI}),KB=zB({chartName:"PieChart",GraphicalChild:iL,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:aD},{axisType:"radiusAxis",AxisComp:WP}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,l=Wf(e.cx,i,i/2),u=Wf(e.cy,a,a/2),f=Gj(i,a,n),d=Wf(e.innerRadius,f,0),p=Wf(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(Sf(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[d,p]),h&&(i=[i[1],i[0]]);else{var g=$j(i=a.range,2);s=g[0],c=g[1]}var v=Oj(a,o),y=v.realScaleType,m=v.scale;m.domain(f).range(i),Ej(m);var b=Tj(m,Vj(Vj({},a),{},{realScaleType:y})),w=Vj(Vj(Vj({},a),b),{},{range:i,radius:p,realScaleType:y,scale:m,cx:l,cy:u,innerRadius:d,outerRadius:p,startAngle:s,endAngle:c});return Vj(Vj({},e),{},Kj({},n,w))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const $B=W.div((({theme:e,color:t,size:n})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm}),cn,ln);function UB(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function WB(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function ZB(e,t){const n=UB(e);return isNaN(t)?WB(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function qB(e,t){const n=UB(e);if(isNaN(t))return WB(e,NaN);if(!t)return n;const r=n.getDate(),o=WB(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function GB(e,t){const{years:n=0,months:r=0,weeks:o=0,days:i=0,hours:a=0,minutes:s=0,seconds:c=0}=t,l=UB(e),u=r||n?qB(l,r+12*n):l,f=1e3*(c+60*(s+60*a));return WB(e,(i||o?ZB(u,i+7*o):u).getTime()+f)}const YB=6048e5,XB=864e5;let JB={};function QB(){return JB}function eF(e,t){const n=QB(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=UB(e),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function tF(e){return eF(e,{weekStartsOn:1})}function nF(e){const t=UB(e),n=t.getFullYear(),r=WB(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=tF(r),i=WB(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const a=tF(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function rF(e){const t=UB(e);return t.setHours(0,0,0,0),t}function oF(e){const t=UB(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function iF(e,t){const n=rF(e),r=rF(t),o=+n-oF(n),i=+r-oF(r);return Math.round((o-i)/XB)}function aF(e){return WB(e,Date.now())}function sF(e,t){return+rF(e)==+rF(t)}function cF(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=UB(e);return!isNaN(Number(n))}function lF(e,t){const 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 uF(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}function fF(e,t,n){const r=function(e,t){return+UB(e)-+UB(t)}(e,t)/6e4;return uF(n?.roundingMethod)(r)}function dF(e,t,n){const r=function(e,t){const n=UB(e),r=UB(t),o=lF(n,r),i=Math.abs(iF(n,r));n.setDate(n.getDate()-o*i);const a=o*(i-Number(lF(n,r)===-o));return 0===a?0:a}(e,t)/7;return uF(n?.roundingMethod)(r)}const pF={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 hF(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const gF={date:hF({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:hF({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:hF({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},vF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function yF(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const mF={ordinalNumber:(e,t)=>{const 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:yF({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:yF({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:yF({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:yF({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:yF({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 bF(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(a)));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}const wF={ordinalNumber:(xF={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(xF.matchPattern);if(!n)return null;const r=n[0],o=e.match(xF.parsePattern);if(!o)return null;let i=xF.valueCallback?xF.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:bF({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:bF({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:e=>e+1}),month:bF({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:bF({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:bF({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"})};var xF;const CF={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=pF[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:gF,formatRelative:(e,t,n,r)=>vF[e],localize:mF,match:wF,options:{weekStartsOn:0,firstWeekContainsDate:1}};function SF(e){const t=UB(e),n=iF(t,function(e){const t=UB(e),n=WB(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function _F(e){const t=UB(e),n=+tF(t)-+function(e){const t=nF(e),n=WB(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),tF(n)}(t);return Math.round(n/YB)+1}function OF(e,t){const n=UB(e),r=n.getFullYear(),o=QB(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=WB(e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=eF(a,t),c=WB(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const l=eF(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function kF(e,t){const n=UB(e),r=+eF(n,t)-+function(e,t){const n=QB(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=OF(e,t),i=WB(e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),eF(i,t)}(n,t);return Math.round(r/YB)+1}function EF(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const jF={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return EF("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):EF(n+1,2)},d:(e,t)=>EF(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>EF(e.getHours()%12||12,t.length),H:(e,t)=>EF(e.getHours(),t.length),m:(e,t)=>EF(e.getMinutes(),t.length),s:(e,t)=>EF(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return EF(Math.trunc(r*Math.pow(10,n-3)),t.length)}},AF="midnight",TF="noon",MF="morning",PF="afternoon",DF="evening",LF="night",IF={G:function(e,t,n){const r=e.getFullYear()>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){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return jF.y(e,t)},Y:function(e,t,n,r){const o=OF(e,r),i=o>0?o:1-o;if("YY"===t){return EF(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):EF(i,t.length)},R:function(e,t){return EF(nF(e),t.length)},u:function(e,t){return EF(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return EF(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){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return EF(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){const r=e.getMonth();switch(t){case"M":case"MM":return jF.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return EF(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){const o=kF(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):EF(o,t.length)},I:function(e,t,n){const r=_F(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):EF(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):jF.d(e,t)},D:function(e,t,n){const r=SF(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):EF(r,t.length)},E:function(e,t,n){const r=e.getDay();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){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return EF(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){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return EF(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){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return EF(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){const r=e.getHours()/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){const r=e.getHours();let o;switch(o=12===r?TF:0===r?AF:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?DF:r>=12?PF:r>=4?MF:LF,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return jF.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):jF.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):EF(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):EF(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):jF.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):jF.s(e,t)},S:function(e,t){return jF.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return NF(r);case"XXXX":case"XX":return BF(r);default:return BF(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return NF(r);case"xxxx":case"xx":return BF(r);default:return BF(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+RF(r,":");default:return"GMT"+BF(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+RF(r,":");default:return"GMT"+BF(r,":")}},t:function(e,t,n){return EF(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return EF(e.getTime(),t.length)}};function RF(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+EF(i,2)}function NF(e,t){if(e%60==0){return(e>0?"-":"+")+EF(Math.abs(e)/60,2)}return BF(e,t)}function BF(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+EF(Math.trunc(r/60),2)+t+EF(r%60,2)}const FF=(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"})}},zF=(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"})}},HF={p:zF,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return FF(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",FF(r,t)).replace("{{time}}",zF(o,t))}},VF=/^D+$/,KF=/^Y+$/,$F=["D","DD","YY","YYYY"];const UF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ZF=/^'([^]*?)'?$/,qF=/''/g,GF=/[a-zA-Z]/;function YF(e,t,n){const r=QB(),o=n?.locale??r.locale??CF,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=UB(e);if(!cF(s))throw new RangeError("Invalid time value");let c=t.match(WF).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,HF[t])(e,o.formatLong)}return e})).join("").match(UF).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:XF(e)};if(IF[t])return{isToken:!0,value:e};if(t.match(GF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const l={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return c.map((r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&function(e){return KF.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return VF.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),$F.includes(e))throw new RangeError(r)}(i,t,String(e));return(0,IF[i[0]])(s,i,o.localize,l)})).join("")}function XF(e){const t=e.match(ZF);return t?t[1].replace(qF,"'"):e}function JF(e){return UB(e).getDate()}function QF(e){const t=UB(e),n=t.getFullYear(),r=t.getMonth(),o=WB(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function ez(e){const t=UB(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function tz(e,t){const n=UB(e),r=UB(t);return n.getTime()>r.getTime()}function nz(e,t){return+UB(e)<+UB(t)}function rz(e){return function(e,t){const n=UB(e),r=UB(t);return n.getFullYear()===r.getFullYear()}(e,aF(e))}function oz(e,t){return ZB(e,-t)}function iz(e,t){let n=UB(e);return isNaN(+n)?WB(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){const n=UB(e),r=n.getFullYear(),o=n.getDate(),i=WB(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const a=QF(i);return n.setMonth(t,Math.min(o,a)),n}(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}function az(e,t){const n=UB(e);return n.setDate(t),n}function sz(e,t){const{years:n=0,months:r=0,weeks:o=0,days:i=0,hours:a=0,minutes:s=0,seconds:c=0}=t,l=function(e,t){return qB(e,-t)}(e,r+12*n),u=1e3*(c+60*(s+60*a));return WB(e,oz(l,i+7*o).getTime()-u)}const cz=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},lz=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),uz=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-vertical line:first-of-type":{strokeOpacity:0},".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),fz=W.div((({width:e,height:t,maxWidth:n,maxHeight:r,responsive:o})=>({width:e||"100%",height:t||"100%",maxWidth:o?n||"100%":void 0,maxHeight:o?r||"100%":void 0})),cn),dz=({active:t,payload:n,label:r})=>t&&n&&n.length?e.jsxs(yz,{children:[e.jsx(mz,{children:r}),null==n?void 0:n.map((t=>{var n,r;const o=t.color||(null===(n=t.payload)||void 0===n?void 0:n.color),i=`${null===(r=t.payload)||void 0===r?void 0:r.name}-${t.dataKey}-${t.value}`;return e.jsxs(vz,{children:[o&&e.jsx($B,{color:o}),t.name,": ",lz(t.value||0)]},i)}))]}):null,pz=()=>{const{elevation1:t}=n.useTheme();return e.jsx(Ow,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e.jsx(dz,{})})},hz=({payload:t,toggleData:n})=>e.jsx(gz,{children:null==t?void 0:t.map((t=>e.jsxs(vz,{onClick:n?()=>n(t):void 0,clickable:!!n,inactive:t.inactive,children:[e.jsx($B,{color:t.color}),t.value]},`${t.dataKey}-${t.value}`)))}),gz=W.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),vz=W.div((({theme:e,clickable:t,inactive:n})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize",borderRadius:8,lineHeight:"15px",backgroundColor:t?e.scale1:void 0,padding:t?"4px 8px":void 0,cursor:t?"pointer":void 0,opacity:n?.3:1}))),yz=W.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),mz=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4})));let bz;const wz=new Uint8Array(16);function xz(){if(!bz&&(bz="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!bz))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bz(wz)}const Cz=[];for(let e=0;e<256;++e)Cz.push((e+256).toString(16).slice(1));var Sz={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function _z(e,t,n){if(Sz.randomUUID&&!t&&!e)return Sz.randomUUID();const r=(e=e||{}).random||(e.rng||xz)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return Cz[e[t+0]]+Cz[e[t+1]]+Cz[e[t+2]]+Cz[e[t+3]]+"-"+Cz[e[t+4]]+Cz[e[t+5]]+"-"+Cz[e[t+6]]+Cz[e[t+7]]+"-"+Cz[e[t+8]]+Cz[e[t+9]]+"-"+Cz[e[t+10]]+Cz[e[t+11]]+Cz[e[t+12]]+Cz[e[t+13]]+Cz[e[t+14]]+Cz[e[t+15]]}(r)}const Oz=W.div((({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,minHeight:349,padding:"20px 24px",backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"}))),kz=W.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),Ez=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),jz=W.div({display:"flex"}),Az=W.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),Tz=W.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:o})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:o?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),Mz=W.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),Pz=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),Dz=W.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),cn),Lz=W.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),Iz=W.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),Rz=n=>{var{id:r,label:o,labelPosition:i,checked:a,partial:s,disabled:l,onChange:u,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g}=n,v=c(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,m]=t.useState("checkbox-off"),[b,w]=t.useState(a||!1),x=t.useRef(null),C="right"===i,S={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(s?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,s]),t.useEffect((()=>{w("boolean"==typeof a?a:b)}),[a,b]),e.jsxs(Dz,Object.assign({htmlFor:r,labelRight:C,disabled:l},S,{children:[o&&e.jsx(Iz,{children:o}),e.jsx(Lz,Object.assign({ref:x,id:r,type:"checkbox",checked:s?!b:b,disabled:l,onChange:()=>{const e=!!s||!b;w(e),u(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!s)}},v)),e.jsx(fn,{name:y,marginLeft:o&&!C?8:0,marginRight:o&&C?8:0,pointer:!l})]}))};var Nz,Bz,Fz=Object.create,zz=Object.defineProperty,Hz=Object.defineProperties,Vz=Object.getOwnPropertyDescriptor,Kz=Object.getOwnPropertyDescriptors,$z=Object.getOwnPropertyNames,Uz=Object.getOwnPropertySymbols,Wz=Object.getPrototypeOf,Zz=Object.prototype.hasOwnProperty,qz=Object.prototype.propertyIsEnumerable,Gz=(e,t,n)=>t in e?zz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yz=(e,t)=>{for(var n in t||(t={}))Zz.call(t,n)&&Gz(e,n,t[n]);if(Uz)for(var n of Uz(t))qz.call(t,n)&&Gz(e,n,t[n]);return e},Xz=(e,t)=>Hz(e,Kz(t)),Jz=(e,t)=>{var n={};for(var r in e)Zz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Uz)for(var r of Uz(e))t.indexOf(r)<0&&qz.call(e,r)&&(n[r]=e[r]);return n},Qz=(Nz={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===l&&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],l=r.util.type(c);"Object"!==l||i[a(c)]?"Array"!==l||i[a(c)]||(i[a(c)]=!0,e(c,n,s,i)):(i[a(c)]=!0,e(c,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,u,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,C=s.next,S=u;C!==t.tail&&!(f&&S>=f.reach);S+=C.value.length,C=C.next){var _=C.value;if(t.length>e.length)return;if(!(_ instanceof o)){var O,k=1;if(m){if(!(O=i(x,S,e,y))||O.index>=e.length)break;var E=O.index,j=O.index+O[0].length,A=S;for(A+=C.value.length;E>=A;)A+=(C=C.next).value.length;if(S=A-=C.value.length,C.value instanceof o)continue;for(var T=C;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,_=e.slice(S,A),O.index-=S}else if(!(O=i(x,0,_,y)))continue;E=O.index;var M=O[0],P=_.slice(0,E),D=_.slice(E+M.length),L=S+_.length;f&&L>f.reach&&(f.reach=L);var I=C.prev;if(P&&(I=c(t,I,P),S+=P.length),l(t,I,k),C=c(t,I,new o(d,v?r.tokenize(M,v):M,b,M)),D&&c(t,C,D),k>1){var R={cause:d+","+h,reach:L};a(e,t,n,C.prev,S,R),f&&R.reach>f.reach&&(f.reach=R.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 l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var c in i.attributes)s+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}();t.exports=n,n.default=n}},function(){return Bz||(0,Nz[$z(Nz)[0]])((Bz={exports:{}}).exports,Bz),Bz.exports}),eH=((e,t,n)=>(n=null!=e?Fz(Wz(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of $z(t))Zz.call(e,o)||o===n||zz(e,o,{get:()=>t[o],enumerable:!(r=Vz(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:zz(n,"default",{value:e,enumerable:!0}),e)))(Qz());eH.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},eH.languages.markup.tag.inside["attr-value"].inside.entity=eH.languages.markup.entity,eH.languages.markup.doctype.inside["internal-subset"].inside=eH.languages.markup,eH.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(eH.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:eH.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:eH.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},eH.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(eH.languages.markup.tag,"addAttribute",{value:function(e,t){eH.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:eH.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),eH.languages.html=eH.languages.markup,eH.languages.mathml=eH.languages.markup,eH.languages.svg=eH.languages.markup,eH.languages.xml=eH.languages.extend("markup",{}),eH.languages.ssml=eH.languages.xml,eH.languages.atom=eH.languages.xml,eH.languages.rss=eH.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(eH),eH.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:/[{}[\];(),.:]/},eH.languages.javascript=eH.languages.extend("clike",{"class-name":[eH.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}|\?\?=?|\?\.?|[~:]/}),eH.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,eH.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:eH.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:eH.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:eH.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:eH.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:eH.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),eH.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:eH.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"}}),eH.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),eH.languages.markup&&(eH.languages.markup.tag.addInlined("script","javascript"),eH.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")),eH.languages.js=eH.languages.javascript,eH.languages.actionscript=eH.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),eH.languages.actionscript["class-name"].alias="function",delete eH.languages.actionscript.parameter,delete eH.languages.actionscript["literal-property"],eH.languages.markup&&eH.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:eH.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(eH),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(i=e.languages[t]){var i,a=i[o];if((a=a||(i=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(a=i[o]={pattern:a}),Array.isArray(a))for(var s=0,c=a.length;s<c;s++)a[s]instanceof RegExp&&(a[s]={pattern:a[s]}),r(a[s]);else r(a)}}))}}),t.addSupport(["java","javascript","php"],t)}(eH),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(eH),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(eH),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}(eH),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,a=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,i=t[n];"code"!==i.type?e(i.content):(o=i.content[1],i=i.content[3],o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),i.alias?"string"==typeof i.alias?i.alias=[i.alias,o]:i.alias.push(o):i.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r];if(i=/language-(.+)/.exec(i)){n=i[1];break}}var l,u=e.languages[n];u?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(l="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=l,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(l);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(eH),eH.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:eH.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+/},eH.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"])&&"("===u(1).content){n+=2;var i=d(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=u(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===u(0).content&&(n++,p(u(0),"property-mutation"),0<o.length)){var s=d(/^\{$/,/^\}$/);if(-1!==s)for(var c=n;c<s;c++){var l=t[c];"variable"===l.type&&0<=o.indexOf(l.content)&&p(l,"variable-input")}}}}function u(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function d(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0==--o)return i}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),eH.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function c(t,n,a){var c=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),l=0,u={},f=(c=s(c.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=l++,n="___"+a.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,a),Object.keys(u));return l=0,function t(n){for(var i=0;i<n.length;i++){if(l>=f.length)return;var a,c,d,p,h,g,v,y=n[i];"string"==typeof y||"string"==typeof y.content?(a=f[l],-1!==(v=(g="string"==typeof y?y:y.content).indexOf(a))&&(++l,c=g.substring(0,v),h=u[a],d=void 0,(p={})["interpolation-punctuation"]=o,3===(p=e.tokenize(h,p)).length&&((d=[1,1]).push.apply(d,s(p[1],e.languages.javascript,"javascript")),p.splice.apply(p,d)),d=new e.Token("interpolation",p,r.alias,h),p=g.substring(v+a.length),h=[],c&&h.push(c),h.push(d),p&&(t(g=[p]),h.push.apply(h,g)),"string"==typeof y?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):y.content=h)):(v=y.content,Array.isArray(v)?t(v):t([v]))}}(c),new e.Token(a,c,"language-"+a,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var l={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in l&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,s,l=n[r];"string"!=typeof l&&(i=l.content,Array.isArray(i)?"template-string"===l.type?(l=i[1],3===i.length&&"string"!=typeof l&&"embedded-code"===l.type&&(a=u(l),l=l.alias,l=Array.isArray(l)?l[0]:l,s=e.languages[l])&&(i[1]=c(a,s,l))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)}))}(eH),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}(eH),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(eH),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(eH),eH.languages.n4js=eH.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),eH.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),eH.languages.n4jsd=eH.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];o=(i="RegExp"===e.util.type(i)?e.languages.javascript[o]={pattern:i}:i).inside||{};(i.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(eH),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function a(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:s(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(i=s(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(i+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(i=s(t[r-1])+i,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",i,null,i)),o.content&&"string"!=typeof o.content&&a(o.content)}}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(eH),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(eH),eH.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},eH.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=eH.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(eH),eH.languages.c=eH.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|[?:~]|[-+*/%&|^!=<>]=?/}),eH.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),eH.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},eH.languages.c.string],char:eH.languages.c.char,comment:eH.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:eH.languages.c}}}}),eH.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 eH.languages.c.boolean,eH.languages.objectivec=eH.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 eH.languages.objectivec["class-name"],eH.languages.objc=eH.languages.objectivec,eH.languages.reason=eH.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/}),eH.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 eH.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(eH),eH.languages.go=eH.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/}),eH.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete eH.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(eH),eH.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:/[{}[\];(),.:]/},eH.languages.python["string-interpolation"].inside.interpolation.inside.rest=eH.languages.python,eH.languages.py=eH.languages.python;var tH={};((e,t)=>{for(var n in t)zz(e,n,{get:t[n],enumerable:!0})})(tH,{dracula:()=>nH,duotoneDark:()=>rH,duotoneLight:()=>oH,github:()=>iH,jettwaveDark:()=>mH,jettwaveLight:()=>bH,nightOwl:()=>aH,nightOwlLight:()=>sH,oceanicNext:()=>uH,okaidia:()=>fH,oneDark:()=>wH,oneLight:()=>xH,palenight:()=>dH,shadesOfPurple:()=>pH,synthwave84:()=>hH,ultramin:()=>gH,vsDark:()=>vH,vsLight:()=>yH});var nH={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},rH={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"}}]},oH={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},iH={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},aH={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},sH={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},cH="#c5a5c5",lH="#8dc891",uH={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:cH}},{types:["attr-value"],style:{color:lH}},{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:lH}},{types:["punctuation"],style:{color:lH}},{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:cH}},{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}}]},fH={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},dH={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},pH={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},hH={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},gH={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},vH={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},yH={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)"}}]},mH={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},bH={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},wH={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{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:"hsl(220, 14%, 71%)"}}]},xH={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{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:"hsl(230, 8%, 24%)"}}]},CH=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=Yz(Yz({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=Xz(Yz({},n),{backgroundColor:void 0}),r},SH=/\r\n|\r|\n/,_H=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)},OH=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},kH=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let i=0,a=0,s=[];const c=[s];for(;a>-1;){for(;(i=r[a]++)<o[a];){let e,l=t[a];const u=n[a][i];if("string"==typeof u?(l=a>0?l:["plain"],e=u):(l=OH(l,u.type),u.alias&&(l=OH(l,u.alias)),e=u.content),"string"!=typeof e){a++,t.push(l),n.push(e),r.push(0),o.push(e.length);continue}const f=e.split(SH),d=f.length;s.push({types:l,content:f[0]});for(let e=1;e<d;e++)_H(s),c.push(s=[]),s.push({types:l,content:f[e]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return _H(s),c},EH=({children:e,language:n,code:r,theme:o,prism:i})=>{const a=n.toLowerCase(),s=((e,n)=>{const[r,o]=t.useState(CH(n,e)),i=t.useRef(),a=t.useRef();return t.useEffect((()=>{n===i.current&&e===a.current||(i.current=n,a.current=e,o(CH(n,e)))}),[e,n]),r})(a,o),c=(e=>t.useCallback((t=>{var n=t,{className:r,style:o,line:i}=n,a=Jz(n,["className","style","line"]);const s=Xz(Yz({},a),{className:Uc("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof o&&(s.style=Yz(Yz({},s.style||{}),o)),s}),[e]))(s),l=(e=>{const n=t.useCallback((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return t.useCallback((e=>{var t=e,{token:r,className:o,style:i}=t,a=Jz(t,["token","className","style"]);const s=Xz(Yz({},a),{className:Uc("token",...r.types,o),children:r.content,style:n(r)});return null!=i&&(s.style=Yz(Yz({},s.style||{}),i)),s}),[n])})(s),u=(({prism:e,code:n,grammar:r,language:o})=>{const i=t.useRef(e);return t.useMemo((()=>{if(null==r)return kH([n]);const e={code:n,grammar:r,language:o,tokens:[]};return i.current.hooks.run("before-tokenize",e),e.tokens=i.current.tokenize(n,r),i.current.hooks.run("after-tokenize",e),kH(e.tokens)}),[n,r,o])})({prism:i,language:a,code:r,grammar:i.languages[a]});return e({tokens:u,className:`prism-code language-${a}`,style:null!=s?s.root:{},getLineProps:c,getTokenProps:l})},jH=e=>t.createElement(EH,Xz(Yz({},e),{prism:e.prism||eH,theme:e.theme||vH,code:e.code,language:e.language}))
|
|
26
|
+
*/"production"===process.env.NODE_ENV?Cf.exports=function(){if(wf)return Sf;wf=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case c:case l:case r:case i:case o:case f:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case p:case a:return e;default:return d}}case n:return d}}}function w(e){return b(e)===l}return Sf.AsyncMode=c,Sf.ConcurrentMode=l,Sf.ContextConsumer=s,Sf.ContextProvider=a,Sf.Element=t,Sf.ForwardRef=u,Sf.Fragment=r,Sf.Lazy=h,Sf.Memo=p,Sf.Portal=n,Sf.Profiler=i,Sf.StrictMode=o,Sf.Suspense=f,Sf.isAsyncMode=function(e){return w(e)||b(e)===c},Sf.isConcurrentMode=w,Sf.isContextConsumer=function(e){return b(e)===s},Sf.isContextProvider=function(e){return b(e)===a},Sf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Sf.isForwardRef=function(e){return b(e)===u},Sf.isFragment=function(e){return b(e)===r},Sf.isLazy=function(e){return b(e)===h},Sf.isMemo=function(e){return b(e)===p},Sf.isPortal=function(e){return b(e)===n},Sf.isProfiler=function(e){return b(e)===i},Sf.isStrictMode=function(e){return b(e)===o},Sf.isSuspense=function(e){return b(e)===f},Sf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m||e.$$typeof===g)},Sf.typeOf=b,Sf}():Cf.exports=(_f||(_f=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var g=e.type;switch(g){case c:case l:case r:case i:case o:case f:return g;default:var v=g&&g.$$typeof;switch(v){case s:case u:case h:case p:case a:return v;default:return d}}case n:return d}}}var w=c,x=l,C=s,S=a,_=t,O=u,k=r,E=h,j=p,A=n,T=i,M=o,P=f,D=!1;function L(e){return b(e)===l}Of.AsyncMode=w,Of.ConcurrentMode=x,Of.ContextConsumer=C,Of.ContextProvider=S,Of.Element=_,Of.ForwardRef=O,Of.Fragment=k,Of.Lazy=E,Of.Memo=j,Of.Portal=A,Of.Profiler=T,Of.StrictMode=M,Of.Suspense=P,Of.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||b(e)===c},Of.isConcurrentMode=L,Of.isContextConsumer=function(e){return b(e)===s},Of.isContextProvider=function(e){return b(e)===a},Of.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Of.isForwardRef=function(e){return b(e)===u},Of.isFragment=function(e){return b(e)===r},Of.isLazy=function(e){return b(e)===h},Of.isMemo=function(e){return b(e)===p},Of.isPortal=function(e){return b(e)===n},Of.isProfiler=function(e){return b(e)===i},Of.isStrictMode=function(e){return b(e)===o},Of.isSuspense=function(e){return b(e)===f},Of.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m||e.$$typeof===g)},Of.typeOf=b}()),Of);var kf=Cf.exports,Ef=tl,jf=nl;var Af=function(e){return"number"==typeof e||jf(e)&&"[object Number]"==Ef(e)},Tf=ct(Af),Mf=Af;var Pf=ct((function(e){return Mf(e)&&e!=+e})),Df=function(e){return 0===e?0:e>0?1:-1},Lf=function(e){return xf(e)&&e.indexOf("%")===e.length-1},If=function(e){return Tf(e)&&!Pf(e)},Rf=function(e){return If(e)||xf(e)},Nf=0,Bf=function(e){var t=++Nf;return"".concat(e||"").concat(t)},Ff=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!If(e)&&!xf(e))return r;if(Lf(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return Pf(n)&&(n=r),o&&n>t&&(n=t),n},zf=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},Hf=function(e,t){return If(e)&&If(t)?function(n){return e+n*(t-e)}:function(){return t}};function Vf(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):gf(e,t))===n})):null}function Kf(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function $f(e){return $f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$f(e)}var Uf=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Wf=["points","pathLength"],Zf={svg:["viewBox","children"],polygon:Wf,polyline:Wf},qf=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Gf=function(e,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(t.isValidElement(e)&&(r=e.props),!dl(r))return null;var o={};return Object.keys(r).forEach((function(e){qf.includes(e)&&(o[e]=n||function(t){return r[e](r,t)})})),o},Yf=function(e,t,n){if(!dl(e)||"object"!==$f(e))return null;var r=null;return Object.keys(e).forEach((function(o){var i=e[o];qf.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(i,t,n))})),r},Xf=["children"],Jf=["children"];function Qf(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 ed(e){return ed="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ed(e)}var td={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},nd=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},rd=null,od=null,id=function e(n){if(n===rd&&Array.isArray(od))return od;var r=[];return t.Children.forEach(n,(function(t){vf(t)||(kf.isFragment(t)?r=r.concat(e(t.props.children)):r.push(t))})),od=r,rd=n,r};function ad(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map((function(e){return nd(e)})):[nd(t)],id(e).forEach((function(e){var t=gf(e,"type.displayName")||gf(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}function sd(e,t){var n=ad(e,t);return n&&n[0]}var cd=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!If(n)||n<=0||!If(r)||r<=0)},ld=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],ud=function(e,n,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var o=e;if(t.isValidElement(e)&&(o=e.props),!dl(o))return null;var i={};return Object.keys(o).forEach((function(e){var t;(function(e,t,n,r){var o,i=null!==(o=null==Zf?void 0:Zf[r])&&void 0!==o?o:[];return!yl(e)&&(r&&i.includes(t)||Uf.includes(t))||n&&qf.includes(t)})(null===(t=o)||void 0===t?void 0:t[e],e,n,r)&&(i[e]=o[e])})),i},fd=function e(n,r){if(n===r)return!0;var o=t.Children.count(n);if(o!==t.Children.count(r))return!1;if(0===o)return!0;if(1===o)return dd(Array.isArray(n)?n[0]:n,Array.isArray(r)?r[0]:r);for(var i=0;i<o;i++){var a=n[i],s=r[i];if(Array.isArray(a)||Array.isArray(s)){if(!e(a,s))return!1}else if(!dd(a,s))return!1}return!0},dd=function(e,t){if(vf(e)&&vf(t))return!0;if(!vf(e)&&!vf(t)){var n=e.props||{},r=n.children,o=Qf(n,Xf),i=t.props||{},a=i.children,s=Qf(i,Jf);return r&&a?Kf(o,s)&&fd(r,a):!r&&!a&&Kf(o,s)}return!1},pd=function(e,t){var n=[],r={};return id(e).forEach((function(e,o){if(function(e){return e&&e.type&&xf(e.type)&&ld.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=nd(e.type),a=t[i]||{},s=a.handler,c=a.once;if(s&&(!c||!r[i])){var l=s(e,i,o);n.push(l),r[i]=!0}}})),n},hd=["children","width","height","viewBox","className","style","title","desc"];function gd(){return gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gd.apply(this,arguments)}function vd(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 yd(e){var n=e.children,r=e.width,o=e.height,i=e.viewBox,a=e.className,s=e.style,c=e.title,l=e.desc,u=vd(e,hd),f=i||{width:r,height:o,x:0,y:0},d=Bc("recharts-surface",a);return t.createElement("svg",gd({},ud(u,!0,"svg"),{className:d,width:r,height:o,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),t.createElement("title",null,c),t.createElement("desc",null,l),n)}var md=["children","className"];function bd(){return bd=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},bd.apply(this,arguments)}function wd(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 xd=t.forwardRef((function(e,n){var r=e.children,o=e.className,i=wd(e,md),a=Bc("recharts-layer",o);return t.createElement("g",bd({className:a},ud(i,!0),{ref:n}),r)})),Cd="production"!==process.env.NODE_ENV,Sd=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(Cd&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(t.replace(/%s/g,(function(){return r[i++]})))}};var _d=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i},Od=_d;var kd=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Od(e,t,n)},Ed=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var jd=function(e){return Ed.test(e)};var Ad=function(e){return e.split("")},Td="\\ud800-\\udfff",Md="["+Td+"]",Pd="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Dd="\\ud83c[\\udffb-\\udfff]",Ld="[^"+Td+"]",Id="(?:\\ud83c[\\udde6-\\uddff]){2}",Rd="[\\ud800-\\udbff][\\udc00-\\udfff]",Nd="(?:"+Pd+"|"+Dd+")"+"?",Bd="[\\ufe0e\\ufe0f]?",Fd=Bd+Nd+("(?:\\u200d(?:"+[Ld,Id,Rd].join("|")+")"+Bd+Nd+")*"),zd="(?:"+[Ld+Pd+"?",Pd,Id,Rd,Md].join("|")+")",Hd=RegExp(Dd+"(?="+Dd+")|"+zd+Fd,"g");var Vd=function(e){return e.match(Hd)||[]},Kd=Ad,$d=jd,Ud=Vd;var Wd=function(e){return $d(e)?Ud(e):Kd(e)},Zd=kd,qd=jd,Gd=Wd,Yd=tf;var Xd=function(e){return function(t){t=Yd(t);var n=qd(t)?Gd(t):void 0,r=n?n[0]:t.charAt(0),o=n?Zd(n,1).join(""):t.slice(1);return r[e]()+o}},Jd=ct(Xd("toUpperCase"));function Qd(e){return function(){return e}}const ep=Math.cos,tp=Math.sin,np=Math.sqrt,rp=Math.PI,op=2*rp,ip=Math.PI,ap=2*ip,sp=1e-6,cp=ap-sp;function lp(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class up{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?lp:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return lp;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,s=n-e,c=r-t,l=i-e,u=a-t,f=l*l+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>sp)if(Math.abs(u*s-c*l)>sp&&o){let d=n-i,p=r-a,h=s*s+c*c,g=d*d+p*p,v=Math.sqrt(h),y=Math.sqrt(f),m=o*Math.tan((ip-Math.acos((h+f-g)/(2*v*y)))/2),b=m/y,w=m/v;Math.abs(b-1)>sp&&this._append`L${e+b*l},${t+b*u}`,this._append`A${o},${o},0,0,${+(u*d>l*p)},${this._x1=e+w*s},${this._y1=t+w*c}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),c=e+a,l=t+s,u=1^i,f=i?r-o:o-r;null===this._x1?this._append`M${c},${l}`:(Math.abs(this._x1-c)>sp||Math.abs(this._y1-l)>sp)&&this._append`L${c},${l}`,n&&(f<0&&(f=f%ap+ap),f>cp?this._append`A${n},${n},0,1,${u},${e-a},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:f>sp&&this._append`A${n},${n},0,${+(f>=ip)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function fp(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new up(t)}function dp(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function pp(e){this._context=e}function hp(e){return new pp(e)}function gp(e){return e[0]}function vp(e){return e[1]}function yp(e,t){var n=Qd(!0),r=null,o=hp,i=null,a=fp(s);function s(s){var c,l,u,f=(s=dp(s)).length,d=!1;for(null==r&&(i=o(u=a())),c=0;c<=f;++c)!(c<f&&n(l=s[c],c,s))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(l,c,s),+t(l,c,s));if(u)return i=null,u+""||null}return e="function"==typeof e?e:void 0===e?gp:Qd(e),t="function"==typeof t?t:void 0===t?vp:Qd(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:Qd(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:Qd(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:Qd(!!e),s):n},s.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),s):o},s.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),s):r},s}function mp(e,t,n){var r=null,o=Qd(!0),i=null,a=hp,s=null,c=fp(l);function l(l){var u,f,d,p,h,g=(l=dp(l)).length,v=!1,y=new Array(g),m=new Array(g);for(null==i&&(s=a(h=c())),u=0;u<=g;++u){if(!(u<g&&o(p=l[u],u,l))===v)if(v=!v)f=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=f;--d)s.point(y[d],m[d]);s.lineEnd(),s.areaEnd()}v&&(y[u]=+e(p,u,l),m[u]=+t(p,u,l),s.point(r?+r(p,u,l):y[u],n?+n(p,u,l):m[u]))}if(h)return s=null,h+""||null}function u(){return yp().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?gp:Qd(+e),t="function"==typeof t?t:Qd(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?vp:Qd(+n),l.x=function(t){return arguments.length?(e="function"==typeof t?t:Qd(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Qd(+t),l):e},l.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Qd(+e),l):r},l.y=function(e){return arguments.length?(t="function"==typeof e?e:Qd(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t="function"==typeof e?e:Qd(+e),l):t},l.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Qd(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:Qd(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l}pp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class bp{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}var wp={draw(e,t){const n=np(t/rp);e.moveTo(n,0),e.arc(0,0,n,0,op)}},xp={draw(e,t){const n=np(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};const Cp=np(1/3),Sp=2*Cp;var _p={draw(e,t){const n=np(t/Sp),r=n*Cp;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Op={draw(e,t){const n=np(t),r=-n/2;e.rect(r,r,n,n)}};const kp=tp(rp/10)/tp(7*rp/10),Ep=tp(op/10)*kp,jp=-ep(op/10)*kp;var Ap={draw(e,t){const n=np(.8908130915292852*t),r=Ep*n,o=jp*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const i=op*t/5,a=ep(i),s=tp(i);e.lineTo(s*n,-a*n),e.lineTo(a*r-s*o,s*r+a*o)}e.closePath()}};const Tp=np(3);var Mp={draw(e,t){const n=-np(t/(3*Tp));e.moveTo(0,2*n),e.lineTo(-Tp*n,-n),e.lineTo(Tp*n,-n),e.closePath()}};const Pp=-.5,Dp=np(3)/2,Lp=1/np(12),Ip=3*(Lp/2+1);var Rp={draw(e,t){const n=np(t/Ip),r=n/2,o=n*Lp,i=r,a=n*Lp+n,s=-i,c=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,c),e.lineTo(Pp*r-Dp*o,Dp*r+Pp*o),e.lineTo(Pp*i-Dp*a,Dp*i+Pp*a),e.lineTo(Pp*s-Dp*c,Dp*s+Pp*c),e.lineTo(Pp*r+Dp*o,Pp*o-Dp*r),e.lineTo(Pp*i+Dp*a,Pp*a-Dp*i),e.lineTo(Pp*s+Dp*c,Pp*c-Dp*s),e.closePath()}};function Np(){}function Bp(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Fp(e){this._context=e}function zp(e){this._context=e}function Hp(e){this._context=e}function Vp(e){this._context=e}function Kp(e){return e<0?-1:1}function $p(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(Kp(i)+Kp(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Up(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Wp(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function Zp(e){this._context=e}function qp(e){this._context=new Gp(e)}function Gp(e){this._context=e}function Yp(e){this._context=e}function Xp(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function Jp(e,t){this._context=e,this._t=t}function Qp(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function eh(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function th(e,t){return e[t]}function nh(e){const t=[];return t.key=e,t}function rh(e){return rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rh(e)}Fp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Bp(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Bp(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},zp.prototype={areaStart:Np,areaEnd:Np,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Bp(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Hp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Bp(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Vp.prototype={areaStart:Np,areaEnd:Np,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Zp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Wp(this,this._t0,Up(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Wp(this,Up(this,n=$p(this,e,t)),n);break;default:Wp(this,this._t0,n=$p(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(qp.prototype=Object.create(Zp.prototype)).point=function(e,t){Zp.prototype.point.call(this,t,e)},Gp.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},Yp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Xp(e),o=Xp(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Jp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var oh=["type","size","sizeType"];function ih(){return ih=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},ih.apply(this,arguments)}function ah(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 sh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ah(Object(n),!0).forEach((function(t){ch(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ah(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ch(e,t,n){return t=function(e){var t=function(e,t){if("object"!=rh(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rh(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lh(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 uh={symbolCircle:wp,symbolCross:xp,symbolDiamond:_p,symbolSquare:Op,symbolStar:Ap,symbolTriangle:Mp,symbolWye:Rp},fh=Math.PI/180,dh=function(e){var n,r,o=e.type,i=void 0===o?"circle":o,a=e.size,s=void 0===a?64:a,c=e.sizeType,l=void 0===c?"area":c,u=sh(sh({},lh(e,oh)),{},{type:i,size:s,sizeType:l}),f=u.className,d=u.cx,p=u.cy,h=ud(u,!0);return d===+d&&p===+p&&s===+s?t.createElement("path",ih({},h,{className:Bc("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:(n=function(e){var t="symbol".concat(Jd(e));return uh[t]||wp}(i),r=function(e,t){let n=null,r=fp(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:Qd(e||wp),t="function"==typeof t?t:Qd(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:Qd(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:Qd(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}().type(n).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*fh;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(s,l,i)),r())})):null};function ph(e){return ph="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ph(e)}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 gh(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 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,Ch(r.key),r)}}function yh(e,t,n){return t=bh(t),function(e,t){if(t&&("object"===ph(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,mh()?Reflect.construct(t,n||[],bh(e).constructor):t.apply(e,n))}function mh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mh=function(){return!!e})()}function bh(e){return bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bh(e)}function wh(e,t){return wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wh(e,t)}function xh(e,t,n){return(t=Ch(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ch(e){var t=function(e,t){if("object"!=ph(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ph(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ph(t)?t:String(t)}dh.registerSymbol=function(e,t){uh["symbol".concat(Jd(e))]=t};var Sh=32,_h=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),yh(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wh(e,t)}(n,t.PureComponent),r=n,o=[{key:"renderIcon",value:function(e){var n=this.props.inactiveColor,r=16,o=Sh/6,i=Sh/3,a=e.inactive?n:e.color;if("plainline"===e.type)return t.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:Sh,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return t.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(r,"h").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(Sh,"M").concat(2*i,",").concat(r,"\n A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return t.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(Sh,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(t.isValidElement(e.legendIcon)){var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gh(Object(n),!0).forEach((function(t){xh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete s.legendIcon,t.cloneElement(e.legendIcon,s)}return t.createElement(dh,{fill:a,cx:r,cy:r,size:Sh,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,n=this.props,r=n.payload,o=n.iconSize,i=n.layout,a=n.formatter,s=n.inactiveColor,c={x:0,y:0,width:Sh,height:Sh},l={display:"horizontal"===i?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(n,r){var i=n.formatter||a,f=Bc(xh(xh({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",n.inactive));if("none"===n.type)return null;var d=yl(n.value)?null:n.value;Sd(!yl(n.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var p=n.inactive?s:n.color;return t.createElement("li",hh({className:f,style:l,key:"legend-item-".concat(r)},Yf(e.props,n,r)),t.createElement(yd,{width:o,height:o,viewBox:c,style:u},e.renderIcon(n)),t.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},i?i(d,n,r):d))}))}},{key:"render",value:function(){var e=this.props,n=e.payload,r=e.layout,o=e.align;if(!n||!n.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?o:"left"};return t.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],o&&vh(r.prototype,o),i&&vh(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();xh(_h,"displayName","Legend"),xh(_h,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Oh=mu;var kh=mu,Eh=bu,jh=Ru;var Ah=mu,Th=function(){this.__data__=new Oh,this.size=0},Mh=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ph=function(e){return this.__data__.get(e)},Dh=function(e){return this.__data__.has(e)},Lh=function(e,t){var n=this.__data__;if(n instanceof kh){var r=n.__data__;if(!Eh||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jh(r)}return n.set(e,t),this.size=n.size,this};function Ih(e){var t=this.__data__=new Ah(e);this.size=t.size}Ih.prototype.clear=Th,Ih.prototype.delete=Mh,Ih.prototype.get=Ph,Ih.prototype.has=Dh,Ih.prototype.set=Lh;var Rh=Ih;var Nh=Ru,Bh=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Fh=function(e){return this.__data__.has(e)};function zh(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Nh;++t<n;)this.add(e[t])}zh.prototype.add=zh.prototype.push=Bh,zh.prototype.has=Fh;var Hh=zh;var Vh=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var Kh=function(e,t){return e.has(t)},$h=Hh,Uh=Vh,Wh=Kh;var Zh=function(e,t,n,r,o,i){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;var f=-1,d=!0,p=2&n?new $h:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var h=e[f],g=t[f];if(r)var v=a?r(g,h,f,t,e,i):r(h,g,f,e,t,i);if(void 0!==v){if(v)continue;d=!1;break}if(p){if(!Uh(t,(function(e,t){if(!Wh(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){d=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d};var qh=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var Gh=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Yh=Kc.Uint8Array,Xh=tu,Jh=Zh,Qh=qh,eg=Gh,tg=$c?$c.prototype:void 0,ng=tg?tg.valueOf:void 0;var rg=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Yh(e),new Yh(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Xh(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Qh;case"[object Set]":var c=1&r;if(s||(s=eg),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=Jh(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(ng)return ng.call(e)==ng.call(t)}return!1};var og=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},ig=og,ag=Fc;var sg=function(e,t,n){var r=t(e);return ag(e)?r:ig(r,n(e))};var cg=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var lg=cg,ug=function(){return[]},fg=Object.prototype.propertyIsEnumerable,dg=Object.getOwnPropertySymbols,pg=dg?function(e){return null==e?[]:(e=Object(e),lg(dg(e),(function(t){return fg.call(e,t)})))}:ug,hg=pg;var gg=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},vg=tl,yg=nl;var mg=function(e){return yg(e)&&"[object Arguments]"==vg(e)},bg=nl,wg=Object.prototype,xg=wg.hasOwnProperty,Cg=wg.propertyIsEnumerable,Sg=mg(function(){return arguments}())?mg:function(e){return bg(e)&&xg.call(e,"callee")&&!Cg.call(e,"callee")},_g={exports:{}};var Og=function(){return!1};!function(e,t){var n=Kc,r=Og,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(_g,_g.exports);var kg=_g.exports,Eg=/^(?:0|[1-9]\d*)$/;var jg=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Eg.test(e))&&e>-1&&e%1==0&&e<t};var Ag=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Tg=tl,Mg=Ag,Pg=nl,Dg={};Dg["[object Float32Array]"]=Dg["[object Float64Array]"]=Dg["[object Int8Array]"]=Dg["[object Int16Array]"]=Dg["[object Int32Array]"]=Dg["[object Uint8Array]"]=Dg["[object Uint8ClampedArray]"]=Dg["[object Uint16Array]"]=Dg["[object Uint32Array]"]=!0,Dg["[object Arguments]"]=Dg["[object Array]"]=Dg["[object ArrayBuffer]"]=Dg["[object Boolean]"]=Dg["[object DataView]"]=Dg["[object Date]"]=Dg["[object Error]"]=Dg["[object Function]"]=Dg["[object Map]"]=Dg["[object Number]"]=Dg["[object Object]"]=Dg["[object RegExp]"]=Dg["[object Set]"]=Dg["[object String]"]=Dg["[object WeakMap]"]=!1;var Lg=function(e){return Pg(e)&&Mg(e.length)&&!!Dg[Tg(e)]};var Ig=function(e){return function(t){return e(t)}},Rg={exports:{}};!function(e,t){var n=zc,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(Rg,Rg.exports);var Ng=Rg.exports,Bg=Lg,Fg=Ig,zg=Ng&&Ng.isTypedArray,Hg=zg?Fg(zg):Bg,Vg=gg,Kg=Sg,$g=Fc,Ug=kg,Wg=jg,Zg=Hg,qg=Object.prototype.hasOwnProperty;var Gg=function(e,t){var n=$g(e),r=!n&&Kg(e),o=!n&&!r&&Ug(e),i=!n&&!r&&!o&&Zg(e),a=n||r||o||i,s=a?Vg(e.length,String):[],c=s.length;for(var l in e)!t&&!qg.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Wg(l,c))||s.push(l);return s},Yg=Object.prototype;var Xg=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Yg)};var Jg=function(e,t){return function(n){return e(t(n))}},Qg=Jg(Object.keys,Object),ev=Xg,tv=Qg,nv=Object.prototype.hasOwnProperty;var rv=function(e){if(!ev(e))return tv(e);var t=[];for(var n in Object(e))nv.call(e,n)&&"constructor"!=n&&t.push(n);return t},ov=vl,iv=Ag;var av=function(e){return null!=e&&iv(e.length)&&!ov(e)},sv=Gg,cv=rv,lv=av;var uv=function(e){return lv(e)?sv(e):cv(e)},fv=sg,dv=hg,pv=uv;var hv=function(e){return fv(e,pv,dv)},gv=hv,vv=Object.prototype.hasOwnProperty;var yv=function(e,t,n,r,o,i){var a=1&n,s=gv(e),c=s.length;if(c!=gv(t).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in t:vv.call(t,u)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++l<c;){var g=e[u=s[l]],v=t[u];if(r)var y=a?r(v,g,u,t,e,i):r(g,v,u,e,t,i);if(!(void 0===y?g===v||o(g,v,n,r,i):y)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var m=e.constructor,b=t.constructor;m==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p},mv=Rl(Kc,"DataView"),bv=Rl(Kc,"Promise"),wv=Rl(Kc,"Set"),xv=mv,Cv=bu,Sv=bv,_v=wv,Ov=Rl(Kc,"WeakMap"),kv=tl,Ev=Cl,jv="[object Map]",Av="[object Promise]",Tv="[object Set]",Mv="[object WeakMap]",Pv="[object DataView]",Dv=Ev(xv),Lv=Ev(Cv),Iv=Ev(Sv),Rv=Ev(_v),Nv=Ev(Ov),Bv=kv;(xv&&Bv(new xv(new ArrayBuffer(1)))!=Pv||Cv&&Bv(new Cv)!=jv||Sv&&Bv(Sv.resolve())!=Av||_v&&Bv(new _v)!=Tv||Ov&&Bv(new Ov)!=Mv)&&(Bv=function(e){var t=kv(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ev(n):"";if(r)switch(r){case Dv:return Pv;case Lv:return jv;case Iv:return Av;case Rv:return Tv;case Nv:return Mv}return t});var Fv=Rh,zv=Zh,Hv=rg,Vv=yv,Kv=Bv,$v=Fc,Uv=kg,Wv=Hg,Zv="[object Arguments]",qv="[object Array]",Gv="[object Object]",Yv=Object.prototype.hasOwnProperty;var Xv=function(e,t,n,r,o,i){var a=$v(e),s=$v(t),c=a?qv:Kv(e),l=s?qv:Kv(t),u=(c=c==Zv?Gv:c)==Gv,f=(l=l==Zv?Gv:l)==Gv,d=c==l;if(d&&Uv(e)){if(!Uv(t))return!1;a=!0,u=!1}if(d&&!u)return i||(i=new Fv),a||Wv(e)?zv(e,t,n,r,o,i):Hv(e,t,c,n,r,o,i);if(!(1&n)){var p=u&&Yv.call(e,"__wrapped__"),h=f&&Yv.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,v=h?t.value():t;return i||(i=new Fv),o(g,v,n,r,i)}}return!!d&&(i||(i=new Fv),Vv(e,t,n,r,o,i))},Jv=Xv,Qv=nl;var ey=function e(t,n,r,o,i){return t===n||(null==t||null==n||!Qv(t)&&!Qv(n)?t!=t&&n!=n:Jv(t,n,r,o,e,i))},ty=Rh,ny=ey;var ry=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var c=(s=n[o])[0],l=e[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in e))return!1}else{var f=new ty;if(r)var d=r(l,u,c,e,t,f);if(!(void 0===d?ny(u,l,3,r,f):d))return!1}}return!0},oy=fl;var iy=function(e){return e==e&&!oy(e)},ay=iy,sy=uv;var cy=function(e){for(var t=sy(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ay(o)]}return t};var ly=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},uy=ry,fy=cy,dy=ly;var py=function(e){var t=fy(e);return 1==t.length&&t[0][2]?dy(t[0][0],t[0][1]):function(n){return n===e||uy(n,e,t)}};var hy=function(e,t){return null!=e&&t in Object(e)},gy=sf,vy=Sg,yy=Fc,my=jg,by=Ag,wy=lf;var xy=function(e,t,n){for(var r=-1,o=(t=gy(t,e)).length,i=!1;++r<o;){var a=wy(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&by(o)&&my(a,o)&&(yy(e)||vy(e))},Cy=hy,Sy=xy;var _y=function(e,t){return null!=e&&Sy(e,t,Cy)},Oy=ey,ky=hf,Ey=_y,jy=ul,Ay=iy,Ty=ly,My=lf;var Py=function(e,t){return jy(e)&&Ay(t)?Ty(My(e),t):function(n){var r=ky(n,e);return void 0===r&&r===t?Ey(n,e):Oy(t,r,3)}};var Dy=function(e){return e};var Ly=function(e){return function(t){return null==t?void 0:t[e]}},Iy=df;var Ry=function(e){return function(t){return Iy(t,e)}},Ny=Ly,By=Ry,Fy=ul,zy=lf;var Hy=py,Vy=Py,Ky=Dy,$y=Fc,Uy=function(e){return Fy(e)?Ny(zy(e)):By(e)};var Wy=function(e){return"function"==typeof e?e:null==e?Ky:"object"==typeof e?$y(e)?Vy(e[0],e[1]):Hy(e):Uy(e)};var Zy=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1};var qy=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1},Gy=Zy,Yy=function(e){return e!=e},Xy=qy;var Jy=function(e,t,n){return t==t?Xy(e,t,n):Gy(e,Yy,n)},Qy=Jy;var em=function(e,t){return!!(null==e?0:e.length)&&Qy(e,t,0)>-1};var tm=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1};var nm=wv,rm=function(){},om=nm&&1/Gh(new nm([,-0]))[1]==1/0?function(e){return new nm(e)}:rm,im=Hh,am=em,sm=tm,cm=Kh,lm=om,um=Gh;var fm=function(e,t,n){var r=-1,o=am,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=sm;else if(i>=200){var l=t?null:lm(e);if(l)return um(l);a=!1,o=cm,c=new im}else c=t?[]:s;e:for(;++r<i;){var u=e[r],f=t?t(u):u;if(u=n||0!==u?u:0,a&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),s.push(u)}else o(c,f,n)||(c!==s&&c.push(f),s.push(u))}return s},dm=Wy,pm=fm;var hm=function(e,t){return e&&e.length?pm(e,dm(t)):[]},gm=ct(hm);function vm(e,t,n){return!0===t?gm(e,n):yl(t)?gm(e,t):e}function ym(e){return ym="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ym(e)}var mm=["ref"];function bm(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 wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bm(Object(n),!0).forEach((function(t){Em(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xm(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,jm(r.key),r)}}function Cm(e,t,n){return t=_m(t),function(e,t){if(t&&("object"===ym(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Om(e)}(e,Sm()?Reflect.construct(t,n||[],_m(e).constructor):t.apply(e,n))}function Sm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sm=function(){return!!e})()}function _m(e){return _m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_m(e)}function Om(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function km(e,t){return km=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},km(e,t)}function Em(e,t,n){return(t=jm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jm(e){var t=function(e,t){if("object"!=ym(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ym(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ym(t)?t:String(t)}function Am(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 Tm(e){return e.value}var Mm=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return Em(Om(e=Cm(this,n,[].concat(r))),"lastBoundingBox",{width:-1,height:-1}),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&km(e,t)}(n,t.PureComponent),r=n,i=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&If(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],(o=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?wm({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,s=r.margin,c=r.chartWidth,l=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:s&&s.right||0}:{left:s&&s.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),wm(wm({},t),n)}},{key:"render",value:function(){var e=this,n=this.props,r=n.content,o=n.width,i=n.height,a=n.wrapperStyle,s=n.payloadUniqBy,c=n.payload,l=wm(wm({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return t.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,n){if(t.isValidElement(e))return t.cloneElement(e,n);if("function"==typeof e)return t.createElement(e,n);n.ref;var r=Am(n,mm);return t.createElement(_h,r)}(r,wm(wm({},this.props),{},{payload:vm(c,s,Tm)})))}}])&&xm(r.prototype,o),i&&xm(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();Em(Mm,"displayName","Legend"),Em(Mm,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Pm=Sg,Dm=Fc,Lm=$c?$c.isConcatSpreadable:void 0;var Im=og,Rm=function(e){return Dm(e)||Pm(e)||!!(Lm&&e&&e[Lm])};var Nm=function e(t,n,r,o,i){var a=-1,s=t.length;for(r||(r=Rm),i||(i=[]);++a<s;){var c=t[a];n>0&&r(c)?n>1?e(c,n-1,r,o,i):Im(i,c):o||(i[i.length]=c)}return i};var Bm=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}},Fm=Bm(),zm=uv;var Hm=function(e,t){return e&&Fm(e,t,zm)},Vm=av;var Km=function(e,t){return function(n,r){if(null==n)return n;if(!Vm(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}},$m=Km(Hm),Um=$m,Wm=av;var Zm=function(e,t){var n=-1,r=Wm(e)?Array(e.length):[];return Um(e,(function(e,o,i){r[++n]=t(e,o,i)})),r};var qm=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},Gm=il;var Ym=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Gm(e),a=void 0!==t,s=null===t,c=t==t,l=Gm(t);if(!s&&!l&&!i&&e>t||i&&a&&c&&!s&&!l||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!l&&e<t||l&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!c)return-1}return 0};var Xm=function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var c=Ym(o[r],i[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index},Jm=Zu,Qm=df,eb=Wy,tb=Zm,nb=qm,rb=Ig,ob=Xm,ib=Dy,ab=Fc;var sb=function(e,t,n){t=t.length?Jm(t,(function(e){return ab(e)?function(t){return Qm(t,1===e.length?e[0]:e)}:e})):[ib];var r=-1;t=Jm(t,rb(eb));var o=tb(e,(function(e,n,o){return{criteria:Jm(t,(function(t){return t(e)})),index:++r,value:e}}));return nb(o,(function(e,t){return ob(e,t,n)}))};var cb=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},lb=cb,ub=Math.max;var fb=function(e,t,n){return t=ub(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=ub(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),lb(e,this,s)}};var db=function(e){return function(){return e}},pb=Rl,hb=function(){try{var e=pb(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),gb=db,vb=hb,yb=vb?function(e,t){return vb(e,"toString",{configurable:!0,enumerable:!1,value:gb(t),writable:!0})}:Dy,mb=yb,bb=Date.now;var wb=function(e){var t=0,n=0;return function(){var r=bb(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(mb),xb=Dy,Cb=fb,Sb=wb;var _b=tu,Ob=av,kb=jg,Eb=fl;var jb=function(e,t,n){if(!Eb(n))return!1;var r=typeof t;return!!("number"==r?Ob(n)&&kb(t,n.length):"string"==r&&t in n)&&_b(n[t],e)},Ab=Nm,Tb=sb,Mb=jb,Pb=ct(function(e,t){return Sb(Cb(e,t,xb),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Mb(e,t[0],t[1])?t=[]:n>2&&Mb(t[0],t[1],t[2])&&(t=[t[0]]),Tb(e,Ab(t,1),[])})));function Db(e){return Db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Db(e)}function Lb(){return Lb=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},Lb.apply(this,arguments)}function Ib(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rb(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 Rb(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 Rb(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 Nb(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 Bb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nb(Object(n),!0).forEach((function(t){Fb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fb(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Db(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Db(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Db(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zb(e){return Array.isArray(e)&&Rf(e[0])&&Rf(e[1])?e.join(" ~ "):e}var Hb=function(e){var n=e.separator,r=void 0===n?" : ":n,o=e.contentStyle,i=void 0===o?{}:o,a=e.itemStyle,s=void 0===a?{}:a,c=e.labelStyle,l=void 0===c?{}:c,u=e.payload,f=e.formatter,d=e.itemSorter,p=e.wrapperClassName,h=e.labelClassName,g=e.label,v=e.labelFormatter,y=e.accessibilityLayer,m=void 0!==y&&y,b=Bb({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=Bb({margin:0},l),x=!vf(g),C=x?g:"",S=Bc("recharts-default-tooltip",p),_=Bc("recharts-tooltip-label",h);x&&v&&null!=u&&(C=v(g,u));var O=m?{role:"status","aria-live":"assertive"}:{};return t.createElement("div",Lb({className:S,style:b},O),t.createElement("p",{className:_,style:w},t.isValidElement(C)?C:"".concat(C)),function(){if(u&&u.length){var e=(d?Pb(u,d):u).map((function(e,n){if("none"===e.type)return null;var o=Bb({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},s),i=e.formatter||f||zb,a=e.value,c=e.name,l=a,d=c;if(i&&null!=l&&null!=d){var p=i(a,c,e,n,u);if(Array.isArray(p)){var h=Ib(p,2);l=h[0],d=h[1]}else l=p}return t.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(n),style:o},Rf(d)?t.createElement("span",{className:"recharts-tooltip-item-name"},d):null,Rf(d)?t.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,t.createElement("span",{className:"recharts-tooltip-item-value"},l),t.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return t.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function Vb(e){return Vb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vb(e)}function Kb(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Vb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Vb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vb(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $b="recharts-tooltip-wrapper",Ub={visibility:"hidden"};function Wb(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Bc($b,Kb(Kb(Kb(Kb({},"".concat($b,"-right"),If(n)&&t&&If(t.x)&&n>=t.x),"".concat($b,"-left"),If(n)&&t&&If(t.x)&&n<t.x),"".concat($b,"-bottom"),If(r)&&t&&If(t.y)&&r>=t.y),"".concat($b,"-top"),If(r)&&t&&If(t.y)&&r<t.y))}function Zb(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(i&&If(i[r]))return i[r];var u=n[r]-s-o,f=n[r]+o;return t[r]?a[r]?u:f:a[r]?u<c[r]?Math.max(f,c[r]):Math.max(u,c[r]):f+s>c[r]+l?Math.max(u,c[r]):Math.max(f,c[r])}function qb(e){return qb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qb(e)}function Gb(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 Yb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gb(Object(n),!0).forEach((function(t){rw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xb(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,ow(r.key),r)}}function Jb(e,t,n){return t=ew(t),function(e,t){if(t&&("object"===qb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tw(e)}(e,Qb()?Reflect.construct(t,n||[],ew(e).constructor):t.apply(e,n))}function Qb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qb=function(){return!!e})()}function ew(e){return ew=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ew(e)}function tw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nw(e,t){return nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nw(e,t)}function rw(e,t,n){return(t=ow(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ow(e){var t=function(e,t){if("object"!=qb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qb(t)?t:String(t)}var iw=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return rw(tw(e=Jb(this,n,[].concat(r))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),rw(tw(e),"lastBoundingBox",{width:-1,height:-1}),rw(tw(e),"handleKeyDown",(function(t){var n,r,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=e.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nw(e,t)}(n,t.PureComponent),r=n,o=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,n=this.props,r=n.active,o=n.allowEscapeViewBox,i=n.animationDuration,a=n.animationEasing,s=n.children,c=n.coordinate,l=n.hasPayload,u=n.isAnimationActive,f=n.offset,d=n.position,p=n.reverseDirection,h=n.useTranslate3d,g=n.viewBox,v=n.wrapperStyle,y=function(e){var t,n,r=e.allowEscapeViewBox,o=e.coordinate,i=e.offsetTopLeft,a=e.position,s=e.reverseDirection,c=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox;return{cssProperties:c.height>0&&c.width>0&&o?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=Zb({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:c.width,viewBox:u,viewBoxDimension:u.width}),translateY:n=Zb({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:c.height,viewBox:u,viewBoxDimension:u.height}),useTranslate3d:l}):Ub,cssClasses:Wb({translateX:t,translateY:n,coordinate:o})}}({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:f,position:d,reverseDirection:p,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:h,viewBox:g}),m=y.cssClasses,b=y.cssProperties,w=Yb(Yb({transition:u&&r?"transform ".concat(i,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return t.createElement("div",{tabIndex:-1,className:m,style:w,ref:function(t){e.wrapperNode=t}},s)}}],o&&Xb(r.prototype,o),i&&Xb(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}(),aw={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return aw[e]},set:function(e,t){if("string"==typeof e)aw[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){aw[t]=e[t]}))}}};function sw(e){return sw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sw(e)}function cw(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 lw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cw(Object(n),!0).forEach((function(t){gw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uw(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,vw(r.key),r)}}function fw(e,t,n){return t=pw(t),function(e,t){if(t&&("object"===sw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dw()?Reflect.construct(t,n||[],pw(e).constructor):t.apply(e,n))}function dw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dw=function(){return!!e})()}function pw(e){return pw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pw(e)}function hw(e,t){return hw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hw(e,t)}function gw(e,t,n){return(t=vw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vw(e){var t=function(e,t){if("object"!=sw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=sw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sw(t)?t:String(t)}function yw(e){return e.dataKey}var mw=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),fw(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hw(e,t)}(n,t.PureComponent),r=n,o=[{key:"render",value:function(){var e=this,n=this.props,r=n.active,o=n.allowEscapeViewBox,i=n.animationDuration,a=n.animationEasing,s=n.content,c=n.coordinate,l=n.filterNull,u=n.isAnimationActive,f=n.offset,d=n.payload,p=n.payloadUniqBy,h=n.position,g=n.reverseDirection,v=n.useTranslate3d,y=n.viewBox,m=n.wrapperStyle,b=null!=d?d:[];l&&b.length&&(b=vm(d.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,yw));var w=b.length>0;return t.createElement(iw,{allowEscapeViewBox:o,animationDuration:i,animationEasing:a,isAnimationActive:u,active:r,coordinate:c,hasPayload:w,offset:f,position:h,reverseDirection:g,useTranslate3d:v,viewBox:y,wrapperStyle:m},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):"function"==typeof e?t.createElement(e,n):t.createElement(Hb,n)}(s,lw(lw({},this.props),{},{payload:b})))}}],o&&uw(r.prototype,o),i&&uw(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();gw(mw,"displayName","Tooltip"),gw(mw,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!aw.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var bw=Kc,ww=/\s/;var xw=function(e){for(var t=e.length;t--&&ww.test(e.charAt(t)););return t},Cw=xw,Sw=/^\s+/;var _w=function(e){return e?e.slice(0,Cw(e)+1).replace(Sw,""):e},Ow=_w,kw=fl,Ew=il,jw=/^[-+]0x[0-9a-f]+$/i,Aw=/^0b[01]+$/i,Tw=/^0o[0-7]+$/i,Mw=parseInt;var Pw=function(e){if("number"==typeof e)return e;if(Ew(e))return NaN;if(kw(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=kw(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ow(e);var n=Aw.test(e);return n||Tw.test(e)?Mw(e.slice(2),n?2:8):jw.test(e)?NaN:+e},Dw=fl,Lw=function(){return bw.Date.now()},Iw=Pw,Rw=Math.max,Nw=Math.min;var Bw=function(e,t,n){var r,o,i,a,s,c,l=0,u=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-l>=i}function g(){var e=Lw();if(h(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-c);return f?Nw(n,i-(e-l)):n}(e))}function v(e){return s=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=Lw(),n=h(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return l=e,s=setTimeout(g,t),u?p(e):a}(c);if(f)return clearTimeout(s),s=setTimeout(g,t),p(c)}return void 0===s&&(s=setTimeout(g,t)),a}return t=Iw(t)||0,Dw(n)&&(u=!!n.leading,i=(f="maxWait"in n)?Rw(Iw(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=o=s=void 0},y.flush=function(){return void 0===s?a:v(Lw())},y},Fw=Bw,zw=fl;var Hw=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return zw(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Fw(e,t,{leading:r,maxWait:t,trailing:o})},Vw=ct(Hw);function Kw(e){return Kw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kw(e)}function $w(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 Uw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$w(Object(n),!0).forEach((function(t){Ww(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ww(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Kw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Kw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Kw(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zw(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qw(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 qw(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 qw(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 Gw=t.forwardRef((function(e,n){var r=e.aspect,o=e.initialDimension,i=void 0===o?{width:-1,height:-1}:o,a=e.width,s=void 0===a?"100%":a,c=e.height,l=void 0===c?"100%":c,u=e.minWidth,f=void 0===u?0:u,d=e.minHeight,p=e.maxHeight,h=e.children,g=e.debounce,v=void 0===g?0:g,y=e.id,m=e.className,b=e.onResize,w=e.style,x=void 0===w?{}:w,C=t.useRef(null),S=t.useRef();S.current=b,t.useImperativeHandle(n,(function(){return Object.defineProperty(C.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),C.current},configurable:!0})}));var _=Zw(t.useState({containerWidth:i.width,containerHeight:i.height}),2),O=_[0],k=_[1],E=t.useCallback((function(e,t){k((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);t.useEffect((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;E(r,o),null===(t=S.current)||void 0===t||t.call(S,r,o)};v>0&&(e=Vw(e,v,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=C.current.getBoundingClientRect(),r=n.width,o=n.height;return E(r,o),t.observe(C.current),function(){t.disconnect()}}),[E,v]);var j=t.useMemo((function(){var e=O.containerWidth,n=O.containerHeight;if(e<0||n<0)return null;Sd(Lf(s)||Lf(l),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",s,l),Sd(!r||r>0,"The aspect(%s) must be greater than zero.",r);var o=Lf(s)?e:s,i=Lf(l)?n:l;r&&r>0&&(o?i=o/r:i&&(o=i*r),p&&i>p&&(i=p)),Sd(o>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",o,i,s,l,f,d,r);var a=!Array.isArray(h)&&kf.isElement(h)&&nd(h.type).endsWith("Chart");return t.Children.map(h,(function(e){return kf.isElement(e)?t.cloneElement(e,Uw({width:o,height:i},a?{style:Uw({height:"100%",width:"100%",maxHeight:i,maxWidth:o},e.props.style)}:{})):e}))}),[r,h,l,p,d,f,O,s]);return t.createElement("div",{id:y?"".concat(y):void 0,className:Bc("recharts-responsive-container",m),style:Uw(Uw({},x),{},{width:s,height:l,minWidth:f,minHeight:d,maxHeight:p}),ref:C},j)})),Yw=function(e){return null};function Xw(e){return Xw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xw(e)}function Jw(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 Qw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jw(Object(n),!0).forEach((function(t){ex(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ex(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Xw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Xw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xw(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Yw.displayName="Cell";var tx={widthCache:{},cacheCount:0},nx={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},rx="recharts_measurement_span";var ox=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||aw.isSsr)return{width:0,height:0};var n,r=(n=Qw({},t),Object.keys(n).forEach((function(e){n[e]||delete n[e]})),n),o=JSON.stringify({text:e,copyStyle:r});if(tx.widthCache[o])return tx.widthCache[o];try{var i=document.getElementById(rx);i||((i=document.createElement("span")).setAttribute("id",rx),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=Qw(Qw({},nx),r);Object.assign(i.style,a),i.textContent="".concat(e);var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return tx.widthCache[o]=c,++tx.cacheCount>2e3&&(tx.cacheCount=0,tx.widthCache={}),c}catch(e){return{width:0,height:0}}};function ix(e){return ix="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ix(e)}function ax(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sx(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 sx(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 sx(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 cx(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,lx(r.key),r)}}function lx(e){var t=function(e,t){if("object"!=ix(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ix(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ix(t)?t:String(t)}var ux=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,fx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,dx=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,px=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,hx={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},gx=Object.keys(hx),vx="NaN";var yx=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),""===n||dx.test(n)||(this.num=NaN,this.unit=""),gx.includes(n)&&(this.num=function(e,t){return e*hx[t]}(t,n),this.unit="px")}var t,n,r;return t=e,r=[{key:"parse",value:function(t){var n,r=ax(null!==(n=px.exec(t))&&void 0!==n?n:[],3),o=r[1],i=r[2];return new e(parseFloat(o),null!=i?i:"")}}],(n=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&cx(t.prototype,n),r&&cx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function mx(e){if(e.includes(vx))return vx;for(var t=e;t.includes("*")||t.includes("/");){var n,r=ax(null!==(n=ux.exec(t))&&void 0!==n?n:[],4),o=r[1],i=r[2],a=r[3],s=yx.parse(null!=o?o:""),c=yx.parse(null!=a?a:""),l="*"===i?s.multiply(c):s.divide(c);if(l.isNaN())return vx;t=t.replace(ux,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,f=ax(null!==(u=fx.exec(t))&&void 0!==u?u:[],4),d=f[1],p=f[2],h=f[3],g=yx.parse(null!=d?d:""),v=yx.parse(null!=h?h:""),y="+"===p?g.add(v):g.subtract(v);if(y.isNaN())return vx;t=t.replace(fx,y.toString())}return t}var bx=/\(([^()]*)\)/;function wx(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=ax(bx.exec(t),2)[1];t=t.replace(bx,mx(n))}return t}(t),t=mx(t)}function xx(e){var t=function(e){try{return wx(e)}catch(e){return vx}}(e.slice(5,-1));return t===vx?"":t}var Cx=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Sx=["dx","dy","angle","className","breakAll"];function _x(){return _x=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},_x.apply(this,arguments)}function Ox(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 kx(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ex(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 Ex(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 Ex(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 jx=/[ \f\n\r\t\v\u2028\u2029]+/,Ax=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return vf(t)||(o=n?t.toString().split(""):t.toString().split(jx)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:ox(e,r).width}})),spaceWidth:n?0:ox(" ",r).width}}catch(e){return null}},Tx=function(e){return[{words:vf(e)?[]:e.toString().split(jx)}]},Mx=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!aw.isSsr){var s=Ax({breakAll:i,children:r,style:o});return s?function(e,t,n,r,o){var i=e.maxLines,a=e.children,s=e.style,c=e.breakAll,l=If(i),u=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<Number(r)))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},d=f(t);if(!l)return d;for(var p,h=function(e){var t=u.slice(0,e),n=Ax({breakAll:c,style:s,children:t+"…"}).wordsWithComputedWidth,o=f(n),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[a,o]},g=0,v=u.length-1,y=0;g<=v&&y<=u.length-1;){var m=Math.floor((g+v)/2),b=kx(h(m-1),2),w=b[0],x=b[1],C=kx(h(m),1)[0];if(w||C||(g=m+1),w&&C&&(v=m-1),!w&&C){p=x;break}y++}return p||d}({breakAll:i,children:r,maxLines:a,style:o},s.wordsWithComputedWidth,s.spaceWidth,t,n):Tx(r)}return Tx(r)},Px="#808080",Dx=function(e){var n=e.x,r=void 0===n?0:n,o=e.y,i=void 0===o?0:o,a=e.lineHeight,s=void 0===a?"1em":a,c=e.capHeight,l=void 0===c?"0.71em":c,u=e.scaleToFit,f=void 0!==u&&u,d=e.textAnchor,p=void 0===d?"start":d,h=e.verticalAnchor,g=void 0===h?"end":h,v=e.fill,y=void 0===v?Px:v,m=Ox(e,Cx),b=t.useMemo((function(){return Mx({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:f,style:m.style,width:m.width})}),[m.breakAll,m.children,m.maxLines,f,m.style,m.width]),w=m.dx,x=m.dy,C=m.angle,S=m.className,_=m.breakAll,O=Ox(m,Sx);if(!Rf(r)||!Rf(i))return null;var k,E=r+(If(w)?w:0),j=i+(If(x)?x:0);switch(g){case"start":k=xx("calc(".concat(l,")"));break;case"middle":k=xx("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:k=xx("calc(".concat(b.length-1," * -").concat(s,")"))}var A=[];if(f){var T=b[0].width,M=m.width;A.push("scale(".concat((If(M)?M/T:1)/T,")"))}return C&&A.push("rotate(".concat(C,", ").concat(E,", ").concat(j,")")),A.length&&(O.transform=A.join(" ")),t.createElement("text",_x({},ud(O,!0),{x:E,y:j,className:Bc("recharts-text",S),textAnchor:p,fill:y.includes("url")?Px:y}),b.map((function(e,n){var r=e.words.join(_?"":" ");return t.createElement("tspan",{x:E,dy:0===n?k:s,key:r},r)})))};function Lx(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ix(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Rx(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=Lx,n=(t,n)=>Lx(e(t),n),r=(t,n)=>e(t)-n):(t=e===Lx||e===Ix?e:Nx,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 Nx(){return 0}function Bx(e){return null===e?NaN:+e}const Fx=Rx(Lx).right;Rx(Bx).center;class zx extends Map{constructor(e,t=Vx){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(Hx(this,e))}has(e){return super.has(Hx(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 Hx({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Vx(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Kx(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const $x=Math.sqrt(50),Ux=Math.sqrt(10),Wx=Math.sqrt(2);function Zx(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>=$x?10:i>=Ux?5:i>=Wx?2:1;let s,c,l;return o<0?(l=Math.pow(10,-o)/a,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,o)*a,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?Zx(e,t,2*n):[s,c,l]}function qx(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?Zx(t,e,n):Zx(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 Gx(e,t,n){return Zx(e=+e,t=+t,n=+n)[2]}function Yx(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?Gx(t,e,n):Gx(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function Xx(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 Jx(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 Qx(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?Kx:function(e=Lx){if(e===Lx)return Kx;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),l=.5*Math.sqrt(s*c*(i-c)/i)*(a-i/2<0?-1:1);Qx(e,t,Math.max(n,Math.floor(t-a*c/i+l)),Math.min(r,Math.floor(t+(i-a)*c/i+l)),o)}const i=e[t];let a=n,s=r;for(eC(e,n,t),o(e[r],i)>0&&eC(e,n,r);a<s;){for(eC(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?eC(e,n,s):(++s,eC(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function eC(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function tC(e,t,n=Bx){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 nC(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function rC(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 oC=Symbol("implicit");function iC(){var e=new zx,t=[],n=[],r=oC;function o(o){let i=e.get(o);if(void 0===i){if(r!==oC)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 zx;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 iC(t,n).unknown(r)},nC.apply(o,arguments),o}function aC(){var e,t,n=iC().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,l=0,u=.5;function f(){var n=r().length,f=a<i,d=f?a:i,p=f?i:a;e=(p-d)/Math.max(1,n-c+2*l),s&&(e=Math.floor(e)),d+=(p-d-e*(n-c))*u,t=e*(1-c),s&&(d=Math.round(d),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return d+e*t}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(l=+e,f()):l},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),f()):u},n.copy=function(){return aC(r(),[i,a]).round(s).paddingInner(c).paddingOuter(l).align(u)},nC.apply(f(),arguments)}function sC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return sC(t())},e}function cC(){return sC(aC.apply(null,arguments).paddingInner(1))}function lC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function uC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fC(){}var dC=.7,pC=1/dC,hC="\\s*([+-]?\\d+)\\s*",gC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yC=/^#([0-9a-f]{3,8})$/,mC=new RegExp(`^rgb\\(${hC},${hC},${hC}\\)$`),bC=new RegExp(`^rgb\\(${vC},${vC},${vC}\\)$`),wC=new RegExp(`^rgba\\(${hC},${hC},${hC},${gC}\\)$`),xC=new RegExp(`^rgba\\(${vC},${vC},${vC},${gC}\\)$`),CC=new RegExp(`^hsl\\(${gC},${vC},${vC}\\)$`),SC=new RegExp(`^hsla\\(${gC},${vC},${vC},${gC}\\)$`),_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 OC(){return this.rgb().formatHex()}function kC(){return this.rgb().formatRgb()}function EC(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=yC.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?jC(t):3===n?new MC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?AC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?AC(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=mC.exec(e))?new MC(t[1],t[2],t[3],1):(t=bC.exec(e))?new MC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=wC.exec(e))?AC(t[1],t[2],t[3],t[4]):(t=xC.exec(e))?AC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=CC.exec(e))?NC(t[1],t[2]/100,t[3]/100,1):(t=SC.exec(e))?NC(t[1],t[2]/100,t[3]/100,t[4]):_C.hasOwnProperty(e)?jC(_C[e]):"transparent"===e?new MC(NaN,NaN,NaN,0):null}function jC(e){return new MC(e>>16&255,e>>8&255,255&e,1)}function AC(e,t,n,r){return r<=0&&(e=t=n=NaN),new MC(e,t,n,r)}function TC(e,t,n,r){return 1===arguments.length?function(e){return e instanceof fC||(e=EC(e)),e?new MC((e=e.rgb()).r,e.g,e.b,e.opacity):new MC}(e):new MC(e,t,n,null==r?1:r)}function MC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function PC(){return`#${RC(this.r)}${RC(this.g)}${RC(this.b)}`}function DC(){const e=LC(this.opacity);return`${1===e?"rgb(":"rgba("}${IC(this.r)}, ${IC(this.g)}, ${IC(this.b)}${1===e?")":`, ${e})`}`}function LC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function IC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function RC(e){return((e=IC(e))<16?"0":"")+e.toString(16)}function NC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new FC(e,t,n,r)}function BC(e){if(e instanceof FC)return new FC(e.h,e.s,e.l,e.opacity);if(e instanceof fC||(e=EC(e)),!e)return new FC;if(e instanceof FC)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 FC(a,s,c,e.opacity)}function FC(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function zC(e){return(e=(e||0)%360)<0?e+360:e}function HC(e){return Math.max(0,Math.min(1,e||0))}function VC(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}lC(fC,EC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:OC,formatHex:OC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return BC(this).formatHsl()},formatRgb:kC,toString:kC}),lC(MC,TC,uC(fC,{brighter(e){return e=null==e?pC:Math.pow(pC,e),new MC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?dC:Math.pow(dC,e),new MC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new MC(IC(this.r),IC(this.g),IC(this.b),LC(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:PC,formatHex:PC,formatHex8:function(){return`#${RC(this.r)}${RC(this.g)}${RC(this.b)}${RC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:DC,toString:DC})),lC(FC,(function(e,t,n,r){return 1===arguments.length?BC(e):new FC(e,t,n,null==r?1:r)}),uC(fC,{brighter(e){return e=null==e?pC:Math.pow(pC,e),new FC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?dC:Math.pow(dC,e),new FC(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 MC(VC(e>=240?e-240:e+120,o,r),VC(e,o,r),VC(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new FC(zC(this.h),HC(this.s),HC(this.l),LC(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=LC(this.opacity);return`${1===e?"hsl(":"hsla("}${zC(this.h)}, ${100*HC(this.s)}%, ${100*HC(this.l)}%${1===e?")":`, ${e})`}`}}));var KC=e=>()=>e;function $C(e){return 1==(e=+e)?UC: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):KC(isNaN(t)?n:t)}}function UC(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):KC(isNaN(e)?t:e)}var WC=function e(t){var n=$C(t);function r(e,t){var r=n((e=TC(e)).r,(t=TC(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=UC(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 ZC(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 qC(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]=tS(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 GC(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function YC(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function XC(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]=tS(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var JC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,QC=new RegExp(JC.source,"g");function eS(e,t){var n,r,o,i=JC.lastIndex=QC.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=JC.exec(e))&&(r=QC.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:YC(n,r)})),i=QC.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 tS(e,t){var n,r=typeof t;return null==t||"boolean"===r?KC(t):("number"===r?YC:"string"===r?(n=EC(t))?(t=n,WC):eS:t instanceof EC?WC:t instanceof Date?GC:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?ZC:Array.isArray(t)?qC:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?XC:YC)(e,t)}function nS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function rS(e,t){void 0===t&&(t=e,e=tS);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 oS(e){return+e}var iS=[0,1];function aS(e){return e}function sS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function cS(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=sS(o,r),i=n(a,i)):(r=sS(r,o),i=n(i,a)),function(e){return i(r(e))}}function lS(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]=sS(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Fx(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 fS(){var e,t,n,r,o,i,a=iS,s=iS,c=tS,l=aS;function u(){var e=Math.min(a.length,s.length);return l!==aS&&(l=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?lS:cS,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(l(t)))}return f.invert=function(n){return l(t((i||(i=r(s,a.map(e),YC)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,oS),u()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),c=nS,u()},f.clamp=function(e){return arguments.length?(l=!!e||aS,u()):l!==aS},f.interpolate=function(e){return arguments.length?(c=e,u()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,u()}}function dS(){return fS()(aS,aS)}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 hS(e){return(e=pS(Math.abs(e)))?e[1]:NaN}var gS,vS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yS(e){if(!(t=vS.exec(e)))throw new Error("invalid format: "+e);var t;return new mS({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 mS(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 bS(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=mS.prototype,mS.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 wS={"%":(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)=>bS(100*e,t),r:bS,s:function(e,t){var n=pS(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(gS=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 xS(e){return e}var CS,SS,_S,OS=Array.prototype.map,kS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ES(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?xS:(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?xS: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+"",l=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=yS(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,g=e.comma,v=e.precision,y=e.trim,m=e.type;"n"===m?(g=!0,m="g"):wS[m]||(void 0===v&&(v=12),y=!0,m="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===d?i:/[%p]/.test(m)?c:"",x=wS[m],C=/[defgprs%]/.test(m);function S(e){var o,i,c,d=b,S=w;if("c"===m)S=x(e)+S,e="";else{var _=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),v),y&&(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)),_&&0==+e&&"+"!==f&&(_=!1),d=(_?"("===f?f:l:"-"===f||"("===f?"":f)+d,S=("s"===m?kS[8+gS/3]:"")+S+(_&&"("===f?")":""),C)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){S=(46===c?a+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var O=d.length+e.length+S.length,k=O<h?new Array(h-O+1).join(t):"";switch(g&&p&&(e=r(k+e,k.length?h-S.length:1/0),k=""),n){case"<":e=d+e+S+k;break;case"=":e=d+k+e+S;break;case"^":e=k.slice(0,O=k.length>>1)+d+e+S+k.slice(O);break;default:e=k+d+e+S}return s(e)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return e+""},S}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(hS(t)/3))),o=Math.pow(10,-r),i=kS[8+r/3];return function(e){return n(o*e)+i}}}}function jS(e,t,n,r){var o,i=Yx(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(hS(t)/3)))-hS(Math.abs(e)))}(i,a))||(r.precision=o),_S(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,hS(t)-hS(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,-hS(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return SS(r)}function AS(e){var t=e.domain;return e.ticks=function(e){var n=t();return qx(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return jS(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],l=i[s],u=10;for(l<c&&(o=c,c=l,l=o,o=a,a=s,s=o);u-- >0;){if((o=Gx(c,l,n))===r)return i[a]=c,i[s]=l,t(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}r=o}return e},e}function TS(){var e=dS();return e.copy=function(){return uS(e,TS())},nC.apply(e,arguments),AS(e)}function MS(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 DS(e){return Math.exp(e)}function LS(e){return-Math.log(-e)}function IS(e){return-Math.exp(-e)}function RS(e){return isFinite(e)?+("1e"+e):e<0?0:e}function NS(e){return(t,n)=>-e(-t,n)}function BS(e){const t=e(PS,DS),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?RS:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=NS(r),o=NS(o),e(LS,IS)):e(PS,DS),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 l,u,f=r(a),d=r(s);const p=null==e?10:+e;let h=[];if(!(i%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(l=1;l<i;++l)if(u=f<0?l/o(-f):l*o(f),!(u<a)){if(u>s)break;h.push(u)}}else for(;f<=d;++f)for(l=i-1;l>=1;--l)if(u=f>0?l/o(-f):l*o(f),!(u<a)){if(u>s)break;h.push(u)}2*h.length<p&&(h=qx(a,s,p))}else h=qx(f,d,Math.min(d-f,p)).map(o);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=yS(n)).precision||(n.trim=!0),n=SS(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(MS(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function FS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function zS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function HS(e){var t=1,n=e(FS(t),zS(t));return n.constant=function(n){return arguments.length?e(FS(t=+n),zS(t)):t},AS(n)}function VS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function KS(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function $S(e){return e<0?-e*e:e*e}function US(e){var t=e(aS,aS),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(aS,aS):.5===n?e(KS,$S):e(VS(n),VS(1/n)):n},AS(t)}function WS(){var e=US(fS());return e.copy=function(){return uS(e,WS()).exponent(e.exponent())},nC.apply(e,arguments),e}function ZS(e){return Math.sign(e)*e*e}CS=ES({thousands:",",grouping:[3],currency:["$",""]}),SS=CS.format,_S=CS.formatPrefix;const qS=new Date,GS=new Date;function YS(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=>YS((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 XS=YS((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));XS.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?YS((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):XS:null),XS.range;const JS=1e3,QS=6e4,e_=36e5,t_=864e5,n_=6048e5,r_=2592e6,o_=31536e6,i_=YS((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*JS)}),((e,t)=>(t-e)/JS),(e=>e.getUTCSeconds()));i_.range;const a_=YS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*JS)}),((e,t)=>{e.setTime(+e+t*QS)}),((e,t)=>(t-e)/QS),(e=>e.getMinutes()));a_.range;const s_=YS((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*QS)}),((e,t)=>(t-e)/QS),(e=>e.getUTCMinutes()));s_.range;const c_=YS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*JS-e.getMinutes()*QS)}),((e,t)=>{e.setTime(+e+t*e_)}),((e,t)=>(t-e)/e_),(e=>e.getHours()));c_.range;const l_=YS((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*e_)}),((e,t)=>(t-e)/e_),(e=>e.getUTCHours()));l_.range;const u_=YS((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*QS)/t_),(e=>e.getDate()-1));u_.range;const f_=YS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/t_),(e=>e.getUTCDate()-1));f_.range;const d_=YS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/t_),(e=>Math.floor(e/t_)));function p_(e){return YS((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())*QS)/n_))}d_.range;const h_=p_(0),g_=p_(1),v_=p_(2),y_=p_(3),m_=p_(4),b_=p_(5),w_=p_(6);function x_(e){return YS((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)/n_))}h_.range,g_.range,v_.range,y_.range,m_.range,b_.range,w_.range;const C_=x_(0),S_=x_(1),__=x_(2),O_=x_(3),k_=x_(4),E_=x_(5),j_=x_(6);C_.range,S_.range,__.range,O_.range,k_.range,E_.range,j_.range;const A_=YS((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()));A_.range;const T_=YS((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()));T_.range;const M_=YS((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()));M_.every=e=>isFinite(e=Math.floor(e))&&e>0?YS((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,M_.range;const P_=YS((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 D_(e,t,n,r,o,i){const a=[[i_,1,JS],[i_,5,5e3],[i_,15,15e3],[i_,30,3e4],[i,1,QS],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,e_],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,t_],[r,2,1728e5],[n,1,n_],[t,1,r_],[t,3,7776e6],[e,1,o_]];function s(t,n,r){const o=Math.abs(n-t)/r,i=Rx((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(Yx(t/o_,n/o_,r));if(0===i)return XS.every(Math.max(Yx(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]}P_.every=e=>isFinite(e=Math.floor(e))&&e>0?YS((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,P_.range;const[L_,I_]=D_(P_,T_,C_,d_,l_,s_),[R_,N_]=D_(M_,A_,h_,u_,c_,a_);function B_(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 F_(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 z_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var H_,V_,K_,$_={"-":"",_:" ",0:"0"},U_=/^\s*\d+/,W_=/^%/,Z_=/[\\^$*+?|[\]().{}]/g;function q_(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 G_(e){return e.replace(Z_,"\\$&")}function Y_(e){return new RegExp("^(?:"+e.map(G_).join("|")+")","i")}function X_(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function J_(e,t,n){var r=U_.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Q_(e,t,n){var r=U_.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function eO(e,t,n){var r=U_.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function tO(e,t,n){var r=U_.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function nO(e,t,n){var r=U_.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function rO(e,t,n){var r=U_.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function oO(e,t,n){var r=U_.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function iO(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 aO(e,t,n){var r=U_.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function sO(e,t,n){var r=U_.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function cO(e,t,n){var r=U_.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lO(e,t,n){var r=U_.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function uO(e,t,n){var r=U_.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function fO(e,t,n){var r=U_.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function dO(e,t,n){var r=U_.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function pO(e,t,n){var r=U_.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function hO(e,t,n){var r=U_.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gO(e,t,n){var r=W_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function vO(e,t,n){var r=U_.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function yO(e,t,n){var r=U_.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function mO(e,t){return q_(e.getDate(),t,2)}function bO(e,t){return q_(e.getHours(),t,2)}function wO(e,t){return q_(e.getHours()%12||12,t,2)}function xO(e,t){return q_(1+u_.count(M_(e),e),t,3)}function CO(e,t){return q_(e.getMilliseconds(),t,3)}function SO(e,t){return CO(e,t)+"000"}function _O(e,t){return q_(e.getMonth()+1,t,2)}function OO(e,t){return q_(e.getMinutes(),t,2)}function kO(e,t){return q_(e.getSeconds(),t,2)}function EO(e){var t=e.getDay();return 0===t?7:t}function jO(e,t){return q_(h_.count(M_(e)-1,e),t,2)}function AO(e){var t=e.getDay();return t>=4||0===t?m_(e):m_.ceil(e)}function TO(e,t){return e=AO(e),q_(m_.count(M_(e),e)+(4===M_(e).getDay()),t,2)}function MO(e){return e.getDay()}function PO(e,t){return q_(g_.count(M_(e)-1,e),t,2)}function DO(e,t){return q_(e.getFullYear()%100,t,2)}function LO(e,t){return q_((e=AO(e)).getFullYear()%100,t,2)}function IO(e,t){return q_(e.getFullYear()%1e4,t,4)}function RO(e,t){var n=e.getDay();return q_((e=n>=4||0===n?m_(e):m_.ceil(e)).getFullYear()%1e4,t,4)}function NO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+q_(t/60|0,"0",2)+q_(t%60,"0",2)}function BO(e,t){return q_(e.getUTCDate(),t,2)}function FO(e,t){return q_(e.getUTCHours(),t,2)}function zO(e,t){return q_(e.getUTCHours()%12||12,t,2)}function HO(e,t){return q_(1+f_.count(P_(e),e),t,3)}function VO(e,t){return q_(e.getUTCMilliseconds(),t,3)}function KO(e,t){return VO(e,t)+"000"}function $O(e,t){return q_(e.getUTCMonth()+1,t,2)}function UO(e,t){return q_(e.getUTCMinutes(),t,2)}function WO(e,t){return q_(e.getUTCSeconds(),t,2)}function ZO(e){var t=e.getUTCDay();return 0===t?7:t}function qO(e,t){return q_(C_.count(P_(e)-1,e),t,2)}function GO(e){var t=e.getUTCDay();return t>=4||0===t?k_(e):k_.ceil(e)}function YO(e,t){return e=GO(e),q_(k_.count(P_(e),e)+(4===P_(e).getUTCDay()),t,2)}function XO(e){return e.getUTCDay()}function JO(e,t){return q_(S_.count(P_(e)-1,e),t,2)}function QO(e,t){return q_(e.getUTCFullYear()%100,t,2)}function ek(e,t){return q_((e=GO(e)).getUTCFullYear()%100,t,2)}function tk(e,t){return q_(e.getUTCFullYear()%1e4,t,4)}function nk(e,t){var n=e.getUTCDay();return q_((e=n>=4||0===n?k_(e):k_.ceil(e)).getUTCFullYear()%1e4,t,4)}function rk(){return"+0000"}function ok(){return"%"}function ik(e){return+e}function ak(e){return Math.floor(+e/1e3)}function sk(e){return new Date(e)}function ck(e){return e instanceof Date?+e:+new Date(+e)}function lk(e,t,n,r,o,i,a,s,c,l){var u=dS(),f=u.invert,d=u.domain,p=l(".%L"),h=l(":%S"),g=l("%I:%M"),v=l("%I %p"),y=l("%a %d"),m=l("%b %d"),b=l("%B"),w=l("%Y");function x(e){return(c(e)<e?p:s(e)<e?h:a(e)<e?g:i(e)<e?v:r(e)<e?o(e)<e?y:m:n(e)<e?b:w)(e)}return u.invert=function(e){return new Date(f(e))},u.domain=function(e){return arguments.length?d(Array.from(e,ck)):d().map(sk)},u.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:l(t)},u.nice=function(e){var n=d();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(MS(n,e)):u},u.copy=function(){return uS(u,lk(e,t,n,r,o,i,a,s,c,l))},u}function uk(){var e,t,n,r,o,i=0,a=1,s=aS,c=!1;function l(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 u(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),l):[s(0),s(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),l):[i,a]},l.clamp=function(e){return arguments.length?(c=!!e,l):c},l.interpolator=function(e){return arguments.length?(s=e,l):s},l.range=u(tS),l.rangeRound=u(nS),l.unknown=function(e){return arguments.length?(o=e,l):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),l}}function fk(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function dk(){var e=US(uk());return e.copy=function(){return fk(e,dk()).exponent(e.exponent())},rC.apply(e,arguments)}function pk(){var e,t,n,r,o,i,a,s=0,c=.5,l=1,u=1,f=aS,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(u*e<u*t?r:o),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=rS(e,[n,r,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([s,c,l]=a,e=i(s=+s),t=i(c=+c),n=i(l=+l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p):[s,c,l]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(tS),p.rangeRound=h(nS),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(s),t=a(c),n=a(l),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function hk(){var e=US(pk());return e.copy=function(){return fk(e,hk()).exponent(e.exponent())},rC.apply(e,arguments)}!function(e){H_=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,l=Y_(o),u=X_(o),f=Y_(i),d=X_(i),p=Y_(a),h=X_(a),g=Y_(s),v=X_(s),y=Y_(c),m=X_(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:mO,e:mO,f:SO,g:LO,G:RO,H:bO,I:wO,j:xO,L:CO,m:_O,M:OO,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ik,s:ak,S:kO,u:EO,U:jO,V:TO,w:MO,W:PO,x:null,X:null,y:DO,Y:IO,Z:NO,"%":ok},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:BO,e:BO,f:KO,g:ek,G:nk,H:FO,I:zO,j:HO,L:VO,m:$O,M:UO,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ik,s:ak,S:WO,u:ZO,U:qO,V:YO,w:XO,W:JO,x:null,X:null,y:QO,Y:tk,Z:rk,"%":ok},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.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=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return _(e,t,n,r)},d:cO,e:cO,f:hO,g:oO,G:rO,H:uO,I:uO,j:lO,L:pO,m:sO,M:fO,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:aO,Q:vO,s:yO,S:dO,u:Q_,U:eO,V:tO,w:J_,W:nO,x:function(e,t,r){return _(e,n,t,r)},X:function(e,t,n){return _(e,r,t,n)},y:oO,Y:rO,Z:iO,"%":gO};function C(e,t){return function(n){var r,o,i,a=[],s=-1,c=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(o=$_[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 S(e,t){return function(n){var r,o,i=z_(1900,void 0,1);if(_(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=F_(z_(i.y,0,1))).getUTCDay(),r=o>4||0===o?S_.ceil(r):S_(r),r=f_.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=B_(z_(i.y,0,1))).getDay(),r=o>4||0===o?g_.ceil(r):g_(r),r=u_.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?F_(z_(i.y,0,1)).getUTCDay():B_(z_(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,F_(i)):B_(i)}}function _(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 $_?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),w.x=C(n,w),w.X=C(r,w),w.c=C(t,w),{format:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}(e),V_=H_.format,H_.parse,K_=H_.utcFormat,H_.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 gk=Object.freeze({__proto__:null,scaleBand:aC,scaleDiverging:function e(){var t=AS(pk()(aS));return t.copy=function(){return fk(t,e())},rC.apply(t,arguments)},scaleDivergingLog:function e(){var t=BS(pk()).domain([.1,1,10]);return t.copy=function(){return fk(t,e()).base(t.base())},rC.apply(t,arguments)},scaleDivergingPow:hk,scaleDivergingSqrt:function(){return hk.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=HS(pk());return t.copy=function(){return fk(t,e()).constant(t.constant())},rC.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,oS),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,oS):[0,1],AS(r)},scaleImplicit:oC,scaleLinear:TS,scaleLog:function e(){const t=BS(fS()).domain([1,10]);return t.copy=()=>uS(t,e()).base(t.base()),nC.apply(t,arguments),t},scaleOrdinal:iC,scalePoint:cC,scalePow:WS,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]=tC(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[Fx(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(Lx),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)},nC.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[Fx(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)},nC.apply(AS(s),arguments)},scaleRadial:function e(){var t,n=dS(),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(ZS(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,oS)).map(ZS)),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)},nC.apply(i,arguments),AS(i)},scaleSequential:function e(){var t=AS(uk()(aS));return t.copy=function(){return fk(t,e())},rC.apply(t,arguments)},scaleSequentialLog:function e(){var t=BS(uk()).domain([1,10]);return t.copy=function(){return fk(t,e()).base(t.base())},rC.apply(t,arguments)},scaleSequentialPow:dk,scaleSequentialQuantile:function e(){var t=[],n=aS;function r(e){if(null!=e&&!isNaN(e=+e))return n((Fx(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(Lx),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 Jx(e);if(t>=1)return Xx(e);var r,o=(r-1)*t,i=Math.floor(o),a=Xx(Qx(e,i).subarray(0,i+1));return a+(Jx(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},rC.apply(r,arguments)},scaleSequentialSqrt:function(){return dk.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=HS(uk());return t.copy=function(){return fk(t,e()).constant(t.constant())},rC.apply(t,arguments)},scaleSqrt:function(){return WS.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=HS(fS());return t.copy=function(){return uS(t,e()).constant(t.constant())},nC.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[Fx(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)},nC.apply(i,arguments)},scaleTime:function(){return nC.apply(lk(R_,N_,M_,A_,h_,u_,c_,a_,i_,V_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return nC.apply(lk(L_,I_,P_,T_,C_,f_,l_,s_,i_,K_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:jS}),vk=il;var yk=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&&!vk(a):n(a,s)))var s=a,c=i}return c};var mk=function(e,t){return e>t},bk=yk,wk=mk,xk=Dy;var Ck=function(e){return e&&e.length?bk(e,xk,wk):void 0},Sk=ct(Ck);var _k=function(e,t){return e<t},Ok=yk,kk=_k,Ek=Dy;var jk=function(e){return e&&e.length?Ok(e,Ek,kk):void 0},Ak=ct(jk),Tk=Zu,Mk=Wy,Pk=Zm,Dk=Fc;var Lk=Nm,Ik=function(e,t){return(Dk(e)?Tk:Pk)(e,Mk(t))};var Rk=ct((function(e,t){return Lk(Ik(e,t),1)})),Nk=ey;var Bk,Fk=ct((function(e,t){return Nk(e,t)})),zk=1e9,Hk=!0,Vk="[DecimalError] ",Kk=Vk+"Invalid argument: ",$k=Vk+"Exponent out of range: ",Uk=Math.floor,Wk=Math.pow,Zk=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qk=1e7,Gk=7,Yk=9007199254740991,Xk=Uk(Yk/Gk),Jk={};function Qk(e,t){var n,r,o,i,a,s,c,l,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),Hk?lE(t,f):t;if(c=e.d,l=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=l.length):(r=l,o=a,s=c.length),i>(s=(a=Math.ceil(f/Gk))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=l.length)<0&&(i=s,r=l,l=c,c=r),n=0;i;)n=(c[--i]=c[i]+l[i]+n)/qk|0,c[i]%=qk;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,Hk?lE(t,f):t}function eE(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Kk+e)}function tE(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=Gk-r.length)&&(i+=aE(n)),i+=r;a=e[t],(n=Gk-(r=a+"").length)&&(i+=aE(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Jk.absoluteValue=Jk.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Jk.comparedTo=Jk.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},Jk.decimalPlaces=Jk.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Gk;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},Jk.dividedBy=Jk.div=function(e){return nE(this,new this.constructor(e))},Jk.dividedToIntegerBy=Jk.idiv=function(e){var t=this.constructor;return lE(nE(this,new t(e),0,1),t.precision)},Jk.equals=Jk.eq=function(e){return!this.cmp(e)},Jk.exponent=function(){return oE(this)},Jk.greaterThan=Jk.gt=function(e){return this.cmp(e)>0},Jk.greaterThanOrEqualTo=Jk.gte=function(e){return this.cmp(e)>=0},Jk.isInteger=Jk.isint=function(){return this.e>this.d.length-2},Jk.isNegative=Jk.isneg=function(){return this.s<0},Jk.isPositive=Jk.ispos=function(){return this.s>0},Jk.isZero=function(){return 0===this.s},Jk.lessThan=Jk.lt=function(e){return this.cmp(e)<0},Jk.lessThanOrEqualTo=Jk.lte=function(e){return this.cmp(e)<1},Jk.logarithm=Jk.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(Bk))throw Error(Vk+"NaN");if(n.s<1)throw Error(Vk+(n.s?"NaN":"-Infinity"));return n.eq(Bk)?new r(0):(Hk=!1,t=nE(sE(n,i),sE(e,i),i),Hk=!0,lE(t,o))},Jk.minus=Jk.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?uE(t,e):Qk(t,(e.s=-e.s,e))},Jk.modulo=Jk.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(Vk+"NaN");return n.s?(Hk=!1,t=nE(n,e,0,1).times(e),Hk=!0,n.minus(t)):lE(new r(n),o)},Jk.naturalExponential=Jk.exp=function(){return rE(this)},Jk.naturalLogarithm=Jk.ln=function(){return sE(this)},Jk.negated=Jk.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Jk.plus=Jk.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qk(t,e):uE(t,(e.s=-e.s,e))},Jk.precision=Jk.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Kk+e);if(t=oE(o)+1,n=(r=o.d.length-1)*Gk+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},Jk.squareRoot=Jk.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(Vk+"NaN")}for(e=oE(s),Hk=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=tE(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Uk((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(nE(s,i,a+2)).times(.5),tE(i.d).slice(0,a)===(t=tE(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(lE(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return Hk=!0,lE(r,n)},Jk.times=Jk.mul=function(e){var t,n,r,o,i,a,s,c,l,u=this,f=u.constructor,d=u.d,p=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,n=u.e+e.e,(c=d.length)<(l=p.length)&&(i=d,d=p,p=i,a=c,c=l,l=a),i=[],r=a=c+l;r--;)i.push(0);for(r=l;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+p[r]*d[o-r-1]+t,i[o--]=s%qk|0,t=s/qk|0;i[o]=(i[o]+t)%qk|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,Hk?lE(e,f.precision):e},Jk.toDecimalPlaces=Jk.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(eE(e,0,zk),void 0===t?t=r.rounding:eE(t,0,8),lE(n,e+oE(n)+1,t))},Jk.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=fE(r,!0):(eE(e,0,zk),void 0===t?t=o.rounding:eE(t,0,8),n=fE(r=lE(new o(r),e+1,t),!0,e+1)),n},Jk.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?fE(o):(eE(e,0,zk),void 0===t?t=i.rounding:eE(t,0,8),n=fE((r=lE(new i(o),e+oE(o)+1,t)).abs(),!1,e+oE(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},Jk.toInteger=Jk.toint=function(){var e=this,t=e.constructor;return lE(new t(e),oE(e)+1,t.rounding)},Jk.toNumber=function(){return+this},Jk.toPower=Jk.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,l=+(e=new c(e));if(!e.s)return new c(Bk);if(!(s=new c(s)).s){if(e.s<1)throw Error(Vk+"Infinity");return s}if(s.eq(Bk))return s;if(r=c.precision,e.eq(Bk))return lE(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=l<0?-l:l)<=Yk){for(o=new c(Bk),t=Math.ceil(r/Gk+4),Hk=!1;n%2&&dE((o=o.times(s)).d,t),0!==(n=Uk(n/2));)dE((s=s.times(s)).d,t);return Hk=!0,e.s<0?new c(Bk).div(o):lE(o,r)}}else if(i<0)throw Error(Vk+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,Hk=!1,o=e.times(sE(s,r+12)),Hk=!0,(o=rE(o)).s=i,o},Jk.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=fE(o,(n=oE(o))<=i.toExpNeg||n>=i.toExpPos):(eE(e,1,zk),void 0===t?t=i.rounding:eE(t,0,8),r=fE(o=lE(new i(o),e,t),e<=(n=oE(o))||n<=i.toExpNeg,e)),r},Jk.toSignificantDigits=Jk.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(eE(e,1,zk),void 0===t?t=n.rounding:eE(t,0,8)),lE(new n(this),e,t)},Jk.toString=Jk.valueOf=Jk.val=Jk.toJSON=Jk[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=oE(e),n=e.constructor;return fE(e,t<=n.toExpNeg||t>=n.toExpPos)};var nE=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%qk|0,r=n/qk|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*qk+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,l,u,f,d,p,h,g,v,y,m,b,w,x,C,S,_,O=r.constructor,k=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new O(r);if(!o.s)throw Error(Vk+"Division by zero");for(c=r.e-o.e,S=j.length,x=E.length,h=(p=new O(k)).d=[],l=0;j[l]==(E[l]||0);)++l;if(j[l]>(E[l]||0)&&--c,(m=null==i?i=O.precision:a?i+(oE(r)-oE(o))+1:i)<0)return new O(0);if(m=m/Gk+2|0,l=0,1==S)for(u=0,j=j[0],m++;(l<x||u)&&m--;l++)b=u*qk+(E[l]||0),h[l]=b/j|0,u=b%j|0;else{for((u=qk/(j[0]+1)|0)>1&&(j=e(j,u),E=e(E,u),S=j.length,x=E.length),w=S,v=(g=E.slice(0,S)).length;v<S;)g[v++]=0;(_=j.slice()).unshift(0),C=j[0],j[1]>=qk/2&&++C;do{u=0,(s=t(j,g,S,v))<0?(y=g[0],S!=v&&(y=y*qk+(g[1]||0)),(u=y/C|0)>1?(u>=qk&&(u=qk-1),1==(s=t(f=e(j,u),g,d=f.length,v=g.length))&&(u--,n(f,S<d?_:j,d))):(0==u&&(s=u=1),f=j.slice()),(d=f.length)<v&&f.unshift(0),n(g,f,v),-1==s&&(s=t(j,g,S,v=g.length))<1&&(u++,n(g,S<v?_:j,v)),v=g.length):0===s&&(u++,g=[0]),h[l++]=u,s&&g[0]?g[v++]=E[w]||0:(g=[E[w]],v=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),p.e=c,lE(p,a?i+oE(p)+1:i)}}();function rE(e,t){var n,r,o,i,a,s=0,c=0,l=e.constructor,u=l.precision;if(oE(e)>16)throw Error($k+oE(e));if(!e.s)return new l(Bk);for(null==t?(Hk=!1,a=u):a=t,i=new l(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(Wk(2,c))/Math.LN10*2+5|0,n=r=o=new l(Bk),l.precision=a;;){if(r=lE(r.times(e),a),n=n.times(++s),tE((i=o.plus(nE(r,n,a))).d).slice(0,a)===tE(o.d).slice(0,a)){for(;c--;)o=lE(o.times(o),a);return l.precision=u,null==t?(Hk=!0,lE(o,u)):o}o=i}}function oE(e){for(var t=e.e*Gk,n=e.d[0];n>=10;n/=10)t++;return t}function iE(e,t,n){if(t>e.LN10.sd())throw Hk=!0,n&&(e.precision=n),Error(Vk+"LN10 precision limit exceeded");return lE(new e(e.LN10),t)}function aE(e){for(var t="";e--;)t+="0";return t}function sE(e,t){var n,r,o,i,a,s,c,l,u,f=1,d=e,p=d.d,h=d.constructor,g=h.precision;if(d.s<1)throw Error(Vk+(d.s?"NaN":"-Infinity"));if(d.eq(Bk))return new h(0);if(null==t?(Hk=!1,l=g):l=t,d.eq(10))return null==t&&(Hk=!0),iE(h,l);if(l+=10,h.precision=l,r=(n=tE(p)).charAt(0),i=oE(d),!(Math.abs(i)<15e14))return c=iE(h,l+2,g).times(i+""),d=sE(new h(r+"."+n.slice(1)),l-10).plus(c),h.precision=g,null==t?(Hk=!0,lE(d,g)):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=tE((d=d.times(e)).d)).charAt(0),f++;for(i=oE(d),r>1?(d=new h("0."+n),i++):d=new h(r+"."+n.slice(1)),s=a=d=nE(d.minus(Bk),d.plus(Bk),l),u=lE(d.times(d),l),o=3;;){if(a=lE(a.times(u),l),tE((c=s.plus(nE(a,new h(o),l))).d).slice(0,l)===tE(s.d).slice(0,l))return s=s.times(2),0!==i&&(s=s.plus(iE(h,l+2,g).times(i+""))),s=nE(s,new h(f),l),h.precision=g,null==t?(Hk=!0,lE(s,g)):s;s=c,o+=2}}function cE(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=Uk(n/Gk),e.d=[],r=(n+1)%Gk,n<0&&(r+=Gk),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=Gk;r<o;)e.d.push(+t.slice(r,r+=Gk));t=t.slice(r),r=Gk-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),Hk&&(e.e>Xk||e.e<-Xk))throw Error($k+n)}else e.s=0,e.e=0,e.d=[0];return e}function lE(e,t,n){var r,o,i,a,s,c,l,u,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=Gk,o=t,l=f[u=0];else{if((u=Math.ceil((r+1)/Gk))>=(i=f.length))return e;for(l=i=f[u],a=1;i>=10;i/=10)a++;o=(r%=Gk)-Gk+a}if(void 0!==n&&(s=l/(i=Wk(10,a-o-1))%10|0,c=t<0||void 0!==f[u+1]||l%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?l/Wk(10,a-o):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=oE(e),f.length=1,t=t-i-1,f[0]=Wk(10,(Gk-t%Gk)%Gk),e.e=Uk(-t/Gk)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=u,i=1,u--):(f.length=u+1,i=Wk(10,Gk-r),f[u]=o>0?(l/Wk(10,a-o)%Wk(10,o)|0)*i:0),c)for(;;){if(0==u){(f[0]+=i)==qk&&(f[0]=1,++e.e);break}if(f[u]+=i,f[u]!=qk)break;f[u--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(Hk&&(e.e>Xk||e.e<-Xk))throw Error($k+oE(e));return e}function uE(e,t){var n,r,o,i,a,s,c,l,u,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Hk?lE(t,p):t;if(c=e.d,f=t.d,r=t.e,l=e.e,c=c.slice(),a=l-r){for((u=a<0)?(n=c,a=-a,s=f.length):(n=f,r=l,s=c.length),a>(o=Math.max(Math.ceil(p/Gk),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((u=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){u=c[o]<f[o];break}a=0}for(u&&(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]=qk-1;--c[i],c[o]+=qk}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,Hk?lE(t,p):t):new d(0)}function fE(e,t,n){var r,o=oE(e),i=tE(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+aE(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+aE(-o-1)+i,n&&(r=n-a)>0&&(i+=aE(r))):o>=a?(i+=aE(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+aE(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=aE(r))),e.s<0?"-"+i:i}function dE(e,t){if(e.length>t)return e.length=t,!0}function pE(e){if(!e||"object"!=typeof e)throw Error(Vk+"Object expected");var t,n,r,o=["precision",1,zk,"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(!(Uk(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(Kk+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(Kk+n+": "+r);this[n]=new this(r)}return this}var hE=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(Kk+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])):cE(t,e.toString())}if("string"!=typeof e)throw Error(Kk+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Zk.test(e))throw Error(Kk+e);cE(t,e)}if(i.prototype=Jk,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=pE,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"});Bk=new hE(1);var gE=hE;function vE(e){return function(e){if(Array.isArray(e))return yE(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 yE(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 yE(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 yE(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 mE=function(e){return e},bE={"@@functional/placeholder":!0},wE=function(e){return e===bE},xE=function(e){return function t(){return 0===arguments.length||1===arguments.length&&wE(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},CE=function e(t,n){return 1===t?n:xE((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!==bE})).length;return a>=t?n.apply(void 0,o):e(t-a,xE((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 wE(e)?t.shift():e}));return n.apply(void 0,vE(i).concat(t))})))}))},SE=function(e){return CE(e.length,e)},_E=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},OE=SE((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),kE=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return mE;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))}},EE=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},jE=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 AE=SE((function(e,t,n){var r=+e;return r+n*(+t-r)})),TE=SE((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),ME=SE((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),PE={rangeStep:function(e,t,n){for(var r=new gE(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 gE(e).abs().log(10).toNumber())+1},interpolateNumber:AE,uninterpolateNumber:TE,uninterpolateTruncation:ME};function DE(e){return function(e){if(Array.isArray(e))return RE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||IE(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 LE(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)||IE(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 IE(e,t){if(e){if("string"==typeof e)return RE(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)?RE(e,t):void 0}}function RE(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 NE(e){var t=LE(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function BE(e,t,n){if(e.lte(0))return new gE(0);var r=PE.getDigitCount(e.toNumber()),o=new gE(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new gE(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new gE(Math.ceil(s))}function FE(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 gE(0),tickMin:new gE(0),tickMax:new gE(0)};var i,a=BE(new gE(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new gE(0):(i=new gE(e).add(t).div(2)).sub(new gE(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new gE(t).sub(i).div(a).toNumber()),l=s+c+1;return l>n?FE(e,t,n,r,o+1):(l<n&&(c=t>0?c+(n-l):c,s=t>0?s:s+(n-l)),{step:a,tickMin:i.sub(new gE(s).mul(a)),tickMax:i.add(new gE(c).mul(a))})}var zE=jE((function(e){var t=LE(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=LE(NE([n,r]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0){var u=l===1/0?[c].concat(DE(_E(0,o-1).map((function(){return 1/0})))):[].concat(DE(_E(0,o-1).map((function(){return-1/0}))),[l]);return n>r?EE(u):u}if(c===l)return function(e,t,n){var r=1,o=new gE(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new gE(10).pow(PE.getDigitCount(e)-1),o=new gE(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new gE(Math.floor(e)))}else 0===e?o=new gE(Math.floor((t-1)/2)):n||(o=new gE(Math.floor(e)));var a=Math.floor((t-1)/2),s=kE(OE((function(e){return o.add(new gE(e-a).mul(r)).toNumber()})),_E);return s(0,t)}(c,o,i);var f=FE(c,l,a,i),d=f.step,p=f.tickMin,h=f.tickMax,g=PE.rangeStep(p,h.add(new gE(.1).mul(d)),d);return n>r?EE(g):g})),HE=jE((function(e,t){var n=LE(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=LE(NE([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 l=Math.max(t,2),u=BE(new gE(c).sub(s).div(l-1),i,0),f=[].concat(DE(PE.rangeStep(new gE(s),new gE(c).sub(new gE(.99).mul(u)),u)),[c]);return r>o?EE(f):f})),VE="production"===process.env.NODE_ENV,KE="Invariant failed";function $E(e,t){if(!e){if(VE)throw new Error(KE);var n="function"==typeof t?t():t,r=n?"".concat(KE,": ").concat(n):KE;throw new Error(r)}}var UE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function WE(){return WE=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},WE.apply(this,arguments)}function ZE(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qE(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 qE(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 qE(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 GE(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 YE(e){var n=e.offset,r=e.layout,o=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,l=e.yAxis,u=GE(e,UE),f=ud(u,!1);"x"===e.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?$E(!1,'ErrorBar requires Axis type property to be "number".'):$E(!1));var d=a.map((function(e){var a=s(e,i),u=a.x,d=a.y,p=a.value,h=a.errorVal;if(!h)return null;var g,v,y=[];if(Array.isArray(h)){var m=ZE(h,2);g=m[0],v=m[1]}else g=v=h;if("vertical"===r){var b=c.scale,w=d+n,x=w+o,C=w-o,S=b(p-g),_=b(p+v);y.push({x1:_,y1:x,x2:_,y2:C}),y.push({x1:S,y1:w,x2:_,y2:w}),y.push({x1:S,y1:x,x2:S,y2:C})}else if("horizontal"===r){var O=l.scale,k=u+n,E=k-o,j=k+o,A=O(p-g),T=O(p+v);y.push({x1:E,y1:T,x2:j,y2:T}),y.push({x1:k,y1:A,x2:k,y2:T}),y.push({x1:E,y1:A,x2:j,y2:A})}return t.createElement(xd,WE({className:"recharts-errorBar",key:"bar-".concat(y.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},f),y.map((function(e){return t.createElement("line",WE({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return t.createElement(xd,{className:"recharts-errorBars"},d)}function XE(e){return XE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XE(e)}function JE(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 QE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JE(Object(n),!0).forEach((function(t){ej(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ej(e,t,n){return t=function(e){var t=function(e,t){if("object"!=XE(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=XE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==XE(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}YE.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},YE.displayName="ErrorBar";var tj=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=sd(n,Mm);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:uj(t),value:o||r,payload:t.props}})),QE(QE(QE({},a.props),Mm.getWithHeight(a,o)),{},{payload:t,item:a})):null};function nj(e){return nj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nj(e)}function rj(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 oj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rj(Object(n),!0).forEach((function(t){ij(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ij(e,t,n){return t=function(e){var t=function(e,t){if("object"!=nj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aj(e){return function(e){if(Array.isArray(e))return sj(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 sj(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 sj(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 sj(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 cj(e,t,n){return vf(e)||vf(t)?n:Rf(t)?gf(e,t,n):yl(t)?t(e):n}function lj(e,t,n,r){var o=Rk(e,(function(e){return cj(e,t)}));if("number"===n){var i=o.filter((function(e){return If(e)||parseFloat(e)}));return i.length?[Ak(i),Sk(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!vf(e)})):o).map((function(e){return Rf(e)||e instanceof Date?e:""}))}var uj=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},fj=function(e,t,n,r,o){var i=ad(t.props.children,YE).filter((function(e){return function(e,t,n){return!!vf(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=cj(t,n);if(vf(r))return e;var o=Array.isArray(r)?[Ak(r),Sk(r)]:[r,r],i=a.reduce((function(e,n){var r=cj(t,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),a=o[1]+Math.abs(Array.isArray(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},dj=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&fj(e,t,i,r)||lj(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}),[])},pj=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},hj=function(e,t,n,r){if(r)return e.map((function(e){return e.coordinate}));var o,i,a=e.map((function(e){return e.coordinate===t&&(o=!0),e.coordinate===n&&(i=!0),e.coordinate}));return o||a.push(t),i||a.push(n),a},gj=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,c=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*Df(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}})).filter((function(e){return!Pf(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+c,value:e,offset:c}})):r.domain().map((function(e,t){return{coordinate:r(e)+c,value:o?o[e]:e,index:t,offset:c}}))},vj=new WeakMap,yj=function(e,t){if("function"!=typeof t)return e;vj.has(e)||vj.set(e,new WeakMap);var n=vj.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},mj=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:aC(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:TS(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:cC(),realScaleType:"point"}:"category"===o?{scale:aC(),realScaleType:"band"}:{scale:TS(),realScaleType:"linear"};if(xf(r)){var s="scale".concat(Jd(r));return{scale:(gk[s]||cC)(),realScaleType:gk[s]?s:"point"}}return yl(r)?{scale:r}:{scale:cC(),realScaleType:"point"}},bj=1e-4,wj=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])-bj,i=Math.max(r[0],r[1])+bj,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},xj={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=Pf(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Qp(e,t)}},none:Qp,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}Qp(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,l=0;s<o;++s){for(var u=e[t[s]],f=u[a][1]||0,d=(f-(u[a-1][1]||0))/2,p=0;p<s;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,l+=d*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=l/c)}n[a-1][1]+=n[a-1][0]=i,Qp(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=Pf(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},Cj=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=xj[n],i=function(){var e=Qd([]),t=eh,n=Qp,r=th;function o(o){var i,a,s=Array.from(e.apply(this,arguments),nh),c=s.length,l=-1;for(const e of o)for(i=0,++l;i<c;++i)(s[i][l]=[0,+r(e,s[i].key,l,o)]).data=e;for(i=0,a=dp(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:Qd(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:Qd(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?eh:"function"==typeof e?e:Qd(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Qp:e,o):n},o}().keys(r).value((function(e,t){return+cj(e,t,0)})).order(eh).offset(o);return i(e)},Sj=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 l=zE(c,o,a);return e.domain([Ak(l),Sk(l)]),{niceTicks:l}}if(o&&"number"===r){var u=e.domain();return{niceTicks:HE(u,o,a)}}return null};function _j(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&&!vf(o[t.dataKey])){var s=Vf(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=cj(o,vf(a)?t.dataKey:a);return vf(c)?null:t.scale(c)}var Oj=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=cj(i,t.dataKey,t.domain[a]);return vf(s)?null:t.scale(s)-o/2+r},kj=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[Ak(t.concat([e[0]]).filter(If)),Sk(t.concat([e[1]]).filter(If))]}),[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}))},Ej=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jj=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Aj=function(e,t,n){if(yl(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(If(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(Ej.test(e[0])){var o=+Ej.exec(e[0])[1];r[0]=t[0]-o}else yl(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(If(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(jj.test(e[1])){var i=+jj.exec(e[1])[1];r[1]=t[1]+i}else yl(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},Tj=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=Pb(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],l=o[a-1];i=Math.min((c.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},Mj=function(e,t,n){return e&&e.length?Fk(e,gf(n,"type.defaultProps.domain"))?t:e:t},Pj=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,l=n.hide;return oj(oj({},ud(e,!1)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:uj(e),value:cj(t,r),type:s,payload:t,chartType:c,hide:l})};function Dj(e){return Dj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dj(e)}function Lj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ij(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lj(Object(n),!0).forEach((function(t){Rj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rj(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Dj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Dj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Dj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nj(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bj(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 Bj(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 Bj(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 Fj=Math.PI/180,zj=function(e){return 180*e/Math.PI},Hj=function(e,t,n,r){return{x:e+Math.cos(-Fj*r)*n,y:t+Math.sin(-Fj*r)*n}},Vj=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},Kj=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:zj(c),angleInRadian:c}},$j=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)},Uj=function(e,t){var n=e.x,r=e.y,o=Kj({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 l,u=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=u.startAngle,d=u.endAngle,p=a;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;l=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;l=p>=d&&p<=f}return l?Ij(Ij({},t),{},{radius:i,angle:$j(p,t)}):null},Wj=function(e){return t.isValidElement(e)||yl(e)||"boolean"==typeof e?"":e.className};function Zj(e){return Zj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zj(e)}var qj=["offset"];function Gj(e){return function(e){if(Array.isArray(e))return Yj(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 Yj(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 Yj(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 Yj(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 Xj(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 Jj(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 Qj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jj(Object(n),!0).forEach((function(t){eA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Zj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Zj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tA(){return tA=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},tA.apply(this,arguments)}var nA=function(e){var t=e.value,n=e.formatter,r=vf(e.children)?t:e.children;return yl(n)?n(r):r},rA=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,l=e.className,u=s,f=u.cx,d=u.cy,p=u.innerRadius,h=u.outerRadius,g=u.startAngle,v=u.endAngle,y=u.clockWise,m=(p+h)/2,b=function(e,t){return Df(t-e)*Math.min(Math.abs(t-e),360)}(g,v),w=b>=0?1:-1;"insideStart"===a?(o=g+w*c,i=y):"insideEnd"===a?(o=v-w*c,i=!y):"end"===a&&(o=v+w*c,i=y),i=b<=0?i:!i;var x=Hj(f,d,m,o),C=Hj(f,d,m,o+359*(i?1:-1)),S="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(C.x,",").concat(C.y),_=vf(e.id)?Bf("recharts-radial-line-"):e.id;return t.createElement("text",tA({},r,{dominantBaseline:"central",className:Bc("recharts-radial-bar-label",l)}),t.createElement("defs",null,t.createElement("path",{id:_,d:S})),t.createElement("textPath",{xlinkHref:"#".concat(_)},n))},oA=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,l=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=Hj(i,a,c+n,l),f=u.x;return{x:f,y:u.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=Hj(i,a,(s+c)/2,l);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},iA=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,l=i.height,u=l>=0?1:-1,f=u*r,d=u>0?"end":"start",p=u>0?"start":"end",h=c>=0?1:-1,g=h*r,v=h>0?"end":"start",y=h>0?"start":"end";if("top"===o)return Qj(Qj({},{x:a+c/2,y:s-u*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return Qj(Qj({},{x:a+c/2,y:s+l+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+l),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+l/2,textAnchor:v,verticalAnchor:"middle"};return Qj(Qj({},m),n?{width:Math.max(m.x-n.x,0),height:l}:{})}if("right"===o){var b={x:a+c+g,y:s+l/2,textAnchor:y,verticalAnchor:"middle"};return Qj(Qj({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var w=n?{width:c,height:l}:{};return"insideLeft"===o?Qj({x:a+g,y:s+l/2,textAnchor:y,verticalAnchor:"middle"},w):"insideRight"===o?Qj({x:a+c-g,y:s+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?Qj({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?Qj({x:a+c/2,y:s+l-f,textAnchor:"middle",verticalAnchor:d},w):"insideTopLeft"===o?Qj({x:a+g,y:s+f,textAnchor:y,verticalAnchor:p},w):"insideTopRight"===o?Qj({x:a+c-g,y:s+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===o?Qj({x:a+g,y:s+l-f,textAnchor:y,verticalAnchor:d},w):"insideBottomRight"===o?Qj({x:a+c-g,y:s+l-f,textAnchor:v,verticalAnchor:d},w):dl(o)&&(If(o.x)||Lf(o.x))&&(If(o.y)||Lf(o.y))?Qj({x:a+Ff(o.x,c),y:s+Ff(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):Qj({x:a+c/2,y:s+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},aA=function(e){return"cx"in e&&If(e.cx)};function sA(e){var n,r=e.offset,o=Qj({offset:void 0===r?5:r},Xj(e,qj)),i=o.viewBox,a=o.position,s=o.value,c=o.children,l=o.content,u=o.className,f=void 0===u?"":u,d=o.textBreakAll;if(!i||vf(s)&&vf(c)&&!t.isValidElement(l)&&!yl(l))return null;if(t.isValidElement(l))return t.cloneElement(l,o);if(yl(l)){if(n=t.createElement(l,o),t.isValidElement(n))return n}else n=nA(o);var p=aA(i),h=ud(o,!0);if(p&&("insideStart"===a||"insideEnd"===a||"end"===a))return rA(o,n,h);var g=p?oA(o):iA(o);return t.createElement(Dx,tA({className:Bc("recharts-label",f)},h,g,{breakAll:d}),n)}sA.displayName="Label";var cA=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,l=e.outerRadius,u=e.x,f=e.y,d=e.top,p=e.left,h=e.width,g=e.height,v=e.clockWise,y=e.labelViewBox;if(y)return y;if(If(h)&&If(g)){if(If(u)&&If(f))return{x:u,y:f,width:h,height:g};if(If(d)&&If(p))return{x:d,y:p,width:h,height:g}}return If(u)&&If(f)?{x:u,y:f,width:0,height:0}:If(t)&&If(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:l||s||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};sA.parseViewBox=cA,sA.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=cA(e),a=ad(o,sA).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var s=function(e,n){return e?!0===e?t.createElement(sA,{key:"label-implicit",viewBox:n}):Rf(e)?t.createElement(sA,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===sA?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(sA,{key:"label-implicit",content:e,viewBox:n}):yl(e)?t.createElement(sA,{key:"label-implicit",content:e,viewBox:n}):dl(e)?t.createElement(sA,tA({viewBox:n},e,{key:"label-implicit"})):null:null}(e.label,n||i);return[s].concat(Gj(a))};var lA=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},uA=ct(lA);function fA(e){return fA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fA(e)}var dA=["valueAccessor"],pA=["data","dataKey","clockWise","id","textBreakAll"];function hA(e){return function(e){if(Array.isArray(e))return gA(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 gA(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 gA(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 gA(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 vA(){return vA=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},vA.apply(this,arguments)}function yA(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 mA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yA(Object(n),!0).forEach((function(t){bA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=fA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fA(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wA(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 xA=function(e){return Array.isArray(e.value)?uA(e.value):e.value};function CA(e){var n=e.valueAccessor,r=void 0===n?xA:n,o=wA(e,dA),i=o.data,a=o.dataKey,s=o.clockWise,c=o.id,l=o.textBreakAll,u=wA(o,pA);return i&&i.length?t.createElement(xd,{className:"recharts-label-list"},i.map((function(e,n){var o=vf(a)?r(e,n):cj(e&&e.payload,a),i=vf(c)?{}:{id:"".concat(c,"-").concat(n)};return t.createElement(sA,vA({},ud(e,!0),u,i,{parentViewBox:e.parentViewBox,value:o,textBreakAll:l,viewBox:sA.parseViewBox(vf(s)?e:mA(mA({},e),{},{clockWise:s})),key:"label-".concat(n),index:n}))}))):null}function SA(e){return SA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},SA(e)}function _A(){return _A=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},_A.apply(this,arguments)}function OA(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 kA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OA(Object(n),!0).forEach((function(t){EA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=SA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=SA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==SA(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}CA.displayName="LabelList",CA.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=ad(e.children,CA).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(CA,{key:"labelList-implicit",data:n}):t.isValidElement(e)||yl(e)?t.createElement(CA,{key:"labelList-implicit",data:n,content:e}):dl(e)?t.createElement(CA,vA({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n)].concat(hA(o)):o};var jA=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,l=s*(a?1:-1)+r,u=Math.asin(s/l)/Fj,f=c?o:o+i*u,d=c?o-i*u:o;return{center:Hj(t,n,l,f),circleTangency:Hj(t,n,r,f),lineTangency:Hj(t,n,l*Math.cos(u*Fj),d),theta:u}},AA=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return Df(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=Hj(t,n,o,i),l=Hj(t,n,o,s),u="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(l.x,",").concat(l.y,"\n ");if(r>0){var f=Hj(t,n,r,i),d=Hj(t,n,r,s);u+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},TA={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},MA=function(e){var n=kA(kA({},TA),e),r=n.cx,o=n.cy,i=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,c=n.forceCornerRadius,l=n.cornerIsExternal,u=n.startAngle,f=n.endAngle,d=n.className;if(a<i||u===f)return null;var p,h=Bc("recharts-sector",d),g=a-i,v=Ff(s,g,0,!0);return p=v>0&&Math.abs(u-f)<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,l=e.endAngle,u=Df(l-c),f=jA({cx:t,cy:n,radius:o,angle:c,sign:u,cornerRadius:i,cornerIsExternal:s}),d=f.circleTangency,p=f.lineTangency,h=f.theta,g=jA({cx:t,cy:n,radius:o,angle:l,sign:-u,cornerRadius:i,cornerIsExternal:s}),v=g.circleTangency,y=g.lineTangency,m=g.theta,b=s?Math.abs(c-l):Math.abs(c-l)-h-m;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):AA({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n ");if(r>0){var x=jA({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),C=x.circleTangency,S=x.lineTangency,_=x.theta,O=jA({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=O.circleTangency,E=O.lineTangency,j=O.theta,A=s?Math.abs(c-l):Math.abs(c-l)-_-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(+(u<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(u>0),",").concat(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(v,g/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:u,endAngle:f}):AA({cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f}),t.createElement("path",_A({},ud(n,!0),{className:h,d:p,role:"img"}))};function PA(e){return PA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},PA(e)}function DA(){return DA=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},DA.apply(this,arguments)}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 IA(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){RA(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 RA(e,t,n){return t=function(e){var t=function(e,t){if("object"!=PA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=PA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==PA(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NA={curveBasisClosed:function(e){return new zp(e)},curveBasisOpen:function(e){return new Hp(e)},curveBasis:function(e){return new Fp(e)},curveBumpX:function(e){return new bp(e,!0)},curveBumpY:function(e){return new bp(e,!1)},curveLinearClosed:function(e){return new Vp(e)},curveLinear:hp,curveMonotoneX:function(e){return new Zp(e)},curveMonotoneY:function(e){return new qp(e)},curveNatural:function(e){return new Yp(e)},curveStep:function(e){return new Jp(e,.5)},curveStepAfter:function(e){return new Jp(e,1)},curveStepBefore:function(e){return new Jp(e,0)}},BA=function(e){return e.x===+e.x&&e.y===+e.y},FA=function(e){return e.x},zA=function(e){return e.y},HA=function(e){var t,n=e.type,r=void 0===n?"linear":n,o=e.points,i=void 0===o?[]:o,a=e.baseLine,s=e.layout,c=e.connectNulls,l=void 0!==c&&c,u=function(e,t){if(yl(e))return e;var n="curve".concat(Jd(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?NA[n]||hp:NA["".concat(n).concat("vertical"===t?"Y":"X")]}(r,s),f=l?i.filter((function(e){return BA(e)})):i;if(Array.isArray(a)){var d=l?a.filter((function(e){return BA(e)})):a,p=f.map((function(e,t){return IA(IA({},e),{},{base:d[t]})}));return(t="vertical"===s?mp().y(zA).x1(FA).x0((function(e){return e.base.x})):mp().x(FA).y1(zA).y0((function(e){return e.base.y}))).defined(BA).curve(u),t(p)}return(t="vertical"===s&&If(a)?mp().y(zA).x1(FA).x0(a):If(a)?mp().x(FA).y1(zA).y0(a):yp().x(FA).y(zA)).defined(BA).curve(u),t(f)},VA=function(e){var n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?HA(e):o;return t.createElement("path",DA({},ud(e,!1),Gf(e),{className:Bc("recharts-curve",n),d:a,ref:i}))},KA={exports:{}},$A=Object.getOwnPropertySymbols,UA=Object.prototype.hasOwnProperty,WA=Object.prototype.propertyIsEnumerable;var ZA,qA,GA,YA,XA,JA,QA,eT,tT,nT,rT=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,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))UA.call(n,a)&&(o[a]=n[a]);if($A){r=$A(n);for(var s=0;s<r.length;s++)WA.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o};function oT(){if(qA)return ZA;qA=1;return ZA="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function iT(){return YA?GA:(YA=1,GA=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var aT=kf;KA.exports=function(){if(eT)return QA;eT=1;var e=kf,t=rT,n=oT(),r=iT(),o=function(){if(JA)return XA;JA=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=oT(),n={},r=iT();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,c){if("production"!==process.env.NODE_ENV)for(var l in o)if(r(o,l)){var u;try{if("function"!=typeof o[l]){var f=Error((s||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=o[l](i,l,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var d=c?c():"";e("Failed "+a+" type: "+u.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},XA=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),QA=function(s,c){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",f="<<anonymous>>",d={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:g(a),arrayOf:function(e){return g((function(t,r,o,i,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new h("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<s.length;c++){var l=e(s,c,o,i,a+"["+c+"]",n);if(l instanceof Error)return l}return null}))},element:g((function(e,t,n,r,o){var i=e[t];return s(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,r,o){return m(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,o,i,a,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=t[o],l=b(c);if("object"!==l)return new h("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in c)if(r(c,u)){var f=e(c,u,i,a,s+"."+u,n);if(f instanceof Error)return f}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===w(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return g((function(t,o,i,a,s){for(var c=[],l=0;l<e.length;l++){var u=(0,e[l])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&c.push(u.data.expectedType)}return new h("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,r,o,i,a){var s=t[r],c=b(s);if("object"!==c)return new h("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in e){var u=e[l];if("function"!=typeof u)return y(o,i,a,l,w(u));var f=u(s,l,o,i,a+"."+l,n);if(f)return f}return null}))},exact:function(e){return g((function(o,i,a,s,c){var l=o[i],u=b(l);if("object"!==u)return new h("Invalid "+s+" `"+c+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var f=t({},o[i],e);for(var d in f){var p=e[d];if(r(e,d)&&"function"!=typeof p)return y(a,s,c,d,w(p));if(!p)return new h("Invalid "+s+" `"+c+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=p(l,d,a,s,c+"."+d,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,s,l,u,d,p){if(l=l||f,d=d||s,p!==n){if(c){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+s;!t[v]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==a[s]?o?null===a[s]?new h("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(a,s,l,u,d)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function v(e){return g((function(t,n,r,o,i,a){var s=t[n];return b(s)!==e?new h("Invalid "+o+" `"+i+"` of type `"+w(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||s(e))return!0;var t=function(e){var t=e&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!m(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},QA}()(aT.isElement,!0)}else KA.exports=function(){if(nT)return tT;nT=1;var e=oT();function t(){}function n(){}return n.resetWarningCache=t,tT=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var sT=ct(KA.exports),cT=Object.getOwnPropertyNames,lT=Object.getOwnPropertySymbols,uT=Object.prototype.hasOwnProperty;function fT(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function dT(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);var s=e(t,n,r);return o.delete(t),o.delete(n),s}}function pT(e){return cT(e).concat(lT(e))}var hT=Object.hasOwn||function(e,t){return uT.call(e,t)};function gT(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var vT="_owner",yT=Object.getOwnPropertyDescriptor,mT=Object.keys;function bT(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function wT(e,t){return gT(e.getTime(),t.getTime())}function xT(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.entries(),s=0;(r=a.next())&&!r.done;){for(var c=t.entries(),l=!1,u=0;(o=c.next())&&!o.done;){var f=r.value,d=f[0],p=f[1],h=o.value,g=h[0],v=h[1];l||i[u]||!(l=n.equals(d,g,s,u,e,t,n)&&n.equals(p,v,d,g,e,t,n))||(i[u]=!0),u++}if(!l)return!1;s++}return!0}function CT(e,t,n){var r,o=mT(e),i=o.length;if(mT(t).length!==i)return!1;for(;i-- >0;){if((r=o[i])===vT&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!hT(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1}return!0}function ST(e,t,n){var r,o,i,a=pT(e),s=a.length;if(pT(t).length!==s)return!1;for(;s-- >0;){if((r=a[s])===vT&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!hT(t,r))return!1;if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;if(o=yT(e,r),i=yT(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function _T(e,t){return gT(e.valueOf(),t.valueOf())}function OT(e,t){return e.source===t.source&&e.flags===t.flags}function kT(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.values();(r=a.next())&&!r.done;){for(var s=t.values(),c=!1,l=0;(o=s.next())&&!o.done;)c||i[l]||!(c=n.equals(r.value,o.value,r.value,o.value,e,t,n))||(i[l]=!0),l++;if(!c)return!1}return!0}function ET(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var jT="[object Arguments]",AT="[object Boolean]",TT="[object Date]",MT="[object Map]",PT="[object Number]",DT="[object Object]",LT="[object RegExp]",IT="[object Set]",RT="[object String]",NT=Array.isArray,BT="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,FT=Object.assign,zT=Object.prototype.toString.call.bind(Object.prototype.toString);var HT=VT();function VT(e){void 0===e&&(e={});var t=e.circular,n=void 0!==t&&t,r=e.createInternalComparator,o=e.createState,i=e.strict,a=void 0!==i&&i,s=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?ST:bT,areDatesEqual:wT,areMapsEqual:r?fT(xT,ST):xT,areObjectsEqual:r?ST:CT,arePrimitiveWrappersEqual:_T,areRegExpsEqual:OT,areSetsEqual:r?fT(kT,ST):kT,areTypedArraysEqual:r?ST:ET};if(n&&(o=FT({},o,n(o))),t){var i=dT(o.areArraysEqual),a=dT(o.areMapsEqual),s=dT(o.areObjectsEqual),c=dT(o.areSetsEqual);o=FT({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:c})}return o}(e),c=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,c=e.areTypedArraysEqual;return function(e,l,u){if(e===l)return!0;if(null==e||null==l||"object"!=typeof e||"object"!=typeof l)return e!=e&&l!=l;var f=e.constructor;if(f!==l.constructor)return!1;if(f===Object)return o(e,l,u);if(NT(e))return t(e,l,u);if(null!=BT&&BT(e))return c(e,l,u);if(f===Date)return n(e,l,u);if(f===RegExp)return a(e,l,u);if(f===Map)return r(e,l,u);if(f===Set)return s(e,l,u);var d=zT(e);return d===TT?n(e,l,u):d===LT?a(e,l,u):d===MT?r(e,l,u):d===IT?s(e,l,u):d===DT?"function"!=typeof e.then&&"function"!=typeof l.then&&o(e,l,u):d===jT?o(e,l,u):(d===AT||d===PT||d===RT)&&i(e,l,u)}}(s),l=r?r(c):function(e){return function(t,n,r,o,i,a,s){return e(t,n,s)}}(c);return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(e,a){var s=r(),c=s.cache,l=void 0===c?t?new WeakMap:void 0:c,u=s.meta;return n(e,a,{cache:l,equals:o,meta:u,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return n(e,t,a)}}({circular:n,comparator:c,createState:o,equals:l,strict:a})}function KT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)}))}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 UT(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return WT(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 WT(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WT(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 ZT(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=UT(r),i=o[0],a=o.slice(1);return"number"==typeof i?void KT(n.bind(null,a),i):(n(i),void KT(n.bind(null,a)))}"object"===$T(r)&&e(r),"function"==typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function qT(e){return qT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qT(e)}function 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){XT(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 XT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==qT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}VT({strict:!0}),VT({circular:!0}),VT({circular:!0,strict:!0}),VT({createInternalComparator:function(){return gT}}),VT({strict:!0,createInternalComparator:function(){return gT}}),VT({circular:!0,createInternalComparator:function(){return gT}}),VT({circular:!0,createInternalComparator:function(){return gT},strict:!0});var JT=function(e){return e},QT=function(e,t){return Object.keys(t).reduce((function(n,r){return YT(YT({},n),{},XT({},r,e(r,t[r])))}),{})},eM=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")},tM="production"!==process.env.NODE_ENV,nM=function(e,t,n,r,o,i,a,s){if(tM&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;console.warn(t.replace(/%s/g,(function(){return c[l++]})))}};function rM(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||iM(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 oM(e){return function(e){if(Array.isArray(e))return aM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iM(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 iM(e,t){if(e){if("string"==typeof e)return aM(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)?aM(e,t):void 0}}function aM(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 sM=1e-4,cM=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},lM=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},uM=function(e,t){return function(n){var r=cM(e,t);return lM(r,n)}},fM=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,o=0,i=1,a=1;break;case"ease":r=.25,o=.1,i=.25,a=1;break;case"ease-in":r=.42,o=0,i=1,a=1;break;case"ease-out":r=.42,o=0,i=.58,a=1;break;case"ease-in-out":r=0,o=0,i=.58,a=1;break;default:var s=t[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var c=s[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),l=rM(c,4);r=l[0],o=l[1],i=l[2],a=l[3]}else nM(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",t)}nM([r,i,o,a].every((function(e){return"number"==typeof e&&e>=0&&e<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var u,f,d=uM(r,i),p=uM(o,a),h=(u=r,f=i,function(e){var t=cM(u,f),n=[].concat(oM(t.map((function(e,t){return e*t})).slice(1)),[0]);return lM(n,e)}),g=function(e){for(var t,n=e>1?1:e,r=n,o=0;o<8;++o){var i=d(r)-n,a=h(r);if(Math.abs(i-n)<sM||a<sM)return p(r);r=(t=r-i/a)>1?1:t<0?0:t}return p(r)};return g.isStepper=!1,g},dM=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return fM(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,s=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,s=r*a/1e3+e;return Math.abs(s-t)<sM&&Math.abs(i)<sM?[t,0]:[s,i]};return s.isStepper=!0,s.dt=a,s}();default:if("cubic-bezier"===r.split("(")[0])return fM(r);nM(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",t)}return"function"==typeof r?r:(nM(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};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 hM(e){return function(e){if(Array.isArray(e))return wM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bM(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 gM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gM(Object(n),!0).forEach((function(t){yM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yM(e,t,n){return(t=function(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)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mM(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||bM(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 bM(e,t){if(e){if("string"==typeof e)return wM(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)?wM(e,t):void 0}}function wM(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 xM=function(e,t,n){return e+(t-e)*n},CM=function(e){return e.from!==e.to},SM=function e(t,n,r){var o=QT((function(e,n){if(CM(n)){var r=mM(t(n.from,n.to,n.velocity),2),o=r[0],i=r[1];return vM(vM({},n),{},{from:o,velocity:i})}return n}),n);return r<1?QT((function(e,t){return CM(t)?vM(vM({},t),{},{velocity:xM(t.velocity,o[e].velocity,r),from:xM(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)},_M=function(e,t,n,r,o){var i,a,s,c,l=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),u=l.reduce((function(n,r){return vM(vM({},n),{},yM({},r,[e[r],t[r]]))}),{}),f=l.reduce((function(n,r){return vM(vM({},n),{},yM({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),d=-1,p=function(){return null};return p=n.isStepper?function(r){s||(s=r);var i=(r-s)/n.dt;f=SM(n,f,i),o(vM(vM(vM({},e),t),QT((function(e,t){return t.from}),f))),s=r,Object.values(f).filter(CM).length&&(d=requestAnimationFrame(p))}:function(i){c||(c=i);var a=(i-c)/r,s=QT((function(e,t){return xM.apply(void 0,hM(t).concat([n(a)]))}),u);if(o(vM(vM(vM({},e),t),s)),a<1)d=requestAnimationFrame(p);else{var l=QT((function(e,t){return xM.apply(void 0,hM(t).concat([n(1)]))}),u);o(vM(vM(vM({},e),t),l))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(d)}}};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)}var kM=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function EM(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 jM(e){return function(e){if(Array.isArray(e))return AM(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 AM(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 AM(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 AM(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 TM(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 MM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TM(Object(n),!0).forEach((function(t){PM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PM(e,t,n){return(t=LM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LM(r.key),r)}}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)}function IM(e,t){return IM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IM(e,t)}function RM(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=FM(e);if(t){var o=FM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return NM(this,n)}}function NM(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 BM(e)}function BM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FM(e){return FM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},FM(e)}var zM=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&&IM(e,t)}(a,t.PureComponent);var n,r,o,i=RM(a);function a(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=(n=i.call(this,e,t)).props,o=r.isActive,s=r.attributeName,c=r.from,l=r.to,u=r.steps,f=r.children,d=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(BM(n)),n.changeStyle=n.changeStyle.bind(BM(n)),!o||d<=0)return n.state={style:{}},"function"==typeof f&&(n.state={style:l}),NM(n);if(u&&u.length)n.state={style:u[0].style};else if(c){if("function"==typeof f)return n.state={style:c},NM(n);n.state={style:s?PM({},s,c):c}}else n.state={style:{}};return n}return n=a,r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,i=t.shouldReAnimate,a=t.to,s=t.from,c=this.state.style;if(r)if(n){if(!(HT(e.to,a)&&e.canBegin&&e.isActive)){var l=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=l||i?s:e.to;if(this.state&&c){var f={style:o?PM({},o,u):u};(o&&c[o]!==u||!o&&c!==u)&&this.setState(f)}this.runAnimation(MM(MM({},this.props),{},{from:u,begin:0}))}}else{var d={style:o?PM({},o,a):a};this.state&&c&&(o&&c[o]!==a||!o&&c!==a)&&this.setState(d)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,a=e.begin,s=e.onAnimationEnd,c=e.onAnimationStart,l=_M(n,r,dM(i),o,this.changeStyle);this.manager.start([c,a,function(){t.stopJSAnimation=l()},o,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,i=n[0],a=i.style,s=i.duration,c=void 0===s?0:s;return this.manager.start([o].concat(jM(n.reduce((function(e,r,o){if(0===o)return e;var i=r.duration,a=r.easing,s=void 0===a?"ease":a,c=r.style,l=r.properties,u=r.onAnimationEnd,f=o>0?n[o-1]:r,d=l||Object.keys(c);if("function"==typeof s||"spring"===s)return[].concat(jM(e),[t.runJSAnimation.bind(t,{from:f.style,to:c,duration:i,easing:s}),i]);var p=eM(d,i,s),h=MM(MM(MM({},f.style),c),{},{transition:p});return[].concat(jM(e),[h,i,u]).filter(JT)}),[a,Math.max(c,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=ZT());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,c=e.steps,l=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(c.length>1)this.runStepAnimation(e);else{var f=r?PM({},r,o):o,d=eM(Object.keys(f),n,i);u.start([a,t,MM(MM({},f),{},{transition:d}),n,s])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,n=e.children;e.begin;var r=e.duration;e.attributeName,e.easing;var o=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=EM(e,kM),a=t.Children.count(n),s=this.state.style;if("function"==typeof n)return n(s);if(!o||0===a||r<=0)return n;var c=function(e){var n=e.props,r=n.style,o=void 0===r?{}:r,a=n.className;return t.cloneElement(e,MM(MM({},i),{},{style:MM(MM({},o),s),className:a}))};return 1===a?c(t.Children.only(n)):t.createElement("div",null,t.Children.map(n,(function(e){return c(e)})))}}],r&&DM(n.prototype,r),o&&DM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function HM(e){return HM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HM(e)}function VM(){return VM=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},VM.apply(this,arguments)}function KM(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $M(e,t)}(e,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 $M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UM(Object(n),!0).forEach((function(t){ZM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZM(e,t,n){return t=function(e){var t=function(e,t){if("object"!=HM(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=HM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==HM(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}zM.displayName="Animate",zM.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},zM.propTypes={from:sT.oneOfType([sT.object,sT.string]),to:sT.oneOfType([sT.object,sT.string]),attributeName:sT.string,duration:sT.number,begin:sT.number,easing:sT.oneOfType([sT.string,sT.func]),steps:sT.arrayOf(sT.shape({duration:sT.number.isRequired,style:sT.object.isRequired,easing:sT.oneOfType([sT.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),sT.func]),properties:sT.arrayOf("string"),onAnimationEnd:sT.func})),children:sT.oneOfType([sT.node,sT.func]),isActive:sT.bool,canBegin:sT.bool,onAnimationEnd:sT.func,shouldReAnimate:sT.bool,onAnimationStart:sT.func,onAnimationReStart:sT.func},sT.object,sT.object,sT.object,sT.element,sT.object,sT.object,sT.object,sT.oneOfType([sT.array,sT.element]),sT.any;var qM=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,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+c*u[0],",").concat(t)),i+="L ".concat(e+n-c*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+s*u[1])),i+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,",\n ").concat(e+n-c*u[2],",").concat(t+r)),i+="L ".concat(e+c*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-s*u[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+c*d,",").concat(t,"\n L ").concat(e+n-c*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n,",").concat(t+s*d,"\n L ").concat(e+n,",").concat(t+r-s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e+n-c*d,",").concat(t+r,"\n L ").concat(e+c*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(l,",").concat(e,",").concat(t+r-s*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},GM=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),l=Math.max(o,o+a),u=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=l&&r>=u&&r<=f}return!1},YM={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},XM=function(e){var n=WM(WM({},YM),e),r=t.useRef(),o=KM(t.useState(-1),2),i=o[0],a=o[1];t.useEffect((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var s=n.x,c=n.y,l=n.width,u=n.height,f=n.radius,d=n.className,p=n.animationEasing,h=n.animationDuration,g=n.animationBegin,v=n.isAnimationActive,y=n.isUpdateAnimationActive;if(s!==+s||c!==+c||l!==+l||u!==+u||0===l||0===u)return null;var m=Bc("recharts-rectangle",d);return y?t.createElement(zM,{canBegin:i>0,from:{width:l,height:u,x:s,y:c},to:{width:l,height:u,x:s,y:c},duration:h,animationEasing:p,isActive:y},(function(e){var o=e.width,a=e.height,s=e.x,c=e.y;return t.createElement(zM,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,isActive:v,easing:p},t.createElement("path",VM({},ud(n,!0),{className:m,d:qM(s,c,o,a,f),ref:r})))})):t.createElement("path",VM({},ud(n,!0),{className:m,d:qM(s,c,l,u,f)}))},JM=["points","className","baseLinePoints","connectNulls"];function QM(){return QM=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},QM.apply(this,arguments)}function eP(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 tP(e){return function(e){if(Array.isArray(e))return nP(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 nP(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 nP(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 nP(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 rP=function(e){return e&&e.x===+e.x&&e.y===+e.y},oP=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){rP(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),rP(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(tP(e),tP(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},iP=function(e){var n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=eP(e,JM);if(!n||!n.length)return null;var s=Bc("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,l=function(e,t,n){var r=oP(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(oP(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",QM({},ud(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),c?t.createElement("path",QM({},ud(a,!0),{fill:"none",d:oP(n,i)})):null,c?t.createElement("path",QM({},ud(a,!0),{fill:"none",d:oP(o,i)})):null)}var u=oP(n,i);return t.createElement("path",QM({},ud(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",className:s,d:u}))};function aP(){return aP=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},aP.apply(this,arguments)}var sP=function(e){var n=e.cx,r=e.cy,o=e.r,i=Bc("recharts-dot",e.className);return n===+n&&r===+r&&o===+o?t.createElement("circle",aP({},ud(e,!1),Gf(e),{className:i,cx:n,cy:r,r:o})):null};function cP(e){return cP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cP(e)}var lP=["x","y","top","left","width","height","className"];function uP(){return uP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uP.apply(this,arguments)}function fP(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 dP(e,t,n){return t=function(e){var t=function(e,t){if("object"!=cP(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cP(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var hP=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},gP=function(e){var n=e.x,r=void 0===n?0:n,o=e.y,i=void 0===o?0:o,a=e.top,s=void 0===a?0:a,c=e.left,l=void 0===c?0:c,u=e.width,f=void 0===u?0:u,d=e.height,p=void 0===d?0:d,h=e.className,g=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fP(Object(n),!0).forEach((function(t){dP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:r,y:i,top:s,left:l,width:f,height:p},pP(e,lP));return If(r)&&If(i)&&If(f)&&If(p)&&If(s)&&If(l)?t.createElement("path",uP({},ud(g,!0),{className:Bc("recharts-cross",h),d:hP(r,i,f,p,s,l)})):null},vP=yk,yP=mk,mP=Wy;var bP=function(e,t){return e&&e.length?vP(e,mP(t),yP):void 0},wP=ct(bP),xP=yk,CP=Wy,SP=_k;var _P=function(e,t){return e&&e.length?xP(e,CP(t),SP):void 0},OP=ct(_P),kP=["cx","cy","angle","ticks","axisLine"],EP=["ticks","tick","angle","tickFormatter","stroke"];function jP(e){return jP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jP(e)}function AP(){return AP=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},AP.apply(this,arguments)}function TP(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 MP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TP(Object(n),!0).forEach((function(t){BP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DP(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,FP(r.key),r)}}function LP(e,t,n){return t=RP(t),function(e,t){if(t&&("object"===jP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,IP()?Reflect.construct(t,n||[],RP(e).constructor):t.apply(e,n))}function IP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(IP=function(){return!!e})()}function RP(e){return RP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RP(e)}function NP(e,t){return NP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NP(e,t)}function BP(e,t,n){return(t=FP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FP(e){var t=function(e,t){if("object"!=jP(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=jP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jP(t)?t:String(t)}var zP=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),LP(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NP(e,t)}(n,t.PureComponent),r=n,o=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return Hj(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=wP(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:OP(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=PP(e,kP),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=Hj(n,r,c[0],o),u=Hj(n,r,c[1],o),f=MP(MP(MP({},ud(s,!1)),{},{fill:"none"},ud(a,!1)),{},{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return t.createElement("line",AP({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,r=this.props,o=r.ticks,i=r.tick,a=r.angle,s=r.tickFormatter,c=r.stroke,l=PP(r,EP),u=this.getTickTextAnchor(),f=ud(l,!1),d=ud(i,!1),p=o.map((function(r,o){var l=e.getTickValueCoord(r),p=MP(MP(MP(MP({textAnchor:u,transform:"rotate(".concat(90-a,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:c},d),{},{index:o},l),{},{payload:r});return t.createElement(xd,AP({className:Bc("recharts-polar-radius-axis-tick",Wj(i)),key:"tick-".concat(r.coordinate)},Yf(e.props,r,o)),n.renderTickItem(i,p,s?s(r.value,o):r.value))}));return t.createElement(xd,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(xd,{className:Bc("recharts-polar-radius-axis",this.props.className)},r&&this.renderAxisLine(),o&&this.renderTicks(),sA.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):yl(e)?e(n):t.createElement(Dx,AP({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],o&&DP(r.prototype,o),i&&DP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function HP(e){return HP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HP(e)}function VP(){return VP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VP.apply(this,arguments)}function KP(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 $P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KP(Object(n),!0).forEach((function(t){YP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UP(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,XP(r.key),r)}}function WP(e,t,n){return t=qP(t),function(e,t){if(t&&("object"===HP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ZP()?Reflect.construct(t,n||[],qP(e).constructor):t.apply(e,n))}function ZP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ZP=function(){return!!e})()}function qP(e){return qP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qP(e)}function GP(e,t){return GP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GP(e,t)}function YP(e,t,n){return(t=XP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XP(e){var t=function(e,t){if("object"!=HP(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=HP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==HP(t)?t:String(t)}BP(zP,"displayName","PolarRadiusAxis"),BP(zP,"axisType","radiusAxis"),BP(zP,"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 JP=Math.PI/180,QP=1e-5,eD=function(e){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),WP(this,n,arguments)}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GP(e,t)}(n,t.PureComponent),r=n,o=[{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=Hj(n,r,o,e.coordinate),c=Hj(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*JP);return n>QP?"outer"===t?"start":"end":n<-QP?"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=$P($P({},ud(this.props,!1)),{},{fill:"none"},ud(i,!1));if("circle"===a)return t.createElement(sP,VP({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return Hj(n,r,o,e.coordinate)}));return t.createElement(iP,VP({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,r=this.props,o=r.ticks,i=r.tick,a=r.tickLine,s=r.tickFormatter,c=r.stroke,l=ud(this.props,!1),u=ud(i,!1),f=$P($P({},l),{},{fill:"none"},ud(a,!1)),d=o.map((function(r,o){var d=e.getTickLineCoord(r),p=$P($P($P({textAnchor:e.getTickTextAnchor(r)},l),{},{stroke:"none",fill:c},u),{},{index:o,payload:r,x:d.x2,y:d.y2});return t.createElement(xd,VP({className:Bc("recharts-polar-angle-axis-tick",Wj(i)),key:"tick-".concat(r.coordinate)},Yf(e.props,r,o)),a&&t.createElement("line",VP({className:"recharts-polar-angle-axis-tick-line"},f,d)),i&&n.renderTickItem(i,p,s?s(r.value,o):r.value))}));return t.createElement(xd,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,o=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(xd,{className:Bc("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):yl(e)?e(n):t.createElement(Dx,VP({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],o&&UP(r.prototype,o),i&&UP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();YP(eD,"displayName","PolarAngleAxis"),YP(eD,"axisType","angleAxis"),YP(eD,"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 tD=Jg(Object.getPrototypeOf,Object),nD=tl,rD=tD,oD=nl,iD=Function.prototype,aD=Object.prototype,sD=iD.toString,cD=aD.hasOwnProperty,lD=sD.call(Object);var uD=ct((function(e){if(!oD(e)||"[object Object]"!=nD(e))return!1;var t=rD(e);if(null===t)return!0;var n=cD.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&sD.call(n)==lD})),fD=tl,dD=nl;var pD=ct((function(e){return!0===e||!1===e||dD(e)&&"[object Boolean]"==fD(e)}));function hD(e){return hD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hD(e)}function gD(){return gD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gD.apply(this,arguments)}function vD(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yD(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 yD(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 yD(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 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 bD(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){wD(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 wD(e,t,n){return t=function(e){var t=function(e,t){if("object"!=hD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hD(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xD,CD=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")},SD={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_D=function(e){var n=bD(bD({},SD),e),r=t.useRef(),o=vD(t.useState(-1),2),i=o[0],a=o[1];t.useEffect((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var s=n.x,c=n.y,l=n.upperWidth,u=n.lowerWidth,f=n.height,d=n.className,p=n.animationEasing,h=n.animationDuration,g=n.animationBegin,v=n.isUpdateAnimationActive;if(s!==+s||c!==+c||l!==+l||u!==+u||f!==+f||0===l&&0===u||0===f)return null;var y=Bc("recharts-trapezoid",d);return v?t.createElement(zM,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:f,x:s,y:c},to:{upperWidth:l,lowerWidth:u,height:f,x:s,y:c},duration:h,animationEasing:p,isActive:v},(function(e){var o=e.upperWidth,a=e.lowerWidth,s=e.height,c=e.x,l=e.y;return t.createElement(zM,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,easing:p},t.createElement("path",gD({},ud(n,!0),{className:y,d:CD(c,l,o,a,s),ref:r})))})):t.createElement("g",null,t.createElement("path",gD({},ud(n,!0),{className:y,d:CD(s,c,l,u,f)})))},OD=["option","shapeType","propTransformer","activeClassName","isActive"];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 ED(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 jD(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 AD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jD(Object(n),!0).forEach((function(t){TD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TD(e,t,n){return t=function(e){var t=function(e,t){if("object"!=kD(e)||!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)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MD(e,t){return AD(AD({},t),e)}function PD(e){var n=e.shapeType,r=e.elementProps;switch(n){case"rectangle":return t.createElement(XM,r);case"trapezoid":return t.createElement(_D,r);case"sector":return t.createElement(MA,r);case"symbols":if(function(e,t){return"symbols"===e}(n))return t.createElement(dh,r);break;default:return null}}function DD(e){var n,r=e.option,o=e.shapeType,i=e.propTransformer,a=void 0===i?MD:i,s=e.activeClassName,c=void 0===s?"recharts-active-shape":s,l=e.isActive,u=ED(e,OD);if(t.isValidElement(r))n=t.cloneElement(r,AD(AD({},u),function(e){return t.isValidElement(e)?e.props:e}(r)));else if(yl(r))n=r(u);else if(uD(r)&&!pD(r)){var f=a(r,u);n=t.createElement(PD,{shapeType:o,elementProps:f})}else{var d=u;n=t.createElement(PD,{shapeType:o,elementProps:d})}return l?t.createElement(xd,{className:c},n):n}function LD(e,t){return null!=t&&"trapezoids"in e.props}function ID(e,t){return null!=t&&"sectors"in e.props}function RD(e,t){return null!=t&&"points"in e.props}function ND(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&i}function BD(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function FD(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function zD(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=function(e,t){var n;return LD(e,t)?n="trapezoids":ID(e,t)?n="sectors":RD(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return LD(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:ID(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:RD(e,t)?t.payload:{}}(n,t),a=r.filter((function(e,r){var a=Fk(i,e),s=n.props[o].filter((function(e){var r=function(e,t){var n;return LD(e,t)?n=ND:ID(e,t)?n=BD:RD(e,t)&&(n=FD),n}(n,t);return r(e,t)})),c=n.props[o].indexOf(s[s.length-1]);return a&&r===c}));return r.indexOf(a[a.length-1])}function HD(e){return HD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HD(e)}function VD(){return VD=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},VD.apply(this,arguments)}function KD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KD(Object(n),!0).forEach((function(t){XD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JD(r.key),r)}}function WD(e,t,n){return t=qD(t),function(e,t){if(t&&("object"===HD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return GD(e)}(e,ZD()?Reflect.construct(t,n||[],qD(e).constructor):t.apply(e,n))}function ZD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ZD=function(){return!!e})()}function qD(e){return qD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qD(e)}function GD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YD(e,t){return YD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},YD(e,t)}function XD(e,t,n){return(t=JD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JD(e){var t=function(e,t){if("object"!=HD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=HD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==HD(t)?t:String(t)}var QD=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),XD(GD(t=WD(this,n,[e])),"pieRef",null),XD(GD(t),"sectorRefs",[]),XD(GD(t),"id",Bf("recharts-pie-")),XD(GD(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),yl(e)&&e()})),XD(GD(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),yl(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YD(e,t)}(n,t.PureComponent),r=n,o=[{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 r=this.props,o=r.label,i=r.labelLine,a=r.dataKey,s=r.valueKey,c=ud(this.props,!1),l=ud(o,!1),u=ud(i,!1),f=o&&o.offsetRadius||20,d=e.map((function(e,r){var d=(e.startAngle+e.endAngle)/2,p=Hj(e.cx,e.cy,e.outerRadius+f,d),h=$D($D($D($D({},c),e),{},{stroke:"none"},l),{},{index:r,textAnchor:n.getTextAnchor(p.x,e.cx)},p),g=$D($D($D($D({},c),e),{},{fill:"none",stroke:e.fill},u),{},{index:r,points:[Hj(e.cx,e.cy,e.outerRadius,d),p],key:"line"}),v=a;return vf(a)&&vf(s)?v="value":vf(a)&&(v=s),t.createElement(xd,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(r)},i&&n.renderLabelLineItem(i,g),n.renderLabelItem(o,h,cj(e,v)))}));return t.createElement(xd,{className:"recharts-pie-labels"},d)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,o=r.activeShape,i=r.blendStroke,a=r.inactiveShape;return e.map((function(r,s){if(0===(null==r?void 0:r.startAngle)&&0===(null==r?void 0:r.endAngle)&&1!==e.length)return null;var c=n.isActiveIndex(s),l=a&&n.hasActiveIndex()?a:null,u=c?o:l,f=$D($D({},r),{},{stroke:i?r.fill:r.stroke,tabIndex:-1});return t.createElement(xd,VD({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},Yf(n.props,r,s),{key:"sector-".concat(null==r?void 0:r.startAngle,"-").concat(null==r?void 0:r.endAngle,"-").concat(r.midAngle,"-").concat(s)}),t.createElement(DD,VD({option:u,isActive:c,shapeType:"sector"},f)))}))}},{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,l=this.state,u=l.prevSectors,f=l.prevIsAnimationActive;return t.createElement(zM,{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=u&&u[t],r=t>0?gf(e,"paddingAngle",0):0;if(n){var s=Hf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=$D($D({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var l=e.endAngle,f=e.startAngle,d=Hf(0,l-f)(o),p=$D($D({},e),{},{startAngle:a+r,endAngle:a+d+r});i.push(p),a=p.endAngle}})),t.createElement(xd,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&&Fk(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,l=n.innerRadius,u=n.outerRadius,f=n.isAnimationActive,d=this.state.isAnimationFinished;if(r||!o||!o.length||!If(s)||!If(c)||!If(l)||!If(u))return null;var p=Bc("recharts-pie",i);return t.createElement(xd,{tabIndex:this.props.rootTabIndex,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),sA.renderCallByParent(this.props,null,!1),(!f||d)&&CA.renderCallByParent(this.props,o,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,n){if(t.isValidElement(e))return t.cloneElement(e,n);if(yl(e))return e(n);var r=Bc("recharts-pie-label-line","boolean"!=typeof e?e.className:"");return t.createElement(VA,VD({},n,{type:"linear",className:r}))}},{key:"renderLabelItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);var o=r;if(yl(e)&&(o=e(n),t.isValidElement(o)))return o;var i=Bc("recharts-pie-label-text","boolean"==typeof e||yl(e)?"":e.className);return t.createElement(Dx,VD({},n,{alignmentBaseline:"middle",className:i}),o)}}],o&&UD(r.prototype,o),i&&UD(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();xD=QD,XD(QD,"displayName","Pie"),XD(QD,"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:!aw.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),XD(QD,"parseDeltaAngle",(function(e,t){return Df(t-e)*Math.min(Math.abs(t-e),360)})),XD(QD,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=ud(e.props,!1),i=ad(r,Yw);return n&&n.length?n.map((function(e,t){return $D($D($D({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return $D($D({},o),e.props)})):[]})),XD(QD,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=Vj(o,i);return{cx:r+Ff(e.props.cx,o,o/2),cy:n+Ff(e.props.cy,i,i/2),innerRadius:Ff(e.props.innerRadius,a,0),outerRadius:Ff(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),XD(QD,"getComposedData",(function(e){var t=e.item,n=e.offset,r=xD.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,l=o.dataKey,u=o.nameKey,f=o.valueKey,d=o.tooltipType,p=Math.abs(t.props.minAngle),h=xD.parseCoordinateOfPie(t,n),g=xD.parseDeltaAngle(a,s),v=Math.abs(g),y=l;vf(l)&&vf(f)?(Sd(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y="value"):vf(l)&&(Sd(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y=f);var m,b,w=r.filter((function(e){return 0!==cj(e,y,0)})).length,x=v-w*p-(v>=360?w:w-1)*c,C=r.reduce((function(e,t){var n=cj(t,y,0);return e+(If(n)?n:0)}),0);C>0&&(m=r.map((function(e,t){var n,r=cj(e,y,0),o=cj(e,u,t),s=(If(r)?r:0)/C,l=(n=t?b.endAngle+Df(g)*c*(0!==r?1:0):a)+Df(g)*((0!==r?p:0)+s*x),f=(n+l)/2,v=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:y,type:d}],w=Hj(h.cx,h.cy,v,f);return b=$D($D($D({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:v,tooltipPosition:w},e),h),{},{value:cj(e,y),startAngle:n,endAngle:l,payload:e,paddingAngle:Df(g)*c})})));return $D($D({},h),{},{sectors:m,data:r})}));var eL=Math.ceil,tL=Math.max;var nL=function(e,t,n,r){for(var o=-1,i=tL(eL((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},rL=Pw,oL=1/0;var iL=function(e){return e?(e=rL(e))===oL||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},aL=nL,sL=jb,cL=iL;var lL=ct(function(e){return function(t,n,r){return r&&"number"!=typeof r&&sL(t,n,r)&&(n=r=void 0),t=cL(t),void 0===n?(n=t,t=0):n=cL(n),r=void 0===r?t<n?1:-1:cL(r),aL(t,n,r,e)}}());function uL(e){return uL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uL(e)}function fL(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 dL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fL(Object(n),!0).forEach((function(t){pL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pL(e,t,n){return t=function(e){var t=function(e,t){if("object"!=uL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hL=["Webkit","Moz","O","ms"];function gL(e){return gL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gL(e)}function vL(){return vL=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},vL.apply(this,arguments)}function yL(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 mL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yL(Object(n),!0).forEach((function(t){OL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bL(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,kL(r.key),r)}}function wL(e,t,n){return t=CL(t),function(e,t){if(t&&("object"===gL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return SL(e)}(e,xL()?Reflect.construct(t,n||[],CL(e).constructor):t.apply(e,n))}function xL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xL=function(){return!!e})()}function CL(e){return CL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CL(e)}function SL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _L(e,t){return _L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_L(e,t)}function OL(e,t,n){return(t=kL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kL(e){var t=function(e,t){if("object"!=gL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gL(t)?t:String(t)}var EL=function(e){return e.changedTouches&&!!e.changedTouches.length},jL=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),OL(SL(t=wL(this,n,[e])),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),OL(SL(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),OL(SL(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})})),t.detachDragEndListener()})),OL(SL(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),OL(SL(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),OL(SL(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),OL(SL(t),"handleSlideDragStart",(function(e){var n=EL(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(SL(t),"startX"),endX:t.handleTravellerDragStart.bind(SL(t),"endX")},t.state={},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_L(e,t)}(n,t.PureComponent),r=n,o=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,s=i.data.length-1,c=Math.min(t,r),l=Math.max(t,r),u=n.getIndexInRange(o,c),f=n.getIndexInRange(o,l);return{startIndex:u-u%a,endIndex:f===s?s:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=cj(n[e],o,e);return yl(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,l=i.startIndex,u=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+s-c-o,a+s-c-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===l&&p.endIndex===u||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=EL(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=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[r],s=this.props,c=s.x,l=s.width,u=s.travellerWidth,f=s.onChange,d=s.gap,p=s.data,h={startX:this.state.startX,endX:this.state.endX},g=e.pageX-n;g>0?g=Math.min(g,c+l-u-a):g<0&&(g=Math.max(g,c-a)),h[r]=a+g;var v=this.getIndex(h),y=v.startIndex,m=v.endIndex;this.setState(OL(OL({},r,a+g),"brushMoveStartX",e.pageX),(function(){var e;f&&(e=p.length-1,("startX"===r&&(o>i?y%d==0:m%d==0)||o<i&&m===e||"endX"===r&&(o>i?m%d==0:y%d==0)||o>i&&m===e)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,i=r.startX,a=r.endX,s=this.state[t],c=o.indexOf(s);if(-1!==c){var l=c+e;if(!(-1===l||l>=o.length)){var u=o[l];"startX"===t&&u>=a||"endX"===t&&u<=i||this.setState(OL({},t,u),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{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,l=t.Children.only(s);return l?t.cloneElement(l,{x:n,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,r){var o=this,i=this.props,a=i.y,s=i.travellerWidth,c=i.height,l=i.traveller,u=i.ariaLabel,f=i.data,d=i.startIndex,p=i.endIndex,h=Math.max(e,this.props.x),g=mL(mL({},ud(this.props,!1)),{},{x:h,y:a,width:s,height:c}),v=u||"Min value: ".concat(f[d].name,", Max value: ").concat(f[p].name);return t.createElement(xd,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,r))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(l,g))}},{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,l=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:l,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,l=c.startX,u=c.endX,f={pointerEvents:"none",fill:s};return t.createElement(xd,{className:"recharts-brush-texts"},t.createElement(Dx,vL({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(Dx,vL({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+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,l=e.alwaysShowText,u=this.state,f=u.startX,d=u.endX,p=u.isTextActive,h=u.isSlideMoving,g=u.isTravellerMoving,v=u.isTravellerFocused;if(!n||!n.length||!If(i)||!If(a)||!If(s)||!If(c)||s<=0||c<=0)return null;var y=Bc("recharts-brush",r),m=1===t.Children.count(o),b=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=hL.reduce((function(e,r){return dL(dL({},e),{},pL({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(xd,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(f,d),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(d,"endX"),(p||h||g||v||l)&&this.renderText())}}],i=[{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,r){return t.isValidElement(e)?t.cloneElement(e,r):yl(e)?e(r):n.renderDefaultTraveller(r)}},{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 mL({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=cC().domain(lL(0,s)).range([o,o+i-a]),l=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(r),scale:c,scaleValues:l}}({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 l=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:l}}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}}],o&&bL(r.prototype,o),i&&bL(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();OL(jL,"displayName","Brush"),OL(jL,"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 AL=$m;var TL=function(e,t){var n;return AL(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},ML=Vh,PL=Wy,DL=TL,LL=Fc,IL=jb;var RL=function(e,t,n){var r=LL(e)?ML:DL;return n&&IL(e,t,n)&&(t=void 0),r(e,PL(t))},NL=ct(RL),BL=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},FL=hb;var zL=function(e,t,n){"__proto__"==t&&FL?FL(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},HL=zL,VL=Hm,KL=Wy;var $L=function(e,t){var n={};return t=KL(t),VL(e,(function(e,r,o){HL(n,r,t(e,r,o))})),n},UL=ct($L);var WL=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},ZL=$m;var qL=function(e,t){var n=!0;return ZL(e,(function(e,r,o){return n=!!t(e,r,o)})),n},GL=WL,YL=qL,XL=Wy,JL=Fc,QL=jb;var eI=function(e,t,n){var r=JL(e)?GL:YL;return n&&QL(e,t,n)&&(t=void 0),r(e,XL(t))},tI=ct(eI),nI=["x","y"];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){sI(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,n){return t=function(e){var t=function(e,t){if("object"!=rI(e)||!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)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cI(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 lI(e,t){var n=e.x,r=e.y,o=cI(e,nI),i="".concat(n),a=parseInt(i,10),s="".concat(r),c=parseInt(s,10),l="".concat(t.height||o.height),u=parseInt(l,10),f="".concat(t.width||o.width),d=parseInt(f,10);return aI(aI(aI(aI(aI({},t),o),a?{x:a}:{}),c?{y:c}:{}),{},{height:u,width:d,name:t.name,radius:t.radius})}function uI(e){return t.createElement(DD,oI({shapeType:"rectangle",propTransformer:lI,activeClassName:"recharts-active-bar"},e))}var fI,dI=["value","background"];function pI(e){return pI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pI(e)}function hI(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 gI(){return gI=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},gI.apply(this,arguments)}function vI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vI(Object(n),!0).forEach((function(t){_I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mI(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,OI(r.key),r)}}function bI(e,t,n){return t=xI(t),function(e,t){if(t&&("object"===pI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return CI(e)}(e,wI()?Reflect.construct(t,n||[],xI(e).constructor):t.apply(e,n))}function wI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wI=function(){return!!e})()}function xI(e){return xI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xI(e)}function CI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SI(e,t){return SI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},SI(e,t)}function _I(e,t,n){return(t=OI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OI(e){var t=function(e,t){if("object"!=pI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=pI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pI(t)?t:String(t)}var kI=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return _I(CI(e=bI(this,n,[].concat(r))),"state",{isAnimationFinished:!1}),_I(CI(e),"id",Bf("recharts-bar-")),_I(CI(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),_I(CI(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&SI(e,t)}(n,t.PureComponent),r=n,o=[{key:"renderRectanglesStatically",value:function(e){var n=this,r=this.props,o=r.shape,i=r.dataKey,a=r.activeIndex,s=r.activeBar,c=ud(this.props,!1);return e&&e.map((function(e,r){var l=r===a,u=l?s:o,f=yI(yI(yI({},c),e),{},{isActive:l,option:u,index:r,dataKey:i,onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd});return t.createElement(xd,gI({className:"recharts-bar-rectangle"},Yf(n.props,e,r),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),t.createElement(uI,f))}))}},{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,l=n.animationId,u=this.state.prevData;return t.createElement(zM,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,a=r.map((function(e,t){var n=u&&u[t];if(n){var r=Hf(n.x,e.x),a=Hf(n.y,e.y),s=Hf(n.width,e.width),c=Hf(n.height,e.height);return yI(yI({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var l=Hf(0,e.height)(i);return yI(yI({},e),{},{y:e.y+e.height-l,height:l})}var f=Hf(0,e.width)(i);return yI(yI({},e),{},{width:f})}));return t.createElement(xd,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&&Fk(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,n=this.props,r=n.data,o=n.dataKey,i=n.activeIndex,a=ud(this.props.background,!1);return r.map((function(n,r){n.value;var s=n.background,c=hI(n,dI);if(!s)return null;var l=yI(yI(yI(yI(yI({},c),{},{fill:"#eee"},s),a),Yf(e.props,n,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return t.createElement(uI,gI({option:e.props.background,isActive:r===i},l))}))}},{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=ad(r.children,YE);if(!c)return null;var l="vertical"===s?o[0].height/2:o[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:cj(e,t)}},f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(xd,f,c.map((function(e){return t.cloneElement(e,{key:"error-bar-".concat(n,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:s,offset:l,dataPointFormatter:u})})))}},{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,l=e.width,u=e.height,f=e.isAnimationActive,d=e.background,p=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=Bc("recharts-bar",o),v=i&&i.allowDataOverflow,y=a&&a.allowDataOverflow,m=v||y,b=vf(p)?this.id:p;return t.createElement(xd,{className:g},v||y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(b)},t.createElement("rect",{x:v?s:s-l/2,y:y?c:c-u/2,width:v?l:2*l,height:y?u:2*u}))):null,t.createElement(xd,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(b,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,b),(!f||h)&&CA.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],o&&mI(r.prototype,o),i&&mI(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function EI(e){return EI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},EI(e)}function jI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PI(r.key),r)}}function AI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AI(Object(n),!0).forEach((function(t){MI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MI(e,t,n){return(t=PI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PI(e){var t=function(e,t){if("object"!=EI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=EI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==EI(t)?t:String(t)}fI=kI,_I(kI,"displayName","Bar"),_I(kI,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!aw.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),_I(kI,"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,l=e.stackedData,u=e.dataStartIndex,f=e.displayedData,d=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var h=t.layout,g=n.props,v=g.dataKey,y=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=l?b.scale.domain():null,x=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:b}),C=ad(y,Yw),S=f.map((function(e,t){var r,f,d,g,y,b;l?r=function(e,t){if(!t||2!==t.length||!If(t[0])||!If(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(!If(e[0])||e[0]<n)&&(o[0]=n),(!If(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(l[u+t],w):(r=cj(e,v),Array.isArray(r)||(r=[x,r]));var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o="number"==typeof n;return o?e(n,r):(o||("production"!==process.env.NODE_ENV?$E(!1,"minPointSize callback function received a value with type of ".concat(rI(n),". Currently only numbers are supported.")):$E(!1)),t)}}(m,fI.defaultProps.minPointSize)(r[1],t);if("horizontal"===h){var _,O=[a.scale(r[0]),a.scale(r[1])],k=O[0],E=O[1];f=Oj({axis:i,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),d=null!==(_=null!=E?E:k)&&void 0!==_?_:void 0,g=p.size;var j=k-E;if(y=Number.isNaN(j)?0:j,b={x:f,y:a.y,width:g,height:a.height},Math.abs(S)>0&&Math.abs(y)<Math.abs(S)){var A=Df(y||S)*(Math.abs(S)-Math.abs(y));d-=A,y+=A}}else{var T=[i.scale(r[0]),i.scale(r[1])],M=T[0],P=T[1];if(f=M,d=Oj({axis:a,ticks:c,bandSize:o,offset:p.offset,entry:e,index:t}),g=P-M,y=p.size,b={x:i.x,y:d,width:i.width,height:y},Math.abs(S)>0&&Math.abs(g)<Math.abs(S))g+=Df(g||S)*(Math.abs(S)-Math.abs(g))}return yI(yI(yI({},e),{},{x:f,y:d,width:g,height:y,value:l?r:r[1],payload:e,background:b},C&&C[t]&&C[t].props),{},{tooltipPayload:[Pj(n,e)],tooltipPosition:{x:f+g/2,y:d+y/2}})}));return yI({data:S,layout:h},d)}));var DI=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,l=Object.keys(t),u={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=!!sd(c,kI);return l.reduce((function(i,a){var c,l,d,p,h,g=t[a],v=g.orientation,y=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,C="".concat(v).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var S=y[1]-y[0],_=1/0,O=g.categoricalDomain.sort();if(O.forEach((function(e,t){t>0&&(_=Math.min((e||0)-(O[t-1]||0),_))})),Number.isFinite(_)){var k=_/S,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var j=Ff(e.barCategoryGap,k*E),A=k*E/2;c=A-j-(A-j)/E*j}}}l="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&&(l=[l[1],l[0]]);var T=mj(g,o,f),M=T.scale,P=T.realScaleType;M.domain(y).range(l),wj(M);var D=Sj(M,TI(TI({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===v&&!w||"bottom"===v&&w,d=n.left,p=u[C]-h*g.height):"yAxis"===r&&(h="left"===v&&!w||"right"===v&&w,d=u[C]-h*g.width,p=n.top);var L=TI(TI(TI({},g),D),{},{realScaleType:P,x:d,y:p,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return L.bandSize=Tj(L,D),g.hide||"xAxis"!==r?g.hide||(u[C]+=(h?-1:1)*L.width):u[C]+=(h?-1:1)*L.height,TI(TI({},i),{},MI({},a,L))}),{})},LI=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)}},II=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&&jI(t.prototype,n),r&&jI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();MI(II,"EPS",1e-4);var RI=function(e){var t=Object.keys(e).reduce((function(t,n){return TI(TI({},t),{},MI({},n,II.create(e[n])))}),{});return TI(TI({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return UL(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return tI(e,(function(e,n){return t[n].isInRange(e)}))}})};var NI=function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,i=Math.atan(n/t),a=o>i&&o<Math.PI-i?n/Math.sin(o):t/Math.cos(o);return Math.abs(a)},BI=Wy,FI=av,zI=uv;var HI=function(e){return function(t,n,r){var o=Object(t);if(!FI(t)){var i=BI(n);t=zI(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}},VI=iL;var KI=Zy,$I=Wy,UI=function(e){var t=VI(e),n=t%1;return t==t?n?t-n:t:0},WI=Math.max;var ZI=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:UI(n);return o<0&&(o=WI(r+o,0)),KI(e,$I(t),o)},qI=ct(HI(ZI)),GI=zu((function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}}),(function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}));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)}var XI=t.createContext(void 0),JI=t.createContext(void 0),QI=t.createContext(void 0),eR=t.createContext({}),tR=t.createContext(void 0),nR=t.createContext(0),rR=t.createContext(0),oR=function(e){var n=e.state,r=n.xAxisMap,o=n.yAxisMap,i=n.offset,a=e.clipPathId,s=e.children,c=e.width,l=e.height,u=GI(i);return t.createElement(XI.Provider,{value:r},t.createElement(JI.Provider,{value:o},t.createElement(eR.Provider,{value:i},t.createElement(QI.Provider,{value:u},t.createElement(tR.Provider,{value:a},t.createElement(nR.Provider,{value:l},t.createElement(rR.Provider,{value:c},s)))))))};function iR(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var aR=function(e){var n=t.useContext(XI);null==n&&("production"!==process.env.NODE_ENV?$E(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):$E(!1));var r=n[e];return null==r&&("production"!==process.env.NODE_ENV?$E(!1,'Could not find xAxis by id "'.concat(e,'" [').concat(YI(e),"]. ").concat(iR(n))):$E(!1)),r},sR=function(e){var n=t.useContext(JI);null==n&&("production"!==process.env.NODE_ENV?$E(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):$E(!1));var r=n[e];return null==r&&("production"!==process.env.NODE_ENV?$E(!1,'Could not find yAxis by id "'.concat(e,'" [').concat(YI(e),"]. ").concat(iR(n))):$E(!1)),r},cR=function(){return t.useContext(rR)},lR=function(){return t.useContext(nR)};function uR(e){return uR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uR(e)}function fR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fR(Object(n),!0).forEach((function(t){pR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=uR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uR(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hR(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gR(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 gR(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 gR(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 vR(){return vR=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},vR.apply(this,arguments)}function yR(e){var n=e.x,r=e.y,o=e.segment,i=e.xAxisId,a=e.yAxisId,s=e.shape,c=e.className,l=e.alwaysShow,u=t.useContext(tR),f=aR(i),d=sR(a),p=t.useContext(QI);if(!u||!p)return null;Sd(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(e,t,n,r,o,i,a,s,c){var l=o.x,u=o.y,f=o.width,d=o.height;if(n){var p=c.y,h=e.y.apply(p,{position:i});if(BL(c,"discard")&&!e.y.isInRange(h))return null;var g=[{x:l+f,y:h},{x:l,y:h}];return"left"===s?g.reverse():g}if(t){var v=c.x,y=e.x.apply(v,{position:i});if(BL(c,"discard")&&!e.x.isInRange(y))return null;var m=[{x:y,y:u+d},{x:y,y:u}];return"top"===a?m.reverse():m}if(r){var b=c.segment.map((function(t){return e.apply(t,{position:i})}));return BL(c,"discard")&&NL(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(RI({x:f.scale,y:d.scale}),Rf(n),Rf(r),o&&2===o.length,p,e.position,f.orientation,d.orientation,e);if(!h)return null;var g=hR(h,2),v=g[0],y=v.x,m=v.y,b=g[1],w=b.x,x=b.y,C=dR(dR({clipPath:BL(e,"hidden")?"url(#".concat(u,")"):void 0},ud(e,!0)),{},{x1:y,y1:m,x2:w,y2:x});return t.createElement(xd,{className:Bc("recharts-reference-line",c)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):yl(e)?e(n):t.createElement("line",vR({},n,{className:"recharts-reference-line-line"}))}(s,C),sA.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return LI({x:t,y:n},{x:r,y:o})}({x1:y,y1:m,x2:w,y2:x})))}function mR(e){return mR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mR(e)}function bR(){return bR=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},bR.apply(this,arguments)}function wR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wR(Object(n),!0).forEach((function(t){CR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=mR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=mR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mR(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}yR.displayName="ReferenceLine",yR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function SR(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=Rf(n),c=Rf(r);if(Sd(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var l=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=RI({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return BL(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!l)return null;var u=l.x,f=l.y,d=e.shape,p=e.className,h=xR(xR({clipPath:BL(e,"hidden")?"url(#".concat(a,")"):void 0},ud(e,!0)),{},{cx:u,cy:f});return t.createElement(xd,{className:Bc("recharts-reference-dot",p)},SR.renderDot(d,h),sA.renderCallByParent(e,{x:u-o,y:f-o,width:2*o,height:2*o}))}function _R(e){return _R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_R(e)}function OR(){return OR=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},OR.apply(this,arguments)}function kR(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 ER(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kR(Object(n),!0).forEach((function(t){jR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=_R(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_R(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}SR.displayName="ReferenceDot",SR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},SR.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):yl(e)?e(n):t.createElement(sP,bR({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function AR(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;Sd(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Rf(n),u=Rf(r),f=Rf(o),d=Rf(i),p=e.shape;if(!(l||u||f||d||p))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,l=o.xAxis,u=o.yAxis;if(!l||!u)return null;var f=RI({x:l.scale,y:u.scale}),d={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},p={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!BL(o,"discard")||f.isInRange(d)&&f.isInRange(p)?LI(d,p):null}(l,u,f,d,e);if(!h&&!p)return null;var g=BL(e,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(xd,{className:Bc("recharts-reference-area",a)},AR.renderRect(p,ER(ER({clipPath:g},ud(e,!0)),h)),sA.renderCallByParent(e,h))}function TR(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 MR(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}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 LR(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){IR(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 IR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=PR(e)||!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),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RR(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,u=e.unit,f=e.angle;if(!o||!o.length||!r)return[];if(If(c)||aw.isSsr)return function(e,t){return TR(e,t+1)}(o,"number"==typeof c&&If(c)?c:0);var d=[],p="top"===s||"bottom"===s?"width":"height",h=u&&"width"===p?ox(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(e,r){var o=yl(l)?l(e.value,r):e.value;return"width"===p?function(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return NI(r,n)}(ox(o,{fontSize:t,letterSpacing:n}),h,f):ox(o,{fontSize:t,letterSpacing:n})[p]},v=o.length>=2?Df(o[1].coordinate-o[0].coordinate):1,y=function(e,t,n){var r="width"===n,o=e.x,i=e.y,a=e.width,s=e.height;return 1===t?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}(i,v,p);return"equidistantPreserveStart"===c?function(e,t,n,r,o){for(var i,a=(r||[]).slice(),s=t.start,c=t.end,l=0,u=1,f=s,d=function(){var t=null==r?void 0:r[l];if(void 0===t)return{v:TR(r,u)};var i,a=l,d=function(){return void 0===i&&(i=n(t,a)),i},p=t.coordinate,h=0===l||MR(e,p,d,f,c);h||(l=0,f=s,u+=1),h&&(f=p+e*(d()/2+o),l+=u)};u<=a.length;)if(i=d())return i.v;return[]}(v,y,g,o,a):(d="preserveStart"===c||"preserveStartEnd"===c?function(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,c=t.start,l=t.end;if(i){var u=r[s-1],f=n(u,s-1),d=e*(u.coordinate+e*f/2-l);a[s-1]=u=LR(LR({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate}),MR(e,u.tickCoord,(function(){return f}),c,l)&&(l=u.tickCoord-e*(f/2+o),a[s-1]=LR(LR({},u),{},{isShow:!0}))}for(var p=i?s-1:s,h=function(t){var r,i=a[t],s=function(){return void 0===r&&(r=n(i,t)),r};if(0===t){var u=e*(i.coordinate-e*s()/2-c);a[t]=i=LR(LR({},i),{},{tickCoord:u<0?i.coordinate-u*e:i.coordinate})}else a[t]=i=LR(LR({},i),{},{tickCoord:i.coordinate});MR(e,i.tickCoord,s,c,l)&&(c=i.tickCoord+e*(s()/2+o),a[t]=LR(LR({},i),{},{isShow:!0}))},g=0;g<p;g++)h(g);return a}(v,y,g,o,a,"preserveStartEnd"===c):function(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,s=t.start,c=t.end,l=function(t){var r,l=i[t],u=function(){return void 0===r&&(r=n(l,t)),r};if(t===a-1){var f=e*(l.coordinate+e*u()/2-c);i[t]=l=LR(LR({},l),{},{tickCoord:f>0?l.coordinate-f*e:l.coordinate})}else i[t]=l=LR(LR({},l),{},{tickCoord:l.coordinate});MR(e,l.tickCoord,u,s,c)&&(c=l.tickCoord-e*(u()/2+o),i[t]=LR(LR({},l),{},{isShow:!0}))},u=a-1;u>=0;u--)l(u);return i}(v,y,g,o,a),d.filter((function(e){return e.isShow})))}AR.displayName="ReferenceArea",AR.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},AR.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):yl(e)?e(n):t.createElement(XM,OR({},n,{className:"recharts-reference-area-rect"}))};var NR=["viewBox"],BR=["viewBox"],FR=["ticks"];function zR(e){return zR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zR(e)}function HR(){return HR=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},HR.apply(this,arguments)}function VR(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 KR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VR(Object(n),!0).forEach((function(t){YR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $R(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 UR(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,XR(r.key),r)}}function WR(e,t,n){return t=qR(t),function(e,t){if(t&&("object"===zR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ZR()?Reflect.construct(t,n||[],qR(e).constructor):t.apply(e,n))}function ZR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ZR=function(){return!!e})()}function qR(e){return qR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qR(e)}function GR(e,t){return GR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GR(e,t)}function YR(e,t,n){return(t=XR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XR(e){var t=function(e,t){if("object"!=zR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zR(t)?t:String(t)}var JR=function(e){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=WR(this,n,[e])).state={fontSize:"",letterSpacing:""},t}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GR(e,t)}(n,t.Component),r=n,o=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=$R(e,NR),o=this.props,i=o.viewBox,a=$R(o,BR);return!Kf(n,i)||!Kf(r,a)||!Kf(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,s=this.props,c=s.x,l=s.y,u=s.width,f=s.height,d=s.orientation,p=s.tickSize,h=s.mirror,g=s.tickMargin,v=h?-1:1,y=e.tickSize||p,m=If(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=l+ +!h*f)-v*y)-v*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*u)-v*y)-v*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*u)+v*y)+v*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=l+ +h*f)+v*y)+v*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,l=KR(KR(KR({},ud(this.props,!1)),ud(c,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!s||"bottom"===a&&s);l=KR(KR({},l),{},{x1:n,y1:r+u*i,x2:n+o,y2:r+u*i})}else{var f=+("left"===a&&!s||"right"===a&&s);l=KR(KR({},l),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",HR({},l,{className:Bc("recharts-cartesian-axis-line",gf(c,"className"))}))}},{key:"renderTicks",value:function(e,r,o){var i=this,a=this.props,s=a.tickLine,c=a.stroke,l=a.tick,u=a.tickFormatter,f=a.unit,d=RR(KR(KR({},this.props),{},{ticks:e}),r,o),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=ud(this.props,!1),v=ud(l,!1),y=KR(KR({},g),{},{fill:"none"},ud(s,!1)),m=d.map((function(e,r){var o=i.getTickLineCoord(e),a=o.line,m=o.tick,b=KR(KR(KR(KR({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:c},v),m),{},{index:r,payload:e,visibleTicksCount:d.length,tickFormatter:u});return t.createElement(xd,HR({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},Yf(i.props,e,r)),s&&t.createElement("line",HR({},y,a,{className:Bc("recharts-cartesian-axis-tick-line",gf(s,"className"))})),l&&n.renderTickItem(l,b,"".concat(yl(u)?u(e.value,r):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,l=c.ticks,u=$R(c,FR),f=l;return yl(a)&&(f=l&&l.length>0?a(this.props):a(u)),o<=0||i<=0||!f||!f.length?null:t.createElement(xd,{className:Bc("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),sA.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):yl(e)?e(n):t.createElement(Dx,HR({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],o&&UR(r.prototype,o),i&&UR(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();YR(JR,"displayName","CartesianAxis"),YR(JR,"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 QR=["x1","y1","x2","y2","key"],eN=["offset"];function tN(e){return tN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tN(e)}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){oN(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,n){return t=function(e){var t=function(e,t){if("object"!=tN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tN(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iN(){return iN=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},iN.apply(this,arguments)}function aN(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 sN=function(e){var n=e.fill;if(!n||"none"===n)return null;var r=e.fillOpacity,o=e.x,i=e.y,a=e.width,s=e.height;return t.createElement("rect",{x:o,y:i,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function cN(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(yl(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,l=aN(n,QR),u=ud(l,!1);u.offset;var f=aN(u,eN);r=t.createElement("line",iN({},f,{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}function lN(e){var n=e.x,r=e.width,o=e.horizontal,i=void 0===o||o,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var s=a.map((function(t,o){var a=rN(rN({},e),{},{x1:n,y1:t,x2:n+r,y2:t,key:"line-".concat(o),index:o});return cN(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function uN(e){var n=e.y,r=e.height,o=e.vertical,i=void 0===o||o,a=e.verticalPoints;if(!i||!a||!a.length)return null;var s=a.map((function(t,o){var a=rN(rN({},e),{},{x1:t,y1:n,x2:t,y2:n+r,key:"line-".concat(o),index:o});return cN(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function fN(e){var n=e.horizontalFill,r=e.fillOpacity,o=e.x,i=e.y,a=e.width,s=e.height,c=e.horizontalPoints,l=e.horizontal;if(!(void 0===l||l)||!n||!n.length)return null;var u=c.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var f=u.map((function(e,c){var l=!u[c+1]?i+s-e:u[c+1]-e;if(l<=0)return null;var f=c%n.length;return t.createElement("rect",{key:"react-".concat(c),y:e,x:o,height:l,width:a,stroke:"none",fill:n[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function dN(e){var n=e.vertical,r=void 0===n||n,o=e.verticalFill,i=e.fillOpacity,a=e.x,s=e.y,c=e.width,l=e.height,u=e.verticalPoints;if(!r||!o||!o.length)return null;var f=u.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==f[0]&&f.unshift(0);var d=f.map((function(e,n){var r=!f[n+1]?a+c-e:f[n+1]-e;if(r<=0)return null;var u=n%o.length;return t.createElement("rect",{key:"react-".concat(n),x:e,y:s,width:r,height:l,stroke:"none",fill:o[u],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var pN=function(e,t){var n=e.xAxis,r=e.width,o=e.height,i=e.offset;return hj(RR(rN(rN(rN({},JR.defaultProps),n),{},{ticks:gj(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},hN=function(e,t){var n=e.yAxis,r=e.width,o=e.height,i=e.offset;return hj(RR(rN(rN(rN({},JR.defaultProps),n),{},{ticks:gj(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},gN={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function vN(e){var n,r,o,i,a,s,c,l,u=cR(),f=lR(),d=t.useContext(eR),p=rN(rN({},e),{},{stroke:null!==(n=e.stroke)&&void 0!==n?n:gN.stroke,fill:null!==(r=e.fill)&&void 0!==r?r:gN.fill,horizontal:null!==(o=e.horizontal)&&void 0!==o?o:gN.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:gN.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:gN.vertical,verticalFill:null!==(s=e.verticalFill)&&void 0!==s?s:gN.verticalFill,x:If(e.x)?e.x:d.left,y:If(e.y)?e.y:d.top,width:If(e.width)?e.width:d.width,height:If(e.height)?e.height:d.height}),h=p.x,g=p.y,v=p.width,y=p.height,m=p.syncWithTicks,b=p.horizontalValues,w=p.verticalValues,x=(c=t.useContext(XI),zf(c)),C=(l=t.useContext(JI),qI(l,(function(e){return tI(e.domain,Number.isFinite)}))||zf(l));if(!If(v)||v<=0||!If(y)||y<=0||!If(h)||h!==+h||!If(g)||g!==+g)return null;var S=p.verticalCoordinatesGenerator||pN,_=p.horizontalCoordinatesGenerator||hN,O=p.horizontalPoints,k=p.verticalPoints;if((!O||!O.length)&&yl(_)){var E=b&&b.length,j=_({yAxis:C?rN(rN({},C),{},{ticks:E?b:C.ticks}):void 0,width:u,height:f,offset:d},!!E||m);Sd(Array.isArray(j),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(tN(j),"]")),Array.isArray(j)&&(O=j)}if((!k||!k.length)&&yl(S)){var A=w&&w.length,T=S({xAxis:x?rN(rN({},x),{},{ticks:A?w:x.ticks}):void 0,width:u,height:f,offset:d},!!A||m);Sd(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(tN(T),"]")),Array.isArray(T)&&(k=T)}return t.createElement("g",{className:"recharts-cartesian-grid"},t.createElement(sN,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height}),t.createElement(lN,iN({},p,{offset:d,horizontalPoints:O,xAxis:x,yAxis:C})),t.createElement(uN,iN({},p,{offset:d,verticalPoints:k,xAxis:x,yAxis:C})),t.createElement(fN,iN({},p,{horizontalPoints:O})),t.createElement(dN,iN({},p,{verticalPoints:k})))}vN.displayName="CartesianGrid";var yN=["type","layout","connectNulls","ref"];function mN(e){return mN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mN(e)}function bN(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 wN(){return wN=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},wN.apply(this,arguments)}function xN(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 CN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xN(Object(n),!0).forEach((function(t){MN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SN(e){return function(e){if(Array.isArray(e))return _N(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 _N(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 _N(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 _N(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 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,PN(r.key),r)}}function kN(e,t,n){return t=jN(t),function(e,t){if(t&&("object"===mN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return AN(e)}(e,EN()?Reflect.construct(t,n||[],jN(e).constructor):t.apply(e,n))}function EN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(EN=function(){return!!e})()}function jN(e){return jN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jN(e)}function AN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TN(e,t){return TN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TN(e,t)}function MN(e,t,n){return(t=PN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PN(e){var t=function(e,t){if("object"!=mN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=mN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mN(t)?t:String(t)}var DN=function(e){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return MN(AN(e=kN(this,n,[].concat(r))),"state",{isAnimationFinished:!0,totalLength:0}),MN(AN(e),"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),MN(AN(e),"getStrokeDasharray",(function(t,r,o){var i=o.reduce((function(e,t){return e+t}));if(!i)return e.generateSimpleStrokeDasharray(r,t);for(var a=Math.floor(t/i),s=t%i,c=r-t,l=[],u=0,f=0;u<o.length;f+=o[u],++u)if(f+o[u]>s){l=[].concat(SN(o.slice(0,u)),[s-f]);break}var d=l.length%2==0?[0,c]:[c];return[].concat(SN(n.repeat(o,a)),SN(l),d).map((function(e){return"".concat(e,"px")})).join(", ")})),MN(AN(e),"id",Bf("recharts-line-")),MN(AN(e),"pathRef",(function(t){e.mainCurve=t})),MN(AN(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),MN(AN(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}var r,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TN(e,t)}(n,t.PureComponent),r=n,o=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(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=ad(r.children,YE);if(!c)return null;var l=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:cj(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(xd,u,c.map((function(e){return t.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:s,dataPointFormatter:l})})))}},{key:"renderDots",value:function(e,r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,s=i.points,c=i.dataKey,l=ud(this.props,!1),u=ud(a,!0),f=s.map((function(e,t){var r=CN(CN(CN({key:"dot-".concat(t),r:3},l),u),{},{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.renderDotItem(a,r)})),d={clipPath:e?"url(#clipPath-".concat(r?"":"dots-").concat(o,")"):null};return t.createElement(xd,wN({className:"recharts-line-dots",key:"dots"},d),f)}},{key:"renderCurveStatically",value:function(e,n,r,o){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var l=bN(i,yN),u=CN(CN(CN({},ud(l,!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(VA,wN({},u,{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,l=o.animationDuration,u=o.animationEasing,f=o.animationId,d=o.animateNewValues,p=o.width,h=o.height,g=this.state,v=g.prevPoints,y=g.totalLength;return t.createElement(zM,{begin:c,duration:l,isActive:s,easing:u,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(v){var s=v.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(v[n]){var r=v[n],i=Hf(r.x,e.x),a=Hf(r.y,e.y);return CN(CN({},e),{},{x:i(o),y:a(o)})}if(d){var c=Hf(2*p,e.x),l=Hf(h/2,e.y);return CN(CN({},e),{},{x:c(o),y:l(o)})}return CN(CN({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var l,u=Hf(0,y)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(u,y,f)}else l=r.generateSimpleStrokeDasharray(y,u);return r.renderCurveStatically(i,e,n,{strokeDasharray:l})}))}},{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||!Fk(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,n=this.props,r=n.hide,o=n.dot,i=n.points,a=n.className,s=n.xAxis,c=n.yAxis,l=n.top,u=n.left,f=n.width,d=n.height,p=n.isAnimationActive,h=n.id;if(r||!i||!i.length)return null;var g=this.state.isAnimationFinished,v=1===i.length,y=Bc("recharts-line",a),m=s&&s.allowDataOverflow,b=c&&c.allowDataOverflow,w=m||b,x=vf(h)?this.id:h,C=null!==(e=ud(o,!1))&&void 0!==e?e:{r:3,strokeWidth:2},S=C.r,_=void 0===S?3:S,O=C.strokeWidth,k=void 0===O?2:O,E=(function(e){return e&&"object"===ed(e)&&"cx"in e&&"cy"in e&&"r"in e}(o)?o:{}).clipDot,j=void 0===E||E,A=2*_+k;return t.createElement(xd,{className:y},m||b?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(x)},t.createElement("rect",{x:m?u:u-f/2,y:b?l:l-d/2,width:m?f:2*f,height:b?d:2*d})),!j&&t.createElement("clipPath",{id:"clipPath-dots-".concat(x)},t.createElement("rect",{x:u-A/2,y:l-A/2,width:f+A,height:d+A}))):null,!v&&this.renderCurve(w,x),this.renderErrorBar(w,x),(v||o)&&this.renderDots(w,j,x),(!p||g)&&CA.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(SN(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(SN(r),SN(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(yl(e))r=e(n);else{var o=Bc("recharts-line-dot","boolean"!=typeof e?e.className:"");r=t.createElement(sP,wN({},n,{className:o}))}return r}}],o&&ON(r.prototype,o),i&&ON(r,i),Object.defineProperty(r,"prototype",{writable:!1}),n}();function LN(){return LN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LN.apply(this,arguments)}MN(DN,"displayName","Line"),MN(DN,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!aw.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),MN(DN,"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,l=e.offset,u=t.layout,f=c.map((function(e,t){var c=cj(e,a);return"horizontal"===u?{x:_j({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:vf(c)?null:r.scale(c),value:c,payload:e}:{x:vf(c)?null:n.scale(c),y:_j({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}}));return CN({points:f,layout:u},l)}));var IN=function(e){var n=e.xAxisId,r=cR(),o=lR(),i=aR(n);return null==i?null:t.createElement(JR,LN({},i,{className:Bc("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(e){return gj(e,!0)}}))};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)}IN.displayName="XAxis",IN.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 NN=function(e){var n=e.yAxisId,r=cR(),o=lR(),i=sR(n);return null==i?null:t.createElement(JR,RN({},i,{className:Bc("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(e){return gj(e,!0)}}))};function BN(e){return function(e){if(Array.isArray(e))return FN(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 FN(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 FN(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 FN(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}NN.displayName="YAxis",NN.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 zN=function(e,t,n,r,o){var i=ad(e,yR),a=ad(e,SR),s=[].concat(BN(i),BN(a)),c=ad(e,AR),l="".concat(r,"Id"),u=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[l]===n&&BL(t.props,"extendDomain")&&If(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var d="".concat(u,"1"),p="".concat(u,"2");f=c.reduce((function(e,t){if(t.props[l]===n&&BL(t.props,"extendDomain")&&If(t.props[d])&&If(t.props[p])){var r=t.props[d],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return If(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},HN={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,p=u.length;for(l=0;l<p;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].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,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[i]=1===l.length?l[0]:l: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}(HN);var VN=new(ct(HN.exports)),KN="recharts.syncMouseEvents";function $N(e){return $N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$N(e)}function UN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZN(r.key),r)}}function WN(e,t,n){return(t=ZN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZN(e){var t=function(e,t){if("object"!=$N(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=$N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$N(t)?t:String(t)}var qN=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),WN(this,"activeIndex",0),WN(this,"coordinateList",[]),WN(this,"layout","horizontal")}var t,n,r;return t=e,n=[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,o=e.container,i=void 0===o?null:o,a=e.layout,s=void 0===a?null:a,c=e.offset,l=void 0===c?null:c,u=e.mouseHandlerCallback,f=void 0===u?null:u;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=i?i:this.container,this.layout=null!=s?s:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,i=n.height,a=this.coordinateList[this.activeIndex].coordinate,s=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,c=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,l=r+a+s,u=o+this.offset.top+i/2+c;this.mouseHandlerCallback({pageX:l,pageY:u})}}}],n&&UN(t.prototype,n),r&&UN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function GN(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle;return{points:[Hj(t,n,r,o),Hj(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function YN(e,t,n){var r,o,i,a;if("horizontal"===e)i=r=t.x,o=n.top,a=n.top+n.height;else if("vertical"===e)a=o=t.y,r=n.left,i=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return GN(t);var s=t.cx,c=t.cy,l=t.innerRadius,u=t.outerRadius,f=t.angle,d=Hj(s,c,l,f),p=Hj(s,c,u,f);r=d.x,o=d.y,i=p.x,a=p.y}return[{x:r,y:o},{x:i,y:a}]}function XN(e){return XN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XN(e)}function JN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JN(Object(n),!0).forEach((function(t){eB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eB(e,t,n){return t=function(e){var t=function(e,t){if("object"!=XN(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=XN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==XN(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tB(e){var n,r=e.element,o=e.tooltipEventType,i=e.isActive,a=e.activeCoordinate,s=e.activePayload,c=e.offset,l=e.activeTooltipIndex,u=e.tooltipAxisBandSize,f=e.layout,d=e.chartName;if(!r||!r.props.cursor||!i||!a||"ScatterChart"!==d&&"axis"!==o)return null;var p=VA;if("ScatterChart"===d)n=a,p=gP;else if("BarChart"===d)n=function(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-o,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(f,a,c,u),p=XM;else if("radial"===f){var h=GN(a),g=h.cx,v=h.cy,y=h.radius;n={cx:g,cy:v,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:y,outerRadius:y},p=MA}else n={points:YN(f,a,c)},p=VA;var m=QN(QN(QN(QN({stroke:"#ccc",pointerEvents:"none"},c),n),ud(r.props.cursor,!1)),{},{payload:s,payloadIndex:l,className:Bc("recharts-tooltip-cursor",r.props.cursor.className)});return t.isValidElement(r.props.cursor)?t.cloneElement(r.props.cursor,m):t.createElement(p,m)}var nB=["item"],rB=["children","className","width","height","style","compact","title","desc"];function oB(e){return oB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oB(e)}function iB(){return iB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iB.apply(this,arguments)}function aB(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,l=!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){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||gB(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sB(e,t){if(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 cB(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,wB(r.key),r)}}function lB(e,t,n){return t=fB(t),function(e,t){if(t&&("object"===oB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dB(e)}(e,uB()?Reflect.construct(t,n||[],fB(e).constructor):t.apply(e,n))}function uB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uB=function(){return!!e})()}function fB(e){return fB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fB(e)}function dB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pB(e,t){return pB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pB(e,t)}function hB(e){return function(e){if(Array.isArray(e))return vB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gB(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 gB(e,t){if(e){if("string"==typeof e)return vB(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)?vB(e,t):void 0}}function vB(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 yB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yB(Object(n),!0).forEach((function(t){bB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bB(e,t,n){return(t=wB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wB(e){var t=function(e,t){if("object"!=oB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=oB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oB(t)?t:String(t)}var xB={xAxis:["bottom","top"],yAxis:["left","right"]},CB={width:"100%",height:"100%"},SB={x:0,y:0};function _B(e){return e}var OB=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,o=t.dataEndIndex,i=(null!=n?n:[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(hB(e),hB(n)):e}),[]);return i.length>0?i:e&&e.length&&If(r)&&If(o)?e.slice(r,o+1):[]};function kB(e){return"number"===e?[0,"auto"]:void 0}var EB=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=OB(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(o,s){var c,l,u=null!==(c=s.props.data)&&void 0!==c?c:t;(u&&e.dataStartIndex+e.dataEndIndex!==0&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=Vf(void 0===u?a:u,i.dataKey,r):l=u&&u[n]||a[n];return l?[].concat(hB(o),[Pj(s,l)]):o}),[])},jB=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,l=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 l=c>0?r[c-1].coordinate:r[a-1].coordinate,u=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,d=void 0;if(Df(u-l)!==Df(f-u)){var p=[];if(Df(f-u)===Df(s[1]-s[0])){d=f;var h=u+s[1]-s[0];p[0]=Math.min(h,(h+l)/2),p[1]=Math.max(h,(h+l)/2)}else{d=l;var g=f+s[1]-s[0];p[0]=Math.min(u,(g+u)/2),p[1]=Math.max(u,(g+u)/2)}var v=[Math.min(u,(d+u)/2),Math.max(u,(d+u)/2)];if(e>v[0]&&e<=v[1]||e>=p[0]&&e<=p[1]){i=r[c].index;break}}else{var y=Math.min(l,f),m=Math.max(l,f);if(e>(y+u)/2&&e<=(m+u)/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(l>=0&&c){var u=c[l]&&c[l].value,f=EB(e,t,l,u),d=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return mB(mB(mB({},r),Hj(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return mB(mB(mB({},r),Hj(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return SB}(n,a,l,o);return{activeTooltipIndex:l,activeLabel:u,activePayload:f,activeCoordinate:d}}return null},AB=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,l=e.layout,u=e.children,f=e.stackOffset,d=pj(l,o);return n.reduce((function(t,n){var p,h=n.props,g=h.type,v=h.dataKey,y=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,C=n.props[i];if(t[C])return t;var S,_,O,k=OB(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===C})),dataStartIndex:s,dataEndIndex:c}),E=k.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&If(r)&&If(o))return!0}return!1})(n.props.domain,y,g)&&(S=Aj(n.props.domain,null,y),!d||"number"!==g&&"auto"===b||(O=lj(k,v,"category")));var j=kB(g);if(!S||0===S.length){var A,T=null!==(A=n.props.domain)&&void 0!==A?A:j;if(v){if(S=lj(k,v,g),"category"===g&&d){var M=function(e){if(!Array.isArray(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}(S);m&&M?(_=S,S=lL(0,E)):m||(S=Mj(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(hB(e),[t])}),[]))}else if("category"===g)S=m?S.filter((function(e){return""!==e&&!vf(e)})):Mj(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||vf(t)?e:[].concat(hB(e),[t])}),[]);else if("number"===g){var P=function(e,t,n,r,o){var i=t.map((function(t){return fj(e,t,n,o,r)})).filter((function(e){return!vf(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(k,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),v,o,l);P&&(S=P)}!d||"number"!==g&&"auto"===b||(O=lj(k,v,"category"))}else S=d?lL(0,E):a&&a[C]&&a[C].hasStack&&"number"===g?"expand"===f?[0,1]:kj(a[C].stackGroups,s,c):dj(k,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),g,l,!0);if("number"===g)S=zN(u,S,C,o,w),T&&(S=Aj(T,S,y));else if("category"===g&&T){var D=T;S.every((function(e){return D.indexOf(e)>=0}))&&(S=D)}}return mB(mB({},t),{},bB({},C,mB(mB({},n.props),{},{axisType:o,domain:S,categoricalDomain:O,duplicateDomain:_,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:j,isCategorical:d,layout:l})))}),{})},TB=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,l=e.children,u="".concat(r,"Id"),f=ad(l,o),d={};return f&&f.length?d=AB(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(d=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,f=OB(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),d=f.length,p=pj(l,o),h=-1;return n.reduce((function(e,t){var g,v=t.props[i],y=kB("number");return e[v]?e:(h++,p?g=lL(0,d):a&&a[v]&&a[v].hasStack?(g=kj(a[v].stackGroups,s,c),g=zN(u,g,v,o)):(g=Aj(y,dj(f,n.filter((function(e){return e.props[i]===v&&!e.props.hide})),"number",l),r.defaultProps.allowDataOverflow),g=zN(u,g,v,o)),mB(mB({},e),{},bB({},v,mB(mB({axisType:o},r.defaultProps),{},{hide:!0,orientation:gf(xB,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:y,isCategorical:p,layout:l}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),d},MB=function(e){var t=e.children,n=e.defaultShowTooltip,r=sd(t,jL),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},PB=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"}},DB=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,l=n.children,u=n.margin||{},f=sd(l,jL),d=sd(l,Mm),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:mB(mB({},e),{},bB({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:mB(mB({},e),{},bB({},r,gf(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),g=mB(mB({},h),p),v=g.bottom;f&&(g.bottom+=f.props.height||jL.defaultProps.height),d&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),c=tj({children:o,legendWidth:s});if(c){var l=r||{},u=l.width,f=l.height,d=c.align,p=c.verticalAlign,h=c.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==d&&If(e[d]))return oj(oj({},e),{},ij({},d,e[d]+(u||0)));if(("horizontal"===h||"vertical"===h&&"center"===d)&&"middle"!==p&&If(e[p]))return oj(oj({},e),{},ij({},p,e[p]+(f||0)))}return e}(g,0,n,t));var y=s-g.left-g.right,m=c-g.top-g.bottom;return mB(mB({brushBottom:v},g),{},{width:Math.max(y,0),height:Math.max(m,0)})},LB=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,l=e.axisComponents,u=e.legendContent,f=e.formatAxisMap,d=e.defaultProps,p=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,u=e.layout,f=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=PB(u),g=h.numericAxisName,v=h.cateAxisName,y=function(e){return!(!e||!e.length)&&e.some((function(e){var t=nd(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=y&&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,l=Object.keys(c),u=0,f=l.length;u<f;u++){var d=c[l[u]],p=d.items,h=d.cateAxisId,g=p.filter((function(e){return nd(e.type).indexOf("Bar")>=0}));if(g&&g.length){var v=g[0].props.barSize,y=g[0].props[h];o[y]||(o[y]=[]),o[y].push({item:g[0],stackList:g.slice(1),barSize:vf(v)?t:v})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=OB(e.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:s}),y=n.props,w=y.dataKey,x=y.maxBarSize,C=n.props["".concat(g,"Id")],S=n.props["".concat(v,"Id")],_=l.reduce((function(e,r){var o,i,a=t["".concat(r.axisType,"Map")],s=n.props["".concat(r.axisType,"Id")];a&&a[s]||"zAxis"===r.axisType||("production"!==process.env.NODE_ENV?$E(!1,"Specifying a(n) ".concat(r.axisType,"Id requires a corresponding ").concat(r.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==n||null===(i=n.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):$E(!1));var c=a[s];return mB(mB({},e),{},bB(bB({},r.axisType,c),"".concat(r.axisType,"Ticks"),gj(c)))}),{}),O=_[v],k=_["".concat(v,"Ticks")],E=r&&r[C]&&r[C].hasStack&&function(e,t){var n=e.props.stackId;if(Rf(n)){var r=t[n];if(r){var o=r.items.indexOf(e);return o>=0?r.stackedData[o]:null}}return null}(n,r[C].stackGroups),j=nd(n.type).indexOf("Bar")>=0,A=Tj(O,k),T=[];if(j){var M,P,D=vf(x)?p:x,L=null!==(M=null!==(P=Tj(O,k,!0))&&void 0!==P?P:D)&&void 0!==M?M:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var c,l=Ff(t,r,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var f=!1,d=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*l)>=r&&(p-=(s-1)*l,l=0),p>=r&&d>0&&(f=!0,p=s*(d*=.9));var h={offset:((r-p)/2>>0)-l,size:0};c=i.reduce((function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+l,size:f?d:t.barSize}},r=[].concat(aj(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:h})})),r}),u)}else{var g=Ff(n,r,0,!0);r-2*g-(s-1)*l<=0&&(l=0);var v=(r-2*g-(s-1)*l)/s;v>1&&(v>>=0);var y=a===+a?Math.min(v,a):v;c=i.reduce((function(e,t,n){var r=[].concat(aj(e),[{item:t.item,position:{offset:g+(v+l)*n+(v-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}),u)}return c}({barGap:f,barCategoryGap:d,bandSize:L!==A?L:A,sizeList:m[S],maxBarSize:D}),L!==A&&(T=T.map((function(e){return mB(mB({},e),{},{position:mB(mB({},e.position),{},{offset:e.position.offset-L/2})})})))}var I,R,N=n&&n.type&&n.type.getComposedData;N&&b.push({props:mB(mB({},N(mB(mB({},_),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:u,dataStartIndex:a,dataEndIndex:s}))),{},bB(bB(bB({key:n.key||"item-".concat(c)},g,_[g]),v,_[v]),"animationId",i)),childIndex:(I=n,R=e.children,id(R).indexOf(I)),item:n})})),b},h=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!cd({props:n}))return null;var c=n.children,u=n.layout,d=n.stackOffset,h=n.data,g=n.reverseStackOrder,v=PB(u),y=v.numericAxisName,m=v.cateAxisName,b=ad(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(Rf(i)){var c=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[i]=c}else s.stackGroups[Bf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return oj(oj({},e),{},ij({},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 oj(oj({},t),{},ij({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:Cj(e,a.items,o)}))}),{})),oj(oj({},t),{},ij({},i,s))}),{})}(h,b,"".concat(y,"Id"),"".concat(m,"Id"),d,g),x=l.reduce((function(e,t){var r="".concat(t.axisType,"Map");return mB(mB({},e),{},bB({},r,TB(n,mB(mB({},t),{},{graphicalItems:b,stackGroups:t.axisType===y&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),C=DB(mB(mB({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=f(n,x[e],C,e.replace("Map",""),r)}));var S,_,O=x["".concat(m,"Map")],k=(S=zf(O),{tooltipTicks:_=gj(S,!1,!0),orderedTooltipTicks:Pb(_,(function(e){return e.coordinate})),tooltipAxis:S,tooltipAxisBandSize:Tj(S,_)}),E=p(n,mB(mB({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:C}));return mB(mB({formattedGraphicalItems:E,graphicalItems:b,offset:C,stackGroups:w},k),x)};return n=function(e){function n(e){var o,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),bB(dB(a=lB(this,n,[e])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),bB(dB(a),"accessibilityManager",new qN),bB(dB(a),"handleLegendBBoxUpdate",(function(e){if(e){var t=a.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;a.setState(mB({legendBBox:e},h({props:a.props,dataStartIndex:n,dataEndIndex:r,updateId:o},mB(mB({},a.state),{},{legendBBox:e}))))}})),bB(dB(a),"handleReceiveSyncEvent",(function(e,t,n){if(a.props.syncId===e){if(n===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(t)}})),bB(dB(a),"handleBrushChange",(function(e){var t=e.startIndex,n=e.endIndex;if(t!==a.state.dataStartIndex||n!==a.state.dataEndIndex){var r=a.state.updateId;a.setState((function(){return mB({dataStartIndex:t,dataEndIndex:n},h({props:a.props,dataStartIndex:t,dataEndIndex:n,updateId:r},a.state))})),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}})),bB(dB(a),"handleMouseEnter",(function(e){var t=a.getMouseInfo(e);if(t){var n=mB(mB({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseEnter;yl(r)&&r(n,e)}})),bB(dB(a),"triggeredAfterMouseMove",(function(e){var t=a.getMouseInfo(e),n=t?mB(mB({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseMove;yl(r)&&r(n,e)})),bB(dB(a),"handleItemMouseEnter",(function(e){a.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),bB(dB(a),"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),bB(dB(a),"handleMouseMove",(function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)})),bB(dB(a),"handleMouseLeave",(function(e){a.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var n=a.props.onMouseLeave;yl(n)&&n(t,e)})),bB(dB(a),"handleOuterEvent",(function(e){var t,n=function(e){var t=e&&e.type;return t&&td[t]?td[t]:null}(e),r=gf(a.props,"".concat(n));n&&yl(r)&&r(null!==(t=/.*touch.*/i.test(n)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))&&void 0!==t?t:{},e)})),bB(dB(a),"handleClick",(function(e){var t=a.getMouseInfo(e);if(t){var n=mB(mB({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onClick;yl(r)&&r(n,e)}})),bB(dB(a),"handleMouseDown",(function(e){var t=a.props.onMouseDown;yl(t)&&t(a.getMouseInfo(e),e)})),bB(dB(a),"handleMouseUp",(function(e){var t=a.props.onMouseUp;yl(t)&&t(a.getMouseInfo(e),e)})),bB(dB(a),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),bB(dB(a),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])})),bB(dB(a),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])})),bB(dB(a),"triggerSyncEvent",(function(e){void 0!==a.props.syncId&&VN.emit(KN,a.props.syncId,e,a.eventEmitterSymbol)})),bB(dB(a),"applySyncEvent",(function(e){var t=a.props,n=t.layout,r=t.syncMethod,o=a.state.updateId,i=e.dataStartIndex,s=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(mB({dataStartIndex:i,dataEndIndex:s},h({props:a.props,dataStartIndex:i,dataEndIndex:s,updateId:o},a.state)));else if(void 0!==e.activeTooltipIndex){var c=e.chartX,l=e.chartY,u=e.activeTooltipIndex,f=a.state,d=f.offset,p=f.tooltipTicks;if(!d)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var g=0;g<p.length;g++)if(p[g].value===e.activeLabel){u=g;break}}var v=mB(mB({},d),{},{x:d.left,y:d.top}),y=Math.min(c,v.x+v.width),m=Math.min(l,v.y+v.height),b=p[u]&&p[u].value,w=EB(a.state,a.props.data,u),x=p[u]?{x:"horizontal"===n?p[u].coordinate:y,y:"horizontal"===n?m:p[u].coordinate}:SB;a.setState(mB(mB({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:u}))}else a.setState(e)})),bB(dB(a),"renderCursor",(function(e){var n,o=a.state,i=o.isTooltipActive,s=o.activeCoordinate,c=o.activePayload,l=o.offset,u=o.activeTooltipIndex,f=o.tooltipAxisBandSize,d=a.getTooltipEventType(),p=null!==(n=e.props.active)&&void 0!==n?n:i,h=a.props.layout,g=e.key||"_recharts-cursor";return t.createElement(tB,{key:g,activeCoordinate:s,activePayload:c,activeTooltipIndex:u,chartName:r,element:e,isActive:p,layout:h,offset:l,tooltipAxisBandSize:f,tooltipEventType:d})})),bB(dB(a),"renderPolarAxis",(function(e,n,r){var o=gf(e,"type.axisType"),i=gf(a.state,"".concat(o,"Map")),s=i&&i[e.props["".concat(o,"Id")]];return t.cloneElement(e,mB(mB({},s),{},{className:Bc(o,s.className),key:e.key||"".concat(n,"-").concat(r),ticks:gj(s,!0)}))})),bB(dB(a),"renderPolarGrid",(function(e){var n=e.props,r=n.radialLines,o=n.polarAngles,i=n.polarRadius,s=a.state,c=s.radiusAxisMap,l=s.angleAxisMap,u=zf(c),f=zf(l),d=f.cx,p=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:Array.isArray(o)?o:gj(f,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(i)?i:gj(u,!0).map((function(e){return e.coordinate})),cx:d,cy:p,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:r})})),bB(dB(a),"renderLegend",(function(){var e=a.state.formattedGraphicalItems,n=a.props,r=n.children,o=n.width,i=n.height,s=a.props.margin||{},c=o-(s.left||0)-(s.right||0),l=tj({children:r,formattedGraphicalItems:e,legendWidth:c,legendContent:u});if(!l)return null;var f=l.item,d=sB(l,nB);return t.cloneElement(f,mB(mB({},d),{},{chartWidth:o,chartHeight:i,margin:s,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),bB(dB(a),"renderTooltip",(function(){var e,n=a.props,r=n.children,o=n.accessibilityLayer,i=sd(r,mw);if(!i)return null;var s=a.state,c=s.isTooltipActive,l=s.activeCoordinate,u=s.activePayload,f=s.activeLabel,d=s.offset,p=null!==(e=i.props.active)&&void 0!==e?e:c;return t.cloneElement(i,{viewBox:mB(mB({},d),{},{x:d.left,y:d.top}),active:p,label:f,payload:p?u:[],coordinate:l,accessibilityLayer:o})})),bB(dB(a),"renderBrush",(function(e){var n=a.props,r=n.margin,o=n.data,i=a.state,s=i.offset,c=i.dataStartIndex,l=i.dataEndIndex,u=i.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:yj(a.handleBrushChange,e.props.onChange),data:o,x:If(e.props.x)?e.props.x:s.left,y:If(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(r.bottom||0),width:If(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),bB(dB(a),"renderReferenceElement",(function(e,n,r){if(!e)return null;var o=dB(a).clipPathId,i=a.state,s=i.xAxisMap,c=i.yAxisMap,l=i.offset,u=e.props,f=u.xAxisId,d=u.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:s[f],yAxis:c[d],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:o})})),bB(dB(a),"renderActivePoints",(function(e){var t=e.item,r=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,s=[],c=t.props.key,l=t.item.props,u=l.activeDot,f=mB(mB({index:i,dataKey:l.dataKey,cx:r.x,cy:r.y,r:4,fill:uj(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(c,"-activePoint-").concat(i)},ud(u,!1)),Gf(u));return s.push(n.renderActiveDot(u,f)),o?s.push(n.renderActiveDot(u,mB(mB({},f),{},{cx:o.x,cy:o.y,key:"".concat(c,"-basePoint-").concat(i)}))):a&&s.push(null),s})),bB(dB(a),"renderGraphicChild",(function(e,n,r){var o=a.filterFormatItem(e,n,r);if(!o)return null;var i=a.getTooltipEventType(),s=a.state,c=s.isTooltipActive,l=s.tooltipAxis,u=s.activeTooltipIndex,f=s.activeLabel,d=sd(a.props.children,mw),p=o.props,h=p.points,g=p.isRange,v=p.baseLine,y=o.item.props,m=y.activeDot,b=y.hide,w=y.activeBar,x=y.activeShape,C=Boolean(!b&&c&&d&&(m||w||x)),S={};"axis"!==i&&d&&"click"===d.props.trigger?S={onClick:yj(a.handleItemMouseEnter,e.props.onClick)}:"axis"!==i&&(S={onMouseLeave:yj(a.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:yj(a.handleItemMouseEnter,e.props.onMouseEnter)});var _=t.cloneElement(e,mB(mB({},o.props),S));if(C){if(!(u>=0)){var O,k=(null!==(O=a.getItemByXY(a.state.activeCoordinate))&&void 0!==O?O:{graphicalItem:_}).graphicalItem,E=k.item,j=void 0===E?e:E,A=k.childIndex,T=mB(mB(mB({},o.props),S),{},{activeIndex:A});return[t.cloneElement(j,T),null,null]}var M,P;if(l.dataKey&&!l.allowDuplicatedCategory){var D="function"==typeof l.dataKey?function(e){return"function"==typeof l.dataKey?l.dataKey(e.payload):null}:"payload.".concat(l.dataKey.toString());M=Vf(h,D,f),P=g&&v&&Vf(v,D,f)}else M=null==h?void 0:h[u],P=g&&v&&v[u];if(x||w){var L=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[t.cloneElement(e,mB(mB(mB({},o.props),S),{},{activeIndex:L})),null,null]}if(!vf(M))return[_].concat(hB(a.renderActivePoints({item:o,activePoint:M,basePoint:P,childIndex:u,isRange:g})))}return g?[_,null,null]:[_,null]})),bB(dB(a),"renderCustomized",(function(e,n,r){return t.cloneElement(e,mB(mB({key:"recharts-customized-".concat(r)},a.props),a.state))})),bB(dB(a),"renderMap",{CartesianGrid:{handler:_B,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:_B},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:_B},YAxis:{handler:_B},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(o=e.id)&&void 0!==o?o:Bf("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=Vw(a.triggeredAfterMouseMove,null!==(i=e.throttleDelay)&&void 0!==i?i:1e3/60),a.state={},a}var o,i,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pB(e,t)}(n,t.Component),o=n,i=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,i=sd(t,mw);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var s=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,c=EB(this.state,n,a,s),l=this.state.tooltipTicks[a].coordinate,u=(this.state.offset.top+r)/2,f="horizontal"===o?{x:l,y:u}:{y:l,x:u},d=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));d&&(f=mB(mB({},f),d.props.points[a].tooltipPosition),c=d.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:s,activePayload:c,activeCoordinate:f};this.setState(p),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){fd([sd(e.children,mw)],[sd(this.props.children,mw)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=sd(this.props.children,mw);if(e&&"boolean"==typeof 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=this.container,r=n.getBoundingClientRect(),o={top:(t=r).top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(e.pageX-o.left),chartY:Math.round(e.pageY-o.top)},a=r.width/n.offsetWidth||1,s=this.inRange(i.chartX,i.chartY,a);if(!s)return null;var c=this.state,l=c.xAxisMap,u=c.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&u){var f=zf(l).scale,d=zf(u).scale,p=f&&f.invert?f.invert(i.chartX):null,h=d&&d.invert?d.invert(i.chartY):null;return mB(mB({},i),{},{xValue:p,yValue:h})}var g=jB(this.state,this.props.data,this.props.layout,s);return g?mB(mB({},i),g):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var s=this.state,c=s.angleAxisMap,l=s.radiusAxisMap;if(c&&l){var u=zf(c);return Uj({x:o,y:i},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=sd(e,mw),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}),mB(mB({},Gf(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){VN.on(KN,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){VN.removeListener(KN,this.handleReceiveSyncEvent)}},{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===nd(a.item.type)&&n===a.childIndex)return a}return null}},{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=aB(t,2),r=n[0],o=n[1];return mB(mB({},e),{},bB({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=aB(t,2),r=n[0],o=n[1];return mB(mB({},e),{},bB({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var o=0,i=n.length;o<i;o++){var a=n[o],s=a.props,c=a.item,l=nd(c.type);if("Bar"===l){var u=(s.data||[]).find((function(t){return GM(e,t)}));if(u)return{graphicalItem:a,payload:u}}else if("RadialBar"===l){var f=(s.data||[]).find((function(t){return Uj(e,t)}));if(f)return{graphicalItem:a,payload:f}}else if(LD(a,r)||ID(a,r)||RD(a,r)){var d=zD({graphicalItem:a,activeTooltipItem:r,itemData:c.props.data}),p=void 0===c.props.activeIndex?d:c.props.activeIndex;return{graphicalItem:mB(mB({},a),{},{childIndex:p}),payload:RD(a,r)?c.props.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var e=this;if(!cd(this))return null;var n,r,o=this.props,i=o.children,a=o.className,s=o.width,c=o.height,l=o.style,u=o.compact,f=o.title,d=o.desc,p=sB(o,rB),h=ud(p,!1);if(u)return t.createElement(oR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement(yd,iB({},h,{width:s,height:c,title:f,desc:d}),this.renderClipPath(),pd(i,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!==(n=this.props.tabIndex)&&void 0!==n?n:0,h.role=null!==(r=this.props.role)&&void 0!==r?r:"application",h.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},h.onFocus=function(){e.accessibilityManager.focus()});var g=this.parseEventsOfWrapper();return t.createElement(oR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement("div",iB({className:Bc("recharts-wrapper",a),style:mB({position:"relative",cursor:"default",width:s,height:c},l)},g,{ref:function(t){e.container=t}}),t.createElement(yd,iB({},h,{width:s,height:c,title:f,desc:d,style:CB}),this.renderClipPath(),pd(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&cB(o.prototype,i),s&&cB(o,s),Object.defineProperty(o,"prototype",{writable:!1}),n}(),bB(n,"displayName",r),bB(n,"defaultProps",mB({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),bB(n,"getDerivedStateFromProps",(function(e,t){var n=e.dataKey,r=e.data,o=e.children,i=e.width,a=e.height,s=e.layout,c=e.stackOffset,l=e.margin,u=t.dataStartIndex,f=t.dataEndIndex;if(void 0===t.updateId){var d=MB(e);return mB(mB(mB({},d),{},{updateId:0},h(mB(mB({props:e},d),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(n!==t.prevDataKey||r!==t.prevData||i!==t.prevWidth||a!==t.prevHeight||s!==t.prevLayout||c!==t.prevStackOffset||!Kf(l,t.prevMargin)){var p=MB(e),g={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},v=mB(mB({},jB(t,r,s)),{},{updateId:t.updateId+1}),y=mB(mB(mB({},p),g),v);return mB(mB(mB({},y),h(mB({props:e},y),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(!fd(o,t.prevChildren)){var m,b,w,x,C=sd(o,jL),S=C&&null!==(m=null===(b=C.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:u,_=C&&null!==(w=null===(x=C.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,O=S!==u||_!==f,k=!vf(r)&&!O?t.updateId:t.updateId+1;return mB(mB({updateId:k},h(mB(mB({props:e},t),{},{updateId:k,dataStartIndex:S,dataEndIndex:_}),t)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:_})}return null})),bB(n,"renderActiveDot",(function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):yl(e)?e(n):t.createElement(sP,n),t.createElement(xd,{className:"recharts-active-dot",key:n.key},r)})),n},IB=LB({chartName:"LineChart",GraphicalChild:DN,axisComponents:[{axisType:"xAxis",AxisComp:IN},{axisType:"yAxis",AxisComp:NN}],formatAxisMap:DI}),RB=LB({chartName:"BarChart",GraphicalChild:kI,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:IN},{axisType:"yAxis",AxisComp:NN}],formatAxisMap:DI}),NB=LB({chartName:"PieChart",GraphicalChild:QD,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:eD},{axisType:"radiusAxis",AxisComp:zP}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,l=Ff(e.cx,i,i/2),u=Ff(e.cy,a,a/2),f=Vj(i,a,n),d=Ff(e.innerRadius,f,0),p=Ff(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var i,a=t[n],f=a.domain,h=a.reversed;if(vf(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[d,p]),h&&(i=[i[1],i[0]]);else{var g=Nj(i=a.range,2);s=g[0],c=g[1]}var v=mj(a,o),y=v.realScaleType,m=v.scale;m.domain(f).range(i),wj(m);var b=Sj(m,Ij(Ij({},a),{},{realScaleType:y})),w=Ij(Ij(Ij({},a),b),{},{range:i,radius:p,realScaleType:y,scale:m,cx:l,cy:u,innerRadius:d,outerRadius:p,startAngle:s,endAngle:c});return Ij(Ij({},e),{},Rj({},n,w))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const BB=W.div((({theme:e,color:t,size:n})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm}),cn,ln);function FB(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function zB(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function HB(e,t){const n=FB(e);return isNaN(t)?zB(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function VB(e,t){const n=FB(e);if(isNaN(t))return zB(e,NaN);if(!t)return n;const r=n.getDate(),o=zB(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function KB(e,t){const{years:n=0,months:r=0,weeks:o=0,days:i=0,hours:a=0,minutes:s=0,seconds:c=0}=t,l=FB(e),u=r||n?VB(l,r+12*n):l,f=1e3*(c+60*(s+60*a));return zB(e,(i||o?HB(u,i+7*o):u).getTime()+f)}const $B=6048e5,UB=864e5;let WB={};function ZB(){return WB}function qB(e,t){const n=ZB(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=FB(e),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function GB(e){return qB(e,{weekStartsOn:1})}function YB(e){const t=FB(e),n=t.getFullYear(),r=zB(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=GB(r),i=zB(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const a=GB(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function XB(e){const t=FB(e);return t.setHours(0,0,0,0),t}function JB(e){const t=FB(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function QB(e,t){const n=XB(e),r=XB(t),o=+n-JB(n),i=+r-JB(r);return Math.round((o-i)/UB)}function eF(e){return zB(e,Date.now())}function tF(e,t){return+XB(e)==+XB(t)}function nF(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=FB(e);return!isNaN(Number(n))}function rF(e,t){const 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 oF(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}function iF(e,t,n){const r=function(e,t){return+FB(e)-+FB(t)}(e,t)/6e4;return oF(n?.roundingMethod)(r)}function aF(e,t,n){const r=function(e,t){const n=FB(e),r=FB(t),o=rF(n,r),i=Math.abs(QB(n,r));n.setDate(n.getDate()-o*i);const a=o*(i-Number(rF(n,r)===-o));return 0===a?0:a}(e,t)/7;return oF(n?.roundingMethod)(r)}const sF={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 cF(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const lF={date:cF({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:cF({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:cF({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},uF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function fF(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const dF={ordinalNumber:(e,t)=>{const 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:fF({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:fF({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:fF({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:fF({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:fF({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 pF(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(a)));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}const hF={ordinalNumber:(gF={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(gF.matchPattern);if(!n)return null;const r=n[0],o=e.match(gF.parsePattern);if(!o)return null;let i=gF.valueCallback?gF.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:pF({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:pF({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:e=>e+1}),month:pF({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:pF({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:pF({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"})};var gF;const vF={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=sF[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:lF,formatRelative:(e,t,n,r)=>uF[e],localize:dF,match:hF,options:{weekStartsOn:0,firstWeekContainsDate:1}};function yF(e){const t=FB(e),n=QB(t,function(e){const t=FB(e),n=zB(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function mF(e){const t=FB(e),n=+GB(t)-+function(e){const t=YB(e),n=zB(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),GB(n)}(t);return Math.round(n/$B)+1}function bF(e,t){const n=FB(e),r=n.getFullYear(),o=ZB(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=zB(e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=qB(a,t),c=zB(e,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const l=qB(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function wF(e,t){const n=FB(e),r=+qB(n,t)-+function(e,t){const n=ZB(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=bF(e,t),i=zB(e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),qB(i,t)}(n,t);return Math.round(r/$B)+1}function xF(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const CF={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return xF("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):xF(n+1,2)},d:(e,t)=>xF(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>xF(e.getHours()%12||12,t.length),H:(e,t)=>xF(e.getHours(),t.length),m:(e,t)=>xF(e.getMinutes(),t.length),s:(e,t)=>xF(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return xF(Math.trunc(r*Math.pow(10,n-3)),t.length)}},SF="midnight",_F="noon",OF="morning",kF="afternoon",EF="evening",jF="night",AF={G:function(e,t,n){const r=e.getFullYear()>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){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return CF.y(e,t)},Y:function(e,t,n,r){const o=bF(e,r),i=o>0?o:1-o;if("YY"===t){return xF(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):xF(i,t.length)},R:function(e,t){return xF(YB(e),t.length)},u:function(e,t){return xF(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return xF(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){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return xF(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){const r=e.getMonth();switch(t){case"M":case"MM":return CF.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return xF(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){const o=wF(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):xF(o,t.length)},I:function(e,t,n){const r=mF(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):xF(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):CF.d(e,t)},D:function(e,t,n){const r=yF(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):xF(r,t.length)},E:function(e,t,n){const r=e.getDay();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){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return xF(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){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return xF(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){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return xF(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){const r=e.getHours()/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){const r=e.getHours();let o;switch(o=12===r?_F:0===r?SF:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?EF:r>=12?kF:r>=4?OF:jF,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return CF.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):CF.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):xF(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):xF(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):CF.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):CF.s(e,t)},S:function(e,t){return CF.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return MF(r);case"XXXX":case"XX":return PF(r);default:return PF(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return MF(r);case"xxxx":case"xx":return PF(r);default:return PF(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+TF(r,":");default:return"GMT"+PF(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+TF(r,":");default:return"GMT"+PF(r,":")}},t:function(e,t,n){return xF(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return xF(e.getTime(),t.length)}};function TF(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+xF(i,2)}function MF(e,t){if(e%60==0){return(e>0?"-":"+")+xF(Math.abs(e)/60,2)}return PF(e,t)}function PF(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+xF(Math.trunc(r/60),2)+t+xF(r%60,2)}const DF=(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"})}},LF=(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"})}},IF={p:LF,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return DF(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",DF(r,t)).replace("{{time}}",LF(o,t))}},RF=/^D+$/,NF=/^Y+$/,BF=["D","DD","YY","YYYY"];const FF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,HF=/^'([^]*?)'?$/,VF=/''/g,KF=/[a-zA-Z]/;function $F(e,t,n){const r=ZB(),o=n?.locale??r.locale??vF,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=FB(e);if(!nF(s))throw new RangeError("Invalid time value");let c=t.match(zF).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,IF[t])(e,o.formatLong)}return e})).join("").match(FF).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:UF(e)};if(AF[t])return{isToken:!0,value:e};if(t.match(KF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const l={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return c.map((r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&function(e){return NF.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return RF.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),BF.includes(e))throw new RangeError(r)}(i,t,String(e));return(0,AF[i[0]])(s,i,o.localize,l)})).join("")}function UF(e){const t=e.match(HF);return t?t[1].replace(VF,"'"):e}function WF(e){return FB(e).getDate()}function ZF(e){const t=FB(e),n=t.getFullYear(),r=t.getMonth(),o=zB(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function qF(e){const t=FB(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function GF(e,t){const n=FB(e),r=FB(t);return n.getTime()>r.getTime()}function YF(e,t){return+FB(e)<+FB(t)}function XF(e){return function(e,t){const n=FB(e),r=FB(t);return n.getFullYear()===r.getFullYear()}(e,eF(e))}function JF(e,t){return HB(e,-t)}function QF(e,t){let n=FB(e);return isNaN(+n)?zB(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){const n=FB(e),r=n.getFullYear(),o=n.getDate(),i=zB(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const a=ZF(i);return n.setMonth(t,Math.min(o,a)),n}(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}function ez(e,t){const n=FB(e);return n.setDate(t),n}function tz(e,t){const{years:n=0,months:r=0,weeks:o=0,days:i=0,hours:a=0,minutes:s=0,seconds:c=0}=t,l=function(e,t){return VB(e,-t)}(e,r+12*n),u=1e3*(c+60*(s+60*a));return zB(e,JF(l,i+7*o).getTime()-u)}const nz=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},rz=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),oz=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-vertical line:first-of-type":{strokeOpacity:0},".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),iz=W.div((({width:e,height:t,maxWidth:n,maxHeight:r,responsive:o})=>({width:e||"100%",height:t||"100%",maxWidth:o?n||"100%":void 0,maxHeight:o?r||"100%":void 0})),cn),az=({active:t,payload:n,label:r})=>t&&n&&n.length?e.jsxs(fz,{children:[e.jsx(dz,{children:r}),null==n?void 0:n.map((t=>{var n,r;const o=t.color||(null===(n=t.payload)||void 0===n?void 0:n.color),i=`${null===(r=t.payload)||void 0===r?void 0:r.name}-${t.dataKey}-${t.value}`;return e.jsxs(uz,{children:[o&&e.jsx(BB,{color:o}),t.name,": ",rz(t.value||0)]},i)}))]}):null,sz=()=>{const{elevation1:t}=n.useTheme();return e.jsx(mw,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e.jsx(az,{})})},cz=({payload:t,toggleData:n})=>e.jsx(lz,{children:null==t?void 0:t.map((t=>e.jsxs(uz,{onClick:n?()=>n(t):void 0,clickable:!!n,inactive:t.inactive,children:[e.jsx(BB,{color:t.color}),t.value]},`${t.dataKey}-${t.value}`)))}),lz=W.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),uz=W.div((({theme:e,clickable:t,inactive:n})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize",borderRadius:8,lineHeight:"15px",backgroundColor:t?e.scale1:void 0,padding:t?"4px 8px":void 0,cursor:t?"pointer":void 0,opacity:n?.3:1}))),fz=W.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),dz=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4})));let pz;const hz=new Uint8Array(16);function gz(){if(!pz&&(pz="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pz))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pz(hz)}const vz=[];for(let e=0;e<256;++e)vz.push((e+256).toString(16).slice(1));var yz={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function mz(e,t,n){if(yz.randomUUID&&!t&&!e)return yz.randomUUID();const r=(e=e||{}).random||(e.rng||gz)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return vz[e[t+0]]+vz[e[t+1]]+vz[e[t+2]]+vz[e[t+3]]+"-"+vz[e[t+4]]+vz[e[t+5]]+"-"+vz[e[t+6]]+vz[e[t+7]]+"-"+vz[e[t+8]]+vz[e[t+9]]+"-"+vz[e[t+10]]+vz[e[t+11]]+vz[e[t+12]]+vz[e[t+13]]+vz[e[t+14]]+vz[e[t+15]]}(r)}const bz=W.div((({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,minHeight:349,padding:"20px 24px",backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"}))),wz=W.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),xz=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),Cz=W.div({display:"flex"}),Sz=W.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),_z=W.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:o})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:o?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),Oz=W.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),kz=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),Ez=W.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),cn),jz=W.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),Az=W.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),Tz=n=>{var{id:r,label:o,labelPosition:i,checked:a,partial:s,disabled:l,onChange:u,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g}=n,v=c(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,m]=t.useState("checkbox-off"),[b,w]=t.useState(a||!1),x=t.useRef(null),C="right"===i,S={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(s?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,s]),t.useEffect((()=>{w("boolean"==typeof a?a:b)}),[a,b]),e.jsxs(Ez,Object.assign({htmlFor:r,labelRight:C,disabled:l},S,{children:[o&&e.jsx(Az,{children:o}),e.jsx(jz,Object.assign({ref:x,id:r,type:"checkbox",checked:s?!b:b,disabled:l,onChange:()=>{const e=!!s||!b;w(e),u(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!s)}},v)),e.jsx(fn,{name:y,marginLeft:o&&!C?8:0,marginRight:o&&C?8:0,pointer:!l})]}))};var Mz,Pz,Dz=Object.create,Lz=Object.defineProperty,Iz=Object.defineProperties,Rz=Object.getOwnPropertyDescriptor,Nz=Object.getOwnPropertyDescriptors,Bz=Object.getOwnPropertyNames,Fz=Object.getOwnPropertySymbols,zz=Object.getPrototypeOf,Hz=Object.prototype.hasOwnProperty,Vz=Object.prototype.propertyIsEnumerable,Kz=(e,t,n)=>t in e?Lz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$z=(e,t)=>{for(var n in t||(t={}))Hz.call(t,n)&&Kz(e,n,t[n]);if(Fz)for(var n of Fz(t))Vz.call(t,n)&&Kz(e,n,t[n]);return e},Uz=(e,t)=>Iz(e,Nz(t)),Wz=(e,t)=>{var n={};for(var r in e)Hz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Fz)for(var r of Fz(e))t.indexOf(r)<0&&Vz.call(e,r)&&(n[r]=e[r]);return n},Zz=(Mz={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===l&&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],l=r.util.type(c);"Object"!==l||i[a(c)]?"Array"!==l||i[a(c)]||(i[a(c)]=!0,e(c,n,s,i)):(i[a(c)]=!0,e(c,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,u,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,C=s.next,S=u;C!==t.tail&&!(f&&S>=f.reach);S+=C.value.length,C=C.next){var _=C.value;if(t.length>e.length)return;if(!(_ instanceof o)){var O,k=1;if(m){if(!(O=i(x,S,e,y))||O.index>=e.length)break;var E=O.index,j=O.index+O[0].length,A=S;for(A+=C.value.length;E>=A;)A+=(C=C.next).value.length;if(S=A-=C.value.length,C.value instanceof o)continue;for(var T=C;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,_=e.slice(S,A),O.index-=S}else if(!(O=i(x,0,_,y)))continue;E=O.index;var M=O[0],P=_.slice(0,E),D=_.slice(E+M.length),L=S+_.length;f&&L>f.reach&&(f.reach=L);var I=C.prev;if(P&&(I=c(t,I,P),S+=P.length),l(t,I,k),C=c(t,I,new o(d,v?r.tokenize(M,v):M,b,M)),D&&c(t,C,D),k>1){var R={cause:d+","+h,reach:L};a(e,t,n,C.prev,S,R),f&&R.reach>f.reach&&(f.reach=R.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 l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var c in i.attributes)s+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}();t.exports=n,n.default=n}},function(){return Pz||(0,Mz[Bz(Mz)[0]])((Pz={exports:{}}).exports,Pz),Pz.exports}),qz=((e,t,n)=>(n=null!=e?Dz(zz(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Bz(t))Hz.call(e,o)||o===n||Lz(e,o,{get:()=>t[o],enumerable:!(r=Rz(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:Lz(n,"default",{value:e,enumerable:!0}),e)))(Zz());qz.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},qz.languages.markup.tag.inside["attr-value"].inside.entity=qz.languages.markup.entity,qz.languages.markup.doctype.inside["internal-subset"].inside=qz.languages.markup,qz.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(qz.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:qz.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:qz.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},qz.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(qz.languages.markup.tag,"addAttribute",{value:function(e,t){qz.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:qz.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),qz.languages.html=qz.languages.markup,qz.languages.mathml=qz.languages.markup,qz.languages.svg=qz.languages.markup,qz.languages.xml=qz.languages.extend("markup",{}),qz.languages.ssml=qz.languages.xml,qz.languages.atom=qz.languages.xml,qz.languages.rss=qz.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(qz),qz.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:/[{}[\];(),.:]/},qz.languages.javascript=qz.languages.extend("clike",{"class-name":[qz.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}|\?\?=?|\?\.?|[~:]/}),qz.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,qz.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:qz.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:qz.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:qz.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:qz.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:qz.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),qz.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:qz.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"}}),qz.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),qz.languages.markup&&(qz.languages.markup.tag.addInlined("script","javascript"),qz.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")),qz.languages.js=qz.languages.javascript,qz.languages.actionscript=qz.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),qz.languages.actionscript["class-name"].alias="function",delete qz.languages.actionscript.parameter,delete qz.languages.actionscript["literal-property"],qz.languages.markup&&qz.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:qz.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(qz),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(i=e.languages[t]){var i,a=i[o];if((a=a||(i=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(a=i[o]={pattern:a}),Array.isArray(a))for(var s=0,c=a.length;s<c;s++)a[s]instanceof RegExp&&(a[s]={pattern:a[s]}),r(a[s]);else r(a)}}))}}),t.addSupport(["java","javascript","php"],t)}(qz),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(qz),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(qz),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}(qz),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,a=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,i=t[n];"code"!==i.type?e(i.content):(o=i.content[1],i=i.content[3],o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),i.alias?"string"==typeof i.alias?i.alias=[i.alias,o]:i.alias.push(o):i.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r];if(i=/language-(.+)/.exec(i)){n=i[1];break}}var l,u=e.languages[n];u?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(l="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=l,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(l);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(qz),qz.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:qz.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+/},qz.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"])&&"("===u(1).content){n+=2;var i=d(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=u(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===u(0).content&&(n++,p(u(0),"property-mutation"),0<o.length)){var s=d(/^\{$/,/^\}$/);if(-1!==s)for(var c=n;c<s;c++){var l=t[c];"variable"===l.type&&0<=o.indexOf(l.content)&&p(l,"variable-input")}}}}function u(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function d(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0==--o)return i}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),qz.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function c(t,n,a){var c=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),l=0,u={},f=(c=s(c.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=l++,n="___"+a.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,a),Object.keys(u));return l=0,function t(n){for(var i=0;i<n.length;i++){if(l>=f.length)return;var a,c,d,p,h,g,v,y=n[i];"string"==typeof y||"string"==typeof y.content?(a=f[l],-1!==(v=(g="string"==typeof y?y:y.content).indexOf(a))&&(++l,c=g.substring(0,v),h=u[a],d=void 0,(p={})["interpolation-punctuation"]=o,3===(p=e.tokenize(h,p)).length&&((d=[1,1]).push.apply(d,s(p[1],e.languages.javascript,"javascript")),p.splice.apply(p,d)),d=new e.Token("interpolation",p,r.alias,h),p=g.substring(v+a.length),h=[],c&&h.push(c),h.push(d),p&&(t(g=[p]),h.push.apply(h,g)),"string"==typeof y?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):y.content=h)):(v=y.content,Array.isArray(v)?t(v):t([v]))}}(c),new e.Token(a,c,"language-"+a,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var l={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in l&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,s,l=n[r];"string"!=typeof l&&(i=l.content,Array.isArray(i)?"template-string"===l.type?(l=i[1],3===i.length&&"string"!=typeof l&&"embedded-code"===l.type&&(a=u(l),l=l.alias,l=Array.isArray(l)?l[0]:l,s=e.languages[l])&&(i[1]=c(a,s,l))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)}))}(qz),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}(qz),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(qz),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(qz),qz.languages.n4js=qz.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),qz.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),qz.languages.n4jsd=qz.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];o=(i="RegExp"===e.util.type(i)?e.languages.javascript[o]={pattern:i}:i).inside||{};(i.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(qz),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function a(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:s(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(i=s(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(i+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(i=s(t[r-1])+i,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",i,null,i)),o.content&&"string"!=typeof o.content&&a(o.content)}}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(qz),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(qz),qz.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},qz.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=qz.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(qz),qz.languages.c=qz.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|[?:~]|[-+*/%&|^!=<>]=?/}),qz.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),qz.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},qz.languages.c.string],char:qz.languages.c.char,comment:qz.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:qz.languages.c}}}}),qz.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 qz.languages.c.boolean,qz.languages.objectivec=qz.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 qz.languages.objectivec["class-name"],qz.languages.objc=qz.languages.objectivec,qz.languages.reason=qz.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/}),qz.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 qz.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(qz),qz.languages.go=qz.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/}),qz.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete qz.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(qz),qz.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:/[{}[\];(),.:]/},qz.languages.python["string-interpolation"].inside.interpolation.inside.rest=qz.languages.python,qz.languages.py=qz.languages.python;var Gz={};((e,t)=>{for(var n in t)Lz(e,n,{get:t[n],enumerable:!0})})(Gz,{dracula:()=>Yz,duotoneDark:()=>Xz,duotoneLight:()=>Jz,github:()=>Qz,jettwaveDark:()=>dH,jettwaveLight:()=>pH,nightOwl:()=>eH,nightOwlLight:()=>tH,oceanicNext:()=>oH,okaidia:()=>iH,oneDark:()=>hH,oneLight:()=>gH,palenight:()=>aH,shadesOfPurple:()=>sH,synthwave84:()=>cH,ultramin:()=>lH,vsDark:()=>uH,vsLight:()=>fH});var Yz={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Xz={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"}}]},Jz={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Qz={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},eH={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},tH={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},nH="#c5a5c5",rH="#8dc891",oH={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:nH}},{types:["attr-value"],style:{color:rH}},{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:rH}},{types:["punctuation"],style:{color:rH}},{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:nH}},{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}}]},iH={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},aH={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},sH={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},cH={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},lH={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},uH={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},fH={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)"}}]},dH={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},pH={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},hH={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{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:"hsl(220, 14%, 71%)"}}]},gH={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{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:"hsl(230, 8%, 24%)"}}]},vH=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=$z($z({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=Uz($z({},n),{backgroundColor:void 0}),r},yH=/\r\n|\r|\n/,mH=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)},bH=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},wH=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let i=0,a=0,s=[];const c=[s];for(;a>-1;){for(;(i=r[a]++)<o[a];){let e,l=t[a];const u=n[a][i];if("string"==typeof u?(l=a>0?l:["plain"],e=u):(l=bH(l,u.type),u.alias&&(l=bH(l,u.alias)),e=u.content),"string"!=typeof e){a++,t.push(l),n.push(e),r.push(0),o.push(e.length);continue}const f=e.split(yH),d=f.length;s.push({types:l,content:f[0]});for(let e=1;e<d;e++)mH(s),c.push(s=[]),s.push({types:l,content:f[e]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return mH(s),c},xH=({children:e,language:n,code:r,theme:o,prism:i})=>{const a=n.toLowerCase(),s=((e,n)=>{const[r,o]=t.useState(vH(n,e)),i=t.useRef(),a=t.useRef();return t.useEffect((()=>{n===i.current&&e===a.current||(i.current=n,a.current=e,o(vH(n,e)))}),[e,n]),r})(a,o),c=(e=>t.useCallback((t=>{var n=t,{className:r,style:o,line:i}=n,a=Wz(n,["className","style","line"]);const s=Uz($z({},a),{className:Bc("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof o&&(s.style=$z($z({},s.style||{}),o)),s}),[e]))(s),l=(e=>{const n=t.useCallback((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return t.useCallback((e=>{var t=e,{token:r,className:o,style:i}=t,a=Wz(t,["token","className","style"]);const s=Uz($z({},a),{className:Bc("token",...r.types,o),children:r.content,style:n(r)});return null!=i&&(s.style=$z($z({},s.style||{}),i)),s}),[n])})(s),u=(({prism:e,code:n,grammar:r,language:o})=>{const i=t.useRef(e);return t.useMemo((()=>{if(null==r)return wH([n]);const e={code:n,grammar:r,language:o,tokens:[]};return i.current.hooks.run("before-tokenize",e),e.tokens=i.current.tokenize(n,r),i.current.hooks.run("after-tokenize",e),wH(e.tokens)}),[n,r,o])})({prism:i,language:a,code:r,grammar:i.languages[a]});return e({tokens:u,className:`prism-code language-${a}`,style:null!=s?s.root:{},getLineProps:c,getTokenProps:l})},CH=e=>t.createElement(xH,Uz($z({},e),{prism:e.prism||qz,theme:e.theme||uH,code:e.code,language:e.language}))
|
|
27
27
|
/*! Bundled license information:
|
|
28
28
|
|
|
29
29
|
prismjs/prism.js:
|
|
@@ -35,11 +35,11 @@ prismjs/prism.js:
|
|
|
35
35
|
* @namespace
|
|
36
36
|
* @public
|
|
37
37
|
*)
|
|
38
|
-
*/;const AH=({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(TH,{onClick:()=>{cz(r),i(!0)},copied:o,children:o?e.jsx(fn,{name:"check-circle",color:a.success}):e.jsx(fn,{name:"copy",color:s})})},TH=W.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),MH=({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(PH,Object.assign({},i,{children:[e.jsx(DH,{backgroundColor:i.borderColor,children:t.toUpperCase()}),e.jsx(LH,{children:r}),e.jsx(AH,{content:r})]}))},PH=W.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),DH=W.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),LH=W.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),IH=W.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),cn),RH=W.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),NH=W.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),BH=W.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var FH={exports:{}};FH.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:Z(e)}function r(e){return s(e)?e:q(e)}function o(e){return c(e)?e:G(e)}function i(e){return a(e)&&!l(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function c(e){return!(!e||!e[p])}function l(e){return s(e)||c(e)}function u(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=l,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",v=5,y=1<<v,m=y-1,b={},w={value:!1},x={value:!1};function C(e){return e.value=!1,e}function S(e){e&&(e.value=!0)}function _(){}function O(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(j)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function j(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return P(e,t,0)}function M(e,t){return P(e,t,t)}function P(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,L=1,I=2,R="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",B=R||N;function F(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function H(){return{value:void 0,done:!0}}function V(e){return!!U(e)}function K(e){return e&&"function"==typeof e.next}function $(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(R&&e[R]||e[N]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function Z(e){return null==e?ae():a(e)?e.toSeq():le(e)}function q(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function G(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ce(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=L,F.ENTRIES=I,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(Z,n),Z.of=function(){return Z(arguments)},Z.prototype.toSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq {","}")},Z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},Z.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(q,Z),q.prototype.toKeyedSeq=function(){return this},t(G,Z),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},G.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t(Y,Z),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},Z.isSeq=ie,Z.Keyed=q,Z.Set=Y,Z.Indexed=G;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():K(e)?new oe(e).fromEntrySeq():V(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ce(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function le(e){var t=ue(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 ue(e){return W(e)?new te(e):K(e)?new oe(e):V(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function de(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new F((function(){var e=o[n?i-a:a];return a++>i?H():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):ve(t)?e.call(r,n,q(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?G(e).map(ge).toList():ve(e)?q(e).map(ge).toMap():e}function ve(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ye(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)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ye(o[1],e)&&(n||ye(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):o?!ye(t,e.get(r,b)):!ye(e.get(r,b),t))return f=!1,!1}));return f&&e.size===d}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function Ce(){throw TypeError("Abstract")}function Se(){}function _e(){}function Oe(){}Z.prototype[ee]=!0,t(te,G),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?H():z(e,o,n[t?r-o++:o++])}))},t(ne,q),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?H():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=$(this._iterable),r=0;if(K(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=$(this._iterable);if(!K(n))return new F(H);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,G),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,G),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ye(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new be(this._value,M(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ye(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ye(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?ye(this._value,e._value):me(e)},t(xe,G),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=M(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new F((function(){var a=o;return o+=t?-r:r,i>n?H():z(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},t(Ce,n),t(Se,Ce),t(_e,Ce),t(Oe,Ce),Ce.Keyed=Se,Ce.Indexed=_e,Ce.Set=Oe;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ee(e){return e>>>1&1073741824|3221225471&e}function je(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Fe?Ae(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ae(e){var t=Ve[e];return void 0===t&&(t=Te(e),He===ze&&(He=0,Ve={}),He++,Ve[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}function Me(e){var t;if(Re&&void 0!==(t=Ie.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Le(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Re)Ie.set(e,t);else{if(void 0!==Pe&&!1===Pe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(De)Object.defineProperty(e,Be,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Be]=t}}return t}var Pe=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ie,Re="function"==typeof WeakMap;Re&&(Ie=new WeakMap);var Ne=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,He=0,Ve={};function Ke(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function $e(e){return null==e?ot():Ue(e)&&!u(e)?e:ot().withMutations((function(t){var n=r(e);Ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ue(e){return!(!e||!e[Ze])}t($e,Se),$e.prototype.toString=function(){return this.__toString("Map {","}")},$e.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},$e.prototype.set=function(e,t){return it(this,e,t)},$e.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},$e.prototype.remove=function(e){return it(this,e,b)},$e.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},$e.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},$e.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=vt(this,Cn(e),t,n);return r===b?void 0:r},$e.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()},$e.prototype.merge=function(){return dt(this,void 0,arguments)},$e.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},$e.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]}))},$e.prototype.mergeDeep=function(){return dt(this,pt,arguments)},$e.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,ht(t),n)},$e.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]}))},$e.prototype.sort=function(e){return Vt(fn(this,e))},$e.prototype.sortBy=function(e,t){return Vt(fn(this,t,e))},$e.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},$e.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},$e.prototype.asImmutable=function(){return this.__ensureOwner()},$e.prototype.wasAltered=function(){return this.__altered},$e.prototype.__iterator=function(e,t){return new et(this,e,t)},$e.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},$e.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)},$e.isMap=Ue;var We,Ze="@@__IMMUTABLE_MAP__@@",qe=$e.prototype;function Ge(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(qe);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=C(w),a=C(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ge(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(S(s),S(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Ye(t,1<<a|1<<s,a===s?[ct(e,t,n+v,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function lt(e,t,n,r){e||(e=new _);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 ut(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];void 0!==u&&s!==r&&(o|=c,a[i++]=u)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(y),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function dt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(e){return pe(e)}))),o.push(c)}return gt(e,t,o)}function pt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ye(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 ye(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 vt(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,l=o?b:e.get(c,b),u=vt(l,t,n,r);return u===l?e:u===b?e.remove(c):(o?ot():e).set(c,u)}function yt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function mt(e,t,n,r){var o=r?e:O(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}qe[Ze]=!0,qe[g]=qe.remove,qe.removeIn=qe.deleteIn,Ge.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ye(n,o[i][0]))return o[i][1];return r},Ge.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,l=0,u=c.length;l<u&&!ye(r,c[l][0]);l++);var f=l<u;if(f?c[l][1]===o:s)return this;if(S(a),(s||!f)&&S(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return lt(e,c,r,o);var d=e&&e===this.ownerID,p=d?c:O(c);return f?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Ge(e,p)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0==(i&o)?r:this.nodes[yt(i&o-1)].get(e+v,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,l=this.bitmap,u=0!=(l&c);if(!u&&o===b)return this;var f=yt(l&c-1),d=this.nodes,p=u?d[f]:void 0,h=at(p,e,t+v,n,r,o,i,a);if(h===p)return this;if(!u&&h&&d.length>=Ct)return ft(e,d,l,s,h);if(u&&!h&&2===d.length&&st(d[1^f]))return d[1^f];if(u&&h&&1===d.length&&st(h))return h;var g=e&&e===this.ownerID,y=u?h?l:l^c:l|c,w=u?h?mt(d,f,h,g):wt(d,f,g):bt(d,f,h,g);return g?(this.bitmap=y,this.nodes=w,this):new Ye(e,y,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+v,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,l=this.nodes,u=l[s];if(c&&!u)return this;var f=at(u,e,t+v,n,r,o,i,a);if(f===u)return this;var d=this.count;if(u){if(!f&&--d<St)return ut(e,l,d,s)}else d++;var p=e&&e===this.ownerID,h=mt(l,s,f,p);return p?(this.count=d,this.nodes=h,this):new Xe(e,d,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ye(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:(S(a),S(i),ct(this,e,t,n,[r,o]));for(var c=this.entries,l=0,u=c.length;l<u&&!ye(r,c[l][0]);l++);var f=l<u;if(f?c[l][1]===o:s)return this;if(S(a),(s||!f)&&S(i),s&&2===u)return new Qe(e,this.keyHash,c[1^l]);var d=e&&e===this.ownerID,p=d?c:O(c);return f?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Je(e,this.keyHash,p)},Qe.prototype.get=function(e,t,n,r){return ye(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,c=ye(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(S(a),s?void S(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(S(i),ct(this,e,t,je(r),[r,o])))},Ge.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return H()};var xt=y/4,Ct=y/2,St=y/4;function _t(e){var t=Lt();if(null==e)return t;if(Ot(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ke(r),r>0&&r<y?Dt(0,r,v,null,new jt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Ot(e){return!(!e||!e[kt])}t(_t,_e),_t.of=function(){return this(arguments)},_t.prototype.toString=function(){return this.__toString("List [","]")},_t.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},_t.prototype.set=function(e,t){return It(this,e,t)},_t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},_t.prototype.insert=function(e,t){return this.splice(e,0,t)},_t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=v,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Lt()},_t.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])}))},_t.prototype.pop=function(){return Ft(this,0,-1)},_t.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])}))},_t.prototype.shift=function(){return Ft(this,1)},_t.prototype.merge=function(){return zt(this,void 0,arguments)},_t.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},_t.prototype.mergeDeep=function(){return zt(this,pt,arguments)},_t.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},_t.prototype.setSize=function(e){return Ft(this,0,e)},_t.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:Ft(this,T(e,n),M(t,n))},_t.prototype.__iterator=function(e,t){var n=0,r=Pt(this,t);return new F((function(){var t=r();return t===Mt?H():z(e,n++,t)}))},_t.prototype.__iterate=function(e,t){for(var n,r=0,o=Pt(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},_t.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)},_t.isList=Ot;var kt="@@__IMMUTABLE_LIST__@@",Et=_t.prototype;function jt(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=qe.setIn,Et.deleteIn=Et.removeIn=qe.removeIn,Et.update=qe.update,Et.updateIn=qe.updateIn,Et.mergeIn=qe.mergeIn,Et.mergeDeepIn=qe.mergeDeepIn,Et.withMutations=qe.withMutations,Et.asMutable=qe.asMutable,Et.asImmutable=qe.asImmutable,Et.wasAltered=qe.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-v,n))===a&&i)return this}if(i&&!o)return this;var s=Nt(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},jt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-v,n))===i&&o===this.array.length-1)return this}var a=Nt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var At,Tt,Mt={};function Pt(e,t){var n=e._origin,r=e._capacity,o=Ht(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):c(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,l=r-a;return l>y&&(l=y),function(){if(c===l)return Mt;var e=t?--l:c++;return s&&s[e]}}function c(e,o,i){var s,c=e&&e.array,l=i>n?0:n-i>>o,u=1+(r-i>>o);return u>y&&(u=y),function(){for(;;){if(s){var e=s();if(e!==Mt)return e;s=null}if(l===u)return Mt;var n=t?--u:l++;s=a(c&&c[n],o-v,i+(n<<o))}}}}function Dt(e,t,n,r,o,i,a){var s=Object.create(Et);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Lt(){return At||(At=Dt(0,0,v))}function It(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=C(x);return t>=Ht(e._capacity)?r=Rt(r,e.__ownerID,0,t,n,i):o=Rt(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 Rt(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 l=e&&e.array[s],u=Rt(l,t,n-v,r,o,i);return u===l?e:((a=Nt(e,t)).array[s]=u,a)}return c&&e.array[s]===o?e:(S(i),a=Nt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new jt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Ht(e._capacity))return e._tail;if(t<1<<e._level+v){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m],r-=v;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new _,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,l=e._root,u=0;a+u<0;)l=new jt(l&&l.array.length?[void 0,l]:[],r),u+=1<<(c+=v);u&&(a+=u,o+=u,s+=u,i+=u);for(var f=Ht(i),d=Ht(s);d>=1<<c+v;)l=new jt(l&&l.array.length?[l]:[],r),c+=v;var p=e._tail,h=d<f?Bt(e,s-1):d>f?new jt([],r):p;if(p&&d>f&&a<i&&p.array.length){for(var g=l=Nt(l,r),y=c;y>v;y-=v){var b=f>>>y&m;g=g.array[b]=Nt(g.array[b],r)}g.array[f>>>v&m]=p}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=d)a-=d,s-=d,c=v,l=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<f){for(u=0;l;){var w=a>>>c&m;if(w!==d>>>c&m)break;w&&(u+=(1<<c)*w),c-=v,l=l.array[w]}l&&a>o&&(l=l.removeBefore(r,c,a-u)),l&&d<f&&(l=l.removeAfter(r,c,d-u)),u&&(a-=u,s-=u)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=l,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,c,l,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],l=o(c);l.size>i&&(i=l.size),a(c)||(l=l.map((function(e){return pe(e)}))),r.push(l)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Ht(e){return e<y?0:e-1>>>v<<v}function Vt(e){return null==e?Ut():Kt(e)?e:Ut().withMutations((function(t){var n=r(e);Ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Kt(e){return Ue(e)&&u(e)}function $t(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 Ut(){return Tt||(Tt=$t(ot(),Lt()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=y&&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):$t(r,o)}function Zt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qt(e){this._iter=e,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===L?D:L,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(I,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,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(I,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return z(o,r?l:s++,u,i)}}))},o}function tn(e,t,n){var r=$e().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=(u(e)?Vt():$e()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var i=T(t,o),a=M(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var l=bn(e);return l.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(l.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),l.__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,l=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return l++,!1!==t(e,r?n:l-1,o)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)o.next();if(++c>s)return H();var e=o.next();return r||t===L?e:z(t,c-1,t===D?void 0:e.value[1],e)}))},l}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(I,o),s=!0;return new F((function(){if(!s)return H();var e=a.next();if(e.done)return e;var o=e.value,c=o[0],l=o[1];return t.call(n,l,c,i)?r===I?e:z(r,c,l,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,l){if(!s||!(s=t.call(n,e,i,l)))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(I,i),c=!0,l=0;return new F((function(){var e,i,u;do{if((e=s.next()).done)return r||o===L?e:z(o,l++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],u=f[1],c&&(c=t.call(n,u,i,a))}while(c);return o===I?e:z(o,i,u,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 l=new te(o);return n?l=l.toKeyedSeq():c(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}function cn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function c(e,l){var u=this;e.__iterate((function(e,o){return(!t||l<t)&&a(e)?c(e,l+1):!1===r(e,n?o:i++,u)&&(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 l=e.value;if(r===I&&(l=l[1]),t&&!(s.length<t)||!a(l))return n?e:z(r,c++,l,e);s.push(i),i=l.__iterator(r,o)}else i=s.pop()}return H()}))},r}function ln(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 un(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(L,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?q(i):c(e)?G(i):Y(i)}function dn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(L,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),$(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 vn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function yn(e){return Ke(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?q:c(e)?G:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function Cn(e){var t=$(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=$(n(e))}return t}function Sn(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=$e(i)},o=r.prototype=Object.create(_n);return o.constructor=r,r}t(Vt,$e),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):Ut()},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?$t(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Vt.isOrderedMap=Kt,Vt.prototype[h]=!0,Vt.prototype[g]=Vt.prototype.remove,t(Zt,q),Zt.prototype.get=function(e,t){return this._iter.get(e,t)},Zt.prototype.has=function(e){return this._iter.has(e)},Zt.prototype.valueSeq=function(){return this._iter.valueSeq()},Zt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Zt.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},Zt.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?yn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Zt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(L,t),r=t?yn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},Zt.prototype[h]=!0,t(qt,G),qt.prototype.includes=function(e){return this._iter.includes(e)},qt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Gt,Y),Gt.prototype.has=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,q),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){vn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){vn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},qt.prototype.cacheResult=Zt.prototype.cacheResult=Gt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Sn,Se),Sn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Sn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Sn.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},Sn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=On(this,ot()))},Sn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:On(this,n)},Sn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:On(this,t)},Sn.prototype.wasAltered=function(){return this._map.wasAltered()},Sn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Sn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Sn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?On(this,t,e):(this.__ownerID=e,this._map=t,this)};var _n=Sn.prototype;function On(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function kn(e){return e._name||e.constructor.name||"Record"}function En(e,t){try{t.forEach(jn.bind(void 0,e))}catch(e){}}function jn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function An(e){return null==e?Rn():Tn(e)&&!u(e)?e:Rn().withMutations((function(t){var n=i(e);Ke(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Pn])}_n[g]=_n.remove,_n.deleteIn=_n.removeIn=qe.removeIn,_n.merge=qe.merge,_n.mergeWith=qe.mergeWith,_n.mergeIn=qe.mergeIn,_n.mergeDeep=qe.mergeDeep,_n.mergeDeepWith=qe.mergeDeepWith,_n.mergeDeepIn=qe.mergeDeepIn,_n.setIn=qe.setIn,_n.update=qe.update,_n.updateIn=qe.updateIn,_n.withMutations=qe.withMutations,_n.asMutable=qe.asMutable,_n.asImmutable=qe.asImmutable,t(An,Oe),An.of=function(){return this(arguments)},An.fromKeys=function(e){return this(r(e).keySeq())},An.prototype.toString=function(){return this.__toString("Set {","}")},An.prototype.has=function(e){return this._map.has(e)},An.prototype.add=function(e){return Ln(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Ln(this,this._map.remove(e))},An.prototype.clear=function(){return Ln(this,this._map.clear())},An.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},An.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},An.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},An.prototype.merge=function(){return this.union.apply(this,arguments)},An.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},An.prototype.sort=function(e){return Nn(fn(this,e))},An.prototype.sortBy=function(e,t){return Nn(fn(this,t,e))},An.prototype.wasAltered=function(){return this._map.wasAltered()},An.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},An.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},An.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},An.isSet=Tn;var Mn,Pn="@@__IMMUTABLE_SET__@@",Dn=An.prototype;function Ln(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function In(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Rn(){return Mn||(Mn=In(ot()))}function Nn(e){return null==e?Vn():Bn(e)?e:Vn().withMutations((function(t){var n=i(e);Ke(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&u(e)}Dn[Pn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=qe.withMutations,Dn.asMutable=qe.asMutable,Dn.asImmutable=qe.asImmutable,Dn.__empty=Rn,Dn.__make=In,t(Nn,An),Nn.of=function(){return this(arguments)},Nn.fromKeys=function(e){return this(r(e).keySeq())},Nn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Nn.isOrderedSet=Bn;var Fn,zn=Nn.prototype;function 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(Ut()))}function Kn(e){return null==e?Gn():$n(e)?e:Gn().unshiftAll(e)}function $n(e){return!(!e||!e[Wn])}zn[h]=!0,zn.__empty=Vn,zn.__make=Hn,t(Kn,_e),Kn.of=function(){return this(arguments)},Kn.prototype.toString=function(){return this.__toString("Stack [","]")},Kn.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Kn.prototype.peek=function(){return this._head&&this._head.value},Kn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):qn(e,t)},Kn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ke(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):qn(t,n)},Kn.prototype.pop=function(){return this.slice(1)},Kn.prototype.unshift=function(){return this.push.apply(this,arguments)},Kn.prototype.unshiftAll=function(e){return this.pushAll(e)},Kn.prototype.shift=function(){return this.pop.apply(this,arguments)},Kn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gn()},Kn.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(M(t,this.size)!==this.size)return _e.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):qn(r,o)},Kn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?qn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Kn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Kn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return H()}))},Kn.isStack=$n;var Un,Wn="@@__IMMUTABLE_STACK__@@",Zn=Kn.prototype;function qn(e,t,n,r){var o=Object.create(Zn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gn(){return Un||(Un=qn(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}Zn[Wn]=!0,Zn.withMutations=qe.withMutations,Zn.asMutable=qe.asMutable,Zn.asImmutable=qe.asImmutable,Zn.wasAltered=qe.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ke(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new qt(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 Zt(this,!0)},toMap:function(){return $e(this.toKeyedSeq())},toObject:function(){Ke(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Vt(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Gt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Kn(s(this)?this.valueSeq():this)},toList:function(){return _t(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 ye(t,e)}))},entries:function(){return this.__iterator(I)},every:function(e,t){Ke(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ke(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ke(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ke(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,ln(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 ye(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Cn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?nr(e):ir)},minBy:function(e,t){return dn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[B]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ye(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ye(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return O(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+cr(je(e),je(t))|0}:function(e,t){r=r+cr(je(e),je(t))|0}:t?function(e){r=31*r+je(e)|0}:function(e){r=r+je(e)|0});return sr(o,r)}function sr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=ke(t^t>>>13,3266489909))^t>>>16)}function cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[d]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new Zt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(O(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,cn(this,e,!1))},get:function(e,t){return(e=E(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=E(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,un(this,e))},interleave:function(){var e=[this].concat(O(arguments)),t=hn(this.toSeq(),G.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(O(arguments))))},zipWith:function(e){var t=O(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(q,r.prototype),Yn(G,o.prototype),Yn(Y,i.prototype),Yn(Se,r.prototype),Yn(_e,o.prototype),Yn(Oe,i.prototype);var lr={Iterable:n,Seq:Z,Collection:Ce,Map:$e,OrderedMap:Vt,List:_t,Stack:Kn,Set:An,OrderedSet:Nn,Record:Sn,Range:xe,Repeat:be,is:ye,fromJS:pe};return lr}();var zH=FH.exports,HH=zH.OrderedMap,VH={createFromArray:function(e){return HH(e.map((function(e){return[e.getKey(),e]})))}};var KH=zH,$H=KH.Map,UH=KH.OrderedSet,WH=KH.Record,ZH=UH(),qH={style:ZH,entity:null},GH=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 YH;var t=$H({style:ZH,entity:null}).merge(e),n=XH.get(t);if(n)return n;var o=new r(t);return XH=XH.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?UH(t):t,entity:Array.isArray(n)?UH(n):n})},r}(WH(qH)),YH=new GH,XH=$H([[$H(qH),YH]]);GH.EMPTY=YH;var JH=GH;var QH=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 eV=JH,tV=QH,nV=zH,rV=nV.List,oV=nV.Map,iV=nV.OrderedSet,aV=nV.Record,sV=nV.Repeat,cV=iV(),lV=aV({key:"",type:"unstyled",text:"",characterList:rV(),depth:0,data:oV()}),uV=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=rV(sV(eV.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():cV},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){tV(this.getCharacterList(),fV,e,t)},o.findEntityRanges=function(e,t){tV(this.getCharacterList(),dV,e,t)},r}(lV);function fV(e,t){return e.getStyle()===t.getStyle()}function dV(e,t){return e.getEntity()===t.getEntity()}var pV=uV;var hV=JH,gV=QH,vV=zH,yV=vV.List,mV=vV.Map,bV=vV.OrderedSet,wV=vV.Record,xV=vV.Repeat,CV=bV(),SV={parent:null,characterList:yV(),data:mV(),depth:0,key:"",text:"",type:"unstyled",children:yV(),prevSibling:null,nextSibling:null},_V=function(e,t){return e.getStyle()===t.getStyle()},OV=function(e,t){return e.getEntity()===t.getEntity()},kV=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:SV;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=yV(xV(hV.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():CV},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){gV(this.getCharacterList(),_V,e,t)},o.findEntityRanges=function(e,t){gV(this.getCharacterList(),OV,e,t)},r}(wV(SV)),EV=kV,jV=JH,AV=zH.Map;function TV(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),l=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(AV([[s,o.get(s)]])).map((function(e,t){var o,l;i===s?(o=a,l=c):(o=t===i?a:0,l=t===s?c:e.getLength());for(var u,f=e.getCharacterList();o<l;)u=f.get(o),f=f.set(o,r?jV.applyStyle(u,n):jV.removeStyle(u,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(l),selectionBefore:t,selectionAfter:t})}var MV={add:function(e,t,n){return TV(e,t,n,!0)},remove:function(e,t,n){return TV(e,t,n,!1)}},PV=JH;var DV=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,PV.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},LV=zH;var IV=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(LV.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return DV(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},RV={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,l=null,u=0;u<i.length;u++){if(e<(a=s+i[u].length)&&s<t)null!==c||(c=s),l=a;else if(null!==c)break;s=a}var f=r+n.length,d=c===r,p=l===f;return(!d&&p||d&&!p)&&("forward"===o?l!==f&&l++:c!==r&&c--),{start:c,end:l}}},NV="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var BV=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(NV(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}},FV=BV;var zV=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?FV(!1,"Entity key not found in this range."):FV(!1)),n},HV=RV,VV=zV,KV=BV;function $V(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),l=e.__get(o).getMutability(),u=a?s:c;if("MUTABLE"===l)return n;var f=VV(t,o).filter((function(e){return u<=e.end&&u>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?KV(!1,"There should only be one entity range within this removal range."):KV(!1));var d=f[0];if("IMMUTABLE"===l)return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});i||(a?c=d.end:s=d.start);var p=HV.getRemovalRange(s,c,t.getText().slice(d.start,d.end),d.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var UV=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 l=r;if(s&&s===c)l=$V(e,t,l,o,s,!0,!0);else if(s&&c){var u=$V(e,t,l,o,s,!1,!0),f=$V(e,n,l,o,c,!1,!1);l=l.merge({anchorOffset:u.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var d=$V(e,t,l,o,s,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(c){var p=$V(e,n,l,o,c,!1,!1);l=l.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return l},WV={},ZV=Math.pow(2,24);var qV=function(){for(var e;void 0===e||WV.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*ZV).toString(32);return WV[e]=!0,e},GV=EV,YV=qV,XV=zH.OrderedMap,JV=function(e){return e.first()instanceof GV?function(e){var t,n={};return XV(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),l=r.getParentKey(),u=YV();if(n[i]=u,a&&(e.get(a)?e.setIn([a,"prevSibling"],u):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],u):e.setIn([i,"prevSibling"],null)),l&&e.get(l)){var f=e.get(l).getChildKeys();e.setIn([l,"children"],f.set(f.indexOf(r.getKey()),u))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],u),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],u):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 XV(e.toArray().map((function(e){var t=YV();return[t,e.set("key",t)]})))}(e)},QV=JH,eK=QH,tK=BV;function nK(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,l=function(e,t,n){var r;return eK(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?tK(!1,"Removal range must exist within character list."):tK(!1)),r}(r,s,n),u=l.start,f=l.end;u<f;)c=r.get(u),r=r.set(u,QV.applyEntity(c,null)),u++;return t.set("characterList",r)}return t}var rK=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=nK(r,s,a);c!==s&&(o[i]=c);var l=t.getEndKey(),u=t.getEndOffset(),f=n.get(l);i===l&&(f=c);var d=nK(r,f,u);return d!==f&&(o[l]=d),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},oK=JV,iK=rK,aK=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=iK(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),l=s.indexOf(o)+1;return oK(a.slice(c,l).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 sK=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},cK=VH,lK=EV,uK=sK,fK=BV,dK=JV,pK=zH.List,hK=function(e,t,n,r,o,i){var a=n.first()instanceof lK,s=[],c=r.size,l=n.get(o),u=r.first(),f=r.last(),d=f.getLength(),p=f.getKey(),h=a&&(!l.getChildKeys().isEmpty()||!u.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=cK.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),l=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([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var u=e.get(s).getChildKeys(),f=u.indexOf(o)+1,d=u.toArray();d.splice.apply(d,[f,0].concat(c)),t.setIn([s,"children"],pK(d))}}))}(g,0,l,u)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})},gK=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?fK(!1,"`insertFragment` should only be called with a collapsed selection state."):fK(!1));var o=e.getBlockMap(),i=dK(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof lK&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?fK(!1,"`insertFragment` should not be called when a container node is selected."):fK(!1))),1===i.size?function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),l=s.getCharacterList(),u=o,f=i+r.getText().length,d=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var p=s.getType();c&&"unstyled"===p&&(p=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:uK(l,r.getCharacterList(),i),type:p,data:d});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:f,focusKey:u,focusOffset:f,isBackward:!1})})}(e,t,o,i.first(),a,s,r):hK(e,t,o,i,a,s)},vK=sK,yK=BV,mK=zH.Repeat;var bK=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?yK(!1,"`insertText` should only be called with a collapsed range."):yK(!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),l=c.getText(),u=c.merge({text:l.slice(0,s)+n+l.slice(s,c.getLength()),characterList:vK(c.getCharacterList(),mK(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,u),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},wK=zH.Map;var xK=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(wK([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},CK=EV,SK=function(e,t){if(!(e instanceof CK))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},_K=EV,OK=SK,kK=zH;kK.List;var EK=kK.Map,jK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},AK=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},TK=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},MK=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},PK=function(e,t,n,r){return e.withMutations((function(o){if(jK(t.getKey(),o,(function(e){return e.merge({nextSibling:TK(e,o,r),prevSibling:MK(e,o,r)})})),jK(n.getKey(),o,(function(e){return e.merge({nextSibling:TK(e,o,r),prevSibling:MK(e,o,r)})})),AK(t.getKey(),r).forEach((function(e){return jK(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:TK(e,o,r),prevSibling:MK(e,o,r)})}))})),jK(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),jK(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:TK(e,o,r)})})),jK(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:MK(e,o,r)})})),jK(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),AK(n.getKey(),r).forEach((function(e){jK(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:TK(e,o,r),prevSibling:MK(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=OK(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?OK(o,t):null}return n}(n,r).forEach((function(e){return jK(e,o,(function(e){return e.merge({nextSibling:TK(e,o,r),prevSibling:MK(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();jK(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),jK(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){jK(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);jK(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}jK(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},DK=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},LK=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),l=r.get(a),u=c instanceof _K,f=[];if(u){var d=l.getChildKeys(),p=AK(a,r);l.getNextSiblingKey()&&(f=f.concat(p)),d.isEmpty()||(f=f.concat(p.concat([a]))),f=f.concat(AK(OK(l,r),r))}n=c===l?DK(c.getCharacterList(),i,s):c.getCharacterList().slice(0,i).concat(l.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,i)+l.getText().slice(s),characterList:n}),g=u&&0===i&&0===s&&l.getParentKey()===o&&null==l.getPrevSiblingKey()?EK([[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(EK([[a,null]])).map((function(e,t){return t===o?h:null})),v=r.merge(g).filter((function(e){return!!e}));return u&&c!==l&&(v=PK(v,c,l,r)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},IK=EV,RK=qV,NK=zH,BK=BV,FK=xK,zK=NK.List,HK=NK.Map,VK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},KK=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?BK(!1,"Selection range must be collapsed."):BK(!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 FK(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),l=RK(),u=o instanceof IK,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),d=f.merge({key:l,text:i.slice(s),characterList:c.slice(s),data:HK()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,f],[l,d]],h).toOrderedMap();return u&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?BK(!1,"ContentBlockNode must not have children"):BK(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();VK(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:zK(i)})})),VK(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),VK(r,e,(function(e){return e.merge({nextSibling:o})})),VK(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,d)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:0,focusKey:l,focusOffset:0,isBackward:!1})})},$K=JH,UK=MV,WK=IV,ZK=UV,qK=aK,GK=gK,YK=bK,XK=BV,JK=xK,QK=rK,e$=LK,t$=KK,n$=zH.OrderedSet,r$={replaceText:function(e,t,n,r,o){var i=QK(e,t),a=e$(i,t),s=$K.create({style:r||n$(),entity:o||null});return YK(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?XK(!1,"Target range must be collapsed for `insertText`."):XK(!1)),r$.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=qK(e,t),o=r$.removeRange(e,t,"backward");return r$.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=QK(e,t),i=e$(o,t);return GK(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(),l=i.getEntityAt(s),u=a.getEntityAt(c-1);if(r===o&&l&&l===u){var f=ZK(e.getEntityMap(),i,a,t,n);return e$(e,f)}var d=QK(e,t);return e$(d,t)},splitBlock:function(e,t){var n=QK(e,t),r=e$(n,t);return t$(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return UK.add(e,t,n)},removeInlineStyle:function(e,t,n){return UK.remove(e,t,n)},setBlockType:function(e,t,n){return JK(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return JK(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return JK(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=QK(e,t);return WK(r,t,n)}},o$=r$;var i$=function(e){return Object.keys(e).map((function(t){return e[t]}))};function a$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s$=QH,c$=i$,l$=zH,u$=l$.List,f$=l$.Repeat,d$=l$.Record,p$=function(){return!0},h$=d$({start:null,end:null}),g$=d$({start:null,end:null,decoratorKey:null,leaves:null}),v$={generate:function(e,t,n){var r=t.getLength();if(!r)return u$.of(new g$({start:0,end:0,decoratorKey:null,leaves:u$.of(new h$({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):u$(f$(null,r)),a=t.getCharacterList();return s$(i,m$,p$,(function(e,t){o.push(new g$({start:e,end:t,decoratorKey:i.get(e),leaves:y$(a.slice(e,t).toList(),e)}))})),u$(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 g$(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){a$(e,t,n[t])}))}return e}({},n,{leaves:null!=t?u$(Array.isArray(t)?t:c$(t)).map((function(e){return h$(e)})):null}))}};function y$(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return s$(r,m$,p$,(function(e,r){n.push(new h$({start:e+t,end:r+t}))})),u$(n)}function m$(e,t){return e===t}var b$=v$;var w$=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,zH.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),x$=w$;var C$=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 S$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _$=x$,O$=BV,k$=C$,E$=(0,zH.Map)(),j$=k$();function A$(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var T$={getLastCreatedEntityKey:function(){return A$("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),T$.__getLastCreatedEntityKey()},create:function(e,t,n){return A$("DraftEntity.create","contentState.createEntity"),T$.__create(e,t,n)},add:function(e){return A$("DraftEntity.add","contentState.addEntity"),T$.__add(e)},get:function(e){return A$("DraftEntity.get","contentState.getEntity"),T$.__get(e)},__getAll:function(){return E$},__loadWithEntities:function(e){E$=e,j$=k$()},mergeData:function(e,t){return A$("DraftEntity.mergeData","contentState.mergeEntityData"),T$.__mergeData(e,t)},replaceData:function(e,t){return A$("DraftEntity.replaceData","contentState.replaceEntityData"),T$.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return j$},__create:function(e,t,n){return T$.__add(new _$({type:e,mutability:t,data:n||{}}))},__add:function(e){return j$=k$(),E$=E$.set(j$,e),j$},__get:function(e){var t=E$.get(e);return t||("production"!==process.env.NODE_ENV?O$(!1,"Unknown DraftEntity key: %s.",e):O$(!1)),t},__mergeData:function(e,t){var n=T$.__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){S$(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return E$=E$.set(e,o),o},__replaceData:function(e,t){var n=T$.__get(e).set("data",t);return E$=E$.set(e,n),n}},M$=T$;var P$=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,zH.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),D$=P$,L$=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},I$=new RegExp("\r","g");var R$=function(e){return e.replace(I$,"")};function N$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){B$(e,t,n[t])}))}return e}function B$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F$=VH,z$=JH,H$=pV,V$=EV,K$=M$,$$=D$,U$=qV,W$=i$,Z$=L$,q$=zH,G$=R$,Y$=q$.List,X$=q$.Record,J$=q$.Repeat,Q$=q$.Map,eU=q$.OrderedMap,tU=X$({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),nU=Z$("draft_tree_data_support")?V$:H$,rU=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return K$},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 K$.__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 K$.__create(e,t,n),this},o.mergeEntityData=function(e,t){return K$.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return K$.__replaceData(e,t),this},o.addEntity=function(e){return K$.__add(e),this},o.getEntity=function(e){return K$.__get(e)},o.getAllEntities=function(){return K$.__getAll()},o.loadWithEntities=function(e){return K$.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=F$.createFromArray(n),i=o.isEmpty()?new $$:$$.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||K$,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=G$(e),new nU({key:U$(),text:e,type:"unstyled",characterList:Y$(J$(z$.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(N$({},e,{blockMap:eU(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new $$(e.selectionBefore),selectionAfter:new $$(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new nU(N$({},e,{data:Q$(e.data),characterList:null!=t?Y$((Array.isArray(t)?t:W$(t)).map((function(e){return z$.fromJS(e)}))):void 0}))},r}(tU),oU=rU,iU=BV,aU="LTR",sU="RTL",cU=null;function lU(e){return e===aU||e===sU}function uU(e){return lU(e)||("production"!==process.env.NODE_ENV?iU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):iU(!1)),e===aU?"ltr":"rtl"}function fU(e){cU=e}var dU={NEUTRAL:"NEUTRAL",LTR:aU,RTL:sU,isStrong:lU,getHTMLDir:uU,getHTMLDirIfDifferent:function(e,t){return lU(e)||("production"!==process.env.NODE_ENV?iU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):iU(!1)),lU(t)||("production"!==process.env.NODE_ENV?iU(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):iU(!1)),e===t?null:uU(e)},setGlobalDir:fU,initGlobalDir:function(){fU(aU)},getGlobalDir:function(){return cU||this.initGlobalDir(),cU||("production"!==process.env.NODE_ENV?iU(!1,"Global direction not set."):iU(!1)),cU}},pU=dU,hU=BV,gU="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",vU="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",yU=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+gU+vU+"]"),mU=new RegExp("["+gU+vU+"]");function bU(e){var t=yU.exec(e);return null==t?null:t[0]}function wU(e){var t=bU(e);return null==t?pU.NEUTRAL:mU.exec(t)?pU.RTL:pU.LTR}function xU(e,t){if(t=t||pU.NEUTRAL,!e.length)return t;var n=wU(e);return n===pU.NEUTRAL?t:n}function CU(e,t){return t||(t=pU.getGlobalDir()),pU.isStrong(t)||("production"!==process.env.NODE_ENV?hU(!1,"Fallback direction must be a strong direction"):hU(!1)),xU(e,t)}var SU={firstStrongChar:bU,firstStrongCharDir:wU,resolveBlockDir:xU,getDirection:CU,isDirectionLTR:function(e,t){return CU(e,t)===pU.LTR},isDirectionRTL:function(e,t){return CU(e,t)===pU.RTL}};function _U(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OU,kU=SU,EU=dU,jU=BV,AU=function(){function e(e){_U(this,"_defaultDir",void 0),_U(this,"_lastDir",void 0),e?EU.isStrong(e)||("production"!==process.env.NODE_ENV?jU(!1,"Default direction must be a strong direction (LTR or RTL)"):jU(!1)):e=EU.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=kU.getDirection(e,this._lastDir),this._lastDir},e}(),TU=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},MU=AU,PU=zH,DU=TU,LU=PU.OrderedMap;function IU(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){RU(e,t,n[t])}))}return e}function RU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NU=b$,BU=oU,FU={getDirectionMap:function(e,t){OU?OU.reset():OU=new MU;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return DU(OU).getDirection(e.getText())})),o=LU(n.keySeq().zip(r));return null!=t&&PU.is(t,o)?t:o}},zU=D$,HU=zH,VU=HU.OrderedSet,KU=HU.Record,$U=HU.Stack,UU=HU.OrderedMap,WU=HU.List,ZU=KU({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:$U(),selection:null,treeMap:null,undoStack:$U()}),qU=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(BU.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:$U(),redoStack:$U(),decorator:n||null,selection:zU.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=IU({},e,{treeMap:YU(n,e.decorator),directionMap:FU.getDirectionMap(n)});return new t(new ZU(r))},t.fromJS=function(e){return new t(new ZU(IU({},e,{directionMap:null!=e.directionMap?UU(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?VU(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?BU.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?$U(e.redoStack.map((function(e){return BU.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new zU(e.selection):e.selection,treeMap:null!=e.treeMap?UU(e.treeMap).map((function(e){return WU(e).map((function(e){return NU.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?$U(e.undoStack.map((function(e){return BU.fromJS(e)}))):e.undoStack,currentContent:BU.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 NU.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):YU(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 NU.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){RU(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 XU(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 XU(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 GU(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),GU(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new zU({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=FU.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(),l=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),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var u=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(u=null);var f={currentContent:l,directionMap:i,undoStack:c,redoStack:$U(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:u};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=FU.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=FU.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 GU(e,t,n){return qU.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function YU(e,t){return e.getBlockMap().map((function(n){return NU.generate(e,n,t)})).toOrderedMap()}function XU(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):VU()}var JU=qU,QU=EV,eW=SK,tW=zH,nW=BV,rW=tW.OrderedMap,oW=tW.List,iW=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},aW=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),l=t.getNextSiblingKey(),u=t.getPrevSiblingKey(),f=n.getParentKey(),d=i?n.getNextSiblingKey():s,p=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){iW(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),iW(u,e,(function(e){return e.merge({nextSibling:l})})),iW(l,e,(function(e){return e.merge({prevSibling:u})})),iW(d,e,(function(e){return e.merge({prevSibling:a})})),iW(p,e,(function(e){return e.merge({nextSibling:a})})),iW(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:oW(o)})})),iW(a,e,(function(e){return e.merge({nextSibling:d,prevSibling:p,parent:f})}))}))};function sW(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){cW(e,t,n[t])}))}return e}function cW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lW=VH,uW=JH,fW=pV,dW=EV,pW=o$,hW=JU,gW=qV,vW=zH,yW=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?nW(!1,"Replacing blocks is not supported."):nW(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?nW(!1,"Block cannot be moved next to itself."):nW(!1));var a=e.getBlockMap(),s=t instanceof QU,c=[t],l=a.delete(i);s&&(c=[],l=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=eW(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 u=l.toSeq().takeUntil((function(e){return e===n})),f=l.toSeq().skipUntil((function(e){return e===n})).skip(1),d=c.map((function(e){return[e.getKey(),e]})),p=rW();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?nW(!1,"Block cannot be moved next to itself."):nW(!1)),p=u.concat([].concat(d,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?nW(!1,"Block cannot be moved next to itself."):nW(!1)),p=u.concat([[o,n]].concat(d),f).toOrderedMap()}return e.merge({blockMap:aW(p,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},mW=L$("draft_tree_data_support"),bW=mW?dW:fW,wW=vW.List,xW=vW.Repeat,CW={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=pW.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=pW.splitBlock(i,a),c=s.getSelectionAfter(),l=pW.setBlockType(s,c,"atomic"),u=uW.create({entity:t}),f={key:gW(),type:"atomic",text:n,characterList:wW(xW(u,n.length))},d={key:gW(),type:"unstyled"};mW&&(f=sW({},f,{nextSibling:d.key}),d=sW({},d,{prevSibling:f.key}));var p=[new bW(f),new bW(d)],h=lW.createFromArray(p),g=pW.replaceWithFragment(l,c,h),v=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return hW.push(e,v,"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=yW(i,t,s,r)}else{var c=pW.removeRange(i,n,"backward"),l=c.getSelectionAfter(),u=c.getBlockForKey(l.getFocusKey());if(0===l.getStartOffset())o=yW(c,t,u,"before");else if(l.getEndOffset()===u.getLength())o=yW(c,t,u,"after");else{var f=pW.splitBlock(c,l),d=f.getSelectionAfter(),p=f.getBlockForKey(d.getFocusKey());o=yW(f,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return hW.push(e,h,"move-block")}};var SW=zH.List,_W=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,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)})),SW(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 OW=_W;function kW(e){return e.replace(/\//g,"-")}var EW=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(kW).join(" "):Array.prototype.map.call(arguments,kW).join(" ")},jW=t,AW=EW,TW=(0,zH.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:jW.createElement("ul",{className:AW("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:jW.createElement("ol",{className:AW("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:jW.createElement("pre",{className:AW("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),MW={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},PW={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="major",l="model",u="name",f="type",d="vendor",p="version",h="architecture",g="console",v="mobile",y="tablet",m="smarttv",b="wearable",w="embedded",x="Amazon",C="Apple",S="ASUS",_="BlackBerry",O="Browser",k="Chrome",E="Firefox",j="Google",A="Huawei",T="LG",M="Microsoft",P="Motorola",D="Opera",L="Samsung",I="Sharp",R="Sony",N="Xiaomi",B="Zebra",F="Facebook",z="Chromium OS",H="Mac OS",V=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},K=function(e,t){return typeof e===s&&-1!==$(t).indexOf($(e))},$=function(e){return e.toLowerCase()},U=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},W=function(e,t){for(var n,i,s,c,l,u,f=0;f<t.length&&!l;){var d=t[f],p=t[f+1];for(n=i=0;n<d.length&&!l&&d[n];)if(l=d[n++].exec(e))for(s=0;s<p.length;s++)u=l[++i],typeof(c=p[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,u):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=u?u.replace(c[1],c[2]):r:this[c[0]]=u?c[1].call(this,u,c[2]):r:4===c.length&&(this[c[0]]=u?c[3].call(this,u.replace(c[1],c[2])):r):this[c]=u||r;f+=2}},Z=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(K(t[n][o],e))return"?"===n?r:n}else if(K(t[n],e))return"?"===n?r:n;return e},q={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"},G={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,D+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,D]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[u,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[u,"Smart Lenovo "+O]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+O],p],[/\bfocus\/([\w\.]+)/i],[p,[u,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[p,[u,E]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+O]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+O],p],[/samsungbrowser\/([\w\.]+)/i],[p,[u,L+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,F],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,k+" 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,Z,{"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,E+" 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,/panasonic;(viera)/i],[u,p],[/(cobalt)\/([\w\.]+)/i],[u,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,$]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",$]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[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],[l,[d,L],[f,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,L],[f,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,C],[f,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,C],[f,y]],[/(macintosh);/i],[l,[d,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,I],[f,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[d,A],[f,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[d,A],[f,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[d,N],[f,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[d,N],[f,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,"OPPO"],[f,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[f,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[f,v]],[/\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],[l,[d,P],[f,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,P],[f,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,T],[f,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,T],[f,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[d,"Lenovo"],[f,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[d,"Nokia"],[f,v]],[/(pixel c)\b/i],[l,[d,j],[f,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,j],[f,v]],[/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],[l,[d,R],[f,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,R],[f,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,"OnePlus"],[f,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,x],[f,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,x],[f,v]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[f,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,_],[f,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,S],[f,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,S],[f,v]],[/(nexus 9)/i],[l,[d,"HTC"],[f,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[f,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[f,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[f,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[f,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,l,[f,v]],[/(kobo)\s(ereader|touch)/i,/(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],[d,l,[f,y]],[/(surface duo)/i],[l,[d,M],[f,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[f,v]],[/(u304aa)/i],[l,[d,"AT&T"],[f,v]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[f,v]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[f,y]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[f,y]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[f,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[f,y]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[f,y]],[/\b(k88) b/i],[l,[d,"ZTE"],[f,y]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[f,v]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[f,v]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[f,y]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[f,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[f,y]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[f,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[f,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[f,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[f,v]],[/\b(ph-1) /i],[l,[d,"Essential"],[f,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[f,y]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[f,y]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[f,y]],[/(shield[\w ]+) b/i],[l,[d,"Nvidia"],[f,y]],[/(sprint) (\w+)/i],[d,l,[f,v]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,M],[f,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,B],[f,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,B],[f,v]],[/smart-tv.+(samsung)/i],[d,[f,m]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,L],[f,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,T],[f,m]],[/(apple) ?tv/i],[d,[l,C+" TV"],[f,m]],[/crkey/i],[[l,k+"cast"],[d,j],[f,m]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,x],[f,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,I],[f,m]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,R],[f,m]],[/(mitv-\w{5}) bui/i],[l,[d,N],[f,m]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[f,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,U],[l,U],[f,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[f,g]],[/droid.+; (shield) bui/i],[l,[d,"Nvidia"],[f,g]],[/(playstation [345portablevi]+)/i],[l,[d,R],[f,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,M],[f,g]],[/((pebble))app/i],[d,l,[f,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,C],[f,b]],[/droid.+; (glass) \d/i],[l,[d,j],[f,b]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,B],[f,b]],[/(quest( 2| pro)?)/i],[l,[d,F],[f,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,w]],[/(aeobc)\b/i],[l,[d,x],[f,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[f,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[f,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,v]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[d,"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,/\b(libweb)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[p,Z,q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,Z,q],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,H],[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,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[u,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,z],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(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|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,p]]},Y=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof Y))return new Y(e,t).getResult();var g=typeof n!==i&&n.navigator?n.navigator:r,m=e||(g&&g.userAgent?g.userAgent:""),b=g&&g.userAgentData?g.userAgentData:r,w=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}(G,t):G,x=g&&g.userAgent==m;return this.getBrowser=function(){var e,t={};return t[u]=r,t[p]=r,W.call(t,m,w.browser),t[c]=typeof(e=t[p])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,x&&g&&g.brave&&typeof g.brave.isBrave==o&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,W.call(e,m,w.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[l]=r,e[f]=r,W.call(e,m,w.device),x&&!e[f]&&b&&b.mobile&&(e[f]=v),x&&"Macintosh"==e[l]&&g&&typeof g.standalone!==i&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[l]="iPad",e[f]=y),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,W.call(e,m,w.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,W.call(e,m,w.os),x&&!e[u]&&b&&"Unknown"!=b.platform&&(e[u]=b.platform.replace(/chrome os/i,z).replace(/macos/i,H)),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 m},this.setUA=function(e){return m=typeof e===s&&e.length>500?U(e,500):e,this},this.setUA(m),this};Y.VERSION="0.7.37",Y.BROWSER=V([u,p,c]),Y.CPU=V([h]),Y.DEVICE=V([l,d,f,g,v,m,y,b,w]),Y.ENGINE=Y.OS=V([u,p]),e.exports&&(t=e.exports=Y),t.UAParser=Y;var X=typeof n!==i&&(n.jQuery||n.Zepto);if(X&&!X.ua){var J=new Y;X.ua=J.getResult(),X.ua.get=function(){return J.getUA()},X.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:st)}(PW,PW.exports);var DW="Unknown",LW={"Mac OS":"Mac OS X"};var IW,RW=(new(0,PW.exports)).getResult(),NW=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(RW.browser.version),BW={browserArchitecture:RW.cpu.architecture||DW,browserFullVersion:RW.browser.version||DW,browserMinorVersion:NW.minor||DW,browserName:RW.browser.name||DW,browserVersion:RW.browser.major||DW,deviceName:RW.device.model||DW,engineName:RW.engine.name||DW,engineVersion:RW.engine.version||DW,platformArchitecture:RW.cpu.architecture||DW,platformName:(IW=RW.os.name,LW[IW]||IW||DW),platformVersion:RW.os.version||DW,platformFullVersion:RW.os.version||DW},FW=BV,zW=/\./,HW=/\|\|/,VW=/\s+\-\s+/,KW=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,$W=/^(\d*)(.*)/;function UW(e,t){var n=e.split(HW);return n.length>1?n.some((function(e){return nZ.contains(e,t)})):function(e,t){var n=e.split(VW);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?FW(!1,'the "-" operator expects exactly 2 operands'):FW(!1)),1===n.length)return WW(n[0],t);var r=n[0],o=n[1];return XW(r)&&XW(o)||("production"!==process.env.NODE_ENV?FW(!1,'operands to the "-" operator must be simple (no modifiers)'):FW(!1)),WW(">="+r,t)&&WW("<="+o,t)}(e=n[0].trim(),t)}function WW(e,t){if(""===(e=e.trim()))return!0;var n=t.split(zW),r=GW(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return ZW(n,i);case"<=":return function(e,t){var n=tZ(e,t);return-1===n||0===n}(n,i);case">=":return qW(n,i);case">":return function(e,t){return 1===tZ(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);YW(i)&&(r[o]=i+1+"");return qW(e,n)&&ZW(e,r)}(n,i);default:return function(e,t){return 0===tZ(e,t)}(n,i)}}function ZW(e,t){return-1===tZ(e,t)}function qW(e,t){var n=tZ(e,t);return 1===n||0===n}function GW(e){var t=e.split(zW),n=t[0].match(KW);return n||("production"!==process.env.NODE_ENV?FW(!1,"expected regex to match but it did not"):FW(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function YW(e){return!isNaN(e)&&isFinite(e)}function XW(e){return!GW(e).modifier}function JW(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function QW(e,t){var n=e.match($W)[1],r=t.match($W)[1],o=parseInt(n,10),i=parseInt(r,10);return YW(o)&&YW(i)&&o!==i?eZ(o,i):eZ(e,t)}function eZ(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?FW(!1,'"a" and "b" must be of the same type'):FW(!1)),e>t?1:e<t?-1:0}function tZ(e,t){for(var n=function(e,t){JW(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 JW(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=QW(r[i],o[i]);if(a)return a}return 0}var nZ={contains:function(e,t){return UW(e.trim(),t.trim())}},rZ=nZ,oZ=Object.prototype.hasOwnProperty;var iZ=function(e,t,n){if(!e)return null;var r={};for(var o in e)oZ.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var aZ=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},sZ=BW,cZ=rZ;function lZ(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,cZ.contains(o,t))}function uZ(e){return"Windows"===sZ.platformName?e.replace(/^\s*NT/,""):e}var fZ=iZ({isBrowser:function(e){return lZ(sZ.browserName,sZ.browserFullVersion,e)},isBrowserArchitecture:function(e){return lZ(sZ.browserArchitecture,null,e)},isDevice:function(e){return lZ(sZ.deviceName,null,e)},isEngine:function(e){return lZ(sZ.engineName,sZ.engineVersion,e)},isPlatform:function(e){return lZ(sZ.platformName,sZ.platformFullVersion,e,uZ)},isPlatformArchitecture:function(e){return lZ(sZ.platformArchitecture,null,e)}},aZ);var dZ=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var pZ=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},hZ=pZ;var gZ=function e(t){if(hZ(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},vZ=dZ,yZ=gZ;var mZ=function(e){for(var t=e;t&&t!==vZ(e).documentElement;){var n=yZ(t);if(null!=n)return n;t=t.parentNode}return null};var bZ=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function wZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xZ=fZ,CZ=mZ,SZ=bZ,_Z=BV,OZ=TU,kZ=zH.Map,EZ={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},jZ=xZ.isBrowser("IE <= 11"),AZ=function(){function e(e){var t=this;wZ(this,"observer",void 0),wZ(this,"container",void 0),wZ(this,"mutations",void 0),wZ(this,"onCharData",void 0),this.container=e,this.mutations=kZ();var n=SZ(e);n.MutationObserver&&!jZ?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?_Z(!1,"Expected target to be an instance of Node"):_Z(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,EZ):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=kZ(),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 jZ?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=OZ(CZ(e.target));this.mutations=this.mutations.set(n,t)}},e}(),TZ="-",MZ={encode:function(e,t,n){return e+TZ+t+TZ+n},decode:function(e){var t=e.split(TZ).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(TZ),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},PZ={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},DZ={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var LZ=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},IZ=BV,RZ=LZ;var NZ=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?IZ(!1,"Missing editorNode"):IZ(!1)),RZ(t.firstChild)||("production"!==process.env.NODE_ENV?IZ(!1,"editorNode.firstChild is not an HTMLElement"):IZ(!1)),t.firstChild},BZ=MZ,FZ=TU;var zZ=function(e,t,n,r,o){var i=FZ(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=BZ.decode(t),s=a.blockKey,c=e.getBlockTree(s),l=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),u=BZ.decode(r),f=u.blockKey,d=e.getBlockTree(f),p=d&&d.getIn([u.decoratorKey,"leaves",u.leafKey]);if(!l||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=l.get("start"),g=p.get("start"),v=l?h+n:null,y=p?g+o:null;if(i.getAnchorKey()===s&&i.getAnchorOffset()===v&&i.getFocusKey()===f&&i.getFocusOffset()===y)return i;var m=!1;if(s===f){var b=l.get("end"),w=p.get("end");m=g===h&&w===b?o<n:g<h}else{m=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first()===f}return i.merge({anchorKey:s,anchorOffset:v,focusKey:f,focusOffset:y,isBackward:m})},HZ=mZ,VZ=gZ,KZ=zZ,$Z=BV,UZ=pZ,WZ=TU;function ZZ(e,t,n){var r=t,o=HZ(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?$Z(!1,"Unknown node in selection range."):$Z(!1)),e===r)&&(r=r.firstChild,UZ(r)||("production"!==process.env.NODE_ENV?$Z(!1,"Invalid DraftEditorContents node."):$Z(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?$Z(!1,"Invalid DraftEditorContents structure."):$Z(!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&&(UZ(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||VZ(e.firstChild));)e=e.firstChild;return e}(r);i=WZ(VZ(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,l=null;if(VZ(s)){var u=function(e){for(;e.lastChild&&(UZ(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||VZ(e.lastChild));)e=e.lastChild;return e}(s);c=WZ(VZ(u)),l=qZ(u)}else c=WZ(o),l=qZ(s);return{key:c,offset:l}}function qZ(e){var t=e.textContent;return"\n"===t?0:t.length}var GZ=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:KZ(e,WZ(HZ(n)),r,WZ(HZ(o)),i),needsRecovery:!1};var c=null,l=null,u=!0;return a?(c={key:WZ(HZ(n)),offset:r},l=ZZ(t,o,i)):s?(l={key:WZ(HZ(o)),offset:i},c=ZZ(t,n,r)):(c=ZZ(t,n,r),l=ZZ(t,o,i),n===o&&r===i&&(u=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:KZ(e,c.key,c.offset,l.key,l.offset),needsRecovery:u}},YZ=GZ;var XZ=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}:YZ(e,t,r,o,i,a)},JZ=DZ,QZ=JU,eq=NZ,tq=XZ;var nq=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();JZ.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=tq(n,eq(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?QZ.forceSelection(n,o):QZ.acceptSelection(n,o),e.update(n))}};var rq={notEmptyKey:function(e){return null!=e&&""!=e}},oq=rq.notEmptyKey;function iq(e,t){return oq(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var aq=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:iq(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),iq(e.getEntityMap(),n)},sq=AZ,cq=o$,lq=MZ,uq=JU,fq=PZ,dq=nq,pq=NZ,hq=XZ,gq=aq,vq=TU,yq=fZ.isBrowser("IE"),mq=!1,bq=!1,wq=null;var xq,Cq,Sq={onCompositionStart:function(e){bq=!0,function(e){wq||(wq=new sq(pq(e))).start()}(e)},onCompositionEnd:function(e){mq=!1,bq=!1,setTimeout((function(){mq||Sq.resolveComposition(e)}),20)},onSelect:dq,onKeyDown:function(e,t){if(!bq)return Sq.resolveComposition(e),void e._onKeyDown(t);t.which!==fq.RIGHT&&t.which!==fq.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===fq.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!bq){var t=vq(wq).stopAndFlushMutations();wq=null,mq=!0;var n=uq.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=lq.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,c=n.getBlockTree(i).getIn([a,"leaves",s]),l=c.start,u=c.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:l,focusOffset:u,isBackward:!1}),d=gq(r,f),p=r.getBlockForKey(i).getInlineStyleAt(l);r=cq.replaceText(r,f,e,p,d),n=uq.set(n,{currentContent:r})}));var o=hq(n,pq(e)).selectionState;e.restoreEditorDOM();var i=yq?uq.forceSelection(n,o):uq.acceptSelection(n,o);e.update(uq.push(i,r,"insert-characters"))}else e.update(n)}}},_q=Sq;function Oq(){if(Cq)return xq;Cq=1;var e=lT;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=MZ,o=t,i=SU,a=dU,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,l=e.decorator,u=e.decoratorKey,f=e.direction,d=e.leafSet,p=e.text,h=t.getKey(),g=d.get("leaves"),v=l.getComponentForKey(u),y=l.getPropsForKey(u),m=r.encode(h,parseInt(u,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),f);return o.createElement(v,n({},y,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:t.getEntityAt(d.get("start")),offsetKey:m}),s)},c}(o.Component);return xq=s}function kq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jq=t,Aq=BV,Tq=pZ,Mq=fZ.isBrowser("IE <= 11");var Pq=function(e){var t,n;function r(t){var n;return Eq(kq(n=e.call(this,t)||this),"_forceFlag",void 0),Eq(kq(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;Tq(t)||("production"!==process.env.NODE_ENV?Aq(!1,"node is not an Element"):Aq(!1));var r=t;return n?!function(e){return Mq?"\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},Mq?jq.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):jq.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return Mq?jq.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):jq.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):jq.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(jq.Component),Dq=Pq,Lq=pZ;var Iq=function(e){return!(!e||!e.ownerDocument)&&(Lq(e)&&"BR"===e.nodeName)},Rq={initODS:function(){},handleExtensionCausedError:function(){}};var Nq=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))},Bq=Nq;var Fq=function(e){return Bq(e)&&3==e.nodeType},zq=Fq;var Hq=function e(t,n){return!(!t||!n)&&(t===n||!zq(t)&&(zq(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var Vq=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}},Kq=Rq,$q=DZ,Uq=Hq,Wq=Vq,Zq=dZ,qq=BV,Gq=pZ,Yq=fZ.isBrowser("IE");function Xq(e,t){if(!e)return"[empty]";var n=Jq(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(Gq(n)||("production"!==process.env.NODE_ENV?qq(!1,"Node must be an Element if it is not a text node."):qq(!1)),n.outerHTML)}function Jq(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return Zq(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(Jq(i[a],t));return o}function Qq(e,t){for(var n=e,r=n;n;){if(Gq(n)&&r.hasAttribute("contenteditable"))return Xq(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function eG(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function tG(e,t,n,r){var o=Wq();if(e.extend&&null!=t&&Uq(o,t)){n>eG(t)&&$q.logSelectionStateFailure({anonymizedDom:Qq(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 $q.logSelectionStateFailure({anonymizedDom:Qq(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 nG(e,t,n,r){var o=Zq(t).createRange();if(n>eG(t)&&($q.logSelectionStateFailure({anonymizedDom:Qq(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),Kq.handleExtensionCausedError()),o.setStart(t,n),Yq)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 rG=function(e,t,n,r,o){var i=Zq(t);if(Uq(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),l=e.getFocusKey(),u=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var d=s,p=c;s=l,c=u,l=d,u=p,f=!1}var h=s===n&&r<=c&&o>=c,g=l===n&&r<=u&&o>=u;if(h&&g)return a.removeAllRanges(),nG(a,t,c-r,e),void tG(a,t,u-r,e);if(f){if(g&&(a.removeAllRanges(),nG(a,t,u-r,e)),h){var v=a.focusNode,y=a.focusOffset;a.removeAllRanges(),nG(a,t,c-r,e),tG(a,v,y,e)}}else h&&(a.removeAllRanges(),nG(a,t,c-r,e)),g&&tG(a,t,u-r,e)}},oG=lT;var iG,aG,sG=Dq,cG=t,lG=BV,uG=Iq,fG=rG,dG=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="leaf")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,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?lG(!1,"Missing node"):lG(!1));var c,l=s.firstChild;l||("production"!==process.env.NODE_ENV?lG(!1,"Missing child"):lG(!1)),l.nodeType===Node.TEXT_NODE?c=l:uG(l)?c=s:(c=l.firstChild)||("production"!==process.env.NODE_ENV?lG(!1,"Missing targetNode"):lG(!1)),fG(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?lG(!1,"Missing leafNode"):lG(!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()),oG(e,r,n)}),{});if(i){var l=i(s,t);c=oG(c,l)}return cG.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},cG.createElement(sG,null,n))},r}(cG.Component),pG=dG;function hG(){if(aG)return iG;aG=1;var e=Oq(),n=pG,r=MZ,o=t,i=EW;zH.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,l=t.customStyleMap,u=t.decorator,f=t.direction,d=t.forceSelection,p=t.hasSelection,h=t.selection,g=t.tree,v=a.getKey(),y=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(v,i,t),u=e.get("start"),f=e.get("end");return o.createElement(n,{key:s,offsetKey:s,block:a,start:u,selection:p?h:null,forceSelection:d,text:y.slice(u,f),styleSet:a.getInlineStyleAt(u),customStyleMap:l,customStyleFn:c,isLast:g===m&&t===w})})).toArray();return g&&u?o.createElement(e,{block:a,children:x,contentState:s,decorator:u,decoratorKey:g,direction:f,leafSet:t,text:y,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":r.encode(v,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(o.Component);return iG=a}function gG(e,t){return!!t&&(e===t.documentElement||e===t.body)}var vG={getTop:function(e){var t=e.ownerDocument;return gG(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;gG(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return gG(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;gG(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},yG=/-(.)/g;var mG=function(e){return e.replace(yG,(function(e,t){return t.toUpperCase()}))},bG=/([A-Z])/g;var wG=function(e){return e.replace(bG,"-$1").toLowerCase()},xG=mG,CG=wG;function SG(e){return null==e?e:String(e)}var _G=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return SG(n.getPropertyValue(CG(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return SG(n.getPropertyValue(CG(t)));if("display"===t)return"none"}return e.currentStyle?SG("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[xG(t)]):SG(e.style&&e.style[xG(t)])};function OG(e,t){var n=kG.get(e,t);return"auto"===n||"scroll"===n}var kG={get:_G,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(OG(e,"overflow")||OG(e,"overflowY")||OG(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},EG=kG,jG=Hq;var AG=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!jG(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 TG=function(e){var t=AG(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},MG="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var PG=function(e){return(e=e||document).scrollingElement?e.scrollingElement:MG||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},DG=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 LG=function(e){var t=PG(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=DG(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 IG(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function RG(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function NG(){return{width:window.innerWidth||IG(),height:window.innerHeight||RG()}}NG.withoutScrollbars=function(){return{width:IG(),height:RG()}};var BG,FG,zG,HG,VG=NG;function KG(){if(FG)return BG;FG=1;var e=lT;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=hG(),a=MZ,s=t,c=vG,l=EG,u=TG,f=LG,d=VG,p=BV,h=LZ;zH.List;var g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},v=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},y=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=l.getScrollParent(n),i=f(o);if(o===window){var a=u(n);(r=a.y+a.height-d().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?p(!1,"blockNode is not an HTMLElement"):p(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},x.render=function(){var e=this,t=this.props,o=t.block,c=t.blockRenderMap,l=t.blockRendererFn,u=t.blockStyleFn,f=t.contentState,d=t.decorator,p=t.editorKey,h=t.editorState,b=t.customStyleFn,x=t.customStyleMap,C=t.direction,S=t.forceSelection,_=t.selection,O=t.tree,k=null;o.children.size&&(k=o.children.reduce((function(t,n){var o=a.encode(n,0,0),i=f.getBlockForKey(n),d=y(i,l),g=d.CustomComponent||w,b=v(i,c),x=b.Element,C=b.wrapperTemplate,S=m(i,p,o,u,d,null),_=r({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:i});return t.push(s.createElement(x,S,s.createElement(g,_))),!C||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,f)||function(e,t,n){var r=[],o=!0,i=!1,c=void 0;try{for(var l,u=n.reverse()[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var f=l.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,c=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw c}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),p=d[0].key;n.push(s.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":a.encode(p,0,0)},d))}(C,x,t),t}),[]));var E=o.getKey(),j=a.encode(E,0,0),A=y(o,l),T=A.CustomComponent,M=null!=T?s.createElement(T,n({},this.props,{tree:h.getBlockTree(E),blockProps:A.customProps,offsetKey:j,block:o})):s.createElement(i,{block:o,children:k,contentState:f,customStyleFn:b,customStyleMap:x,decorator:d,direction:C,forceSelection:S,hasSelection:g(_,E),selection:_,tree:O});if(o.getParentKey())return M;var P=v(o,c).Element,D=m(o,p,j,u,A,this.wrapperRef);return s.createElement(P,D,M)},w}(s.Component);return BG=b}var $G=lT;function UG(){return UG=$G||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UG.apply(this,arguments)}var WG,ZG,qG,GG,YG=pG,XG=MZ,JG=t,QG=vG,eY=EG,tY=SU,nY=dU,rY=EW,oY=TG,iY=LG,aY=VG,sY=BV,cY=LZ,lY=TU,uY=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},fY=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="_node")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,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||uY(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=eY.getScrollParent(n),i=iY(o);if(o===window){var a=oY(n);(r=a.y+a.height-aY().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{cY(n)||("production"!==process.env.NODE_ENV?sY(!1,"blockNode is not an HTMLElement"):sY(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&QG.setTop(o,QG.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=uY(this.props.selection,n);return this.props.tree.map((function(a,s){var c=a.get("leaves");if(0===c.size)return null;var l=c.size-1,u=c.map((function(a,c){var u=XG.encode(n,s,c),f=a.get("start"),d=a.get("end");return JG.createElement(YG,{key:u,offsetKey:u,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,d),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&c===l})})).toArray(),f=a.get("decoratorKey");if(null==f)return u;if(!e.props.decorator)return u;var d=lY(e.props.decorator),p=d.getComponentForKey(f);if(!p)return u;var h=d.getPropsForKey(f),g=XG.encode(n,s,0),v=c.first().get("start"),y=c.last().get("end"),m=r.slice(v,y),b=t.getEntityAt(a.get("start")),w=nY.getHTMLDirIfDifferent(tY.getDirection(m),e.props.direction),x={contentState:e.props.contentState,decoratedText:m,dir:w,start:v,end:y,blockKey:n,entityKey:b,offsetKey:g};return JG.createElement(p,UG({},h,x,{key:g}),u)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=rY({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return JG.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(JG.Component),dY=fY;var pY=L$("draft_tree_data_support")?function(){if(HG)return zG;HG=1;var e=lT;function n(){return n=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=KG(),o=MZ,i=t,a=TU,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 l=c.prototype;return l.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(),l=n.getDecorator();return o!==i||a!==s||c!==l||n.mustForceSelection()},l.render=function(){for(var e=this.props,t=e.blockRenderMap,s=e.blockRendererFn,c=e.blockStyleFn,l=e.customStyleMap,u=e.customStyleFn,f=e.editorState,d=e.editorKey,p=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),v=f.mustForceSelection(),y=f.getDecorator(),m=a(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),C={blockRenderMap:t,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:u,customStyleMap:l,decorator:y,editorKey:d,editorState:f,forceSelection:v,selection:g,block:w,direction:p||m.get(x),tree:f.getBlockTree(x)},S=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},C)),wrapperTemplate:S,key:x,offsetKey:o.encode(x,0,0)});var _=w.getNextSiblingKey();w=_?h.getBlockForKey(_):null}for(var O=[],k=0;k<b.length;){var E=b[k];if(E.wrapperTemplate){var j=[];do{j.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var A=i.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},j);O.push(A)}else O.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},O)},c}(i.Component);return zG=s}():function(){if(GG)return qG;GG=1;var e=lT;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=dY,a=MZ,s=t,c=EW,l=(ZG||(ZG=1,WG=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}),WG),u=TU,f=function(e,t,n,r){return c({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},d=function(e){var t,o;function c(){return e.apply(this,arguments)||this}o=e,(t=c).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var d=c.prototype;return d.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||c!==l||n.mustForceSelection()},d.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,c=e.blockStyleFn,d=e.customStyleMap,p=e.customStyleFn,h=e.editorState,g=e.editorKey,v=e.preventScroll,y=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),C=u(h.getDirectionMap()),S=m.getBlocksAsArray(),_=[],O=null,k=null,E=0;E<S.length;E++){var j=S[E],A=j.getKey(),T=j.getType(),M=o(j),P=void 0,D=void 0,L=void 0;M&&(P=M.component,D=M.props,L=M.editable);var I=y||C.get(A),R=a.encode(A,0,0),N={contentState:m,block:j,blockProps:D,blockStyleFn:c,customStyleMap:d,customStyleFn:p,decorator:x,direction:I,forceSelection:w,offsetKey:R,preventScroll:v,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=l(V,f(T,H,k!==F||null===O||H>O,I));var K=P||i,$={className:V,"data-block":!0,"data-editor":g,"data-offset-key":R,key:A};void 0!==L&&($=r({},$,{contentEditable:L,suppressContentEditableWarning:!0}));var U=s.createElement(z,$,s.createElement(K,n({},N,{key:A})));_.push({block:U,wrapperTemplate:F,key:A,offsetKey:R}),O=F?j.getDepth():null,k=F}for(var W=[],Z=0;Z<_.length;){var q=_[Z];if(q.wrapperTemplate){var G=[];do{G.push(_[Z].block),Z++}while(Z<_.length&&_[Z].wrapperTemplate===q.wrapperTemplate);var Y=s.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},G);W.push(Y)}else W.push(q.block),Z++}return s.createElement("div",{"data-contents":"true"},W)},c}(s.Component);return qG=d}(),hY={isImage:function(e){return"image"===gY(e)[0]},isJpeg:function(e){var t=gY(e);return hY.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function gY(e){return e.split("/")}var vY=hY,yY=BV;var mY=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?yY(!1,"toArray: Array-like object expected"):yY(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?yY(!1,"toArray: Object needs a length property"):yY(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?yY(!1,"toArray: Object should have keys for indices"):yY(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?yY(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):yY(!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 bY(e){return function(){return e}}var wY=function(){};wY.thatReturns=bY,wY.thatReturnsFalse=bY(!1),wY.thatReturnsTrue=bY(!0),wY.thatReturnsNull=bY(null),wY.thatReturnsThis=function(){return this},wY.thatReturnsArgument=function(e){return e};var xY=wY,CY=vY,SY=mY,_Y=xY,OY=new RegExp("\r\n","g"),kY={"text/rtf":1,"text/html":1};function EY(e){if("file"==e.kind)return e.getAsFile()}var jY=function(){function e(e){this.data=e,this.types=e.types?SY(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return kY[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(OY,"\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(!CY.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(EY).filter(_Y.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),AY=jY,TY=BV,MY=/\.textClipping$/,PY={"text/plain":!0,"text/html":!0,"text/rtf":!0};var DY=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!st.FileReader||e.type&&!(e.type in PY))return void t("");if(""===e.type){var n="";return MY.test(e.name)&&(n=e.name.replace(MY,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?TY(!1,'We should be calling "FileReader.readAsText" which returns a string'):TY(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var LY=function(e){return"handled"===e||!0===e},IY=AY,RY=o$,NY=JU,BY=mZ,FY=dZ,zY=DY,HY=zZ,VY=bZ,KY=LY,$Y=TU;var UY={onDragEnd:function(e){e.exitCurrentMode(),WY(e)},onDrop:function(e,t){var n=new IY(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=FY(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=$Y(n),r=$Y(r);var a=$Y(BY(n));return HY(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&KY(e.props.handleDroppedFiles(o,i)))return;zY(i,(function(t){t&&e.update(ZY(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&KY(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=RY.moveText(e.getCurrentContent(),e.getSelection(),t);return NY.push(e,n,"insert-fragment")}(r,o)):e.update(ZY(r,o,n.getText()))),WY(e)}}}};function WY(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:VY(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function ZY(e,t,n){var r=RY.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return NY.push(e,r,"insert-fragment")}var qY=UY;var GY=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={},l=!1,u=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,n=function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&p(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return c[s]=o,n(s),s++},f.clearImmediate=d}function d(e){delete c[e]}function p(e){if(l)setTimeout(p,0,e);else{var n=c[e];if(n){l=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{d(e),l=!1}}}}}("undefined"==typeof self?st:self);var YY=st.setImmediate,XY=o$,JY=JU,QY=aq,eX=LY,tX=GY,nX=TU,rX=YY,oX="'",iX="/",aX=fZ.isBrowser("Firefox");function sX(e,t,n,r,o){var i=XY.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return JY.push(e,i,"insert-characters",o)}var cX=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&&eX(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(sX(n,r,n.getCurrentInlineStyle(),QY(n.getCurrentContent(),n.getSelection()),!0));var s,c=sX(n,r,n.getCurrentInlineStyle(),QY(n.getCurrentContent(),n.getSelection()),!1),l=!1;if(l||(l=tX(e._latestCommittedEditorState)),!l){var u=n.getBlockTree(a),f=c.getBlockTree(a);l=u.size!==f.size||u.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),l=n.get("start"),u=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==l||c!==u||null!=f&&u-l!=s-o}))}if(l||(s=r,l=aX&&(s==oX||s==iX)),l||(l=nX(c.getDirectionMap()).get(a)!==nX(n.getDirectionMap()).get(a)),l)return t.preventDefault(),c=JY.set(c,{forceSelection:!0}),void e.update(c);c=JY.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,rX((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},lX=JU,uX=Hq,fX=Vq;var dX=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&fX(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&uX(o,r.anchorNode)&&uX(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(lX.acceptSelection(i,s))}},pX=JU;var hX=function(e,t){e.setMode("composite"),e.update(pX.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},gX=aK;var vX=function(e){var t=e.getSelection();return t.isCollapsed()?null:gX(e.getCurrentContent(),t)},yX=vX;var mX=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(yX(e._latestEditorState))};var bX=o$,wX=JU,xX=EG,CX=vX,SX=LG,_X=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 OX=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(_X(i)){var a=i;n=SX(xX.getScrollParent(a))}var s=CX(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=bX.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return wX.push(e,t,"remove-range")}(r))}),0)}};var kX=function(e,t){e.setMode("drag"),t.preventDefault()};var EX=function(e){e._internalDrag=!0,e.setMode("drag")},jX=JU,AX=fZ;var TX=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),AX.isBrowser("Chrome < 60.0.3081.0")?e.update(jX.forceSelection(n,o)):e.update(jX.acceptSelection(n,o))}},MX=BV,PX=55296,DX=57343,LX=/[\uD800-\uDFFF]/;function IX(e){return PX<=e&&e<=DX}function RX(e){return LX.test(e)}function NX(e,t){return 1+IX(e.charCodeAt(t))}function BX(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!RX(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+=NX(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=NX(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=NX(e,i);return e.substring(o,i)}var FX={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=NX(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:NX,hasSurrogateUnit:RX,isCodeUnitInSurrogateRange:IX,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?MX(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):MX(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return PX<=n&&n<=56319&&56320<=r&&r<=DX},strlen:function(e){if(!RX(e))return e.length;for(var t=0,n=0;n<e.length;n+=NX(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 BX(e,t=t<n?t:n,r)},substr:BX},zX=FX,HX=xY;function VX(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var KX="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];VX.apply(void 0,[t].concat(r))}}:HX,$X=KX,UX=$X;var WX=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&UX(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})},ZX=o$,qX=L$("draft_tree_data_support");var GX=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(qX&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(qX)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var l=o.getBlockForKey(c.nextSibling);if(!l||0===l.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return ZX.removeRange(o,i,n)},YX=JU,XX=zX,JX=WX,QX=GX;var eJ=function(e){var t=QX(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return JX(e,i?XX.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return YX.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},tJ=o$,nJ=MZ,rJ=JU,oJ=rq.notEmptyKey,iJ=mZ,aJ=eJ,sJ=TU,cJ=fZ.isEngine("Gecko");var lJ=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,l=e._latestEditorState,u=sJ(iJ(r)),f=nJ.decode(u),d=f.blockKey,p=f.decoratorKey,h=f.leafKey,g=l.getBlockTree(d).getIn([p,"leaves",h]),v=g.start,y=g.end,m=l.getCurrentContent(),b=m.getBlockForKey(d),w=b.getText().slice(v,y);if(c.endsWith("\n\n")&&(c=c.slice(0,-1)),c!==w){var x,C,S,_,O=l.getSelection(),k=O.merge({anchorOffset:v,focusOffset:y,isBackward:!1}),E=b.getEntityAt(v),j=oJ(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",M=tJ.replaceText(m,k,c,b.getInlineStyleAt(v),A?b.getEntityAt(v):null);if(cJ)x=n.anchorOffset,C=n.focusOffset,_=(S=v+Math.min(x,C))+Math.abs(x-C),x=S,C=_;else{var P=c.length-w.length;S=O.getStartOffset(),_=O.getEndOffset(),x=o?_+P:S,C=_+P}var D=M.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:O.merge({anchorOffset:x,focusOffset:C})});e.update(rJ.push(l,D,T))}else{var L=t.nativeEvent.inputType;if(L){var I=function(e,t){return"deleteContentBackward"===e?aJ(t):t}(L,l);if(I!==l)return e.restoreEditorDOM(),void e.update(I)}}}},uJ=PZ;var fJ=function(e){return e.which===uJ.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},dJ=fJ,pJ=fZ.isPlatform("Mac OS X"),hJ={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return pJ&&e.altKey},usesMacOSHeuristics:function(){return pJ},hasCommandModifier:function(e){return pJ?!!e.metaKey&&!e.altKey:hJ.isCtrlKeyCommand(e)},isSoftNewlineEvent:dJ},gJ=hJ,vJ=o$,yJ=JU,mJ=aK,bJ=TU,wJ=null,xJ={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=bJ(r),wJ=mJ(t,r);var s=vJ.removeRange(t,r,"forward");return s===t?e:yJ.push(e,s,"remove-range")},paste:function(e){if(!wJ)return e;var t=vJ.replaceWithFragment(e.getCurrentContent(),e.getSelection(),wJ);return yJ.push(e,t,"insert-fragment")}},CJ=BV;var SJ=fZ.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?CJ(!1,"Found an unexpected detached subtree when getting range client rects."):CJ(!1)}:function(e){return Array.from(e.getClientRects())},_J=SJ,OJ=zX,kJ=dZ,EJ=_J,jJ=BV;function AJ(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 TJ(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 MJ=function(e){e.collapsed||("production"!==process.env.NODE_ENV?jJ(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):jJ(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=kJ(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?jJ(!1,"Missing document.body"):jJ(!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);AJ(EJ(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?jJ(!1,"Found unexpected detached subtree when traversing."):jJ(!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&&OJ.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!AJ(EJ(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=TJ(i=i.childNodes[c])}return e.setStart(r,o),e},PJ=JU,DJ=MJ,LJ=GZ,IJ=WX,RJ=GX;var NJ=function(e,t){var n=RJ(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return IJ(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=DJ(r),LJ(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:PJ.push(e,n,"remove-range")},BJ="['‘’]",FJ="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),zJ=new RegExp("^(?:"+FJ+")*(?:"+BJ+"|(?!"+FJ+").)*(?:(?!"+FJ+").)"),HJ=new RegExp("(?:(?!"+FJ+").)(?:"+BJ+"|(?!"+FJ+").)*(?:"+FJ+")*$");function VJ(e,t){var n=t?HJ.exec(e):zJ.exec(e);return n?n[0]:e}var KJ={getBackward:function(e){return VJ(e,!0)},getForward:function(e){return VJ(e,!1)}},$J=KJ,UJ=JU,WJ=WX,ZJ=GX;var qJ=function(e){var t=ZJ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return WJ(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=$J.getBackward(o);return WJ(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:UJ.push(e,t,"remove-range")},GJ=$X;var YJ=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&GJ(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})},XJ=KJ,JJ=JU,QJ=YJ,eQ=GX;var tQ=function(e){var t=eQ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=XJ.getForward(o);return QJ(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:JJ.push(e,t,"remove-range")},nQ=o$,rQ=JU;var oQ=JU;var iQ=JU;var aQ=JU,sQ=zX,cQ=YJ,lQ=GX;var uQ=function(e){var t=lQ(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return cQ(e,i?sQ.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return aQ.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},fQ=o$,dQ=JU,pQ=aK;var hQ=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=pQ(a,r),l=fQ.removeRange(a,r,"backward"),u=l.getSelectionAfter(),f=u.getAnchorOffset()-1,d=u.merge({anchorOffset:f,focusOffset:f}),p=fQ.replaceWithFragment(l,d,c),h=dQ.push(e,p,"insert-fragment");return dQ.acceptSelection(h,o)},gQ=JU;var vQ=function(e,t,n){var r=gQ.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(gQ.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(gQ.set(r,{nativelyRenderedContent:o}))}},yQ=o$,mQ=JU,bQ=PZ,wQ=xJ,xQ=fZ,CQ=LY,SQ=NJ,_Q=qJ,OQ=tQ,kQ=function(e){var t=nQ.splitBlock(e.getCurrentContent(),e.getSelection());return rQ.push(e,t,"split-block")},EQ=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return oQ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},jQ=function(e){var t=e.getSelection(),n=t.getStartKey();return iQ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},AQ=eJ,TQ=uQ,MQ=hQ,PQ=vQ,DQ=gJ.isOptionKeyCommand,LQ=xQ.isBrowser("Chrome");var IQ=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 bQ.RETURN:if(t.preventDefault(),e.props.handleReturn&&CQ(e.props.handleReturn(t,r)))return;break;case bQ.ESC:if(t.preventDefault(),o("onEscape"))return;break;case bQ.TAB:if(o("onTab"))return;break;case bQ.UP:if(o("onUpArrow"))return;break;case bQ.RIGHT:if(o("onRightArrow"))return;break;case bQ.DOWN:if(o("onDownArrow"))return;break;case bQ.LEFT:if(o("onLeftArrow"))return;break;case bQ.SPACE:LQ&&DQ(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!CQ(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return mQ.redo(t);case"delete":return TQ(t);case"delete-word":return OQ(t);case"backspace":return AQ(t);case"backspace-word":return _Q(t);case"backspace-to-start-of-line":return SQ(t,n);case"split-block":return kQ(t);case"transpose-characters":return MQ(t);case"move-selection-to-start-of-block":return jQ(t);case"move-selection-to-end-of-block":return EQ(t);case"secondary-cut":return wQ.cut(t);case"secondary-paste":return wQ.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else PQ(t,r,e.update);else if(n===bQ.SPACE&&LQ&&DQ(t)){var s=yQ.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(mQ.push(r,s,"insert-characters"))}};var RQ=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),NQ=RQ,BQ=BV,FQ=fZ.isBrowser("IE <= 9");var zQ=function(e){var t,n=null;return!FQ&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?BQ(!1,"Missing doc.documentElement"):BQ(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},HQ=pZ;var VQ=function(e){return!(!e||!e.ownerDocument)&&(HQ(e)&&"A"===e.nodeName)},KQ=pZ;var $Q,UQ=function(e){return!(!e||!e.ownerDocument)&&(KQ(e)&&"IMG"===e.nodeName)};function WQ(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}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 qQ=JH,GQ=pV,YQ=EV,XQ=TW,JQ=M$,QQ=NQ,e1=EW,t1=qV,n1=zQ,r1=L$,o1=zH,i1=o1.List,a1=o1.Map,s1=o1.OrderedSet,c1=VQ,l1=Iq,u1=LZ,f1=UQ,d1=r1("draft_tree_data_support"),p1=new RegExp("\r","g"),h1=new RegExp("\n","g"),g1=new RegExp("^\n","g"),v1=new RegExp(" ","g"),y1=new RegExp(" ?","g"),m1=new RegExp("​?","g"),b1=["bold","bolder","500","600","700","800","900"],w1=["light","lighter","normal","100","200","300","400"],x1=["className","href","rel","target","title"],C1=["alt","className","height","src","width"],S1=(ZQ($Q={},e1("public/DraftStyleDefault/depth0"),0),ZQ($Q,e1("public/DraftStyleDefault/depth1"),1),ZQ($Q,e1("public/DraftStyleDefault/depth2"),2),ZQ($Q,e1("public/DraftStyleDefault/depth3"),3),ZQ($Q,e1("public/DraftStyleDefault/depth4"),4),$Q),_1=a1({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),O1=function(e){if(u1(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},k1=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(S1).some((function(n){e.classList.contains(n)&&(t=S1[n])})),t},E1=function(e){if(!c1(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 QQ(t.href);return!0}catch(e){return!1}},j1=function(e){if(!f1(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},A1=function(e,t){if(!u1(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){b1.indexOf(r)>=0?e.add("BOLD"):w1.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"))}))},T1=function(e){return"ul"===e||"ol"===e},M1=function(){function e(e,t){ZQ(this,"characterList",i1()),ZQ(this,"currentBlockType","unstyled"),ZQ(this,"currentDepth",0),ZQ(this,"currentEntity",null),ZQ(this,"currentText",""),ZQ(this,"wrapper",null),ZQ(this,"blockConfigs",[]),ZQ(this,"contentBlocks",[]),ZQ(this,"entityMap",JQ),ZQ(this,"blockTypeMap",void 0),ZQ(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=i1(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=JQ,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],s1())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(d1?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=WQ({key:e.key||t1(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:i1(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=i1(),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||T1(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;T1(i)&&(this.wrapper=i,T1(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(j1(o))this._addImgNode(o,t);else if(E1(o))this._addAnchorNode(o,n,t);else{var l=t;_1.has(i)&&(l=l.add(_1.get(i))),l=A1(o,l);var u=O1(o);null!=u&&(l=l.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),l))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,d=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!d1&&u1(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var p=o;this.currentDepth=k1(p,this.currentDepth)}var h=t1(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:c})),this.currentDepth=f,this.wrapper=d}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=qQ.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=i1()):(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(g1,"")).replace(h1," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){l1(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(f1(e)){var n=e,r={};C1.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),r1("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(c1(e)){var r=e,o={};x1.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new QQ(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=i1(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new YQ(WQ({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return i1(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 GQ(WQ({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=i1(),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}(),P1=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:XQ,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:n1)(e=e.trim().replace(p1,"").replace(v1," ").replace(y1,"").replace(m1,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),a1(t)}(t);return new M1(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function D1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L1=pV,I1=EV,R1=P1,N1=qV,B1=zQ,F1=L$,z1=zH,H1=R$,V1=z1.List,K1=z1.Repeat,$1=F1("draft_tree_data_support"),U1=$1?I1:L1,W1={processHTML:function(e,t){return R1(e,B1,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=H1(r);var i=N1(),a={key:i,type:n,text:r,characterList:V1(K1(t,r.length))};if($1&&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){D1(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new U1(a)),e}),[])}};var Z1=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})},q1=o$,G1=JU,Y1=Z1,X1=TU,J1={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 J1.toggleInlineStyle(e,"BOLD");case"italic":return J1.toggleInlineStyle(e,"ITALIC");case"underline":return J1.toggleInlineStyle(e,"UNDERLINE");case"code":return J1.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return J1.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return J1.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=q1.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=G1.push(e,t,"insert-characters");return G1.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 G1.push(e,a,"remove-range")}var s=J1.tryToRemoveBlockStyle(e);return s?G1.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=q1.removeRange(n,a,"forward");return s!==n?G1.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 l=Y1(i,r,e.shiftKey?-1:1,n);return G1.push(t,l,"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=X1(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 l=i.getBlockForKey(r).getType()===t?"unstyled":t;return G1.push(e,q1.setBlockType(i,a,l),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?J1.toggleBlockType(e,"code-block"):J1.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return G1.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?q1.removeInlineStyle(i,n,t):q1.applyInlineStyle(i,n,t),G1.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=q1.applyEntity(e.getCurrentContent(),t,n);return G1.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 q1.setBlockType(o,t,"unstyled")}return null}},Q1=J1,e0=/\r\n?|\n/g;var t0=VH,n0=JH,r0=AY,o0=o$,i0=W1,a0=JU,s0=Q1,c0=aq,l0=DY,u0=LY,f0=function(e){return e.split(e0)};function d0(e,t,n){var r=o0.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return a0.push(e,r.set("entityMap",n),"insert-fragment")}var p0=function(e,t){t.preventDefault();var n=new r0(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&u0(e.props.handlePastedFiles(r)))return;return void l0(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=f0(t),i=n0.create({style:n.getCurrentInlineStyle(),entity:c0(n.getCurrentContent(),n.getSelection())}),a=s0.getCurrentBlockType(n),s=i0.processText(r,i,a),c=t0.createFromArray(s),l=o0.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(a0.push(n,l,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),c=e._latestEditorState;if(e.props.formatPastedText){var l=e.props.formatPastedText(a,s);a=l.text,s=l.html}if(!e.props.handlePastedText||!u0(e.props.handlePastedText(a,s,c))){if(a&&(i=f0(a)),!e.props.stripPastedStyles){var u,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(u=s)||void 0===u?void 0:u.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update(d0(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(d0(e._latestEditorState,f));if(s){var d=i0.processHTML(s,e.props.blockRenderMap);if(d){var p=d.contentBlocks,h=d.entityMap;if(p){var g=t0.createFromArray(p);return void e.update(d0(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var v=n0.create({style:c.getCurrentInlineStyle(),entity:c0(c.getCurrentContent(),c.getSelection())}),y=s0.getCurrentBlockType(c),m=i0.processText(i,v,y),b=t0.createFromArray(m);e.update(d0(e._latestEditorState,b))}}},h0=fZ,g0=cX,v0=dX,y0=hX,m0=mX,b0=OX,w0=kX,x0=EX,C0=TX,S0=lJ,_0=IQ,O0=p0,k0=nq,E0=h0.isBrowser("Chrome"),j0=h0.isBrowser("Firefox"),A0=E0||j0?k0:function(e){},T0={onBeforeInput:g0,onBlur:v0,onCompositionStart:y0,onCopy:m0,onCut:b0,onDragOver:w0,onDragStart:x0,onFocus:C0,onInput:S0,onKeyDown:_0,onPaste:O0,onSelect:k0,onMouseUp:A0,onKeyUp:A0},M0=r.unstable_flushControlled;var P0=t,D0=EW,L0=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=D0({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return P0.createElement("div",{className:t},P0.createElement("div",{className:D0("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(P0.Component),I0=L0,R0=gJ,N0=PZ,B0=fZ,F0=B0.isPlatform("Mac OS X"),z0=F0&&B0.isBrowser("Firefox < 29"),H0=R0.hasCommandModifier,V0=R0.isCtrlKeyCommand;function K0(e){return F0&&e.altKey||V0(e)}var $0=function(e){switch(e.keyCode){case 66:return H0(e)?"bold":null;case 68:return V0(e)?"delete":null;case 72:return V0(e)?"backspace":null;case 73:return H0(e)?"italic":null;case 74:return H0(e)?"code":null;case 75:return F0&&V0(e)?"secondary-cut":null;case 77:case 79:return V0(e)?"split-block":null;case 84:return F0&&V0(e)?"transpose-characters":null;case 85:return H0(e)?"underline":null;case 87:return F0&&V0(e)?"backspace-word":null;case 89:return V0(e)?F0?"secondary-paste":"redo":null;case 90:return function(e){return H0(e)?e.shiftKey?"redo":"undo":null}(e)||null;case N0.RETURN:return"split-block";case N0.DELETE:return function(e){return!F0&&e.shiftKey?null:K0(e)?"delete-word":"delete"}(e);case N0.BACKSPACE:return function(e){return H0(e)&&F0?"backspace-to-start-of-line":K0(e)?"backspace-word":"backspace"}(e);case N0.LEFT:return z0&&H0(e)?"move-selection-to-start-of-block":null;case N0.RIGHT:return z0&&H0(e)?"move-selection-to-end-of-block":null;default:return null}},U0=lT;function W0(){return W0=U0||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W0.apply(this,arguments)}function Z0(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){G0(e,t,n[t])}))}return e}function q0(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var X0=TW,J0=MW,Q0=_q,e2=pY,t2=qY,n2=T0,r2=M0,o2=I0,i2=Rq,a2=JU,s2=t,c2=vG,l2=EG,u2=EW,f2=qV,d2=$0,p2=LG,h2=L$,g2=BV,v2=LZ,y2=TU,m2=fZ.isBrowser("IE"),b2=!m2,w2={edit:n2,composite:Q0,drag:t2,cut:null,render:null},x2=!1,C2=function(e){function t(){return e.apply(this,arguments)||this}Y0(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}(s2.Component),S2=function(e){function t(t){var n;return G0(q0(n=e.call(this,t)||this),"_blockSelectEvents",void 0),G0(q0(n),"_clipboard",void 0),G0(q0(n),"_handler",void 0),G0(q0(n),"_dragCount",void 0),G0(q0(n),"_internalDrag",void 0),G0(q0(n),"_editorKey",void 0),G0(q0(n),"_placeholderAccessibilityID",void 0),G0(q0(n),"_latestEditorState",void 0),G0(q0(n),"_latestCommittedEditorState",void 0),G0(q0(n),"_pendingStateFromBeforeInput",void 0),G0(q0(n),"_onBeforeInput",void 0),G0(q0(n),"_onBlur",void 0),G0(q0(n),"_onCharacterData",void 0),G0(q0(n),"_onCompositionEnd",void 0),G0(q0(n),"_onCompositionStart",void 0),G0(q0(n),"_onCopy",void 0),G0(q0(n),"_onCut",void 0),G0(q0(n),"_onDragEnd",void 0),G0(q0(n),"_onDragOver",void 0),G0(q0(n),"_onDragStart",void 0),G0(q0(n),"_onDrop",void 0),G0(q0(n),"_onInput",void 0),G0(q0(n),"_onFocus",void 0),G0(q0(n),"_onKeyDown",void 0),G0(q0(n),"_onKeyPress",void 0),G0(q0(n),"_onKeyUp",void 0),G0(q0(n),"_onMouseDown",void 0),G0(q0(n),"_onMouseUp",void 0),G0(q0(n),"_onPaste",void 0),G0(q0(n),"_onSelect",void 0),G0(q0(n),"editor",void 0),G0(q0(n),"editorContainer",void 0),G0(q0(n),"focus",void 0),G0(q0(n),"blur",void 0),G0(q0(n),"setMode",void 0),G0(q0(n),"exitCurrentMode",void 0),G0(q0(n),"restoreEditorDOM",void 0),G0(q0(n),"setClipboard",void 0),G0(q0(n),"getClipboard",void 0),G0(q0(n),"getEditorKey",void 0),G0(q0(n),"update",void 0),G0(q0(n),"onDragEnter",void 0),G0(q0(n),"onDragLeave",void 0),G0(q0(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),G0(q0(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=l2.getScrollParent(o),a=e||p2(i),s=a.x,c=a.y;v2(o)||("production"!==process.env.NODE_ENV?g2(!1,"editorNode is not an HTMLElement"):g2(!1)),o.focus(),i===window?window.scrollTo(s,c):c2.setTop(i,c),r||n.update(a2.forceSelection(t,t.getSelection()))}})),G0(q0(n),"blur",(function(){var e=n.editor;e&&(v2(e)||("production"!==process.env.NODE_ENV?g2(!1,"editorNode is not an HTMLElement"):g2(!1)),e.blur())})),G0(q0(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=Z0({},w2.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=Z0({},w2,{edit:a});n._handler=s[e]})),G0(q0(n),"exitCurrentMode",(function(){n.setMode("edit")})),G0(q0(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),G0(q0(n),"setClipboard",(function(e){n._clipboard=e})),G0(q0(n),"getClipboard",(function(){return n._clipboard})),G0(q0(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),G0(q0(n),"onDragEnter",(function(){n._dragCount++})),G0(q0(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||f2(),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}Y0(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&&(r2?r2((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:y2(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return s2.createElement(o2,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,l=e.textAlignment,u=e.textDirectionality,f=u2({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===l,"DraftEditor/alignRight":"right"===l,"DraftEditor/alignCenter":"center"===l}),d=this.props.role||"textbox",p="combobox"===d?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:Z0({},J0,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:u};return s2.createElement("div",{className:f},this._renderPlaceholder(),s2.createElement("div",{className:u2("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},s2.createElement("div",{"aria-activedescendant":c?null:this.props.ariaActiveDescendantID,"aria-autocomplete":c?null:this.props.ariaAutoComplete,"aria-controls":c?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":c?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":c?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:u2({notranslate:!c,"public/DraftEditor/content":!0}),contentEditable:!c,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:c?null:d,spellCheck:b2&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},s2.createElement(C2,{editor:this,editorState:a}),s2.createElement(e2,W0({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!x2&&h2("draft_ods_enabled")&&(x2=!0,i2.initODS()),this.setMode("edit"),m2&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):st.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(s2.Component);G0(S2,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:X0,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:d2,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var _2=S2,O2={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},k2=O2,E2=zX.strlen;var j2=zX,A2=QH,T2=function(e,t){return e===t},M2=function(e){return!!e},P2=[];var D2=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 A2(o,T2,M2,(function(t,o){var i=e.getText();r.push({offset:j2.strlen(i.slice(0,t)),length:j2.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(P2,n.toJS())};function L2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I2=pV,R2=EV,N2=O2,B2=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:E2(i.slice(0,r)),length:E2(i.slice(r,o)),key:Number(t[k2.stringify(a)])})})),n},F2=D2,z2=BV,H2=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:F2(e),entityRanges:B2(e,t),data:e.getData().toObject()}},V2=function(e,t,n,r){if(e instanceof I2)n.push(H2(e,t));else{e instanceof R2||("production"!==process.env.NODE_ENV?z2(!1,"block is not a BlockNode"):z2(!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){L2(e,t,n[t])}))}return e}({},H2(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},K2=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=N2.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),V2(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(N2.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function $2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){U2(e,t,n[t])}))}return e}function U2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W2=qV,Z2=BV,q2=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},G2={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?Z2(!1,"Invalid raw state"):Z2(!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?Z2(!1,"Invalid tree raw block"):Z2(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=$2({},e);q2(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?$2({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,$2({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=q2(e),o=e.depth||0,i=$2({},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:W2(),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)})),$2({},e,{blocks:t})}},Y2=$X,X2={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&&Y2(!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&&Y2(!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&&Y2(!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&&Y2(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&Y2(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&Y2(!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&&Y2(!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)})),l=c.find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return"production"!==process.env.NODE_ENV&&Y2(!0,"%s has no first child",r),!1;r=l.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&Y2(!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)}},J2=X2,Q2=JH,e5=zH.List;var t5=function(e,t){var n=e.map((function(e,n){var r=t[n];return Q2.create({style:e,entity:r})}));return e5(n)},n5=zX.substr;var r5=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=n5(e,0,t.offset).length,o=r+n5(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},o5=zX,i5=zH.OrderedSet,a5=o5.substr,s5=i5();var c5=function(e,t){var n=Array(e.length).fill(s5);return t&&t.forEach((function(t){for(var r=a5(e,0,t.offset).length,o=r+a5(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function l5(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){u5(e,t,n[t])}))}return e}function u5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f5=pV,d5=EV,p5=oU,h5=M$,g5=G2,v5=J2,y5=D$,m5=t5,b5=r5,w5=c5,x5=qV,C5=zH,S5=BV,_5=L$("draft_tree_data_support"),O5=C5.List,k5=C5.Map,E5=C5.OrderedMap,j5=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||x5(),data:k5(o),characterList:A5(e,t)}},A5=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return m5(w5(n,o||[]),b5(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return l5({},e,{key:t[e.key]})}))))},T5=function(e){return l5({},e,{key:e.key||x5()})},M5=function(e,t,n){var r=t.map((function(e){return l5({},e,{parentRef:n})}));return e.concat(r.reverse())},P5=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=_5&&!n?g5.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!_5)return function(e,t){return E5(e.map((function(e){var n=new f5(j5(e,t));return[n.getKey(),n]})))}(n?g5.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(T5).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?S5(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):S5(!1));var i=r.children.map(T5),a=new d5(l5({},j5(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:O5(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=M5([],i,a);s.length>0;){var c=s.pop(),l=c.parentRef,u=l.getChildKeys(),f=u.indexOf(c.key),d=Array.isArray(c.children);if(!d){d||("production"!==process.env.NODE_ENV?S5(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):S5(!1));break}var p=c.children.map(T5),h=new d5(l5({},j5(c,t),{parent:l.getKey(),children:O5(p.map((function(e){return e.key}))),prevSibling:0===f?null:u.get(f-1),nextSibling:f===u.size-1?null:u.get(f+1)}));n=n.set(h.getKey(),h),s=M5(s,p,h)}return n}),E5())}(r,t);return"production"!==process.env.NODE_ENV&&(v5.isValidTree(o)||("production"!==process.env.NODE_ENV?S5(!1,"Should be a valid tree"):S5(!1))),o},D5=_J;var L5=function(e){var t=D5(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 l=t[c];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),r=Math.max(r,l.right),o=Math.max(o,l.bottom),i=Math.min(i,l.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},I5=L5;var R5=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=I5(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},N5={Editor:_2,EditorBlock:dY,EditorState:JU,CompositeDecorator:OW,Entity:M$,EntityInstance:x$,BlockMapBuilder:VH,CharacterMetadata:JH,ContentBlock:pV,ContentState:oU,RawDraftContentState:{},SelectionState:D$,AtomicBlockUtils:CW,KeyBindingUtil:gJ,Modifier:o$,RichUtils:Q1,DefaultDraftBlockRenderMap:TW,DefaultDraftInlineStyle:MW,convertFromHTML:P1,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?S5(!1,"invalid RawDraftContentState"):S5(!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]=h5.__create(o,i,a||{})})),n}(e),n=P5(e,t),r=n.isEmpty()?new y5:y5.createEmpty(n.first().getKey());return new p5({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:K2,genKey:qV,getDefaultKeyBinding:$0,getVisibleSelectionRect:R5};const B5="FOUND_FIELD",F5="NOT_FOUND",z5="IMMUTABLE",H5=W.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),V5=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},K5=new N5.CompositeDecorator([{strategy:(e,t,n)=>V5(e,t,n,B5),component:({children:t})=>e.jsx(H5,{children:t})},{strategy:(e,t,n)=>V5(e,t,n,F5),component:({children:t})=>e.jsx(H5,{error:!0,children:t})}]),$5=(e,t,n)=>{const r=ut.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}},U5=(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=ut.find(t||[],{id:i})||{id:i,label:""},{label:c,isValid:l}=$5(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:l?B5:F5,mutability:z5,data:{id:i}}}o.text+=a}return N5.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return N5.EditorState.createWithContent(r,K5)},W5=(e,t=!0)=>{const n=e.getCurrentContent(),r=N5.convertToRaw(n);return t?(e=>{const t=e.blocks.map((t=>{const{text:n,entityRanges:r}=t;if(r.length<1)return n;const o=[];let i=0;return r.forEach((({key:t,offset:r,length:a})=>{r>i&&o.push(n.substr(i,r-i));const s=ut.get(e,`entityMap[${t}].data.id`,"unknown");o.push(`<<${s}>>`),i=r+a})),o.push(n.substr(i)),o.join("")}));return t.join(" ")})(r):r},Z5=e=>{const t=W5(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},q5=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new N5.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return N5.EditorState.forceSelection(e,o)},G5=(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)}}},Y5=e=>!!e||null!=e&&""!==e,X5=W.div((({theme:{input:e},backgroundColor:t,borderRadius:n,borderless:r,borderColor:o,textOnly:i,focused:a,invalid:s,disabled:c,hasLabel:l,pointer:u})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:l?48:40,height:l?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:u?"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})),an,cn,sn),J5=W.div((({readOnly:e})=>({display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",position:"relative","& > label, & > input":{pointerEvents:e?"none":void 0,caretColor:e?"transparent":void 0}}))),Q5=W.label((({theme:{font:e,input:t},filled:n,focused:r})=>({fontSize:n||r?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,position:"relative",top:n||r?void 0:1})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0})),(({theme:{input:e},focused:t})=>({color:t?e.labelColor.focused:void 0}))),e9=W.div((({theme:{font:e,input:t},invalid:n})=>({color:n?t.color.descriptionError:t.color.description,fontSize:e.size.sm,position:"absolute",left:0,top:"calc(100% + 4px)"})));var t9={Container:X5,Wrapper:J5,Label:Q5,Description:e9,useInputFocus:G5,isInputFilled:Y5};const n9=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:l,mergeFields:u=[],placeholder:f="Text here...",description:d,invalid:p,width:h,height:g,maxHeight:v,borderless:y=!1,noPadding:m=!1,readOnly:b=!1,displayMergedValues:w=!1,color:x,overflow:C,clampLines:S,label:_,disabled:O,borderRadius:k,backgroundColor:E,fontSize:j,textOnly:A,margin:T,marginLeft:M,marginRight:P,marginTop:D,marginBottom:L}=n,I=c(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","description","invalid","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,N]=t.useState((()=>U5(o,u,w))),{focused:B,handleFocus:F,handleBlur:z}=G5(s,l),[H,V]=t.useState(!1),K=t.useRef(null),$=t.useRef(),U=null!=v?v:g,W=U?U-(y?0:_?29:11):void 0,Z=e=>{N(e);const t=(e=>Z5(e).some((e=>e.type===F5)))(e);V(t);const n=W5(e),r=e.getLastChangeType();i&&i(n,t,r)},q=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=$5(e,t,r),l=c?B5:F5,u=i.createEntity(l,z5,{id:o}).getLastCreatedEntityKey(),f=N5.Modifier.insertText(i,a,s,void 0,u),d=N5.EditorState.push(n,f,"insert-characters");return N5.EditorState.forceSelection(d,f.getSelectionAfter())})(e,u,R,w);Z(t)},G=()=>{(null==K?void 0:K.current)&&K.current.focus();const e=q5(R);N(e)};t.useImperativeHandle(r,(()=>({insertField:q,focusAtEnd:G})));t.useEffect((()=>{W5(R)!==o&&(e=>{const t=R.getSelection(),n=U5(e,u,w),r=q5(n),o=t.getHasFocus()?r:n;Z(o)})(o)}),[o]),t.useEffect((()=>{$.current=u}),[]),t.useEffect((()=>{const{current:e}=$,t=ut.isEqual(e,u),n=Z5(R);if(!t&&n.length>0){$.current=u;const e=U5(o,u,w);Z(e)}}),[u]);return e.jsxs(r9,{onClick:e=>{b||e.stopPropagation();R.getSelection().getHasFocus()||G()},width:h,height:g,editorMaxHeight:W,borderless:y||A,noPadding:m||A,readOnly:b,color:x,overflow:C,clampLines:S,filled:Y5(o),invalid:p||H,textOnly:A,borderRadius:k,backgroundColor:E,fontSize:j,margin:T,marginLeft:M,marginRight:P,marginTop:D,marginBottom:L,focused:B,disabled:O,hasLabel:!!_,hideEditor:!Y5(o)&&!!_&&!B,children:[e.jsxs(J5,{readOnly:b,children:[_&&e.jsx(Q5,{filled:Y5(o),focused:B,disabled:O,children:_}),e.jsx(N5.Editor,Object.assign({ref:K,editorState:R,onChange:Z,placeholder:f,readOnly:b,handleReturn:e=>{const t=N5.RichUtils.insertSoftNewline(R);return e.shiftKey||!a?Z(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=N5.convertFromRaw({blocks:[o],entityMap:{}}),a=N5.EditorState.createWithContent(i,K5).getCurrentContent().getBlockMap(),s=N5.Modifier.replaceWithFragment(n,r,a);return N5.EditorState.push(t,s,"insert-fragment")})(e,n);return Z(r),"handled"},onFocus:F,onBlur:z},I))]}),d&&e.jsx(e9,{invalid:p,children:d})]})})),r9=W(X5)((({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:l})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!l||n||c?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}}));var o9={exports:{}};o9.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,l=[],u=!1,f=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):f=-1,l.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++f<t;)c&&c[f].run();f=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,o,i,a,s,c){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,o,i,a,s,c],f=0;(l=new Error(t.replace(/%s/g,(function(){return u[f++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}}).call(t,n(0))},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){var r=n(1);if("production"!==t.env.NODE_ENV){var o=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];o.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(0))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.format=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(6),a=l(i),s=l(n(7)),c=n(12);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={phoneNumber:r.props.value?(0,c.format)(r.props.value):"",cursorPosition:0,key:""},r.handleKeyDown=function(e){var t=e.key,n=e.currentTarget,o=n.selectionStart,i=n.selectionEnd;if(!(0,c.isInvalidKey)(t)){var a={start:o,end:i},s=(0,c.update)(r.state.phoneNumber,a,t),l=s.phoneNumber,u=void 0===l?"":l,f=s.cursorPosition,d=void 0===f?0:f;r.setState({phoneNumber:u,cursorPosition:d,key:t}),r.props.onChange(u)}},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.value!==e.value&&this.setState({phoneNumber:(0,c.format)(e.value),cursorPosition:0,key:""})}},{key:"componentDidUpdate",value:function(){var e=this,t=this.state.cursorPosition;this.textInput&&(navigator.userAgent.search("Chrome")>0&&window.requestAnimationFrame((function(){e.textInput.setSelectionRange(t,t)})),setTimeout((function(){e.textInput.setSelectionRange(t,t)}),20))}},{key:"render",value:function(){var e,t=this,n=this.state.phoneNumber,o=this.props.inputComponent,i=o?"innerRef":"ref",s=r({},this.props,(u(e={},i,(function(e){return t.textInput=e})),u(e,"type","tel"),u(e,"value",n),u(e,"onKeyDown",this.handleKeyDown),u(e,"onChange",(function(){})),e));return o?a.default.createElement(o,s):a.default.createElement("input",s)}}]),t}(i.Component);d.propTypes={inputComponent:s.default.oneOfType([s.default.instanceOf(i.Component),s.default.func]),onChange:s.default.func,value:s.default.string},d.defaultProps={onChange:function(){}},t.format=c.format,t.normalize=c.normalize,t.default=d},function(e,n){e.exports=t},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(8)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(11)()}).call(t,n(0))},function(e,t,n){(function(t){var r=n(1),o=n(2),i=n(4),a=n(9),s=n(3),c=n(10);e.exports=function(e,n){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",f="<<anonymous>>",d={array:v("array"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:g(r.thatReturnsNull),arrayOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<a.length;c++){var l=e(a,c,r,o,i+"["+c+"]",s);if(l instanceof Error)return l}return null}))},element:g((function(t,n,r,o,i){var a=t[n];return e(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,r,o){return y(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],c=m(a);if("object"!==c)return new h("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var l in a)if(a.hasOwnProperty(l)){var u=e(a,l,r,o,i+"."+l,s);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;return new h("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",w(o),n),r.thatReturnsNull}return g((function(t,n,r,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,o,i,s))return null;return new h("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return g((function(t,n,r,o,i){var a=t[n],c=m(a);if("object"!==c)return new h("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var l in e){var u=e[l];if(u){var f=u(a,l,r,o,i+"."+l,s);if(f)return f}}return null}))},exact:function(e){return g((function(t,n,r,o,i){var c=t[n],l=m(c);if("object"!==l)return new h("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");var u=a({},t[n],e);for(var f in u){var d=e[f];if(!d)return new h("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=d(c,f,r,o,i+"."+f,s);if(p)return p}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){this.message=e,this.stack=""}function g(e){if("production"!==t.env.NODE_ENV)var r={},a=0;function c(c,l,u,d,p,g,v){if(d=d||f,g=g||u,v!==s)if(n)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var y=d+":"+u;!r[y]&&a<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",g,d),r[y]=!0,a++)}return null==l[u]?c?null===l[u]?new h("The "+p+" `"+g+"` is marked as required in `"+d+"`, but its value is `null`."):new h("The "+p+" `"+g+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(l,u,d,p,g)}var l=c.bind(null,!1);return l.isRequired=c.bind(null,!0),l}function v(e){return g((function(t,n,r,o,i,a){var s=t[n];return m(s)!==e?new h("Invalid "+o+" `"+i+"` of type `"+b(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||e(t))return!0;var n=function(e){var t=e&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!y(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!y(i[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=c,d.PropTypes=d,d}}).call(t,n(0))},function(e,t,n){
|
|
38
|
+
*/;const SH=({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(_H,{onClick:()=>{nz(r),i(!0)},copied:o,children:o?e.jsx(fn,{name:"check-circle",color:a.success}):e.jsx(fn,{name:"copy",color:s})})},_H=W.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),OH=({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(kH,Object.assign({},i,{children:[e.jsx(EH,{backgroundColor:i.borderColor,children:t.toUpperCase()}),e.jsx(jH,{children:r}),e.jsx(SH,{content:r})]}))},kH=W.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),EH=W.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),jH=W.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),AH=W.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),cn),TH=W.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),MH=W.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),PH=W.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var DH={exports:{}};DH.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:Z(e)}function r(e){return s(e)?e:q(e)}function o(e){return c(e)?e:G(e)}function i(e){return a(e)&&!l(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function c(e){return!(!e||!e[p])}function l(e){return s(e)||c(e)}function u(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=l,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",v=5,y=1<<v,m=y-1,b={},w={value:!1},x={value:!1};function C(e){return e.value=!1,e}function S(e){e&&(e.value=!0)}function _(){}function O(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(j)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function j(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return P(e,t,0)}function M(e,t){return P(e,t,t)}function P(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,L=1,I=2,R="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",B=R||N;function F(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function H(){return{value:void 0,done:!0}}function V(e){return!!U(e)}function K(e){return e&&"function"==typeof e.next}function $(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(R&&e[R]||e[N]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function Z(e){return null==e?ae():a(e)?e.toSeq():le(e)}function q(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function G(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ce(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=L,F.ENTRIES=I,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(Z,n),Z.of=function(){return Z(arguments)},Z.prototype.toSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq {","}")},Z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},Z.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(q,Z),q.prototype.toKeyedSeq=function(){return this},t(G,Z),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},G.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t(Y,Z),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},Z.isSeq=ie,Z.Keyed=q,Z.Set=Y,Z.Indexed=G;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():K(e)?new oe(e).fromEntrySeq():V(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ce(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function le(e){var t=ue(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 ue(e){return W(e)?new te(e):K(e)?new oe(e):V(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function de(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new F((function(){var e=o[n?i-a:a];return a++>i?H():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):ve(t)?e.call(r,n,q(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?G(e).map(ge).toList():ve(e)?q(e).map(ge).toMap():e}function ve(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ye(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)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ye(o[1],e)&&(n||ye(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):o?!ye(t,e.get(r,b)):!ye(e.get(r,b),t))return f=!1,!1}));return f&&e.size===d}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function Ce(){throw TypeError("Abstract")}function Se(){}function _e(){}function Oe(){}Z.prototype[ee]=!0,t(te,G),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?H():z(e,o,n[t?r-o++:o++])}))},t(ne,q),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?H():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=$(this._iterable),r=0;if(K(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=$(this._iterable);if(!K(n))return new F(H);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,G),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,G),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ye(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new be(this._value,M(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ye(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ye(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?ye(this._value,e._value):me(e)},t(xe,G),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=M(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new F((function(){var a=o;return o+=t?-r:r,i>n?H():z(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},t(Ce,n),t(Se,Ce),t(_e,Ce),t(Oe,Ce),Ce.Keyed=Se,Ce.Indexed=_e,Ce.Set=Oe;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ee(e){return e>>>1&1073741824|3221225471&e}function je(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Fe?Ae(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ae(e){var t=Ve[e];return void 0===t&&(t=Te(e),He===ze&&(He=0,Ve={}),He++,Ve[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}function Me(e){var t;if(Re&&void 0!==(t=Ie.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Le(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Re)Ie.set(e,t);else{if(void 0!==Pe&&!1===Pe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(De)Object.defineProperty(e,Be,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Be]=t}}return t}var Pe=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ie,Re="function"==typeof WeakMap;Re&&(Ie=new WeakMap);var Ne=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,He=0,Ve={};function Ke(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function $e(e){return null==e?ot():Ue(e)&&!u(e)?e:ot().withMutations((function(t){var n=r(e);Ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ue(e){return!(!e||!e[Ze])}t($e,Se),$e.prototype.toString=function(){return this.__toString("Map {","}")},$e.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},$e.prototype.set=function(e,t){return it(this,e,t)},$e.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},$e.prototype.remove=function(e){return it(this,e,b)},$e.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},$e.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},$e.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=vt(this,Cn(e),t,n);return r===b?void 0:r},$e.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()},$e.prototype.merge=function(){return dt(this,void 0,arguments)},$e.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},$e.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]}))},$e.prototype.mergeDeep=function(){return dt(this,pt,arguments)},$e.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,ht(t),n)},$e.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]}))},$e.prototype.sort=function(e){return Vt(fn(this,e))},$e.prototype.sortBy=function(e,t){return Vt(fn(this,t,e))},$e.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},$e.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},$e.prototype.asImmutable=function(){return this.__ensureOwner()},$e.prototype.wasAltered=function(){return this.__altered},$e.prototype.__iterator=function(e,t){return new et(this,e,t)},$e.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},$e.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)},$e.isMap=Ue;var We,Ze="@@__IMMUTABLE_MAP__@@",qe=$e.prototype;function Ge(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(qe);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=C(w),a=C(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ge(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(S(s),S(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Ye(t,1<<a|1<<s,a===s?[ct(e,t,n+v,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function lt(e,t,n,r){e||(e=new _);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 ut(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];void 0!==u&&s!==r&&(o|=c,a[i++]=u)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(y),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function dt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(e){return pe(e)}))),o.push(c)}return gt(e,t,o)}function pt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ye(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 ye(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 vt(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,l=o?b:e.get(c,b),u=vt(l,t,n,r);return u===l?e:u===b?e.remove(c):(o?ot():e).set(c,u)}function yt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function mt(e,t,n,r){var o=r?e:O(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}qe[Ze]=!0,qe[g]=qe.remove,qe.removeIn=qe.deleteIn,Ge.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ye(n,o[i][0]))return o[i][1];return r},Ge.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,l=0,u=c.length;l<u&&!ye(r,c[l][0]);l++);var f=l<u;if(f?c[l][1]===o:s)return this;if(S(a),(s||!f)&&S(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return lt(e,c,r,o);var d=e&&e===this.ownerID,p=d?c:O(c);return f?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Ge(e,p)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0==(i&o)?r:this.nodes[yt(i&o-1)].get(e+v,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,l=this.bitmap,u=0!=(l&c);if(!u&&o===b)return this;var f=yt(l&c-1),d=this.nodes,p=u?d[f]:void 0,h=at(p,e,t+v,n,r,o,i,a);if(h===p)return this;if(!u&&h&&d.length>=Ct)return ft(e,d,l,s,h);if(u&&!h&&2===d.length&&st(d[1^f]))return d[1^f];if(u&&h&&1===d.length&&st(h))return h;var g=e&&e===this.ownerID,y=u?h?l:l^c:l|c,w=u?h?mt(d,f,h,g):wt(d,f,g):bt(d,f,h,g);return g?(this.bitmap=y,this.nodes=w,this):new Ye(e,y,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+v,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,l=this.nodes,u=l[s];if(c&&!u)return this;var f=at(u,e,t+v,n,r,o,i,a);if(f===u)return this;var d=this.count;if(u){if(!f&&--d<St)return ut(e,l,d,s)}else d++;var p=e&&e===this.ownerID,h=mt(l,s,f,p);return p?(this.count=d,this.nodes=h,this):new Xe(e,d,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ye(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:(S(a),S(i),ct(this,e,t,n,[r,o]));for(var c=this.entries,l=0,u=c.length;l<u&&!ye(r,c[l][0]);l++);var f=l<u;if(f?c[l][1]===o:s)return this;if(S(a),(s||!f)&&S(i),s&&2===u)return new Qe(e,this.keyHash,c[1^l]);var d=e&&e===this.ownerID,p=d?c:O(c);return f?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Je(e,this.keyHash,p)},Qe.prototype.get=function(e,t,n,r){return ye(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,c=ye(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(S(a),s?void S(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(S(i),ct(this,e,t,je(r),[r,o])))},Ge.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return H()};var xt=y/4,Ct=y/2,St=y/4;function _t(e){var t=Lt();if(null==e)return t;if(Ot(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ke(r),r>0&&r<y?Dt(0,r,v,null,new jt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Ot(e){return!(!e||!e[kt])}t(_t,_e),_t.of=function(){return this(arguments)},_t.prototype.toString=function(){return this.__toString("List [","]")},_t.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},_t.prototype.set=function(e,t){return It(this,e,t)},_t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},_t.prototype.insert=function(e,t){return this.splice(e,0,t)},_t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=v,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Lt()},_t.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])}))},_t.prototype.pop=function(){return Ft(this,0,-1)},_t.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])}))},_t.prototype.shift=function(){return Ft(this,1)},_t.prototype.merge=function(){return zt(this,void 0,arguments)},_t.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},_t.prototype.mergeDeep=function(){return zt(this,pt,arguments)},_t.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},_t.prototype.setSize=function(e){return Ft(this,0,e)},_t.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:Ft(this,T(e,n),M(t,n))},_t.prototype.__iterator=function(e,t){var n=0,r=Pt(this,t);return new F((function(){var t=r();return t===Mt?H():z(e,n++,t)}))},_t.prototype.__iterate=function(e,t){for(var n,r=0,o=Pt(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},_t.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)},_t.isList=Ot;var kt="@@__IMMUTABLE_LIST__@@",Et=_t.prototype;function jt(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=qe.setIn,Et.deleteIn=Et.removeIn=qe.removeIn,Et.update=qe.update,Et.updateIn=qe.updateIn,Et.mergeIn=qe.mergeIn,Et.mergeDeepIn=qe.mergeDeepIn,Et.withMutations=qe.withMutations,Et.asMutable=qe.asMutable,Et.asImmutable=qe.asImmutable,Et.wasAltered=qe.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-v,n))===a&&i)return this}if(i&&!o)return this;var s=Nt(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},jt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-v,n))===i&&o===this.array.length-1)return this}var a=Nt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var At,Tt,Mt={};function Pt(e,t){var n=e._origin,r=e._capacity,o=Ht(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):c(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,l=r-a;return l>y&&(l=y),function(){if(c===l)return Mt;var e=t?--l:c++;return s&&s[e]}}function c(e,o,i){var s,c=e&&e.array,l=i>n?0:n-i>>o,u=1+(r-i>>o);return u>y&&(u=y),function(){for(;;){if(s){var e=s();if(e!==Mt)return e;s=null}if(l===u)return Mt;var n=t?--u:l++;s=a(c&&c[n],o-v,i+(n<<o))}}}}function Dt(e,t,n,r,o,i,a){var s=Object.create(Et);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Lt(){return At||(At=Dt(0,0,v))}function It(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=C(x);return t>=Ht(e._capacity)?r=Rt(r,e.__ownerID,0,t,n,i):o=Rt(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 Rt(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 l=e&&e.array[s],u=Rt(l,t,n-v,r,o,i);return u===l?e:((a=Nt(e,t)).array[s]=u,a)}return c&&e.array[s]===o?e:(S(i),a=Nt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new jt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Ht(e._capacity))return e._tail;if(t<1<<e._level+v){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m],r-=v;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new _,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,l=e._root,u=0;a+u<0;)l=new jt(l&&l.array.length?[void 0,l]:[],r),u+=1<<(c+=v);u&&(a+=u,o+=u,s+=u,i+=u);for(var f=Ht(i),d=Ht(s);d>=1<<c+v;)l=new jt(l&&l.array.length?[l]:[],r),c+=v;var p=e._tail,h=d<f?Bt(e,s-1):d>f?new jt([],r):p;if(p&&d>f&&a<i&&p.array.length){for(var g=l=Nt(l,r),y=c;y>v;y-=v){var b=f>>>y&m;g=g.array[b]=Nt(g.array[b],r)}g.array[f>>>v&m]=p}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=d)a-=d,s-=d,c=v,l=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<f){for(u=0;l;){var w=a>>>c&m;if(w!==d>>>c&m)break;w&&(u+=(1<<c)*w),c-=v,l=l.array[w]}l&&a>o&&(l=l.removeBefore(r,c,a-u)),l&&d<f&&(l=l.removeAfter(r,c,d-u)),u&&(a-=u,s-=u)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=l,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,c,l,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],l=o(c);l.size>i&&(i=l.size),a(c)||(l=l.map((function(e){return pe(e)}))),r.push(l)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Ht(e){return e<y?0:e-1>>>v<<v}function Vt(e){return null==e?Ut():Kt(e)?e:Ut().withMutations((function(t){var n=r(e);Ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Kt(e){return Ue(e)&&u(e)}function $t(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 Ut(){return Tt||(Tt=$t(ot(),Lt()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=y&&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):$t(r,o)}function Zt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qt(e){this._iter=e,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===L?D:L,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(I,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,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(I,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return z(o,r?l:s++,u,i)}}))},o}function tn(e,t,n){var r=$e().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=(u(e)?Vt():$e()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var i=T(t,o),a=M(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var l=bn(e);return l.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(l.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),l.__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,l=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return l++,!1!==t(e,r?n:l-1,o)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)o.next();if(++c>s)return H();var e=o.next();return r||t===L?e:z(t,c-1,t===D?void 0:e.value[1],e)}))},l}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(I,o),s=!0;return new F((function(){if(!s)return H();var e=a.next();if(e.done)return e;var o=e.value,c=o[0],l=o[1];return t.call(n,l,c,i)?r===I?e:z(r,c,l,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,l){if(!s||!(s=t.call(n,e,i,l)))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(I,i),c=!0,l=0;return new F((function(){var e,i,u;do{if((e=s.next()).done)return r||o===L?e:z(o,l++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],u=f[1],c&&(c=t.call(n,u,i,a))}while(c);return o===I?e:z(o,i,u,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 l=new te(o);return n?l=l.toKeyedSeq():c(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}function cn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function c(e,l){var u=this;e.__iterate((function(e,o){return(!t||l<t)&&a(e)?c(e,l+1):!1===r(e,n?o:i++,u)&&(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 l=e.value;if(r===I&&(l=l[1]),t&&!(s.length<t)||!a(l))return n?e:z(r,c++,l,e);s.push(i),i=l.__iterator(r,o)}else i=s.pop()}return H()}))},r}function ln(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 un(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(L,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?q(i):c(e)?G(i):Y(i)}function dn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(L,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),$(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 vn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function yn(e){return Ke(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?q:c(e)?G:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function Cn(e){var t=$(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=$(n(e))}return t}function Sn(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=$e(i)},o=r.prototype=Object.create(_n);return o.constructor=r,r}t(Vt,$e),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):Ut()},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?$t(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Vt.isOrderedMap=Kt,Vt.prototype[h]=!0,Vt.prototype[g]=Vt.prototype.remove,t(Zt,q),Zt.prototype.get=function(e,t){return this._iter.get(e,t)},Zt.prototype.has=function(e){return this._iter.has(e)},Zt.prototype.valueSeq=function(){return this._iter.valueSeq()},Zt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Zt.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},Zt.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?yn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Zt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(L,t),r=t?yn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},Zt.prototype[h]=!0,t(qt,G),qt.prototype.includes=function(e){return this._iter.includes(e)},qt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Gt,Y),Gt.prototype.has=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,q),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){vn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){vn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},qt.prototype.cacheResult=Zt.prototype.cacheResult=Gt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Sn,Se),Sn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Sn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Sn.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},Sn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=On(this,ot()))},Sn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:On(this,n)},Sn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:On(this,t)},Sn.prototype.wasAltered=function(){return this._map.wasAltered()},Sn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Sn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Sn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?On(this,t,e):(this.__ownerID=e,this._map=t,this)};var _n=Sn.prototype;function On(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function kn(e){return e._name||e.constructor.name||"Record"}function En(e,t){try{t.forEach(jn.bind(void 0,e))}catch(e){}}function jn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function An(e){return null==e?Rn():Tn(e)&&!u(e)?e:Rn().withMutations((function(t){var n=i(e);Ke(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Pn])}_n[g]=_n.remove,_n.deleteIn=_n.removeIn=qe.removeIn,_n.merge=qe.merge,_n.mergeWith=qe.mergeWith,_n.mergeIn=qe.mergeIn,_n.mergeDeep=qe.mergeDeep,_n.mergeDeepWith=qe.mergeDeepWith,_n.mergeDeepIn=qe.mergeDeepIn,_n.setIn=qe.setIn,_n.update=qe.update,_n.updateIn=qe.updateIn,_n.withMutations=qe.withMutations,_n.asMutable=qe.asMutable,_n.asImmutable=qe.asImmutable,t(An,Oe),An.of=function(){return this(arguments)},An.fromKeys=function(e){return this(r(e).keySeq())},An.prototype.toString=function(){return this.__toString("Set {","}")},An.prototype.has=function(e){return this._map.has(e)},An.prototype.add=function(e){return Ln(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Ln(this,this._map.remove(e))},An.prototype.clear=function(){return Ln(this,this._map.clear())},An.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},An.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},An.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},An.prototype.merge=function(){return this.union.apply(this,arguments)},An.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},An.prototype.sort=function(e){return Nn(fn(this,e))},An.prototype.sortBy=function(e,t){return Nn(fn(this,t,e))},An.prototype.wasAltered=function(){return this._map.wasAltered()},An.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},An.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},An.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},An.isSet=Tn;var Mn,Pn="@@__IMMUTABLE_SET__@@",Dn=An.prototype;function Ln(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function In(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Rn(){return Mn||(Mn=In(ot()))}function Nn(e){return null==e?Vn():Bn(e)?e:Vn().withMutations((function(t){var n=i(e);Ke(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&u(e)}Dn[Pn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=qe.withMutations,Dn.asMutable=qe.asMutable,Dn.asImmutable=qe.asImmutable,Dn.__empty=Rn,Dn.__make=In,t(Nn,An),Nn.of=function(){return this(arguments)},Nn.fromKeys=function(e){return this(r(e).keySeq())},Nn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Nn.isOrderedSet=Bn;var Fn,zn=Nn.prototype;function 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(Ut()))}function Kn(e){return null==e?Gn():$n(e)?e:Gn().unshiftAll(e)}function $n(e){return!(!e||!e[Wn])}zn[h]=!0,zn.__empty=Vn,zn.__make=Hn,t(Kn,_e),Kn.of=function(){return this(arguments)},Kn.prototype.toString=function(){return this.__toString("Stack [","]")},Kn.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Kn.prototype.peek=function(){return this._head&&this._head.value},Kn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):qn(e,t)},Kn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ke(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):qn(t,n)},Kn.prototype.pop=function(){return this.slice(1)},Kn.prototype.unshift=function(){return this.push.apply(this,arguments)},Kn.prototype.unshiftAll=function(e){return this.pushAll(e)},Kn.prototype.shift=function(){return this.pop.apply(this,arguments)},Kn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gn()},Kn.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(M(t,this.size)!==this.size)return _e.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):qn(r,o)},Kn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?qn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Kn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Kn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return H()}))},Kn.isStack=$n;var Un,Wn="@@__IMMUTABLE_STACK__@@",Zn=Kn.prototype;function qn(e,t,n,r){var o=Object.create(Zn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gn(){return Un||(Un=qn(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}Zn[Wn]=!0,Zn.withMutations=qe.withMutations,Zn.asMutable=qe.asMutable,Zn.asImmutable=qe.asImmutable,Zn.wasAltered=qe.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ke(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new qt(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 Zt(this,!0)},toMap:function(){return $e(this.toKeyedSeq())},toObject:function(){Ke(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Vt(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Gt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Kn(s(this)?this.valueSeq():this)},toList:function(){return _t(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 ye(t,e)}))},entries:function(){return this.__iterator(I)},every:function(e,t){Ke(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ke(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ke(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ke(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,ln(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 ye(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Cn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?nr(e):ir)},minBy:function(e,t){return dn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[B]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ye(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ye(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return O(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+cr(je(e),je(t))|0}:function(e,t){r=r+cr(je(e),je(t))|0}:t?function(e){r=31*r+je(e)|0}:function(e){r=r+je(e)|0});return sr(o,r)}function sr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=ke(t^t>>>13,3266489909))^t>>>16)}function cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[d]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new Zt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(O(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,cn(this,e,!1))},get:function(e,t){return(e=E(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=E(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,un(this,e))},interleave:function(){var e=[this].concat(O(arguments)),t=hn(this.toSeq(),G.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(O(arguments))))},zipWith:function(e){var t=O(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(q,r.prototype),Yn(G,o.prototype),Yn(Y,i.prototype),Yn(Se,r.prototype),Yn(_e,o.prototype),Yn(Oe,i.prototype);var lr={Iterable:n,Seq:Z,Collection:Ce,Map:$e,OrderedMap:Vt,List:_t,Stack:Kn,Set:An,OrderedSet:Nn,Record:Sn,Range:xe,Repeat:be,is:ye,fromJS:pe};return lr}();var LH=DH.exports,IH=LH.OrderedMap,RH={createFromArray:function(e){return IH(e.map((function(e){return[e.getKey(),e]})))}};var NH=LH,BH=NH.Map,FH=NH.OrderedSet,zH=NH.Record,HH=FH(),VH={style:HH,entity:null},KH=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 $H;var t=BH({style:HH,entity:null}).merge(e),n=UH.get(t);if(n)return n;var o=new r(t);return UH=UH.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?FH(t):t,entity:Array.isArray(n)?FH(n):n})},r}(zH(VH)),$H=new KH,UH=BH([[BH(VH),$H]]);KH.EMPTY=$H;var WH=KH;var ZH=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 qH=WH,GH=ZH,YH=LH,XH=YH.List,JH=YH.Map,QH=YH.OrderedSet,eV=YH.Record,tV=YH.Repeat,nV=QH(),rV=eV({key:"",type:"unstyled",text:"",characterList:XH(),depth:0,data:JH()}),oV=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=XH(tV(qH.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():nV},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){GH(this.getCharacterList(),iV,e,t)},o.findEntityRanges=function(e,t){GH(this.getCharacterList(),aV,e,t)},r}(rV);function iV(e,t){return e.getStyle()===t.getStyle()}function aV(e,t){return e.getEntity()===t.getEntity()}var sV=oV;var cV=WH,lV=ZH,uV=LH,fV=uV.List,dV=uV.Map,pV=uV.OrderedSet,hV=uV.Record,gV=uV.Repeat,vV=pV(),yV={parent:null,characterList:fV(),data:dV(),depth:0,key:"",text:"",type:"unstyled",children:fV(),prevSibling:null,nextSibling:null},mV=function(e,t){return e.getStyle()===t.getStyle()},bV=function(e,t){return e.getEntity()===t.getEntity()},wV=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yV;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=fV(gV(cV.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():vV},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){lV(this.getCharacterList(),mV,e,t)},o.findEntityRanges=function(e,t){lV(this.getCharacterList(),bV,e,t)},r}(hV(yV)),xV=wV,CV=WH,SV=LH.Map;function _V(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),l=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(SV([[s,o.get(s)]])).map((function(e,t){var o,l;i===s?(o=a,l=c):(o=t===i?a:0,l=t===s?c:e.getLength());for(var u,f=e.getCharacterList();o<l;)u=f.get(o),f=f.set(o,r?CV.applyStyle(u,n):CV.removeStyle(u,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(l),selectionBefore:t,selectionAfter:t})}var OV={add:function(e,t,n){return _V(e,t,n,!0)},remove:function(e,t,n){return _V(e,t,n,!1)}},kV=WH;var EV=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,kV.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},jV=LH;var AV=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(jV.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return EV(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},TV={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,l=null,u=0;u<i.length;u++){if(e<(a=s+i[u].length)&&s<t)null!==c||(c=s),l=a;else if(null!==c)break;s=a}var f=r+n.length,d=c===r,p=l===f;return(!d&&p||d&&!p)&&("forward"===o?l!==f&&l++:c!==r&&c--),{start:c,end:l}}},MV="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var PV=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(MV(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}},DV=PV;var LV=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?DV(!1,"Entity key not found in this range."):DV(!1)),n},IV=TV,RV=LV,NV=PV;function BV(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),l=e.__get(o).getMutability(),u=a?s:c;if("MUTABLE"===l)return n;var f=RV(t,o).filter((function(e){return u<=e.end&&u>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?NV(!1,"There should only be one entity range within this removal range."):NV(!1));var d=f[0];if("IMMUTABLE"===l)return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});i||(a?c=d.end:s=d.start);var p=IV.getRemovalRange(s,c,t.getText().slice(d.start,d.end),d.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var FV=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 l=r;if(s&&s===c)l=BV(e,t,l,o,s,!0,!0);else if(s&&c){var u=BV(e,t,l,o,s,!1,!0),f=BV(e,n,l,o,c,!1,!1);l=l.merge({anchorOffset:u.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var d=BV(e,t,l,o,s,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(c){var p=BV(e,n,l,o,c,!1,!1);l=l.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return l},zV={},HV=Math.pow(2,24);var VV=function(){for(var e;void 0===e||zV.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*HV).toString(32);return zV[e]=!0,e},KV=xV,$V=VV,UV=LH.OrderedMap,WV=function(e){return e.first()instanceof KV?function(e){var t,n={};return UV(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),l=r.getParentKey(),u=$V();if(n[i]=u,a&&(e.get(a)?e.setIn([a,"prevSibling"],u):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],u):e.setIn([i,"prevSibling"],null)),l&&e.get(l)){var f=e.get(l).getChildKeys();e.setIn([l,"children"],f.set(f.indexOf(r.getKey()),u))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],u),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],u):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 UV(e.toArray().map((function(e){var t=$V();return[t,e.set("key",t)]})))}(e)},ZV=WH,qV=ZH,GV=PV;function YV(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,l=function(e,t,n){var r;return qV(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?GV(!1,"Removal range must exist within character list."):GV(!1)),r}(r,s,n),u=l.start,f=l.end;u<f;)c=r.get(u),r=r.set(u,ZV.applyEntity(c,null)),u++;return t.set("characterList",r)}return t}var XV=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=YV(r,s,a);c!==s&&(o[i]=c);var l=t.getEndKey(),u=t.getEndOffset(),f=n.get(l);i===l&&(f=c);var d=YV(r,f,u);return d!==f&&(o[l]=d),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},JV=WV,QV=XV,eK=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=QV(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),l=s.indexOf(o)+1;return JV(a.slice(c,l).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 tK=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},nK=RH,rK=xV,oK=tK,iK=PV,aK=WV,sK=LH.List,cK=function(e,t,n,r,o,i){var a=n.first()instanceof rK,s=[],c=r.size,l=n.get(o),u=r.first(),f=r.last(),d=f.getLength(),p=f.getKey(),h=a&&(!l.getChildKeys().isEmpty()||!u.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=nK.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),l=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([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var u=e.get(s).getChildKeys(),f=u.indexOf(o)+1,d=u.toArray();d.splice.apply(d,[f,0].concat(c)),t.setIn([s,"children"],sK(d))}}))}(g,0,l,u)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})},lK=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?iK(!1,"`insertFragment` should only be called with a collapsed selection state."):iK(!1));var o=e.getBlockMap(),i=aK(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof rK&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?iK(!1,"`insertFragment` should not be called when a container node is selected."):iK(!1))),1===i.size?function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),c=s.getText(),l=s.getCharacterList(),u=o,f=i+r.getText().length,d=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var p=s.getType();c&&"unstyled"===p&&(p=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:oK(l,r.getCharacterList(),i),type:p,data:d});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:f,focusKey:u,focusOffset:f,isBackward:!1})})}(e,t,o,i.first(),a,s,r):cK(e,t,o,i,a,s)},uK=tK,fK=PV,dK=LH.Repeat;var pK=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?fK(!1,"`insertText` should only be called with a collapsed range."):fK(!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),l=c.getText(),u=c.merge({text:l.slice(0,s)+n+l.slice(s,c.getLength()),characterList:uK(c.getCharacterList(),dK(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,u),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},hK=LH.Map;var gK=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(hK([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},vK=xV,yK=function(e,t){if(!(e instanceof vK))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},mK=xV,bK=yK,wK=LH;wK.List;var xK=wK.Map,CK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},SK=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},_K=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},OK=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},kK=function(e,t,n,r){return e.withMutations((function(o){if(CK(t.getKey(),o,(function(e){return e.merge({nextSibling:_K(e,o,r),prevSibling:OK(e,o,r)})})),CK(n.getKey(),o,(function(e){return e.merge({nextSibling:_K(e,o,r),prevSibling:OK(e,o,r)})})),SK(t.getKey(),r).forEach((function(e){return CK(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:_K(e,o,r),prevSibling:OK(e,o,r)})}))})),CK(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),CK(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:_K(e,o,r)})})),CK(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:OK(e,o,r)})})),CK(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),SK(n.getKey(),r).forEach((function(e){CK(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:_K(e,o,r),prevSibling:OK(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=bK(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?bK(o,t):null}return n}(n,r).forEach((function(e){return CK(e,o,(function(e){return e.merge({nextSibling:_K(e,o,r),prevSibling:OK(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();CK(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),CK(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){CK(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);CK(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}CK(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},EK=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},jK=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),l=r.get(a),u=c instanceof mK,f=[];if(u){var d=l.getChildKeys(),p=SK(a,r);l.getNextSiblingKey()&&(f=f.concat(p)),d.isEmpty()||(f=f.concat(p.concat([a]))),f=f.concat(SK(bK(l,r),r))}n=c===l?EK(c.getCharacterList(),i,s):c.getCharacterList().slice(0,i).concat(l.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,i)+l.getText().slice(s),characterList:n}),g=u&&0===i&&0===s&&l.getParentKey()===o&&null==l.getPrevSiblingKey()?xK([[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(xK([[a,null]])).map((function(e,t){return t===o?h:null})),v=r.merge(g).filter((function(e){return!!e}));return u&&c!==l&&(v=kK(v,c,l,r)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},AK=xV,TK=VV,MK=LH,PK=PV,DK=gK,LK=MK.List,IK=MK.Map,RK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},NK=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?PK(!1,"Selection range must be collapsed."):PK(!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 DK(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),l=TK(),u=o instanceof AK,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),d=f.merge({key:l,text:i.slice(s),characterList:c.slice(s),data:IK()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,f],[l,d]],h).toOrderedMap();return u&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?PK(!1,"ContentBlockNode must not have children"):PK(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();RK(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:LK(i)})})),RK(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),RK(r,e,(function(e){return e.merge({nextSibling:o})})),RK(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,d)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:0,focusKey:l,focusOffset:0,isBackward:!1})})},BK=WH,FK=OV,zK=AV,HK=FV,VK=eK,KK=lK,$K=pK,UK=PV,WK=gK,ZK=XV,qK=jK,GK=NK,YK=LH.OrderedSet,XK={replaceText:function(e,t,n,r,o){var i=ZK(e,t),a=qK(i,t),s=BK.create({style:r||YK(),entity:o||null});return $K(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?UK(!1,"Target range must be collapsed for `insertText`."):UK(!1)),XK.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=VK(e,t),o=XK.removeRange(e,t,"backward");return XK.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=ZK(e,t),i=qK(o,t);return KK(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(),l=i.getEntityAt(s),u=a.getEntityAt(c-1);if(r===o&&l&&l===u){var f=HK(e.getEntityMap(),i,a,t,n);return qK(e,f)}var d=ZK(e,t);return qK(d,t)},splitBlock:function(e,t){var n=ZK(e,t),r=qK(n,t);return GK(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return FK.add(e,t,n)},removeInlineStyle:function(e,t,n){return FK.remove(e,t,n)},setBlockType:function(e,t,n){return WK(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return WK(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return WK(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=ZK(e,t);return zK(r,t,n)}},JK=XK;var QK=function(e){return Object.keys(e).map((function(t){return e[t]}))};function e$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var t$=ZH,n$=QK,r$=LH,o$=r$.List,i$=r$.Repeat,a$=r$.Record,s$=function(){return!0},c$=a$({start:null,end:null}),l$=a$({start:null,end:null,decoratorKey:null,leaves:null}),u$={generate:function(e,t,n){var r=t.getLength();if(!r)return o$.of(new l$({start:0,end:0,decoratorKey:null,leaves:o$.of(new c$({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):o$(i$(null,r)),a=t.getCharacterList();return t$(i,d$,s$,(function(e,t){o.push(new l$({start:e,end:t,decoratorKey:i.get(e),leaves:f$(a.slice(e,t).toList(),e)}))})),o$(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 l$(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){e$(e,t,n[t])}))}return e}({},n,{leaves:null!=t?o$(Array.isArray(t)?t:n$(t)).map((function(e){return c$(e)})):null}))}};function f$(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return t$(r,d$,s$,(function(e,r){n.push(new c$({start:e+t,end:r+t}))})),o$(n)}function d$(e,t){return e===t}var p$=u$;var h$=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,LH.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),g$=h$;var v$=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 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 m$=g$,b$=PV,w$=v$,x$=(0,LH.Map)(),C$=w$();function S$(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var _$={getLastCreatedEntityKey:function(){return S$("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),_$.__getLastCreatedEntityKey()},create:function(e,t,n){return S$("DraftEntity.create","contentState.createEntity"),_$.__create(e,t,n)},add:function(e){return S$("DraftEntity.add","contentState.addEntity"),_$.__add(e)},get:function(e){return S$("DraftEntity.get","contentState.getEntity"),_$.__get(e)},__getAll:function(){return x$},__loadWithEntities:function(e){x$=e,C$=w$()},mergeData:function(e,t){return S$("DraftEntity.mergeData","contentState.mergeEntityData"),_$.__mergeData(e,t)},replaceData:function(e,t){return S$("DraftEntity.replaceData","contentState.replaceEntityData"),_$.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return C$},__create:function(e,t,n){return _$.__add(new m$({type:e,mutability:t,data:n||{}}))},__add:function(e){return C$=w$(),x$=x$.set(C$,e),C$},__get:function(e){var t=x$.get(e);return t||("production"!==process.env.NODE_ENV?b$(!1,"Unknown DraftEntity key: %s.",e):b$(!1)),t},__mergeData:function(e,t){var n=_$.__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){y$(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return x$=x$.set(e,o),o},__replaceData:function(e,t){var n=_$.__get(e).set("data",t);return x$=x$.set(e,n),n}},O$=_$;var k$=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,LH.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),E$=k$,j$=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},A$=new RegExp("\r","g");var T$=function(e){return e.replace(A$,"")};function M$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){P$(e,t,n[t])}))}return e}function P$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D$=RH,L$=WH,I$=sV,R$=xV,N$=O$,B$=E$,F$=VV,z$=QK,H$=j$,V$=LH,K$=T$,$$=V$.List,U$=V$.Record,W$=V$.Repeat,Z$=V$.Map,q$=V$.OrderedMap,G$=U$({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),Y$=H$("draft_tree_data_support")?R$:I$,X$=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 N$},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 N$.__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 N$.__create(e,t,n),this},o.mergeEntityData=function(e,t){return N$.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return N$.__replaceData(e,t),this},o.addEntity=function(e){return N$.__add(e),this},o.getEntity=function(e){return N$.__get(e)},o.getAllEntities=function(){return N$.__getAll()},o.loadWithEntities=function(e){return N$.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=D$.createFromArray(n),i=o.isEmpty()?new B$:B$.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||N$,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=K$(e),new Y$({key:F$(),text:e,type:"unstyled",characterList:$$(W$(L$.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(M$({},e,{blockMap:q$(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new B$(e.selectionBefore),selectionAfter:new B$(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new Y$(M$({},e,{data:Z$(e.data),characterList:null!=t?$$((Array.isArray(t)?t:z$(t)).map((function(e){return L$.fromJS(e)}))):void 0}))},r}(G$),J$=X$,Q$=PV,eU="LTR",tU="RTL",nU=null;function rU(e){return e===eU||e===tU}function oU(e){return rU(e)||("production"!==process.env.NODE_ENV?Q$(!1,"`dir` must be a strong direction to be converted to HTML Direction"):Q$(!1)),e===eU?"ltr":"rtl"}function iU(e){nU=e}var aU={NEUTRAL:"NEUTRAL",LTR:eU,RTL:tU,isStrong:rU,getHTMLDir:oU,getHTMLDirIfDifferent:function(e,t){return rU(e)||("production"!==process.env.NODE_ENV?Q$(!1,"`dir` must be a strong direction to be converted to HTML Direction"):Q$(!1)),rU(t)||("production"!==process.env.NODE_ENV?Q$(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):Q$(!1)),e===t?null:oU(e)},setGlobalDir:iU,initGlobalDir:function(){iU(eU)},getGlobalDir:function(){return nU||this.initGlobalDir(),nU||("production"!==process.env.NODE_ENV?Q$(!1,"Global direction not set."):Q$(!1)),nU}},sU=aU,cU=PV,lU="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",uU="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",fU=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+lU+uU+"]"),dU=new RegExp("["+lU+uU+"]");function pU(e){var t=fU.exec(e);return null==t?null:t[0]}function hU(e){var t=pU(e);return null==t?sU.NEUTRAL:dU.exec(t)?sU.RTL:sU.LTR}function gU(e,t){if(t=t||sU.NEUTRAL,!e.length)return t;var n=hU(e);return n===sU.NEUTRAL?t:n}function vU(e,t){return t||(t=sU.getGlobalDir()),sU.isStrong(t)||("production"!==process.env.NODE_ENV?cU(!1,"Fallback direction must be a strong direction"):cU(!1)),gU(e,t)}var yU={firstStrongChar:pU,firstStrongCharDir:hU,resolveBlockDir:gU,getDirection:vU,isDirectionLTR:function(e,t){return vU(e,t)===sU.LTR},isDirectionRTL:function(e,t){return vU(e,t)===sU.RTL}};function mU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bU,wU=yU,xU=aU,CU=PV,SU=function(){function e(e){mU(this,"_defaultDir",void 0),mU(this,"_lastDir",void 0),e?xU.isStrong(e)||("production"!==process.env.NODE_ENV?CU(!1,"Default direction must be a strong direction (LTR or RTL)"):CU(!1)):e=xU.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=wU.getDirection(e,this._lastDir),this._lastDir},e}(),_U=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},OU=SU,kU=LH,EU=_U,jU=kU.OrderedMap;function AU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TU(e,t,n[t])}))}return e}function TU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MU=p$,PU=J$,DU={getDirectionMap:function(e,t){bU?bU.reset():bU=new OU;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return EU(bU).getDirection(e.getText())})),o=jU(n.keySeq().zip(r));return null!=t&&kU.is(t,o)?t:o}},LU=E$,IU=LH,RU=IU.OrderedSet,NU=IU.Record,BU=IU.Stack,FU=IU.OrderedMap,zU=IU.List,HU=NU({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:BU(),selection:null,treeMap:null,undoStack:BU()}),VU=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(PU.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:BU(),redoStack:BU(),decorator:n||null,selection:LU.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=AU({},e,{treeMap:$U(n,e.decorator),directionMap:DU.getDirectionMap(n)});return new t(new HU(r))},t.fromJS=function(e){return new t(new HU(AU({},e,{directionMap:null!=e.directionMap?FU(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?RU(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?PU.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?BU(e.redoStack.map((function(e){return PU.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new LU(e.selection):e.selection,treeMap:null!=e.treeMap?FU(e.treeMap).map((function(e){return zU(e).map((function(e){return MU.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?BU(e.undoStack.map((function(e){return PU.fromJS(e)}))):e.undoStack,currentContent:PU.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 MU.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):$U(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 MU.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){TU(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 UU(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 UU(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 KU(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),KU(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new LU({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=DU.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(),l=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),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var u=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(u=null);var f={currentContent:l,directionMap:i,undoStack:c,redoStack:BU(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:u};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=DU.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=DU.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 KU(e,t,n){return VU.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function $U(e,t){return e.getBlockMap().map((function(n){return MU.generate(e,n,t)})).toOrderedMap()}function UU(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):RU()}var WU=VU,ZU=xV,qU=yK,GU=LH,YU=PV,XU=GU.OrderedMap,JU=GU.List,QU=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},eW=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),l=t.getNextSiblingKey(),u=t.getPrevSiblingKey(),f=n.getParentKey(),d=i?n.getNextSiblingKey():s,p=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){QU(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),QU(u,e,(function(e){return e.merge({nextSibling:l})})),QU(l,e,(function(e){return e.merge({prevSibling:u})})),QU(d,e,(function(e){return e.merge({prevSibling:a})})),QU(p,e,(function(e){return e.merge({nextSibling:a})})),QU(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:JU(o)})})),QU(a,e,(function(e){return e.merge({nextSibling:d,prevSibling:p,parent:f})}))}))};function tW(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){nW(e,t,n[t])}))}return e}function nW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rW=RH,oW=WH,iW=sV,aW=xV,sW=JK,cW=WU,lW=VV,uW=LH,fW=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?YU(!1,"Replacing blocks is not supported."):YU(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?YU(!1,"Block cannot be moved next to itself."):YU(!1));var a=e.getBlockMap(),s=t instanceof ZU,c=[t],l=a.delete(i);s&&(c=[],l=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=qU(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 u=l.toSeq().takeUntil((function(e){return e===n})),f=l.toSeq().skipUntil((function(e){return e===n})).skip(1),d=c.map((function(e){return[e.getKey(),e]})),p=XU();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?YU(!1,"Block cannot be moved next to itself."):YU(!1)),p=u.concat([].concat(d,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?YU(!1,"Block cannot be moved next to itself."):YU(!1)),p=u.concat([[o,n]].concat(d),f).toOrderedMap()}return e.merge({blockMap:eW(p,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},dW=j$("draft_tree_data_support"),pW=dW?aW:iW,hW=uW.List,gW=uW.Repeat,vW={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=sW.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=sW.splitBlock(i,a),c=s.getSelectionAfter(),l=sW.setBlockType(s,c,"atomic"),u=oW.create({entity:t}),f={key:lW(),type:"atomic",text:n,characterList:hW(gW(u,n.length))},d={key:lW(),type:"unstyled"};dW&&(f=tW({},f,{nextSibling:d.key}),d=tW({},d,{prevSibling:f.key}));var p=[new pW(f),new pW(d)],h=rW.createFromArray(p),g=sW.replaceWithFragment(l,c,h),v=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return cW.push(e,v,"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=fW(i,t,s,r)}else{var c=sW.removeRange(i,n,"backward"),l=c.getSelectionAfter(),u=c.getBlockForKey(l.getFocusKey());if(0===l.getStartOffset())o=fW(c,t,u,"before");else if(l.getEndOffset()===u.getLength())o=fW(c,t,u,"after");else{var f=sW.splitBlock(c,l),d=f.getSelectionAfter(),p=f.getBlockForKey(d.getFocusKey());o=fW(f,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return cW.push(e,h,"move-block")}};var yW=LH.List,mW=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,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)})),yW(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 bW=mW;function wW(e){return e.replace(/\//g,"-")}var xW=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(wW).join(" "):Array.prototype.map.call(arguments,wW).join(" ")},CW=t,SW=xW,_W=(0,LH.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:CW.createElement("ul",{className:SW("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:CW.createElement("ol",{className:SW("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:CW.createElement("pre",{className:SW("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),OW={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},kW={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="major",l="model",u="name",f="type",d="vendor",p="version",h="architecture",g="console",v="mobile",y="tablet",m="smarttv",b="wearable",w="embedded",x="Amazon",C="Apple",S="ASUS",_="BlackBerry",O="Browser",k="Chrome",E="Firefox",j="Google",A="Huawei",T="LG",M="Microsoft",P="Motorola",D="Opera",L="Samsung",I="Sharp",R="Sony",N="Xiaomi",B="Zebra",F="Facebook",z="Chromium OS",H="Mac OS",V=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},K=function(e,t){return typeof e===s&&-1!==$(t).indexOf($(e))},$=function(e){return e.toLowerCase()},U=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},W=function(e,t){for(var n,i,s,c,l,u,f=0;f<t.length&&!l;){var d=t[f],p=t[f+1];for(n=i=0;n<d.length&&!l&&d[n];)if(l=d[n++].exec(e))for(s=0;s<p.length;s++)u=l[++i],typeof(c=p[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,u):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=u?u.replace(c[1],c[2]):r:this[c[0]]=u?c[1].call(this,u,c[2]):r:4===c.length&&(this[c[0]]=u?c[3].call(this,u.replace(c[1],c[2])):r):this[c]=u||r;f+=2}},Z=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(K(t[n][o],e))return"?"===n?r:n}else if(K(t[n],e))return"?"===n?r:n;return e},q={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"},G={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,D+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,D]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[u,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[u,"Smart Lenovo "+O]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+O],p],[/\bfocus\/([\w\.]+)/i],[p,[u,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[p,[u,E]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+O]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+O],p],[/samsungbrowser\/([\w\.]+)/i],[p,[u,L+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/metasr[\/ ]?([\d\.]+)/i],[p,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,F],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,k+" 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,Z,{"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,E+" 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,/panasonic;(viera)/i],[u,p],[/(cobalt)\/([\w\.]+)/i],[u,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,$]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,"",$]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[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],[l,[d,L],[f,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,L],[f,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,C],[f,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,C],[f,y]],[/(macintosh);/i],[l,[d,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,I],[f,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[d,A],[f,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[d,A],[f,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[d,N],[f,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[d,N],[f,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,"OPPO"],[f,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[f,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[f,v]],[/\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],[l,[d,P],[f,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,P],[f,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,T],[f,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,T],[f,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[d,"Lenovo"],[f,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[d,"Nokia"],[f,v]],[/(pixel c)\b/i],[l,[d,j],[f,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,j],[f,v]],[/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],[l,[d,R],[f,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,R],[f,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,"OnePlus"],[f,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,x],[f,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,x],[f,v]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[f,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,_],[f,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,S],[f,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,S],[f,v]],[/(nexus 9)/i],[l,[d,"HTC"],[f,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[f,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[f,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[f,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[f,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,l,[f,v]],[/(kobo)\s(ereader|touch)/i,/(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],[d,l,[f,y]],[/(surface duo)/i],[l,[d,M],[f,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[f,v]],[/(u304aa)/i],[l,[d,"AT&T"],[f,v]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[f,v]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[f,y]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[f,y]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[f,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[f,y]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[f,y]],[/\b(k88) b/i],[l,[d,"ZTE"],[f,y]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[f,v]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[f,v]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[f,y]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[f,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[f,y]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[f,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[f,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[f,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[f,v]],[/\b(ph-1) /i],[l,[d,"Essential"],[f,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[f,y]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[f,y]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[f,y]],[/(shield[\w ]+) b/i],[l,[d,"Nvidia"],[f,y]],[/(sprint) (\w+)/i],[d,l,[f,v]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,M],[f,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,B],[f,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,B],[f,v]],[/smart-tv.+(samsung)/i],[d,[f,m]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,L],[f,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,T],[f,m]],[/(apple) ?tv/i],[d,[l,C+" TV"],[f,m]],[/crkey/i],[[l,k+"cast"],[d,j],[f,m]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,x],[f,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,I],[f,m]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,R],[f,m]],[/(mitv-\w{5}) bui/i],[l,[d,N],[f,m]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[f,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,U],[l,U],[f,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[f,g]],[/droid.+; (shield) bui/i],[l,[d,"Nvidia"],[f,g]],[/(playstation [345portablevi]+)/i],[l,[d,R],[f,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,M],[f,g]],[/((pebble))app/i],[d,l,[f,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,C],[f,b]],[/droid.+; (glass) \d/i],[l,[d,j],[f,b]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,B],[f,b]],[/(quest( 2| pro)?)/i],[l,[d,F],[f,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,w]],[/(aeobc)\b/i],[l,[d,x],[f,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[f,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[f,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,v]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[d,"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,/\b(libweb)/i],[u,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[p,Z,q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,Z,q],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,H],[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,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[u,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,z],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(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|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,p]]},Y=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof Y))return new Y(e,t).getResult();var g=typeof n!==i&&n.navigator?n.navigator:r,m=e||(g&&g.userAgent?g.userAgent:""),b=g&&g.userAgentData?g.userAgentData:r,w=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}(G,t):G,x=g&&g.userAgent==m;return this.getBrowser=function(){var e,t={};return t[u]=r,t[p]=r,W.call(t,m,w.browser),t[c]=typeof(e=t[p])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,x&&g&&g.brave&&typeof g.brave.isBrave==o&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[h]=r,W.call(e,m,w.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[l]=r,e[f]=r,W.call(e,m,w.device),x&&!e[f]&&b&&b.mobile&&(e[f]=v),x&&"Macintosh"==e[l]&&g&&typeof g.standalone!==i&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[l]="iPad",e[f]=y),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,W.call(e,m,w.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,W.call(e,m,w.os),x&&!e[u]&&b&&"Unknown"!=b.platform&&(e[u]=b.platform.replace(/chrome os/i,z).replace(/macos/i,H)),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 m},this.setUA=function(e){return m=typeof e===s&&e.length>500?U(e,500):e,this},this.setUA(m),this};Y.VERSION="0.7.37",Y.BROWSER=V([u,p,c]),Y.CPU=V([h]),Y.DEVICE=V([l,d,f,g,v,m,y,b,w]),Y.ENGINE=Y.OS=V([u,p]),e.exports&&(t=e.exports=Y),t.UAParser=Y;var X=typeof n!==i&&(n.jQuery||n.Zepto);if(X&&!X.ua){var J=new Y;X.ua=J.getResult(),X.ua.get=function(){return J.getUA()},X.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:st)}(kW,kW.exports);var EW="Unknown",jW={"Mac OS":"Mac OS X"};var AW,TW=(new(0,kW.exports)).getResult(),MW=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(TW.browser.version),PW={browserArchitecture:TW.cpu.architecture||EW,browserFullVersion:TW.browser.version||EW,browserMinorVersion:MW.minor||EW,browserName:TW.browser.name||EW,browserVersion:TW.browser.major||EW,deviceName:TW.device.model||EW,engineName:TW.engine.name||EW,engineVersion:TW.engine.version||EW,platformArchitecture:TW.cpu.architecture||EW,platformName:(AW=TW.os.name,jW[AW]||AW||EW),platformVersion:TW.os.version||EW,platformFullVersion:TW.os.version||EW},DW=PV,LW=/\./,IW=/\|\|/,RW=/\s+\-\s+/,NW=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,BW=/^(\d*)(.*)/;function FW(e,t){var n=e.split(IW);return n.length>1?n.some((function(e){return YW.contains(e,t)})):function(e,t){var n=e.split(RW);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?DW(!1,'the "-" operator expects exactly 2 operands'):DW(!1)),1===n.length)return zW(n[0],t);var r=n[0],o=n[1];return UW(r)&&UW(o)||("production"!==process.env.NODE_ENV?DW(!1,'operands to the "-" operator must be simple (no modifiers)'):DW(!1)),zW(">="+r,t)&&zW("<="+o,t)}(e=n[0].trim(),t)}function zW(e,t){if(""===(e=e.trim()))return!0;var n=t.split(LW),r=KW(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return HW(n,i);case"<=":return function(e,t){var n=GW(e,t);return-1===n||0===n}(n,i);case">=":return VW(n,i);case">":return function(e,t){return 1===GW(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);$W(i)&&(r[o]=i+1+"");return VW(e,n)&&HW(e,r)}(n,i);default:return function(e,t){return 0===GW(e,t)}(n,i)}}function HW(e,t){return-1===GW(e,t)}function VW(e,t){var n=GW(e,t);return 1===n||0===n}function KW(e){var t=e.split(LW),n=t[0].match(NW);return n||("production"!==process.env.NODE_ENV?DW(!1,"expected regex to match but it did not"):DW(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function $W(e){return!isNaN(e)&&isFinite(e)}function UW(e){return!KW(e).modifier}function WW(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function ZW(e,t){var n=e.match(BW)[1],r=t.match(BW)[1],o=parseInt(n,10),i=parseInt(r,10);return $W(o)&&$W(i)&&o!==i?qW(o,i):qW(e,t)}function qW(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?DW(!1,'"a" and "b" must be of the same type'):DW(!1)),e>t?1:e<t?-1:0}function GW(e,t){for(var n=function(e,t){WW(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 WW(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=ZW(r[i],o[i]);if(a)return a}return 0}var YW={contains:function(e,t){return FW(e.trim(),t.trim())}},XW=YW,JW=Object.prototype.hasOwnProperty;var QW=function(e,t,n){if(!e)return null;var r={};for(var o in e)JW.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var eZ=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},tZ=PW,nZ=XW;function rZ(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,nZ.contains(o,t))}function oZ(e){return"Windows"===tZ.platformName?e.replace(/^\s*NT/,""):e}var iZ=QW({isBrowser:function(e){return rZ(tZ.browserName,tZ.browserFullVersion,e)},isBrowserArchitecture:function(e){return rZ(tZ.browserArchitecture,null,e)},isDevice:function(e){return rZ(tZ.deviceName,null,e)},isEngine:function(e){return rZ(tZ.engineName,tZ.engineVersion,e)},isPlatform:function(e){return rZ(tZ.platformName,tZ.platformFullVersion,e,oZ)},isPlatformArchitecture:function(e){return rZ(tZ.platformArchitecture,null,e)}},eZ);var aZ=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var sZ=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},cZ=sZ;var lZ=function e(t){if(cZ(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},uZ=aZ,fZ=lZ;var dZ=function(e){for(var t=e;t&&t!==uZ(e).documentElement;){var n=fZ(t);if(null!=n)return n;t=t.parentNode}return null};var pZ=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function hZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gZ=iZ,vZ=dZ,yZ=pZ,mZ=PV,bZ=_U,wZ=LH.Map,xZ={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},CZ=gZ.isBrowser("IE <= 11"),SZ=function(){function e(e){var t=this;hZ(this,"observer",void 0),hZ(this,"container",void 0),hZ(this,"mutations",void 0),hZ(this,"onCharData",void 0),this.container=e,this.mutations=wZ();var n=yZ(e);n.MutationObserver&&!CZ?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?mZ(!1,"Expected target to be an instance of Node"):mZ(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,xZ):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=wZ(),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 CZ?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=bZ(vZ(e.target));this.mutations=this.mutations.set(n,t)}},e}(),_Z="-",OZ={encode:function(e,t,n){return e+_Z+t+_Z+n},decode:function(e){var t=e.split(_Z).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(_Z),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},kZ={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},EZ={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var jZ=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},AZ=PV,TZ=jZ;var MZ=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?AZ(!1,"Missing editorNode"):AZ(!1)),TZ(t.firstChild)||("production"!==process.env.NODE_ENV?AZ(!1,"editorNode.firstChild is not an HTMLElement"):AZ(!1)),t.firstChild},PZ=OZ,DZ=_U;var LZ=function(e,t,n,r,o){var i=DZ(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=PZ.decode(t),s=a.blockKey,c=e.getBlockTree(s),l=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),u=PZ.decode(r),f=u.blockKey,d=e.getBlockTree(f),p=d&&d.getIn([u.decoratorKey,"leaves",u.leafKey]);if(!l||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=l.get("start"),g=p.get("start"),v=l?h+n:null,y=p?g+o:null;if(i.getAnchorKey()===s&&i.getAnchorOffset()===v&&i.getFocusKey()===f&&i.getFocusOffset()===y)return i;var m=!1;if(s===f){var b=l.get("end"),w=p.get("end");m=g===h&&w===b?o<n:g<h}else{m=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first()===f}return i.merge({anchorKey:s,anchorOffset:v,focusKey:f,focusOffset:y,isBackward:m})},IZ=dZ,RZ=lZ,NZ=LZ,BZ=PV,FZ=sZ,zZ=_U;function HZ(e,t,n){var r=t,o=IZ(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?BZ(!1,"Unknown node in selection range."):BZ(!1)),e===r)&&(r=r.firstChild,FZ(r)||("production"!==process.env.NODE_ENV?BZ(!1,"Invalid DraftEditorContents node."):BZ(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?BZ(!1,"Invalid DraftEditorContents structure."):BZ(!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&&(FZ(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||RZ(e.firstChild));)e=e.firstChild;return e}(r);i=zZ(RZ(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,l=null;if(RZ(s)){var u=function(e){for(;e.lastChild&&(FZ(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||RZ(e.lastChild));)e=e.lastChild;return e}(s);c=zZ(RZ(u)),l=VZ(u)}else c=zZ(o),l=VZ(s);return{key:c,offset:l}}function VZ(e){var t=e.textContent;return"\n"===t?0:t.length}var KZ=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:NZ(e,zZ(IZ(n)),r,zZ(IZ(o)),i),needsRecovery:!1};var c=null,l=null,u=!0;return a?(c={key:zZ(IZ(n)),offset:r},l=HZ(t,o,i)):s?(l={key:zZ(IZ(o)),offset:i},c=HZ(t,n,r)):(c=HZ(t,n,r),l=HZ(t,o,i),n===o&&r===i&&(u=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:NZ(e,c.key,c.offset,l.key,l.offset),needsRecovery:u}},$Z=KZ;var UZ=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}:$Z(e,t,r,o,i,a)},WZ=EZ,ZZ=WU,qZ=MZ,GZ=UZ;var YZ=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();WZ.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=GZ(n,qZ(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?ZZ.forceSelection(n,o):ZZ.acceptSelection(n,o),e.update(n))}};var XZ={notEmptyKey:function(e){return null!=e&&""!=e}},JZ=XZ.notEmptyKey;function QZ(e,t){return JZ(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var eq=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:QZ(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),QZ(e.getEntityMap(),n)},tq=SZ,nq=JK,rq=OZ,oq=WU,iq=kZ,aq=YZ,sq=MZ,cq=UZ,lq=eq,uq=_U,fq=iZ.isBrowser("IE"),dq=!1,pq=!1,hq=null;var gq,vq,yq={onCompositionStart:function(e){pq=!0,function(e){hq||(hq=new tq(sq(e))).start()}(e)},onCompositionEnd:function(e){dq=!1,pq=!1,setTimeout((function(){dq||yq.resolveComposition(e)}),20)},onSelect:aq,onKeyDown:function(e,t){if(!pq)return yq.resolveComposition(e),void e._onKeyDown(t);t.which!==iq.RIGHT&&t.which!==iq.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===iq.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!pq){var t=uq(hq).stopAndFlushMutations();hq=null,dq=!0;var n=oq.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=rq.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,c=n.getBlockTree(i).getIn([a,"leaves",s]),l=c.start,u=c.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:l,focusOffset:u,isBackward:!1}),d=lq(r,f),p=r.getBlockForKey(i).getInlineStyleAt(l);r=nq.replaceText(r,f,e,p,d),n=oq.set(n,{currentContent:r})}));var o=cq(n,sq(e)).selectionState;e.restoreEditorDOM();var i=fq?oq.forceSelection(n,o):oq.acceptSelection(n,o);e.update(oq.push(i,r,"insert-characters"))}else e.update(n)}}},mq=yq;function bq(){if(vq)return gq;vq=1;var e=rT;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=OZ,o=t,i=yU,a=aU,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,l=e.decorator,u=e.decoratorKey,f=e.direction,d=e.leafSet,p=e.text,h=t.getKey(),g=d.get("leaves"),v=l.getComponentForKey(u),y=l.getPropsForKey(u),m=r.encode(h,parseInt(u,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),f);return o.createElement(v,n({},y,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:t.getEntityAt(d.get("start")),offsetKey:m}),s)},c}(o.Component);return gq=s}function wq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cq=t,Sq=PV,_q=sZ,Oq=iZ.isBrowser("IE <= 11");var kq=function(e){var t,n;function r(t){var n;return xq(wq(n=e.call(this,t)||this),"_forceFlag",void 0),xq(wq(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;_q(t)||("production"!==process.env.NODE_ENV?Sq(!1,"node is not an Element"):Sq(!1));var r=t;return n?!function(e){return Oq?"\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},Oq?Cq.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):Cq.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return Oq?Cq.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):Cq.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):Cq.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(Cq.Component),Eq=kq,jq=sZ;var Aq=function(e){return!(!e||!e.ownerDocument)&&(jq(e)&&"BR"===e.nodeName)},Tq={initODS:function(){},handleExtensionCausedError:function(){}};var Mq=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))},Pq=Mq;var Dq=function(e){return Pq(e)&&3==e.nodeType},Lq=Dq;var Iq=function e(t,n){return!(!t||!n)&&(t===n||!Lq(t)&&(Lq(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var Rq=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}},Nq=Tq,Bq=EZ,Fq=Iq,zq=Rq,Hq=aZ,Vq=PV,Kq=sZ,$q=iZ.isBrowser("IE");function Uq(e,t){if(!e)return"[empty]";var n=Wq(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(Kq(n)||("production"!==process.env.NODE_ENV?Vq(!1,"Node must be an Element if it is not a text node."):Vq(!1)),n.outerHTML)}function Wq(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return Hq(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(Wq(i[a],t));return o}function Zq(e,t){for(var n=e,r=n;n;){if(Kq(n)&&r.hasAttribute("contenteditable"))return Uq(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function qq(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function Gq(e,t,n,r){var o=zq();if(e.extend&&null!=t&&Fq(o,t)){n>qq(t)&&Bq.logSelectionStateFailure({anonymizedDom:Zq(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 Bq.logSelectionStateFailure({anonymizedDom:Zq(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 Yq(e,t,n,r){var o=Hq(t).createRange();if(n>qq(t)&&(Bq.logSelectionStateFailure({anonymizedDom:Zq(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),Nq.handleExtensionCausedError()),o.setStart(t,n),$q)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 Xq=function(e,t,n,r,o){var i=Hq(t);if(Fq(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),l=e.getFocusKey(),u=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var d=s,p=c;s=l,c=u,l=d,u=p,f=!1}var h=s===n&&r<=c&&o>=c,g=l===n&&r<=u&&o>=u;if(h&&g)return a.removeAllRanges(),Yq(a,t,c-r,e),void Gq(a,t,u-r,e);if(f){if(g&&(a.removeAllRanges(),Yq(a,t,u-r,e)),h){var v=a.focusNode,y=a.focusOffset;a.removeAllRanges(),Yq(a,t,c-r,e),Gq(a,v,y,e)}}else h&&(a.removeAllRanges(),Yq(a,t,c-r,e)),g&&Gq(a,t,u-r,e)}},Jq=rT;var Qq,eG,tG=Eq,nG=t,rG=PV,oG=Aq,iG=Xq,aG=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="leaf")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,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?rG(!1,"Missing node"):rG(!1));var c,l=s.firstChild;l||("production"!==process.env.NODE_ENV?rG(!1,"Missing child"):rG(!1)),l.nodeType===Node.TEXT_NODE?c=l:oG(l)?c=s:(c=l.firstChild)||("production"!==process.env.NODE_ENV?rG(!1,"Missing targetNode"):rG(!1)),iG(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?rG(!1,"Missing leafNode"):rG(!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()),Jq(e,r,n)}),{});if(i){var l=i(s,t);c=Jq(c,l)}return nG.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},nG.createElement(tG,null,n))},r}(nG.Component),sG=aG;function cG(){if(eG)return Qq;eG=1;var e=bq(),n=sG,r=OZ,o=t,i=xW;LH.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,l=t.customStyleMap,u=t.decorator,f=t.direction,d=t.forceSelection,p=t.hasSelection,h=t.selection,g=t.tree,v=a.getKey(),y=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(v,i,t),u=e.get("start"),f=e.get("end");return o.createElement(n,{key:s,offsetKey:s,block:a,start:u,selection:p?h:null,forceSelection:d,text:y.slice(u,f),styleSet:a.getInlineStyleAt(u),customStyleMap:l,customStyleFn:c,isLast:g===m&&t===w})})).toArray();return g&&u?o.createElement(e,{block:a,children:x,contentState:s,decorator:u,decoratorKey:g,direction:f,leafSet:t,text:y,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":r.encode(v,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(o.Component);return Qq=a}function lG(e,t){return!!t&&(e===t.documentElement||e===t.body)}var uG={getTop:function(e){var t=e.ownerDocument;return lG(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;lG(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return lG(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;lG(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},fG=/-(.)/g;var dG=function(e){return e.replace(fG,(function(e,t){return t.toUpperCase()}))},pG=/([A-Z])/g;var hG=function(e){return e.replace(pG,"-$1").toLowerCase()},gG=dG,vG=hG;function yG(e){return null==e?e:String(e)}var mG=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return yG(n.getPropertyValue(vG(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return yG(n.getPropertyValue(vG(t)));if("display"===t)return"none"}return e.currentStyle?yG("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[gG(t)]):yG(e.style&&e.style[gG(t)])};function bG(e,t){var n=wG.get(e,t);return"auto"===n||"scroll"===n}var wG={get:mG,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(bG(e,"overflow")||bG(e,"overflowY")||bG(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},xG=wG,CG=Iq;var SG=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!CG(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 _G=function(e){var t=SG(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},OG="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var kG=function(e){return(e=e||document).scrollingElement?e.scrollingElement:OG||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},EG=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 jG=function(e){var t=kG(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=EG(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 AG(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function TG(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function MG(){return{width:window.innerWidth||AG(),height:window.innerHeight||TG()}}MG.withoutScrollbars=function(){return{width:AG(),height:TG()}};var PG,DG,LG,IG,RG=MG;function NG(){if(DG)return PG;DG=1;var e=rT;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=cG(),a=OZ,s=t,c=uG,l=xG,u=_G,f=jG,d=RG,p=PV,h=jZ;LH.List;var g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},v=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},y=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=l.getScrollParent(n),i=f(o);if(o===window){var a=u(n);(r=a.y+a.height-d().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?p(!1,"blockNode is not an HTMLElement"):p(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},x.render=function(){var e=this,t=this.props,o=t.block,c=t.blockRenderMap,l=t.blockRendererFn,u=t.blockStyleFn,f=t.contentState,d=t.decorator,p=t.editorKey,h=t.editorState,b=t.customStyleFn,x=t.customStyleMap,C=t.direction,S=t.forceSelection,_=t.selection,O=t.tree,k=null;o.children.size&&(k=o.children.reduce((function(t,n){var o=a.encode(n,0,0),i=f.getBlockForKey(n),d=y(i,l),g=d.CustomComponent||w,b=v(i,c),x=b.Element,C=b.wrapperTemplate,S=m(i,p,o,u,d,null),_=r({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:i});return t.push(s.createElement(x,S,s.createElement(g,_))),!C||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,f)||function(e,t,n){var r=[],o=!0,i=!1,c=void 0;try{for(var l,u=n.reverse()[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var f=l.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,c=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw c}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),p=d[0].key;n.push(s.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":a.encode(p,0,0)},d))}(C,x,t),t}),[]));var E=o.getKey(),j=a.encode(E,0,0),A=y(o,l),T=A.CustomComponent,M=null!=T?s.createElement(T,n({},this.props,{tree:h.getBlockTree(E),blockProps:A.customProps,offsetKey:j,block:o})):s.createElement(i,{block:o,children:k,contentState:f,customStyleFn:b,customStyleMap:x,decorator:d,direction:C,forceSelection:S,hasSelection:g(_,E),selection:_,tree:O});if(o.getParentKey())return M;var P=v(o,c).Element,D=m(o,p,j,u,A,this.wrapperRef);return s.createElement(P,D,M)},w}(s.Component);return PG=b}var BG=rT;function FG(){return FG=BG||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FG.apply(this,arguments)}var zG,HG,VG,KG,$G=sG,UG=OZ,WG=t,ZG=uG,qG=xG,GG=yU,YG=aU,XG=xW,JG=_G,QG=jG,eY=RG,tY=PV,nY=jZ,rY=_U,oY=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},iY=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="_node")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,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||oY(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=qG.getScrollParent(n),i=QG(o);if(o===window){var a=JG(n);(r=a.y+a.height-eY().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{nY(n)||("production"!==process.env.NODE_ENV?tY(!1,"blockNode is not an HTMLElement"):tY(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&ZG.setTop(o,ZG.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=oY(this.props.selection,n);return this.props.tree.map((function(a,s){var c=a.get("leaves");if(0===c.size)return null;var l=c.size-1,u=c.map((function(a,c){var u=UG.encode(n,s,c),f=a.get("start"),d=a.get("end");return WG.createElement($G,{key:u,offsetKey:u,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,d),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&c===l})})).toArray(),f=a.get("decoratorKey");if(null==f)return u;if(!e.props.decorator)return u;var d=rY(e.props.decorator),p=d.getComponentForKey(f);if(!p)return u;var h=d.getPropsForKey(f),g=UG.encode(n,s,0),v=c.first().get("start"),y=c.last().get("end"),m=r.slice(v,y),b=t.getEntityAt(a.get("start")),w=YG.getHTMLDirIfDifferent(GG.getDirection(m),e.props.direction),x={contentState:e.props.contentState,decoratedText:m,dir:w,start:v,end:y,blockKey:n,entityKey:b,offsetKey:g};return WG.createElement(p,FG({},h,x,{key:g}),u)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=XG({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return WG.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(WG.Component),aY=iY;var sY=j$("draft_tree_data_support")?function(){if(IG)return LG;IG=1;var e=rT;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=NG(),o=OZ,i=t,a=_U,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 l=c.prototype;return l.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(),l=n.getDecorator();return o!==i||a!==s||c!==l||n.mustForceSelection()},l.render=function(){for(var e=this.props,t=e.blockRenderMap,s=e.blockRendererFn,c=e.blockStyleFn,l=e.customStyleMap,u=e.customStyleFn,f=e.editorState,d=e.editorKey,p=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),v=f.mustForceSelection(),y=f.getDecorator(),m=a(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),C={blockRenderMap:t,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:u,customStyleMap:l,decorator:y,editorKey:d,editorState:f,forceSelection:v,selection:g,block:w,direction:p||m.get(x),tree:f.getBlockTree(x)},S=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},C)),wrapperTemplate:S,key:x,offsetKey:o.encode(x,0,0)});var _=w.getNextSiblingKey();w=_?h.getBlockForKey(_):null}for(var O=[],k=0;k<b.length;){var E=b[k];if(E.wrapperTemplate){var j=[];do{j.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var A=i.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},j);O.push(A)}else O.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},O)},c}(i.Component);return LG=s}():function(){if(KG)return VG;KG=1;var e=rT;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=aY,a=OZ,s=t,c=xW,l=(HG||(HG=1,zG=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}),zG),u=_U,f=function(e,t,n,r){return c({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},d=function(e){var t,o;function c(){return e.apply(this,arguments)||this}o=e,(t=c).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var d=c.prototype;return d.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||c!==l||n.mustForceSelection()},d.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,c=e.blockStyleFn,d=e.customStyleMap,p=e.customStyleFn,h=e.editorState,g=e.editorKey,v=e.preventScroll,y=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),C=u(h.getDirectionMap()),S=m.getBlocksAsArray(),_=[],O=null,k=null,E=0;E<S.length;E++){var j=S[E],A=j.getKey(),T=j.getType(),M=o(j),P=void 0,D=void 0,L=void 0;M&&(P=M.component,D=M.props,L=M.editable);var I=y||C.get(A),R=a.encode(A,0,0),N={contentState:m,block:j,blockProps:D,blockStyleFn:c,customStyleMap:d,customStyleFn:p,decorator:x,direction:I,forceSelection:w,offsetKey:R,preventScroll:v,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=l(V,f(T,H,k!==F||null===O||H>O,I));var K=P||i,$={className:V,"data-block":!0,"data-editor":g,"data-offset-key":R,key:A};void 0!==L&&($=r({},$,{contentEditable:L,suppressContentEditableWarning:!0}));var U=s.createElement(z,$,s.createElement(K,n({},N,{key:A})));_.push({block:U,wrapperTemplate:F,key:A,offsetKey:R}),O=F?j.getDepth():null,k=F}for(var W=[],Z=0;Z<_.length;){var q=_[Z];if(q.wrapperTemplate){var G=[];do{G.push(_[Z].block),Z++}while(Z<_.length&&_[Z].wrapperTemplate===q.wrapperTemplate);var Y=s.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},G);W.push(Y)}else W.push(q.block),Z++}return s.createElement("div",{"data-contents":"true"},W)},c}(s.Component);return VG=d}(),cY={isImage:function(e){return"image"===lY(e)[0]},isJpeg:function(e){var t=lY(e);return cY.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function lY(e){return e.split("/")}var uY=cY,fY=PV;var dY=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?fY(!1,"toArray: Array-like object expected"):fY(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?fY(!1,"toArray: Object needs a length property"):fY(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?fY(!1,"toArray: Object should have keys for indices"):fY(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?fY(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):fY(!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 pY(e){return function(){return e}}var hY=function(){};hY.thatReturns=pY,hY.thatReturnsFalse=pY(!1),hY.thatReturnsTrue=pY(!0),hY.thatReturnsNull=pY(null),hY.thatReturnsThis=function(){return this},hY.thatReturnsArgument=function(e){return e};var gY=hY,vY=uY,yY=dY,mY=gY,bY=new RegExp("\r\n","g"),wY={"text/rtf":1,"text/html":1};function xY(e){if("file"==e.kind)return e.getAsFile()}var CY=function(){function e(e){this.data=e,this.types=e.types?yY(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return wY[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(bY,"\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(!vY.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(xY).filter(mY.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),SY=CY,_Y=PV,OY=/\.textClipping$/,kY={"text/plain":!0,"text/html":!0,"text/rtf":!0};var EY=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!st.FileReader||e.type&&!(e.type in kY))return void t("");if(""===e.type){var n="";return OY.test(e.name)&&(n=e.name.replace(OY,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?_Y(!1,'We should be calling "FileReader.readAsText" which returns a string'):_Y(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var jY=function(e){return"handled"===e||!0===e},AY=SY,TY=JK,MY=WU,PY=dZ,DY=aZ,LY=EY,IY=LZ,RY=pZ,NY=jY,BY=_U;var FY={onDragEnd:function(e){e.exitCurrentMode(),zY(e)},onDrop:function(e,t){var n=new AY(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=DY(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=BY(n),r=BY(r);var a=BY(PY(n));return IY(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&&NY(e.props.handleDroppedFiles(o,i)))return;LY(i,(function(t){t&&e.update(HY(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&NY(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=TY.moveText(e.getCurrentContent(),e.getSelection(),t);return MY.push(e,n,"insert-fragment")}(r,o)):e.update(HY(r,o,n.getText()))),zY(e)}}}};function zY(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:RY(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function HY(e,t,n){var r=TY.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return MY.push(e,r,"insert-fragment")}var VY=FY;var KY=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={},l=!1,u=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,n=function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&p(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return c[s]=o,n(s),s++},f.clearImmediate=d}function d(e){delete c[e]}function p(e){if(l)setTimeout(p,0,e);else{var n=c[e];if(n){l=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{d(e),l=!1}}}}}("undefined"==typeof self?st:self);var $Y=st.setImmediate,UY=JK,WY=WU,ZY=eq,qY=jY,GY=KY,YY=_U,XY=$Y,JY="'",QY="/",eX=iZ.isBrowser("Firefox");function tX(e,t,n,r,o){var i=UY.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return WY.push(e,i,"insert-characters",o)}var nX=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&&qY(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(tX(n,r,n.getCurrentInlineStyle(),ZY(n.getCurrentContent(),n.getSelection()),!0));var s,c=tX(n,r,n.getCurrentInlineStyle(),ZY(n.getCurrentContent(),n.getSelection()),!1),l=!1;if(l||(l=GY(e._latestCommittedEditorState)),!l){var u=n.getBlockTree(a),f=c.getBlockTree(a);l=u.size!==f.size||u.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),l=n.get("start"),u=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==l||c!==u||null!=f&&u-l!=s-o}))}if(l||(s=r,l=eX&&(s==JY||s==QY)),l||(l=YY(c.getDirectionMap()).get(a)!==YY(n.getDirectionMap()).get(a)),l)return t.preventDefault(),c=WY.set(c,{forceSelection:!0}),void e.update(c);c=WY.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,XY((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},rX=WU,oX=Iq,iX=Rq;var aX=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&iX(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&oX(o,r.anchorNode)&&oX(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(rX.acceptSelection(i,s))}},sX=WU;var cX=function(e,t){e.setMode("composite"),e.update(sX.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},lX=eK;var uX=function(e){var t=e.getSelection();return t.isCollapsed()?null:lX(e.getCurrentContent(),t)},fX=uX;var dX=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(fX(e._latestEditorState))};var pX=JK,hX=WU,gX=xG,vX=uX,yX=jG,mX=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 bX=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(mX(i)){var a=i;n=yX(gX.getScrollParent(a))}var s=vX(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=pX.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return hX.push(e,t,"remove-range")}(r))}),0)}};var wX=function(e,t){e.setMode("drag"),t.preventDefault()};var xX=function(e){e._internalDrag=!0,e.setMode("drag")},CX=WU,SX=iZ;var _X=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),SX.isBrowser("Chrome < 60.0.3081.0")?e.update(CX.forceSelection(n,o)):e.update(CX.acceptSelection(n,o))}},OX=PV,kX=55296,EX=57343,jX=/[\uD800-\uDFFF]/;function AX(e){return kX<=e&&e<=EX}function TX(e){return jX.test(e)}function MX(e,t){return 1+AX(e.charCodeAt(t))}function PX(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!TX(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+=MX(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=MX(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=MX(e,i);return e.substring(o,i)}var DX={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=MX(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:MX,hasSurrogateUnit:TX,isCodeUnitInSurrogateRange:AX,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?OX(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):OX(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return kX<=n&&n<=56319&&56320<=r&&r<=EX},strlen:function(e){if(!TX(e))return e.length;for(var t=0,n=0;n<e.length;n+=MX(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 PX(e,t=t<n?t:n,r)},substr:PX},LX=DX,IX=gY;function RX(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 NX="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];RX.apply(void 0,[t].concat(r))}}:IX,BX=NX,FX=BX;var zX=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&FX(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})},HX=JK,VX=j$("draft_tree_data_support");var KX=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(VX&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(VX)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var l=o.getBlockForKey(c.nextSibling);if(!l||0===l.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return HX.removeRange(o,i,n)},$X=WU,UX=LX,WX=zX,ZX=KX;var qX=function(e){var t=ZX(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return WX(e,i?UX.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return $X.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},GX=JK,YX=OZ,XX=WU,JX=XZ.notEmptyKey,QX=dZ,eJ=qX,tJ=_U,nJ=iZ.isEngine("Gecko");var rJ=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,l=e._latestEditorState,u=tJ(QX(r)),f=YX.decode(u),d=f.blockKey,p=f.decoratorKey,h=f.leafKey,g=l.getBlockTree(d).getIn([p,"leaves",h]),v=g.start,y=g.end,m=l.getCurrentContent(),b=m.getBlockForKey(d),w=b.getText().slice(v,y);if(c.endsWith("\n\n")&&(c=c.slice(0,-1)),c!==w){var x,C,S,_,O=l.getSelection(),k=O.merge({anchorOffset:v,focusOffset:y,isBackward:!1}),E=b.getEntityAt(v),j=JX(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",M=GX.replaceText(m,k,c,b.getInlineStyleAt(v),A?b.getEntityAt(v):null);if(nJ)x=n.anchorOffset,C=n.focusOffset,_=(S=v+Math.min(x,C))+Math.abs(x-C),x=S,C=_;else{var P=c.length-w.length;S=O.getStartOffset(),_=O.getEndOffset(),x=o?_+P:S,C=_+P}var D=M.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:O.merge({anchorOffset:x,focusOffset:C})});e.update(XX.push(l,D,T))}else{var L=t.nativeEvent.inputType;if(L){var I=function(e,t){return"deleteContentBackward"===e?eJ(t):t}(L,l);if(I!==l)return e.restoreEditorDOM(),void e.update(I)}}}},oJ=kZ;var iJ=function(e){return e.which===oJ.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},aJ=iJ,sJ=iZ.isPlatform("Mac OS X"),cJ={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return sJ&&e.altKey},usesMacOSHeuristics:function(){return sJ},hasCommandModifier:function(e){return sJ?!!e.metaKey&&!e.altKey:cJ.isCtrlKeyCommand(e)},isSoftNewlineEvent:aJ},lJ=cJ,uJ=JK,fJ=WU,dJ=eK,pJ=_U,hJ=null,gJ={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=pJ(r),hJ=dJ(t,r);var s=uJ.removeRange(t,r,"forward");return s===t?e:fJ.push(e,s,"remove-range")},paste:function(e){if(!hJ)return e;var t=uJ.replaceWithFragment(e.getCurrentContent(),e.getSelection(),hJ);return fJ.push(e,t,"insert-fragment")}},vJ=PV;var yJ=iZ.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?vJ(!1,"Found an unexpected detached subtree when getting range client rects."):vJ(!1)}:function(e){return Array.from(e.getClientRects())},mJ=yJ,bJ=LX,wJ=aZ,xJ=mJ,CJ=PV;function SJ(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 _J(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 OJ=function(e){e.collapsed||("production"!==process.env.NODE_ENV?CJ(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):CJ(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=wJ(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?CJ(!1,"Missing document.body"):CJ(!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);SJ(xJ(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?CJ(!1,"Found unexpected detached subtree when traversing."):CJ(!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&&bJ.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!SJ(xJ(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=_J(i=i.childNodes[c])}return e.setStart(r,o),e},kJ=WU,EJ=OJ,jJ=KZ,AJ=zX,TJ=KX;var MJ=function(e,t){var n=TJ(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return AJ(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=EJ(r),jJ(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:kJ.push(e,n,"remove-range")},PJ="['‘’]",DJ="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),LJ=new RegExp("^(?:"+DJ+")*(?:"+PJ+"|(?!"+DJ+").)*(?:(?!"+DJ+").)"),IJ=new RegExp("(?:(?!"+DJ+").)(?:"+PJ+"|(?!"+DJ+").)*(?:"+DJ+")*$");function RJ(e,t){var n=t?IJ.exec(e):LJ.exec(e);return n?n[0]:e}var NJ={getBackward:function(e){return RJ(e,!0)},getForward:function(e){return RJ(e,!1)}},BJ=NJ,FJ=WU,zJ=zX,HJ=KX;var VJ=function(e){var t=HJ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return zJ(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=BJ.getBackward(o);return zJ(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:FJ.push(e,t,"remove-range")},KJ=BX;var $J=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&KJ(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})},UJ=NJ,WJ=WU,ZJ=$J,qJ=KX;var GJ=function(e){var t=qJ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=UJ.getForward(o);return ZJ(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:WJ.push(e,t,"remove-range")},YJ=JK,XJ=WU;var JJ=WU;var QJ=WU;var eQ=WU,tQ=LX,nQ=$J,rQ=KX;var oQ=function(e){var t=rQ(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return nQ(e,i?tQ.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return eQ.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},iQ=JK,aQ=WU,sQ=eK;var cQ=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=sQ(a,r),l=iQ.removeRange(a,r,"backward"),u=l.getSelectionAfter(),f=u.getAnchorOffset()-1,d=u.merge({anchorOffset:f,focusOffset:f}),p=iQ.replaceWithFragment(l,d,c),h=aQ.push(e,p,"insert-fragment");return aQ.acceptSelection(h,o)},lQ=WU;var uQ=function(e,t,n){var r=lQ.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(lQ.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(lQ.set(r,{nativelyRenderedContent:o}))}},fQ=JK,dQ=WU,pQ=kZ,hQ=gJ,gQ=iZ,vQ=jY,yQ=MJ,mQ=VJ,bQ=GJ,wQ=function(e){var t=YJ.splitBlock(e.getCurrentContent(),e.getSelection());return XJ.push(e,t,"split-block")},xQ=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return JJ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},CQ=function(e){var t=e.getSelection(),n=t.getStartKey();return QJ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},SQ=qX,_Q=oQ,OQ=cQ,kQ=uQ,EQ=lJ.isOptionKeyCommand,jQ=gQ.isBrowser("Chrome");var AQ=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 pQ.RETURN:if(t.preventDefault(),e.props.handleReturn&&vQ(e.props.handleReturn(t,r)))return;break;case pQ.ESC:if(t.preventDefault(),o("onEscape"))return;break;case pQ.TAB:if(o("onTab"))return;break;case pQ.UP:if(o("onUpArrow"))return;break;case pQ.RIGHT:if(o("onRightArrow"))return;break;case pQ.DOWN:if(o("onDownArrow"))return;break;case pQ.LEFT:if(o("onLeftArrow"))return;break;case pQ.SPACE:jQ&&EQ(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!vQ(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return dQ.redo(t);case"delete":return _Q(t);case"delete-word":return bQ(t);case"backspace":return SQ(t);case"backspace-word":return mQ(t);case"backspace-to-start-of-line":return yQ(t,n);case"split-block":return wQ(t);case"transpose-characters":return OQ(t);case"move-selection-to-start-of-block":return CQ(t);case"move-selection-to-end-of-block":return xQ(t);case"secondary-cut":return hQ.cut(t);case"secondary-paste":return hQ.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else kQ(t,r,e.update);else if(n===pQ.SPACE&&jQ&&EQ(t)){var s=fQ.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(dQ.push(r,s,"insert-characters"))}};var TQ=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),MQ=TQ,PQ=PV,DQ=iZ.isBrowser("IE <= 9");var LQ=function(e){var t,n=null;return!DQ&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?PQ(!1,"Missing doc.documentElement"):PQ(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},IQ=sZ;var RQ=function(e){return!(!e||!e.ownerDocument)&&(IQ(e)&&"A"===e.nodeName)},NQ=sZ;var BQ,FQ=function(e){return!(!e||!e.ownerDocument)&&(NQ(e)&&"IMG"===e.nodeName)};function zQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HQ(e,t,n[t])}))}return e}function HQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VQ=WH,KQ=sV,$Q=xV,UQ=_W,WQ=O$,ZQ=MQ,qQ=xW,GQ=VV,YQ=LQ,XQ=j$,JQ=LH,QQ=JQ.List,e1=JQ.Map,t1=JQ.OrderedSet,n1=RQ,r1=Aq,o1=jZ,i1=FQ,a1=XQ("draft_tree_data_support"),s1=new RegExp("\r","g"),c1=new RegExp("\n","g"),l1=new RegExp("^\n","g"),u1=new RegExp(" ","g"),f1=new RegExp(" ?","g"),d1=new RegExp("​?","g"),p1=["bold","bolder","500","600","700","800","900"],h1=["light","lighter","normal","100","200","300","400"],g1=["className","href","rel","target","title"],v1=["alt","className","height","src","width"],y1=(HQ(BQ={},qQ("public/DraftStyleDefault/depth0"),0),HQ(BQ,qQ("public/DraftStyleDefault/depth1"),1),HQ(BQ,qQ("public/DraftStyleDefault/depth2"),2),HQ(BQ,qQ("public/DraftStyleDefault/depth3"),3),HQ(BQ,qQ("public/DraftStyleDefault/depth4"),4),BQ),m1=e1({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),b1=function(e){if(o1(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},w1=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(y1).some((function(n){e.classList.contains(n)&&(t=y1[n])})),t},x1=function(e){if(!n1(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 ZQ(t.href);return!0}catch(e){return!1}},C1=function(e){if(!i1(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},S1=function(e,t){if(!o1(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){p1.indexOf(r)>=0?e.add("BOLD"):h1.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"))}))},_1=function(e){return"ul"===e||"ol"===e},O1=function(){function e(e,t){HQ(this,"characterList",QQ()),HQ(this,"currentBlockType","unstyled"),HQ(this,"currentDepth",0),HQ(this,"currentEntity",null),HQ(this,"currentText",""),HQ(this,"wrapper",null),HQ(this,"blockConfigs",[]),HQ(this,"contentBlocks",[]),HQ(this,"entityMap",WQ),HQ(this,"blockTypeMap",void 0),HQ(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=QQ(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=WQ,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],t1())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(a1?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=zQ({key:e.key||GQ(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:QQ(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=QQ(),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||_1(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;_1(i)&&(this.wrapper=i,_1(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(C1(o))this._addImgNode(o,t);else if(x1(o))this._addAnchorNode(o,n,t);else{var l=t;m1.has(i)&&(l=l.add(m1.get(i))),l=S1(o,l);var u=b1(o);null!=u&&(l=l.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),l))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,d=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!a1&&o1(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var p=o;this.currentDepth=w1(p,this.currentDepth)}var h=GQ(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:c})),this.currentDepth=f,this.wrapper=d}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=VQ.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=QQ()):(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(l1,"")).replace(c1," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){r1(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(i1(e)){var n=e,r={};v1.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),XQ("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(n1(e)){var r=e,o={};g1.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new ZQ(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=QQ(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new $Q(zQ({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return QQ(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 KQ(zQ({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=QQ(),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}(),k1=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:UQ,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:YQ)(e=e.trim().replace(s1,"").replace(u1," ").replace(f1,"").replace(d1,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),e1(t)}(t);return new O1(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function E1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j1=sV,A1=xV,T1=k1,M1=VV,P1=LQ,D1=j$,L1=LH,I1=T$,R1=L1.List,N1=L1.Repeat,B1=D1("draft_tree_data_support"),F1=B1?A1:j1,z1={processHTML:function(e,t){return T1(e,P1,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=I1(r);var i=M1(),a={key:i,type:n,text:r,characterList:R1(N1(t,r.length))};if(B1&&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){E1(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new F1(a)),e}),[])}};var H1=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})},V1=JK,K1=WU,$1=H1,U1=_U,W1={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 W1.toggleInlineStyle(e,"BOLD");case"italic":return W1.toggleInlineStyle(e,"ITALIC");case"underline":return W1.toggleInlineStyle(e,"UNDERLINE");case"code":return W1.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return W1.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return W1.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=V1.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=K1.push(e,t,"insert-characters");return K1.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 K1.push(e,a,"remove-range")}var s=W1.tryToRemoveBlockStyle(e);return s?K1.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=V1.removeRange(n,a,"forward");return s!==n?K1.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 l=$1(i,r,e.shiftKey?-1:1,n);return K1.push(t,l,"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=U1(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 l=i.getBlockForKey(r).getType()===t?"unstyled":t;return K1.push(e,V1.setBlockType(i,a,l),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?W1.toggleBlockType(e,"code-block"):W1.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return K1.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?V1.removeInlineStyle(i,n,t):V1.applyInlineStyle(i,n,t),K1.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=V1.applyEntity(e.getCurrentContent(),t,n);return K1.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 V1.setBlockType(o,t,"unstyled")}return null}},Z1=W1,q1=/\r\n?|\n/g;var G1=RH,Y1=WH,X1=SY,J1=JK,Q1=z1,e0=WU,t0=Z1,n0=eq,r0=EY,o0=jY,i0=function(e){return e.split(q1)};function a0(e,t,n){var r=J1.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return e0.push(e,r.set("entityMap",n),"insert-fragment")}var s0=function(e,t){t.preventDefault();var n=new X1(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&o0(e.props.handlePastedFiles(r)))return;return void r0(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=i0(t),i=Y1.create({style:n.getCurrentInlineStyle(),entity:n0(n.getCurrentContent(),n.getSelection())}),a=t0.getCurrentBlockType(n),s=Q1.processText(r,i,a),c=G1.createFromArray(s),l=J1.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(e0.push(n,l,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),c=e._latestEditorState;if(e.props.formatPastedText){var l=e.props.formatPastedText(a,s);a=l.text,s=l.html}if(!e.props.handlePastedText||!o0(e.props.handlePastedText(a,s,c))){if(a&&(i=i0(a)),!e.props.stripPastedStyles){var u,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(u=s)||void 0===u?void 0:u.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update(a0(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(a0(e._latestEditorState,f));if(s){var d=Q1.processHTML(s,e.props.blockRenderMap);if(d){var p=d.contentBlocks,h=d.entityMap;if(p){var g=G1.createFromArray(p);return void e.update(a0(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var v=Y1.create({style:c.getCurrentInlineStyle(),entity:n0(c.getCurrentContent(),c.getSelection())}),y=t0.getCurrentBlockType(c),m=Q1.processText(i,v,y),b=G1.createFromArray(m);e.update(a0(e._latestEditorState,b))}}},c0=iZ,l0=nX,u0=aX,f0=cX,d0=dX,p0=bX,h0=wX,g0=xX,v0=_X,y0=rJ,m0=AQ,b0=s0,w0=YZ,x0=c0.isBrowser("Chrome"),C0=c0.isBrowser("Firefox"),S0=x0||C0?w0:function(e){},_0={onBeforeInput:l0,onBlur:u0,onCompositionStart:f0,onCopy:d0,onCut:p0,onDragOver:h0,onDragStart:g0,onFocus:v0,onInput:y0,onKeyDown:m0,onPaste:b0,onSelect:w0,onMouseUp:S0,onKeyUp:S0},O0=r.unstable_flushControlled;var k0=t,E0=xW,j0=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=E0({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return k0.createElement("div",{className:t},k0.createElement("div",{className:E0("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(k0.Component),A0=j0,T0=lJ,M0=kZ,P0=iZ,D0=P0.isPlatform("Mac OS X"),L0=D0&&P0.isBrowser("Firefox < 29"),I0=T0.hasCommandModifier,R0=T0.isCtrlKeyCommand;function N0(e){return D0&&e.altKey||R0(e)}var B0=function(e){switch(e.keyCode){case 66:return I0(e)?"bold":null;case 68:return R0(e)?"delete":null;case 72:return R0(e)?"backspace":null;case 73:return I0(e)?"italic":null;case 74:return I0(e)?"code":null;case 75:return D0&&R0(e)?"secondary-cut":null;case 77:case 79:return R0(e)?"split-block":null;case 84:return D0&&R0(e)?"transpose-characters":null;case 85:return I0(e)?"underline":null;case 87:return D0&&R0(e)?"backspace-word":null;case 89:return R0(e)?D0?"secondary-paste":"redo":null;case 90:return function(e){return I0(e)?e.shiftKey?"redo":"undo":null}(e)||null;case M0.RETURN:return"split-block";case M0.DELETE:return function(e){return!D0&&e.shiftKey?null:N0(e)?"delete-word":"delete"}(e);case M0.BACKSPACE:return function(e){return I0(e)&&D0?"backspace-to-start-of-line":N0(e)?"backspace-word":"backspace"}(e);case M0.LEFT:return L0&&I0(e)?"move-selection-to-start-of-block":null;case M0.RIGHT:return L0&&I0(e)?"move-selection-to-end-of-block":null;default:return null}},F0=rT;function z0(){return z0=F0||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z0.apply(this,arguments)}function H0(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){K0(e,t,n[t])}))}return e}function V0(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var U0=_W,W0=OW,Z0=mq,q0=sY,G0=VY,Y0=_0,X0=O0,J0=A0,Q0=Tq,e2=WU,t2=t,n2=uG,r2=xG,o2=xW,i2=VV,a2=B0,s2=jG,c2=j$,l2=PV,u2=jZ,f2=_U,d2=iZ.isBrowser("IE"),p2=!d2,h2={edit:Y0,composite:Z0,drag:G0,cut:null,render:null},g2=!1,v2=function(e){function t(){return e.apply(this,arguments)||this}$0(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}(t2.Component),y2=function(e){function t(t){var n;return K0(V0(n=e.call(this,t)||this),"_blockSelectEvents",void 0),K0(V0(n),"_clipboard",void 0),K0(V0(n),"_handler",void 0),K0(V0(n),"_dragCount",void 0),K0(V0(n),"_internalDrag",void 0),K0(V0(n),"_editorKey",void 0),K0(V0(n),"_placeholderAccessibilityID",void 0),K0(V0(n),"_latestEditorState",void 0),K0(V0(n),"_latestCommittedEditorState",void 0),K0(V0(n),"_pendingStateFromBeforeInput",void 0),K0(V0(n),"_onBeforeInput",void 0),K0(V0(n),"_onBlur",void 0),K0(V0(n),"_onCharacterData",void 0),K0(V0(n),"_onCompositionEnd",void 0),K0(V0(n),"_onCompositionStart",void 0),K0(V0(n),"_onCopy",void 0),K0(V0(n),"_onCut",void 0),K0(V0(n),"_onDragEnd",void 0),K0(V0(n),"_onDragOver",void 0),K0(V0(n),"_onDragStart",void 0),K0(V0(n),"_onDrop",void 0),K0(V0(n),"_onInput",void 0),K0(V0(n),"_onFocus",void 0),K0(V0(n),"_onKeyDown",void 0),K0(V0(n),"_onKeyPress",void 0),K0(V0(n),"_onKeyUp",void 0),K0(V0(n),"_onMouseDown",void 0),K0(V0(n),"_onMouseUp",void 0),K0(V0(n),"_onPaste",void 0),K0(V0(n),"_onSelect",void 0),K0(V0(n),"editor",void 0),K0(V0(n),"editorContainer",void 0),K0(V0(n),"focus",void 0),K0(V0(n),"blur",void 0),K0(V0(n),"setMode",void 0),K0(V0(n),"exitCurrentMode",void 0),K0(V0(n),"restoreEditorDOM",void 0),K0(V0(n),"setClipboard",void 0),K0(V0(n),"getClipboard",void 0),K0(V0(n),"getEditorKey",void 0),K0(V0(n),"update",void 0),K0(V0(n),"onDragEnter",void 0),K0(V0(n),"onDragLeave",void 0),K0(V0(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),K0(V0(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=r2.getScrollParent(o),a=e||s2(i),s=a.x,c=a.y;u2(o)||("production"!==process.env.NODE_ENV?l2(!1,"editorNode is not an HTMLElement"):l2(!1)),o.focus(),i===window?window.scrollTo(s,c):n2.setTop(i,c),r||n.update(e2.forceSelection(t,t.getSelection()))}})),K0(V0(n),"blur",(function(){var e=n.editor;e&&(u2(e)||("production"!==process.env.NODE_ENV?l2(!1,"editorNode is not an HTMLElement"):l2(!1)),e.blur())})),K0(V0(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=H0({},h2.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=H0({},h2,{edit:a});n._handler=s[e]})),K0(V0(n),"exitCurrentMode",(function(){n.setMode("edit")})),K0(V0(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),K0(V0(n),"setClipboard",(function(e){n._clipboard=e})),K0(V0(n),"getClipboard",(function(){return n._clipboard})),K0(V0(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),K0(V0(n),"onDragEnter",(function(){n._dragCount++})),K0(V0(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||i2(),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}$0(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&&(X0?X0((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:f2(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return t2.createElement(J0,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,l=e.textAlignment,u=e.textDirectionality,f=o2({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===l,"DraftEditor/alignRight":"right"===l,"DraftEditor/alignCenter":"center"===l}),d=this.props.role||"textbox",p="combobox"===d?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:H0({},W0,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:u};return t2.createElement("div",{className:f},this._renderPlaceholder(),t2.createElement("div",{className:o2("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},t2.createElement("div",{"aria-activedescendant":c?null:this.props.ariaActiveDescendantID,"aria-autocomplete":c?null:this.props.ariaAutoComplete,"aria-controls":c?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":c?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":c?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:o2({notranslate:!c,"public/DraftEditor/content":!0}),contentEditable:!c,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:c?null:d,spellCheck:p2&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},t2.createElement(v2,{editor:this,editorState:a}),t2.createElement(q0,z0({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!g2&&c2("draft_ods_enabled")&&(g2=!0,Q0.initODS()),this.setMode("edit"),d2&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):st.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(t2.Component);K0(y2,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:U0,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:a2,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var m2=y2,b2={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},w2=b2,x2=LX.strlen;var C2=LX,S2=ZH,_2=function(e,t){return e===t},O2=function(e){return!!e},k2=[];var E2=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 S2(o,_2,O2,(function(t,o){var i=e.getText();r.push({offset:C2.strlen(i.slice(0,t)),length:C2.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(k2,n.toJS())};function j2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A2=sV,T2=xV,M2=b2,P2=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:x2(i.slice(0,r)),length:x2(i.slice(r,o)),key:Number(t[w2.stringify(a)])})})),n},D2=E2,L2=PV,I2=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:D2(e),entityRanges:P2(e,t),data:e.getData().toObject()}},R2=function(e,t,n,r){if(e instanceof A2)n.push(I2(e,t));else{e instanceof T2||("production"!==process.env.NODE_ENV?L2(!1,"block is not a BlockNode"):L2(!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){j2(e,t,n[t])}))}return e}({},I2(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},N2=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=M2.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),R2(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(M2.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function B2(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){F2(e,t,n[t])}))}return e}function F2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z2=VV,H2=PV,V2=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},K2={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?H2(!1,"Invalid raw state"):H2(!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?H2(!1,"Invalid tree raw block"):H2(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=B2({},e);V2(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?B2({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,B2({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=V2(e),o=e.depth||0,i=B2({},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:z2(),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)})),B2({},e,{blocks:t})}},$2=BX,U2={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&&$2(!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&&$2(!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&&$2(!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&&$2(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&$2(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&$2(!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&&$2(!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)})),l=c.find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return"production"!==process.env.NODE_ENV&&$2(!0,"%s has no first child",r),!1;r=l.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&$2(!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)}},W2=U2,Z2=WH,q2=LH.List;var G2=function(e,t){var n=e.map((function(e,n){var r=t[n];return Z2.create({style:e,entity:r})}));return q2(n)},Y2=LX.substr;var X2=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=Y2(e,0,t.offset).length,o=r+Y2(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},J2=LX,Q2=LH.OrderedSet,e5=J2.substr,t5=Q2();var n5=function(e,t){var n=Array(e.length).fill(t5);return t&&t.forEach((function(t){for(var r=e5(e,0,t.offset).length,o=r+e5(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function r5(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){o5(e,t,n[t])}))}return e}function o5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i5=sV,a5=xV,s5=J$,c5=O$,l5=K2,u5=W2,f5=E$,d5=G2,p5=X2,h5=n5,g5=VV,v5=LH,y5=PV,m5=j$("draft_tree_data_support"),b5=v5.List,w5=v5.Map,x5=v5.OrderedMap,C5=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||g5(),data:w5(o),characterList:S5(e,t)}},S5=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return d5(h5(n,o||[]),p5(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r5({},e,{key:t[e.key]})}))))},_5=function(e){return r5({},e,{key:e.key||g5()})},O5=function(e,t,n){var r=t.map((function(e){return r5({},e,{parentRef:n})}));return e.concat(r.reverse())},k5=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=m5&&!n?l5.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!m5)return function(e,t){return x5(e.map((function(e){var n=new i5(C5(e,t));return[n.getKey(),n]})))}(n?l5.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(_5).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?y5(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):y5(!1));var i=r.children.map(_5),a=new a5(r5({},C5(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:b5(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=O5([],i,a);s.length>0;){var c=s.pop(),l=c.parentRef,u=l.getChildKeys(),f=u.indexOf(c.key),d=Array.isArray(c.children);if(!d){d||("production"!==process.env.NODE_ENV?y5(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):y5(!1));break}var p=c.children.map(_5),h=new a5(r5({},C5(c,t),{parent:l.getKey(),children:b5(p.map((function(e){return e.key}))),prevSibling:0===f?null:u.get(f-1),nextSibling:f===u.size-1?null:u.get(f+1)}));n=n.set(h.getKey(),h),s=O5(s,p,h)}return n}),x5())}(r,t);return"production"!==process.env.NODE_ENV&&(u5.isValidTree(o)||("production"!==process.env.NODE_ENV?y5(!1,"Should be a valid tree"):y5(!1))),o},E5=mJ;var j5=function(e){var t=E5(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 l=t[c];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),r=Math.max(r,l.right),o=Math.max(o,l.bottom),i=Math.min(i,l.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},A5=j5;var T5=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=A5(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},M5={Editor:m2,EditorBlock:aY,EditorState:WU,CompositeDecorator:bW,Entity:O$,EntityInstance:g$,BlockMapBuilder:RH,CharacterMetadata:WH,ContentBlock:sV,ContentState:J$,RawDraftContentState:{},SelectionState:E$,AtomicBlockUtils:vW,KeyBindingUtil:lJ,Modifier:JK,RichUtils:Z1,DefaultDraftBlockRenderMap:_W,DefaultDraftInlineStyle:OW,convertFromHTML:k1,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?y5(!1,"invalid RawDraftContentState"):y5(!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]=c5.__create(o,i,a||{})})),n}(e),n=k5(e,t),r=n.isEmpty()?new f5:f5.createEmpty(n.first().getKey());return new s5({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:N2,genKey:VV,getDefaultKeyBinding:B0,getVisibleSelectionRect:T5};const P5="FOUND_FIELD",D5="NOT_FOUND",L5="IMMUTABLE",I5=W.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),R5=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},N5=new M5.CompositeDecorator([{strategy:(e,t,n)=>R5(e,t,n,P5),component:({children:t})=>e.jsx(I5,{children:t})},{strategy:(e,t,n)=>R5(e,t,n,D5),component:({children:t})=>e.jsx(I5,{error:!0,children:t})}]),B5=(e,t,n)=>{const r=ut.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}},F5=(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=ut.find(t||[],{id:i})||{id:i,label:""},{label:c,isValid:l}=B5(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:l?P5:D5,mutability:L5,data:{id:i}}}o.text+=a}return M5.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return M5.EditorState.createWithContent(r,N5)},z5=(e,t=!0)=>{const n=e.getCurrentContent(),r=M5.convertToRaw(n);return t?(e=>{const t=e.blocks.map((t=>{const{text:n,entityRanges:r}=t;if(r.length<1)return n;const o=[];let i=0;return r.forEach((({key:t,offset:r,length:a})=>{r>i&&o.push(n.substr(i,r-i));const s=ut.get(e,`entityMap[${t}].data.id`,"unknown");o.push(`<<${s}>>`),i=r+a})),o.push(n.substr(i)),o.join("")}));return t.join(" ")})(r):r},H5=e=>{const t=z5(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},V5=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new M5.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return M5.EditorState.forceSelection(e,o)},K5=(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)}}},$5=e=>!!e||null!=e&&""!==e,U5=W.div((({theme:{input:e},backgroundColor:t,borderRadius:n,borderless:r,borderColor:o,textOnly:i,focused:a,invalid:s,disabled:c,hasLabel:l,pointer:u})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:l?48:40,height:l?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:u?"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})),an,cn,sn),W5=W.div((({readOnly:e})=>({display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",position:"relative","& > label, & > input":{pointerEvents:e?"none":void 0,caretColor:e?"transparent":void 0}}))),Z5=W.label((({theme:{font:e,input:t},filled:n,focused:r})=>({fontSize:n||r?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,position:"relative",top:n||r?void 0:1})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0})),(({theme:{input:e},focused:t})=>({color:t?e.labelColor.focused:void 0}))),q5=W.div((({theme:{font:e,input:t},invalid:n})=>({color:n?t.color.descriptionError:t.color.description,fontSize:e.size.sm,position:"absolute",left:0,top:"calc(100% + 4px)"})));var G5={Container:U5,Wrapper:W5,Label:Z5,Description:q5,useInputFocus:K5,isInputFilled:$5};const Y5=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:l,mergeFields:u=[],placeholder:f="Text here...",description:d,invalid:p,width:h,height:g,maxHeight:v,borderless:y=!1,noPadding:m=!1,readOnly:b=!1,displayMergedValues:w=!1,color:x,overflow:C,clampLines:S,label:_,disabled:O,borderRadius:k,backgroundColor:E,fontSize:j,textOnly:A,margin:T,marginLeft:M,marginRight:P,marginTop:D,marginBottom:L}=n,I=c(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","description","invalid","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,N]=t.useState((()=>F5(o,u,w))),{focused:B,handleFocus:F,handleBlur:z}=K5(s,l),[H,V]=t.useState(!1),K=t.useRef(null),$=t.useRef(),U=null!=v?v:g,W=U?U-(y?0:_?29:11):void 0,Z=e=>{N(e);const t=(e=>H5(e).some((e=>e.type===D5)))(e);V(t);const n=z5(e),r=e.getLastChangeType();i&&i(n,t,r)},q=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=B5(e,t,r),l=c?P5:D5,u=i.createEntity(l,L5,{id:o}).getLastCreatedEntityKey(),f=M5.Modifier.insertText(i,a,s,void 0,u),d=M5.EditorState.push(n,f,"insert-characters");return M5.EditorState.forceSelection(d,f.getSelectionAfter())})(e,u,R,w);Z(t)},G=()=>{(null==K?void 0:K.current)&&K.current.focus();const e=V5(R);N(e)};t.useImperativeHandle(r,(()=>({insertField:q,focusAtEnd:G})));t.useEffect((()=>{z5(R)!==o&&(e=>{const t=R.getSelection(),n=F5(e,u,w),r=V5(n),o=t.getHasFocus()?r:n;Z(o)})(o)}),[o]),t.useEffect((()=>{$.current=u}),[]),t.useEffect((()=>{const{current:e}=$,t=ut.isEqual(e,u),n=H5(R);if(!t&&n.length>0){$.current=u;const e=F5(o,u,w);Z(e)}}),[u]);return e.jsxs(X5,{onClick:e=>{b||e.stopPropagation();R.getSelection().getHasFocus()||G()},width:h,height:g,editorMaxHeight:W,borderless:y||A,noPadding:m||A,readOnly:b,color:x,overflow:C,clampLines:S,filled:$5(o),invalid:p||H,textOnly:A,borderRadius:k,backgroundColor:E,fontSize:j,margin:T,marginLeft:M,marginRight:P,marginTop:D,marginBottom:L,focused:B,disabled:O,hasLabel:!!_,hideEditor:!$5(o)&&!!_&&!B,children:[e.jsxs(W5,{readOnly:b,children:[_&&e.jsx(Z5,{filled:$5(o),focused:B,disabled:O,children:_}),e.jsx(M5.Editor,Object.assign({ref:K,editorState:R,onChange:Z,placeholder:f,readOnly:b,handleReturn:e=>{const t=M5.RichUtils.insertSoftNewline(R);return e.shiftKey||!a?Z(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=M5.convertFromRaw({blocks:[o],entityMap:{}}),a=M5.EditorState.createWithContent(i,N5).getCurrentContent().getBlockMap(),s=M5.Modifier.replaceWithFragment(n,r,a);return M5.EditorState.push(t,s,"insert-fragment")})(e,n);return Z(r),"handled"},onFocus:F,onBlur:z},I))]}),d&&e.jsx(q5,{invalid:p,children:d})]})})),X5=W(U5)((({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:l})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!l||n||c?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}}));var J5={exports:{}};J5.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,l=[],u=!1,f=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):f=-1,l.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++f<t;)c&&c[f].run();f=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,o,i,a,s,c){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,o,i,a,s,c],f=0;(l=new Error(t.replace(/%s/g,(function(){return u[f++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}}).call(t,n(0))},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){var r=n(1);if("production"!==t.env.NODE_ENV){var o=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];o.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(0))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.format=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(6),a=l(i),s=l(n(7)),c=n(12);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={phoneNumber:r.props.value?(0,c.format)(r.props.value):"",cursorPosition:0,key:""},r.handleKeyDown=function(e){var t=e.key,n=e.currentTarget,o=n.selectionStart,i=n.selectionEnd;if(!(0,c.isInvalidKey)(t)){var a={start:o,end:i},s=(0,c.update)(r.state.phoneNumber,a,t),l=s.phoneNumber,u=void 0===l?"":l,f=s.cursorPosition,d=void 0===f?0:f;r.setState({phoneNumber:u,cursorPosition:d,key:t}),r.props.onChange(u)}},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.value!==e.value&&this.setState({phoneNumber:(0,c.format)(e.value),cursorPosition:0,key:""})}},{key:"componentDidUpdate",value:function(){var e=this,t=this.state.cursorPosition;this.textInput&&(navigator.userAgent.search("Chrome")>0&&window.requestAnimationFrame((function(){e.textInput.setSelectionRange(t,t)})),setTimeout((function(){e.textInput.setSelectionRange(t,t)}),20))}},{key:"render",value:function(){var e,t=this,n=this.state.phoneNumber,o=this.props.inputComponent,i=o?"innerRef":"ref",s=r({},this.props,(u(e={},i,(function(e){return t.textInput=e})),u(e,"type","tel"),u(e,"value",n),u(e,"onKeyDown",this.handleKeyDown),u(e,"onChange",(function(){})),e));return o?a.default.createElement(o,s):a.default.createElement("input",s)}}]),t}(i.Component);d.propTypes={inputComponent:s.default.oneOfType([s.default.instanceOf(i.Component),s.default.func]),onChange:s.default.func,value:s.default.string},d.defaultProps={onChange:function(){}},t.format=c.format,t.normalize=c.normalize,t.default=d},function(e,n){e.exports=t},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(8)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(11)()}).call(t,n(0))},function(e,t,n){(function(t){var r=n(1),o=n(2),i=n(4),a=n(9),s=n(3),c=n(10);e.exports=function(e,n){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",f="<<anonymous>>",d={array:v("array"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:g(r.thatReturnsNull),arrayOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<a.length;c++){var l=e(a,c,r,o,i+"["+c+"]",s);if(l instanceof Error)return l}return null}))},element:g((function(t,n,r,o,i){var a=t[n];return e(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,r,o){return y(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],c=m(a);if("object"!==c)return new h("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var l in a)if(a.hasOwnProperty(l)){var u=e(a,l,r,o,i+"."+l,s);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;return new h("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",w(o),n),r.thatReturnsNull}return g((function(t,n,r,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,o,i,s))return null;return new h("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return g((function(t,n,r,o,i){var a=t[n],c=m(a);if("object"!==c)return new h("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var l in e){var u=e[l];if(u){var f=u(a,l,r,o,i+"."+l,s);if(f)return f}}return null}))},exact:function(e){return g((function(t,n,r,o,i){var c=t[n],l=m(c);if("object"!==l)return new h("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");var u=a({},t[n],e);for(var f in u){var d=e[f];if(!d)return new h("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=d(c,f,r,o,i+"."+f,s);if(p)return p}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){this.message=e,this.stack=""}function g(e){if("production"!==t.env.NODE_ENV)var r={},a=0;function c(c,l,u,d,p,g,v){if(d=d||f,g=g||u,v!==s)if(n)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var y=d+":"+u;!r[y]&&a<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",g,d),r[y]=!0,a++)}return null==l[u]?c?null===l[u]?new h("The "+p+" `"+g+"` is marked as required in `"+d+"`, but its value is `null`."):new h("The "+p+" `"+g+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(l,u,d,p,g)}var l=c.bind(null,!1);return l.isRequired=c.bind(null,!0),l}function v(e){return g((function(t,n,r,o,i,a){var s=t[n];return m(s)!==e?new h("Invalid "+o+" `"+i+"` of type `"+b(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||e(t))return!0;var n=function(e){var t=e&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!y(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!y(i[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=c,d.PropTypes=d,d}}).call(t,n(0))},function(e,t,n){
|
|
39
39
|
/*
|
|
40
40
|
object-assign
|
|
41
41
|
(c) Sindre Sorhus
|
|
42
42
|
@license MIT
|
|
43
43
|
*/
|
|
44
|
-
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 l in n=Object(arguments[c]))o.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(s[a[u]]=n[a[u]])}}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,l){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var f;try{r("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",s,u,typeof e[u]),f=e[u](n,u,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,u,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var d=l?l():"";o(!1,"Failed %s type: %s%s",s,f.message,null!=d?d:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?s(e,t):function(e,t,n){return!(10===l(e).length&&!n||i(t))}(e,n,r)?c(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var s=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var s=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+s+i.substring(r)}var c=d(e,i,t,o);return{phoneNumber:f(i),cursorPosition:c}},c=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=u(e,n,t)),a(t)||(o=u(e,n,t));var i=d(e,o,t,r);return{phoneNumber:f(o),cursorPosition:i}},l=t.normalize=function(e){return e.replace(/\D/g,"")},u=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},f=t.format=function(e){var t=l(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},d=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return f(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var s=/[^0-9]/g;if(a(n)&&s.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&s.test(e[n.start-1]))return n.start-1}var c=e.substring(n.end).match(/[0-9]/g),l=c?c.length:0,u=f(t),d=p(u,l);return u.length-d},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var i9=o9.exports;const a9=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(fn,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(fn,Object.assign({},n,r))},s9=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:s,placeholderColor:l,description:u,isLoading:f,search:d,phone:p,textOnly:h,iconLeft:g,iconRight:v,invalid:y,borderless:m,borderRadius:b,borderColor:w,backgroundColor:x,fontSize:C,width:S,height:_,margin:O,marginLeft:k,marginRight:E,marginTop:j,marginBottom:A,padding:T,paddingLeft:M,paddingRight:P,paddingTop:D,paddingBottom:L,containerRef:I,value:R,disabled:N,readOnly:B,preventFocus:F,pointer:z,hideControls:H,onChange:V,onClick:K,onClear:$,onFocus:U,onBlur:W}=r,Z=c(r,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderless","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","hideControls","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:q,handleFocus:G,handleBlur:Y}=G5(U,W,!F&&!B),X=t.useRef(null),{color:J}=n.useTheme(),[Q,ee]=t.useState(h?50:void 0),te=t.useRef(null),ne={margin:O,marginTop:j,marginBottom:A,marginRight:E,marginLeft:k},re={padding:T,paddingTop:D,paddingBottom:L,paddingRight:P,paddingLeft:M};t.useLayoutEffect((()=>{if(h&&(null==te?void 0:te.current)){const{current:e}=te;R&&(e.innerHTML=R.toString().replace(/ /g," "));const t=e.offsetWidth;"number"==typeof t&&ee(t+3)}}),[h,R,s,te]);const oe=h?R||s:R,ie=(!!R||"number"==typeof R)&&$&&!f;t.useEffect((()=>{var e,t;if(p&&"string"==typeof R&&10===R.length&&R===i9.normalize(R)){const{current:n}=X;if(n){const r=i9.format(R),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[R]);const ae=()=>{q||G()},se=()=>{q&&Y()},ce=()=>{ae(),(null==X?void 0:X.current)&&X.current.select()};t.useImperativeHandle(o,(()=>({focus:ae,blur:se,hasFocus:q,select:ce}))),t.useEffect((()=>{var e;q&&(null===(e=X.current)||void 0===e||e.focus())}),[q]);return e.jsxs(X5,Object.assign({ref:I,invalid:y,textOnly:h,borderless:m||h,borderRadius:b,borderColor:w,backgroundColor:x,width:S,height:_,focused:q,disabled:N,hasLabel:!!a,onClick:e=>{F||B||ae(),K&&K(e)},pointer:z,readOnly:B},ne,re,{children:[d&&e.jsx(fn,{name:"search",marginRight:8,inheritColor:!0}),g&&a9(g,{marginRight:8}),e.jsxs(J5,{readOnly:B||F,children:[h&&e.jsx(u9,{ref:te,fontSize:C,children:oe}),a&&!h&&e.jsx(Q5,{htmlFor:i||a,filled:Y5(R),focused:q,disabled:N,children:a}),e.jsx(c9,Object.assign({id:i||a,ref:X,value:R,placeholder:s,placeholderColor:l,onChange:e=>{if(p){const{value:t}=e.target,n=i9.normalize(t);if(n.length>10)return;const r=i9.format(n);V&&V(e,r,n)}else V&&V(e)},onFocus:G,onBlur:Y,disabled:N,hide:!(Y5(R)||!a||q||h),width:Q,fontSize:C,hideControls:H},Z))]}),v&&a9(v),f&&e.jsx(pc,{}),ie&&e.jsx(l9,{onClick:$,children:e.jsx(fn,{name:"close-circle-outline",color:J.brand})}),u&&e.jsx(e9,{invalid:y,children:u})]}))})),c9=W.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:s,placeholderColor:c})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:s||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:c||t.color.placeholder,opacity:1}})),(({hideControls:e})=>e&&{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}})),l9=W.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),u9=W.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),f9=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),d9=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:s,onFocus:l,onBlur:u,onError:f,placeholder:d,placeholderColor:p,value:h,options:g,children:v,borderless:y,borderColor:m,backgroundColor:b,hideIcon:w,clearOnSelect:x,textOnly:C,width:S,height:_,isLoading:O,margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T,label:M,id:P,name:D,trigger:L,centerY:I,centerX:R,offsetY:N,offsetX:B,direction:F,fontSize:z,description:H,disabled:V,invalid:K,search:$,filter:U,restrictInput:W,inputRef:Z,optionsParent:q}=r,G=c(r,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderless","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[Y,X]=t.useState(""),[J,Q]=t.useState(""),[ee,te]=t.useState(!1),[ne,re]=t.useState(!1),[oe,ie]=t.useState(!1),ae=t.useRef(null),{input:se}=n.useTheme(),ce={margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T},le=e=>{e&&e.stopPropagation(),!ee&&a&&a(),ee&&s&&s(),te((e=>!e))};t.useEffect((()=>{var e;if(ee&&$){null===(e=(Z||ae).current)||void 0===e||e.focus()}}),[ee,$]),t.useEffect((()=>{f&&f(oe)}),[oe]),t.useEffect((()=>{i&&i(J)}),[J]);const ue=at(le,ee,q?[q,`${q} *`]:void 0),fe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ve().find((t=>{let n=fe(t.label,e);return!n&&"id"in t&&(n=fe(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=fe(t.value,e)),n}));return t},pe=e=>"function"==typeof W?!W(e):W,he=e=>ge(null,e),ge=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(pe(e))return de(e)||null;return{id:_z(),label:e,value:e}})(e);const t=pe(e);null===n&&t&&(r=!0)}else n=e;ee&&le(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&&null!=h||he()}),[h]);const ve=()=>{const e=Vs(v).map((e=>{const t=e;let n=t.props.displayText||"";return!M&&t.props.children&&(n=f9(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Ws(g||[],{search:$,filter:U,inputText:J}),...e]},ye={options:ve(),select:ge,open:le,close:le,searchText:$?J:void 0,isOpen:ee,isFocused:ne},[me,be]=ft(ye),we=qs(g||[],v,ge,le,{selected:me,search:$,filter:U,inputText:J}),xe=ee?"caret-up":"caret-down",Ce=C&&!V?p||se.color.default:void 0,Se=c(G,["onClear","phone"]);return e.jsx(p9,Object.assign({textOnly:C,altTrigger:!!L,width:S,height:_,focused:ne,search:$},ce,{children:e.jsxs(h9,{ref:ue,children:[L?e.jsx(g9,{id:P,onClick:le,tabIndex:0,onFocus:()=>re(!0),onBlur:()=>re(!1),children:L}):e.jsx(y9,{shake:oe,children:e.jsx(s9,Object.assign({},Se,{ref:Z||ae,id:P,name:D,label:M,fontSize:z,pointer:!0,preventFocus:!$,value:J||h||Y,placeholder:d||"Select",placeholderColor:Ce,iconRight:w||O?void 0:xe,borderless:y,borderColor:m,backgroundColor:b,isLoading:O,textOnly:C,description:H,disabled:V,invalid:oe||K,onClick:le,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(Z||ae).current)||void 0===t?void 0:t.hasFocus;$?(Q(n),!ee&&r&&te(!0),oe&&ie(!1)):n||he(e);const o=de(n),i=pe(n),a=""===n||i&&!r;o&&!($&&(!i||r))?ge(o,e):$&&!a||he(e)},onFocus:e=>{re(!0),l&&l(e)},onBlur:e=>{var t;if(re(!1),u&&u(e),$&&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(Ks,{containerRef:be,parentSelector:q,width:!L&&!C||q?"100%":void 0,centerY:I,centerX:R,offsetY:N,offsetX:B,direction:F,children:we})]})}))};d9.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:s,accented:c,onClick:l,id:u})=>{const f=l?e=>{l&&l(e),o&&o()}:e=>{const o={id:u,label:n||f9(i)||"",value:t};r&&r(o,e)};return e.jsx(Ks.Item,{id:u,contentPosition:a,color:s,onClick:f,accented:c,children:i})};const p9=W.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),an,cn),h9=W.div({position:"relative",width:"100%",height:"inherit"}),g9=W.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),v9=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)"}}),y9=W.div((({shake:e})=>({"& input":{animation:e?`${v9} .5s linear`:void 0}}))),m9=W.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:l,width:u,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:l,alignContent:a,justifyContent:c,width:u,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),sn,cn);m9.Item=W.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:l,border:u})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:l,border:u})),sn,cn);const b9=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d}=t,p=c(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d};return e.jsxs(Dz,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(Iz,{children:r}),e.jsx(Lz,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(fn,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},w9=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:l,margin:u,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h}=n,g=c(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,y]=t.useState("toggle-off"),[m,b]=t.useState(a||!1),w="right"===i,x={margin:u,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h};return t.useEffect((()=>{y(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof a?a:m)}),[a,m]),e.jsxs(Dz,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(Iz,{children:o}),e.jsx(Lz,Object.assign({id:r,type:"checkbox",checked:m,disabled:s,onChange:()=>{const e=!m;b(e),l(e)}},g)),e.jsx(fn,{name:v,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},x9=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=c(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(C9,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&a9(r,{marginRight:4,size:"small"}),n,o&&a9(o,{marginLeft:4,size:"small"})]}))},C9=W.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),cn),S9=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,l=c(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(_9,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},l,{children:n}))};S9.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,l=c(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(O9,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},l,{children:n}))},S9.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=c(t,["children","inline","align","disabled"]);return e.jsx(k9,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},S9.Input=s9,S9.Dropdown=d9,S9.Radio=b9,S9.Toggle=w9,S9.Checkbox=Rz,S9.Label=x9;const _9=W(m9)({boxSizing:"border-box"}),O9=W(m9)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),k9=W.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),cn),E9=W.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),j9=W.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),A9=W.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),T9=W.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),M9=W.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),P9=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:l,border:u,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:y,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(D9,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:l,border:u,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:y,borderBottomRightRadius:m,backgroundColor:b,role:"menu",children:w?Vs(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),D9=W.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:l})=>({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:l})),sn),L9=W.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),I9=W.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),R9=W.div({marginLeft:"auto",marginRight:8});P9.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx(L9,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c,children:s}),P9.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:l,children:u,indent:f=1,backgroundColor:d})=>{const[p,h]=t.useState(r||i),g=e=>Vs(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:d})}return null})),v=g(u),y=()=>h((e=>!e));return e.jsxs(I9,{backgroundColor:d,children:[e.jsxs(L9,{vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),p||y()):y()},id:l,role:"menuitem",indent:f,children:[n,e.jsx(R9,{onClick:e=>{e.stopPropagation(),y()},children:e.jsx(fn,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&v]})};const N9=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:l,marginRight:u,marginLeft:f,children:d})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:v}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),y={margin:s,marginTop:c,marginBottom:l,marginRight:u,marginLeft:f};return e.jsxs(z9,Object.assign({borderColor:g,backgroundColor:v,width:a,showingClose:o},y,{children:[e.jsx(fn,{name:h,style:{marginRight:10},color:g}),e.jsx(H9,{children:r||d}),o&&e.jsx(fn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},B9=W.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),F9=W.div((({theme:e})=>({fontWeight:e.font.weight.default})));N9.Header=B9,N9.Body=F9;const z9=W.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),cn),H9=W.div({width:"100%"}),V9=W.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),K9=W.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),$9=W.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),U9=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:l,preventOverlayClose:u,overlayColor:f,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v,position:y,top:m,bottom:b,right:w,left:x,padding:C,paddingTop:S,paddingBottom:_,paddingRight:O,paddingLeft:k,zIndex:E})=>{const j=at(u?()=>null:c,i),A={padding:C,paddingTop:S,paddingBottom:_,paddingRight:O,paddingLeft:k},T=Vs(n).map((e=>e?t.cloneElement(e,{inline:p}):null)),M=e.jsx(q9,{color:f,noOverlay:h,centerX:g,centerY:v,position:y,top:m,bottom:b,right:w,left:x,zIndex:E,children:e.jsxs(W9,Object.assign({ref:j,width:a,height:s,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v},A,{children:[T,l&&e.jsx(Z9,{inline:p,children:e.jsx(fn,{name:"close",onClick:c,pointer:!0})})]}))}),P=document.querySelector(o||"#root");return i&&P?r.createPortal(M,P):null};U9.Header=W.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),U9.Text=W.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),U9.Body=W.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),cn),U9.Footer=W.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),cn);const W9=W.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),sn),Z9=W.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),q9=W.div((({color:e,noOverlay:t,centerX:n,centerY:r,position:o,top:i,bottom:a,right:s,left:c,zIndex:l})=>({position:o||"absolute",top:i||(c||a||s?void 0:0),left:c||(i||a||s?void 0:0),bottom:a,right:s,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:l||100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),G9=t.forwardRef(((o,i)=>{var{children:a,options:s,items:l,listLabel:u,listText:f,itemsTitle:d,maxItems:p,placeholder:h,width:g,filter:v,restrictInput:y,disabled:m,hideItemsInfo:b,optionsParent:w,compact:x,backgroundColor:C,borderless:S,addItem:_,removeItem:O,onTextChange:k,autoFocus:E}=o,j=c(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[A,T]=t.useState(E||!1),[M,P]=t.useState(!1),[D,L]=t.useState(""),{color:I,font:R,input:N}=n.useTheme(),B=at((()=>T(!1)),A,w?[w,`${w} *`]:void 0),F=t.useRef(null),z=x&&!!u,H=e=>{e&&_(e)},V=()=>{const{current:e}=F;A||u||T(!0),null==e||e.focus()},K=()=>{const{current:e}=F;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:V,blur:K})));const $=e=>{L(e),k&&k(e)};t.useEffect((()=>{A||K()}),[A]);it(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(l.length>0){e.preventDefault();const t=l[l.length-1];O(t)}}),A&&!D,[l]);const U=s.filter((e=>!l.find((t=>t.id===e.id)))),W=t.useMemo((()=>`multi-select-${_z()}`),[]),Z=t.useMemo((()=>`multi-select-list-${_z()}`),[]),q=p?l.length>=p:void 0,G=m||!A||q,Y=()=>{const t=e.jsxs(Q9,{id:Z,expanded:A,padTop:A&&l.length>0,labeled:!!u,children:[f&&e.jsx(e3,{expanded:A,labeled:!!u,children:f}),a?a(A,!!m):l.map((t=>e.jsx(x9,{pill:!0,iconRight:A&&!m?e.jsx(fn,{name:"close-circle",onClick:()=>O(t),pointer:!0}):void 0,disabled:m,children:t.label},t.id))),e.jsx(d9,Object.assign({},j,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:v,backgroundColor:"transparent",restrictInput:y,options:U,fontSize:R.size.md,placeholder:m||l.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:F,onChange:H,onTextChange:$,onError:e=>P(e),disabled:G,optionsParent:w?`#${Z}`:`#${W}`,autoFocus:E}))]});if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs(Y9,{width:g,ref:B,labeled:!!u,disabled:m,collapse:z,onClick:e=>{e.stopPropagation(),V()},children:[e.jsxs(X9,{collapse:z,id:W,expanded:A&&l.length>0,error:M,labeled:!!u,backgroundColor:C,borderless:S,children:[u?e.jsx(J9,{collapse:z,children:u}):Y(),e.jsxs(t3,{children:[p&&!b&&e.jsx(r3,{children:m&&d?e.jsxs(e.Fragment,{children:[l.length," ",d]}):e.jsxs(e.Fragment,{children:[e.jsx(n3,{error:l.length>=p,children:l.length}),"/",p," ",d]})}),l.length>0&&e.jsx(fn,{name:A?"chevron-up":"chevron-down",color:I.brand,pointer:!0,onClick:e=>{e.stopPropagation(),T(!A)}})]})]}),u&&A&&Y()]})})),Y9=W.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),X9=W.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),J9=W.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),Q9=W.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),e3=W.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),t3=W.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),n3=W.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),r3=W.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),o3=e=>e?+e:0,i3=W.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),cn),a3=W.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),s3=W(a3)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),c3=W(a3)((({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}))),l3=W.span((({theme:e})=>({color:e.scale6}))),u3=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:l})=>{const u={margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:l},f=(n-r)/2,d=f*Math.PI*2,p=d-d*t/100,h=n/2;return e.jsxs(f3,Object.assign({size:n},u,{children:[e.jsx(d3,{cx:h,cy:h,r:f,thickness:r}),e.jsx(p3,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:d,complete:p})]}))},f3=W.svg((({size:e})=>({display:"block",width:e,height:e})),cn),d3=W.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),p3=W(d3)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),h3=W.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),cn),g3=W.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,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 v3,y3={exports:{}};v3=y3,function(){function e(e,t,n){return e.call.apply(e.bind,arguments)}function t(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 n(r,o,i){return(n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:t).apply(null,arguments)}var r=Date.now||function(){return+new Date};function o(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function a(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 s(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function u(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 f(e,t,n){function r(){u&&o&&c&&(u(l),u=null)}t=a(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,c=!0,l=null,u=n||null;i?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,l=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),s(e,"head",t)}function d(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=a(e,"script",{src:t}),s=!1;return i.onload=i.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){s||(s=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function p(){this.a=0,this.c=null}function h(e){return e.a++,function(){e.a--,v(e)}}function g(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function m(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 b(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 w(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function _(e){if(e.g){var t=u(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)}O(e,"inactive")}function O(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,w(n)):e.h[t]())}function k(){this.c={}}function E(e,t){this.c=e,this.f=t,this.a=a(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){s(e.c,"body",e.a)}function A(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:"+b(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function T(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 E(this.c,this.s),this.h=new E(this.c,this.s),this.j=new E(this.c,this.s),this.m=new E(this.c,this.s),e=A(e=new m(this.a.c+",serif",w(this.a))),this.g.a.style.cssText=e,e=A(e=new m(this.a.c+",sans-serif",w(this.a))),this.h.a.style.cssText=e,e=A(e=new m("serif",w(this.a))),this.j.a.style.cssText=e,e=A(e=new m("sans-serif",w(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}y.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)},T.prototype.start=function(){var e=this.c.o.document,t=this,n=r(),o=new Promise((function(o,i){!function a(){r()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+b(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,o]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var P={D:"serif",C:"sans-serif"},D=null;function L(){if(null===D){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);D=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return D}function I(e,t,n){for(var r in P)if(P.hasOwnProperty(r)&&t===e.f[P[r]]&&n===e.f[P[r]])return!0;return!1}function R(e){var t,o=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=o===e.f.serif&&i===e.f["sans-serif"])||(t=L()&&I(e,o,i)),t?r()-e.A>=e.w?L()&&I(e,o,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?N(e,e.v):N(e,e.B):function(e){setTimeout(n((function(){R(this)}),e),50)}(e):N(e,e.v)}function N(e,t){setTimeout(n((function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),t(this.a)}),e),0)}function B(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=r(),R(this)};var F=null;function z(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")]),O(e,"active")):_(e.a))}function H(e){this.j=e,this.a=new k,this.h=0,this.f=this.g=!0}function V(e,t,r,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===r.length&&a)_(t.a);else{t.f+=r.length,a&&(t.j=a);var c,u=[];for(c=0;c<r.length;c++){var f=r[c],d=s[f.c],p=t.a,h=f;if(p.g&&l(p.f,[p.a.c("wf",h.c,w(h).toString(),"loading")]),O(p,"fontloading",h),p=null,null===F)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);F=h?42<parseInt(h[1],10):!g}else F=!1;p=F?new T(n(t.g,t),n(t.h,t),t.c,f,t.s,d):new M(n(t.g,t),n(t.h,t),t.c,f,t.s,e,d),u.push(p)}for(c=0;c<u.length;c++)u[c].start()}}),0)}function K(e,t){this.c=e,this.a=t}function $(e,t){this.c=e,this.a=t}function U(e,t){this.c=e||W,this.a=[],this.f=[],this.g=t||""}B.prototype.g=function(e){var t=this.a;t.g&&l(t.f,[t.a.c("wf",e.c,w(e).toString(),"active")],[t.a.c("wf",e.c,w(e).toString(),"loading"),t.a.c("wf",e.c,w(e).toString(),"inactive")]),O(t,"fontactive",e),this.m=!0,z(this)},B.prototype.h=function(e){var t=this.a;if(t.g){var n=u(t.f,t.a.c("wf",e.c,w(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,w(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,w(e).toString(),"inactive")),l(t.f,r,o)}O(t,"fontinactive",e),z(this)},H.prototype.load=function(e){this.c=new o(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")]),O(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 B(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){V(e,i,t,n,r)}))}(this,new S(this.c,e),e)},K.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new m(c,n))):a.push(new m(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 p;for(t=0,n=r.length;t<n;t++)f(this.c,r[t],h(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var c=r[1].split(","),l=0;l<c.length;l+=1)s.push(new m(r[0],c[l]));else s.push(new m(r[0]));g(a,(function(){e(s,i)}))};var W="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},G={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"},Y={i:"i",italic:"i",n:"n",normal:"n"},X=/^(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 J(e,t){this.c=e,this.a=t}var Q={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.c=e,this.a=t}function te(e,t){this.c=e,this.f=t,this.a=[]}J.prototype.load=function(e){var t=new p,n=this.c,r=new U(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new Z(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,c=(s=s.split(",")).length,l=0;l<c;l++){var u;if((u=s[l]).match(/^[\w-]+$/))if(null==(f=X.exec(u.toLowerCase())))u="";else{if(u=null==(u=f[2])||""==u?"n":Y[u],null==(f=f[1])||""==f)f="4";else var f=G[f]||(isNaN(f)?"4":f.substr(0,1));u=[u,f].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=q[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=q[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new m(o,i[r]))}}(i),f(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),h(t)),g(t,(function(){e(i.a,i.c,Q)}))},ee.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 m(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},te.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 m(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 ne=new H(window);ne.a.c.custom=function(e,t){return new $(t,e)},ne.a.c.fontdeck=function(e,t){return new te(t,e)},ne.a.c.monotype=function(e,t){return new K(t,e)},ne.a.c.typekit=function(e,t){return new ee(t,e)},ne.a.c.google=function(e,t){return new J(t,e)};var re={load:n(ne.load,ne)};v3.exports?v3.exports=re:(window.WebFont=re,window.WebFontConfig&&ne.load(window.WebFontConfig))}();var m3=ct(y3.exports);const b3=W.div(an),w3=W.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),cn),x3=W.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),C3=W.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),S3=W.div({display:"flex",flexDirection:"column"}),_3=W.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),O3=W.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),k3=W.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),E3=W.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),j3=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),A3=t.createContext({}),T3=(t,n,r)=>{const o="th"===n?M3:P3,i=r?{style:r}:{};return Vs(t).map(((t,r)=>t?e.jsx(o,Object.assign({},i,{children:t}),`${n}${r+1}`):null))},M3=W.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),P3=W.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),D3=W.thead((({alignToScrollBody:e})=>({overflow:e?"auto":void 0,scrollbarGutter:e?"stable":void 0}))),L3=W(m9)({alignItems:"center",padding:"8px 24px"},sn),I3=W.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:e||t?"auto":void 0,scrollbarGutter:e||t?"stable":void 0}))),R3=W(m9)((({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"}}),sn),N3=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},B3=W.div((({contentPosition:e,direction:t,justify:n,align:r="center",gap:o})=>({display:"flex",justifyContent:N3(e||n),alignItems:N3(r),flexDirection:t,gap:o}))),F3=W(B3)((({theme:e})=>({color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),sn),z3=W(B3)((({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),H3=n=>{var{children:r,columns:o,data:i}=n,a=c(n,["children","columns","data"]);const[s,l]=t.useState(i),[u,f]=t.useState(),d=i&&"function"==typeof r?r(s):r;t.useEffect((()=>{let e=i;if(u){const{key:t,dir:n}=u;e=ut.orderBy(i,t,n)}ut.isEqual(e,s)||l(e)}),[i,u]);const p=t.useMemo((()=>({activeColumn:u,setActiveColumn:f,parentColumns:o})),[u,f,o]);return e.jsx(A3.Provider,{value:p,children:e.jsx(V3,Object.assign({},a,{children:d}))})};H3.Header=n=>{var{children:r,columns:o,columnStyles:i,alignToScrollBody:a}=n,s=c(n,["children","columns","columnStyles","alignToScrollBody"]);const{parentColumns:l}=t.useContext(A3),u=o||l||"equal";return e.jsx(D3,{alignToScrollBody:a,children:e.jsx(L3,Object.assign({as:"tr",columns:u},s,{children:T3(r,"th",i)}))})},H3.HeaderCell=r=>{var{children:o,onClick:i,contentPosition:a,justify:s,align:l,direction:u,gap:f,sorted:d,sortKey:p}=r,h=c(r,["children","onClick","contentPosition","justify","align","direction","gap","sorted","sortKey"]);const[g,v]=t.useState(d||"inactive"),{color:y}=n.useTheme(),{activeColumn:m,setActiveColumn:b}=t.useContext(A3),w=p||d,x="desc"===g?"arrow-down":"arrow-up",C="asc"===g||"desc"===g,S=e=>{if(v(e),b&&p){b("inactive"===e?void 0:{key:p,dir:e})}};return t.useEffect((()=>{!p||"asc"!==d&&"desc"!==d||S(d)}),[]),t.useEffect((()=>{d&&v(d)}),[d]),t.useEffect((()=>{const e=!m&&d;p&&m&&m.key!==p&&"inactive"!==g&&!e&&v("inactive")}),[m,g]),e.jsxs(z3,Object.assign({onClick:e=>{p?S("inactive"===g?"asc":"asc"===g?"desc":"inactive"):i&&i(e)},direction:u,contentPosition:a,justify:s,align:l,gap:f,active:C,sorting:!!w},h,{children:[o,w?e.jsx(fn,{name:x,marginLeft:8,size:"small",color:C?y.brand:void 0,inheritColor:!C}):null]}))},H3.Body=n=>{var{children:r,height:o,maxHeight:i}=n,a=c(n,["children","height","maxHeight"]);const{parentColumns:s}=t.useContext(A3);return e.jsx(I3,Object.assign({height:o,maxHeight:i},a,{children:t.Children.map(r,(e=>e?t.cloneElement(e,{parentColumns:s}):null))}))},H3.Row=n=>{var{children:r,columns:o,onClick:i,columnStyles:a}=n,s=c(n,["children","columns","onClick","columnStyles"]);const{parentColumns:l}=t.useContext(A3),u=o||l||"equal";return e.jsx(R3,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},s,{children:T3(r,"td",a)}))},H3.Column=t=>{var{children:n,contentPosition:r,direction:o,justify:i,align:a,gap:s,defaultValue:l,padding:u,paddingTop:f,paddingBottom:d,paddingRight:p,paddingLeft:h}=t,g=c(t,["children","contentPosition","direction","justify","align","gap","defaultValue","padding","paddingTop","paddingBottom","paddingRight","paddingLeft"]);const v={padding:u,paddingTop:f,paddingBottom:d,paddingRight:p,paddingLeft:h};return e.jsx(F3,Object.assign({direction:o,contentPosition:r,justify:i,align:a,gap:s,showDefault:!!l&&!n},v,g,{children:n||l}))};const V3=W.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),sn,cn),K3=t.forwardRef(((e,n)=>t.createElement(se.span,Z({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),[$3,U3]=q("Tooltip",[Qo]),W3=Qo(),Z3=700,q3="tooltip.open",[G3,Y3]=$3("TooltipProvider"),X3="Tooltip",[J3,Q3]=$3(X3),e4="TooltipTrigger",t4=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=Q3(e4,r),a=Y3(e4,r),s=W3(r),c=X(n,t.useRef(null),i.onTriggerChange),l=t.useRef(!1),u=t.useRef(!1),f=t.useCallback((()=>l.current=!1),[]);return t.useEffect((()=>()=>document.removeEventListener("pointerup",f)),[f]),t.createElement(hi,Z({asChild:!0},s),t.createElement(se.button,Z({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:oe(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:oe(e.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:oe(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:oe(e.onFocus,(()=>{l.current||i.onOpen()})),onBlur:oe(e.onBlur,i.onClose),onClick:oe(e.onClick,i.onClose)})))})),n4="TooltipPortal",[r4,o4]=$3(n4,{forceMount:void 0}),i4="TooltipContent",a4=t.forwardRef(((e,n)=>{const r=o4(i4,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=e,s=Q3(i4,e.__scopeTooltip);return t.createElement(ue,{present:o||s.open},s.disableHoverableContent?t.createElement(u4,Z({side:i},a,{ref:n})):t.createElement(s4,Z({side:i},a,{ref:n})))})),s4=t.forwardRef(((e,n)=>{const r=Q3(i4,e.__scopeTooltip),o=Y3(i4,e.__scopeTooltip),i=t.useRef(null),a=X(n,i),[s,c]=t.useState(null),{trigger:l,onClose:u}=r,f=i.current,{onPointerInTransitChange:d}=o,p=t.useCallback((()=>{c(null),d(!1)}),[d]),h=t.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(a),d(!0)}),[d]);return t.useEffect((()=>()=>p()),[p]),t.useEffect((()=>{if(l&&f){const e=e=>h(e,f),t=e=>h(e,l);return l.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[l,f,h,p]),t.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,c=t[i].x,l=t[i].y;s>r!=l>r&&n<(c-a)*(r-s)/(l-s)+a&&(o=!o)}return o}(n,s);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,f,s,u,p]),t.createElement(u4,Z({},e,{ref:a}))})),[c4,l4]=$3(X3,{isInside:!1}),u4=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,l=Q3(i4,r),u=W3(r),{onClose:f}=l;return t.useEffect((()=>(document.addEventListener(q3,f),()=>document.removeEventListener(q3,f))),[f]),t.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(l.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,f]),t.createElement(yr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f},t.createElement(gi,Z({"data-state":l.stateAttribute},u,c,{ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),t.createElement(ee,null,o),t.createElement(c4,{scope:r,isInside:!0},t.createElement(K3,{id:l.contentId,role:"tooltip"},i||o))))}));const f4=e=>{const{__scopeTooltip:n,delayDuration:r=Z3,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[s,c]=t.useState(!0),l=t.useRef(!1),u=t.useRef(0);return t.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),t.createElement(G3,{scope:n,isOpenDelayed:s,delayDuration:r,onOpen:t.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),onClose:t.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:l,onPointerInTransitChange:t.useCallback((e=>{l.current=e}),[]),disableHoverableContent:i},a)},d4=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=Y3(X3,e.__scopeTooltip),u=W3(n),[f,d]=t.useState(null),p=he(),h=t.useRef(0),g=null!=s?s:l.disableHoverableContent,v=null!=c?c:l.delayDuration,y=t.useRef(!1),[m=!1,b]=ae({prop:o,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(q3))):l.onClose(),null==a||a(e)}}),w=t.useMemo((()=>m?y.current?"delayed-open":"instant-open":"closed"),[m]),x=t.useCallback((()=>{window.clearTimeout(h.current),y.current=!1,b(!0)}),[b]),C=t.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),S=t.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{y.current=!0,b(!0)}),v)}),[v,b]);return t.useEffect((()=>()=>window.clearTimeout(h.current)),[]),t.createElement(pi,u,t.createElement(J3,{scope:n,contentId:p,open:m,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:t.useCallback((()=>{l.isOpenDelayed?S():x()}),[l.isOpenDelayed,S,x]),onTriggerLeave:t.useCallback((()=>{g?C():window.clearTimeout(h.current)}),[C,g]),onOpen:x,onClose:C,disableHoverableContent:g},r))},p4=t4,h4=e=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,a=Q3(n4,n);return t.createElement(r4,{scope:n,forceMount:r},t.createElement(ue,{present:r||a.open},t.createElement(yi,{asChild:!0,container:i},o)))},g4=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=W3(r);return l4("TooltipArrow",r).isInside?null:t.createElement(vi,Z({},i,o,{ref:n}))})),v4=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:s,width:l,maxWidth:u,textAlign:f,open:d,disabled:p,id:h,bgColor:g,color:v,container:y,afterShow:m,afterHide:b}=t,w=c(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx(f4,{children:e.jsxs(d4,{delayDuration:0,onOpenChange:e=>{p||(m&&e&&m(),b&&!e&&b())},open:d,children:[e.jsx(p4,{asChild:!0,children:e.jsx(m4,Object.assign({},w,{children:n}))}),e.jsx(h4,{container:y,children:!p&&e.jsxs(y4,{side:Xs(i).side,align:Xs(i).align,sideOffset:a,zIndex:s,width:l,maxWidth:u,textAlign:f,id:h,bgColor:g,textColor:v,children:[o||r,e.jsx(g4,{className:"tooltip-arrow",width:12,height:8})]})})]})})},y4=W(a4,{shouldForwardProp:e=>Js(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:s,font:c}=e,l=s.background,u=o||l;return{backgroundColor:u,boxShadow:e.elevation1,color:i||s.color.default,fontSize:c.size.sm,fontFamily:c.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:u,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),m4=W.div({display:"inline-flex"}),b4=W.div((({theme:e})=>({color:e.tooltip.color.default}))),w4=W.div((({theme:e})=>({color:e.tooltip.color.subtext})));v4.Header=b4,v4.Body=w4;const x4=W.div((({gap:e=8})=>({display:"flex",gap:e})),cn),C4=W.div((({theme:e,active:t,itemWidth:n="fill",reverse:r,gap:o})=>({display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:o,padding:"8px 16px",width:"fit"===n?"max-content":"100%",borderRadius:8,background:t?e.scale1:"transparent",border:"1px solid",borderColor:t?"transparent":e.scale0,color:t?e.scale10:e.scale6,fontSize:e.font.size.md,fontWeight:e.font.weight.medium,cursor:"pointer"}))),S4="#0074F4",_4="#FF6068",O4="#FF9900",k4="#F0BB00",E4="#00C242",j4="#001D32",A4="#FFFFFF",T4={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:S4,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:fr(.95,S4),brandTint1:fr(.9,S4),brandTint2:fr(.8,S4),brandTint3:fr(.7,S4),brandTint4:fr(.6,S4),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:_4,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:fr(.95,_4),errorTint1:fr(.9,_4),errorTint2:fr(.8,_4),warning:O4,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:fr(.95,O4),warningTint1:fr(.9,O4),warningTint2:fr(.8,O4),alert:k4,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:fr(.95,k4),alertTint1:fr(.9,k4),alertTint2:fr(.8,k4),success:E4,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:fr(.95,E4),successTint1:fr(.9,E4),successTint2:fr(.8,E4),grayscale0:fr(.95,j4),grayscale1:fr(.9,j4),grayscale2:fr(.8,j4),grayscale3:fr(.7,j4),grayscale4:fr(.6,j4),grayscale5:fr(.5,j4),grayscale6:fr(.4,j4),grayscale7:fr(.3,j4),grayscale8:fr(.2,j4),grayscale9:fr(.1,j4),grayscale10:j4,contrast0:fr(.95,A4),contrast1:fr(.9,A4),contrast2:fr(.8,A4),contrast3:fr(.7,A4),contrast4:fr(.6,A4),contrast5:fr(.5,A4),contrast6:fr(.4,A4),contrast7:fr(.3,A4),contrast8:fr(.2,A4),contrast9:fr(.1,A4),contrast10:A4},M4="#FFFFFF",P4={scale0:T4.grayscale0,scale1:T4.grayscale1,scale2:T4.grayscale2,scale3:T4.grayscale3,scale4:T4.grayscale4,scale5:T4.grayscale5,scale6:T4.grayscale6,scale7:T4.grayscale7,scale8:T4.grayscale8,scale9:T4.grayscale9,scale10:T4.grayscale10,accent:T4.brand,accentShade:T4.brandShade1,background0:M4,background1:M4,background2:M4,background3:M4,background4:M4,background5:M4};var D4={color:T4,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:L4}=D4;var I4={small:{height:28,iconSize:18,font:L4.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:L4.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:L4.size.lg,padding:14,iconOnlyPadding:6}};const R4="#FFFFFF",N4=T4.grayscale0,B4=T4.grayscale1,F4=T4.grayscale2,z4=T4.grayscale3,H4=T4.grayscale4,V4=T4.grayscale6,K4=T4.grayscale8,$4=T4.grayscale9,U4=T4.grayscale10,W4=Object.assign(Object.assign(Object.assign({},D4),P4),{name:"light",button:Object.assign(Object.assign({},I4),{primary:{color:{default:R4,hover:R4,active:R4},outlineColor:{default:U4,hover:U4,active:U4},background:{default:T4.brand,hover:T4.brandShade1,active:T4.brandShade2},outlineBackground:{default:T4.brandTint0,hover:T4.brandTint1,active:T4.brandTint2},border:{default:T4.brand,hover:T4.brandShade1,active:T4.brandShade2},divider:F4},secondary:{color:{default:U4,hover:U4,active:U4},outlineColor:{default:U4,hover:U4,active:U4},background:{default:B4,hover:F4,active:z4},outlineBackground:{default:B4,hover:F4,active:z4},border:{default:F4,hover:F4,active:F4},divider:F4},positive:{color:{default:R4,hover:R4,active:R4},outlineColor:{default:U4,hover:U4,active:U4},background:{default:T4.success,hover:T4.successShade1,active:T4.successShade2},outlineBackground:{default:T4.successTint0,hover:T4.successTint1,active:T4.successTint2},border:{default:T4.success,hover:T4.successShade1,active:T4.successShade2},divider:F4},negative:{color:{default:R4,hover:R4,active:R4},outlineColor:{default:U4,hover:U4,active:U4},background:{default:T4.error,hover:T4.errorShade1,active:T4.errorShade2},outlineBackground:{default:T4.errorTint0,hover:T4.errorTint1,active:T4.errorTint2},border:{default:T4.error,hover:T4.errorShade1,active:T4.errorShade2},divider:F4},caution:{color:{default:R4,hover:R4,active:R4},outlineColor:{default:U4,hover:U4,active:U4},background:{default:T4.warning,hover:T4.warningShade1,active:T4.warningShade2},outlineBackground:{default:T4.warningTint0,hover:T4.warningTint1,active:T4.warningTint2},border:{default:T4.warning,hover:T4.warningShade1,active:T4.warningShade2},divider:F4},subtle:{color:{default:T4.brand,hover:T4.brand,active:T4.brand},outlineColor:{default:T4.brand,hover:T4.brand,active:T4.brand},secondaryColor:{default:U4,hover:U4,active:U4},positiveColor:{default:T4.success,hover:T4.success,active:T4.success},negativeColor:{default:T4.error,hover:T4.error,active:T4.error},cautionColor:{default:T4.warning,hover:T4.warning,active:T4.warning},background:{default:"transparent",hover:B4,active:F4},outlineBackground:{default:"transparent",hover:B4,active:F4},border:{default:"transparent",hover:F4,active:F4},divider:F4},link:{color:{default:T4.brand,hover:T4.brandShade1,active:T4.brandShade2},outlineColor:{default:T4.brand,hover:T4.brandShade1,active:T4.brandShade2},secondaryColor:{default:K4,hover:$4,active:U4},positiveColor:{default:T4.success,hover:T4.successShade1,active:T4.successShade2},negativeColor:{default:T4.error,hover:T4.errorShade1,active:T4.errorShade2},cautionColor:{default:T4.warning,hover:T4.warningShade1,active:T4.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:H4,hover:H4,active:H4},outlineColor:{default:H4,hover:H4,active:H4},background:{default:B4,hover:B4,active:B4},outlineBackground:{default:N4,hover:N4,active:N4},border:{default:B4,hover:B4,active:B4},divider:B4},color:{default:R4}}),calendar:{background:{container:T4.contrast10,hover:B4,active:T4.brand,activeHover:T4.brandShade1},color:{disabled:H4,default:U4,active:T4.contrast10,current:T4.brand,outside:V4,weekday:K4,monthYear:K4,iconDefault:H4,iconHover:U4}},defaultBorder:`1px solid ${B4}`,formControl:{color:{default:K4,hover:U4,active:T4.brand,activeHover:T4.brandShade1,disabled:H4}},input:{borderRadius:4,background:{default:N4,hover:B4,focused:B4,disabled:N4},color:{default:U4,disabled:H4,placeholder:V4,description:V4,descriptionError:T4.error},borderColor:{default:V4,hover:K4,focused:T4.brand,disabled:H4,error:T4.error},labelColor:{default:K4,hover:K4,filled:V4,focused:T4.brand,disabled:H4}},menu:{background:R4},menuItem:{borderColor:T4.brand,background:{active:N4,hover:B4,inactive:"transparent"},color:{active:U4,hover:U4,inactive:V4}},modal:{background:T4.contrast10,color:{header:U4,body:V4}},options:{background:T4.contrast10},optionItem:{background:{active:B4,inactive:"transparent"},color:{active:U4,inactive:U4,accent:T4.brand}},table:{color:{header:V4,body:U4},borderColor:B4},toast:{color:U4,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:K4,info:T4.brand,success:T4.success,warning:T4.warning,error:T4.error}},toggle:{slider:T4.contrast10},tooltip:{background:"#FFF",color:{default:U4,subtext:V4}}}),Z4={scale0:T4.contrast0,scale1:T4.contrast1,scale2:T4.contrast2,scale3:T4.contrast3,scale4:T4.contrast4,scale5:T4.contrast5,scale6:T4.contrast6,scale7:T4.contrast7,scale8:T4.contrast8,scale9:T4.contrast9,scale10:T4.contrast10,accent:T4.brandDark,accentShade:T4.brandDarkShade1,background0:T4.brandBackground0,background1:T4.brandBackground1,background2:T4.brandBackground2,background3:T4.brandBackground3,background4:T4.brandBackground4,background5:T4.brandBackground5},q4=T4.contrast0,G4=T4.contrast1,Y4=T4.contrast2,X4=T4.contrast3,J4=T4.contrast4,Q4=T4.contrast6,e6=T4.contrast8,t6=T4.contrast9,n6=T4.contrast10,r6=T4.brandDark,o6={light:W4,dark:Object.assign(Object.assign(Object.assign({},D4),Z4),{name:"dark",button:Object.assign(Object.assign({},I4),{primary:{color:{default:n6,hover:n6,active:n6},outlineColor:{default:n6,hover:n6,active:n6},background:{default:T4.brand,hover:T4.brandShade1,active:T4.brandShade2},outlineBackground:{default:T4.brandTint0,hover:T4.brandTint1,active:T4.brandTint2},border:{default:T4.brand,hover:T4.brandShade1,active:T4.brandShade2},divider:Y4},secondary:{color:{default:n6,hover:n6,active:n6},outlineColor:{default:n6,hover:n6,active:n6},background:{default:G4,hover:Y4,active:X4},outlineBackground:{default:G4,hover:Y4,active:X4},border:{default:Y4,hover:Y4,active:Y4},divider:Y4},positive:{color:{default:n6,hover:n6,active:n6},outlineColor:{default:n6,hover:n6,active:n6},background:{default:T4.success,hover:T4.successShade1,active:T4.successShade2},outlineBackground:{default:T4.successTint0,hover:T4.successTint1,active:T4.successTint2},border:{default:T4.success,hover:T4.successShade1,active:T4.successShade2},divider:Y4},negative:{color:{default:n6,hover:n6,active:n6},outlineColor:{default:n6,hover:n6,active:n6},background:{default:T4.error,hover:T4.errorShade1,active:T4.errorShade2},outlineBackground:{default:T4.errorTint0,hover:T4.errorTint1,active:T4.errorTint2},border:{default:T4.error,hover:T4.errorShade1,active:T4.errorShade2},divider:Y4},caution:{color:{default:n6,hover:n6,active:n6},outlineColor:{default:n6,hover:n6,active:n6},background:{default:T4.warning,hover:T4.warningShade1,active:T4.warningShade2},outlineBackground:{default:T4.warningTint0,hover:T4.warningTint1,active:T4.warningTint2},border:{default:T4.warning,hover:T4.warningShade1,active:T4.warningShade2},divider:Y4},subtle:{color:{default:T4.brand,hover:T4.brand,active:T4.brand},outlineColor:{default:T4.brand,hover:T4.brand,active:T4.brand},secondaryColor:{default:n6,hover:n6,active:n6},positiveColor:{default:T4.success,hover:T4.success,active:T4.success},negativeColor:{default:T4.error,hover:T4.error,active:T4.error},cautionColor:{default:T4.warning,hover:T4.warning,active:T4.warning},background:{default:"transparent",hover:G4,active:Y4},outlineBackground:{default:"transparent",hover:G4,active:Y4},border:{default:"transparent",hover:Y4,active:Y4},divider:Y4},link:{color:{default:T4.brandShade2,hover:T4.brandShade1,active:T4.brand},outlineColor:{default:T4.brandShade2,hover:T4.brandShade1,active:T4.brand},secondaryColor:{default:e6,hover:t6,active:n6},positiveColor:{default:T4.successShade2,hover:T4.successShade1,active:T4.success},negativeColor:{default:T4.errorShade2,hover:T4.errorShade1,active:T4.error},cautionColor:{default:T4.warningShade2,hover:T4.warningShade1,active:T4.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:J4,hover:J4,active:J4},outlineColor:{default:J4,hover:J4,active:J4},background:{default:G4,hover:G4,active:G4},outlineBackground:{default:q4,hover:q4,active:q4},border:{default:G4,hover:G4,active:G4},divider:G4},color:{default:"#FFFFFF"}}),calendar:{background:{container:T4.brandBackground3,hover:G4,active:T4.brand,activeHover:T4.brandShade1},color:{disabled:J4,default:n6,active:n6,current:r6,outside:Q4,weekday:e6,monthYear:e6,iconDefault:J4,iconHover:n6}},defaultBorder:`1px solid ${G4}`,formControl:{color:{default:e6,hover:n6,active:T4.brand,activeHover:T4.brandShade1,disabled:J4}},input:{borderRadius:4,background:{default:q4,hover:G4,focused:G4,disabled:q4},color:{default:n6,disabled:J4,placeholder:Q4,description:Q4,descriptionError:T4.error},borderColor:{default:Q4,hover:e6,focused:r6,disabled:J4,error:T4.error},labelColor:{default:e6,hover:e6,filled:Q4,focused:r6,disabled:J4}},menu:{background:T4.brandBackground2},menuItem:{borderColor:T4.brand,background:{active:q4,hover:G4,inactive:"transparent"},color:{active:n6,hover:n6,inactive:Q4}},modal:{background:T4.brandBackground3,color:{header:n6,body:Q4}},options:{background:T4.brandBackground3},optionItem:{background:{active:G4,inactive:"transparent"},color:{active:n6,inactive:n6,accent:r6}},table:{color:{header:Q4,body:n6},borderColor:G4},toast:{color:n6,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:e6,info:T4.brand,success:T4.success,warning:T4.warning,error:T4.error}},toggle:{slider:T4.brandBackground0},tooltip:{background:T4.brandBackground4,color:{default:n6,subtext:Q4}}})};exports.Accordion=hn,exports.Audio=Tc,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:s,barCategoryGap:l,barSize:u=16,maxBarSize:f,vertical:d=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:v=45}=t,y=c(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:m}=n.useTheme();return e.jsxs(fz,Object.assign({},y,{children:[e.jsx(uz,{}),e.jsx(nx,{width:"100%",height:"100%",children:e.jsxs(VB,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:d?"vertical":"horizontal",barSize:u,maxBarSize:f,barGap:s,barCategoryGap:l,children:[e.jsx(CN,{stroke:m,strokeDasharray:"3 5",vertical:d,horizontal:!d}),e.jsx(HN,{stroke:m,tickMargin:4,tickFormatter:e=>d?Kc(e):e,tick:!h&&{},height:h?12:g,dataKey:d?void 0:"name",type:d?"number":"category"}),e.jsx(KN,{stroke:m,tickMargin:4,tickFormatter:e=>d?e:Kc(e),tick:!p&&{},width:p?5:v,dataKey:d?"name":void 0,type:d?"category":"number"}),pz(),o&&e.jsx(Bm,{content:e.jsx(hz,{})}),i.map((({key:t,color:n},r)=>e.jsx(PI,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},exports.Button=xc,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:c}=t.useRef(r||new Date),[l,u]=t.useState(c),[f,d]=t.useState(c),[p,h]=t.useState(),{calendar:g}=n.useTheme(),v=e=>iz(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),y=e=>{const t=az(("prev"===e?sz:GB)(f,{months:1}),1),n=v(t);d(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?ez(sz(e,{months:1})):az("future"===n?GB(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?sz:GB)(o,{days:e}),a=v(n);i[t](a)}return i},b=e=>{const t=function(e){return UB(e).getDay()}(az(e,1)),n=QF(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=v(c),n=i instanceof Date?v(i):t,r=a instanceof Date?v(a):t,o=v(ez(f)),s=v(az(f,1));let u=!1;const d=nz(e,n),p=tz(e,r);(i&&d||a&&p)&&(u=!0);const h=tz(e,o)||nz(e,s),g=sF(e,c),y=sF(e,l);return{date:JF(e),fullDate:e,current:g,disabled:u,outside:h,active:y}}))};t.useEffect((()=>{const e=b(f);h(e)}),[l,f]);return e.jsxs(Oz,{noShadow:s,children:[e.jsxs(kz,{children:[e.jsx(Ez,{children:YF(f,"MMMM y")}),e.jsxs(jz,{children:[e.jsx(fn,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>y("prev"),hoverColor:g.color.iconHover}),e.jsx(fn,{name:"chevron-right",pointer:!0,onClick:()=>y("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(Mz,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(Pz,{children:t[0]},t)))}),e.jsx(Az,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(Tz,{disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{u(e),o(e)})(n),children:t},_z())))})]})},exports.Checkbox=Rz,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:s,noNumbers:c,margin:l,marginTop:u,marginBottom:f,marginRight:d,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:l,marginTop:u,marginBottom:f,marginRight:d,marginLeft:p},v=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[y,m,b]=v;y=y||a||"",m=m||s||"",b=b||c?"nonumbers":"";let w=y?y.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),S=e=>{if(m){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?ut.range(r,o+1):ut.rangeRight(o,r+1)}return null})),n=t.flat();return ut.compact(n)})(m);return t.some((t=>e===t))}return!1},_=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(MH,{method:x,url:_}):e.jsx(jH,{code:_,language:w,theme:"dark"===h?tH.oceanicNext:tH.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(IH,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement(RH,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:S(r+1)}),o.length>1&&!C&&e.jsx(NH,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(AH,{content:_})]}))})},exports.DocTable=BH,exports.DraftEditor=n9,exports.Dropdown=d9,exports.DropdownMenu=Qs,exports.Form=S9,exports.Grid=m9,exports.Icon=fn,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:l})=>{const[u,f]=t.useState(i),d=at(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const p=()=>f(u>0?u-1:o.length-1),h=()=>u<o.length-1?f(u+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,u]),n?e.jsxs(E9,{opacity:l,prevNext:o.length>1,children:[e.jsx(j9,{onClick:r,children:e.jsx(fn,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(A9,{id:"prev",onClick:p,children:e.jsx(fn,{name:"chevron-left",size:35,color:"white"})}),e.jsx(T9,{ref:d,src:o[u],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(A9,{next:!0,id:"next",onClick:h,children:e.jsx(fn,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=M9,exports.Input=s9,exports.InputUtils=t9,exports.Label=x9,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,s=c(r,["data","legend","keys"]);const[l,u]=t.useState(a),{scale2:f}=n.useTheme();return e.jsxs(fz,Object.assign({},s,{children:[e.jsx(uz,{}),e.jsx(nx,{width:"100%",height:"100%",children:e.jsxs(HB,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(CN,{stroke:f,strokeDasharray:"3 5",vertical:!1}),e.jsx(HN,{stroke:f,dataKey:"name",tickMargin:4}),e.jsx(KN,{stroke:f,tickMargin:4,tickFormatter:e=>Kc(e)}),pz(),i&&e.jsx(Bm,{content:e.jsx(hz,{toggleData:a.length>1?e=>{u((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),l.map((({key:t,color:n,hidden:r},o)=>e.jsx(FN,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=P9,exports.Message=N9,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs($9,{children:[e.jsx(K9,{}),e.jsx(V9,{color:n,style:r,children:t}),e.jsx(K9,{})]}),exports.Modal=U9,exports.MultiSelect=G9,exports.Notification=$B,exports.Options=Ks,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,l=c(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[u,f]=t.useState(o3(o)||1),[d,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,o3(a)||h.length),v=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),f(e),r(e)}},y=0!==d,m=d!==g.length-1;return e.jsxs(i3,Object.assign({width:s},l,{children:[e.jsx(s3,{disabled:1===u,onClick:()=>v(1),children:e.jsx(fn,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(s3,{disabled:1===u,onClick:()=>v(u-1),children:e.jsx(fn,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[d].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&y?e.jsx(l3,{children:"... "}):"",e.jsx(c3,{selected:n===u,onClick:()=>v(n),children:n}),r===o.length-1&&m?e.jsx(l3,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(s3,{disabled:u===i,onClick:()=>v(u+1),children:e.jsx(fn,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(s3,{disabled:u===i,onClick:()=>v(i),children:e.jsx(fn,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=c(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==r?void 0:r.length)>0,l=s?r:i?[{name:"1",value:1,color:"#999"}]:void 0,u=n/2-1;return e.jsx(fz,Object.assign({width:n,height:n},a,{children:e.jsxs(KB,{width:n,height:n,children:[e.jsx(iL,{dataKey:"value",data:l,innerRadius:o,outerRadius:u,children:null==l?void 0:l.map((t=>e.jsx(rx,{fill:t.color||"#999"},t.name)))}),s&&pz()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=8,margin:c,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d})=>{const p={margin:c,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(u3,Object.assign({percent:h,size:a,thickness:s,color:n},p)):e.jsx(h3,Object.assign({width:o,height:i||s},p,{children:e.jsx(g3,{color:n,width:h})}))},exports.Radio=b9,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,m3.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=Ec,exports.Spacer=b3,exports.Spinner=pc,exports.Table=H3,exports.Tabs=t=>{var{items:n,activeItem:r,itemWidth:o,itemGap:i,onChange:a}=t,s=c(t,["items","activeItem","itemWidth","itemGap","onChange"]);const l=n.filter((e=>!1!==e.visible));return e.jsx(x4,Object.assign({gap:i},s,{children:l.map((t=>{const{id:n,label:i,icon:s,iconColor:l,iconPosition:u}=t,f=c(t,["id","label","icon","iconColor","iconPosition"]);return e.jsxs(C4,Object.assign({active:n===r,itemWidth:o,reverse:"right"===u,onClick:()=>(e=>{a(e)})(t),gap:s?4:void 0},f,{children:[s&&e.jsx(fn,{name:s,size:"small",color:l,inheritColor:!l}),i]}),n)}))}))},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=w9,exports.Tooltip=v4,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:l,width:u,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g})=>{const v=t.useRef(),[y,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g},C=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!ut.isEqual(n,v.current)){v.current=n;const e=n.filter((e=>e.selected)).map(C),t=n.filter((e=>!e.selected)).map(C);w(e),m(t)}}),[n,v]),t.useEffect((()=>{r(b)}),[b]);const S=(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()},_=e=>{const t="select"===e?m:w,n="select"===e?y:b;("select"===e?w:m)((e=>[...e,...n])),t([])},O=t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(E3,{children:t.header}),e.jsx(j3,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),k=!(s&&c);return e.jsxs(w3,Object.assign({width:u,readOnly:l},x,{children:[i&&e.jsx(x3,{children:i}),e.jsxs(C3,{children:[!l&&e.jsxs(S3,{children:[k&&e.jsx(_3,{children:y.length>0&&!s&&e.jsx(xc,{small:!0,outline:!0,onClick:()=>_("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(O3,{children:y.map((t=>e.jsxs(k3,{onClick:()=>S(t,"select"),color:t.color,children:[O(t),e.jsx(fn,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(S3,{children:[k&&!l&&e.jsx(_3,{children:b.length>0&&!c&&!l&&e.jsx(xc,{small:!0,outline:!0,secondary:!0,onClick:()=>_("remove"),icon:"arrow-left",children:"All"})}),l&&0===b.length?e.jsx("div",{children:a}):e.jsx(O3,{children:b.map((t=>e.jsxs(k3,{onClick:()=>S(t,"remove"),color:t.color,children:[O(t),e.jsx(fn,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.colors=T4,exports.copyToClipboard=cz,exports.darkScale=Z4,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,l=YF(n,"EEEE"),u=YF(n,"MMM d"),f=YF(n,"MMM d, y"),d=YF(n,"h:mm aaa"),p=rz(n),h=function(e){return+UB(e)>Date.now()}(n),g=function(e){return sF(e,aF(e))}(n),v=function(e){return sF(e,oz(aF(e),1))}(n),y=function(e){return sF(e,ZB(aF(e),1))}(n),m=fF(c,n),b=dF(c,n),w=m>=-10&&m<=10,x=a||s?`, ${d}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(d);if(s){if(0===m)return C("Just now");if(w)return C(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return C(h?`Today${x}`:d)}return C(g?`Today${x}`:v?`Yesterday${x}`:y?`Tomorrow${x}`:0!==b||h?p?`${u}${x}`:`${f}${x}`:`${l}${x}`)},exports.lightScale=P4,exports.marginProps=cn,exports.numberWithCommas=lz,exports.paddingProps=sn,exports.positionProps=ln,exports.theme=o6,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:l,inputValue:u}={})=>{const[f,d]=t.useState(u||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof u&&f!==u&&d(u)}),[p]);const v=()=>{null==p||p.resolve(!s||f),g()},y=()=>{null==p||p.resolve(!1),g()};it(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":v();break;case"Escape":y()}}),!!p,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(U9,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(U9.Header,{children:n}),r&&e.jsx(U9.Text,{children:r}),s&&e.jsx(U9.Body,{marginTop:4,marginBottom:8,children:e.jsx(s9,{autoFocus:!0,label:c,placeholder:l,value:f,onChange:({target:e})=>d(e.value)})}),e.jsxs(U9.Footer,{children:[e.jsx(xc,{secondary:!0,marginRight:8,onClick:y,children:o}),e.jsx(xc,{negative:a,onClick:v,children:i})]})]})]},exports.useElementObserver=on,exports.useEventListener=it,exports.useOnClickOutside=at,exports.usePrevious=e=>{const n=t.useRef(e);return t.useEffect((()=>{n.current=e}),[e]),n.current},exports.useSelect=ft,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState([]),[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=an;
|
|
44
|
+
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 l in n=Object(arguments[c]))o.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(s[a[u]]=n[a[u]])}}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,l){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var f;try{r("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",s,u,typeof e[u]),f=e[u](n,u,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,u,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var d=l?l():"";o(!1,"Failed %s type: %s%s",s,f.message,null!=d?d:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?s(e,t):function(e,t,n){return!(10===l(e).length&&!n||i(t))}(e,n,r)?c(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var s=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var s=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+s+i.substring(r)}var c=d(e,i,t,o);return{phoneNumber:f(i),cursorPosition:c}},c=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=u(e,n,t)),a(t)||(o=u(e,n,t));var i=d(e,o,t,r);return{phoneNumber:f(o),cursorPosition:i}},l=t.normalize=function(e){return e.replace(/\D/g,"")},u=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},f=t.format=function(e){var t=l(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},d=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return f(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var s=/[^0-9]/g;if(a(n)&&s.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&s.test(e[n.start-1]))return n.start-1}var c=e.substring(n.end).match(/[0-9]/g),l=c?c.length:0,u=f(t),d=p(u,l);return u.length-d},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var Q5=J5.exports;const e9=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(fn,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(fn,Object.assign({},n,r))},t9=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:s,placeholderColor:l,description:u,isLoading:f,search:d,phone:p,textOnly:h,iconLeft:g,iconRight:v,invalid:y,borderless:m,borderRadius:b,borderColor:w,backgroundColor:x,fontSize:C,width:S,height:_,margin:O,marginLeft:k,marginRight:E,marginTop:j,marginBottom:A,padding:T,paddingLeft:M,paddingRight:P,paddingTop:D,paddingBottom:L,containerRef:I,value:R,disabled:N,readOnly:B,preventFocus:F,pointer:z,hideControls:H,onChange:V,onClick:K,onClear:$,onFocus:U,onBlur:W}=r,Z=c(r,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderless","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","hideControls","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:q,handleFocus:G,handleBlur:Y}=K5(U,W,!F&&!B),X=t.useRef(null),{color:J}=n.useTheme(),[Q,ee]=t.useState(h?50:void 0),te=t.useRef(null),ne={margin:O,marginTop:j,marginBottom:A,marginRight:E,marginLeft:k},re={padding:T,paddingTop:D,paddingBottom:L,paddingRight:P,paddingLeft:M};t.useLayoutEffect((()=>{if(h&&(null==te?void 0:te.current)){const{current:e}=te;R&&(e.innerHTML=R.toString().replace(/ /g," "));const t=e.offsetWidth;"number"==typeof t&&ee(t+3)}}),[h,R,s,te]);const oe=h?R||s:R,ie=(!!R||"number"==typeof R)&&$&&!f;t.useEffect((()=>{var e,t;if(p&&"string"==typeof R&&10===R.length&&R===Q5.normalize(R)){const{current:n}=X;if(n){const r=Q5.format(R),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[R]);const ae=()=>{q||G()},se=()=>{q&&Y()},ce=()=>{ae(),(null==X?void 0:X.current)&&X.current.select()};t.useImperativeHandle(o,(()=>({focus:ae,blur:se,hasFocus:q,select:ce}))),t.useEffect((()=>{var e;q&&(null===(e=X.current)||void 0===e||e.focus())}),[q]);return e.jsxs(U5,Object.assign({ref:I,invalid:y,textOnly:h,borderless:m||h,borderRadius:b,borderColor:w,backgroundColor:x,width:S,height:_,focused:q,disabled:N,hasLabel:!!a,onClick:e=>{F||B||ae(),K&&K(e)},pointer:z,readOnly:B},ne,re,{children:[d&&e.jsx(fn,{name:"search",marginRight:8,inheritColor:!0}),g&&e9(g,{marginRight:8}),e.jsxs(W5,{readOnly:B||F,children:[h&&e.jsx(o9,{ref:te,fontSize:C,children:oe}),a&&!h&&e.jsx(Z5,{htmlFor:i||a,filled:$5(R),focused:q,disabled:N,children:a}),e.jsx(n9,Object.assign({id:i||a,ref:X,value:R,placeholder:s,placeholderColor:l,onChange:e=>{if(p){const{value:t}=e.target,n=Q5.normalize(t);if(n.length>10)return;const r=Q5.format(n);V&&V(e,r,n)}else V&&V(e)},onFocus:G,onBlur:Y,disabled:N,hide:!($5(R)||!a||q||h),width:Q,fontSize:C,hideControls:H},Z))]}),v&&e9(v),f&&e.jsx(ac,{}),ie&&e.jsx(r9,{onClick:$,children:e.jsx(fn,{name:"close-circle-outline",color:J.brand})}),u&&e.jsx(q5,{invalid:y,children:u})]}))})),n9=W.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:s,placeholderColor:c})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:s||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:c||t.color.placeholder,opacity:1}})),(({hideControls:e})=>e&&{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}})),r9=W.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),o9=W.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),i9=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),a9=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:s,onFocus:l,onBlur:u,onError:f,placeholder:d,placeholderColor:p,value:h,options:g,children:v,borderless:y,borderColor:m,backgroundColor:b,hideIcon:w,clearOnSelect:x,textOnly:C,width:S,height:_,isLoading:O,margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T,label:M,id:P,name:D,trigger:L,centerY:I,centerX:R,offsetY:N,offsetX:B,direction:F,fontSize:z,description:H,disabled:V,invalid:K,search:$,filter:U,restrictInput:W,inputRef:Z,optionsParent:q}=r,G=c(r,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderless","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[Y,X]=t.useState(""),[J,Q]=t.useState(""),[ee,te]=t.useState(!1),[ne,re]=t.useState(!1),[oe,ie]=t.useState(!1),ae=t.useRef(null),{input:se}=n.useTheme(),ce={margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T},le=e=>{e&&e.stopPropagation(),!ee&&a&&a(),ee&&s&&s(),te((e=>!e))};t.useEffect((()=>{var e;if(ee&&$){null===(e=(Z||ae).current)||void 0===e||e.focus()}}),[ee,$]),t.useEffect((()=>{f&&f(oe)}),[oe]),t.useEffect((()=>{i&&i(J)}),[J]);const ue=at(le,ee,q?[q,`${q} *`]:void 0),fe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ve().find((t=>{let n=fe(t.label,e);return!n&&"id"in t&&(n=fe(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=fe(t.value,e)),n}));return t},pe=e=>"function"==typeof W?!W(e):W,he=e=>ge(null,e),ge=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(pe(e))return de(e)||null;return{id:mz(),label:e,value:e}})(e);const t=pe(e);null===n&&t&&(r=!0)}else n=e;ee&&le(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&&null!=h||he()}),[h]);const ve=()=>{const e=Vs(v).map((e=>{const t=e;let n=t.props.displayText||"";return!M&&t.props.children&&(n=i9(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...qs(g||[],{search:$,filter:U,inputText:J}),...e]},ye={options:ve(),select:ge,open:le,close:le,searchText:$?J:void 0,isOpen:ee,isFocused:ne},[me,be]=ft(ye),we=Ys(g||[],v,ge,le,{selected:me,search:$,filter:U,inputText:J}),xe=ee?"caret-up":"caret-down",Ce=C&&!V?p||se.color.default:void 0,Se=c(G,["onClear","phone"]);return e.jsx(s9,Object.assign({textOnly:C,altTrigger:!!L,width:S,height:_,focused:ne,search:$},ce,{children:e.jsxs(c9,{ref:ue,children:[L?e.jsx(l9,{id:P,onClick:le,tabIndex:0,onFocus:()=>re(!0),onBlur:()=>re(!1),children:L}):e.jsx(f9,{shake:oe,children:e.jsx(t9,Object.assign({},Se,{ref:Z||ae,id:P,name:D,label:M,fontSize:z,pointer:!0,preventFocus:!$,value:J||h||Y,placeholder:d||"Select",placeholderColor:Ce,iconRight:w||O?void 0:xe,borderless:y,borderColor:m,backgroundColor:b,isLoading:O,textOnly:C,description:H,disabled:V,invalid:oe||K,onClick:le,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(Z||ae).current)||void 0===t?void 0:t.hasFocus;$?(Q(n),!ee&&r&&te(!0),oe&&ie(!1)):n||he(e);const o=de(n),i=pe(n),a=""===n||i&&!r;o&&!($&&(!i||r))?ge(o,e):$&&!a||he(e)},onFocus:e=>{re(!0),l&&l(e)},onBlur:e=>{var t;if(re(!1),u&&u(e),$&&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(Ws,{containerRef:be,parentSelector:q,width:!L&&!C||q?"100%":void 0,centerY:I,centerX:R,offsetY:N,offsetX:B,direction:F,children:we})]})}))};a9.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:s,accented:c,onClick:l,id:u})=>{const f=l?e=>{l&&l(e),o&&o()}:e=>{const o={id:u,label:n||i9(i)||"",value:t};r&&r(o,e)};return e.jsx(Ws.Item,{id:u,contentPosition:a,color:s,onClick:f,accented:c,children:i})};const s9=W.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),an,cn),c9=W.div({position:"relative",width:"100%",height:"inherit"}),l9=W.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),u9=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)"}}),f9=W.div((({shake:e})=>({"& input":{animation:e?`${u9} .5s linear`:void 0}}))),d9=W.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:l,width:u,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:l,alignContent:a,justifyContent:c,width:u,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),sn,cn);d9.Item=W.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:l,border:u})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:l,border:u})),sn,cn);const p9=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d}=t,p=c(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d};return e.jsxs(Ez,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(Az,{children:r}),e.jsx(jz,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(fn,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},h9=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:l,margin:u,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h}=n,g=c(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,y]=t.useState("toggle-off"),[m,b]=t.useState(a||!1),w="right"===i,x={margin:u,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h};return t.useEffect((()=>{y(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof a?a:m)}),[a,m]),e.jsxs(Ez,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(Az,{children:o}),e.jsx(jz,Object.assign({id:r,type:"checkbox",checked:m,disabled:s,onChange:()=>{const e=!m;b(e),l(e)}},g)),e.jsx(fn,{name:v,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},g9=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=c(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(v9,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&e9(r,{marginRight:4,size:"small"}),n,o&&e9(o,{marginLeft:4,size:"small"})]}))},v9=W.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),cn),y9=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,l=c(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(m9,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},l,{children:n}))};y9.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,l=c(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(b9,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},l,{children:n}))},y9.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=c(t,["children","inline","align","disabled"]);return e.jsx(w9,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},y9.Input=t9,y9.Dropdown=a9,y9.Radio=p9,y9.Toggle=h9,y9.Checkbox=Tz,y9.Label=g9;const m9=W(d9)({boxSizing:"border-box"}),b9=W(d9)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),w9=W.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),cn),x9=W.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),C9=W.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),S9=W.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),_9=W.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),O9=W.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),k9=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:l,border:u,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:y,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(E9,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:l,border:u,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:y,borderBottomRightRadius:m,backgroundColor:b,role:"menu",children:w?Vs(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),E9=W.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:l})=>({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:l})),sn),j9=W.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),A9=W.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),T9=W.div({marginLeft:"auto",marginRight:8});k9.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx(j9,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c,children:s}),k9.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:l,children:u,indent:f=1,backgroundColor:d})=>{const[p,h]=t.useState(r||i),g=e=>Vs(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:d})}return null})),v=g(u),y=()=>h((e=>!e));return e.jsxs(A9,{backgroundColor:d,children:[e.jsxs(j9,{vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),p||y()):y()},id:l,role:"menuitem",indent:f,children:[n,e.jsx(T9,{onClick:e=>{e.stopPropagation(),y()},children:e.jsx(fn,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&v]})};const M9=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:l,marginRight:u,marginLeft:f,children:d})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:v}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),y={margin:s,marginTop:c,marginBottom:l,marginRight:u,marginLeft:f};return e.jsxs(L9,Object.assign({borderColor:g,backgroundColor:v,width:a,showingClose:o},y,{children:[e.jsx(fn,{name:h,style:{marginRight:10},color:g}),e.jsx(I9,{children:r||d}),o&&e.jsx(fn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},P9=W.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),D9=W.div((({theme:e})=>({fontWeight:e.font.weight.default})));M9.Header=P9,M9.Body=D9;const L9=W.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),cn),I9=W.div({width:"100%"}),R9=W.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),N9=W.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),B9=W.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),F9=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:l,preventOverlayClose:u,overlayColor:f,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v,position:y,top:m,bottom:b,right:w,left:x,padding:C,paddingTop:S,paddingBottom:_,paddingRight:O,paddingLeft:k,zIndex:E})=>{const j=at(u?()=>null:c,i),A={padding:C,paddingTop:S,paddingBottom:_,paddingRight:O,paddingLeft:k},T=Vs(n).map((e=>e?t.cloneElement(e,{inline:p}):null)),M=e.jsx(V9,{color:f,noOverlay:h,centerX:g,centerY:v,position:y,top:m,bottom:b,right:w,left:x,zIndex:E,children:e.jsxs(z9,Object.assign({ref:j,width:a,height:s,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v},A,{children:[T,l&&e.jsx(H9,{inline:p,children:e.jsx(fn,{name:"close",onClick:c,pointer:!0})})]}))}),P=document.querySelector(o||"#root");return i&&P?r.createPortal(M,P):null};F9.Header=W.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),F9.Text=W.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),F9.Body=W.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),cn),F9.Footer=W.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),cn);const z9=W.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),sn),H9=W.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),V9=W.div((({color:e,noOverlay:t,centerX:n,centerY:r,position:o,top:i,bottom:a,right:s,left:c,zIndex:l})=>({position:o||"absolute",top:i||(c||a||s?void 0:0),left:c||(i||a||s?void 0:0),bottom:a,right:s,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:l||100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),K9=t.forwardRef(((o,i)=>{var{children:a,options:s,items:l,listLabel:u,listText:f,itemsTitle:d,maxItems:p,placeholder:h,width:g,filter:v,restrictInput:y,disabled:m,hideItemsInfo:b,optionsParent:w,compact:x,backgroundColor:C,borderless:S,addItem:_,removeItem:O,onTextChange:k,autoFocus:E}=o,j=c(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[A,T]=t.useState(E||!1),[M,P]=t.useState(!1),[D,L]=t.useState(""),{color:I,font:R,input:N}=n.useTheme(),B=at((()=>T(!1)),A,w?[w,`${w} *`]:void 0),F=t.useRef(null),z=x&&!!u,H=e=>{e&&_(e)},V=()=>{const{current:e}=F;A||u||T(!0),null==e||e.focus()},K=()=>{const{current:e}=F;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:V,blur:K})));const $=e=>{L(e),k&&k(e)};t.useEffect((()=>{A||K()}),[A]);it(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(l.length>0){e.preventDefault();const t=l[l.length-1];O(t)}}),A&&!D,[l]);const U=s.filter((e=>!l.find((t=>t.id===e.id)))),W=t.useMemo((()=>`multi-select-${mz()}`),[]),Z=t.useMemo((()=>`multi-select-list-${mz()}`),[]),q=p?l.length>=p:void 0,G=m||!A||q,Y=()=>{const t=e.jsxs(Z9,{id:Z,expanded:A,padTop:A&&l.length>0,labeled:!!u,children:[f&&e.jsx(q9,{expanded:A,labeled:!!u,children:f}),a?a(A,!!m):l.map((t=>e.jsx(g9,{pill:!0,iconRight:A&&!m?e.jsx(fn,{name:"close-circle",onClick:()=>O(t),pointer:!0}):void 0,disabled:m,children:t.label},t.id))),e.jsx(a9,Object.assign({},j,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:v,backgroundColor:"transparent",restrictInput:y,options:U,fontSize:R.size.md,placeholder:m||l.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:F,onChange:H,onTextChange:$,onError:e=>P(e),disabled:G,optionsParent:w?`#${Z}`:`#${W}`,autoFocus:E}))]});if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs($9,{width:g,ref:B,labeled:!!u,disabled:m,collapse:z,onClick:e=>{e.stopPropagation(),V()},children:[e.jsxs(U9,{collapse:z,id:W,expanded:A&&l.length>0,error:M,labeled:!!u,backgroundColor:C,borderless:S,children:[u?e.jsx(W9,{collapse:z,children:u}):Y(),e.jsxs(G9,{children:[p&&!b&&e.jsx(X9,{children:m&&d?e.jsxs(e.Fragment,{children:[l.length," ",d]}):e.jsxs(e.Fragment,{children:[e.jsx(Y9,{error:l.length>=p,children:l.length}),"/",p," ",d]})}),l.length>0&&e.jsx(fn,{name:A?"chevron-up":"chevron-down",color:I.brand,pointer:!0,onClick:e=>{e.stopPropagation(),T(!A)}})]})]}),u&&A&&Y()]})})),$9=W.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),U9=W.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),W9=W.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),Z9=W.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),q9=W.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),G9=W.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),Y9=W.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),X9=W.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),J9=e=>e?+e:0,Q9=W.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),cn),e3=W.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),t3=W(e3)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),n3=W(e3)((({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}))),r3=W.span((({theme:e})=>({color:e.scale6}))),o3=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:l})=>{const u={margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:l},f=(n-r)/2,d=f*Math.PI*2,p=d-d*t/100,h=n/2;return e.jsxs(i3,Object.assign({size:n},u,{children:[e.jsx(a3,{cx:h,cy:h,r:f,thickness:r}),e.jsx(s3,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:d,complete:p})]}))},i3=W.svg((({size:e})=>({display:"block",width:e,height:e})),cn),a3=W.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),s3=W(a3)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),c3=W.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),cn),l3=W.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,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 u3,f3={exports:{}};u3=f3,function(){function e(e,t,n){return e.call.apply(e.bind,arguments)}function t(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 n(r,o,i){return(n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:t).apply(null,arguments)}var r=Date.now||function(){return+new Date};function o(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function a(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 s(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function u(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 f(e,t,n){function r(){u&&o&&c&&(u(l),u=null)}t=a(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,c=!0,l=null,u=n||null;i?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,l=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),s(e,"head",t)}function d(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=a(e,"script",{src:t}),s=!1;return i.onload=i.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){s||(s=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function p(){this.a=0,this.c=null}function h(e){return e.a++,function(){e.a--,v(e)}}function g(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function m(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 b(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 w(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function _(e){if(e.g){var t=u(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)}O(e,"inactive")}function O(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,w(n)):e.h[t]())}function k(){this.c={}}function E(e,t){this.c=e,this.f=t,this.a=a(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){s(e.c,"body",e.a)}function A(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:"+b(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function T(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 E(this.c,this.s),this.h=new E(this.c,this.s),this.j=new E(this.c,this.s),this.m=new E(this.c,this.s),e=A(e=new m(this.a.c+",serif",w(this.a))),this.g.a.style.cssText=e,e=A(e=new m(this.a.c+",sans-serif",w(this.a))),this.h.a.style.cssText=e,e=A(e=new m("serif",w(this.a))),this.j.a.style.cssText=e,e=A(e=new m("sans-serif",w(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}y.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)},T.prototype.start=function(){var e=this.c.o.document,t=this,n=r(),o=new Promise((function(o,i){!function a(){r()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+b(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,o]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var P={D:"serif",C:"sans-serif"},D=null;function L(){if(null===D){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);D=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return D}function I(e,t,n){for(var r in P)if(P.hasOwnProperty(r)&&t===e.f[P[r]]&&n===e.f[P[r]])return!0;return!1}function R(e){var t,o=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=o===e.f.serif&&i===e.f["sans-serif"])||(t=L()&&I(e,o,i)),t?r()-e.A>=e.w?L()&&I(e,o,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?N(e,e.v):N(e,e.B):function(e){setTimeout(n((function(){R(this)}),e),50)}(e):N(e,e.v)}function N(e,t){setTimeout(n((function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),t(this.a)}),e),0)}function B(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=r(),R(this)};var F=null;function z(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")]),O(e,"active")):_(e.a))}function H(e){this.j=e,this.a=new k,this.h=0,this.f=this.g=!0}function V(e,t,r,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===r.length&&a)_(t.a);else{t.f+=r.length,a&&(t.j=a);var c,u=[];for(c=0;c<r.length;c++){var f=r[c],d=s[f.c],p=t.a,h=f;if(p.g&&l(p.f,[p.a.c("wf",h.c,w(h).toString(),"loading")]),O(p,"fontloading",h),p=null,null===F)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);F=h?42<parseInt(h[1],10):!g}else F=!1;p=F?new T(n(t.g,t),n(t.h,t),t.c,f,t.s,d):new M(n(t.g,t),n(t.h,t),t.c,f,t.s,e,d),u.push(p)}for(c=0;c<u.length;c++)u[c].start()}}),0)}function K(e,t){this.c=e,this.a=t}function $(e,t){this.c=e,this.a=t}function U(e,t){this.c=e||W,this.a=[],this.f=[],this.g=t||""}B.prototype.g=function(e){var t=this.a;t.g&&l(t.f,[t.a.c("wf",e.c,w(e).toString(),"active")],[t.a.c("wf",e.c,w(e).toString(),"loading"),t.a.c("wf",e.c,w(e).toString(),"inactive")]),O(t,"fontactive",e),this.m=!0,z(this)},B.prototype.h=function(e){var t=this.a;if(t.g){var n=u(t.f,t.a.c("wf",e.c,w(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,w(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,w(e).toString(),"inactive")),l(t.f,r,o)}O(t,"fontinactive",e),z(this)},H.prototype.load=function(e){this.c=new o(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")]),O(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 B(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){V(e,i,t,n,r)}))}(this,new S(this.c,e),e)},K.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new m(c,n))):a.push(new m(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 p;for(t=0,n=r.length;t<n;t++)f(this.c,r[t],h(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var c=r[1].split(","),l=0;l<c.length;l+=1)s.push(new m(r[0],c[l]));else s.push(new m(r[0]));g(a,(function(){e(s,i)}))};var W="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},G={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"},Y={i:"i",italic:"i",n:"n",normal:"n"},X=/^(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 J(e,t){this.c=e,this.a=t}var Q={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.c=e,this.a=t}function te(e,t){this.c=e,this.f=t,this.a=[]}J.prototype.load=function(e){var t=new p,n=this.c,r=new U(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new Z(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,c=(s=s.split(",")).length,l=0;l<c;l++){var u;if((u=s[l]).match(/^[\w-]+$/))if(null==(f=X.exec(u.toLowerCase())))u="";else{if(u=null==(u=f[2])||""==u?"n":Y[u],null==(f=f[1])||""==f)f="4";else var f=G[f]||(isNaN(f)?"4":f.substr(0,1));u=[u,f].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=q[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=q[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new m(o,i[r]))}}(i),f(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),h(t)),g(t,(function(){e(i.a,i.c,Q)}))},ee.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 m(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},te.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 m(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 ne=new H(window);ne.a.c.custom=function(e,t){return new $(t,e)},ne.a.c.fontdeck=function(e,t){return new te(t,e)},ne.a.c.monotype=function(e,t){return new K(t,e)},ne.a.c.typekit=function(e,t){return new ee(t,e)},ne.a.c.google=function(e,t){return new J(t,e)};var re={load:n(ne.load,ne)};u3.exports?u3.exports=re:(window.WebFont=re,window.WebFontConfig&&ne.load(window.WebFontConfig))}();var d3=ct(f3.exports);const p3=W.div(an),h3=W.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),cn),g3=W.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),v3=W.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),y3=W.div({display:"flex",flexDirection:"column"}),m3=W.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),b3=W.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),w3=W.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),x3=W.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),C3=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),S3=t.createContext({}),_3=(t,n,r)=>{const o="th"===n?O3:k3,i=r?{style:r}:{};return Vs(t).map(((t,r)=>t?e.jsx(o,Object.assign({},i,{children:t}),`${n}${r+1}`):null))},O3=W.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),k3=W.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),E3=W.thead((({alignToScrollBody:e})=>({overflow:e?"auto":void 0,scrollbarGutter:e?"stable":void 0}))),j3=W(d9)({alignItems:"center",padding:"8px 24px"},sn),A3=W.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:e||t?"auto":void 0,scrollbarGutter:e||t?"stable":void 0}))),T3=W(d9)((({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"}}),sn),M3=t=>{var{as:n,children:r}=t,o=c(t,["as","children"]);return e.jsx(D3,Object.assign({as:n},o,{children:r}))},P3=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},D3=W.div((({contentPosition:e,direction:t,justify:n,align:r="center",gap:o})=>({display:"flex",justifyContent:P3(e||n),alignItems:P3(r),flexDirection:t,gap:o}))),L3=W.div((({theme:e})=>({color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),sn),I3=W.div((({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),R3=n=>{var{children:r,columns:o,data:i}=n,a=c(n,["children","columns","data"]);const[s,l]=t.useState(i),[u,f]=t.useState(),d=i&&"function"==typeof r?r(s):r;t.useEffect((()=>{let e=i;if(u){const{key:t,dir:n}=u;e=ut.orderBy(i,t,n)}ut.isEqual(e,s)||l(e)}),[i,u]);const p=t.useMemo((()=>({activeColumn:u,setActiveColumn:f,parentColumns:o})),[u,f,o]);return e.jsx(S3.Provider,{value:p,children:e.jsx(N3,Object.assign({},a,{children:d}))})};R3.Header=n=>{var{children:r,columns:o,columnStyles:i,alignToScrollBody:a}=n,s=c(n,["children","columns","columnStyles","alignToScrollBody"]);const{parentColumns:l}=t.useContext(S3),u=o||l||"equal";return e.jsx(E3,{alignToScrollBody:a,children:e.jsx(j3,Object.assign({as:"tr",columns:u},s,{children:_3(r,"th",i)}))})},R3.HeaderCell=r=>{var{children:o,onClick:i,contentPosition:a,justify:s,align:l,direction:u,gap:f,sorted:d,sortKey:p}=r,h=c(r,["children","onClick","contentPosition","justify","align","direction","gap","sorted","sortKey"]);const[g,v]=t.useState(d||"inactive"),{color:y}=n.useTheme(),{activeColumn:m,setActiveColumn:b}=t.useContext(S3),w=p||d,x="desc"===g?"arrow-down":"arrow-up",C="asc"===g||"desc"===g,S=e=>{if(v(e),b&&p){b("inactive"===e?void 0:{key:p,dir:e})}};return t.useEffect((()=>{!p||"asc"!==d&&"desc"!==d||S(d)}),[]),t.useEffect((()=>{d&&v(d)}),[d]),t.useEffect((()=>{const e=!m&&d;p&&m&&m.key!==p&&"inactive"!==g&&!e&&v("inactive")}),[m,g]),e.jsxs(M3,Object.assign({as:I3,onClick:e=>{p?S("inactive"===g?"asc":"asc"===g?"desc":"inactive"):i&&i(e)},direction:u,contentPosition:a,justify:s,align:l,gap:f,active:C,sorting:!!w},h,{children:[o,w?e.jsx(fn,{name:x,marginLeft:8,size:"small",color:C?y.brand:void 0,inheritColor:!C}):null]}))},R3.Body=n=>{var{children:r,height:o,maxHeight:i}=n,a=c(n,["children","height","maxHeight"]);const{parentColumns:s}=t.useContext(S3);return e.jsx(A3,Object.assign({height:o,maxHeight:i},a,{children:t.Children.map(r,(e=>e?t.cloneElement(e,{parentColumns:s}):null))}))},R3.Row=n=>{var{children:r,columns:o,onClick:i,columnStyles:a}=n,s=c(n,["children","columns","onClick","columnStyles"]);const{parentColumns:l}=t.useContext(S3),u=o||l||"equal";return e.jsx(T3,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},s,{children:_3(r,"td",a)}))},R3.Column=t=>{var{children:n,contentPosition:r,direction:o,justify:i,align:a,gap:s,defaultValue:l,padding:u,paddingTop:f,paddingBottom:d,paddingRight:p,paddingLeft:h}=t,g=c(t,["children","contentPosition","direction","justify","align","gap","defaultValue","padding","paddingTop","paddingBottom","paddingRight","paddingLeft"]);const v={padding:u,paddingTop:f,paddingBottom:d,paddingRight:p,paddingLeft:h};return e.jsx(M3,Object.assign({as:L3,direction:o,contentPosition:r,justify:i,align:a,gap:s,showDefault:!!l&&!n},v,g,{children:n||l}))};const N3=W.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),sn,cn),B3=t.forwardRef(((e,n)=>t.createElement(se.span,Z({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),[F3,z3]=q("Tooltip",[Qo]),H3=Qo(),V3=700,K3="tooltip.open",[$3,U3]=F3("TooltipProvider"),W3="Tooltip",[Z3,q3]=F3(W3),G3="TooltipTrigger",Y3=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=q3(G3,r),a=U3(G3,r),s=H3(r),c=X(n,t.useRef(null),i.onTriggerChange),l=t.useRef(!1),u=t.useRef(!1),f=t.useCallback((()=>l.current=!1),[]);return t.useEffect((()=>()=>document.removeEventListener("pointerup",f)),[f]),t.createElement(hi,Z({asChild:!0},s),t.createElement(se.button,Z({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:oe(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))})),onPointerLeave:oe(e.onPointerLeave,(()=>{i.onTriggerLeave(),u.current=!1})),onPointerDown:oe(e.onPointerDown,(()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:oe(e.onFocus,(()=>{l.current||i.onOpen()})),onBlur:oe(e.onBlur,i.onClose),onClick:oe(e.onClick,i.onClose)})))})),X3="TooltipPortal",[J3,Q3]=F3(X3,{forceMount:void 0}),e4="TooltipContent",t4=t.forwardRef(((e,n)=>{const r=Q3(e4,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=e,s=q3(e4,e.__scopeTooltip);return t.createElement(ue,{present:o||s.open},s.disableHoverableContent?t.createElement(i4,Z({side:i},a,{ref:n})):t.createElement(n4,Z({side:i},a,{ref:n})))})),n4=t.forwardRef(((e,n)=>{const r=q3(e4,e.__scopeTooltip),o=U3(e4,e.__scopeTooltip),i=t.useRef(null),a=X(n,i),[s,c]=t.useState(null),{trigger:l,onClose:u}=r,f=i.current,{onPointerInTransitChange:d}=o,p=t.useCallback((()=>{c(null),d(!1)}),[d]),h=t.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(a),d(!0)}),[d]);return t.useEffect((()=>()=>p()),[p]),t.useEffect((()=>{if(l&&f){const e=e=>h(e,f),t=e=>h(e,l);return l.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[l,f,h,p]),t.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,c=t[i].x,l=t[i].y;s>r!=l>r&&n<(c-a)*(r-s)/(l-s)+a&&(o=!o)}return o}(n,s);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,f,s,u,p]),t.createElement(i4,Z({},e,{ref:a}))})),[r4,o4]=F3(W3,{isInside:!1}),i4=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,l=q3(e4,r),u=H3(r),{onClose:f}=l;return t.useEffect((()=>(document.addEventListener(K3,f),()=>document.removeEventListener(K3,f))),[f]),t.useEffect((()=>{if(l.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(l.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[l.trigger,f]),t.createElement(yr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f},t.createElement(gi,Z({"data-state":l.stateAttribute},u,c,{ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),t.createElement(ee,null,o),t.createElement(r4,{scope:r,isInside:!0},t.createElement(B3,{id:l.contentId,role:"tooltip"},i||o))))}));const a4=e=>{const{__scopeTooltip:n,delayDuration:r=V3,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[s,c]=t.useState(!0),l=t.useRef(!1),u=t.useRef(0);return t.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),t.createElement($3,{scope:n,isOpenDelayed:s,delayDuration:r,onOpen:t.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),onClose:t.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:l,onPointerInTransitChange:t.useCallback((e=>{l.current=e}),[]),disableHoverableContent:i},a)},s4=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=U3(W3,e.__scopeTooltip),u=H3(n),[f,d]=t.useState(null),p=he(),h=t.useRef(0),g=null!=s?s:l.disableHoverableContent,v=null!=c?c:l.delayDuration,y=t.useRef(!1),[m=!1,b]=ae({prop:o,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(K3))):l.onClose(),null==a||a(e)}}),w=t.useMemo((()=>m?y.current?"delayed-open":"instant-open":"closed"),[m]),x=t.useCallback((()=>{window.clearTimeout(h.current),y.current=!1,b(!0)}),[b]),C=t.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),S=t.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{y.current=!0,b(!0)}),v)}),[v,b]);return t.useEffect((()=>()=>window.clearTimeout(h.current)),[]),t.createElement(pi,u,t.createElement(Z3,{scope:n,contentId:p,open:m,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:t.useCallback((()=>{l.isOpenDelayed?S():x()}),[l.isOpenDelayed,S,x]),onTriggerLeave:t.useCallback((()=>{g?C():window.clearTimeout(h.current)}),[C,g]),onOpen:x,onClose:C,disableHoverableContent:g},r))},c4=Y3,l4=e=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,a=q3(X3,n);return t.createElement(J3,{scope:n,forceMount:r},t.createElement(ue,{present:r||a.open},t.createElement(yi,{asChild:!0,container:i},o)))},u4=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=H3(r);return o4("TooltipArrow",r).isInside?null:t.createElement(vi,Z({},i,o,{ref:n}))})),f4=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:s,width:l,maxWidth:u,textAlign:f,open:d,disabled:p,id:h,bgColor:g,color:v,container:y,afterShow:m,afterHide:b}=t,w=c(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx(a4,{children:e.jsxs(s4,{delayDuration:0,onOpenChange:e=>{p||(m&&e&&m(),b&&!e&&b())},open:d,children:[e.jsx(c4,{asChild:!0,children:e.jsx(p4,Object.assign({},w,{children:n}))}),e.jsx(l4,{container:y,children:!p&&e.jsxs(d4,{side:Qs(i).side,align:Qs(i).align,sideOffset:a,zIndex:s,width:l,maxWidth:u,textAlign:f,id:h,bgColor:g,textColor:v,children:[o||r,e.jsx(u4,{className:"tooltip-arrow",width:12,height:8})]})})]})})},d4=W(t4,{shouldForwardProp:e=>Ks(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:s,font:c}=e,l=s.background,u=o||l;return{backgroundColor:u,boxShadow:e.elevation1,color:i||s.color.default,fontSize:c.size.sm,fontFamily:c.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:u,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),p4=W.div({display:"inline-flex"}),h4=W.div((({theme:e})=>({color:e.tooltip.color.default}))),g4=W.div((({theme:e})=>({color:e.tooltip.color.subtext})));f4.Header=h4,f4.Body=g4;const v4=W.div((({gap:e=8})=>({display:"flex",gap:e})),cn),y4=W.div((({theme:e,active:t,itemWidth:n="fill",reverse:r,gap:o})=>({display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:o,padding:"8px 16px",width:"fit"===n?"max-content":"100%",borderRadius:8,background:t?e.scale1:"transparent",border:"1px solid",borderColor:t?"transparent":e.scale0,color:t?e.scale10:e.scale6,fontSize:e.font.size.md,fontWeight:e.font.weight.medium,cursor:"pointer"}))),m4="#0074F4",b4="#FF6068",w4="#FF9900",x4="#F0BB00",C4="#00C242",S4="#001D32",_4="#FFFFFF",O4={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:m4,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:fr(.95,m4),brandTint1:fr(.9,m4),brandTint2:fr(.8,m4),brandTint3:fr(.7,m4),brandTint4:fr(.6,m4),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:b4,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:fr(.95,b4),errorTint1:fr(.9,b4),errorTint2:fr(.8,b4),warning:w4,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:fr(.95,w4),warningTint1:fr(.9,w4),warningTint2:fr(.8,w4),alert:x4,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:fr(.95,x4),alertTint1:fr(.9,x4),alertTint2:fr(.8,x4),success:C4,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:fr(.95,C4),successTint1:fr(.9,C4),successTint2:fr(.8,C4),grayscale0:fr(.95,S4),grayscale1:fr(.9,S4),grayscale2:fr(.8,S4),grayscale3:fr(.7,S4),grayscale4:fr(.6,S4),grayscale5:fr(.5,S4),grayscale6:fr(.4,S4),grayscale7:fr(.3,S4),grayscale8:fr(.2,S4),grayscale9:fr(.1,S4),grayscale10:S4,contrast0:fr(.95,_4),contrast1:fr(.9,_4),contrast2:fr(.8,_4),contrast3:fr(.7,_4),contrast4:fr(.6,_4),contrast5:fr(.5,_4),contrast6:fr(.4,_4),contrast7:fr(.3,_4),contrast8:fr(.2,_4),contrast9:fr(.1,_4),contrast10:_4},k4="#FFFFFF",E4={scale0:O4.grayscale0,scale1:O4.grayscale1,scale2:O4.grayscale2,scale3:O4.grayscale3,scale4:O4.grayscale4,scale5:O4.grayscale5,scale6:O4.grayscale6,scale7:O4.grayscale7,scale8:O4.grayscale8,scale9:O4.grayscale9,scale10:O4.grayscale10,accent:O4.brand,accentShade:O4.brandShade1,background0:k4,background1:k4,background2:k4,background3:k4,background4:k4,background5:k4};var j4={color:O4,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:A4}=j4;var T4={small:{height:28,iconSize:18,font:A4.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:A4.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:A4.size.lg,padding:14,iconOnlyPadding:6}};const M4="#FFFFFF",P4=O4.grayscale0,D4=O4.grayscale1,L4=O4.grayscale2,I4=O4.grayscale3,R4=O4.grayscale4,N4=O4.grayscale6,B4=O4.grayscale8,F4=O4.grayscale9,z4=O4.grayscale10,H4=Object.assign(Object.assign(Object.assign({},j4),E4),{name:"light",button:Object.assign(Object.assign({},T4),{primary:{color:{default:M4,hover:M4,active:M4},outlineColor:{default:z4,hover:z4,active:z4},background:{default:O4.brand,hover:O4.brandShade1,active:O4.brandShade2},outlineBackground:{default:O4.brandTint0,hover:O4.brandTint1,active:O4.brandTint2},border:{default:O4.brand,hover:O4.brandShade1,active:O4.brandShade2},divider:L4},secondary:{color:{default:z4,hover:z4,active:z4},outlineColor:{default:z4,hover:z4,active:z4},background:{default:D4,hover:L4,active:I4},outlineBackground:{default:D4,hover:L4,active:I4},border:{default:L4,hover:L4,active:L4},divider:L4},positive:{color:{default:M4,hover:M4,active:M4},outlineColor:{default:z4,hover:z4,active:z4},background:{default:O4.success,hover:O4.successShade1,active:O4.successShade2},outlineBackground:{default:O4.successTint0,hover:O4.successTint1,active:O4.successTint2},border:{default:O4.success,hover:O4.successShade1,active:O4.successShade2},divider:L4},negative:{color:{default:M4,hover:M4,active:M4},outlineColor:{default:z4,hover:z4,active:z4},background:{default:O4.error,hover:O4.errorShade1,active:O4.errorShade2},outlineBackground:{default:O4.errorTint0,hover:O4.errorTint1,active:O4.errorTint2},border:{default:O4.error,hover:O4.errorShade1,active:O4.errorShade2},divider:L4},caution:{color:{default:M4,hover:M4,active:M4},outlineColor:{default:z4,hover:z4,active:z4},background:{default:O4.warning,hover:O4.warningShade1,active:O4.warningShade2},outlineBackground:{default:O4.warningTint0,hover:O4.warningTint1,active:O4.warningTint2},border:{default:O4.warning,hover:O4.warningShade1,active:O4.warningShade2},divider:L4},subtle:{color:{default:O4.brand,hover:O4.brand,active:O4.brand},outlineColor:{default:O4.brand,hover:O4.brand,active:O4.brand},secondaryColor:{default:z4,hover:z4,active:z4},positiveColor:{default:O4.success,hover:O4.success,active:O4.success},negativeColor:{default:O4.error,hover:O4.error,active:O4.error},cautionColor:{default:O4.warning,hover:O4.warning,active:O4.warning},background:{default:"transparent",hover:D4,active:L4},outlineBackground:{default:"transparent",hover:D4,active:L4},border:{default:"transparent",hover:L4,active:L4},divider:L4},link:{color:{default:O4.brand,hover:O4.brandShade1,active:O4.brandShade2},outlineColor:{default:O4.brand,hover:O4.brandShade1,active:O4.brandShade2},secondaryColor:{default:B4,hover:F4,active:z4},positiveColor:{default:O4.success,hover:O4.successShade1,active:O4.successShade2},negativeColor:{default:O4.error,hover:O4.errorShade1,active:O4.errorShade2},cautionColor:{default:O4.warning,hover:O4.warningShade1,active:O4.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:R4,hover:R4,active:R4},outlineColor:{default:R4,hover:R4,active:R4},background:{default:D4,hover:D4,active:D4},outlineBackground:{default:P4,hover:P4,active:P4},border:{default:D4,hover:D4,active:D4},divider:D4},color:{default:M4}}),calendar:{background:{container:O4.contrast10,hover:D4,active:O4.brand,activeHover:O4.brandShade1},color:{disabled:R4,default:z4,active:O4.contrast10,current:O4.brand,outside:N4,weekday:B4,monthYear:B4,iconDefault:R4,iconHover:z4}},defaultBorder:`1px solid ${D4}`,formControl:{color:{default:B4,hover:z4,active:O4.brand,activeHover:O4.brandShade1,disabled:R4}},input:{borderRadius:4,background:{default:P4,hover:D4,focused:D4,disabled:P4},color:{default:z4,disabled:R4,placeholder:N4,description:N4,descriptionError:O4.error},borderColor:{default:N4,hover:B4,focused:O4.brand,disabled:R4,error:O4.error},labelColor:{default:B4,hover:B4,filled:N4,focused:O4.brand,disabled:R4}},menu:{background:M4},menuItem:{borderColor:O4.brand,background:{active:P4,hover:D4,inactive:"transparent"},color:{active:z4,hover:z4,inactive:N4}},modal:{background:O4.contrast10,color:{header:z4,body:N4}},options:{background:O4.contrast10},optionItem:{background:{active:D4,inactive:"transparent"},color:{active:z4,inactive:z4,accent:O4.brand}},table:{color:{header:N4,body:z4},borderColor:D4},toast:{color:z4,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:B4,info:O4.brand,success:O4.success,warning:O4.warning,error:O4.error}},toggle:{slider:O4.contrast10},tooltip:{background:"#FFF",color:{default:z4,subtext:N4}}}),V4={scale0:O4.contrast0,scale1:O4.contrast1,scale2:O4.contrast2,scale3:O4.contrast3,scale4:O4.contrast4,scale5:O4.contrast5,scale6:O4.contrast6,scale7:O4.contrast7,scale8:O4.contrast8,scale9:O4.contrast9,scale10:O4.contrast10,accent:O4.brandDark,accentShade:O4.brandDarkShade1,background0:O4.brandBackground0,background1:O4.brandBackground1,background2:O4.brandBackground2,background3:O4.brandBackground3,background4:O4.brandBackground4,background5:O4.brandBackground5},K4=O4.contrast0,$4=O4.contrast1,U4=O4.contrast2,W4=O4.contrast3,Z4=O4.contrast4,q4=O4.contrast6,G4=O4.contrast8,Y4=O4.contrast9,X4=O4.contrast10,J4=O4.brandDark,Q4={light:H4,dark:Object.assign(Object.assign(Object.assign({},j4),V4),{name:"dark",button:Object.assign(Object.assign({},T4),{primary:{color:{default:X4,hover:X4,active:X4},outlineColor:{default:X4,hover:X4,active:X4},background:{default:O4.brand,hover:O4.brandShade1,active:O4.brandShade2},outlineBackground:{default:O4.brandTint0,hover:O4.brandTint1,active:O4.brandTint2},border:{default:O4.brand,hover:O4.brandShade1,active:O4.brandShade2},divider:U4},secondary:{color:{default:X4,hover:X4,active:X4},outlineColor:{default:X4,hover:X4,active:X4},background:{default:$4,hover:U4,active:W4},outlineBackground:{default:$4,hover:U4,active:W4},border:{default:U4,hover:U4,active:U4},divider:U4},positive:{color:{default:X4,hover:X4,active:X4},outlineColor:{default:X4,hover:X4,active:X4},background:{default:O4.success,hover:O4.successShade1,active:O4.successShade2},outlineBackground:{default:O4.successTint0,hover:O4.successTint1,active:O4.successTint2},border:{default:O4.success,hover:O4.successShade1,active:O4.successShade2},divider:U4},negative:{color:{default:X4,hover:X4,active:X4},outlineColor:{default:X4,hover:X4,active:X4},background:{default:O4.error,hover:O4.errorShade1,active:O4.errorShade2},outlineBackground:{default:O4.errorTint0,hover:O4.errorTint1,active:O4.errorTint2},border:{default:O4.error,hover:O4.errorShade1,active:O4.errorShade2},divider:U4},caution:{color:{default:X4,hover:X4,active:X4},outlineColor:{default:X4,hover:X4,active:X4},background:{default:O4.warning,hover:O4.warningShade1,active:O4.warningShade2},outlineBackground:{default:O4.warningTint0,hover:O4.warningTint1,active:O4.warningTint2},border:{default:O4.warning,hover:O4.warningShade1,active:O4.warningShade2},divider:U4},subtle:{color:{default:O4.brand,hover:O4.brand,active:O4.brand},outlineColor:{default:O4.brand,hover:O4.brand,active:O4.brand},secondaryColor:{default:X4,hover:X4,active:X4},positiveColor:{default:O4.success,hover:O4.success,active:O4.success},negativeColor:{default:O4.error,hover:O4.error,active:O4.error},cautionColor:{default:O4.warning,hover:O4.warning,active:O4.warning},background:{default:"transparent",hover:$4,active:U4},outlineBackground:{default:"transparent",hover:$4,active:U4},border:{default:"transparent",hover:U4,active:U4},divider:U4},link:{color:{default:O4.brandShade2,hover:O4.brandShade1,active:O4.brand},outlineColor:{default:O4.brandShade2,hover:O4.brandShade1,active:O4.brand},secondaryColor:{default:G4,hover:Y4,active:X4},positiveColor:{default:O4.successShade2,hover:O4.successShade1,active:O4.success},negativeColor:{default:O4.errorShade2,hover:O4.errorShade1,active:O4.error},cautionColor:{default:O4.warningShade2,hover:O4.warningShade1,active:O4.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:Z4,hover:Z4,active:Z4},outlineColor:{default:Z4,hover:Z4,active:Z4},background:{default:$4,hover:$4,active:$4},outlineBackground:{default:K4,hover:K4,active:K4},border:{default:$4,hover:$4,active:$4},divider:$4},color:{default:"#FFFFFF"}}),calendar:{background:{container:O4.brandBackground3,hover:$4,active:O4.brand,activeHover:O4.brandShade1},color:{disabled:Z4,default:X4,active:X4,current:J4,outside:q4,weekday:G4,monthYear:G4,iconDefault:Z4,iconHover:X4}},defaultBorder:`1px solid ${$4}`,formControl:{color:{default:G4,hover:X4,active:O4.brand,activeHover:O4.brandShade1,disabled:Z4}},input:{borderRadius:4,background:{default:K4,hover:$4,focused:$4,disabled:K4},color:{default:X4,disabled:Z4,placeholder:q4,description:q4,descriptionError:O4.error},borderColor:{default:q4,hover:G4,focused:J4,disabled:Z4,error:O4.error},labelColor:{default:G4,hover:G4,filled:q4,focused:J4,disabled:Z4}},menu:{background:O4.brandBackground2},menuItem:{borderColor:O4.brand,background:{active:K4,hover:$4,inactive:"transparent"},color:{active:X4,hover:X4,inactive:q4}},modal:{background:O4.brandBackground3,color:{header:X4,body:q4}},options:{background:O4.brandBackground3},optionItem:{background:{active:$4,inactive:"transparent"},color:{active:X4,inactive:X4,accent:J4}},table:{color:{header:q4,body:X4},borderColor:$4},toast:{color:X4,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:G4,info:O4.brand,success:O4.success,warning:O4.warning,error:O4.error}},toggle:{slider:O4.brandBackground0},tooltip:{background:O4.brandBackground4,color:{default:X4,subtext:q4}}})};exports.Accordion=hn,exports.Audio=Sc,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:s,barCategoryGap:l,barSize:u=16,maxBarSize:f,vertical:d=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:v=45}=t,y=c(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:m}=n.useTheme();return e.jsxs(iz,Object.assign({},y,{children:[e.jsx(oz,{}),e.jsx(Gw,{width:"100%",height:"100%",children:e.jsxs(RB,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:d?"vertical":"horizontal",barSize:u,maxBarSize:f,barGap:s,barCategoryGap:l,children:[e.jsx(vN,{stroke:m,strokeDasharray:"3 5",vertical:d,horizontal:!d}),e.jsx(IN,{stroke:m,tickMargin:4,tickFormatter:e=>d?Rc(e):e,tick:!h&&{},height:h?12:g,dataKey:d?void 0:"name",type:d?"number":"category"}),e.jsx(NN,{stroke:m,tickMargin:4,tickFormatter:e=>d?e:Rc(e),tick:!p&&{},width:p?5:v,dataKey:d?"name":void 0,type:d?"category":"number"}),sz(),o&&e.jsx(Mm,{content:e.jsx(cz,{})}),i.map((({key:t,color:n},r)=>e.jsx(kI,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},exports.Button=hc,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:c}=t.useRef(r||new Date),[l,u]=t.useState(c),[f,d]=t.useState(c),[p,h]=t.useState(),{calendar:g}=n.useTheme(),v=e=>QF(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),y=e=>{const t=ez(("prev"===e?tz:KB)(f,{months:1}),1),n=v(t);d(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?qF(tz(e,{months:1})):ez("future"===n?KB(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?tz:KB)(o,{days:e}),a=v(n);i[t](a)}return i},b=e=>{const t=function(e){return FB(e).getDay()}(ez(e,1)),n=ZF(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=v(c),n=i instanceof Date?v(i):t,r=a instanceof Date?v(a):t,o=v(qF(f)),s=v(ez(f,1));let u=!1;const d=YF(e,n),p=GF(e,r);(i&&d||a&&p)&&(u=!0);const h=GF(e,o)||YF(e,s),g=tF(e,c),y=tF(e,l);return{date:WF(e),fullDate:e,current:g,disabled:u,outside:h,active:y}}))};t.useEffect((()=>{const e=b(f);h(e)}),[l,f]);return e.jsxs(bz,{noShadow:s,children:[e.jsxs(wz,{children:[e.jsx(xz,{children:$F(f,"MMMM y")}),e.jsxs(Cz,{children:[e.jsx(fn,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>y("prev"),hoverColor:g.color.iconHover}),e.jsx(fn,{name:"chevron-right",pointer:!0,onClick:()=>y("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(Oz,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(kz,{children:t[0]},t)))}),e.jsx(Sz,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(_z,{disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{u(e),o(e)})(n),children:t},mz())))})]})},exports.Checkbox=Tz,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:s,noNumbers:c,margin:l,marginTop:u,marginBottom:f,marginRight:d,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:l,marginTop:u,marginBottom:f,marginRight:d,marginLeft:p},v=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[y,m,b]=v;y=y||a||"",m=m||s||"",b=b||c?"nonumbers":"";let w=y?y.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),S=e=>{if(m){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?ut.range(r,o+1):ut.rangeRight(o,r+1)}return null})),n=t.flat();return ut.compact(n)})(m);return t.some((t=>e===t))}return!1},_=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(OH,{method:x,url:_}):e.jsx(CH,{code:_,language:w,theme:"dark"===h?Gz.oceanicNext:Gz.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(AH,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement(TH,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:S(r+1)}),o.length>1&&!C&&e.jsx(MH,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(SH,{content:_})]}))})},exports.DocTable=PH,exports.DraftEditor=Y5,exports.Dropdown=a9,exports.DropdownMenu=ec,exports.Form=y9,exports.Grid=d9,exports.Icon=fn,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:l})=>{const[u,f]=t.useState(i),d=at(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const p=()=>f(u>0?u-1:o.length-1),h=()=>u<o.length-1?f(u+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,u]),n?e.jsxs(x9,{opacity:l,prevNext:o.length>1,children:[e.jsx(C9,{onClick:r,children:e.jsx(fn,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(S9,{id:"prev",onClick:p,children:e.jsx(fn,{name:"chevron-left",size:35,color:"white"})}),e.jsx(_9,{ref:d,src:o[u],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(S9,{next:!0,id:"next",onClick:h,children:e.jsx(fn,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=O9,exports.Input=t9,exports.InputUtils=G5,exports.Label=g9,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,s=c(r,["data","legend","keys"]);const[l,u]=t.useState(a),{scale2:f}=n.useTheme();return e.jsxs(iz,Object.assign({},s,{children:[e.jsx(oz,{}),e.jsx(Gw,{width:"100%",height:"100%",children:e.jsxs(IB,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(vN,{stroke:f,strokeDasharray:"3 5",vertical:!1}),e.jsx(IN,{stroke:f,dataKey:"name",tickMargin:4}),e.jsx(NN,{stroke:f,tickMargin:4,tickFormatter:e=>Rc(e)}),sz(),i&&e.jsx(Mm,{content:e.jsx(cz,{toggleData:a.length>1?e=>{u((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),l.map((({key:t,color:n,hidden:r},o)=>e.jsx(DN,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=k9,exports.Message=M9,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(B9,{children:[e.jsx(N9,{}),e.jsx(R9,{color:n,style:r,children:t}),e.jsx(N9,{})]}),exports.Modal=F9,exports.MultiSelect=K9,exports.Notification=BB,exports.Options=Ws,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,l=c(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[u,f]=t.useState(J9(o)||1),[d,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,J9(a)||h.length),v=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),f(e),r(e)}},y=0!==d,m=d!==g.length-1;return e.jsxs(Q9,Object.assign({width:s},l,{children:[e.jsx(t3,{disabled:1===u,onClick:()=>v(1),children:e.jsx(fn,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(t3,{disabled:1===u,onClick:()=>v(u-1),children:e.jsx(fn,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[d].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&y?e.jsx(r3,{children:"... "}):"",e.jsx(n3,{selected:n===u,onClick:()=>v(n),children:n}),r===o.length-1&&m?e.jsx(r3,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(t3,{disabled:u===i,onClick:()=>v(u+1),children:e.jsx(fn,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(t3,{disabled:u===i,onClick:()=>v(i),children:e.jsx(fn,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=c(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==r?void 0:r.length)>0,l=s?r:i?[{name:"1",value:1,color:"#999"}]:void 0,u=n/2-1;return e.jsx(iz,Object.assign({width:n,height:n},a,{children:e.jsxs(NB,{width:n,height:n,children:[e.jsx(QD,{dataKey:"value",data:l,innerRadius:o,outerRadius:u,children:null==l?void 0:l.map((t=>e.jsx(Yw,{fill:t.color||"#999"},t.name)))}),s&&sz()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=8,margin:c,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d})=>{const p={margin:c,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(o3,Object.assign({percent:h,size:a,thickness:s,color:n},p)):e.jsx(c3,Object.assign({width:o,height:i||s},p,{children:e.jsx(l3,{color:n,width:h})}))},exports.Radio=p9,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,d3.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.Slider=wc,exports.Spacer=p3,exports.Spinner=ac,exports.Table=R3,exports.Tabs=t=>{var{items:n,activeItem:r,itemWidth:o,itemGap:i,onChange:a}=t,s=c(t,["items","activeItem","itemWidth","itemGap","onChange"]);const l=n.filter((e=>!1!==e.visible));return e.jsx(v4,Object.assign({gap:i},s,{children:l.map((t=>{const{id:n,label:i,icon:s,iconColor:l,iconPosition:u}=t,f=c(t,["id","label","icon","iconColor","iconPosition"]);return e.jsxs(y4,Object.assign({active:n===r,itemWidth:o,reverse:"right"===u,onClick:()=>(e=>{a(e)})(t),gap:s?4:void 0},f,{children:[s&&e.jsx(fn,{name:s,size:"small",color:l,inheritColor:!l}),i]}),n)}))}))},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=h9,exports.Tooltip=f4,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:l,width:u,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g})=>{const v=t.useRef(),[y,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g},C=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!ut.isEqual(n,v.current)){v.current=n;const e=n.filter((e=>e.selected)).map(C),t=n.filter((e=>!e.selected)).map(C);w(e),m(t)}}),[n,v]),t.useEffect((()=>{r(b)}),[b]);const S=(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()},_=e=>{const t="select"===e?m:w,n="select"===e?y:b;("select"===e?w:m)((e=>[...e,...n])),t([])},O=t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(x3,{children:t.header}),e.jsx(C3,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),k=!(s&&c);return e.jsxs(h3,Object.assign({width:u,readOnly:l},x,{children:[i&&e.jsx(g3,{children:i}),e.jsxs(v3,{children:[!l&&e.jsxs(y3,{children:[k&&e.jsx(m3,{children:y.length>0&&!s&&e.jsx(hc,{small:!0,outline:!0,onClick:()=>_("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(b3,{children:y.map((t=>e.jsxs(w3,{onClick:()=>S(t,"select"),color:t.color,children:[O(t),e.jsx(fn,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(y3,{children:[k&&!l&&e.jsx(m3,{children:b.length>0&&!c&&!l&&e.jsx(hc,{small:!0,outline:!0,secondary:!0,onClick:()=>_("remove"),icon:"arrow-left",children:"All"})}),l&&0===b.length?e.jsx("div",{children:a}):e.jsx(b3,{children:b.map((t=>e.jsxs(w3,{onClick:()=>S(t,"remove"),color:t.color,children:[O(t),e.jsx(fn,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.colors=O4,exports.copyToClipboard=nz,exports.darkScale=V4,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,l=$F(n,"EEEE"),u=$F(n,"MMM d"),f=$F(n,"MMM d, y"),d=$F(n,"h:mm aaa"),p=XF(n),h=function(e){return+FB(e)>Date.now()}(n),g=function(e){return tF(e,eF(e))}(n),v=function(e){return tF(e,JF(eF(e),1))}(n),y=function(e){return tF(e,HB(eF(e),1))}(n),m=iF(c,n),b=aF(c,n),w=m>=-10&&m<=10,x=a||s?`, ${d}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(d);if(s){if(0===m)return C("Just now");if(w)return C(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return C(h?`Today${x}`:d)}return C(g?`Today${x}`:v?`Yesterday${x}`:y?`Tomorrow${x}`:0!==b||h?p?`${u}${x}`:`${f}${x}`:`${l}${x}`)},exports.lightScale=E4,exports.marginProps=cn,exports.numberWithCommas=rz,exports.paddingProps=sn,exports.positionProps=ln,exports.theme=Q4,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:l,inputValue:u}={})=>{const[f,d]=t.useState(u||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof u&&f!==u&&d(u)}),[p]);const v=()=>{null==p||p.resolve(!s||f),g()},y=()=>{null==p||p.resolve(!1),g()};it(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":v();break;case"Escape":y()}}),!!p,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(F9,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(F9.Header,{children:n}),r&&e.jsx(F9.Text,{children:r}),s&&e.jsx(F9.Body,{marginTop:4,marginBottom:8,children:e.jsx(t9,{autoFocus:!0,label:c,placeholder:l,value:f,onChange:({target:e})=>d(e.value)})}),e.jsxs(F9.Footer,{children:[e.jsx(hc,{secondary:!0,marginRight:8,onClick:y,children:o}),e.jsx(hc,{negative:a,onClick:v,children:i})]})]})]},exports.useElementObserver=on,exports.useEventListener=it,exports.useOnClickOutside=at,exports.usePrevious=e=>{const n=t.useRef(e);return t.useEffect((()=>{n.current=e}),[e]),n.current},exports.useSelect=ft,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState([]),[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=an;
|
|
45
45
|
//# sourceMappingURL=index.js.map
|