zeonailabs-reactlib 1.0.3 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("@mui/material"),require("@emotion/react"),require("@emotion/styled"),require("react-dom"),require("@mui/system"),require("@mui/x-data-grid")):"function"==typeof define&&define.amd?define([,,,,,,],e):"object"==typeof exports?exports.reactlib=e(require("react"),require("@mui/material"),require("@emotion/react"),require("@emotion/styled"),require("react-dom"),require("@mui/system"),require("@mui/x-data-grid")):t.reactlib=e(t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0])}(this,(t,e,n,i,o,r,s)=>(()=>{var a={9582(t,e,n){"use strict";var i=n(4994);e.A=void 0;var o=i(n(2032)),r=n(4848);e.A=(0,o.default)((0,r.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},7423(t,e,n){"use strict";var i=n(4994);e.A=void 0;var o=i(n(2032)),r=n(4848);e.A=(0,o.default)((0,r.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward")},2032(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i.createSvgIcon}});var i=n(8382)},5607(t,e,n){"use strict";n.d(e,{b:()=>s});var i=n(690),o=n(7379);n(4848);const r=i.createContext(void 0);function s(t){return function({props:t,name:e}){return function(t){const{theme:e,name:n,props:i}=t;if(!e||!e.components||!e.components[n])return i;const r=e.components[n];return r.defaultProps?(0,o.A)(r.defaultProps,i):r.styleOverrides||r.variants?i:(0,o.A)(r,i)}({props:t,name:e,theme:{components:i.useContext(r)}})}(t)}},3478(t,e,n){"use strict";n.d(e,{A:()=>ct});var i=n(8168),o=n(8587),r=n(9453),s=n(1317),a=n(4188),l=n(3571),c=n(8749),u=n(771);const h={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p="#f3e5f5",f="#ce93d8",m="#ba68c8",g="#ab47bc",y="#9c27b0",_="#7b1fa2",v="#e57373",x="#ef5350",b="#f44336",w="#d32f2f",A="#c62828",P="#ffb74d",k="#ffa726",M="#ff9800",C="#f57c00",I="#e65100",T="#e3f2fd",L="#90caf9",S="#42a5f5",O="#1976d2",j="#1565c0",z="#4fc3f7",E="#29b6f6",R="#03a9f4",N="#0288d1",$="#01579b",B="#81c784",F="#66bb6a",D="#4caf50",Z="#388e3c",H="#2e7d32",U="#1b5e20",W=["mode","contrastThreshold","tonalOffset"],V={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:h.white,default:h.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},q={text:{primary:h.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:h.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function G(t,e,n,i){const o=i.light||i,r=i.dark||1.5*i;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:"light"===e?t.light=(0,u.a)(t.main,o):"dark"===e&&(t.dark=(0,u.e$)(t.main,r)))}const K=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],Y={textTransform:"uppercase"},X='"Roboto", "Helvetica", "Arial", sans-serif';function Q(t,e){const n="function"==typeof e?e(t):e,{fontFamily:r=X,fontSize:a=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:h=700,htmlFontSize:d=16,allVariants:p,pxToRem:f}=n,m=(0,o.A)(n,K),g=a/14,y=f||(t=>t/d*g+"rem"),_=(t,e,n,o,s)=>{return(0,i.A)({fontFamily:r,fontWeight:t,fontSize:y(e),lineHeight:n},r===X?{letterSpacing:(a=o/e,Math.round(1e5*a)/1e5+"em")}:{},s,p);var a},v={h1:_(l,96,1.167,-1.5),h2:_(l,60,1.2,-.5),h3:_(c,48,1.167,0),h4:_(c,34,1.235,.25),h5:_(c,24,1.334,0),h6:_(u,20,1.6,.15),subtitle1:_(c,16,1.75,.15),subtitle2:_(u,14,1.57,.1),body1:_(c,16,1.5,.15),body2:_(c,14,1.43,.15),button:_(u,14,1.75,.4,Y),caption:_(c,12,1.66,.4),overline:_(c,12,2.66,1,Y),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,s.A)((0,i.A)({htmlFontSize:d,pxToRem:y,fontFamily:r,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:h},v),m,{clone:!1})}function J(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,0.2)`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,0.14)`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,0.12)`].join(",")}const tt=["none",J(0,2,1,-1,0,1,1,0,0,1,3,0),J(0,3,1,-2,0,2,2,0,0,1,5,0),J(0,3,3,-2,0,3,4,0,0,1,8,0),J(0,2,4,-1,0,4,5,0,0,1,10,0),J(0,3,5,-1,0,5,8,0,0,1,14,0),J(0,3,5,-1,0,6,10,0,0,1,18,0),J(0,4,5,-2,0,7,10,1,0,2,16,1),J(0,5,5,-3,0,8,10,1,0,3,14,2),J(0,5,6,-3,0,9,12,1,0,3,16,2),J(0,6,6,-3,0,10,14,1,0,4,18,3),J(0,6,7,-4,0,11,15,1,0,4,20,3),J(0,7,8,-4,0,12,17,2,0,5,22,4),J(0,7,8,-4,0,13,19,2,0,5,24,4),J(0,7,9,-4,0,14,21,2,0,5,26,4),J(0,8,9,-5,0,15,22,2,0,6,28,5),J(0,8,10,-5,0,16,24,2,0,6,30,5),J(0,8,11,-5,0,17,26,2,0,6,32,5),J(0,9,11,-5,0,18,28,2,0,7,34,6),J(0,9,12,-6,0,19,29,2,0,7,36,6),J(0,10,13,-6,0,20,31,3,0,8,38,7),J(0,10,13,-6,0,21,33,3,0,8,40,7),J(0,10,14,-6,0,22,35,3,0,8,42,7),J(0,11,14,-7,0,23,36,3,0,9,44,8),J(0,11,15,-7,0,24,38,3,0,9,46,8)],et=["duration","easing","delay"],nt={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},it={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ot(t){return`${Math.round(t)}ms`}function rt(t){if(!t)return 0;const e=t/36;return Math.round(10*(4+15*e**.25+e/5))}function st(t){const e=(0,i.A)({},nt,t.easing),n=(0,i.A)({},it,t.duration);return(0,i.A)({getAutoHeightDuration:rt,create:(t=["all"],i={})=>{const{duration:r=n.standard,easing:s=e.easeInOut,delay:a=0}=i;return(0,o.A)(i,et),(Array.isArray(t)?t:[t]).map(t=>`${t} ${"string"==typeof r?r:ot(r)} ${s} ${"string"==typeof a?a:ot(a)}`).join(",")}},t,{easing:e,duration:n})}const at={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},lt=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const ct=function(t={},...e){const{mixins:n={},palette:K={},transitions:Y={},typography:X={}}=t,J=(0,o.A)(t,lt);if(t.vars&&void 0===t.generateCssVars)throw new Error((0,r.A)(18));const et=function(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:a=.2}=t,l=(0,o.A)(t,W),c=t.primary||function(t="light"){return"dark"===t?{main:L,light:T,dark:S}:{main:O,light:S,dark:j}}(e),K=t.secondary||function(t="light"){return"dark"===t?{main:f,light:p,dark:g}:{main:y,light:m,dark:_}}(e),Y=t.error||function(t="light"){return"dark"===t?{main:b,light:v,dark:w}:{main:w,light:x,dark:A}}(e),X=t.info||function(t="light"){return"dark"===t?{main:E,light:z,dark:N}:{main:N,light:R,dark:$}}(e),Q=t.success||function(t="light"){return"dark"===t?{main:F,light:B,dark:Z}:{main:H,light:D,dark:U}}(e),J=t.warning||function(t="light"){return"dark"===t?{main:k,light:P,dark:C}:{main:"#ed6c02",light:M,dark:I}}(e);function tt(t){return(0,u.eM)(t,q.text.primary)>=n?q.text.primary:V.text.primary}const et=({color:t,name:e,mainShade:n=500,lightShade:o=300,darkShade:s=700})=>{if(!(t=(0,i.A)({},t)).main&&t[n]&&(t.main=t[n]),!t.hasOwnProperty("main"))throw new Error((0,r.A)(11,e?` (${e})`:"",n));if("string"!=typeof t.main)throw new Error((0,r.A)(12,e?` (${e})`:"",JSON.stringify(t.main)));return G(t,"light",o,a),G(t,"dark",s,a),t.contrastText||(t.contrastText=tt(t.main)),t},nt={dark:q,light:V};return(0,s.A)((0,i.A)({common:(0,i.A)({},h),mode:e,primary:et({color:c,name:"primary"}),secondary:et({color:K,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:et({color:Y,name:"error"}),warning:et({color:J,name:"warning"}),info:et({color:X,name:"info"}),success:et({color:Q,name:"success"}),grey:d,contrastThreshold:n,getContrastText:tt,augmentColor:et,tonalOffset:a},nt[e]),l)}(K),nt=(0,c.A)(t);let it=(0,s.A)(nt,{mixins:(ot=nt.breakpoints,rt=n,(0,i.A)({toolbar:{minHeight:56,[ot.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[ot.up("sm")]:{minHeight:64}}},rt)),palette:et,shadows:tt.slice(),typography:Q(et,X),transitions:st(Y),zIndex:(0,i.A)({},at)});var ot,rt;return it=(0,s.A)(it,J),it=e.reduce((t,e)=>(0,s.A)(t,e),it),it.unstable_sxConfig=(0,i.A)({},a.A,null==J?void 0:J.unstable_sxConfig),it.unstable_sx=function(t){return(0,l.A)({sx:t,theme:this})},it}},2765(t,e,n){"use strict";n.d(e,{A:()=>i});const i=(0,n(3478).A)()},8312(t,e,n){"use strict";n.d(e,{A:()=>i});const i="$$material"},9245(t,e,n){"use strict";n.d(e,{Ay:()=>s});var i=n(6461),o=n(2765),r=n(8312);const s=(0,i.Ay)({themeId:r.A,defaultTheme:o.A,rootShouldForwardProp:t=>function(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}(t)&&"classes"!==t})},8466(t,e,n){"use strict";n.d(e,{A:()=>i});const i=n(3967).A},8382(t,e,n){"use strict";n.r(e),n.d(e,{capitalize:()=>o.A,createChainedFunction:()=>r,createSvgIcon:()=>b,debounce:()=>w,deprecatedPropType:()=>A,isMuiElement:()=>P,ownerDocument:()=>k,ownerWindow:()=>M,requirePropFactory:()=>C,setRef:()=>I,unstable_ClassNameGenerator:()=>W,unstable_useEnhancedEffect:()=>L,unstable_useId:()=>S,unsupportedProp:()=>O,useControlled:()=>j,useEventCallback:()=>z,useForkRef:()=>E,useIsFocusVisible:()=>U});var i=n(9071),o=n(8466);const r=function(...t){return t.reduce((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)},()=>{})};var s=n(8168),a=n(690),l=n(8587),c=n(4164),u=n(5659),h=n(5607),d=n(9245),p=n(8413),f=n(1609);function m(t){return(0,f.Ay)("MuiSvgIcon",t)}(0,p.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var g=n(4848);const y=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],_=(0,d.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"inherit"!==n.color&&e[`color${(0,o.A)(n.color)}`],e[`fontSize${(0,o.A)(n.fontSize)}`]]}})(({theme:t,ownerState:e})=>{var n,i,o,r,s,a,l,c,u,h,d,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(i=n.create)?void 0:i.call(n,"fill",{duration:null==(o=t.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(r=t.typography)||null==(s=r.pxToRem)?void 0:s.call(r,20))||"1.25rem",medium:(null==(a=t.typography)||null==(l=a.pxToRem)?void 0:l.call(a,24))||"1.5rem",large:(null==(c=t.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[e.fontSize],color:null!=(h=null==(d=(t.vars||t).palette)||null==(d=d[e.color])?void 0:d.main)?h:{action:null==(p=(t.vars||t).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[e.color]}}),v=a.forwardRef(function(t,e){const n=(0,h.b)({props:t,name:"MuiSvgIcon"}),{children:i,className:r,color:d="inherit",component:p="svg",fontSize:f="medium",htmlColor:v,inheritViewBox:x=!1,titleAccess:b,viewBox:w="0 0 24 24"}=n,A=(0,l.A)(n,y),P=a.isValidElement(i)&&"svg"===i.type,k=(0,s.A)({},n,{color:d,component:p,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:x,viewBox:w,hasSvgAsChild:P}),M={};x||(M.viewBox=w);const C=(t=>{const{color:e,fontSize:n,classes:i}=t,r={root:["root","inherit"!==e&&`color${(0,o.A)(e)}`,`fontSize${(0,o.A)(n)}`]};return(0,u.A)(r,m,i)})(k);return(0,g.jsxs)(_,(0,s.A)({as:p,className:(0,c.A)(C.root,r),focusable:"false",color:v,"aria-hidden":!b||void 0,role:b?"img":void 0,ref:e},M,A,P&&i.props,{ownerState:k,children:[P?i.props.children:i,b?(0,g.jsx)("title",{children:b}):null]}))});v.muiName="SvgIcon";const x=v;function b(t,e){function n(n,i){return(0,g.jsx)(x,(0,s.A)({"data-testid":`${e}Icon`,ref:i},n,{children:t}))}return n.muiName=x.muiName,a.memo(a.forwardRef(n))}const w=function(t,e=166){let n;function i(...i){clearTimeout(n),n=setTimeout(()=>{t.apply(this,i)},e)}return i.clear=()=>{clearTimeout(n)},i},A=function(t,e){return()=>null},P=function(t,e){var n,i;return a.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(i=t.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)},k=n(2325).A,M=n(4877).A,C=function(t,e){return()=>null},I=n(7365).A;var T=n(1529);const L=T.A,S=n(4661).A,O=function(t,e,n,i,o){return null},j=n(2501).A,z=function(t){const e=a.useRef(t);return(0,T.A)(()=>{e.current=t}),a.useRef((...t)=>(0,e.current)(...t)).current},E=n(1523).A;class R{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new R}start(t,e){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,e()},t)}}let N=!0,$=!1;const B=new R,F={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function D(t){t.metaKey||t.altKey||t.ctrlKey||(N=!0)}function Z(){N=!1}function H(){"hidden"===this.visibilityState&&$&&(N=!0)}const U=function(){const t=a.useCallback(t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",D,!0),e.addEventListener("mousedown",Z,!0),e.addEventListener("pointerdown",Z,!0),e.addEventListener("touchstart",Z,!0),e.addEventListener("visibilitychange",H,!0))},[]),e=a.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!function(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(t){}return N||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!F[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&($=!0,B.start(100,()=>{$=!1}),e.current=!1,!0)},ref:t}},W={configure:t=>{i.A.configure(t)}}},2739(t,e,n){"use strict";n.r(e),n.d(e,{GlobalStyles:()=>bt,StyledEngineProvider:()=>xt,ThemeContext:()=>g.ThemeContext,css:()=>g.css,default:()=>wt,internal_processStyles:()=>At,internal_serializeStyles:()=>kt,keyframes:()=>g.keyframes});var i=n(4774),o=n.n(i),r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function s(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var a=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(t){return 45===t.charCodeAt(1)},u=function(t){return null!=t&&"boolean"!=typeof t},h=s(function(t){return c(t)?t:t.replace(a,"-$&").toLowerCase()}),d=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(l,function(t,e,n){return f={name:e,styles:n,next:f},e})}return 1===r[t]||c(t)||"number"!=typeof e||0===e?e:e+"px"};function p(t,e,n){if(null==n)return"";var i=n;if(void 0!==i.__emotion_styles)return i;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return f={name:o.name,styles:o.styles,next:f},o.name;var r=n;if(void 0!==r.styles){var s=r.next;if(void 0!==s)for(;void 0!==s;)f={name:s.name,styles:s.styles,next:f},s=s.next;return r.styles+";"}return function(t,e,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=p(t,e,n[o])+";";else for(var r in n){var s=n[r];if("object"!=typeof s){var a=s;null!=e&&void 0!==e[a]?i+=r+"{"+e[a]+"}":u(a)&&(i+=h(r)+":"+d(r,a)+";")}else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=e&&void 0!==e[s[0]]){var l=p(t,e,s);switch(r){case"animation":case"animationName":i+=h(r)+":"+l+";";break;default:i+=r+"{"+l+"}"}}else for(var c=0;c<s.length;c++)u(s[c])&&(i+=h(r)+":"+d(r,s[c])+";")}return i}(t,e,n);case"function":if(void 0!==t){var a=f,l=n(t);return f=a,p(t,e,l)}}var c=n;if(null==e)return c;var m=e[c];return void 0!==m?m:c}var f,m=/label:\s*([^\s;{]+)\s*(;|$)/g,g=n(476),y=n(690),_=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{n.insertRule(t,n.cssRules.length)}catch(t){}}else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}),this.tags=[],this.ctr=0},t}(),v=Math.abs,x=String.fromCharCode,b=Object.assign;function w(t){return t.trim()}function A(t,e,n){return t.replace(e,n)}function P(t,e){return t.indexOf(e)}function k(t,e){return 0|t.charCodeAt(e)}function M(t,e,n){return t.slice(e,n)}function C(t){return t.length}function I(t){return t.length}function T(t,e){return e.push(t),t}var L=1,S=1,O=0,j=0,z=0,E="";function R(t,e,n,i,o,r,s){return{value:t,root:e,parent:n,type:i,props:o,children:r,line:L,column:S,length:s,return:""}}function N(t,e){return b(R("",null,null,"",null,null,0),t,{length:-t.length},e)}function $(){return z=j>0?k(E,--j):0,S--,10===z&&(S=1,L--),z}function B(){return z=j<O?k(E,j++):0,S++,10===z&&(S=1,L++),z}function F(){return k(E,j)}function D(){return j}function Z(t,e){return M(E,t,e)}function H(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function U(t){return L=S=1,O=C(E=t),j=0,[]}function W(t){return E="",t}function V(t){return w(Z(j-1,K(91===t?t+2:40===t?t+1:t)))}function q(t){for(;(z=F())&&z<33;)B();return H(t)>2||H(z)>3?"":" "}function G(t,e){for(;--e&&B()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return Z(t,D()+(e<6&&32==F()&&32==B()))}function K(t){for(;B();)switch(z){case t:return j;case 34:case 39:34!==t&&39!==t&&K(z);break;case 40:41===t&&K(t);break;case 92:B()}return j}function Y(t,e){for(;B()&&t+z!==57&&(t+z!==84||47!==F()););return"/*"+Z(e,j-1)+"*"+x(47===t?t:B())}function X(t){for(;!H(F());)B();return Z(t,j)}var Q="-ms-",J="-moz-",tt="-webkit-",et="comm",nt="rule",it="decl",ot="@keyframes";function rt(t,e){for(var n="",i=I(t),o=0;o<i;o++)n+=e(t[o],o,t,e)||"";return n}function st(t,e,n,i){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case it:return t.return=t.return||t.value;case et:return"";case ot:return t.return=t.value+"{"+rt(t.children,i)+"}";case nt:t.value=t.props.join(",")}return C(n=rt(t.children,i))?t.return=t.value+"{"+n+"}":""}function at(t){return W(lt("",null,null,null,[""],t=U(t),0,[0],t))}function lt(t,e,n,i,o,r,s,a,l){for(var c=0,u=0,h=s,d=0,p=0,f=0,m=1,g=1,y=1,_=0,v="",b=o,w=r,M=i,I=v;g;)switch(f=_,_=B()){case 40:if(108!=f&&58==k(I,h-1)){-1!=P(I+=A(V(_),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:I+=V(_);break;case 9:case 10:case 13:case 32:I+=q(f);break;case 92:I+=G(D()-1,7);continue;case 47:switch(F()){case 42:case 47:T(ut(Y(B(),D()),e,n),l);break;default:I+="/"}break;case 123*m:a[c++]=C(I)*y;case 125*m:case 59:case 0:switch(_){case 0:case 125:g=0;case 59+u:-1==y&&(I=A(I,/\f/g,"")),p>0&&C(I)-h&&T(p>32?ht(I+";",i,n,h-1):ht(A(I," ","")+";",i,n,h-2),l);break;case 59:I+=";";default:if(T(M=ct(I,e,n,c,u,o,a,v,b=[],w=[],h),r),123===_)if(0===u)lt(I,e,M,M,b,r,h,a,w);else switch(99===d&&110===k(I,3)?100:d){case 100:case 108:case 109:case 115:lt(t,M,M,i&&T(ct(t,M,M,0,0,o,a,v,o,b=[],h),w),o,w,h,a,i?b:w);break;default:lt(I,M,M,M,[""],w,0,a,w)}}c=u=p=0,m=y=1,v=I="",h=s;break;case 58:h=1+C(I),p=f;default:if(m<1)if(123==_)--m;else if(125==_&&0==m++&&125==$())continue;switch(I+=x(_),_*m){case 38:y=u>0?1:(I+="\f",-1);break;case 44:a[c++]=(C(I)-1)*y,y=1;break;case 64:45===F()&&(I+=V(B())),d=F(),u=h=C(v=I+=X(D())),_++;break;case 45:45===f&&2==C(I)&&(m=0)}}return r}function ct(t,e,n,i,o,r,s,a,l,c,u){for(var h=o-1,d=0===o?r:[""],p=I(d),f=0,m=0,g=0;f<i;++f)for(var y=0,_=M(t,h+1,h=v(m=s[f])),x=t;y<p;++y)(x=w(m>0?d[y]+" "+_:A(_,/&\f/g,d[y])))&&(l[g++]=x);return R(t,e,n,0===o?nt:a,l,c,u)}function ut(t,e,n){return R(t,e,n,et,x(z),M(t,2,-2),0)}function ht(t,e,n,i){return R(t,e,n,it,M(t,0,i),M(t,i+1,-1),i)}var dt=function(t,e,n){for(var i=0,o=0;i=o,o=F(),38===i&&12===o&&(e[n]=1),!H(o);)B();return Z(t,j)},pt=new WeakMap,ft=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||pt.get(n))&&!i){pt.set(t,!0);for(var o=[],r=function(t,e){return W(function(t,e){var n=-1,i=44;do{switch(H(i)){case 0:38===i&&12===F()&&(e[n]=1),t[n]+=dt(j-1,e,n);break;case 2:t[n]+=V(i);break;case 4:if(44===i){t[++n]=58===F()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=x(i)}}while(i=B());return t}(U(t),e))}(e,o),s=n.props,a=0,l=0;a<r.length;a++)for(var c=0;c<s.length;c++,l++)t.props[l]=o[a]?r[a].replace(/&\f/g,s[c]):s[c]+" "+r[a]}}},mt=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function gt(t,e){switch(function(t,e){return 45^k(t,0)?(((e<<2^k(t,0))<<2^k(t,1))<<2^k(t,2))<<2^k(t,3):0}(t,e)){case 5103:return tt+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return tt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return tt+t+J+t+Q+t+t;case 6828:case 4268:return tt+t+Q+t+t;case 6165:return tt+t+Q+"flex-"+t+t;case 5187:return tt+t+A(t,/(\w+).+(:[^]+)/,tt+"box-$1$2"+Q+"flex-$1$2")+t;case 5443:return tt+t+Q+"flex-item-"+A(t,/flex-|-self/,"")+t;case 4675:return tt+t+Q+"flex-line-pack"+A(t,/align-content|flex-|-self/,"")+t;case 5548:return tt+t+Q+A(t,"shrink","negative")+t;case 5292:return tt+t+Q+A(t,"basis","preferred-size")+t;case 6060:return tt+"box-"+A(t,"-grow","")+tt+t+Q+A(t,"grow","positive")+t;case 4554:return tt+A(t,/([^-])(transform)/g,"$1"+tt+"$2")+t;case 6187:return A(A(A(t,/(zoom-|grab)/,tt+"$1"),/(image-set)/,tt+"$1"),t,"")+t;case 5495:case 3959:return A(t,/(image-set\([^]*)/,tt+"$1$`$1");case 4968:return A(A(t,/(.+:)(flex-)?(.*)/,tt+"box-pack:$3"+Q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tt+t+t;case 4095:case 3583:case 4068:case 2532:return A(t,/(.+)-inline(.+)/,tt+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(C(t)-1-e>6)switch(k(t,e+1)){case 109:if(45!==k(t,e+4))break;case 102:return A(t,/(.+:)(.+)-([^]+)/,"$1"+tt+"$2-$3$1"+J+(108==k(t,e+3)?"$3":"$2-$3"))+t;case 115:return~P(t,"stretch")?gt(A(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==k(t,e+1))break;case 6444:switch(k(t,C(t)-3-(~P(t,"!important")&&10))){case 107:return A(t,":",":"+tt)+t;case 101:return A(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tt+(45===k(t,14)?"inline-":"")+"box$3$1"+tt+"$2$3$1"+Q+"$2box$3")+t}break;case 5936:switch(k(t,e+11)){case 114:return tt+t+Q+A(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return tt+t+Q+A(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return tt+t+Q+A(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return tt+t+Q+t+t}return t}var yt=[function(t,e,n,i){if(t.length>-1&&!t.return)switch(t.type){case it:t.return=gt(t.value,t.length);break;case ot:return rt([N(t,{value:A(t.value,"@","@"+tt)})],i);case nt:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,function(e){switch(function(t){return(t=/(::plac\w+|:read-\w+)/.exec(t))?t[0]:t}(e)){case":read-only":case":read-write":return rt([N(t,{props:[A(e,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return rt([N(t,{props:[A(e,/:(plac\w+)/,":"+tt+"input-$1")]}),N(t,{props:[A(e,/:(plac\w+)/,":-moz-$1")]}),N(t,{props:[A(e,/:(plac\w+)/,Q+"input-$1")]})],i)}return""})}}],_t=n(4848);const vt=new Map;function xt(t){const{injectFirst:e,enableCssLayer:n,children:i}=t,o=y.useMemo(()=>{const t=`${e}-${n}`;if("object"==typeof document&&vt.has(t))return vt.get(t);const i=function(t,e){const n=function(t){var e=t.key;if("css"===e){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))})}var i,o,r=t.stylisPlugins||yt,s={},a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n<e.length;n++)s[e[n]]=!0;a.push(t)});var l,c,u,h,d=[st,(h=function(t){l.insert(t)},function(t){t.root||(t=t.return)&&h(t)})],p=(c=[ft,mt].concat(r,d),u=I(c),function(t,e,n,i){for(var o="",r=0;r<u;r++)o+=c[r](t,e,n,i)||"";return o});o=function(t,e,n,i){l=n,rt(at(t?t+"{"+e.styles+"}":e.styles),p),i&&(f.inserted[e.name]=!0)};var f={key:e,sheet:new _({key:e,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:o};return f.sheet.hydrate(a),f}({key:"css",prepend:t});if(e){const t=n.insert;n.insert=(...e)=>(e[1].styles.match(/^@layer\s+[^{]*$/)||(e[1].styles=`@layer mui {${e[1].styles}}`),t(...e))}return n}(e,n);return vt.set(t,i),i},[e,n]);return e||n?(0,_t.jsx)(g.CacheProvider,{value:o,children:i}):i}function bt(t){const{styles:e,defaultTheme:n={}}=t,i="function"==typeof e?t=>{return e(null==(i=t)||0===Object.keys(i).length?n:t);var i}:e;return(0,_t.jsx)(g.Global,{styles:i})}function wt(t,e){return o()(t,e)}const At=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))},Pt=[];function kt(t){return Pt[0]=t,function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var i=!0,o="";f=void 0;var r=t[0];null==r||void 0===r.raw?(i=!1,o+=p(n,e,r)):o+=r[0];for(var s=1;s<t.length;s++)o+=p(n,e,t[s]),i&&(o+=r[s]);m.lastIndex=0;for(var a,l="";null!==(a=m.exec(o));)l+="-"+a[1];var c=function(t){for(var e,n=0,i=0,o=t.length;o>=4;++i,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&t.charCodeAt(i+2))<<16;case 2:n^=(255&t.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:f}}(Pt)}},771(t,e,n){"use strict";var i=n(4994);e.e$=u,e.eM=function(t,e){const n=c(t),i=c(e);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)},e.a=h;var o=i(n(8944)),r=i(n(7535));function s(t,e=0,n=1){return(0,r.default)(t,e,n)}function a(t){if(t.type)return t;if("#"===t.charAt(0))return a(function(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&1===n[0].length&&(n=n.map(t=>t+t)),n?`rgb${4===n.length?"a":""}(${n.map((t,e)=>e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3).join(", ")})`:""}(t));const e=t.indexOf("("),n=t.substring(0,e);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,o.default)(9,t));let i,r=t.substring(e+1,t.length-1);if("color"===n){if(r=r.split(" "),i=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,o.default)(10,i))}else r=r.split(",");return r=r.map(t=>parseFloat(t)),{type:n,values:r,colorSpace:i}}function l(t){const{type:e,colorSpace:n}=t;let{values:i}=t;return-1!==e.indexOf("rgb")?i=i.map((t,e)=>e<3?parseInt(t,10):t):-1!==e.indexOf("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),i=-1!==e.indexOf("color")?`${n} ${i.join(" ")}`:`${i.join(", ")}`,`${e}(${i})`}function c(t){let e="hsl"===(t=a(t)).type||"hsla"===t.type?a(function(t){t=a(t);const{values:e}=t,n=e[0],i=e[1]/100,o=e[2]/100,r=i*Math.min(o,1-o),s=(t,e=(t+n/30)%12)=>o-r*Math.max(Math.min(e-3,9-e,1),-1);let c="rgb";const u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===t.type&&(c+="a",u.push(e[3])),l({type:c,values:u})}(t)).values:t.values;return e=e.map(e=>("color"!==t.type&&(e/=255),e<=.03928?e/12.92:((e+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function u(t,e){if(t=a(t),e=s(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb")||-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return l(t)}function h(t,e){if(t=a(t),e=s(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return l(t)}},6461(t,e,n){"use strict";var i=n(4994);e.Ay=function(t={}){const{themeId:e,defaultTheme:n=g,rootShouldForwardProp:i=f,slotShouldForwardProp:l=f}=t,u=t=>(0,c.default)((0,o.default)({},t,{theme:_((0,o.default)({},t,{defaultTheme:n,themeId:e}))}));return u.__mui_systemSx=!0,(t,c={})=>{(0,s.internal_processStyles)(t,t=>t.filter(t=>!(null!=t&&t.__mui_systemSx)));const{name:h,slot:p,skipVariantsResolver:m,skipSx:g,overridesResolver:b=v(y(p))}=c,w=(0,r.default)(c,d),A=h&&h.startsWith("Mui")||p?"components":"custom",P=void 0!==m?m:p&&"Root"!==p&&"root"!==p||!1,k=g||!1;let M=f;"Root"===p||"root"===p?M=i:p?M=l:function(t){return"string"==typeof t&&t.charCodeAt(0)>96}(t)&&(M=void 0);const C=(0,s.default)(t,(0,o.default)({shouldForwardProp:M,label:void 0},w)),I=t=>"function"==typeof t&&t.__emotion_real!==t||(0,a.isPlainObject)(t)?i=>{const r=_({theme:i.theme,defaultTheme:n,themeId:e});return x(t,(0,o.default)({},i,{theme:r}),r.modularCssLayers?A:void 0)}:t,T=(i,...r)=>{let s=I(i);const a=r?r.map(I):[];h&&b&&a.push(t=>{const i=_((0,o.default)({},t,{defaultTheme:n,themeId:e}));if(!i.components||!i.components[h]||!i.components[h].styleOverrides)return null;const r=i.components[h].styleOverrides,s={};return Object.entries(r).forEach(([e,n])=>{s[e]=x(n,(0,o.default)({},t,{theme:i}),i.modularCssLayers?"theme":void 0)}),b(t,s)}),h&&!P&&a.push(t=>{var i;const r=_((0,o.default)({},t,{defaultTheme:n,themeId:e}));return x({variants:null==r||null==(i=r.components)||null==(i=i[h])?void 0:i.variants},(0,o.default)({},t,{theme:r}),r.modularCssLayers?"theme":void 0)}),k||a.push(u);const l=a.length-r.length;if(Array.isArray(i)&&l>0){const t=new Array(l).fill("");s=[...i,...t],s.raw=[...i.raw,...t]}const c=C(s,...a);return t.muiName&&(c.muiName=t.muiName),c};return C.withConfig&&(T.withConfig=C.withConfig),T}};var o=i(n(4634)),r=i(n(4893)),s=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if("default"!==r&&Object.prototype.hasOwnProperty.call(t,r)){var s=o?Object.getOwnPropertyDescriptor(t,r):null;s&&(s.get||s.set)?Object.defineProperty(i,r,s):i[r]=t[r]}return i.default=t,n&&n.set(t,i),i}(n(2739)),a=n(4239),l=(i(n(7149)),i(n(7320)),i(n(3142))),c=i(n(3857));const u=["ownerState"],h=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}function f(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}function m(t,e){return e&&t&&"object"==typeof t&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}const g=(0,l.default)(),y=t=>t?t.charAt(0).toLowerCase()+t.slice(1):t;function _({defaultTheme:t,theme:e,themeId:n}){return i=e,0===Object.keys(i).length?t:e[n]||e;var i}function v(t){return t?(e,n)=>n[t]:null}function x(t,e,n){let{ownerState:i}=e,a=(0,r.default)(e,u);const l="function"==typeof t?t((0,o.default)({ownerState:i},a)):t;if(Array.isArray(l))return l.flatMap(t=>x(t,(0,o.default)({ownerState:i},a),n));if(l&&"object"==typeof l&&Array.isArray(l.variants)){const{variants:t=[]}=l;let e=(0,r.default)(l,h);return t.forEach(t=>{let r=!0;if("function"==typeof t.props?r=t.props((0,o.default)({ownerState:i},a,i)):Object.keys(t.props).forEach(e=>{(null==i?void 0:i[e])!==t.props[e]&&a[e]!==t.props[e]&&(r=!1)}),r){Array.isArray(e)||(e=[e]);const r="function"==typeof t.style?t.style((0,o.default)({ownerState:i},a,i)):t.style;e.push(n?m((0,s.internal_serializeStyles)(r),n):r)}}),e}return n?m((0,s.internal_serializeStyles)(l),n):l}},9452(t,e,n){"use strict";n.d(e,{EU:()=>s,NI:()=>r,vf:()=>a,zu:()=>i});const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${i[t]}px)`};function r(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const t=r.breakpoints||o;return e.reduce((i,o,r)=>(i[t.up(t.keys[r])]=n(e[r]),i),{})}if("object"==typeof e){const t=r.breakpoints||o;return Object.keys(e).reduce((o,r)=>{if(-1!==Object.keys(t.values||i).indexOf(r))o[t.up(r)]=n(e[r],r);else{const t=r;o[t]=e[t]}return o},{})}return n(e)}function s(t={}){var e;return(null==(e=t.keys)?void 0:e.reduce((e,n)=>(e[t.up(n)]={},e),{}))||{}}function a(t,e){return t.reduce((t,e)=>{const n=t[e];return(!n||0===Object.keys(n).length)&&delete t[e],t},e)}},8336(t,e,n){"use strict";function i(t,e){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const i=n.getColorSchemeSelector(t).replace(/(\[[^\]]+\])/,"*:where($1)");return{[i]:e}}return n.palette.mode===t?e:{}}n.d(e,{A:()=>i})},8094(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(8587),o=n(8168);const r=["values","unit","step"];function s(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=t,a=(0,i.A)(t,r),l=(t=>{const e=Object.keys(t).map(e=>({key:e,val:t[e]}))||[];return e.sort((t,e)=>t.val-e.val),e.reduce((t,e)=>(0,o.A)({},t,{[e.key]:e.val}),{})})(e),c=Object.keys(l);function u(t){return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n})`}function h(t){return`@media (max-width:${("number"==typeof e[t]?e[t]:t)-s/100}${n})`}function d(t,i){const o=c.indexOf(i);return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n}) and (max-width:${(-1!==o&&"number"==typeof e[c[o]]?e[c[o]]:i)-s/100}${n})`}return(0,o.A)({keys:c,values:l,up:u,down:h,between:d,only:function(t){return c.indexOf(t)+1<c.length?d(t,c[c.indexOf(t)+1]):u(t)},not:function(t){const e=c.indexOf(t);return 0===e?u(c[1]):e===c.length-1?h(c[e]):d(t,c[c.indexOf(t)+1]).replace("@media","@media not all and")},unit:n},a)}},8749(t,e,n){"use strict";n.d(e,{A:()=>p});var i=n(8168),o=n(8587),r=n(1317),s=n(8094);const a={borderRadius:4};var l=n(8248),c=n(3571),u=n(4188),h=n(8336);const d=["breakpoints","palette","spacing","shape"],p=function(t={},...e){const{breakpoints:n={},palette:p={},spacing:f,shape:m={}}=t,g=(0,o.A)(t,d),y=(0,s.A)(n),_=function(t=8){if(t.mui)return t;const e=(0,l.LX)({spacing:t}),n=(...t)=>(0===t.length?[1]:t).map(t=>{const n=e(t);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(f);let v=(0,r.A)({breakpoints:y,direction:"ltr",components:{},palette:(0,i.A)({mode:"light"},p),spacing:_,shape:(0,i.A)({},a,m)},g);return v.applyStyles=h.A,v=e.reduce((t,e)=>(0,r.A)(t,e),v),v.unstable_sxConfig=(0,i.A)({},u.A,null==g?void 0:g.unstable_sxConfig),v.unstable_sx=function(t){return(0,c.A)({sx:t,theme:this})},v}},3142(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>i.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>r.A});var i=n(8749),o=n(8094),r=n(8336)},4620(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(1317);const o=function(t,e){return e?(0,i.A)(t,e,{clone:!1}):t}},8248(t,e,n){"use strict";n.d(e,{LX:()=>f,MA:()=>p,_W:()=>m,Lc:()=>y,Ms:()=>_});var i=n(9452),o=n(6481),r=n(4620);const s={m:"margin",p:"padding"},a={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(){const t={};return e=>(void 0===t[e]&&(t[e]=(t=>{if(t.length>2){if(!l[t])return[t];t=l[t]}const[e,n]=t.split(""),i=s[e],o=a[n]||"";return Array.isArray(o)?o.map(t=>i+t):[i+o]})(e)),t[e])}(),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],h=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...h];function p(t,e,n,i){var r;const s=null!=(r=(0,o.Yn)(t,e,!1))?r:n;return"number"==typeof s?t=>"string"==typeof t?t:s*t:Array.isArray(s)?t=>"string"==typeof t?t:s[t]:"function"==typeof s?s:()=>{}}function f(t){return p(t,"spacing",8)}function m(t,e){if("string"==typeof e||null==e)return e;const n=t(Math.abs(e));return e>=0?n:"number"==typeof n?-n:`-${n}`}function g(t,e){const n=f(t.theme);return Object.keys(t).map(o=>function(t,e,n,o){if(-1===e.indexOf(n))return null;const r=function(t,e){return n=>t.reduce((t,i)=>(t[i]=m(e,n),t),{})}(c(n),o),s=t[n];return(0,i.NI)(t,s,r)}(t,e,o,n)).reduce(r.A,{})}function y(t){return g(t,u)}function _(t){return g(t,h)}function v(t){return g(t,d)}y.propTypes={},y.filterProps=u,_.propTypes={},_.filterProps=h,v.propTypes={},v.filterProps=d},6481(t,e,n){"use strict";n.d(e,{Ay:()=>a,BO:()=>s,Yn:()=>r});var i=n(3967),o=n(9452);function r(t,e,n=!0){if(!e||"string"!=typeof e)return null;if(t&&t.vars&&n){const n=`vars.${e}`.split(".").reduce((t,e)=>t&&t[e]?t[e]:null,t);if(null!=n)return n}return e.split(".").reduce((t,e)=>t&&null!=t[e]?t[e]:null,t)}function s(t,e,n,i=n){let o;return o="function"==typeof t?t(n):Array.isArray(t)?t[n]||i:r(t,n)||i,e&&(o=e(o,i,t)),o}const a=function(t){const{prop:e,cssProperty:n=t.prop,themeKey:a,transform:l}=t,c=t=>{if(null==t[e])return null;const c=t[e],u=r(t.theme,a)||{};return(0,o.NI)(t,c,t=>{let o=s(u,l,t);return t===o&&"string"==typeof t&&(o=s(u,l,`${e}${"default"===t?"":(0,i.A)(t)}`,t)),!1===n?o:{[n]:o}})};return c.propTypes={},c.filterProps=[e],c}},4188(t,e,n){"use strict";n.d(e,{A:()=>z});var i=n(8248),o=n(6481),r=n(4620);const s=function(...t){const e=t.reduce((t,e)=>(e.filterProps.forEach(n=>{t[n]=e}),t),{}),n=t=>Object.keys(t).reduce((n,i)=>e[i]?(0,r.A)(n,e[i](t)):n,{});return n.propTypes={},n.filterProps=t.reduce((t,e)=>t.concat(e.filterProps),[]),n};var a=n(9452);function l(t){return"number"!=typeof t?t:`${t}px solid`}function c(t,e){return(0,o.Ay)({prop:t,themeKey:"borders",transform:e})}const u=c("border",l),h=c("borderTop",l),d=c("borderRight",l),p=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),y=c("borderRightColor"),_=c("borderBottomColor"),v=c("borderLeftColor"),x=c("outline",l),b=c("outlineColor"),w=t=>{if(void 0!==t.borderRadius&&null!==t.borderRadius){const e=(0,i.MA)(t.theme,"shape.borderRadius",4,"borderRadius"),n=t=>({borderRadius:(0,i._W)(e,t)});return(0,a.NI)(t,t.borderRadius,n)}return null};w.propTypes={},w.filterProps=["borderRadius"],s(u,h,d,p,f,m,g,y,_,v,w,x,b);const A=t=>{if(void 0!==t.gap&&null!==t.gap){const e=(0,i.MA)(t.theme,"spacing",8,"gap"),n=t=>({gap:(0,i._W)(e,t)});return(0,a.NI)(t,t.gap,n)}return null};A.propTypes={},A.filterProps=["gap"];const P=t=>{if(void 0!==t.columnGap&&null!==t.columnGap){const e=(0,i.MA)(t.theme,"spacing",8,"columnGap"),n=t=>({columnGap:(0,i._W)(e,t)});return(0,a.NI)(t,t.columnGap,n)}return null};P.propTypes={},P.filterProps=["columnGap"];const k=t=>{if(void 0!==t.rowGap&&null!==t.rowGap){const e=(0,i.MA)(t.theme,"spacing",8,"rowGap"),n=t=>({rowGap:(0,i._W)(e,t)});return(0,a.NI)(t,t.rowGap,n)}return null};function M(t,e){return"grey"===e?e:t}function C(t){return t<=1&&0!==t?100*t+"%":t}k.propTypes={},k.filterProps=["rowGap"],s(A,P,k,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"})),s((0,o.Ay)({prop:"color",themeKey:"palette",transform:M}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:M}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:M}));const I=(0,o.Ay)({prop:"width",transform:C}),T=t=>{if(void 0!==t.maxWidth&&null!==t.maxWidth){const e=e=>{var n,i;const o=(null==(n=t.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[e])||a.zu[e];return o?"px"!==(null==(i=t.theme)||null==(i=i.breakpoints)?void 0:i.unit)?{maxWidth:`${o}${t.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:C(e)}};return(0,a.NI)(t,t.maxWidth,e)}return null};T.filterProps=["maxWidth"];const L=(0,o.Ay)({prop:"minWidth",transform:C}),S=(0,o.Ay)({prop:"height",transform:C}),O=(0,o.Ay)({prop:"maxHeight",transform:C}),j=(0,o.Ay)({prop:"minHeight",transform:C}),z=((0,o.Ay)({prop:"size",cssProperty:"width",transform:C}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:C}),s(I,T,L,S,O,j,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w},color:{themeKey:"palette",transform:M},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:M},backgroundColor:{themeKey:"palette",transform:M},p:{style:i.Ms},pt:{style:i.Ms},pr:{style:i.Ms},pb:{style:i.Ms},pl:{style:i.Ms},px:{style:i.Ms},py:{style:i.Ms},padding:{style:i.Ms},paddingTop:{style:i.Ms},paddingRight:{style:i.Ms},paddingBottom:{style:i.Ms},paddingLeft:{style:i.Ms},paddingX:{style:i.Ms},paddingY:{style:i.Ms},paddingInline:{style:i.Ms},paddingInlineStart:{style:i.Ms},paddingInlineEnd:{style:i.Ms},paddingBlock:{style:i.Ms},paddingBlockStart:{style:i.Ms},paddingBlockEnd:{style:i.Ms},m:{style:i.Lc},mt:{style:i.Lc},mr:{style:i.Lc},mb:{style:i.Lc},ml:{style:i.Lc},mx:{style:i.Lc},my:{style:i.Lc},margin:{style:i.Lc},marginTop:{style:i.Lc},marginRight:{style:i.Lc},marginBottom:{style:i.Lc},marginLeft:{style:i.Lc},marginX:{style:i.Lc},marginY:{style:i.Lc},marginInline:{style:i.Lc},marginInlineStart:{style:i.Lc},marginInlineEnd:{style:i.Lc},marginBlock:{style:i.Lc},marginBlockStart:{style:i.Lc},marginBlockEnd:{style:i.Lc},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:A},rowGap:{style:k},columnGap:{style:P},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:C},maxWidth:{style:T},minWidth:{transform:C},height:{transform:C},maxHeight:{transform:C},minHeight:{transform:C},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},9599(t,e,n){"use strict";n.d(e,{A:()=>l});var i=n(8168),o=n(8587),r=n(1317),s=n(4188);const a=["sx"];function l(t){const{sx:e}=t,n=(0,o.A)(t,a),{systemProps:l,otherProps:c}=(t=>{var e,n;const i={systemProps:{},otherProps:{}},o=null!=(e=null==t||null==(n=t.theme)?void 0:n.unstable_sxConfig)?e:s.A;return Object.keys(t).forEach(e=>{o[e]?i.systemProps[e]=t[e]:i.otherProps[e]=t[e]}),i})(n);let u;return u=Array.isArray(e)?[l,...e]:"function"==typeof e?(...t)=>{const n=e(...t);return(0,r.Q)(n)?(0,i.A)({},l,n):l}:(0,i.A)({},l,e),(0,i.A)({},c,{sx:u})}},3857(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>i.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>i.k,unstable_defaultSxConfig:()=>r.A});var i=n(3571),o=n(9599),r=n(4188)},3571(t,e,n){"use strict";n.d(e,{A:()=>u,k:()=>l});var i=n(3967),o=n(4620),r=n(6481),s=n(9452),a=n(4188);function l(){function t(t,e,n,o){const a={[t]:e,theme:n},l=o[t];if(!l)return{[t]:e};const{cssProperty:c=t,themeKey:u,transform:h,style:d}=l;if(null==e)return null;if("typography"===u&&"inherit"===e)return{[t]:e};const p=(0,r.Yn)(n,u)||{};return d?d(a):(0,s.NI)(a,e,e=>{let n=(0,r.BO)(p,h,e);return e===n&&"string"==typeof e&&(n=(0,r.BO)(p,h,`${t}${"default"===e?"":(0,i.A)(e)}`,e)),!1===c?n:{[c]:n}})}return function e(n){var i;const{sx:r,theme:l={},nested:c}=n||{};if(!r)return null;const u=null!=(i=l.unstable_sxConfig)?i:a.A;function h(n){let i=n;if("function"==typeof n)i=n(l);else if("object"!=typeof n)return n;if(!i)return null;const r=(0,s.EU)(l.breakpoints),a=Object.keys(r);let h=r;return Object.keys(i).forEach(n=>{const r="function"==typeof(a=i[n])?a(l):a;var a;if(null!=r)if("object"==typeof r)if(u[n])h=(0,o.A)(h,t(n,r,l,u));else{const t=(0,s.NI)({theme:l},r,t=>({[n]:t}));!function(...t){const e=t.reduce((t,e)=>t.concat(Object.keys(e)),[]),n=new Set(e);return t.every(t=>n.size===Object.keys(t).length)}(t,r)?h=(0,o.A)(h,t):h[n]=e({sx:r,theme:l,nested:!0})}else h=(0,o.A)(h,t(n,r,l,u))}),!c&&l.modularCssLayers?{"@layer sx":(0,s.vf)(a,h)}:(0,s.vf)(a,h)}return Array.isArray(r)?r.map(h):h(r)}}const c=l();c.filterProps=["sx"];const u=c},2923(t,e,n){"use strict";e.A=void 0;var i=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=r(e);if(n&&n.has(t))return n.get(t);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var a=o?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(i,s,a):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}(n(690)),o=n(2739);function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}e.A=function(t=null){const e=i.useContext(o.ThemeContext);return e&&(n=e,0!==Object.keys(n).length)?e:t;var n}},9071(t,e,n){"use strict";n.d(e,{A:()=>o});const i=t=>t,o=(()=>{let t=i;return{configure(e){t=e},generate:e=>t(e),reset(){t=i}}})()},3967(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(9453);function o(t){if("string"!=typeof t)throw new Error((0,i.A)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},7149(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>i.A});var i=n(3967)},7535(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>i});const i=function(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}},5659(t,e,n){"use strict";function i(t,e,n=void 0){const i={};return Object.keys(t).forEach(o=>{i[o]=t[o].reduce((t,i)=>{if(i){const o=e(i);""!==o&&t.push(o),n&&n[i]&&t.push(n[i])}return t},[]).join(" ")}),i}n.d(e,{A:()=>i})},1317(t,e,n){"use strict";n.d(e,{A:()=>a,Q:()=>r});var i=n(8168),o=n(690);function r(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}function s(t){if(o.isValidElement(t)||!r(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=s(t[n])}),e}function a(t,e,n={clone:!0}){const l=n.clone?(0,i.A)({},t):t;return r(t)&&r(e)&&Object.keys(e).forEach(i=>{o.isValidElement(e[i])?l[i]=e[i]:r(e[i])&&Object.prototype.hasOwnProperty.call(t,i)&&r(t[i])?l[i]=a(t[i],e[i],n):n.clone?l[i]=r(e[i])?s(e[i]):e[i]:l[i]=e[i]}),l}},4239(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>i.A,isPlainObject:()=>i.Q});var i=n(1317)},9453(t,e,n){"use strict";function i(t){let e="https://mui.com/production-error/?code="+t;for(let t=1;t<arguments.length;t+=1)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified MUI error #"+t+"; visit "+e+" for the full message."}n.d(e,{A:()=>i})},8944(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>i.A});var i=n(9453)},1609(t,e,n){"use strict";n.d(e,{Ay:()=>r});var i=n(9071);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function r(t,e,n="Mui"){const r=o[e];return r?`${n}-${r}`:`${i.A.generate(t)}-${e}`}},8413(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(1609);function o(t,e,n="Mui"){const o={};return e.forEach(e=>{o[e]=(0,i.Ay)(t,e,n)}),o}},7320(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>l,getFunctionName:()=>r});var i=n(4405);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function r(t){const e=`${t}`.match(o);return e&&e[1]||""}function s(t,e=""){return t.displayName||t.name||r(t)||e}function a(t,e,n){const i=s(e);return t.displayName||(""!==i?`${n}(${i})`:n)}function l(t){if(null!=t){if("string"==typeof t)return t;if("function"==typeof t)return s(t,"Component");if("object"==typeof t)switch(t.$$typeof){case i.vM:return a(t,t.render,"ForwardRef");case i.lD:return a(t,t.type,"memo");default:return}}}},2325(t,e,n){"use strict";function i(t){return t&&t.ownerDocument||document}n.d(e,{A:()=>i})},4877(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(2325);function o(t){return(0,i.A)(t).defaultView||window}},7379(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(8168);function o(t,e){const n=(0,i.A)({},e);return Object.keys(t).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=(0,i.A)({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const s=t[r]||{},a=e[r];n[r]={},a&&Object.keys(a)?s&&Object.keys(s)?(n[r]=(0,i.A)({},a),Object.keys(s).forEach(t=>{n[r][t]=o(s[t],a[t])})):n[r]=a:n[r]=s}else void 0===n[r]&&(n[r]=t[r])}),n}},7365(t,e,n){"use strict";function i(t,e){"function"==typeof t?t(e):t&&(t.current=e)}n.d(e,{A:()=>i})},2501(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(690);function o({controlled:t,default:e,name:n,state:o="value"}){const{current:r}=i.useRef(void 0!==t),[s,a]=i.useState(e);return[r?t:s,i.useCallback(t=>{r||a(t)},[])]}},1529(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(690);const o="undefined"!=typeof window?i.useLayoutEffect:i.useEffect},1523(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(690),o=n(7365);function r(...t){return i.useMemo(()=>t.every(t=>null==t)?null:e=>{t.forEach(t=>{(0,o.A)(t,e)})},t)}},4661(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(690);let o=0;const r=i["useId".toString()];function s(t){if(void 0!==r){const e=r();return null!=t?t:e}return function(t){const[e,n]=i.useState(t),r=t||e;return i.useEffect(()=>{null==e&&(o+=1,n(`mui-${o}`))},[e]),r}(t)}},1081(t,e,n){"use strict";n.d(e,{A:()=>g});var i=n(1601),o=n.n(i),r=n(6314),s=n.n(r),a=n(4417),l=n.n(a),c=new URL(n(3982),n.b),u=new URL(n(6426),n.b),h=new URL(n(9927),n.b),d=s()(o()),p=l()(c),f=l()(u),m=l()(h);d.push([t.id,`/* required styles */\n\n.leaflet-pane,\n.leaflet-tile,\n.leaflet-marker-icon,\n.leaflet-marker-shadow,\n.leaflet-tile-container,\n.leaflet-pane > svg,\n.leaflet-pane > canvas,\n.leaflet-zoom-box,\n.leaflet-image-layer,\n.leaflet-layer {\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\t}\n.leaflet-container {\n\toverflow: hidden;\n\t}\n.leaflet-tile,\n.leaflet-marker-icon,\n.leaflet-marker-shadow {\n\t-webkit-user-select: none;\n\t -moz-user-select: none;\n\t user-select: none;\n\t -webkit-user-drag: none;\n\t}\n/* Prevents IE11 from highlighting tiles in blue */\n.leaflet-tile::selection {\n\tbackground: transparent;\n}\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\n.leaflet-safari .leaflet-tile {\n\timage-rendering: -webkit-optimize-contrast;\n\t}\n/* hack that prevents hw layers "stretching" when loading new tiles */\n.leaflet-safari .leaflet-tile-container {\n\twidth: 1600px;\n\theight: 1600px;\n\t-webkit-transform-origin: 0 0;\n\t}\n.leaflet-marker-icon,\n.leaflet-marker-shadow {\n\tdisplay: block;\n\t}\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\n.leaflet-container .leaflet-overlay-pane svg {\n\tmax-width: none !important;\n\tmax-height: none !important;\n\t}\n.leaflet-container .leaflet-marker-pane img,\n.leaflet-container .leaflet-shadow-pane img,\n.leaflet-container .leaflet-tile-pane img,\n.leaflet-container img.leaflet-image-layer,\n.leaflet-container .leaflet-tile {\n\tmax-width: none !important;\n\tmax-height: none !important;\n\twidth: auto;\n\tpadding: 0;\n\t}\n\n.leaflet-container img.leaflet-tile {\n\t/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */\n\tmix-blend-mode: plus-lighter;\n}\n\n.leaflet-container.leaflet-touch-zoom {\n\t-ms-touch-action: pan-x pan-y;\n\ttouch-action: pan-x pan-y;\n\t}\n.leaflet-container.leaflet-touch-drag {\n\t-ms-touch-action: pinch-zoom;\n\t/* Fallback for FF which doesn't support pinch-zoom */\n\ttouch-action: none;\n\ttouch-action: pinch-zoom;\n}\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\n\t-ms-touch-action: none;\n\ttouch-action: none;\n}\n.leaflet-container {\n\t-webkit-tap-highlight-color: transparent;\n}\n.leaflet-container a {\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\n}\n.leaflet-tile {\n\tfilter: inherit;\n\tvisibility: hidden;\n\t}\n.leaflet-tile-loaded {\n\tvisibility: inherit;\n\t}\n.leaflet-zoom-box {\n\twidth: 0;\n\theight: 0;\n\t-moz-box-sizing: border-box;\n\t box-sizing: border-box;\n\tz-index: 800;\n\t}\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\n.leaflet-overlay-pane svg {\n\t-moz-user-select: none;\n\t}\n\n.leaflet-pane { z-index: 400; }\n\n.leaflet-tile-pane { z-index: 200; }\n.leaflet-overlay-pane { z-index: 400; }\n.leaflet-shadow-pane { z-index: 500; }\n.leaflet-marker-pane { z-index: 600; }\n.leaflet-tooltip-pane { z-index: 650; }\n.leaflet-popup-pane { z-index: 700; }\n\n.leaflet-map-pane canvas { z-index: 100; }\n.leaflet-map-pane svg { z-index: 200; }\n\n.leaflet-vml-shape {\n\twidth: 1px;\n\theight: 1px;\n\t}\n.lvml {\n\tbehavior: url(#default#VML);\n\tdisplay: inline-block;\n\tposition: absolute;\n\t}\n\n\n/* control positioning */\n\n.leaflet-control {\n\tposition: relative;\n\tz-index: 800;\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\n\tpointer-events: auto;\n\t}\n.leaflet-top,\n.leaflet-bottom {\n\tposition: absolute;\n\tz-index: 1000;\n\tpointer-events: none;\n\t}\n.leaflet-top {\n\ttop: 0;\n\t}\n.leaflet-right {\n\tright: 0;\n\t}\n.leaflet-bottom {\n\tbottom: 0;\n\t}\n.leaflet-left {\n\tleft: 0;\n\t}\n.leaflet-control {\n\tfloat: left;\n\tclear: both;\n\t}\n.leaflet-right .leaflet-control {\n\tfloat: right;\n\t}\n.leaflet-top .leaflet-control {\n\tmargin-top: 10px;\n\t}\n.leaflet-bottom .leaflet-control {\n\tmargin-bottom: 10px;\n\t}\n.leaflet-left .leaflet-control {\n\tmargin-left: 10px;\n\t}\n.leaflet-right .leaflet-control {\n\tmargin-right: 10px;\n\t}\n\n\n/* zoom and fade animations */\n\n.leaflet-fade-anim .leaflet-popup {\n\topacity: 0;\n\t-webkit-transition: opacity 0.2s linear;\n\t -moz-transition: opacity 0.2s linear;\n\t transition: opacity 0.2s linear;\n\t}\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\n\topacity: 1;\n\t}\n.leaflet-zoom-animated {\n\t-webkit-transform-origin: 0 0;\n\t -ms-transform-origin: 0 0;\n\t transform-origin: 0 0;\n\t}\nsvg.leaflet-zoom-animated {\n\twill-change: transform;\n}\n\n.leaflet-zoom-anim .leaflet-zoom-animated {\n\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\n\t -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\n\t transition: transform 0.25s cubic-bezier(0,0,0.25,1);\n\t}\n.leaflet-zoom-anim .leaflet-tile,\n.leaflet-pan-anim .leaflet-tile {\n\t-webkit-transition: none;\n\t -moz-transition: none;\n\t transition: none;\n\t}\n\n.leaflet-zoom-anim .leaflet-zoom-hide {\n\tvisibility: hidden;\n\t}\n\n\n/* cursors */\n\n.leaflet-interactive {\n\tcursor: pointer;\n\t}\n.leaflet-grab {\n\tcursor: -webkit-grab;\n\tcursor: -moz-grab;\n\tcursor: grab;\n\t}\n.leaflet-crosshair,\n.leaflet-crosshair .leaflet-interactive {\n\tcursor: crosshair;\n\t}\n.leaflet-popup-pane,\n.leaflet-control {\n\tcursor: auto;\n\t}\n.leaflet-dragging .leaflet-grab,\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\n.leaflet-dragging .leaflet-marker-draggable {\n\tcursor: move;\n\tcursor: -webkit-grabbing;\n\tcursor: -moz-grabbing;\n\tcursor: grabbing;\n\t}\n\n/* marker & overlays interactivity */\n.leaflet-marker-icon,\n.leaflet-marker-shadow,\n.leaflet-image-layer,\n.leaflet-pane > svg path,\n.leaflet-tile-container {\n\tpointer-events: none;\n\t}\n\n.leaflet-marker-icon.leaflet-interactive,\n.leaflet-image-layer.leaflet-interactive,\n.leaflet-pane > svg path.leaflet-interactive,\nsvg.leaflet-image-layer.leaflet-interactive path {\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\n\tpointer-events: auto;\n\t}\n\n/* visual tweaks */\n\n.leaflet-container {\n\tbackground: #ddd;\n\toutline-offset: 1px;\n\t}\n.leaflet-container a {\n\tcolor: #0078A8;\n\t}\n.leaflet-zoom-box {\n\tborder: 2px dotted #38f;\n\tbackground: rgba(255,255,255,0.5);\n\t}\n\n\n/* general typography */\n.leaflet-container {\n\tfont-family: "Helvetica Neue", Arial, Helvetica, sans-serif;\n\tfont-size: 12px;\n\tfont-size: 0.75rem;\n\tline-height: 1.5;\n\t}\n\n\n/* general toolbar styles */\n\n.leaflet-bar {\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\n\tborder-radius: 4px;\n\t}\n.leaflet-bar a {\n\tbackground-color: #fff;\n\tborder-bottom: 1px solid #ccc;\n\twidth: 26px;\n\theight: 26px;\n\tline-height: 26px;\n\tdisplay: block;\n\ttext-align: center;\n\ttext-decoration: none;\n\tcolor: black;\n\t}\n.leaflet-bar a,\n.leaflet-control-layers-toggle {\n\tbackground-position: 50% 50%;\n\tbackground-repeat: no-repeat;\n\tdisplay: block;\n\t}\n.leaflet-bar a:hover,\n.leaflet-bar a:focus {\n\tbackground-color: #f4f4f4;\n\t}\n.leaflet-bar a:first-child {\n\tborder-top-left-radius: 4px;\n\tborder-top-right-radius: 4px;\n\t}\n.leaflet-bar a:last-child {\n\tborder-bottom-left-radius: 4px;\n\tborder-bottom-right-radius: 4px;\n\tborder-bottom: none;\n\t}\n.leaflet-bar a.leaflet-disabled {\n\tcursor: default;\n\tbackground-color: #f4f4f4;\n\tcolor: #bbb;\n\t}\n\n.leaflet-touch .leaflet-bar a {\n\twidth: 30px;\n\theight: 30px;\n\tline-height: 30px;\n\t}\n.leaflet-touch .leaflet-bar a:first-child {\n\tborder-top-left-radius: 2px;\n\tborder-top-right-radius: 2px;\n\t}\n.leaflet-touch .leaflet-bar a:last-child {\n\tborder-bottom-left-radius: 2px;\n\tborder-bottom-right-radius: 2px;\n\t}\n\n/* zoom control */\n\n.leaflet-control-zoom-in,\n.leaflet-control-zoom-out {\n\tfont: bold 18px 'Lucida Console', Monaco, monospace;\n\ttext-indent: 1px;\n\t}\n\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\n\tfont-size: 22px;\n\t}\n\n\n/* layers control */\n\n.leaflet-control-layers {\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\n\tbackground: #fff;\n\tborder-radius: 5px;\n\t}\n.leaflet-control-layers-toggle {\n\tbackground-image: url(${p});\n\twidth: 36px;\n\theight: 36px;\n\t}\n.leaflet-retina .leaflet-control-layers-toggle {\n\tbackground-image: url(${f});\n\tbackground-size: 26px 26px;\n\t}\n.leaflet-touch .leaflet-control-layers-toggle {\n\twidth: 44px;\n\theight: 44px;\n\t}\n.leaflet-control-layers .leaflet-control-layers-list,\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\n\tdisplay: none;\n\t}\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\n\tdisplay: block;\n\tposition: relative;\n\t}\n.leaflet-control-layers-expanded {\n\tpadding: 6px 10px 6px 6px;\n\tcolor: #333;\n\tbackground: #fff;\n\t}\n.leaflet-control-layers-scrollbar {\n\toverflow-y: scroll;\n\toverflow-x: hidden;\n\tpadding-right: 5px;\n\t}\n.leaflet-control-layers-selector {\n\tmargin-top: 2px;\n\tposition: relative;\n\ttop: 1px;\n\t}\n.leaflet-control-layers label {\n\tdisplay: block;\n\tfont-size: 13px;\n\tfont-size: 1.08333em;\n\t}\n.leaflet-control-layers-separator {\n\theight: 0;\n\tborder-top: 1px solid #ddd;\n\tmargin: 5px -10px 5px -6px;\n\t}\n\n/* Default icon URLs */\n.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */\n\tbackground-image: url(${m});\n\t}\n\n\n/* attribution and scale controls */\n\n.leaflet-container .leaflet-control-attribution {\n\tbackground: #fff;\n\tbackground: rgba(255, 255, 255, 0.8);\n\tmargin: 0;\n\t}\n.leaflet-control-attribution,\n.leaflet-control-scale-line {\n\tpadding: 0 5px;\n\tcolor: #333;\n\tline-height: 1.4;\n\t}\n.leaflet-control-attribution a {\n\ttext-decoration: none;\n\t}\n.leaflet-control-attribution a:hover,\n.leaflet-control-attribution a:focus {\n\ttext-decoration: underline;\n\t}\n.leaflet-attribution-flag {\n\tdisplay: inline !important;\n\tvertical-align: baseline !important;\n\twidth: 1em;\n\theight: 0.6669em;\n\t}\n.leaflet-left .leaflet-control-scale {\n\tmargin-left: 5px;\n\t}\n.leaflet-bottom .leaflet-control-scale {\n\tmargin-bottom: 5px;\n\t}\n.leaflet-control-scale-line {\n\tborder: 2px solid #777;\n\tborder-top: none;\n\tline-height: 1.1;\n\tpadding: 2px 5px 1px;\n\twhite-space: nowrap;\n\t-moz-box-sizing: border-box;\n\t box-sizing: border-box;\n\tbackground: rgba(255, 255, 255, 0.8);\n\ttext-shadow: 1px 1px #fff;\n\t}\n.leaflet-control-scale-line:not(:first-child) {\n\tborder-top: 2px solid #777;\n\tborder-bottom: none;\n\tmargin-top: -2px;\n\t}\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\n\tborder-bottom: 2px solid #777;\n\t}\n\n.leaflet-touch .leaflet-control-attribution,\n.leaflet-touch .leaflet-control-layers,\n.leaflet-touch .leaflet-bar {\n\tbox-shadow: none;\n\t}\n.leaflet-touch .leaflet-control-layers,\n.leaflet-touch .leaflet-bar {\n\tborder: 2px solid rgba(0,0,0,0.2);\n\tbackground-clip: padding-box;\n\t}\n\n\n/* popup */\n\n.leaflet-popup {\n\tposition: absolute;\n\ttext-align: center;\n\tmargin-bottom: 20px;\n\t}\n.leaflet-popup-content-wrapper {\n\tpadding: 1px;\n\ttext-align: left;\n\tborder-radius: 12px;\n\t}\n.leaflet-popup-content {\n\tmargin: 13px 24px 13px 20px;\n\tline-height: 1.3;\n\tfont-size: 13px;\n\tfont-size: 1.08333em;\n\tmin-height: 1px;\n\t}\n.leaflet-popup-content p {\n\tmargin: 17px 0;\n\tmargin: 1.3em 0;\n\t}\n.leaflet-popup-tip-container {\n\twidth: 40px;\n\theight: 20px;\n\tposition: absolute;\n\tleft: 50%;\n\tmargin-top: -1px;\n\tmargin-left: -20px;\n\toverflow: hidden;\n\tpointer-events: none;\n\t}\n.leaflet-popup-tip {\n\twidth: 17px;\n\theight: 17px;\n\tpadding: 1px;\n\n\tmargin: -10px auto 0;\n\tpointer-events: auto;\n\n\t-webkit-transform: rotate(45deg);\n\t -moz-transform: rotate(45deg);\n\t -ms-transform: rotate(45deg);\n\t transform: rotate(45deg);\n\t}\n.leaflet-popup-content-wrapper,\n.leaflet-popup-tip {\n\tbackground: white;\n\tcolor: #333;\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\n\t}\n.leaflet-container a.leaflet-popup-close-button {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tborder: none;\n\ttext-align: center;\n\twidth: 24px;\n\theight: 24px;\n\tfont: 16px/24px Tahoma, Verdana, sans-serif;\n\tcolor: #757575;\n\ttext-decoration: none;\n\tbackground: transparent;\n\t}\n.leaflet-container a.leaflet-popup-close-button:hover,\n.leaflet-container a.leaflet-popup-close-button:focus {\n\tcolor: #585858;\n\t}\n.leaflet-popup-scrolled {\n\toverflow: auto;\n\t}\n\n.leaflet-oldie .leaflet-popup-content-wrapper {\n\t-ms-zoom: 1;\n\t}\n.leaflet-oldie .leaflet-popup-tip {\n\twidth: 24px;\n\tmargin: 0 auto;\n\n\t-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\n\t}\n\n.leaflet-oldie .leaflet-control-zoom,\n.leaflet-oldie .leaflet-control-layers,\n.leaflet-oldie .leaflet-popup-content-wrapper,\n.leaflet-oldie .leaflet-popup-tip {\n\tborder: 1px solid #999;\n\t}\n\n\n/* div icon */\n\n.leaflet-div-icon {\n\tbackground: #fff;\n\tborder: 1px solid #666;\n\t}\n\n\n/* Tooltip */\n/* Base styles for the element that has a tooltip */\n.leaflet-tooltip {\n\tposition: absolute;\n\tpadding: 6px;\n\tbackground-color: #fff;\n\tborder: 1px solid #fff;\n\tborder-radius: 3px;\n\tcolor: #222;\n\twhite-space: nowrap;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n\tpointer-events: none;\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\n\t}\n.leaflet-tooltip.leaflet-interactive {\n\tcursor: pointer;\n\tpointer-events: auto;\n\t}\n.leaflet-tooltip-top:before,\n.leaflet-tooltip-bottom:before,\n.leaflet-tooltip-left:before,\n.leaflet-tooltip-right:before {\n\tposition: absolute;\n\tpointer-events: none;\n\tborder: 6px solid transparent;\n\tbackground: transparent;\n\tcontent: "";\n\t}\n\n/* Directions */\n\n.leaflet-tooltip-bottom {\n\tmargin-top: 6px;\n}\n.leaflet-tooltip-top {\n\tmargin-top: -6px;\n}\n.leaflet-tooltip-bottom:before,\n.leaflet-tooltip-top:before {\n\tleft: 50%;\n\tmargin-left: -6px;\n\t}\n.leaflet-tooltip-top:before {\n\tbottom: 0;\n\tmargin-bottom: -12px;\n\tborder-top-color: #fff;\n\t}\n.leaflet-tooltip-bottom:before {\n\ttop: 0;\n\tmargin-top: -12px;\n\tmargin-left: -6px;\n\tborder-bottom-color: #fff;\n\t}\n.leaflet-tooltip-left {\n\tmargin-left: -6px;\n}\n.leaflet-tooltip-right {\n\tmargin-left: 6px;\n}\n.leaflet-tooltip-left:before,\n.leaflet-tooltip-right:before {\n\ttop: 50%;\n\tmargin-top: -6px;\n\t}\n.leaflet-tooltip-left:before {\n\tright: 0;\n\tmargin-right: -12px;\n\tborder-left-color: #fff;\n\t}\n.leaflet-tooltip-right:before {\n\tleft: 0;\n\tmargin-left: -12px;\n\tborder-right-color: #fff;\n\t}\n\n/* Printing */\n\n@media print {\n\t/* Prevent printers from removing background-images of controls. */\n\t.leaflet-control {\n\t\t-webkit-print-color-adjust: exact;\n\t\tprint-color-adjust: exact;\n\t\t}\n\t}\n`,""]);const g=d},6314(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,i,o,r){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);i&&s[u[0]]||(void 0!==r&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),e.push(u))}},e}},4417(t){"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},1601(t){"use strict";t.exports=function(t){return t[1]}},3481(t,e){!function(t){"use strict";function e(t){var e,n,i,o;for(n=1,i=arguments.length;n<i;n++)for(e in o=arguments[n])t[e]=o[e];return t}var n=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function i(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}var o=0;function r(t){return"_leaflet_id"in t||(t._leaflet_id=++o),t._leaflet_id}function s(t,e,n){var i,o,r,s;return s=function(){i=!1,o&&(r.apply(n,o),o=!1)},r=function(){i?o=arguments:(t.apply(n,arguments),setTimeout(s,e),i=!0)},r}function a(t,e,n){var i=e[1],o=e[0],r=i-o;return t===i&&n?t:((t-o)%r+r)%r+o}function l(){return!1}function c(t,e){if(!1===e)return t;var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function h(t){return u(t).split(/\s+/)}function d(t,e){for(var i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),e)t.options[i]=e[i];return t.options}function p(t,e,n){var i=[];for(var o in t)i.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")}var f=/\{ *([\w_ -]+) *\}/g;function m(t,e){return t.replace(f,function(t,n){var i=e[n];if(void 0===i)throw new Error("No value provided for variable "+t);return"function"==typeof i&&(i=i(e)),i})}var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function y(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var _="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function v(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function b(t){var e=+new Date,n=Math.max(0,16-(e-x));return x=e+n,window.setTimeout(t,n)}var w=window.requestAnimationFrame||v("RequestAnimationFrame")||b,A=window.cancelAnimationFrame||v("CancelAnimationFrame")||v("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function P(t,e,n){if(!n||w!==b)return w.call(window,i(t,e));t.call(e)}function k(t){t&&A.call(window,t)}var M={__proto__:null,extend:e,create:n,bind:i,get lastId(){return o},stamp:r,throttle:s,wrapNum:a,falseFn:l,formatNum:c,trim:u,splitWords:h,setOptions:d,getParamString:p,template:m,isArray:g,indexOf:y,emptyImageUrl:_,requestFn:w,cancelFn:A,requestAnimFrame:P,cancelAnimFrame:k};function C(){}C.extend=function(t){var i=function(){d(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=i.__super__=this.prototype,r=n(o);for(var s in r.constructor=i,i.prototype=r,this)Object.prototype.hasOwnProperty.call(this,s)&&"prototype"!==s&&"__super__"!==s&&(i[s]=this[s]);return t.statics&&e(i,t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=g(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),e.apply(null,[r].concat(t.includes))),e(r,t),delete r.statics,delete r.includes,r.options&&(r.options=o.options?n(o.options):{},e(r.options,t.options)),r._initHooks=[],r.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=r._initHooks.length;t<e;t++)r._initHooks[t].call(this)}},i},C.include=function(t){var n=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=n,this.mergeOptions(t.options)),this},C.mergeOptions=function(t){return e(this.prototype.options,t),this},C.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var I={on:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e);else for(var o=0,r=(t=h(t)).length;o<r;o++)this._on(t[o],e,n);return this},off:function(t,e,n){if(arguments.length)if("object"==typeof t)for(var i in t)this._off(i,t[i],e);else{t=h(t);for(var o=1===arguments.length,r=0,s=t.length;r<s;r++)o?this._off(t[r]):this._off(t[r],e,n)}else delete this._events;return this},_on:function(t,e,n,i){if("function"==typeof e){if(!1===this._listens(t,e,n)){n===this&&(n=void 0);var o={fn:e,ctx:n};i&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,n){var i,o,r;if(this._events&&(i=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var s=this._listens(t,e,n);if(!1!==s){var a=i[s];this._firingCount&&(a.fn=l,this._events[t]=i=i.slice()),i.splice(s,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(o=0,r=i.length;o<r;o++)i[o].fn=l;delete this._events[t]}},fire:function(t,n,i){if(!this.listens(t,i))return this;var o=e({},n,{type:t,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var s=0,a=r.length;s<a;s++){var l=r[s],c=l.fn;l.once&&this.off(t,c,l.ctx),c.call(l.ctx||this,o)}this._firingCount--}}return i&&this._propagateEvent(o),this},listens:function(t,e,n,i){"string"!=typeof t&&console.warn('"string" type argument expected');var o=e;"function"!=typeof e&&(i=!!e,o=void 0,n=void 0);var r=this._events&&this._events[t];if(r&&r.length&&!1!==this._listens(t,o,n))return!0;if(i)for(var s in this._eventParents)if(this._eventParents[s].listens(t,e,n,i))return!0;return!1},_listens:function(t,e,n){if(!this._events)return!1;var i=this._events[t]||[];if(!e)return!!i.length;n===this&&(n=void 0);for(var o=0,r=i.length;o<r;o++)if(i[o].fn===e&&i[o].ctx===n)return o;return!1},once:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e,!0);else for(var o=0,r=(t=h(t)).length;o<r;o++)this._on(t[o],e,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[r(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[r(t)],this},_propagateEvent:function(t){for(var n in this._eventParents)this._eventParents[n].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};I.addEventListener=I.on,I.removeEventListener=I.clearAllEventListeners=I.off,I.addOneTimeEventListener=I.once,I.fireEvent=I.fire,I.hasEventListeners=I.listens;var T=C.extend(I);function S(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var O=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function j(t,e,n){return t instanceof S?t:g(t)?new S(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new S(t.x,t.y):new S(t,e,n)}function z(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function E(t,e){return!t||t instanceof z?t:new z(t,e)}function R(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function N(t,e){return t instanceof R?t:new R(t,e)}function $(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function B(t,e,n){return t instanceof $?t:g(t)&&"object"!=typeof t[0]?3===t.length?new $(t[0],t[1],t[2]):2===t.length?new $(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new $(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new $(t,e,n)}S.prototype={clone:function(){return new S(this.x,this.y)},add:function(t){return this.clone()._add(j(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(j(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new S(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new S(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=O(this.x),this.y=O(this.y),this},distanceTo:function(t){var e=(t=j(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=j(t)).x===this.x&&t.y===this.y},contains:function(t){return t=j(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},z.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof S||"number"==typeof t[0]||"x"in t)e=n=j(t);else if(e=(t=E(t)).min,n=t.max,!e||!n)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone()),this},getCenter:function(t){return j((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return j(this.min.x,this.max.y)},getTopRight:function(){return j(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof S?j(t):E(t))instanceof z?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=E(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>=e.x&&i.x<=n.x,s=o.y>=e.y&&i.y<=n.y;return r&&s},overlaps:function(t){t=E(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>e.x&&i.x<n.x,s=o.y>e.y&&i.y<n.y;return r&&s},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,n=this.max,i=Math.abs(e.x-n.x)*t,o=Math.abs(e.y-n.y)*t;return E(j(e.x-i,e.y-o),j(n.x+i,n.y+o))},equals:function(t){return!!t&&(t=E(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},R.prototype={extend:function(t){var e,n,i=this._southWest,o=this._northEast;if(t instanceof $)e=t,n=t;else{if(!(t instanceof R))return t?this.extend(B(t)||N(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return i||o?(i.lat=Math.min(e.lat,i.lat),i.lng=Math.min(e.lng,i.lng),o.lat=Math.max(n.lat,o.lat),o.lng=Math.max(n.lng,o.lng)):(this._southWest=new $(e.lat,e.lng),this._northEast=new $(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,o=Math.abs(e.lng-n.lng)*t;return new R(new $(e.lat-i,e.lng-o),new $(n.lat+i,n.lng+o))},getCenter:function(){return new $((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new $(this.getNorth(),this.getWest())},getSouthEast:function(){return new $(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof $||"lat"in t?B(t):N(t);var e,n,i=this._southWest,o=this._northEast;return t instanceof R?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=o.lat&&e.lng>=i.lng&&n.lng<=o.lng},intersects:function(t){t=N(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&i.lat<=n.lat,s=o.lng>=e.lng&&i.lng<=n.lng;return r&&s},overlaps:function(t){t=N(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&i.lat<n.lat,s=o.lng>e.lng&&i.lng<n.lng;return r&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=N(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},$.prototype={equals:function(t,e){return!!t&&(t=B(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+c(this.lat,t)+", "+c(this.lng,t)+")"},distanceTo:function(t){return Z.distance(this,B(t))},wrap:function(){return Z.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return N([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new $(this.lat,this.lng,this.alt)}};var F,D={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new z(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?a(t.lng,this.wrapLng,!0):t.lng;return new $(this.wrapLat?a(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),i=e.lat-n.lat,o=e.lng-n.lng;if(0===i&&0===o)return t;var r=t.getSouthWest(),s=t.getNorthEast();return new R(new $(r.lat-i,r.lng-o),new $(s.lat-i,s.lng-o))}},Z=e({},D,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,o=e.lat*n,r=Math.sin((e.lat-t.lat)*n/2),s=Math.sin((e.lng-t.lng)*n/2),a=r*r+Math.cos(i)*Math.cos(o)*s*s,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}}),H=6378137,U={R:H,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),o=Math.sin(i*e);return new S(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new $((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(F=H*Math.PI,new z([-F,-F],[F,F]))};function W(t,e,n,i){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=i}function V(t,e,n,i){return new W(t,e,n,i)}W.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new S((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var q=e({},Z,{code:"EPSG:3857",projection:U,transformation:function(){var t=.5/(Math.PI*U.R);return V(t,.5,-t,.5)}()}),G=e({},q,{code:"EPSG:900913"});function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Y(t,e){var n,i,o,r,s,a,l="";for(n=0,o=t.length;n<o;n++){for(i=0,r=(s=t[n]).length;i<r;i++)l+=(i?"L":"M")+(a=s[i]).x+" "+a.y;l+=e?zt.svg?"z":"x":""}return l||"M0 0"}var X,Q=document.documentElement.style,J="ActiveXObject"in window,tt=J&&!document.addEventListener,et="msLaunchUri"in navigator&&!("documentMode"in document),nt=jt("webkit"),it=jt("android"),ot=jt("android 2")||jt("android 3"),rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=it&&jt("Google")&&rt<537&&!("AudioNode"in window),at=!!window.opera,lt=!et&&jt("chrome"),ct=jt("gecko")&&!nt&&!at&&!J,ut=!lt&&jt("safari"),ht=jt("phantom"),dt="OTransition"in Q,pt=0===navigator.platform.indexOf("Win"),ft=J&&"transition"in Q,mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,gt="MozPerspective"in Q,yt=!window.L_DISABLE_3D&&(ft||mt||gt)&&!dt&&!ht,_t="undefined"!=typeof orientation||jt("mobile"),vt=_t&&nt,xt=_t&&mt,bt=!window.PointerEvent&&window.MSPointerEvent,wt=!(!window.PointerEvent&&!bt),At="ontouchstart"in window||!!window.TouchEvent,Pt=!window.L_NO_TOUCH&&(At||wt),kt=_t&&at,Mt=_t&&ct,Ct=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,It=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(t){}return t}(),Tt=!!document.createElement("canvas").getContext,Lt=!(!document.createElementNS||!K("svg").createSVGRect),St=!!Lt&&((X=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(X.firstChild&&X.firstChild.namespaceURI)),Ot=!Lt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function jt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var zt={ie:J,ielt9:tt,edge:et,webkit:nt,android:it,android23:ot,androidStock:st,opera:at,chrome:lt,gecko:ct,safari:ut,phantom:ht,opera12:dt,win:pt,ie3d:ft,webkit3d:mt,gecko3d:gt,any3d:yt,mobile:_t,mobileWebkit:vt,mobileWebkit3d:xt,msPointer:bt,pointer:wt,touch:Pt,touchNative:At,mobileOpera:kt,mobileGecko:Mt,retina:Ct,passiveEvents:It,canvas:Tt,svg:Lt,vml:Ot,inlineSvg:St,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Et=zt.msPointer?"MSPointerDown":"pointerdown",Rt=zt.msPointer?"MSPointerMove":"pointermove",Nt=zt.msPointer?"MSPointerUp":"pointerup",$t=zt.msPointer?"MSPointerCancel":"pointercancel",Bt={touchstart:Et,touchmove:Rt,touchend:Nt,touchcancel:$t},Ft={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ne(e),qt(t,e)},touchmove:qt,touchend:qt,touchcancel:qt},Dt={},Zt=!1;function Ht(t,e,n){return"touchstart"===e&&(Zt||(document.addEventListener(Et,Ut,!0),document.addEventListener(Rt,Wt,!0),document.addEventListener(Nt,Vt,!0),document.addEventListener($t,Vt,!0),Zt=!0)),Ft[e]?(n=Ft[e].bind(this,n),t.addEventListener(Bt[e],n,!1),n):(console.warn("wrong event specified:",e),l)}function Ut(t){Dt[t.pointerId]=t}function Wt(t){Dt[t.pointerId]&&(Dt[t.pointerId]=t)}function Vt(t){delete Dt[t.pointerId]}function qt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],Dt)e.touches.push(Dt[n]);e.changedTouches=[e],t(e)}}var Gt,Kt,Yt,Xt,Qt,Jt=me(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),te=me(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ee="webkitTransition"===te||"OTransition"===te?te+"End":"transitionend";function ne(t){return"string"==typeof t?document.getElementById(t):t}function ie(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function oe(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function re(t){var e=t.parentNode;e&&e.removeChild(t)}function se(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ae(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function le(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ce(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=pe(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function ue(t,e){if(void 0!==t.classList)for(var n=h(e),i=0,o=n.length;i<o;i++)t.classList.add(n[i]);else if(!ce(t,e)){var r=pe(t);de(t,(r?r+" ":"")+e)}}function he(t,e){void 0!==t.classList?t.classList.remove(e):de(t,u((" "+pe(t)+" ").replace(" "+e+" "," ")))}function de(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function pe(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function fe(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}(t,e)}function me(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function ge(t,e,n){var i=e||new S(0,0);t.style[Jt]=(zt.ie3d?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function ye(t,e){t._leaflet_pos=e,zt.any3d?ge(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function _e(t){return t._leaflet_pos||new S(0,0)}if("onselectstart"in document)Gt=function(){Ce(window,"selectstart",Ne)},Kt=function(){Te(window,"selectstart",Ne)};else{var ve=me(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Gt=function(){if(ve){var t=document.documentElement.style;Yt=t[ve],t[ve]="none"}},Kt=function(){ve&&(document.documentElement.style[ve]=Yt,Yt=void 0)}}function xe(){Ce(window,"dragstart",Ne)}function be(){Te(window,"dragstart",Ne)}function we(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Ae(),Xt=t,Qt=t.style.outlineStyle,t.style.outlineStyle="none",Ce(window,"keydown",Ae))}function Ae(){Xt&&(Xt.style.outlineStyle=Qt,Xt=void 0,Qt=void 0,Te(window,"keydown",Ae))}function Pe(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function ke(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Me={__proto__:null,TRANSFORM:Jt,TRANSITION:te,TRANSITION_END:ee,get:ne,getStyle:ie,create:oe,remove:re,empty:se,toFront:ae,toBack:le,hasClass:ce,addClass:ue,removeClass:he,setClass:de,getClass:pe,setOpacity:fe,testProp:me,setTransform:ge,setPosition:ye,getPosition:_e,get disableTextSelection(){return Gt},get enableTextSelection(){return Kt},disableImageDrag:xe,enableImageDrag:be,preventOutline:we,restoreOutline:Ae,getSizedParentNode:Pe,getScale:ke};function Ce(t,e,n,i){if(e&&"object"==typeof e)for(var o in e)Oe(t,o,e[o],n);else for(var r=0,s=(e=h(e)).length;r<s;r++)Oe(t,e[r],n,i);return this}var Ie="_leaflet_events";function Te(t,e,n,i){if(1===arguments.length)Le(t),delete t[Ie];else if(e&&"object"==typeof e)for(var o in e)je(t,o,e[o],n);else if(e=h(e),2===arguments.length)Le(t,function(t){return-1!==y(e,t)});else for(var r=0,s=e.length;r<s;r++)je(t,e[r],n,i);return this}function Le(t,e){for(var n in t[Ie]){var i=n.split(/\d/)[0];e&&!e(i)||je(t,i,null,null,n)}}var Se={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Oe(t,e,n,i){var o=e+r(n)+(i?"_"+r(i):"");if(t[Ie]&&t[Ie][o])return this;var s=function(e){return n.call(i||t,e||window.event)},a=s;!zt.touchNative&&zt.pointer&&0===e.indexOf("touch")?s=Ht(t,e,s):zt.touch&&"dblclick"===e?s=function(t,e){t.addEventListener("dblclick",e);var n,i=0;function o(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var o=Be(t);if(!o.some(function(t){return t instanceof HTMLLabelElement&&t.attributes.for})||o.some(function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement})){var r=Date.now();r-i<=200?2===++n&&e(function(t){var e,n,i={};for(n in t)e=t[n],i[n]=e&&e.bind?e.bind(t):e;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}(t)):n=1,i=r}}}else n=t.detail}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}(t,s):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Se[e]||e,s,!!zt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(s=function(e){e=e||window.event,He(t,e)&&a(e)},t.addEventListener(Se[e],s,!1)):t.addEventListener(e,a,!1):t.attachEvent("on"+e,s),t[Ie]=t[Ie]||{},t[Ie][o]=s}function je(t,e,n,i,o){o=o||e+r(n)+(i?"_"+r(i):"");var s=t[Ie]&&t[Ie][o];if(!s)return this;!zt.touchNative&&zt.pointer&&0===e.indexOf("touch")?function(t,e,n){Bt[e]?t.removeEventListener(Bt[e],n,!1):console.warn("wrong event specified:",e)}(t,e,s):zt.touch&&"dblclick"===e?function(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}(t,s):"removeEventListener"in t?t.removeEventListener(Se[e]||e,s,!1):t.detachEvent("on"+e,s),t[Ie][o]=null}function ze(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ee(t){return Oe(t,"wheel",ze),this}function Re(t){return Ce(t,"mousedown touchstart dblclick contextmenu",ze),t._leaflet_disable_click=!0,this}function Ne(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function $e(t){return Ne(t),ze(t),this}function Be(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function Fe(t,e){if(!e)return new S(t.clientX,t.clientY);var n=ke(e),i=n.boundingClientRect;return new S((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var De=zt.linux&&zt.chrome?window.devicePixelRatio:zt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ze(t){return zt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/De:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function He(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var Ue={__proto__:null,on:Ce,off:Te,stopPropagation:ze,disableScrollPropagation:Ee,disableClickPropagation:Re,preventDefault:Ne,stop:$e,getPropagationPath:Be,getMousePosition:Fe,getWheelDelta:Ze,isExternalTarget:He,addListener:Ce,removeListener:Te},We=T.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=_e(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=P(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),ye(this._el,n),this.fire("step")},_complete:function(){k(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Ve=T.extend({options:{crs:q,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=d(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(B(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=te&&zt.any3d&&!zt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ce(this._proxy,ee,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,n,i){return n=void 0===n?this._zoom:this._limitZoom(n),t=this._limitCenter(B(t),n,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=e({animate:i.animate},i.zoom),i.pan=e({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,n,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,n,i.pan&&i.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(zt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(zt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),o=this.getSize().divideBy(2),r=(t instanceof S?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/i),s=this.containerPointToLatLng(o.add(r));return this.setView(s,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():N(t);var n=j(e.paddingTopLeft||e.padding||[0,0]),i=j(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,n.add(i));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var r=i.subtract(n).divideBy(2),s=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o);return{center:this.unproject(s.add(a).divideBy(2).add(r),o),zoom:o}},fitBounds:function(t,e){if(!(t=N(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=j(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new We,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){ue(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!zt.any3d)return this.setView(t,e,n);this._stop();var i=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),s=this._zoom;t=B(t),e=void 0===e?s:e;var a=Math.max(r.x,r.y),l=a*this.getZoomScale(s,e),c=o.distanceTo(i)||1,u=1.42,h=2.0164;function d(t){var e=(l*l-a*a+(t?-1:1)*h*h*c*c)/(2*(t?l:a)*h*c),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}var m=d(0);function g(t){return a*(f(m)*(p(e=m+u*t)/f(e))-p(m))/h;var e}var y=Date.now(),_=(d(1)-m)/u,v=n.duration?1e3*n.duration:1e3*_*.8;return this._moveStart(!0,n.noMoveStart),function n(){var r=(Date.now()-y)/v,l=function(t){return 1-Math.pow(1-t,1.5)}(r)*_;r<=1?(this._flyToFrame=P(n,this),this._move(this.unproject(i.add(o.subtract(i).multiplyBy(g(l)/c)),s),this.getScaleZoom(a/function(t){return a*(f(m)/f(m+u*t))}(l),s),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=N(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,N(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=j((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=j(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),s=this.getPixelBounds(),a=E([s.min.add(n),s.max.subtract(i)]),l=a.getSize();if(!a.contains(r)){this._enforcingBounds=!0;var c=r.subtract(a.getCenter()),u=a.extend(r).getSize().subtract(l);o.x+=c.x<0?-u.x:u.x,o.y+=c.y<0?-u.y:u.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),r=n.divideBy(2).round(),s=o.divideBy(2).round(),a=r.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=i(this._handleGeolocationResponse,this),o=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new $(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var o=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(o,i.maxZoom):o)}var r={latlng:e,bounds:n,timestamp:t.timestamp};for(var s in t.coords)"number"==typeof t.coords[s]&&(r[s]=t.coords[s]);this.fire("locationfound",r)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),re(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(k(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)re(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=oe("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new R(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=N(t),n=j(n||[0,0]);var i=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(n),c=E(this.project(a,i),this.project(s,i)).getSize(),u=zt.any3d?this.options.zoomSnap:1,h=l.x/c.x,d=l.y/c.y,p=e?Math.max(h,d):Math.min(h,d);return i=this.getScaleZoom(p,i),u&&(i=Math.round(i/(u/100))*(u/100),i=e?Math.ceil(i/u)*u:Math.floor(i/u)*u),Math.max(o,Math.min(r,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new S(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new z(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(B(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(j(t),e)},layerPointToLatLng:function(t){var e=j(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(B(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(B(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(N(t))},distance:function(t,e){return this.options.crs.distance(B(t),B(e))},containerPointToLayerPoint:function(t){return j(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return j(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(j(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(B(t)))},mouseEventToContainerPoint:function(t){return Fe(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ne(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Ce(e,"scroll",this._onScroll,this),this._containerId=r(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&zt.any3d,ue(t,"leaflet-container"+(zt.touch?" leaflet-touch":"")+(zt.retina?" leaflet-retina":"")+(zt.ielt9?" leaflet-oldie":"")+(zt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ie(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ye(this._mapPane,new S(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ue(t.markerPane,"leaflet-zoom-hide"),ue(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){ye(this._mapPane,new S(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,n)._move(t,e)._moveEnd(o),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,i){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),i?n&&n.pinch&&this.fire("zoom",n):((o||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return k(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ye(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[r(this._container)]=this;var e=t?Te:Ce;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),zt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){k(this._resizeRequest),this._resizeRequest=P(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],o="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,a=!1;s;){if((n=this._targets[r(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)){if(o&&!He(s,t))break;if(i.push(n),o)break}if(s===this._container)break;s=s.parentNode}return i.length||a||o||!this.listens(e,!0)||(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var n=t.type;"mousedown"===n&&we(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,i){if("click"===t.type){var o=e({},t);o.type="preclick",this._fireDOMEvent(o,o.type,i)}var r=this._findEventTargets(t,n);if(i){for(var s=[],a=0;a<i.length;a++)i[a].listens(n,!0)&&s.push(i[a]);r=s.concat(r)}if(r.length){"contextmenu"===n&&Ne(t);var l=r[0],c={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var u=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=u?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=u?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(a=0;a<r.length;a++)if(r[a].fire(n,c,!0),c.originalEvent._stopped||!1===r[a].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,n))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return _e(this._mapPane)||new S(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return E([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),o=this.getSize().divideBy(2),r=new z(i.subtract(o),i.add(o)),s=this._getBoundsOffset(r,n,e);return Math.abs(s.x)<=1&&Math.abs(s.y)<=1?t:this.unproject(i.add(s),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new z(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=E(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),o=i.min.subtract(t.min),r=i.max.subtract(t.max);return new S(this._rebound(o.x,-r.x),this._rebound(o.y,-r.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=zt.any3d?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){he(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=oe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=Jt,n=this._proxy.style[e];ge(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){re(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ge(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(o)||(P(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ue(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&he(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});var qe=C.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return ue(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(re(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ge=function(t){return new qe(t)};Ve.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=oe("div",e+"control-container",this._container);function i(i,o){var r=e+i+" "+e+o;t[i+o]=oe("div",r,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)re(this._controlCorners[t]);re(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ke=qe.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){for(var i in d(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return qe.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(r(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){ue(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(ue(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):he(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return he(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=oe("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Re(e),Ee(e);var i=this._section=oe("section",t+"-list");n&&(this._map.on("click",this.collapse,this),Ce(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var o=this._layersLink=oe("a",t+"-toggle",e);o.href="#",o.title="Layers",o.setAttribute("role","button"),Ce(o,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Ne(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=oe("div",t+"-base",i),this._separator=oe("div",t+"-separator",i),this._overlaysList=oe("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&r(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(i(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;se(this._baseLayersList),se(this._overlaysList),this._layerControlInputs=[];var t,e,n,i,o=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,o+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+r(this),i),this._layerControlInputs.push(e),e.layerId=r(t.layer),Ce(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");return n.appendChild(s),s.appendChild(e),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t,e,n=this._layerControlInputs,i=[],o=[];this._handlingClick=!0;for(var r=n.length-1;r>=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||o.push(e);for(r=0;r<o.length;r++)this._map.hasLayer(o[r])&&this._map.removeLayer(o[r]);for(r=0;r<i.length;r++)this._map.hasLayer(i[r])||this._map.addLayer(i[r]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&i<e.options.minZoom||void 0!==e.options.maxZoom&&i>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Ce(t,"click",Ne),this.expand();var e=this;setTimeout(function(){Te(t,"click",Ne),e._preventClick=!1})}}),Ye=qe.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=oe("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,o){var r=oe("a",n,i);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),Re(r),Ce(r,"click",$e),Ce(r,"click",o,this),Ce(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";he(this._zoomInButton,e),he(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(ue(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(ue(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ve.mergeOptions({zoomControl:!0}),Ve.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ye,this.addControl(this.zoomControl))});var Xe=qe.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=oe("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=oe("div",e,n)),t.imperial&&(this._iScale=oe("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,o=3.2808399*t;o>5280?(e=o/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(o),this._updateScale(this._iScale,i+" ft",i/o))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Qe=qe.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(zt.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=oe("div","leaflet-control-attribution"),Re(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});Ve.mergeOptions({attributionControl:!0}),Ve.addInitHook(function(){this.options.attributionControl&&(new Qe).addTo(this)});qe.Layers=Ke,qe.Zoom=Ye,qe.Scale=Xe,qe.Attribution=Qe,Ge.layers=function(t,e,n){return new Ke(t,e,n)},Ge.zoom=function(t){return new Ye(t)},Ge.scale=function(t){return new Xe(t)},Ge.attribution=function(t){return new Qe(t)};var Je=C.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Je.addTo=function(t,e){return t.addHandler(e,this),this};var tn={Events:I},en=zt.touch?"touchstart mousedown":"mousedown",nn=T.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){d(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Ce(this._dragStartTarget,en,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(nn._dragging===this&&this.finishDrag(!0),Te(this._dragStartTarget,en,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ce(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)nn._dragging===this&&this.finishDrag();else if(!(nn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(nn._dragging=this,this._preventOutline&&we(this._element),xe(),Gt(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Pe(this._element);this._startPoint=new S(e.clientX,e.clientY),this._startPos=_e(this._element),this._parentScale=ke(n);var i="mousedown"===t.type;Ce(document,i?"mousemove":"touchmove",this._onMove,this),Ce(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new S(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Ne(t),this._moved||(this.fire("dragstart"),this._moved=!0,ue(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ue(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ye(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){he(document.body,"leaflet-dragging"),this._lastTarget&&(he(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Te(document,"mousemove touchmove",this._onMove,this),Te(document,"mouseup touchend touchcancel",this._onUp,this),be(),Kt();var e=this._moved&&this._moving;this._moving=!1,nn._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function on(t,e,n){var i,o,r,s,a,l,c,u,h,d=[1,4,2,8];for(o=0,c=t.length;o<c;o++)t[o]._code=fn(t[o],e);for(s=0;s<4;s++){for(u=d[s],i=[],o=0,r=(c=t.length)-1;o<c;r=o++)a=t[o],l=t[r],a._code&u?l._code&u||((h=pn(l,a,u,e,n))._code=fn(h,e),i.push(h)):(l._code&u&&((h=pn(l,a,u,e,n))._code=fn(h,e),i.push(h)),i.push(a));t=i}return t}function rn(t,e){var n,i,o,r,s,a,l,c,u;if(!t||0===t.length)throw new Error("latlngs not passed");yn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var h=B([0,0]),d=N(t);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(h=sn(t));var p=t.length,f=[];for(n=0;n<p;n++){var m=B(t[n]);f.push(e.project(B([m.lat-h.lat,m.lng-h.lng])))}for(a=l=c=0,n=0,i=p-1;n<p;i=n++)o=f[n],r=f[i],s=o.y*r.x-r.y*o.x,l+=(o.x+r.x)*s,c+=(o.y+r.y)*s,a+=3*s;u=0===a?f[0]:[l/a,c/a];var g=e.unproject(j(u));return B([g.lat+h.lat,g.lng+h.lng])}function sn(t){for(var e=0,n=0,i=0,o=0;o<t.length;o++){var r=B(t[o]);e+=r.lat,n+=r.lng,i++}return B([e/i,n/i])}var an,ln={__proto__:null,clipPolygon:on,polygonCenter:rn,centroid:sn};function cn(t,e){if(!e||!t.length)return t.slice();var n=e*e;return function(t,e){var n=t.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,hn(t,i,e,0,n-1);var o,r=[];for(o=0;o<n;o++)i[o]&&r.push(t[o]);return r}(t=function(t,e){for(var n=[t[0]],i=1,o=0,r=t.length;i<r;i++)mn(t[i],t[o])>e&&(n.push(t[i]),o=i);return o<r-1&&n.push(t[r-1]),n}(t,n),n)}function un(t,e,n){return Math.sqrt(gn(t,e,n,!0))}function hn(t,e,n,i,o){var r,s,a,l=0;for(s=i+1;s<=o-1;s++)(a=gn(t[s],t[i],t[o],!0))>l&&(r=s,l=a);l>n&&(e[r]=1,hn(t,e,n,i,r),hn(t,e,n,r,o))}function dn(t,e,n,i,o){var r,s,a,l=i?an:fn(t,n),c=fn(e,n);for(an=c;;){if(!(l|c))return[t,e];if(l&c)return!1;a=fn(s=pn(t,e,r=l||c,n,o),n),r===l?(t=s,l=a):(e=s,c=a)}}function pn(t,e,n,i,o){var r,s,a=e.x-t.x,l=e.y-t.y,c=i.min,u=i.max;return 8&n?(r=t.x+a*(u.y-t.y)/l,s=u.y):4&n?(r=t.x+a*(c.y-t.y)/l,s=c.y):2&n?(r=u.x,s=t.y+l*(u.x-t.x)/a):1&n&&(r=c.x,s=t.y+l*(c.x-t.x)/a),new S(r,s,o)}function fn(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function mn(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function gn(t,e,n,i){var o,r=e.x,s=e.y,a=n.x-r,l=n.y-s,c=a*a+l*l;return c>0&&((o=((t.x-r)*a+(t.y-s)*l)/c)>1?(r=n.x,s=n.y):o>0&&(r+=a*o,s+=l*o)),a=t.x-r,l=t.y-s,i?a*a+l*l:new S(r,s)}function yn(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function _n(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),yn(t)}function vn(t,e){var n,i,o,r,s,a,l,c;if(!t||0===t.length)throw new Error("latlngs not passed");yn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=B([0,0]),h=N(t);h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(u=sn(t));var d=t.length,p=[];for(n=0;n<d;n++){var f=B(t[n]);p.push(e.project(B([f.lat-u.lat,f.lng-u.lng])))}for(n=0,i=0;n<d-1;n++)i+=p[n].distanceTo(p[n+1])/2;if(0===i)c=p[0];else for(n=0,r=0;n<d-1;n++)if(s=p[n],a=p[n+1],(r+=o=s.distanceTo(a))>i){l=(r-i)/o,c=[a.x-l*(a.x-s.x),a.y-l*(a.y-s.y)];break}var m=e.unproject(j(c));return B([m.lat+u.lat,m.lng+u.lng])}var xn={__proto__:null,simplify:cn,pointToSegmentDistance:un,closestPointOnSegment:function(t,e,n){return gn(t,e,n)},clipSegment:dn,_getEdgeIntersection:pn,_getBitCode:fn,_sqClosestPointOnSegment:gn,isFlat:yn,_flat:_n,polylineCenter:vn},bn={project:function(t){return new S(t.lng,t.lat)},unproject:function(t){return new $(t.y,t.x)},bounds:new z([-180,-90],[180,90])},wn={R:6378137,R_MINOR:6356752.314245179,bounds:new z([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,o=this.R_MINOR/n,r=Math.sqrt(1-o*o),s=r*Math.sin(i),a=Math.tan(Math.PI/4-i/2)/Math.pow((1-s)/(1+s),r/2);return i=-n*Math.log(Math.max(a,1e-10)),new S(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),s=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(s),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=r*Math.sin(a),e=Math.pow((1-e)/(1+e),r/2),a+=c=Math.PI/2-2*Math.atan(s*e)-a;return new $(a*n,t.x*n/i)}},An={__proto__:null,LonLat:bn,Mercator:wn,SphericalMercator:U},Pn=e({},Z,{code:"EPSG:3395",projection:wn,transformation:function(){var t=.5/(Math.PI*wn.R);return V(t,.5,-t,.5)}()}),kn=e({},Z,{code:"EPSG:4326",projection:bn,transformation:V(1/180,1,-1/180,.5)}),Mn=e({},D,{projection:bn,transformation:V(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});D.Earth=Z,D.EPSG3395=Pn,D.EPSG3857=q,D.EPSG900913=G,D.EPSG4326=kn,D.Simple=Mn;var Cn=T.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ve.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=r(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return r(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?g(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[r(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=r(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var o=this._zoomBoundLayers[i].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var In=Cn.extend({initialize:function(t,e){var n,i;if(d(this,e),this._layers={},t)for(n=0,i=t.length;n<i;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return r(t)}}),Tn=In.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),In.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),In.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new R;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Ln=C.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){d(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var i=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(i,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i},_setIconStyles:function(t,e){var n=this.options,i=n[e+"Size"];"number"==typeof i&&(i=[i,i]);var o=j(i),r=j("shadow"===e&&n.shadowAnchor||n.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),r&&(t.style.marginLeft=-r.x+"px",t.style.marginTop=-r.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return zt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var Sn=Ln.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof Sn.imagePath&&(Sn.imagePath=this._detectIconPath()),(this.options.imagePath||Sn.imagePath)+Ln.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,n){var i=e.exec(t);return i&&i[n]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=oe("div","leaflet-default-icon-path",document.body),e=ie(t,"background-image")||ie(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),On=Je.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new nn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ue(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&he(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=_e(e._icon),s=n.getPixelBounds(),a=n.getPixelOrigin(),l=E(s.min._subtract(a).add(o),s.max._subtract(a).subtract(o));if(!l.contains(r)){var c=j((Math.max(l.max.x,r.x)-l.max.x)/(s.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(s.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(s.max.y-l.max.y)-(Math.min(l.min.y,r.y)-l.min.y)/(s.min.y-l.min.y)).multiplyBy(i);n.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),ye(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=P(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(k(this._panRequest),this._panRequest=P(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=_e(e._icon),o=e._map.layerPointToLatLng(i);n&&ye(n,i),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){k(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),jn=Cn.extend({options:{icon:new Sn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){d(this,e),this._latlng=B(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=B(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),i=!1;n!==this._icon&&(this._icon&&this._removeIcon(),i=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),ue(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ce(n,"focus",this._panOnFocus,this);var o=t.icon.createShadow(this._shadow),r=!1;o!==this._shadow&&(this._removeShadow(),r=!0),o&&(ue(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Te(this._icon,"focus",this._panOnFocus,this),re(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&re(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&ye(this._icon,t),this._shadow&&ye(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(ue(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),On)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new On(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&fe(this._icon,t),this._shadow&&fe(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?j(e.iconSize):j(0,0),i=e.iconAnchor?j(e.iconAnchor):j(0,0);t.panInside(this._latlng,{paddingTopLeft:i,paddingBottomRight:n.subtract(i)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var zn=Cn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return d(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),En=zn.extend({options:{fill:!0,radius:10},initialize:function(t,e){d(this,e),this._latlng=B(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=B(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return zn.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),i=[t+n,e+n];this._pxBounds=new z(this._point.subtract(i),this._point.add(i))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var Rn=En.extend({initialize:function(t,n,i){if("number"==typeof n&&(n=e({},i,{radius:n})),d(this,n),this._latlng=B(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new R(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:zn.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===Z.distance){var o=Math.PI/180,r=this._mRadius/Z.R/o,s=n.project([e+r,t]),a=n.project([e-r,t]),l=s.add(a).divideBy(2),c=n.unproject(l).lat,u=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(c*o))/(Math.cos(e*o)*Math.cos(c*o)))/o;(isNaN(u)||0===u)&&(u=r/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-n.project([c,t-u]).x,this._radiusY=l.y-s.y}else{var h=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(h).x}this._updateBounds()}});var Nn=zn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){d(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,i=1/0,o=null,r=gn,s=0,a=this._parts.length;s<a;s++)for(var l=this._parts[s],c=1,u=l.length;c<u;c++){var h=r(t,e=l[c-1],n=l[c],!0);h<i&&(i=h,o=r(t,e,n))}return o&&(o.distance=Math.sqrt(i)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return vn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=B(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new R,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return yn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=yn(t),i=0,o=t.length;i<o;i++)n?(e[i]=B(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new S(t,t);this._rawPxBounds&&(this._pxBounds=new z([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var i,o,r=t[0]instanceof $,s=t.length;if(r){for(o=[],i=0;i<s;i++)o[i]=this._map.latLngToLayerPoint(t[i]),n.extend(o[i]);e.push(o)}else for(i=0;i<s;i++)this._projectLatlngs(t[i],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,i,o,r,s,a,l=this._parts;for(e=0,i=0,o=this._rings.length;e<o;e++)for(n=0,r=(a=this._rings[e]).length;n<r-1;n++)(s=dn(a[n],a[n+1],t,n,!0))&&(l[i]=l[i]||[],l[i].push(s[0]),s[1]===a[n+1]&&n!==r-2||(l[i].push(s[1]),i++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=cn(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,o,r,s,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,r=this._parts.length;n<r;n++)for(i=0,o=(s=(a=this._parts[n]).length)-1;i<s;o=i++)if((e||0!==i)&&un(t,a[o],a[i])<=l)return!0;return!1}});Nn._flat=_n;var $n=Nn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return rn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Nn.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof $&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){Nn.prototype._setLatLngs.call(this,t),yn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return yn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new S(e,e);if(t=new z(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,o=0,r=this._rings.length;o<r;o++)(i=on(this._rings[o],t,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,i,o,r,s,a,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(r=0,s=(l=(e=this._parts[o]).length)-1;r<l;s=r++)n=e[r],i=e[s],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(c=!c);return c||Nn.prototype._containsPoint.call(this,t,!0)}});var Bn=Tn.extend({initialize:function(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=g(t)?t:t.features;if(o){for(e=0,n=o.length;e<n;e++)((i=o[e]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var r=this.options;if(r.filter&&!r.filter(t))return this;var s=Fn(t,r);return s?(s.feature=qn(t),s.defaultOptions=s.options,this.resetStyle(s),r.onEachFeature&&r.onEachFeature(t,s),this.addLayer(s)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function Fn(t,e){var n,i,o,r,s="Feature"===t.type?t.geometry:t,a=s?s.coordinates:null,l=[],c=e&&e.pointToLayer,u=e&&e.coordsToLatLng||Zn;if(!a&&!s)return null;switch(s.type){case"Point":return Dn(c,t,n=u(a),e);case"MultiPoint":for(o=0,r=a.length;o<r;o++)n=u(a[o]),l.push(Dn(c,t,n,e));return new Tn(l);case"LineString":case"MultiLineString":return i=Hn(a,"LineString"===s.type?0:1,u),new Nn(i,e);case"Polygon":case"MultiPolygon":return i=Hn(a,"Polygon"===s.type?1:2,u),new $n(i,e);case"GeometryCollection":for(o=0,r=s.geometries.length;o<r;o++){var h=Fn({geometry:s.geometries[o],type:"Feature",properties:t.properties},e);h&&l.push(h)}return new Tn(l);case"FeatureCollection":for(o=0,r=s.features.length;o<r;o++){var d=Fn(s.features[o],e);d&&l.push(d)}return new Tn(l);default:throw new Error("Invalid GeoJSON object.")}}function Dn(t,e,n,i){return t?t(e,n):new jn(n,i&&i.markersInheritOptions&&i)}function Zn(t){return new $(t[1],t[0],t[2])}function Hn(t,e,n){for(var i,o=[],r=0,s=t.length;r<s;r++)i=e?Hn(t[r],e-1,n):(n||Zn)(t[r]),o.push(i);return o}function Un(t,e){return void 0!==(t=B(t)).alt?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function Wn(t,e,n,i){for(var o=[],r=0,s=t.length;r<s;r++)o.push(e?Wn(t[r],yn(t[r])?0:e-1,n,i):Un(t[r],i));return!e&&n&&o.length>0&&o.push(o[0].slice()),o}function Vn(t,n){return t.feature?e({},t.feature,{geometry:n}):qn(n)}function qn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Gn={toGeoJSON:function(t){return Vn(this,{type:"Point",coordinates:Un(this.getLatLng(),t)})}};function Kn(t,e){return new Bn(t,e)}jn.include(Gn),Rn.include(Gn),En.include(Gn),Nn.include({toGeoJSON:function(t){var e=!yn(this._latlngs);return Vn(this,{type:(e?"Multi":"")+"LineString",coordinates:Wn(this._latlngs,e?1:0,!1,t)})}}),$n.include({toGeoJSON:function(t){var e=!yn(this._latlngs),n=e&&!yn(this._latlngs[0]),i=Wn(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),Vn(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),In.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),Vn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,i=[];return this.eachLayer(function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(n)i.push(o.geometry);else{var r=qn(o);"FeatureCollection"===r.type?i.push.apply(i,r.features):i.push(r)}}}),n?Vn(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var Yn=Kn,Xn=Cn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=N(e),d(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ue(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){re(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ae(this._image),this},bringToBack:function(){return this._map&&le(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=N(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:oe("img");ue(e,"leaflet-image-layer"),this._zoomAnimated&&ue(e,"leaflet-zoom-animated"),this.options.className&&ue(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onload=i(this.fire,this,"load"),e.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ge(this._image,n,e)},_reset:function(){var t=this._image,e=new z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();ye(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){fe(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Qn=Xn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:oe("video");if(ue(e,"leaflet-image-layer"),this._zoomAnimated&&ue(e,"leaflet-zoom-animated"),this.options.className&&ue(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onloadeddata=i(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),o=[],r=0;r<n.length;r++)o.push(n[r].src);this._url=n.length>0?o:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var a=oe("source");a.src=this._url[s],e.appendChild(a)}}}});var Jn=Xn.extend({_initImage:function(){var t=this._image=this._url;ue(t,"leaflet-image-layer"),this._zoomAnimated&&ue(t,"leaflet-zoom-animated"),this.options.className&&ue(t,this.options.className),t.onselectstart=l,t.onmousemove=l}});var ti=Cn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof $||g(t))?(this._latlng=B(t),d(this,e)):(d(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&fe(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&fe(this._container,1),this.bringToFront(),this.options.interactive&&(ue(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(fe(this._container,0),this._removeTimeout=setTimeout(i(re,void 0,this._container),200)):re(this._container),this.options.interactive&&(he(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=B(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ae(this._container),this},bringToBack:function(){return this._map&&le(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Tn){e=null;var n=this._source._layers;for(var i in n)if(n[i]._map){e=n[i];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=j(this.options.offset),n=this._getAnchor();this._zoomAnimated?ye(this._container,t.add(n)):e=e.add(t).add(n);var i=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=i+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}});Ve.include({_initOverlay:function(t,e,n,i){var o=e;return o instanceof t||(o=new t(i).setContent(e)),n&&o.setLatLng(n),o}}),Cn.include({_initOverlay:function(t,e,n,i){var o=n;return o instanceof t?(d(o,i),o._source=this):(o=e&&!i?e:new t(i,this)).setContent(n),o}});var ei=ti.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,ti.prototype.openOn.call(this,t)},onAdd:function(t){ti.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof zn||this._source.on("preclick",ze))},onRemove:function(t){ti.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof zn||this._source.off("preclick",ze))},getEvents:function(){var t=ti.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=oe("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=oe("div",t+"-content-wrapper",e);if(this._contentNode=oe("div",t+"-content",n),Re(e),Ee(this._contentNode),Ce(e,"contextmenu",ze),this._tipContainer=oe("div",t+"-tip-container",e),this._tip=oe("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=oe("a",t+"-close-button",e);i.setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">×</span>',Ce(i,"click",function(t){Ne(t),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";o&&i>o?(e.height=o+"px",ue(t,r)):he(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();ye(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(ie(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,o=new S(this._containerLeft,-n-this._containerBottom);o._add(_e(this._container));var r=t.layerPointToContainerPoint(o),s=j(this.options.autoPanPadding),a=j(this.options.autoPanPaddingTopLeft||s),l=j(this.options.autoPanPaddingBottomRight||s),c=t.getSize(),u=0,h=0;r.x+i+l.x>c.x&&(u=r.x+i-c.x+l.x),r.x-u-a.x<0&&(u=r.x-a.x),r.y+n+l.y>c.y&&(h=r.y+n-c.y+l.y),r.y-h-a.y<0&&(h=r.y-a.y),(u||h)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([u,h]))}},_getAnchor:function(){return j(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ve.mergeOptions({closePopupOnClick:!0}),Ve.include({openPopup:function(t,e,n){return this._initOverlay(ei,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Cn.include({bindPopup:function(t,e){return this._popup=this._initOverlay(ei,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Tn||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){$e(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof zn?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var ni=ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ti.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){ti.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=ti.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=oe("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+r(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,o=this._container,r=i.latLngToContainerPoint(i.getCenter()),s=i.layerPointToContainerPoint(t),a=this.options.direction,l=o.offsetWidth,c=o.offsetHeight,u=j(this.options.offset),h=this._getAnchor();"top"===a?(e=l/2,n=c):"bottom"===a?(e=l/2,n=0):"center"===a?(e=l/2,n=c/2):"right"===a?(e=0,n=c/2):"left"===a?(e=l,n=c/2):s.x<r.x?(a="right",e=0,n=c/2):(a="left",e=l+2*(u.x+h.x),n=c/2),t=t.subtract(j(e,n,!0)).add(u).add(h),he(o,"leaflet-tooltip-right"),he(o,"leaflet-tooltip-left"),he(o,"leaflet-tooltip-top"),he(o,"leaflet-tooltip-bottom"),ue(o,"leaflet-tooltip-"+a),ye(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&fe(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return j(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Ve.include({openTooltip:function(t,e,n){return this._initOverlay(ni,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Cn.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ni,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Tn||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(Ce(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),Ce(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)})}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),i=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(i)}});var ii=Ln.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(se(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=j(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});Ln.Default=Sn;var oi=Cn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:zt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){d(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),re(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ae(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(le(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof S?t:new S(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,i=-t(-1/0,1/0),o=0,r=n.length;o<r;o++)e=n[o].style.zIndex,n[o]!==this._container&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!zt.ielt9){fe(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var o=this._tiles[i];if(o.current&&o.loaded){var r=Math.min(1,(t-o.loaded)/200);fe(o.el,r),r<1?e=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(k(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this))}},_onOpaqueTile:l,_initContainer:function(){this._container||(this._container=oe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(re(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[t],o=this._map;return i||((i=this._levels[t]={}).el=oe("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,o.getCenter(),o.getZoom()),i.el.offsetWidth,this._onCreateLevel(i)),this._level=i,i}},_onUpdateLevel:l,_onRemoveLevel:l,_onCreateLevel:l,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)re(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,i){var o=Math.floor(t/2),r=Math.floor(e/2),s=n-1,a=new S(+o,+r);a.z=+s;var l=this._tileCoordsToKey(a),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),s>i&&this._retainParent(o,r,s,i))},_retainChildren:function(t,e,n,i){for(var o=2*t;o<2*t+2;o++)for(var r=2*e;r<2*e+2;r++){var s=new S(o,r);s.z=n+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<i&&this._retainChildren(o,r,n+1,i))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,i){var o=Math.round(e);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var r=this.options.updateWhenZooming&&o!==this._tileZoom;i&&!r||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom),o=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();zt.any3d?ge(t.el,o,i):ye(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(n,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(2*i);return new z(o.subtract(r),o.add(r))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var i=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(i),r=o.getCenter(),s=[],a=this.options.keepBuffer,l=new z(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new S(u.x,u.y))||(this._tiles[c].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var h=o.min.y;h<=o.max.y;h++)for(var d=o.min.x;d<=o.max.x;d++){var p=new S(d,h);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:s.push(p)}}if(s.sort(function(t,e){return t.distanceTo(r)-e.distanceTo(r)}),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;d<s.length;d++)this._addTile(s[d],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return N(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),o=i.add(n);return[e.unproject(i,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new R(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new S(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(re(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ue(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,zt.ielt9&&this.options.opacity<1&&fe(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&P(i(this._tileReady,this,t,null,r)),ye(r,n),this._tiles[o]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(fe(n.el,0),k(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(ue(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),zt.ielt9||!this._map._fadeAnimated?P(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new S(this._wrapX?a(t.x,this._wrapX):t.x,this._wrapY?a(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new z(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var ri=oi.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=d(this,e)).detectRetina&&zt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Ce(n,"load",i(this._tileOnLoad,this,e,n)),Ce(n,"error",i(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:zt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=i),n["-y"]=i}return m(this._url,e(n,this.options))},_tileOnLoad:function(t,e){zt.ielt9?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,!e.complete)){e.src=_;var n=this._tiles[t].coords;re(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",_),oi.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==_))return oi.prototype._tileReady.call(this,t,e,n)}});function si(t,e){return new ri(t,e)}var ai=ri.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var i=e({},this.defaultWmsParams);for(var o in n)o in this.options||(i[o]=n[o]);var r=(n=d(this,n)).detectRetina&&zt.retina?2:1,s=this.getTileSize();i.width=s.x*r,i.height=s.y*r,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ri.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=E(n.project(e[0]),n.project(e[1])),o=i.min,r=i.max,s=(this._wmsVersion>=1.3&&this._crs===kn?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),a=ri.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});ri.WMS=ai,si.wms=function(t,e){return new ai(t,e)};var li=Cn.extend({options:{padding:.1},initialize:function(t){d(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ue(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=i.multiplyBy(-n).add(o).subtract(this._map._getNewPixelOrigin(t,e));zt.any3d?ge(this._container,r,n):ye(this._container,r)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new z(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ci=li.extend({options:{tolerance:0},getEvents:function(){var t=li.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){li.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Ce(t,"mousemove",this._onMouseMove,this),Ce(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ce(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){k(this._redrawRequest),delete this._ctx,re(this._container),Te(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){li.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=zt.retina?2:1;ye(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",zt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){li.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[r(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),o=[];for(n=0;n<i.length;n++){if(e=Number(i[n]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||P(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new z,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,o,r,s=t._parts,a=s.length,l=this._ctx;if(a){for(l.beginPath(),n=0;n<a;n++){for(i=0,o=s[n].length;i<o;i++)r=s[n][i],l[i?"lineTo":"moveTo"](r.x,r.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||i)/i;1!==o&&(n.save(),n.scale(1,o)),n.beginPath(),n.arc(e.x,e.y/o,i,0,2*Math.PI,!1),1!==o&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,i=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(i)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(n=e);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(he(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,o,r=this._drawFirst;r;r=r.next)(n=r.layer).options.interactive&&n._containsPoint(e)&&(o=n);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(ue(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(i(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;n&&(n.prev=i,i?i.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;i&&(i.next=n,n?n.prev=i:i&&(this._drawLast=i),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function ui(t){return zt.canvas?new ci(t):null}var hi=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),di={_initContainer:function(){this._container=oe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(li.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=hi("shape");ue(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=hi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;re(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,o=t._container;o.stroked=!!i.stroke,o.filled=!!i.fill,i.stroke?(e||(e=t._stroke=hi("stroke")),o.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=g(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(o.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=hi("fill")),o.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(o.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ae(t._container)},_bringToBack:function(t){le(t._container)}},pi=zt.vml?hi:K,fi=li.extend({_initContainer:function(){this._container=pi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=pi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){re(this._container),Te(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){li.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),ye(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=pi("path");t.options.className&&ue(e,t.options.className),t.options.interactive&&ue(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){re(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Y(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ae(t._path)},_bringToBack:function(t){le(t._path)}});function mi(t){return zt.svg||zt.vml?new fi(t):null}zt.vml&&fi.include(di),Ve.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&ui(t)||mi(t)}});var gi=$n.extend({initialize:function(t,e){$n.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=N(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});fi.create=pi,fi.pointsToPath=Y,Bn.geometryToLayer=Fn,Bn.coordsToLatLng=Zn,Bn.coordsToLatLngs=Hn,Bn.latLngToCoords=Un,Bn.latLngsToCoords=Wn,Bn.getFeature=Vn,Bn.asFeature=qn,Ve.mergeOptions({boxZoom:!0});var yi=Je.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Ce(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Te(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){re(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Gt(),xe(),this._startPoint=this._map.mouseEventToContainerPoint(t),Ce(document,{contextmenu:$e,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=oe("div","leaflet-zoom-box",this._container),ue(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new z(this._point,this._startPoint),n=e.getSize();ye(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(re(this._box),he(this._container,"leaflet-crosshair")),Kt(),be(),Te(document,{contextmenu:$e,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var e=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ve.addInitHook("addHandler","boxZoom",yi),Ve.mergeOptions({doubleClickZoom:!0});var _i=Je.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,o=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});Ve.addInitHook("addHandler","doubleClickZoom",_i),Ve.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var vi=Je.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new nn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ue(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){he(this._map._container,"leaflet-grab"),he(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=N(this._map.options.maxBounds);this._offsetLimit=E(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,r=(i+e+n)%t-e-n,s=Math.abs(o+n)<Math.abs(r+n)?o:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),i)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,a=o.multiplyBy(s/r),l=a.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),u=a.multiplyBy(c/l),h=c/(n.inertiaDeceleration*s),d=u.multiplyBy(-h/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),P(function(){e.panBy(d,{duration:h,easeLinearity:s,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}});Ve.addInitHook("addHandler","dragging",vi),Ve.mergeOptions({keyboard:!0,keyboardPanDelta:80});var xi=Je.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Ce(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Te(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,i=this._panKeys={},o=this.keyCodes;for(e=0,n=o.left.length;e<n;e++)i[o.left[e]]=[-1*t,0];for(e=0,n=o.right.length;e<n;e++)i[o.right[e]]=[t,0];for(e=0,n=o.down.length;e<n;e++)i[o.down[e]]=[0,t];for(e=0,n=o.up.length;e<n;e++)i[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,i=this._zoomKeys={},o=this.keyCodes;for(e=0,n=o.zoomIn.length;e<n;e++)i[o.zoomIn[e]]=t;for(e=0,n=o.zoomOut.length;e<n;e++)i[o.zoomOut[e]]=-t},_addHooks:function(){Ce(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Te(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,i=this._map;if(n in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(e=this._panKeys[n],t.shiftKey&&(e=j(e).multiplyBy(3)),i.options.maxBounds&&(e=i._limitOffset(j(e),i.options.maxBounds)),i.options.worldCopyJump){var o=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(e)));i.panTo(o)}else i.panBy(e)}else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}$e(t)}}});Ve.addInitHook("addHandler","keyboard",xi),Ve.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var bi=Je.extend({addHooks:function(){Ce(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Te(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ze(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),o),$e(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var i=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,r=n?Math.ceil(o/n)*n:o,s=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0,this._startTime=null,s&&("center"===t.options.scrollWheelZoom?t.setZoom(e+s):t.setZoomAround(this._lastMousePos,e+s))}});Ve.addInitHook("addHandler","scrollWheelZoom",bi);Ve.mergeOptions({tapHold:zt.touchNative&&zt.safari&&zt.mobile,tapTolerance:15});var wi=Je.extend({addHooks:function(){Ce(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Te(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new S(e.clientX,e.clientY),this._holdTimeout=setTimeout(i(function(){this._cancel(),this._isTapValid()&&(Ce(document,"touchend",Ne),Ce(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),600),Ce(document,"touchend touchcancel contextmenu",this._cancel,this),Ce(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Te(document,"touchend",Ne),Te(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Te(document,"touchend touchcancel contextmenu",this._cancel,this),Te(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new S(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});Ve.addInitHook("addHandler","tapHold",wi),Ve.mergeOptions({touchZoom:zt.touch,bounceAtZoomLimits:!0});var Ai=Je.extend({addHooks:function(){ue(this._map._container,"leaflet-touch-zoom"),Ce(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){he(this._map._container,"leaflet-touch-zoom"),Te(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Ce(document,"touchmove",this._onTouchMove,this),Ce(document,"touchend touchcancel",this._onTouchEnd,this),Ne(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),r=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&r>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===r)return}else{var s=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===r&&0===s.x&&0===s.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),k(this._animRequest);var a=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=P(a,this,!0),Ne(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,k(this._animRequest),Te(document,"touchmove",this._onTouchMove,this),Te(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ve.addInitHook("addHandler","touchZoom",Ai),Ve.BoxZoom=yi,Ve.DoubleClickZoom=_i,Ve.Drag=vi,Ve.Keyboard=xi,Ve.ScrollWheelZoom=bi,Ve.TapHold=wi,Ve.TouchZoom=Ai,t.Bounds=z,t.Browser=zt,t.CRS=D,t.Canvas=ci,t.Circle=Rn,t.CircleMarker=En,t.Class=C,t.Control=qe,t.DivIcon=ii,t.DivOverlay=ti,t.DomEvent=Ue,t.DomUtil=Me,t.Draggable=nn,t.Evented=T,t.FeatureGroup=Tn,t.GeoJSON=Bn,t.GridLayer=oi,t.Handler=Je,t.Icon=Ln,t.ImageOverlay=Xn,t.LatLng=$,t.LatLngBounds=R,t.Layer=Cn,t.LayerGroup=In,t.LineUtil=xn,t.Map=Ve,t.Marker=jn,t.Mixin=tn,t.Path=zn,t.Point=S,t.PolyUtil=ln,t.Polygon=$n,t.Polyline=Nn,t.Popup=ei,t.PosAnimation=We,t.Projection=An,t.Rectangle=gi,t.Renderer=li,t.SVG=fi,t.SVGOverlay=Jn,t.TileLayer=ri,t.Tooltip=ni,t.Transformation=W,t.Util=M,t.VideoOverlay=Qn,t.bind=i,t.bounds=E,t.canvas=ui,t.circle=function(t,e,n){return new Rn(t,e,n)},t.circleMarker=function(t,e){return new En(t,e)},t.control=Ge,t.divIcon=function(t){return new ii(t)},t.extend=e,t.featureGroup=function(t,e){return new Tn(t,e)},t.geoJSON=Kn,t.geoJson=Yn,t.gridLayer=function(t){return new oi(t)},t.icon=function(t){return new Ln(t)},t.imageOverlay=function(t,e,n){return new Xn(t,e,n)},t.latLng=B,t.latLngBounds=N,t.layerGroup=function(t,e){return new In(t,e)},t.map=function(t,e){return new Ve(t,e)},t.marker=function(t,e){return new jn(t,e)},t.point=j,t.polygon=function(t,e){return new $n(t,e)},t.polyline=function(t,e){return new Nn(t,e)},t.popup=function(t,e){return new ei(t,e)},t.rectangle=function(t,e){return new gi(t,e)},t.setOptions=d,t.stamp=r,t.svg=mi,t.svgOverlay=function(t,e,n){return new Jn(t,e,n)},t.tileLayer=si,t.tooltip=function(t,e){return new ni(t,e)},t.transformation=V,t.version="1.9.4",t.videoOverlay=function(t,e,n){return new Qn(t,e,n)};var Pi=window.L;t.noConflict=function(){return window.L=Pi,this},window.L=t}(e)},4405(t,e){"use strict";Symbol.for("react.transitional.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.consumer"),Symbol.for("react.context");var n=Symbol.for("react.forward_ref"),i=(Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"));Symbol.for("react.lazy"),Symbol.for("react.view_transition"),Symbol.for("react.client.reference");e.vM=n,e.lD=i},1020(t,e,n){"use strict";var i=n(690),o=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var i,r={},c=null,u=null;for(i in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)s.call(e,i)&&!l.hasOwnProperty(i)&&(r[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===r[i]&&(r[i]=e[i]);return{$$typeof:o,type:t,key:c,ref:u,props:r,_owner:a.current}}e.Fragment=r,e.jsx=c,e.jsxs=c},4848(t,e,n){"use strict";t.exports=n(1020)},5072(t){"use strict";var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var r={},s=[],a=0;a<t.length;a++){var l=t[a],c=i.base?l[0]+i.base:l[0],u=r[c]||0,h="".concat(c," ").concat(u);r[c]=u+1;var d=n(h),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var f=o(p,i);i.byIndex=a,e.splice(a,0,{identifier:h,updater:f,references:1})}s.push(h)}return s}function o(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,o){var r=i(t=t||[],o=o||{});return function(t){t=t||[];for(var s=0;s<r.length;s++){var a=n(r[s]);e[a].references--}for(var l=i(t,o),c=0;c<r.length;c++){var u=n(r[c]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}r=l}}},7659(t){"use strict";var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},540(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},5056(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7825(t){"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,o&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},1113(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},6426(t,e,n){"use strict";t.exports=n.p+"8f2c4d11474275fbc161.png"},3982(t,e,n){"use strict";t.exports=n.p+"416d91365b44e4b4f477.png"},9927(t,e,n){"use strict";t.exports=n.p+"2b3e1faf89f94a483539.png"},476(t){"use strict";t.exports=n},4774(t){"use strict";t.exports=i},674(t){"use strict";t.exports=e},1054(t){"use strict";t.exports=r},1386(t){"use strict";t.exports=s},690(e){"use strict";e.exports=t},1658(t){"use strict";t.exports=o},4634(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(null,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4994(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},4893(t){t.exports=function(t,e){if(null==t)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;n[i]=t[i]}return n},t.exports.__esModule=!0,t.exports.default=t.exports},8168(t,e,n){"use strict";function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i.apply(null,arguments)}n.d(e,{A:()=>i})},8587(t,e,n){"use strict";function i(t,e){if(null==t)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;n[i]=t[i]}return n}n.d(e,{A:()=>i})},4164(t,e,n){"use strict";function i(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=i(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}n.d(e,{A:()=>o});const o=function(){for(var t,e,n=0,o="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=i(t))&&(o&&(o+=" "),o+=e);return o}}},l={};function c(t){var e=l[t];if(void 0!==e)return e.exports;var n=l[t]={id:t,exports:{}};return a[t].call(n.exports,n,n.exports,c),n.exports}c.m=a,c.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return c.d(e,{a:e}),e},c.d=(t,e)=>{for(var n in e)c.o(e,n)&&!c.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),c.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),c.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;c.g.importScripts&&(t=c.g.location+"");var e=c.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!t||!/^http(s?):/.test(t));)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=t})(),c.b="undefined"!=typeof document&&document.baseURI||self.location.href,c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{ActivityFeed:()=>cy,AreaChart:()=>Qy,BarChart:()=>fg,Button:()=>o,DEFAULT_CHART_MARGIN:()=>tm,DataTable:()=>hy,DonutChart:()=>Jg,GeoPoints:()=>Xy,KpiStatsCard:()=>iy,LineChart:()=>rm,ScatterChart:()=>Fm,compactNumber:()=>im,formatRelativeTime:()=>ly,resolveMargin:()=>em});var t=c(690),e=c.n(t),n=c(674),i=c(4848);const o=({children:t,loading:e=!1,disabled:o,variant:r="contained",startIcon:s,...a})=>(0,i.jsx)(n.Button,{variant:r,disabled:o||e,startIcon:e?(0,i.jsx)(n.CircularProgress,{size:16,color:"inherit"}):s,...a,children:t});var r=c(8168),s=c(7379),a=c(8749),l=c(476);const h=(0,a.A)(),d=function(e=h){return function(e=null){const n=t.useContext(l.ThemeContext);return n&&(i=n,0!==Object.keys(i).length)?n:e;var i}(e)};var p=c(2765),f=c(8312);function m({props:t,name:e}){return function({props:t,name:e,defaultTheme:n,themeId:i}){let o=d(n);i&&(o=o[i]||o);const r=function(t){const{theme:e,name:n,props:i}=t;return e&&e.components&&e.components[n]&&e.components[n].defaultProps?(0,s.A)(e.components[n].defaultProps,i):i}({theme:o,name:e,props:t});return r}({props:t,name:e,defaultTheme:p.A,themeId:f.A})}var g=c(8587);function y(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function _(t){return function(){return t}}function v(t){this._context=t}function x(t){return new v(t)}Object.defineProperty(y,"name",{value:"default",configurable:!0}),Array.prototype.slice,Object.defineProperty(_,"name",{value:"default",configurable:!0}),Object.defineProperty(x,"name",{value:"default",configurable:!0}),v.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};const b=Math.PI,w=2*b,A=1e-6,P=w-A;function k(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class M{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?k:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return k;const n=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,i){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,e,n,i,o,r){this._append`C${+t},${+e},${+n},${+i},${this._x1=+o},${this._y1=+r}`}arcTo(t,e,n,i,o){if(t=+t,e=+e,n=+n,i=+i,(o=+o)<0)throw new Error(`negative radius: ${o}`);let r=this._x1,s=this._y1,a=n-t,l=i-e,c=r-t,u=s-e,h=c*c+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>A)if(Math.abs(u*a-l*c)>A&&o){let d=n-r,p=i-s,f=a*a+l*l,m=d*d+p*p,g=Math.sqrt(f),y=Math.sqrt(h),_=o*Math.tan((b-Math.acos((f+h-m)/(2*g*y)))/2),v=_/y,x=_/g;Math.abs(v-1)>A&&this._append`L${t+v*c},${e+v*u}`,this._append`A${o},${o},0,0,${+(u*d>c*p)},${this._x1=t+x*a},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,i,o,r){if(t=+t,e=+e,r=!!r,(n=+n)<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),a=n*Math.sin(i),l=t+s,c=e+a,u=1^r,h=r?i-o:o-i;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>A||Math.abs(this._y1-c)>A)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%w+w),h>P?this._append`A${n},${n},0,1,${u},${t-s},${e-a}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:h>A&&this._append`A${n},${n},0,${+(h>=b)},${u},${this._x1=t+n*Math.cos(o)},${this._y1=e+n*Math.sin(o)}`)}rect(t,e,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function C(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new M(e)}function I(t){return t[0]}function T(t){return t[1]}function L(t,e){var n=_(!0),i=null,o=x,r=null,s=C(a);function a(a){var l,c,u,h=(a=y(a)).length,d=!1;for(null==i&&(r=o(u=s())),l=0;l<=h;++l)!(l<h&&n(c=a[l],l,a))===d&&((d=!d)?r.lineStart():r.lineEnd()),d&&r.point(+t(c,l,a),+e(c,l,a));if(u)return r=null,u+""||null}return t="function"==typeof t?t:void 0===t?I:_(t),e="function"==typeof e?e:void 0===e?T:_(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:_(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:_(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:_(!!t),a):n},a.curve=function(t){return arguments.length?(o=t,null!=i&&(r=o(i)),a):o},a.context=function(t){return arguments.length?(null==t?i=r=null:r=o(i=t),a):i},a}function S(t,e,n){var i=null,o=_(!0),r=null,s=x,a=null,l=C(c);function c(c){var u,h,d,p,f,m=(c=y(c)).length,g=!1,_=new Array(m),v=new Array(m);for(null==r&&(a=s(f=l())),u=0;u<=m;++u){if(!(u<m&&o(p=c[u],u,c))===g)if(g=!g)h=u,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),d=u-1;d>=h;--d)a.point(_[d],v[d]);a.lineEnd(),a.areaEnd()}g&&(_[u]=+t(p,u,c),v[u]=+e(p,u,c),a.point(i?+i(p,u,c):_[u],n?+n(p,u,c):v[u]))}if(f)return a=null,f+""||null}function u(){return L().defined(o).curve(s).context(r)}return t="function"==typeof t?t:void 0===t?I:_(+t),e="function"==typeof e?e:_(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?T:_(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:_(+e),i=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:_(+e),c):t},c.x1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:_(+t),c):i},c.y=function(t){return arguments.length?(e="function"==typeof t?t:_(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:_(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:_(+t),c):n},c.lineX0=c.lineY0=function(){return u().x(t).y(e)},c.lineY1=function(){return u().x(t).y(n)},c.lineX1=function(){return u().x(i).y(e)},c.defined=function(t){return arguments.length?(o="function"==typeof t?t:_(!!t),c):o},c.curve=function(t){return arguments.length?(s=t,null!=r&&(a=s(r)),c):s},c.context=function(t){return arguments.length?(null==t?r=a=null:a=s(r=t),c):r},c}Object.defineProperty(L,"name",{value:"default",configurable:!0}),Object.defineProperty(S,"name",{value:"default",configurable:!0});const O=t.createContext({isInitialized:!1,data:{xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]}}),j=()=>{const{data:e}=t.useContext(O);return e};var z=c(5659),E=c(1523);var R=c(4164);const N=function(t){if(void 0===t)return{};const e={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&"function"==typeof t[e])).forEach(n=>{e[n]=t[n]}),e},$=function(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:s}=t;if(!e){const t=(0,R.A)(null==n?void 0:n.className,s,null==o?void 0:o.className,null==i?void 0:i.className),e=(0,r.A)({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),a=(0,r.A)({},n,o,i);return t.length>0&&(a.className=t),Object.keys(e).length>0&&(a.style=e),{props:a,internalRef:void 0}}const a=function(t,e=[]){if(void 0===t)return{};const n={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof t[n]&&!e.includes(n)).forEach(e=>{n[e]=t[e]}),n}((0,r.A)({},o,i)),l=N(i),c=N(o),u=e(a),h=(0,R.A)(null==u?void 0:u.className,null==n?void 0:n.className,s,null==o?void 0:o.className,null==i?void 0:i.className),d=(0,r.A)({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),p=(0,r.A)({},u,n,c,l);return h.length>0&&(p.className=h),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}},B=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"],F=function(t){var e;const{elementType:n,externalSlotProps:i,ownerState:o,skipResolvingSlotProps:s=!1}=t,a=(0,g.A)(t,B),l=s?{}:function(t,e,n){return"function"==typeof t?t(e,n):t}(i,o),{props:c,internalRef:u}=$((0,r.A)({},a,{externalSlotProps:l})),h=(0,E.A)(u,null==l?void 0:l.ref,null==(e=t.additionalProps)?void 0:e.ref);return function(t,e,n){return void 0===t||"string"==typeof t?e:(0,r.A)({},e,{ownerState:(0,r.A)({},e.ownerState,n)})}(n,(0,r.A)({},c,{ref:h}),o)};var D=c(1609),Z=c(8413);const H=t.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null}),U=(t,e)=>{switch(e.type){case"enterItem":return(0,r.A)({},t,{item:e.data});case"exitChart":return null===t.item&&null===t.axis.x&&null===t.axis.y?t:(0,r.A)({},t,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return(0,r.A)({},t,{useVoronoiInteraction:e.useVoronoiInteraction});case"leaveItem":return null===t.item||Object.keys(e.data).some(n=>e.data[n]!==t.item[n])?t:(0,r.A)({},t,{item:null});case"updateAxis":return e.data.x===t.axis.x&&e.data.y===t.axis.y?t:(0,r.A)({},t,{axis:e.data});default:return t}};function W(e){const{children:n}=e,[o,s]=t.useReducer(U,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),a=t.useMemo(()=>(0,r.A)({},o,{dispatch:s}),[o]);return(0,i.jsx)(H.Provider,{value:a,children:n})}const V=t.createContext({isInitialized:!1,data:{highlightedItem:null,setHighlighted:()=>{},clearHighlighted:()=>{},isHighlighted:()=>!1,isFaded:()=>!1}});function q(){const{isInitialized:e,data:n}=t.useContext(V);if(!e)throw new Error(["MUI X: Could not find the highlighted ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n}const G=e=>{const{dispatch:n}=t.useContext(H),{setHighlighted:i,clearHighlighted:o}=q();return e?()=>({}):t=>({onPointerEnter:()=>{n({type:"enterItem",data:t}),i({seriesId:t.seriesId,dataIndex:t.dataIndex})},onPointerLeave:e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),n({type:"leaveItem",data:t}),o()},onPointerDown:t=>{t.currentTarget.hasPointerCapture(t.pointerId)&&t.currentTarget.releasePointerCapture(t.pointerId)}})};var K=c(9245),Y=dt(),X=t=>lt(t,Y),Q=dt();X.write=t=>lt(t,Q);var J=dt();X.onStart=t=>lt(t,J);var tt=dt();X.onFrame=t=>lt(t,tt);var et=dt();X.onFinish=t=>lt(t,et);var nt=[];X.setTimeout=(t,e)=>{const n=X.now()+e,i=()=>{const t=nt.findIndex(t=>t.cancel==i);~t&&nt.splice(t,1),st-=~t?1:0},o={time:n,handler:t,cancel:i};return nt.splice(it(n),0,o),st+=1,ct(),o};var it=t=>~(~nt.findIndex(e=>e.time>t)||~nt.length);X.cancel=t=>{J.delete(t),tt.delete(t),et.delete(t),Y.delete(t),Q.delete(t)},X.sync=t=>{at=!0,X.batchedUpdates(t),at=!1},X.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function i(...t){e=t,X.onStart(n)}return i.handler=t,i.cancel=()=>{J.delete(n),e=null},i};var ot="undefined"!=typeof window?window.requestAnimationFrame:()=>{};X.use=t=>ot=t,X.now="undefined"!=typeof performance?()=>performance.now():Date.now,X.batchedUpdates=t=>t(),X.catch=console.error,X.frameLoop="always",X.advance=()=>{"demand"!==X.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):ht()};var rt=-1,st=0,at=!1;function lt(t,e){at?(e.delete(t),t(0)):(e.add(t),ct())}function ct(){rt<0&&(rt=0,"demand"!==X.frameLoop&&ot(ut))}function ut(){~rt&&(ot(ut),X.batchedUpdates(ht))}function ht(){const t=rt;rt=X.now();const e=it(rt);e&&(pt(nt.splice(0,e),t=>t.handler()),st-=e),st?(J.flush(),Y.flush(t?Math.min(64,rt-t):16.667),tt.flush(),Q.flush(),et.flush()):rt=-1}function dt(){let t=new Set,e=t;return{add(n){st+=e!=t||t.has(n)?0:1,t.add(n)},delete:n=>(st-=e==t&&t.has(n)?1:0,t.delete(n)),flush(n){e.size&&(t=new Set,st-=e.size,pt(e,e=>e(n)&&t.add(e)),st+=t.size,e=t)}}}function pt(t,e){t.forEach(t=>{try{e(t)}catch(t){X.catch(t)}})}var ft=Object.defineProperty,mt={};function gt(){}((t,e)=>{for(var n in e)ft(t,n,{get:e[n],enumerable:!0})})(mt,{assign:()=>Lt,colors:()=>Ct,createStringInterpolator:()=>At,skipAnimation:()=>It,to:()=>Pt,willAdvance:()=>Tt});var yt={arr:Array.isArray,obj:t=>!!t&&"Object"===t.constructor.name,fun:t=>"function"==typeof t,str:t=>"string"==typeof t,num:t=>"number"==typeof t,und:t=>void 0===t};function _t(t,e){if(yt.arr(t)){if(!yt.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}var vt=(t,e)=>t.forEach(e);function xt(t,e,n){if(yt.arr(t))for(let i=0;i<t.length;i++)e.call(n,t[i],`${i}`);else for(const i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i)}var bt=t=>yt.und(t)?[]:yt.arr(t)?t:[t];function wt(t,e){if(t.size){const n=Array.from(t);t.clear(),vt(n,e)}}var At,Pt,kt=(t,...e)=>wt(t,t=>t(...e)),Mt=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ct=null,It=!1,Tt=gt,Lt=t=>{t.to&&(Pt=t.to),t.now&&(X.now=t.now),void 0!==t.colors&&(Ct=t.colors),null!=t.skipAnimation&&(It=t.skipAnimation),t.createStringInterpolator&&(At=t.createStringInterpolator),t.requestAnimationFrame&&X.use(t.requestAnimationFrame),t.batchedUpdates&&(X.batchedUpdates=t.batchedUpdates),t.willAdvance&&(Tt=t.willAdvance),t.frameLoop&&(X.frameLoop=t.frameLoop)},St=new Set,Ot=[],jt=[],zt=0,Et={get idle(){return!St.size&&!Ot.length},start(t){zt>t.priority?(St.add(t),X.onStart(Rt)):(Nt(t),X(Bt))},advance:Bt,sort(t){if(zt)X.onFrame(()=>Et.sort(t));else{const e=Ot.indexOf(t);~e&&(Ot.splice(e,1),$t(t))}},clear(){Ot=[],St.clear()}};function Rt(){St.forEach(Nt),St.clear(),X(Bt)}function Nt(t){Ot.includes(t)||$t(t)}function $t(t){Ot.splice(function(e){const n=e.findIndex(e=>e.priority>t.priority);return n<0?e.length:n}(Ot),0,t)}function Bt(t){const e=jt;for(let n=0;n<Ot.length;n++){const i=Ot[n];zt=i.priority,i.idle||(Tt(i),i.advance(t),i.idle||e.push(i))}return zt=0,(jt=Ot).length=0,(Ot=e).length>0}var Ft="[-+]?\\d*\\.?\\d+",Dt=Ft+"%";function Zt(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var Ht=new RegExp("rgb"+Zt(Ft,Ft,Ft)),Ut=new RegExp("rgba"+Zt(Ft,Ft,Ft,Ft)),Wt=new RegExp("hsl"+Zt(Ft,Dt,Dt)),Vt=new RegExp("hsla"+Zt(Ft,Dt,Dt,Ft)),qt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Gt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Kt=/^#([0-9a-fA-F]{6})$/,Yt=/^#([0-9a-fA-F]{8})$/;function Xt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Qt(t,e,n){const i=n<.5?n*(1+e):n+e-n*e,o=2*n-i,r=Xt(o,i,t+1/3),s=Xt(o,i,t),a=Xt(o,i,t-1/3);return Math.round(255*r)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function Jt(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function te(t){return(parseFloat(t)%360+360)%360/360}function ee(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(255*e)}function ne(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function ie(t){let e=function(t){let e;return"number"==typeof t?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Kt.exec(t))?parseInt(e[1]+"ff",16)>>>0:Ct&&void 0!==Ct[t]?Ct[t]:(e=Ht.exec(t))?(Jt(e[1])<<24|Jt(e[2])<<16|Jt(e[3])<<8|255)>>>0:(e=Ut.exec(t))?(Jt(e[1])<<24|Jt(e[2])<<16|Jt(e[3])<<8|ee(e[4]))>>>0:(e=qt.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Yt.exec(t))?parseInt(e[1],16)>>>0:(e=Gt.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Wt.exec(t))?(255|Qt(te(e[1]),ne(e[2]),ne(e[3])))>>>0:(e=Vt.exec(t))?(Qt(te(e[1]),ne(e[2]),ne(e[3]))|ee(e[4]))>>>0:null}(t);return null===e?t:(e=e||0,`rgba(${(4278190080&e)>>>24}, ${(16711680&e)>>>16}, ${(65280&e)>>>8}, ${(255&e)/255})`)}var oe=(t,e,n)=>{if(yt.fun(t))return t;if(yt.arr(t))return oe({range:t,output:e,extrapolate:n});if(yt.str(t.output[0]))return At(t);const i=t,o=i.output,r=i.range||[0,1],s=i.extrapolateLeft||i.extrapolate||"extend",a=i.extrapolateRight||i.extrapolate||"extend",l=i.easing||(t=>t);return t=>{const e=function(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}(t,r);return function(t,e,n,i,o,r,s,a,l){let c=l?l(t):t;if(c<e){if("identity"===s)return c;"clamp"===s&&(c=e)}if(c>n){if("identity"===a)return c;"clamp"===a&&(c=n)}return i===o?i:e===n?t<=e?i:o:(e===-1/0?c=-c:n===1/0?c-=e:c=(c-e)/(n-e),c=r(c),i===-1/0?c=-c:o===1/0?c+=i:c=c*(o-i)+i,c)}(t,r[e],r[e+1],o[e],o[e+1],l,s,a,i.map)}},re=1.70158,se=1.525*re,ae=re+1,le=2*Math.PI/3,ce=2*Math.PI/4.5,ue=t=>{const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},he={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>0===t?0:Math.pow(2,10*t-10),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>0===t?0:1===t?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>ae*t*t*t-re*t*t,easeOutBack:t=>1+ae*Math.pow(t-1,3)+re*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*(7.189819*t-se)/2:(Math.pow(2*t-2,2)*((se+1)*(2*t-2)+se)+2)/2,easeInElastic:t=>0===t?0:1===t?1:-Math.pow(2,10*t-10)*Math.sin((10*t-10.75)*le),easeOutElastic:t=>0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin((10*t-.75)*le)+1,easeInOutElastic:t=>0===t?0:1===t?1:t<.5?-Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*ce)/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*ce)/2+1,easeInBounce:t=>1-ue(1-t),easeOutBounce:ue,easeInOutBounce:t=>t<.5?(1-ue(1-2*t))/2:(1+ue(2*t-1))/2,steps:(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t;return o=("end"===e?Math.floor(i):Math.ceil(i))/t,Math.min(Math.max(o,0),1);var o}},de=Symbol.for("FluidValue.get"),pe=Symbol.for("FluidValue.observers"),fe=t=>Boolean(t&&t[de]),me=t=>t&&t[de]?t[de]():t,ge=t=>t[pe]||null;function ye(t,e){const n=t[pe];n&&n.forEach(t=>{!function(t,e){t.eventObserved?t.eventObserved(e):t(e)}(t,e)})}var _e=class{constructor(t){if(!t&&!(t=this.get))throw Error("Unknown getter");ve(this,t)}},ve=(t,e)=>Ae(t,de,e);function xe(t,e){if(t[de]){let n=t[pe];n||Ae(t,pe,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function be(t,e){const n=t[pe];if(n&&n.has(e)){const i=n.size-1;i?n.delete(e):t[pe]=null,t.observerRemoved&&t.observerRemoved(i,e)}}var we,Ae=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),Pe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ke=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Me=new RegExp(`(${Pe.source})(%|[a-z]+)`,"i"),Ce=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ie=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Te=t=>{const[e,n]=Le(t);if(!e||Mt())return t;const i=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(i)return i.trim();if(n&&n.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(n)||t}return n&&Ie.test(n)?Te(n):n||t},Le=t=>{const e=Ie.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]},Se=(t,e,n,i,o)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(i)}, ${o})`,Oe=t=>{we||(we=Ct?new RegExp(`(${Object.keys(Ct).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(t=>me(t).replace(Ie,Te).replace(ke,ie).replace(we,ie)),n=e.map(t=>t.match(Pe).map(Number)),i=n[0].map((t,e)=>n.map(t=>{if(!(e in t))throw Error('The arity of each "output" value must be equal');return t[e]})).map(e=>oe({...t,output:e}));return t=>{const n=!Me.test(e[0])&&e.find(t=>Me.test(t))?.replace(Pe,"");let o=0;return e[0].replace(Pe,()=>`${i[o++](t)}${n||""}`).replace(Ce,Se)}},je="react-spring: ",ze=t=>{const e=t;let n=!1;if("function"!=typeof e)throw new TypeError(`${je}once requires a function parameter`);return(...t)=>{n||(e(...t),n=!0)}},Ee=ze(console.warn),Re=ze(console.warn);function Ne(t){return yt.str(t)&&("#"==t[0]||/\d/.test(t)||!Mt()&&Ie.test(t)||t in(Ct||{}))}var $e=Mt()?t.useEffect:t.useLayoutEffect;function Be(){const e=(0,t.useState)()[1],n=(()=>{const e=(0,t.useRef)(!1);return $e(()=>(e.current=!0,()=>{e.current=!1}),[]),e})();return()=>{n.current&&e(Math.random())}}var Fe=e=>(0,t.useEffect)(e,De),De=[];function Ze(e){const n=(0,t.useRef)();return(0,t.useEffect)(()=>{n.current=e}),n.current}var He=Symbol.for("Animated:node"),Ue=t=>t&&t[He],We=(t,e)=>((t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}))(t,He,e),Ve=t=>t&&t[He]&&t[He].getPayload(),qe=class{constructor(){We(this,this)}getPayload(){return this.payload||[]}},Ge=class extends qe{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,yt.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Ge(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return yt.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value!==t&&(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,yt.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Ke=class extends Ge{constructor(t){super(0),this._string=null,this._toString=oe({output:[t,t]})}static create(t){return new Ke(t)}getValue(){const t=this._string;return null==t?this._string=this._toString(this._value):t}setValue(t){if(yt.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else{if(!super.setValue(t))return!1;this._string=null}return!0}reset(t){t&&(this._toString=oe({output:[this.getValue(),t]})),this._value=0,super.reset()}},Ye={dependencies:null},Xe=class extends qe{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const e={};return xt(this.source,(n,i)=>{(t=>!!t&&t[He]===t)(n)?e[i]=n.getValue(t):fe(n)?e[i]=me(n):t||(e[i]=n)}),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&vt(this.payload,t=>t.reset())}_makePayload(t){if(t){const e=new Set;return xt(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){Ye.dependencies&&fe(t)&&Ye.dependencies.add(t);const e=Ve(t);e&&vt(e,t=>this.add(t))}},Qe=class extends Xe{constructor(t){super(t)}static create(t){return new Qe(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const e=this.getPayload();return t.length==e.length?e.map((e,n)=>e.setValue(t[n])).some(Boolean):(super.setValue(t.map(Je)),!0)}};function Je(t){return(Ne(t)?Ke:Ge).create(t)}function tn(t){const e=Ue(t);return e?e.constructor:yt.arr(t)?Qe:Ne(t)?Ke:Ge}var en=(e,n)=>{const i=!yt.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,t.forwardRef)((o,r)=>{const s=(0,t.useRef)(null),a=i&&(0,t.useCallback)(t=>{s.current=function(t,e){return t&&(yt.fun(t)?t(e):t.current=e),e}(r,t)},[r]),[l,c]=function(t,e){const n=new Set;return Ye.dependencies=n,t.style&&(t={...t,style:e.createAnimatedStyle(t.style)}),t=new Xe(t),Ye.dependencies=null,[t,n]}(o,n),u=Be(),h=()=>{const t=s.current;i&&!t||!1===(!!t&&n.applyAnimatedValues(t,l.getValue(!0)))&&u()},d=new nn(h,c),p=(0,t.useRef)();$e(()=>(p.current=d,vt(c,t=>xe(t,d)),()=>{p.current&&(vt(p.current.deps,t=>be(t,p.current)),X.cancel(p.current.update))})),(0,t.useEffect)(h,[]),Fe(()=>()=>{const t=p.current;vt(t.deps,e=>be(e,t))});const f=n.getComponentProps(l.getValue());return t.createElement(e,{...f,ref:a})})},nn=class{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){"change"==t.type&&X.write(this.update)}},on=Symbol.for("AnimatedComponent"),rn=t=>yt.str(t)?t:t&&yt.str(t.displayName)?t.displayName:yt.fun(t)&&t.name||null;function sn(t,...e){return yt.fun(t)?t(...e):t}var an=(t,e)=>!0===t||!!(e&&t&&(yt.fun(t)?t(e):bt(t).includes(e))),ln=(t,e)=>yt.obj(t)?e&&t[e]:t,cn=(t,e)=>!0===t.default?t[e]:t.default?t.default[e]:void 0,un=t=>t,hn=(t,e=un)=>{let n=dn;t.default&&!0!==t.default&&(t=t.default,n=Object.keys(t));const i={};for(const o of n){const n=e(t[o],o);yt.und(n)||(i[o]=n)}return i},dn=["config","onProps","onStart","onChange","onPause","onResume","onRest"],pn={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function fn(t){const e=function(t){const e={};let n=0;if(xt(t,(t,i)=>{pn[i]||(e[i]=t,n++)}),n)return e}(t);if(e){const n={to:e};return xt(t,(t,i)=>i in e||(n[i]=t)),n}return{...t}}function mn(t){return t=me(t),yt.arr(t)?t.map(mn):Ne(t)?mt.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function gn(t){for(const e in t)return!0;return!1}function yn(t){return yt.fun(t)||yt.arr(t)&&yt.obj(t[0])}function _n(t,e){t.ref?.delete(t),e?.delete(t)}function vn(t,e){e&&t.ref!==e&&(t.ref?.delete(t),e.add(t),t.ref=e)}var xn={tension:170,friction:26,mass:1,damping:1,easing:he.linear,clamp:!1},bn=class{constructor(){this.velocity=0,Object.assign(this,xn)}};function wn(t,e){if(yt.und(e.decay)){const n=!yt.und(e.tension)||!yt.und(e.friction);!n&&yt.und(e.frequency)&&yt.und(e.damping)&&yt.und(e.mass)||(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}else t.duration=void 0}var An=[],Pn=class{constructor(){this.changed=!1,this.values=An,this.toValues=null,this.fromValues=An,this.config=new bn,this.immediate=!1}};function kn(t,{key:e,props:n,defaultProps:i,state:o,actions:r}){return new Promise((s,a)=>{let l,c,u=an(n.cancel??i?.cancel,e);if(u)p();else{yt.und(n.pause)||(o.paused=an(n.pause,e));let t=i?.pause;!0!==t&&(t=o.paused||an(t,e)),l=sn(n.delay||0,e),t?(o.resumeQueue.add(d),r.pause()):(r.resume(),d())}function h(){o.resumeQueue.add(d),o.timeouts.delete(c),c.cancel(),l=c.time-X.now()}function d(){l>0&&!mt.skipAnimation?(o.delayed=!0,c=X.setTimeout(p,l),o.pauseQueue.add(h),o.timeouts.add(c)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(h),o.timeouts.delete(c),t<=(o.cancelId||0)&&(u=!0);try{r.start({...n,callId:t,cancel:u},s)}catch(t){a(t)}}})}var Mn=(t,e)=>1==e.length?e[0]:e.some(t=>t.cancelled)?Tn(t.get()):e.every(t=>t.noop)?Cn(t.get()):In(t.get(),e.every(t=>t.finished)),Cn=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),In=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),Tn=t=>({value:t,cancelled:!0,finished:!1});function Ln(t,e,n,i){const{callId:o,parentId:r,onRest:s}=e,{asyncTo:a,promise:l}=n;return r||t!==a||e.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=t;const c=hn(e,(t,e)=>"onRest"===e?void 0:t);let u,h;const d=new Promise((t,e)=>(u=t,h=e)),p=t=>{const e=o<=(n.cancelId||0)&&Tn(i)||o!==n.asyncId&&In(i,!1);if(e)throw t.result=e,h(t),t},f=(t,e)=>{const r=new On,s=new jn;return(async()=>{if(mt.skipAnimation)throw Sn(n),s.result=In(i,!1),h(s),s;p(r);const a=yt.obj(t)?{...t}:{...e,to:t};a.parentId=o,xt(c,(t,e)=>{yt.und(a[e])&&(a[e]=t)});const l=await i.start(a);return p(r),n.paused&&await new Promise(t=>{n.resumeQueue.add(t)}),l})()};let m;if(mt.skipAnimation)return Sn(n),In(i,!1);try{let e;e=yt.arr(t)?(async t=>{for(const e of t)await f(e)})(t):Promise.resolve(t(f,i.stop.bind(i))),await Promise.all([e.then(u),d]),m=In(i.get(),!0,!1)}catch(t){if(t instanceof On)m=t.result;else{if(!(t instanceof jn))throw t;m=t.result}}finally{o==n.asyncId&&(n.asyncId=r,n.asyncTo=r?a:void 0,n.promise=r?l:void 0)}return yt.fun(s)&&X.batchedUpdates(()=>{s(m,i,i.item)}),m})():l}function Sn(t,e){wt(t.timeouts,t=>t.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}var On=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},jn=class extends Error{constructor(){super("SkipAnimationSignal")}},zn=t=>t instanceof Rn,En=1,Rn=class extends _e{constructor(){super(...arguments),this.id=En++,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Ue(this);return t&&t.getValue()}to(...t){return mt.to(this,t)}interpolate(...t){return Ee(`${je}The "interpolate" function is deprecated in v9 (use "to" instead)`),mt.to(this,t)}toJSON(){return this.get()}observerAdded(t){1==t&&this._attach()}observerRemoved(t){0==t&&this._detach()}_attach(){}_detach(){}_onChange(t,e=!1){ye(this,{type:"change",parent:this,value:t,idle:e})}_onPriorityChange(t){this.idle||Et.sort(this),ye(this,{type:"priority",parent:this,priority:t})}},Nn=Symbol.for("SpringPhase"),$n=t=>(1&t[Nn])>0,Bn=t=>(2&t[Nn])>0,Fn=t=>(4&t[Nn])>0,Dn=(t,e)=>e?t[Nn]|=3:t[Nn]&=-3,Zn=(t,e)=>e?t[Nn]|=4:t[Nn]&=-5,Hn=class extends Rn{constructor(t,e){if(super(),this.animation=new Pn,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!yt.und(t)||!yt.und(e)){const n=yt.obj(t)?{...t}:{...e,from:t};yt.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Bn(this)||this._state.asyncTo)||Fn(this)}get goal(){return me(this.animation.to)}get velocity(){const t=Ue(this);return t instanceof Ge?t.lastVelocity||0:t.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return $n(this)}get isAnimating(){return Bn(this)}get isPaused(){return Fn(this)}get isDelayed(){return this._state.delayed}advance(t){let e=!0,n=!1;const i=this.animation;let{toValues:o}=i;const{config:r}=i,s=Ve(i.to);!s&&fe(i.to)&&(o=bt(me(i.to))),i.values.forEach((a,l)=>{if(a.done)return;const c=a.constructor==Ke?1:s?s[l].lastPosition:o[l];let u=i.immediate,h=c;if(!u){if(h=a.lastPosition,r.tension<=0)return void(a.done=!0);let e=a.elapsedTime+=t;const n=i.fromValues[l],o=null!=a.v0?a.v0:a.v0=yt.arr(r.velocity)?r.velocity[l]:r.velocity;let s;const d=r.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(yt.und(r.duration))if(r.decay){const t=!0===r.decay?.998:r.decay,i=Math.exp(-(1-t)*e);h=n+o/(1-t)*(1-i),u=Math.abs(a.lastPosition-h)<=d,s=o*i}else{s=null==a.lastVelocity?o:a.lastVelocity;const e=r.restVelocity||d/10,i=r.clamp?0:r.bounce,l=!yt.und(i),p=n==c?a.v0>0:n<c;let f,m=!1;const g=1,y=Math.ceil(t/g);for(let t=0;t<y&&(f=Math.abs(s)>e,f||(u=Math.abs(c-h)<=d,!u));++t)l&&(m=h==c||h>c==p,m&&(s=-s*i,h=c)),s+=(1e-6*-r.tension*(h-c)+.001*-r.friction*s)/r.mass*g,h+=s*g}else{let i=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,a.durationProgress>0&&(a.elapsedTime=r.duration*a.durationProgress,e=a.elapsedTime+=t)),i=(r.progress||0)+e/this._memoizedDuration,i=i>1?1:i<0?0:i,a.durationProgress=i),h=n+r.easing(i)*(c-n),s=(h-a.lastPosition)/t,u=1==i}a.lastVelocity=s,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),u=!0)}s&&!s[l].done&&(u=!1),u?a.done=!0:e=!1,a.setValue(h,r.round)&&(n=!0)});const a=Ue(this),l=a.getValue();if(e){const t=me(i.to);l===t&&!n||r.decay?n&&r.decay&&this._onChange(l):(a.setValue(t),this._onChange(t)),this._stop()}else n&&this._onChange(l)}set(t){return X.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Bn(this)){const{to:t,config:e}=this.animation;X.batchedUpdates(()=>{this._onStart(),e.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,e){let n;return yt.und(t)?(n=this.queue||[],this.queue=[]):n=[yt.obj(t)?t:{...e,to:t}],Promise.all(n.map(t=>this._update(t))).then(t=>Mn(this,t))}stop(t){const{to:e}=this.animation;return this._focus(this.get()),Sn(this._state,t&&this._lastCallId),X.batchedUpdates(()=>this._stop(e,t)),this}reset(){this._update({reset:!0})}eventObserved(t){"change"==t.type?this._start():"priority"==t.type&&(this.priority=t.priority+1)}_prepareNode(t){const e=this.key||"";let{to:n,from:i}=t;n=yt.obj(n)?n[e]:n,(null==n||yn(n))&&(n=void 0),i=yt.obj(i)?i[e]:i,null==i&&(i=void 0);const o={to:n,from:i};return $n(this)||(t.reverse&&([n,i]=[i,n]),i=me(i),yt.und(i)?Ue(this)||this._set(n):this._set(i)),o}_update({...t},e){const{key:n,defaultProps:i}=this;t.default&&Object.assign(i,hn(t,(t,e)=>/^on/.test(e)?ln(t,n):t)),Yn(this,t,"onProps"),Xn(this,"onProps",t,this);const o=this._prepareNode(t);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const r=this._state;return kn(++this._lastCallId,{key:n,props:t,defaultProps:i,state:r,actions:{pause:()=>{Fn(this)||(Zn(this,!0),kt(r.pauseQueue),Xn(this,"onPause",In(this,Un(this,this.animation.to)),this))},resume:()=>{Fn(this)&&(Zn(this,!1),Bn(this)&&this._resume(),kt(r.resumeQueue),Xn(this,"onResume",In(this,Un(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(n=>{if(t.loop&&n.finished&&(!e||!n.noop)){const e=Wn(t);if(e)return this._update(e,!0)}return n})}_merge(t,e,n){if(e.cancel)return this.stop(!0),n(Tn(this));const i=!yt.und(t.to),o=!yt.und(t.from);if(i||o){if(!(e.callId>this._lastToId))return n(Tn(this));this._lastToId=e.callId}const{key:r,defaultProps:s,animation:a}=this,{to:l,from:c}=a;let{to:u=l,from:h=c}=t;!o||i||e.default&&!yt.und(u)||(u=h),e.reverse&&([u,h]=[h,u]);const d=!_t(h,c);d&&(a.from=h),h=me(h);const p=!_t(u,l);p&&this._focus(u);const f=yn(e.to),{config:m}=a,{decay:g,velocity:y}=m;(i||o)&&(m.velocity=0),e.config&&!f&&function(t,e,n){n&&(wn(n={...n},e),e={...n,...e}),wn(t,e),Object.assign(t,e);for(const e in xn)null==t[e]&&(t[e]=xn[e]);let{frequency:i,damping:o}=t;const{mass:r}=t;yt.und(i)||(i<.01&&(i=.01),o<0&&(o=0),t.tension=Math.pow(2*Math.PI/i,2)*r,t.friction=4*Math.PI*o*r/i)}(m,sn(e.config,r),e.config!==s.config?sn(s.config,r):void 0);let _=Ue(this);if(!_||yt.und(u))return n(In(this,!0));const v=yt.und(e.reset)?o&&!e.default:!yt.und(h)&&an(e.reset,r),x=v?h:this.get(),b=mn(u),w=yt.num(b)||yt.arr(b)||Ne(b),A=!f&&(!w||an(s.immediate||e.immediate,r));if(p){const t=tn(u);if(t!==_.constructor){if(!A)throw Error(`Cannot animate between ${_.constructor.name} and ${t.name}, as the "to" prop suggests`);_=this._set(b)}}const P=_.constructor;let k=fe(u),M=!1;if(!k){const t=v||!$n(this)&&d;(p||t)&&(M=_t(mn(x),b),k=!M),(_t(a.immediate,A)||A)&&_t(m.decay,g)&&_t(m.velocity,y)||(k=!0)}if(M&&Bn(this)&&(a.changed&&!v?k=!0:k||this._stop(l)),!f&&((k||fe(l))&&(a.values=_.getPayload(),a.toValues=fe(u)?null:P==Ke?[1]:bt(b)),a.immediate!=A&&(a.immediate=A,A||v||this._set(l)),k)){const{onRest:t}=a;vt(Kn,t=>Yn(this,e,t));const i=In(this,Un(this,l));kt(this._pendingCalls,i),this._pendingCalls.add(n),a.changed&&X.batchedUpdates(()=>{a.changed=!v,t?.(i,this),v?sn(s.onRest,i):a.onStart?.(i,this)})}v&&this._set(x),f?n(Ln(e.to,e,this._state,this)):k?this._start():Bn(this)&&!p?this._pendingCalls.add(n):n(Cn(x))}_focus(t){const e=this.animation;t!==e.to&&(ge(this)&&this._detach(),e.to=t,ge(this)&&this._attach())}_attach(){let t=0;const{to:e}=this.animation;fe(e)&&(xe(e,this),zn(e)&&(t=e.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;fe(t)&&be(t,this)}_set(t,e=!0){const n=me(t);if(!yt.und(n)){const t=Ue(this);if(!t||!_t(n,t.getValue())){const i=tn(n);t&&t.constructor==i?t.setValue(n):We(this,i.create(n)),t&&X.batchedUpdates(()=>{this._onChange(n,e)})}}return Ue(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,Xn(this,"onStart",In(this,Un(this,t.to)),this))}_onChange(t,e){e||(this._onStart(),sn(this.animation.onChange,t,this)),sn(this.defaultProps.onChange,t,this),super._onChange(t,e)}_start(){const t=this.animation;Ue(this).reset(me(t.to)),t.immediate||(t.fromValues=t.values.map(t=>t.lastPosition)),Bn(this)||(Dn(this,!0),Fn(this)||this._resume())}_resume(){mt.skipAnimation?this.finish():Et.start(this)}_stop(t,e){if(Bn(this)){Dn(this,!1);const n=this.animation;vt(n.values,t=>{t.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),ye(this,{type:"idle",parent:this});const i=e?Tn(this.get()):In(this.get(),Un(this,t??n.to));kt(this._pendingCalls,i),n.changed&&(n.changed=!1,Xn(this,"onRest",i,this))}}};function Un(t,e){const n=mn(e);return _t(mn(t.get()),n)}function Wn(t,e=t.loop,n=t.to){const i=sn(e);if(i){const o=!0!==i&&fn(i),r=(o||t).reverse,s=!o||o.reset;return Vn({...t,loop:e,default:!1,pause:void 0,to:!r||yn(n)?n:void 0,from:s?t.from:void 0,reset:s,...o})}}function Vn(t){const{to:e,from:n}=t=fn(t),i=new Set;return yt.obj(e)&&Gn(e,i),yt.obj(n)&&Gn(n,i),t.keys=i.size?Array.from(i):null,t}function qn(t){const e=Vn(t);return yt.und(e.default)&&(e.default=hn(e)),e}function Gn(t,e){xt(t,(t,n)=>null!=t&&e.add(n))}var Kn=["onStart","onRest","onChange","onPause","onResume"];function Yn(t,e,n){t.animation[n]=e[n]!==cn(e,n)?ln(e[n],t.key):void 0}function Xn(t,e,...n){t.animation[e]?.(...n),t.defaultProps[e]?.(...n)}var Qn=["onStart","onChange","onRest"],Jn=1,ti=class{constructor(t,e){this.id=Jn++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),t&&this.start({default:!0,...t})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((e,n)=>t[n]=e.get()),t}set(t){for(const e in t){const n=t[e];yt.und(n)||this.springs[e].set(n)}}update(t){return t&&this.queue.push(Vn(t)),this}start(t){let{queue:e}=this;return t?e=bt(t).map(Vn):this.queue=[],this._flush?this._flush(this,e):(ai(this,e),ei(this,e))}stop(t,e){if(t!==!!t&&(e=t),e){const n=this.springs;vt(bt(e),e=>n[e].stop(!!t))}else Sn(this._state,this._lastAsyncId),this.each(e=>e.stop(!!t));return this}pause(t){if(yt.und(t))this.start({pause:!0});else{const e=this.springs;vt(bt(t),t=>e[t].pause())}return this}resume(t){if(yt.und(t))this.start({pause:!1});else{const e=this.springs;vt(bt(t),t=>e[t].resume())}return this}each(t){xt(this.springs,t)}_onFrame(){const{onStart:t,onChange:e,onRest:n}=this._events,i=this._active.size>0,o=this._changed.size>0;(i&&!this._started||o&&!this._started)&&(this._started=!0,wt(t,([t,e])=>{e.value=this.get(),t(e,this,this._item)}));const r=!i&&this._started,s=o||r&&n.size?this.get():null;o&&e.size&&wt(e,([t,e])=>{e.value=s,t(e,this,this._item)}),r&&(this._started=!1,wt(n,([t,e])=>{e.value=s,t(e,this,this._item)}))}eventObserved(t){if("change"==t.type)this._changed.add(t.parent),t.idle||this._active.add(t.parent);else{if("idle"!=t.type)return;this._active.delete(t.parent)}X.onFrame(this._onFrame)}};function ei(t,e){return Promise.all(e.map(e=>ni(t,e))).then(e=>Mn(t,e))}async function ni(t,e,n){const{keys:i,to:o,from:r,loop:s,onRest:a,onResolve:l}=e,c=yt.obj(e.default)&&e.default;s&&(e.loop=!1),!1===o&&(e.to=null),!1===r&&(e.from=null);const u=yt.arr(o)||yt.fun(o)?o:void 0;u?(e.to=void 0,e.onRest=void 0,c&&(c.onRest=void 0)):vt(Qn,n=>{const i=e[n];if(yt.fun(i)){const o=t._events[n];e[n]=({finished:t,cancelled:e})=>{const n=o.get(i);n?(t||(n.finished=!1),e&&(n.cancelled=!0)):o.set(i,{value:null,finished:t||!1,cancelled:e||!1})},c&&(c[n]=e[n])}});const h=t._state;e.pause===!h.paused?(h.paused=e.pause,kt(e.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(e.pause=!0);const d=(i||Object.keys(t.springs)).map(n=>t.springs[n].start(e)),p=!0===e.cancel||!0===cn(e,"cancel");(u||p&&h.asyncId)&&d.push(kn(++t._lastAsyncId,{props:e,state:h,actions:{pause:gt,resume:gt,start(e,n){p?(Sn(h,t._lastAsyncId),n(Tn(t))):(e.onRest=a,n(Ln(u,e,h,t)))}}})),h.paused&&await new Promise(t=>{h.resumeQueue.add(t)});const f=Mn(t,await Promise.all(d));if(s&&f.finished&&(!n||!f.noop)){const n=Wn(e,s,o);if(n)return ai(t,[n]),ni(t,n,!0)}return l&&X.batchedUpdates(()=>l(f,t,t.item)),f}function ii(t,e){const n={...t.springs};return e&&vt(bt(e),t=>{yt.und(t.keys)&&(t=Vn(t)),yt.obj(t.to)||(t={...t,to:void 0}),si(n,t,t=>ri(t))}),oi(t,n),n}function oi(t,e){xt(e,(e,n)=>{t.springs[n]||(t.springs[n]=e,xe(e,t))})}function ri(t,e){const n=new Hn;return n.key=t,e&&xe(n,e),n}function si(t,e,n){e.keys&&vt(e.keys,i=>{(t[i]||(t[i]=n(i)))._prepareNode(e)})}function ai(t,e){vt(e,e=>{si(t.springs,e,e=>ri(e,t))})}var li,ci,ui=({children:e,...n})=>{const i=(0,t.useContext)(hi),o=n.pause||!!i.pause,r=n.immediate||!!i.immediate;n=function(e,n){const[i]=(0,t.useState)(()=>({inputs:n,result:e()})),o=(0,t.useRef)(),r=o.current;let s=r;return s?Boolean(n&&s.inputs&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(n,s.inputs))||(s={inputs:n,result:e()}):s=i,(0,t.useEffect)(()=>{o.current=s,r==i&&(i.inputs=i.result=void 0)},[s]),s.result}(()=>({pause:o,immediate:r}),[o,r]);const{Provider:s}=hi;return t.createElement(s,{value:n},e)},hi=(li=ui,ci={},Object.assign(li,t.createContext(ci)),li.Provider._context=li,li.Consumer._context=li,li);ui.Provider=hi.Provider,ui.Consumer=hi.Consumer;var di=()=>{const t=[],e=function(e){Re(`${je}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const i=[];return vt(t,(t,o)=>{if(yt.und(e))i.push(t.start());else{const r=n(e,t,o);r&&i.push(t.start(r))}}),i};e.current=t,e.add=function(e){t.includes(e)||t.push(e)},e.delete=function(e){const n=t.indexOf(e);~n&&t.splice(n,1)},e.pause=function(){return vt(t,t=>t.pause(...arguments)),this},e.resume=function(){return vt(t,t=>t.resume(...arguments)),this},e.set=function(e){vt(t,(t,n)=>{const i=yt.fun(e)?e(n,t):e;i&&t.set(i)})},e.start=function(e){const n=[];return vt(t,(t,i)=>{if(yt.und(e))n.push(t.start());else{const o=this._getProps(e,t,i);o&&n.push(t.start(o))}}),n},e.stop=function(){return vt(t,t=>t.stop(...arguments)),this},e.update=function(e){return vt(t,(t,n)=>t.update(this._getProps(e,t,n))),this};const n=function(t,e,n){return yt.fun(t)?t(n,e):t};return e._getProps=n,e};function pi(e,n){const i=yt.fun(e),[[o],r]=function(e,n,i){const o=yt.fun(n)&&n;o&&!i&&(i=[]);const r=(0,t.useMemo)(()=>o||3==arguments.length?di():void 0,[]),s=(0,t.useRef)(0),a=Be(),l=(0,t.useMemo)(()=>({ctrls:[],queue:[],flush(t,e){const n=ii(t,e);return s.current>0&&!l.queue.length&&!Object.keys(n).some(e=>!t.springs[e])?ei(t,e):new Promise(i=>{oi(t,n),l.queue.push(()=>{i(ei(t,e))}),a()})}}),[]),c=(0,t.useRef)([...l.ctrls]),u=[],h=Ze(e)||0;function d(t,e){for(let i=t;i<e;i++){const t=c.current[i]||(c.current[i]=new ti(null,l.flush)),e=o?o(i,t):n[i];e&&(u[i]=qn(e))}}(0,t.useMemo)(()=>{vt(c.current.slice(e,h),t=>{_n(t,r),t.stop(!0)}),c.current.length=e,d(h,e)},[e]),(0,t.useMemo)(()=>{d(0,Math.min(h,e))},i);const p=c.current.map((t,e)=>ii(t,u[e])),f=(0,t.useContext)(ui),m=Ze(f),g=f!==m&&gn(f);$e(()=>{s.current++,l.ctrls=c.current;const{queue:t}=l;t.length&&(l.queue=[],vt(t,t=>t())),vt(c.current,(t,e)=>{r?.add(t),g&&t.start({default:f});const n=u[e];n&&(vn(t,n.ref),t.ref?t.queue.push(n):t.start(n))})}),Fe(()=>()=>{vt(l.ctrls,t=>t.stop(!0))});const y=p.map(t=>({...t}));return r?[y,r]:y}(1,i?e:[e],i?n||[]:n);return i||2==arguments.length?[o,r]:o}function fi(e,n,i){const o=yt.fun(n)&&n,{reset:r,sort:s,trail:a=0,expires:l=!0,exitBeforeEnter:c=!1,onDestroyed:u,ref:h,config:d}=o?o():n,p=(0,t.useMemo)(()=>o||3==arguments.length?di():void 0,[]),f=bt(e),m=[],g=(0,t.useRef)(null),y=r?null:g.current;$e(()=>{g.current=m}),Fe(()=>(vt(m,t=>{p?.add(t.ctrl),t.ctrl.ref=p}),()=>{vt(g.current,t=>{t.expired&&clearTimeout(t.expirationId),_n(t.ctrl,p),t.ctrl.stop(!0)})}));const _=function(t,{key:e,keys:n=e},i){if(null===n){const e=new Set;return t.map(t=>{const n=i&&i.find(n=>n.item===t&&"leave"!==n.phase&&!e.has(n));return n?(e.add(n),n.key):mi++})}return yt.und(n)?t:yt.fun(n)?t.map(n):bt(n)}(f,o?o():n,y),v=r&&g.current||[];$e(()=>vt(v,({ctrl:t,item:e,key:n})=>{_n(t,p),sn(u,e,n)}));const x=[];if(y&&vt(y,(t,e)=>{t.expired?(clearTimeout(t.expirationId),v.push(t)):~(e=x[e]=_.indexOf(t.key))&&(m[e]=t)}),vt(f,(t,e)=>{m[e]||(m[e]={key:_[e],item:t,phase:"mount",ctrl:new ti},m[e].ctrl.item=t)}),x.length){let t=-1;const{leave:e}=o?o():n;vt(x,(n,i)=>{const o=y[i];~n?(t=m.indexOf(o),m[t]={...o,item:f[n]}):e&&m.splice(++t,0,o)})}yt.fun(s)&&m.sort((t,e)=>s(t.item,e.item));let b=-a;const w=Be(),A=hn(n),P=new Map,k=(0,t.useRef)(new Map),M=(0,t.useRef)(!1);vt(m,(t,e)=>{const i=t.key,r=t.phase,s=o?o():n;let u,p;const f=sn(s.delay||0,i);if("mount"==r)u=s.enter,p="enter";else{const t=_.indexOf(i)<0;if("leave"!=r)if(t)u=s.leave,p="leave";else{if(!(u=s.update))return;p="update"}else{if(t)return;u=s.enter,p="enter"}}if(u=sn(u,t.item,e),u=yt.obj(u)?fn(u):{to:u},!u.config){const n=d||A.config;u.config=sn(n,t.item,e,p)}b+=a;const m={...A,delay:f+b,ref:h,immediate:s.immediate,reset:!1,...u};if("enter"==p&&yt.und(m.from)){const i=o?o():n,r=yt.und(i.initial)||y?i.from:i.initial;m.from=sn(r,t.item,e)}const{onResolve:v}=m;m.onResolve=t=>{sn(v,t);const e=g.current,n=e.find(t=>t.key===i);if(n&&(!t.cancelled||"update"==n.phase)&&n.ctrl.idle){const t=e.every(t=>t.ctrl.idle);if("leave"==n.phase){const e=sn(l,n.item);if(!1!==e){const i=!0===e?0:e;if(n.expired=!0,!t&&i>0)return void(i<=2147483647&&(n.expirationId=setTimeout(w,i)))}}t&&e.some(t=>t.expired)&&(k.current.delete(n),c&&(M.current=!0),w())}};const x=ii(t.ctrl,m);"leave"===p&&c?k.current.set(t,{phase:p,springs:x,payload:m}):P.set(t,{phase:p,springs:x,payload:m})});const C=(0,t.useContext)(ui),I=Ze(C),T=C!==I&&gn(C);$e(()=>{T&&vt(m,t=>{t.ctrl.start({default:C})})},[C]),vt(P,(t,e)=>{if(k.current.size){const t=m.findIndex(t=>t.key===e.key);m.splice(t,1)}}),$e(()=>{vt(k.current.size?k.current:P,({phase:t,payload:e},n)=>{const{ctrl:i}=n;n.phase=t,p?.add(i),T&&"enter"==t&&i.start({default:C}),e&&(vn(i,e.ref),!i.ref&&!p||M.current?(i.start(e),M.current&&(M.current=!1)):i.update(e))})},r?void 0:i);const L=e=>t.createElement(t.Fragment,null,m.map((n,i)=>{const{springs:o}=P.get(n)||n.ctrl,r=e({...o},n.item,n,i);return r&&r.type?t.createElement(r.type,{...r.props,key:yt.str(n.key)||yt.num(n.key)?n.key:n.ctrl.id,ref:r.ref}):r}));return p?[L,p]:L}var mi=1,gi=class extends Rn{constructor(t,e){super(),this.source=t,this.idle=!0,this._active=new Set,this.calc=oe(...e);const n=this._get(),i=tn(n);We(this,i.create(n))}advance(t){const e=this._get();_t(e,this.get())||(Ue(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&_i(this._active)&&vi(this)}_get(){const t=yt.arr(this.source)?this.source.map(me):bt(me(this.source));return this.calc(...t)}_start(){this.idle&&!_i(this._active)&&(this.idle=!1,vt(Ve(this),t=>{t.done=!1}),mt.skipAnimation?(X.batchedUpdates(()=>this.advance()),vi(this)):Et.start(this))}_attach(){let t=1;vt(bt(this.source),e=>{fe(e)&&xe(e,this),zn(e)&&(e.idle||this._active.add(e),t=Math.max(t,e.priority+1))}),this.priority=t,this._start()}_detach(){vt(bt(this.source),t=>{fe(t)&&be(t,this)}),this._active.clear(),vi(this)}eventObserved(t){"change"==t.type?t.idle?this.advance():(this._active.add(t.parent),this._start()):"idle"==t.type?this._active.delete(t.parent):"priority"==t.type&&(this.priority=bt(this.source).reduce((t,e)=>Math.max(t,(zn(e)?e.priority:0)+1),0))}};function yi(t){return!1!==t.idle}function _i(t){return!t.size||Array.from(t).every(yi)}function vi(t){t.idle||(t.idle=!0,vt(Ve(t),t=>{t.done=!0}),ye(t,{type:"idle",parent:t}))}var xi=(t,...e)=>new gi(t,e);mt.assign({createStringInterpolator:Oe,to:(t,e)=>new gi(t,e)}),Et.advance;var bi=c(1658),wi=/^--/;function Ai(t,e){return null==e||"boolean"==typeof e||""===e?"":"number"!=typeof e||0===e||wi.test(t)||ki.hasOwnProperty(t)&&ki[t]?(""+e).trim():e+"px"}var Pi={},ki={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Mi=["Webkit","Ms","Moz","O"];ki=Object.keys(ki).reduce((t,e)=>(Mi.forEach(n=>t[((t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1))(n,e)]=t[e]),t),ki);var Ci=/^(matrix|translate|scale|rotate|skew)/,Ii=/^(translate)/,Ti=/^(rotate|skew)/,Li=(t,e)=>yt.num(t)&&0!==t?t+e:t,Si=(t,e)=>yt.arr(t)?t.every(t=>Si(t,e)):yt.num(t)?t===e:parseFloat(t)===e,Oi=class extends Xe{constructor({x:t,y:e,z:n,...i}){const o=[],r=[];(t||e||n)&&(o.push([t||0,e||0,n||0]),r.push(t=>[`translate3d(${t.map(t=>Li(t,"px")).join(",")})`,Si(t,0)])),xt(i,(t,e)=>{if("transform"===e)o.push([t||""]),r.push(t=>[t,""===t]);else if(Ci.test(e)){if(delete i[e],yt.und(t))return;const n=Ii.test(e)?"px":Ti.test(e)?"deg":"";o.push(bt(t)),r.push("rotate3d"===e?([t,e,i,o])=>[`rotate3d(${t},${e},${i},${Li(o,n)})`,Si(o,0)]:t=>[`${e}(${t.map(t=>Li(t,n)).join(",")})`,Si(t,e.startsWith("scale")?1:0)])}}),o.length&&(i.transform=new ji(o,r)),super(i)}},ji=class extends _e{constructor(t,e){super(),this.inputs=t,this.transforms=e,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let t="",e=!0;return vt(this.inputs,(n,i)=>{const o=me(n[0]),[r,s]=this.transforms[i](yt.arr(o)?o:n.map(me));t+=" "+r,e=e&&s}),e?"none":t}observerAdded(t){1==t&&vt(this.inputs,t=>vt(t,t=>fe(t)&&xe(t,this)))}observerRemoved(t){0==t&&vt(this.inputs,t=>vt(t,t=>fe(t)&&be(t,this)))}eventObserved(t){"change"==t.type&&(this._value=null),ye(this,t)}};mt.assign({batchedUpdates:bi.unstable_batchedUpdates,createStringInterpolator:Oe,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var zi=((t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=t=>new Xe(t),getComponentProps:i=t=>t}={})=>{const o={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:i},r=t=>{const e=rn(t)||"Anonymous";return(t=yt.str(t)?r[t]||(r[t]=en(t,o)):t[on]||(t[on]=en(t,o))).displayName=`Animated(${e})`,t};return xt(t,(e,n)=>{yt.arr(t)&&(n=rn(e)),r[n]=r(e)}),{animated:r}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n="filter"===t.nodeName||t.parentNode&&"filter"===t.parentNode.nodeName,{className:i,style:o,children:r,scrollTop:s,scrollLeft:a,viewBox:l,...c}=e,u=Object.values(c),h=Object.keys(c).map(e=>n||t.hasAttribute(e)?e:Pi[e]||(Pi[e]=e.replace(/([A-Z])/g,t=>"-"+t.toLowerCase())));void 0!==r&&(t.textContent=r);for(const e in o)if(o.hasOwnProperty(e)){const n=Ai(e,o[e]);wi.test(e)?t.style.setProperty(e,n):t.style[e]=n}h.forEach((e,n)=>{t.setAttribute(e,u[n])}),void 0!==i&&(t.className=i),void 0!==s&&(t.scrollTop=s),void 0!==a&&(t.scrollLeft=a),void 0!==l&&t.setAttribute("viewBox",l)},createAnimatedStyle:t=>new Oi(t),getComponentProps:({scrollTop:t,scrollLeft:e,...n})=>n}),Ei=zi.animated;function Ri(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ni(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function $i(){}Object.defineProperty(Ri,"name",{value:"default",configurable:!0});var Bi=.7,Fi=1/Bi,Di="\\s*([+-]?\\d+)\\s*",Zi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ui=/^#([0-9a-f]{3,8})$/,Wi=new RegExp(`^rgb\\(${Di},${Di},${Di}\\)$`),Vi=new RegExp(`^rgb\\(${Hi},${Hi},${Hi}\\)$`),qi=new RegExp(`^rgba\\(${Di},${Di},${Di},${Zi}\\)$`),Gi=new RegExp(`^rgba\\(${Hi},${Hi},${Hi},${Zi}\\)$`),Ki=new RegExp(`^hsl\\(${Zi},${Hi},${Hi}\\)$`),Yi=new RegExp(`^hsla\\(${Zi},${Hi},${Hi},${Zi}\\)$`),Xi={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 Qi(){return this.rgb().formatHex()}function Ji(){return this.rgb().formatRgb()}function to(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Ui.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?eo(e):3===n?new oo(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?no(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?no(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Wi.exec(t))?new oo(e[1],e[2],e[3],1):(e=Vi.exec(t))?new oo(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=qi.exec(t))?no(e[1],e[2],e[3],e[4]):(e=Gi.exec(t))?no(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ki.exec(t))?uo(e[1],e[2]/100,e[3]/100,1):(e=Yi.exec(t))?uo(e[1],e[2]/100,e[3]/100,e[4]):Xi.hasOwnProperty(t)?eo(Xi[t]):"transparent"===t?new oo(NaN,NaN,NaN,0):null}function eo(t){return new oo(t>>16&255,t>>8&255,255&t,1)}function no(t,e,n,i){return i<=0&&(t=e=n=NaN),new oo(t,e,n,i)}function io(t,e,n,i){return 1===arguments.length?((o=t)instanceof $i||(o=to(o)),o?new oo((o=o.rgb()).r,o.g,o.b,o.opacity):new oo):new oo(t,e,n,null==i?1:i);var o}function oo(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function ro(){return`#${co(this.r)}${co(this.g)}${co(this.b)}`}function so(){const t=ao(this.opacity);return`${1===t?"rgb(":"rgba("}${lo(this.r)}, ${lo(this.g)}, ${lo(this.b)}${1===t?")":`, ${t})`}`}function ao(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function lo(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function co(t){return((t=lo(t))<16?"0":"")+t.toString(16)}function uo(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new po(t,e,n,i)}function ho(t){if(t instanceof po)return new po(t.h,t.s,t.l,t.opacity);if(t instanceof $i||(t=to(t)),!t)return new po;if(t instanceof po)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),r=Math.max(e,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=e===r?(n-i)/a+6*(n<i):n===r?(i-e)/a+2:(e-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new po(s,a,l,t.opacity)}function po(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function fo(t){return(t=(t||0)%360)<0?t+360:t}function mo(t){return Math.max(0,Math.min(1,t||0))}function go(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function yo(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}Ri($i,to,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Qi,formatHex:Qi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ho(this).formatHsl()},formatRgb:Ji,toString:Ji}),Ri(oo,io,Ni($i,{brighter(t){return t=null==t?Fi:Math.pow(Fi,t),new oo(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Bi:Math.pow(Bi,t),new oo(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new oo(lo(this.r),lo(this.g),lo(this.b),ao(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:ro,formatHex:ro,formatHex8:function(){return`#${co(this.r)}${co(this.g)}${co(this.b)}${co(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:so,toString:so})),Ri(po,function(t,e,n,i){return 1===arguments.length?ho(t):new po(t,e,n,null==i?1:i)},Ni($i,{brighter(t){return t=null==t?Fi:Math.pow(Fi,t),new po(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Bi:Math.pow(Bi,t),new po(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,o=2*n-i;return new oo(go(t>=240?t-240:t+120,o,i),go(t,o,i),go(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new po(fo(this.h),mo(this.s),mo(this.l),ao(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 t=ao(this.opacity);return`${1===t?"hsl(":"hsla("}${fo(this.h)}, ${100*mo(this.s)}%, ${100*mo(this.l)}%${1===t?")":`, ${t})`}`}})),Object.defineProperty(yo,"name",{value:"default",configurable:!0}),Object.defineProperty(xo,"name",{value:"default",configurable:!0});var _o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vo=new RegExp(_o.source,"g");function xo(t,e){var n,i,o,r=_o.lastIndex=vo.lastIndex=0,s=-1,a=[],l=[];for(t+="",e+="";(n=_o.exec(t))&&(i=vo.exec(e));)(o=i.index)>r&&(o=e.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:yo(n,i)})),r=vo.lastIndex;return r<e.length&&(o=e.slice(r),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)a[(n=l[i]).i]=n.x(t);return a.join("")})}const bo=e=>{const n=function(e){const n=t.useRef({currentPath:e,previousPath:void 0});return n.current.currentPath!==e&&(n.current={currentPath:e,previousPath:n.current.currentPath}),n.current}(e);return t.useMemo(()=>n.previousPath?xo(n.previousPath,n.currentPath):()=>n.currentPath,[n.currentPath,n.previousPath])};function wo(t){return t.replace(" ","_")}var Ao=c(4661);const Po="DEFAULT_X_AXIS_KEY",ko="DEFAULT_Y_AXIS_KEY",Mo={top:50,bottom:50,left:50,right:50},Co=t.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:"",isPointInside:()=>!1}),Io=t.createContext({isInitialized:!1,data:{current:null}});function To(e){const{width:n,height:o,margin:s,svgRef:a,children:l}=e,c=((e,n,i)=>{const o=(0,r.A)({},Mo,i);return t.useMemo(()=>({left:o.left,top:o.top,right:o.right,bottom:o.bottom,width:Math.max(0,e-o.left-o.right),height:Math.max(0,n-o.top-o.bottom)}),[e,n,o.top,o.bottom,o.left,o.right])})(n,o,s),u=(0,Ao.A)(),h=t.useCallback(({x:t,y:e},n)=>{if(n?.targetElement&&n?.targetElement.closest("[data-drawing-container]"))return!0;const i=t>=c.left-1&&t<=c.left+c.width,o=e>=c.top-1&&e<=c.top+c.height;return"x"===n?.direction?i:("y"===n?.direction||i)&&o},[c]),d=t.useMemo(()=>(0,r.A)({chartId:u??""},c,{isPointInside:h}),[u,c,h]),p=t.useMemo(()=>({isInitialized:!0,data:a}),[a]);return(0,i.jsx)(Io.Provider,{value:p,children:(0,i.jsx)(Co.Provider,{value:d,children:l})})}function Lo(){const{left:e,top:n,width:i,height:o,bottom:r,right:s,isPointInside:a}=t.useContext(Co);return t.useMemo(()=>({left:e,top:n,width:i,height:o,bottom:r,right:s,isPointInside:a}),[o,e,n,i,r,s,a])}function So(){const{chartId:e}=t.useContext(Co);return t.useMemo(()=>e,[e])}function Oo(e){const n=Lo(),o=So(),r=fi([n],{from:t=>({animatedWidth:t.left}),enter:t=>({animatedWidth:t.width+t.left+t.right}),leave:t=>({animatedWidth:t.width+t.left+t.right}),reset:!1,immediate:e.skipAnimation}),s=wo(`${o}-${e.id}`);return(0,i.jsxs)(t.Fragment,{children:[(0,i.jsx)("clipPath",{id:s,children:r(t=>(0,i.jsx)(Ei.rect,{x:0,y:0,width:t.animatedWidth,height:n.top+n.height+n.bottom}))}),(0,i.jsx)("g",{clipPath:`url(#${s})`,children:e.children})]})}const jo=["d","skipAnimation","ownerState"],zo=(0,K.Ay)(Ei.path,{name:"MuiAreaElement",slot:"Root",overridesResolver:(t,e)=>e.root})(({ownerState:t})=>({stroke:"none",fill:t.gradientId&&`url(#${t.gradientId})`||t.isHighlighted&&to(t.color).brighter(1).formatHex()||to(t.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:t.isFaded?.3:1}));function Eo(t){const{d:e,skipAnimation:n,ownerState:o}=t,s=(0,g.A)(t,jo),a=fi([bo(e)],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return(0,i.jsx)(Oo,{skipAnimation:n,id:`${o.id}-area-clip`,children:a((t,e)=>(0,i.jsx)(zo,(0,r.A)({},s,{ownerState:o,d:t.value.to(e)})))})}function Ro(t){const e=q();if(!t)return{isHighlighted:!1,isFaded:!1};const n=e.isHighlighted(t);return{isHighlighted:n,isFaded:!n&&e.isFaded(t)}}const No=["id","classes","color","gradientId","slots","slotProps","onClick"];function $o(t){return(0,D.Ay)("MuiAreaElement",t)}function Bo(t){const{id:e,classes:n,color:o,gradientId:s,slots:a,slotProps:l,onClick:c}=t,u=(0,g.A)(t,No),h=G(),{isFaded:d,isHighlighted:p}=Ro({seriesId:e}),f={id:e,classes:n,color:o,gradientId:s,isFaded:d,isHighlighted:p},m=(t=>{const{classes:e,id:n,isFaded:i,isHighlighted:o}=t,r={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return(0,z.A)(r,$o,e)})(f),y=a?.area??Eo,_=F({elementType:y,externalSlotProps:l?.area,additionalProps:(0,r.A)({},h({type:"line",seriesId:e}),{onClick:c,cursor:c?"pointer":"unset"}),className:m.root,ownerState:f});return(0,i.jsx)(y,(0,r.A)({},u,_))}function Fo(t){return void 0!==t.bandwidth}function Do(t){return Fo(t)?e=>(t(e)??0)+t.bandwidth()/2:e=>t(e)}(0,Z.A)("MuiAreaElement",["root","highlighted","faded"]);const Zo=Math.abs,Ho=Math.atan2,Uo=Math.cos,Wo=Math.max,Vo=Math.min,qo=Math.sin,Go=Math.sqrt,Ko=1e-12,Yo=Math.PI,Xo=Yo/2,Qo=2*Yo;function Jo(t){return t>=1?Xo:t<=-1?-Xo:Math.asin(t)}function tr(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function er(t,e){this._context=t,this._k=(1-e)/6}function nr(t,e){this._context=t,this._alpha=e}er.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:tr(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:tr(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new er(t,e)}return n.tension=function(e){return t(+e)},n}(0),nr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:!function(t,e,n){var i=t._x1,o=t._y1,r=t._x2,s=t._y2;if(t._l01_a>Ko){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Ko){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);r=(r*c+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*c+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(i,o,r,s,t._x2,t._y2)}(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ir=function t(e){function n(t){return e?new nr(t,e):new er(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function or(t){return t<0?-1:1}function rr(t,e,n){var i=t._x1-t._x0,o=e-t._x1,r=(t._y1-t._y0)/(i||o<0&&-0),s=(n-t._y1)/(o||i<0&&-0),a=(r*o+s*i)/(i+o);return(or(r)+or(s))*Math.min(Math.abs(r),Math.abs(s),.5*Math.abs(a))||0}function sr(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ar(t,e,n){var i=t._x0,o=t._y0,r=t._x1,s=t._y1,a=(r-i)/3;t._context.bezierCurveTo(i+a,o+a*e,r-a,s-a*n,r,s)}function lr(t){this._context=t}function cr(t){this._context=new ur(t)}function ur(t){this._context=t}function hr(t){return new lr(t)}function dr(t){return new cr(t)}function pr(t){this._context=t}function fr(t){var e,n,i=t.length-1,o=new Array(i),r=new Array(i),s=new Array(i);for(o[0]=0,r[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)o[e]=1,r[e]=4,s[e]=4*t[e]+2*t[e+1];for(o[i-1]=2,r[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)n=o[e]/r[e-1],r[e]-=n,s[e]-=n*s[e-1];for(o[i-1]=s[i-1]/r[i-1],e=i-2;e>=0;--e)o[e]=(s[e]-o[e+1])/r[e];for(r[i-1]=(t[i]+o[i-1])/2,e=0;e<i-1;++e)r[e]=2*t[e+1]-o[e+1];return[o,r]}function mr(t){return new pr(t)}function gr(t,e){this._context=t,this._t=e}function yr(t){return new gr(t,.5)}function _r(t){return new gr(t,0)}function vr(t){return new gr(t,1)}function xr(t){switch(t){case"catmullRom":return ir.alpha(.5);case"linear":return x;case"monotoneX":default:return hr;case"monotoneY":return dr;case"natural":return mr;case"step":return yr;case"stepBefore":return _r;case"stepAfter":return vr}}function br(e){const{isReversed:n,gradientId:o,size:r,direction:s,scale:a,colorMap:l}=e;return r<=0?null:(0,i.jsx)("linearGradient",{id:o,x1:"0",x2:"0",y1:"0",y2:"0",[`${s}${n?1:2}`]:`${r}px`,gradientUnits:"userSpaceOnUse",children:l.thresholds.map((e,o)=>{const s=a(e);if(void 0===s)return null;const c=n?1-s/r:s/r;return(0,i.jsxs)(t.Fragment,{children:[(0,i.jsx)("stop",{offset:c,stopColor:l.colors[o],stopOpacity:1}),(0,i.jsx)("stop",{offset:c,stopColor:l.colors[o+1],stopOpacity:1})]},e.toString()+o)})})}function wr(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Ar(t){const{gradientUnits:e,isReversed:n,gradientId:o,size:r,direction:s,scale:a,colorScale:l,colorMap:c}=t,u=[c.min??0,c.max??100],h=u.map(a).filter(t=>void 0!==t);if(2!==h.length)return null;const d="number"==typeof u[0]?yo(u[0],u[1]):wr(u[0],u[1]),p=Math.round((Math.max(...h)-Math.min(...h))/10),f=`${u[0]}-${u[1]}-`;return(0,i.jsx)("linearGradient",{id:o,x1:"0",x2:"0",y1:"0",y2:"0",[`${s}${n?1:2}`]:"objectBoundingBox"===e?1:`${r}px`,gradientUnits:e??"userSpaceOnUse",children:Array.from({length:p+1},(t,e)=>{const o=d(e/p);if(void 0===o)return null;const s=a(o);if(void 0===s)return null;const c=n?1-s/r:s/r,u=l(o);return null===u?null:(0,i.jsx)("stop",{offset:c,stopColor:u,stopOpacity:1},f+e)})})}function Pr(){const{chartId:e}=t.useContext(Co);return t.useCallback((t,n)=>`${e}-gradient-${n}-${t}`,[e])}function kr(){const{top:t,height:e,bottom:n,left:o,width:r,right:s}=Lo(),a=t+e+n,l=o+r+s,c=Pr(),{xAxisIds:u,xAxis:h,yAxisIds:d,yAxis:p}=j();return(0,i.jsxs)("defs",{children:[d.filter(t=>void 0!==p[t].colorMap).map(t=>{const e=c(t,"y"),{colorMap:n,scale:o,colorScale:r,reverse:s}=p[t];return"piecewise"===n?.type?(0,i.jsx)(br,{isReversed:!s,scale:o,colorMap:n,size:a,gradientId:e,direction:"y"},e):"continuous"===n?.type?(0,i.jsx)(Ar,{isReversed:!s,scale:o,colorScale:r,colorMap:n,size:a,gradientId:e,direction:"y"},e):null}),u.filter(t=>void 0!==h[t].colorMap).map(t=>{const e=c(t,"x"),{colorMap:n,scale:o,reverse:r,colorScale:s}=h[t];return"piecewise"===n?.type?(0,i.jsx)(br,{isReversed:r,scale:o,colorMap:n,size:l,gradientId:e,direction:"x"},e):"continuous"===n?.type?(0,i.jsx)(Ar,{isReversed:r,scale:o,colorScale:s,colorMap:n,size:l,gradientId:e,direction:"x"},e):null})]})}lr.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:ar(this,this._t0,sr(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ar(this,sr(this,n=rr(this,t,e)),n);break;default:ar(this,this._t0,n=rr(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(cr.prototype=Object.create(lr.prototype)).point=function(t,e){lr.prototype.point.call(this,e,t)},ur.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,o,r){this._context.bezierCurveTo(e,t,i,n,r,o)}},Object.defineProperty(mr,"name",{value:"default",configurable:!0}),pr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var i=fr(t),o=fr(e),r=0,s=1;s<n;++r,++s)this._context.bezierCurveTo(i[0][r],o[0][r],i[1][r],o[1][r],t[s],e[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Object.defineProperty(yr,"name",{value:"default",configurable:!0}),gr.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Object.defineProperty(wr,"name",{value:"default",configurable:!0});const Mr=t.createContext({isInitialized:!1,data:{}});function Cr(){const{isInitialized:e,data:n}=t.useContext(Mr);if(!e)throw new Error(["MUI X: Could not find the series ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n}function Ir(){const e=Cr();return t.useMemo(()=>e.line,[e.line])}function Tr(){const e=Cr();return t.useMemo(()=>e.scatter,[e.scatter])}const Lr=t.createContext({isInitialized:!1,data:{skipAnimation:void 0}});function Sr(e){const{isInitialized:n,data:i}=t.useContext(Lr);if(!n)throw new Error(["MUI X: Could not find the animation ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return e||i.skipAnimation}const Or=["slots","slotProps","onItemClick","skipAnimation"];function jr(e){const{slots:n,slotProps:o,onItemClick:s,skipAnimation:a}=e,l=(0,g.A)(e,Or),c=Sr(a),u=Pr(),h=(()=>{const e=Ir(),n=j(),i=t.useMemo(()=>{if(void 0===e)return[];const{series:t,stackingGroups:i}=e,{xAxis:o,yAxis:s,xAxisIds:a,yAxisIds:l}=n,c=a[0],u=l[0];return i.flatMap(({ids:e})=>[...e].reverse().map(e=>{const{xAxisId:n,yAxisId:i,xAxisKey:a=c,yAxisKey:l=u,stackedData:h,data:d,connectNulls:p,baseline:f}=t[e],m=n??a,g=i??l,y=Do(o[m].scale),_=s[g].scale,v=o[m].data,x=s[g].colorScale&&[g,"y"]||o[m].colorScale&&[m,"x"]||void 0,b=S().x(t=>y(t.x)).defined((t,e)=>p||null!=d[e]).y0(t=>{if("number"==typeof f)return _(f);if("max"===f)return _.range()[1];if("min"===f)return _.range()[0];const e=t.y&&_(t.y[0]);return Number.isNaN(e)?_.range()[0]:e}).y1(t=>t.y&&_(t.y[1])),w=xr(t[e].curve),A=v?.map((t,e)=>({x:t,y:h[e]}))??[],P=p?A.filter((t,e)=>null!=d[e]):A,k=b.curve(w)(P)||"";return(0,r.A)({},t[e],{gradientUsed:x,d:k,seriesId:e})}))},[e,n]);return i})();return(0,i.jsx)("g",(0,r.A)({},l,{children:h.map(({d:t,seriesId:e,color:r,area:a,gradientUsed:l})=>!!a&&(0,i.jsx)(Bo,{id:e,d:t,color:r,gradientId:l&&u(...l),slots:n,slotProps:o,onClick:s&&(t=>s(t,{type:"line",seriesId:e})),skipAnimation:c},e))}))}const zr=["d","skipAnimation","ownerState"],Er=(0,K.Ay)(Ei.path,{name:"MuiLineElement",slot:"Root",overridesResolver:(t,e)=>e.root})(({ownerState:t})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:t.gradientId&&`url(#${t.gradientId})`||t.isHighlighted&&to(t.color).brighter(.5).formatHex()||t.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:t.isFaded?.3:1}));function Rr(t){const{d:e,skipAnimation:n,ownerState:o}=t,s=(0,g.A)(t,zr),a=fi([bo(e)],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return(0,i.jsx)(Oo,{skipAnimation:n,id:`${o.id}-line-clip`,children:a((t,e)=>(0,i.jsx)(Er,(0,r.A)({},s,{ownerState:o,d:t.value.to(e)})))})}const Nr=["id","classes","color","gradientId","slots","slotProps","onClick"];function $r(t){return(0,D.Ay)("MuiLineElement",t)}function Br(t){const{id:e,classes:n,color:o,gradientId:s,slots:a,slotProps:l,onClick:c}=t,u=(0,g.A)(t,Nr),h=G(),{isFaded:d,isHighlighted:p}=Ro({seriesId:e}),f={id:e,classes:n,color:o,gradientId:s,isFaded:d,isHighlighted:p},m=(t=>{const{classes:e,id:n,isFaded:i,isHighlighted:o}=t,r={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return(0,z.A)(r,$r,e)})(f),y=a?.line??Rr,_=F({elementType:y,externalSlotProps:l?.line,additionalProps:(0,r.A)({},h({type:"line",seriesId:e}),{onClick:c,cursor:c?"pointer":"unset"}),className:m.root,ownerState:f});return(0,i.jsx)(y,(0,r.A)({},u,_))}(0,Z.A)("MuiLineElement",["root","highlighted","faded"]);const Fr=["slots","slotProps","skipAnimation","onItemClick"];function Dr(e){const{slots:n,slotProps:o,skipAnimation:s,onItemClick:a}=e,l=(0,g.A)(e,Fr),c=Sr(s),u=Pr(),h=(()=>{const e=Ir(),n=j();return t.useMemo(()=>{if(void 0===e)return[];const{series:t,stackingGroups:i}=e,{xAxis:o,yAxis:s,xAxisIds:a,yAxisIds:l}=n,c=a[0],u=l[0];return i.flatMap(({ids:e})=>e.flatMap(e=>{const{xAxisId:n,yAxisId:i,xAxisKey:a=c,yAxisKey:l=u,stackedData:h,data:d,connectNulls:p}=t[e],f=n??a,m=i??l,g=Do(o[f].scale),y=s[m].scale,_=o[f].data,v=s[m].colorScale&&[m,"y"]||o[f].colorScale&&[f,"x"]||void 0,x=L().x(t=>g(t.x)).defined((t,e)=>p||null!=d[e]).y(t=>y(t.y[1])),b=_?.map((t,e)=>({x:t,y:h[e]}))??[],w=p?b.filter((t,e)=>null!=d[e]):b,A=x.curve(xr(t[e].curve))(w)||"";return(0,r.A)({},t[e],{gradientUsed:v,d:A,seriesId:e})}))},[e,n])})();return(0,i.jsx)("g",(0,r.A)({},l,{children:h.map(({d:t,seriesId:e,color:r,gradientUsed:s})=>(0,i.jsx)(Br,{id:e,d:t,color:r,gradientId:s&&u(...s),skipAnimation:c,slots:n,slotProps:o,onClick:a&&(t=>a(t,{type:"line",seriesId:e}))},e))}))}var Zr=c(1054);function Hr(){const t=(0,Zr.useTheme)(p.A);return t[f.A]||t}const Ur=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],Wr=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],Vr=t=>"dark"===t?Wr:Ur,qr=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],Gr=({series:t,colors:e,seriesFormatters:n,dataset:i})=>{const o={};t.forEach((t,n)=>{const{id:i=`auto-generated-id-${n}`,type:s}=t;if(void 0===o[s]&&(o[s]={series:{},seriesOrder:[]}),void 0!==o[s]?.series[i])throw new Error(`MUI X: series' id "${i}" is not unique.`);o[s].series[i]=(0,r.A)({id:i},function(t,e,n=qr){return"pie"===t.type?(0,r.A)({},t,{data:t.data.map((t,e)=>(0,r.A)({color:n[e%n.length]},t))}):(0,r.A)({color:n[e%n.length]},t)}(t,n,e)),o[s].seriesOrder.push(i)});const s={};return Object.keys(n).forEach(t=>{const e=o[t];void 0!==e&&(s[t]=n[t]?.(e,i)??o[t])}),s},Kr=t.createContext({isInitialized:!1,data:{colorProcessors:{},seriesFormatters:{},xExtremumGetters:{},yExtremumGetters:{},rotationExtremumGetters:{},radiusExtremumGetters:{}}});function Yr(e){const{series:n,dataset:o,colors:r=Vr,children:s}=e,a=function(){const{isInitialized:e,data:n}=t.useContext(Kr);if(!e)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n.seriesFormatters}(),l=Hr(),c=t.useMemo(()=>({isInitialized:!0,data:Gr({series:n,colors:"function"==typeof r?r(l.palette.mode):r,seriesFormatters:a,dataset:o})}),[n,r,l.palette.mode,a,o]);return(0,i.jsx)(Mr.Provider,{value:c,children:s})}function Xr(t,e){const n=t.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n.matrixTransform(t.getScreenCTM().inverse())}function Qr(){const{isInitialized:e,data:n}=t.useContext(Io);if(!e)throw new Error(["MUI X: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n}function Jr(t){return t instanceof Date?t.getTime():t}const ts=["children","width","height","viewBox","disableAxisListener","className","title","desc"],es=(0,K.Ay)("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({touchAction:"none"})),ns=t.forwardRef(function(e,n){const o=m({props:e,name:"MuiChartsSurface"}),{children:s,width:a,height:l,viewBox:c,disableAxisListener:u=!1,className:h,title:d,desc:p}=o,f=(0,g.A)(o,ts),y=(0,r.A)({width:a,height:l,x:0,y:0},c);return(e=>{const n=Qr(),i=Lo(),{xAxis:o,yAxis:r,xAxisIds:s,yAxisIds:a}=j(),{dispatch:l}=t.useContext(H),c=s[0],u=a[0],h=t.useRef({isInChart:!1,x:-1,y:-1});t.useEffect(()=>{const t=n.current;if(null===t||e)return()=>{};function s(t,e){const{scale:n,data:i,reverse:o}=t;if(!Fo(n)){const t=n.invert(e);if(void 0===i)return{value:t,index:-1};const o=Jr(t),r=i?.findIndex((e,n)=>{const r=Jr(e);return r>o&&(0===n||Math.abs(o-r)<=Math.abs(o-Jr(i[n-1])))||r<=o&&(n===i.length-1||Math.abs(Jr(t)-r)<Math.abs(Jr(t)-Jr(i[n+1])))});return{value:void 0!==r&&r>=0?i[r]:t,index:r}}const r=0===n.bandwidth()?Math.floor((e-Math.min(...n.range())+n.step()/2)/n.step()):Math.floor((e-Math.min(...n.range()))/n.step());if(r<0||r>=i.length)return null;if(o){const t=i.length-1-r;return{index:t,value:i[t]}}return{index:r,value:i[r]}}const a=()=>{h.current={isInChart:!1,x:-1,y:-1},l({type:"exitChart"})},d=e=>{const n="targetTouches"in e?e.targetTouches[0]:e,a=Xr(t,n);if(h.current.x=a.x,h.current.y=a.y,!i.isPointInside(a,{targetElement:e.target}))return void(h.current.isInChart&&(l({type:"exitChart"}),h.current.isInChart=!1));h.current.isInChart=!0;const d=s(o[c],a.x),p=s(r[u],a.y);l({type:"updateAxis",data:{x:d,y:p}})},p=t=>{const e=t.currentTarget;e&&e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId)};return t.addEventListener("pointerdown",p),t.addEventListener("pointermove",d),t.addEventListener("pointerout",a),t.addEventListener("pointercancel",a),t.addEventListener("pointerleave",a),()=>{t.removeEventListener("pointerdown",p),t.removeEventListener("pointermove",d),t.removeEventListener("pointerout",a),t.removeEventListener("pointercancel",a),t.removeEventListener("pointerleave",a)}},[n,l,u,r,c,o,e,i])})(u),(0,i.jsxs)(es,(0,r.A)({width:a,height:l,viewBox:`${y.x} ${y.y} ${y.width} ${y.height}`,ref:n,className:h},f,{children:[(0,i.jsx)("title",{children:d}),(0,i.jsx)("desc",{children:p}),s]}))});function is(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function os(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rs(t){let e,n,i;function o(t,i,o=0,r=t.length){if(o<r){if(0!==e(i,i))return r;do{const e=o+r>>>1;n(t[e],i)<0?o=e+1:r=e}while(o<r)}return o}return 2!==t.length?(e=is,n=(e,n)=>is(t(e),n),i=(e,n)=>t(e)-n):(e=t===is||t===os?t:ss,n=t,i=t),{left:o,center:function(t,e,n=0,r=t.length){const s=o(t,e,n,r-1);return s>n&&i(t[s-1],e)>-i(t[s],e)?s-1:s},right:function(t,i,o=0,r=t.length){if(o<r){if(0!==e(i,i))return r;do{const e=o+r>>>1;n(t[e],i)<=0?o=e+1:r=e}while(o<r)}return o}}}function ss(){return 0}const as=Math.sqrt(50),ls=Math.sqrt(10),cs=Math.sqrt(2);function us(t,e,n){const i=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=as?10:r>=ls?5:r>=cs?2:1;let a,l,c;return o<0?(c=Math.pow(10,-o)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?us(t,e,2*n):[a,l,c]}function hs(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const i=e<t,[o,r,s]=i?us(e,t,n):us(t,e,n);if(!(r>=o))return[];const a=r-o+1,l=new Array(a);if(i)if(s<0)for(let t=0;t<a;++t)l[t]=(r-t)/-s;else for(let t=0;t<a;++t)l[t]=(r-t)*s;else if(s<0)for(let t=0;t<a;++t)l[t]=(o+t)/-s;else for(let t=0;t<a;++t)l[t]=(o+t)*s;return l}function ds(t,e,n){return us(t=+t,e=+e,n=+n)[2]}function ps(t,e,n){n=+n;const i=(e=+e)<(t=+t),o=i?ds(e,t,n):ds(t,e,n);return(i?-1:1)*(o<0?1/-o:o)}const fs=1e3,ms=6e4,gs=36e5,ys=864e5,_s=6048e5,vs=31536e6,xs=new Date,bs=new Date;function ws(t,e,n,i){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),o.round=t=>{const e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),o.range=(n,i,r)=>{const s=[];if(n=o.ceil(n),r=null==r?1:Math.floor(r),!(n<i&&r>0))return s;let a;do{s.push(a=new Date(+n)),e(n,r),t(n)}while(a<n&&n<i);return s},o.filter=n=>ws(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,i)=>{if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}),n&&(o.count=(e,i)=>(xs.setTime(+e),bs.setTime(+i),t(xs),t(bs),Math.floor(n(xs,bs))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(i?e=>i(e)%t===0:e=>o.count(0,e)%t===0):o:null)),o}const As=ws(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);As.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?ws(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):As:null),As.range;const Ps=ws(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*fs)},(t,e)=>(e-t)/fs,t=>t.getUTCSeconds()),ks=(Ps.range,ws(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*fs)},(t,e)=>{t.setTime(+t+e*ms)},(t,e)=>(e-t)/ms,t=>t.getMinutes())),Ms=(ks.range,ws(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ms)},(t,e)=>(e-t)/ms,t=>t.getUTCMinutes())),Cs=(Ms.range,ws(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*fs-t.getMinutes()*ms)},(t,e)=>{t.setTime(+t+e*gs)},(t,e)=>(e-t)/gs,t=>t.getHours())),Is=(Cs.range,ws(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gs)},(t,e)=>(e-t)/gs,t=>t.getUTCHours())),Ts=(Is.range,ws(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ms)/ys,t=>t.getDate()-1)),Ls=(Ts.range,ws(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ys,t=>t.getUTCDate()-1)),Ss=(Ls.range,ws(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ys,t=>Math.floor(t/ys)));function Os(t){return ws(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ms)/_s)}Ss.range;const js=Os(0),zs=Os(1),Es=Os(2),Rs=Os(3),Ns=Os(4),$s=Os(5),Bs=Os(6);function Fs(t){return ws(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/_s)}js.range,zs.range,Es.range,Rs.range,Ns.range,$s.range,Bs.range;const Ds=Fs(0),Zs=Fs(1),Hs=Fs(2),Us=Fs(3),Ws=Fs(4),Vs=Fs(5),qs=Fs(6),Gs=(Ds.range,Zs.range,Hs.range,Us.range,Ws.range,Vs.range,qs.range,ws(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth())),Ks=(Gs.range,ws(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth())),Ys=(Ks.range,ws(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear()));Ys.every=t=>isFinite(t=Math.floor(t))&&t>0?ws(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,Ys.range;const Xs=ws(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function Qs(t,e,n,i,o,r){const s=[[Ps,1,fs],[Ps,5,5e3],[Ps,15,15e3],[Ps,30,3e4],[r,1,ms],[r,5,3e5],[r,15,9e5],[r,30,18e5],[o,1,gs],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,ys],[i,2,1728e5],[n,1,_s],[e,1,2592e6],[e,3,7776e6],[t,1,vs]];function a(e,n,i){const o=Math.abs(n-e)/i,r=rs(([,,t])=>t).right(s,o);if(r===s.length)return t.every(ps(e/vs,n/vs,i));if(0===r)return As.every(Math.max(ps(e,n,i),1));const[a,l]=s[o/s[r-1][2]<s[r][2]/o?r-1:r];return a.every(l)}return[function(t,e,n){const i=e<t;i&&([t,e]=[e,t]);const o=n&&"function"==typeof n.range?n:a(t,e,n),r=o?o.range(t,+e+1):[];return i?r.reverse():r},a]}Xs.every=t=>isFinite(t=Math.floor(t))&&t>0?ws(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,Xs.range;const[Js,ta]=Qs(Xs,Ks,Ds,Ss,Is,Ms),[ea,na]=Qs(Ys,Gs,js,Ts,Cs,ks);function ia(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function oa(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ra(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var sa,aa,la,ca={"-":"",_:" ",0:"0"},ua=/^\s*\d+/,ha=/^%/,da=/[\\^$*+?|[\]().{}]/g;function pa(t,e,n){var i=t<0?"-":"",o=(i?-t:t)+"",r=o.length;return i+(r<n?new Array(n-r+1).join(e)+o:o)}function fa(t){return t.replace(da,"\\$&")}function ma(t){return new RegExp("^(?:"+t.map(fa).join("|")+")","i")}function ga(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function ya(t,e,n){var i=ua.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function _a(t,e,n){var i=ua.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function va(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function xa(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function ba(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function wa(t,e,n){var i=ua.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Aa(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Pa(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function ka(t,e,n){var i=ua.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function Ma(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Ca(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Ia(t,e,n){var i=ua.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Ta(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function La(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Sa(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Oa(t,e,n){var i=ua.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function ja(t,e,n){var i=ua.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function za(t,e,n){var i=ha.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Ea(t,e,n){var i=ua.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function Ra(t,e,n){var i=ua.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Na(t,e){return pa(t.getDate(),e,2)}function $a(t,e){return pa(t.getHours(),e,2)}function Ba(t,e){return pa(t.getHours()%12||12,e,2)}function Fa(t,e){return pa(1+Ts.count(Ys(t),t),e,3)}function Da(t,e){return pa(t.getMilliseconds(),e,3)}function Za(t,e){return Da(t,e)+"000"}function Ha(t,e){return pa(t.getMonth()+1,e,2)}function Ua(t,e){return pa(t.getMinutes(),e,2)}function Wa(t,e){return pa(t.getSeconds(),e,2)}function Va(t){var e=t.getDay();return 0===e?7:e}function qa(t,e){return pa(js.count(Ys(t)-1,t),e,2)}function Ga(t){var e=t.getDay();return e>=4||0===e?Ns(t):Ns.ceil(t)}function Ka(t,e){return t=Ga(t),pa(Ns.count(Ys(t),t)+(4===Ys(t).getDay()),e,2)}function Ya(t){return t.getDay()}function Xa(t,e){return pa(zs.count(Ys(t)-1,t),e,2)}function Qa(t,e){return pa(t.getFullYear()%100,e,2)}function Ja(t,e){return pa((t=Ga(t)).getFullYear()%100,e,2)}function tl(t,e){return pa(t.getFullYear()%1e4,e,4)}function el(t,e){var n=t.getDay();return pa((t=n>=4||0===n?Ns(t):Ns.ceil(t)).getFullYear()%1e4,e,4)}function nl(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+pa(e/60|0,"0",2)+pa(e%60,"0",2)}function il(t,e){return pa(t.getUTCDate(),e,2)}function ol(t,e){return pa(t.getUTCHours(),e,2)}function rl(t,e){return pa(t.getUTCHours()%12||12,e,2)}function sl(t,e){return pa(1+Ls.count(Xs(t),t),e,3)}function al(t,e){return pa(t.getUTCMilliseconds(),e,3)}function ll(t,e){return al(t,e)+"000"}function cl(t,e){return pa(t.getUTCMonth()+1,e,2)}function ul(t,e){return pa(t.getUTCMinutes(),e,2)}function hl(t,e){return pa(t.getUTCSeconds(),e,2)}function dl(t){var e=t.getUTCDay();return 0===e?7:e}function pl(t,e){return pa(Ds.count(Xs(t)-1,t),e,2)}function fl(t){var e=t.getUTCDay();return e>=4||0===e?Ws(t):Ws.ceil(t)}function ml(t,e){return t=fl(t),pa(Ws.count(Xs(t),t)+(4===Xs(t).getUTCDay()),e,2)}function gl(t){return t.getUTCDay()}function yl(t,e){return pa(Zs.count(Xs(t)-1,t),e,2)}function _l(t,e){return pa(t.getUTCFullYear()%100,e,2)}function vl(t,e){return pa((t=fl(t)).getUTCFullYear()%100,e,2)}function xl(t,e){return pa(t.getUTCFullYear()%1e4,e,4)}function bl(t,e){var n=t.getUTCDay();return pa((t=n>=4||0===n?Ws(t):Ws.ceil(t)).getUTCFullYear()%1e4,e,4)}function wl(){return"+0000"}function Al(){return"%"}function Pl(t){return+t}function kl(t){return Math.floor(+t/1e3)}sa=function(t){var e=t.dateTime,n=t.date,i=t.time,o=t.periods,r=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=ma(o),u=ga(o),h=ma(r),d=ga(r),p=ma(s),f=ga(s),m=ma(a),g=ga(a),y=ma(l),_=ga(l),v={a:function(t){return s[t.getDay()]},A:function(t){return r[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:Na,e:Na,f:Za,g:Ja,G:el,H:$a,I:Ba,j:Fa,L:Da,m:Ha,M:Ua,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Pl,s:kl,S:Wa,u:Va,U:qa,V:Ka,w:Ya,W:Xa,x:null,X:null,y:Qa,Y:tl,Z:nl,"%":Al},x={a:function(t){return s[t.getUTCDay()]},A:function(t){return r[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:il,e:il,f:ll,g:vl,G:bl,H:ol,I:rl,j:sl,L:al,m:cl,M:ul,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Pl,s:kl,S:hl,u:dl,U:pl,V:ml,w:gl,W:yl,x:null,X:null,y:_l,Y:xl,Z:wl,"%":Al},b={a:function(t,e,n){var i=p.exec(e.slice(n));return i?(t.w=f.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=d.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(t,e,n){var i=y.exec(e.slice(n));return i?(t.m=_.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(t,e,n){var i=m.exec(e.slice(n));return i?(t.m=g.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(t,n,i){return P(t,e,n,i)},d:Ca,e:Ca,f:ja,g:Aa,G:wa,H:Ta,I:Ta,j:Ia,L:Oa,m:Ma,M:La,p:function(t,e,n){var i=c.exec(e.slice(n));return i?(t.p=u.get(i[0].toLowerCase()),n+i[0].length):-1},q:ka,Q:Ea,s:Ra,S:Sa,u:_a,U:va,V:xa,w:ya,W:ba,x:function(t,e,i){return P(t,n,e,i)},X:function(t,e,n){return P(t,i,e,n)},y:Aa,Y:wa,Z:Pa,"%":za};function w(t,e){return function(n){var i,o,r,s=[],a=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++a<c;)37===t.charCodeAt(a)&&(s.push(t.slice(l,a)),null!=(o=ca[i=t.charAt(++a)])?i=t.charAt(++a):o="e"===i?" ":"0",(r=e[i])&&(i=r(n,o)),s.push(i),l=a+1);return s.push(t.slice(l,a)),s.join("")}}function A(t,e){return function(n){var i,o,r=ra(1900,void 0,1);if(P(r,t,n+="",0)!=n.length)return null;if("Q"in r)return new Date(r.Q);if("s"in r)return new Date(1e3*r.s+("L"in r?r.L:0));if(e&&!("Z"in r)&&(r.Z=0),"p"in r&&(r.H=r.H%12+12*r.p),void 0===r.m&&(r.m="q"in r?r.q:0),"V"in r){if(r.V<1||r.V>53)return null;"w"in r||(r.w=1),"Z"in r?(o=(i=oa(ra(r.y,0,1))).getUTCDay(),i=o>4||0===o?Zs.ceil(i):Zs(i),i=Ls.offset(i,7*(r.V-1)),r.y=i.getUTCFullYear(),r.m=i.getUTCMonth(),r.d=i.getUTCDate()+(r.w+6)%7):(o=(i=ia(ra(r.y,0,1))).getDay(),i=o>4||0===o?zs.ceil(i):zs(i),i=Ts.offset(i,7*(r.V-1)),r.y=i.getFullYear(),r.m=i.getMonth(),r.d=i.getDate()+(r.w+6)%7)}else("W"in r||"U"in r)&&("w"in r||(r.w="u"in r?r.u%7:"W"in r?1:0),o="Z"in r?oa(ra(r.y,0,1)).getUTCDay():ia(ra(r.y,0,1)).getDay(),r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(o+5)%7:r.w+7*r.U-(o+6)%7);return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,oa(r)):ia(r)}}function P(t,e,n,i){for(var o,r,s=0,a=e.length,l=n.length;s<a;){if(i>=l)return-1;if(37===(o=e.charCodeAt(s++))){if(o=e.charAt(s++),!(r=b[o in ca?e.charAt(s++):o])||(i=r(t,n,i))<0)return-1}else if(o!=n.charCodeAt(i++))return-1}return i}return v.x=w(n,v),v.X=w(i,v),v.c=w(e,v),x.x=w(n,x),x.X=w(i,x),x.c=w(e,x),{format:function(t){var e=w(t+="",v);return e.toString=function(){return t},e},parse:function(t){var e=A(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=A(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),aa=sa.format,sa.parse,la=sa.utcFormat,sa.utcParse;const Ml=rs(is),Cl=Ml.right,Il=(Ml.left,rs(function(t){return null===t?NaN:+t}).center,Cl);function Tl(t,e,n,i,o){var r=t*t,s=r*t;return((1-3*t+3*r-s)*e+(4-6*r+3*s)*n+(1+3*t+3*r-3*s)*i+s*o)/6}function Ll(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],r=t[i+1],s=i>0?t[i-1]:2*o-r,a=i<e-1?t[i+2]:2*r-o;return Tl((n-i/e)*e,s,o,r,a)}}function Sl(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),o=t[(i+e-1)%e],r=t[i%e],s=t[(i+1)%e],a=t[(i+2)%e];return Tl((n-i/e)*e,o,r,s,a)}}Object.defineProperty(Ll,"name",{value:"default",configurable:!0}),Object.defineProperty(Sl,"name",{value:"default",configurable:!0});const Ol=t=>()=>t;function jl(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ol(isNaN(t)?e:t)}(Object.getOwnPropertyDescriptor(Ol,"name")||{}).writable||Object.defineProperty(Ol,"name",{value:"default",configurable:!0});const zl=function t(e){var n=function(t){return 1===(t=+t)?jl:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Ol(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=io(t)).r,(e=io(e)).r),o=n(t.g,e.g),r=n(t.b,e.b),s=jl(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=o(e),t.b=r(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1);function El(t){return function(e){var n,i,o=e.length,r=new Array(o),s=new Array(o),a=new Array(o);for(n=0;n<o;++n)i=io(e[n]),r[n]=i.r||0,s[n]=i.g||0,a[n]=i.b||0;return r=t(r),s=t(s),a=t(a),i.opacity=1,function(t){return i.r=r(t),i.g=s(t),i.b=a(t),i+""}}}function Rl(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,r=new Array(o),s=new Array(i);for(n=0;n<o;++n)r[n]=Bl(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<o;++n)s[n]=r[n](t);return s}}function Nl(t,e){var n,i={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Bl(t[n],e[n]):o[n]=e[n];return function(t){for(n in i)o[n]=i[n](t);return o}}function $l(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,o=e.slice();return function(r){for(n=0;n<i;++n)o[n]=t[n]*(1-r)+e[n]*r;return o}}function Bl(t,e){var n,i,o=typeof e;return null==e||"boolean"===o?Ol(e):("number"===o?yo:"string"===o?(n=to(e))?(e=n,zl):xo:e instanceof to?zl:e instanceof Date?wr:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?Rl:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Nl:yo:$l))(t,e)}function Fl(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Dl(t){return+t}El(Ll),El(Sl),Object.defineProperty(function(t,e){return((void 0)(e)?void 0:Rl)(t,e)},"name",{value:"default",configurable:!0}),Object.defineProperty(Nl,"name",{value:"default",configurable:!0}),Object.defineProperty($l,"name",{value:"default",configurable:!0}),Object.defineProperty(Bl,"name",{value:"default",configurable:!0}),Object.defineProperty(Fl,"name",{value:"default",configurable:!0});var Zl=[0,1];function Hl(t){return t}function Ul(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function Wl(t,e,n){var i=t[0],o=t[1],r=e[0],s=e[1];return o<i?(i=Ul(o,i),r=n(s,r)):(i=Ul(i,o),r=n(r,s)),function(t){return r(i(t))}}function Vl(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),r=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=Ul(t[s],t[s+1]),r[s]=n(e[s],e[s+1]);return function(e){var n=Il(t,e,1,i)-1;return r[n](o[n](e))}}function ql(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Gl(){var t,e,n,i,o,r,s=Zl,a=Zl,l=Bl,c=Hl;function u(){var t=Math.min(s.length,a.length);return c!==Hl&&(c=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(s[0],s[t-1])),i=t>2?Vl:Wl,o=r=null,h}function h(e){return null==e||isNaN(e=+e)?n:(o||(o=i(s.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((r||(r=i(a,s.map(t),yo)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,Dl),u()):s.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),u()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),l=Fl,u()},h.clamp=function(t){return arguments.length?(c=!!t||Hl,u()):c!==Hl},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,u()}}function Kl(){return Gl()(Hl,Hl)}function Yl(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Xl(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}function Ql(t,e){var n,i=0,o=(t=t.slice()).length-1,r=t[i],s=t[o];return s<r&&(n=i,i=o,o=n,n=r,r=s,s=n),t[i]=e.floor(r),t[o]=e.ceil(s),t}function Jl(t){return new Date(t)}function tc(t){return t instanceof Date?+t:+new Date(+t)}function ec(t,e,n,i,o,r,s,a,l,c){var u=Kl(),h=u.invert,d=u.domain,p=c(".%L"),f=c(":%S"),m=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),_=c("%b %d"),v=c("%B"),x=c("%Y");function b(t){return(l(t)<t?p:a(t)<t?f:s(t)<t?m:r(t)<t?g:i(t)<t?o(t)<t?y:_:n(t)<t?v:x)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?d(Array.from(t,tc)):d().map(Jl)},u.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?b:c(e)},u.nice=function(t){var n=d();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?d(Ql(n,t)):u},u.copy=function(){return ql(u,ec(t,e,n,i,o,r,s,a,l,c))},u}function nc(){return Yl.apply(ec(ea,na,Ys,Gs,js,Ts,Cs,ks,Ps,aa).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}class ic extends Map{constructor(t,e=rc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(oc(this,t))}has(t){return super.has(oc(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}(this,t))}}function oc({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function rc(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const sc=Symbol("implicit");function ac(){var t=new ic,e=[],n=[],i=sc;function o(o){let r=t.get(o);if(void 0===r){if(i!==sc)return i;t.set(o,r=e.push(o)-1)}return n[r%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new ic;for(const i of n)t.has(i)||t.set(i,e.push(i)-1);return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return ac(e,n).unknown(i)},Yl.apply(o,arguments),o}function lc(){var t,e,n=ac().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,u=.5;function h(){var n=i().length,h=s<r,d=h?s:r,p=h?r:s;t=(p-d)/Math.max(1,n-l+2*c),a&&(t=Math.floor(t)),d+=(p-d-t*(n-l))*u,e=t*(1-l),a&&(d=Math.round(d),e=Math.round(e));var f=function(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var i=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),r=new Array(o);++i<o;)r[i]=t+i*n;return r}(n).map(function(e){return d+t*e});return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([r,s]=t,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(t){return[r,s]=t,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),h()):u},n.copy=function(){return lc(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(u)},Yl.apply(h(),arguments)}function cc(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return cc(e())},t}function uc(){return cc(lc.apply(null,arguments).paddingInner(1))}function hc(t){return"band"===t.scaleType}function dc(t){return"point"===t.scaleType}function pc(){var t,e=[.5],n=[0,1],i=1;function o(o){return null!=o&&o<=o?n[Il(e,o,0,i)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),i=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),i=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var i=n.indexOf(t);return[e[i-1],e[i]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return pc().domain(e).range(n).unknown(t)},Yl.apply(o,arguments)}var fc,mc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gc(t){if(!(e=mc.exec(t)))throw new Error("invalid format: "+t);var e;return new yc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function yc(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function _c(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function vc(t,e){if(!isFinite(t)||0===t)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function xc(t){return(t=vc(Math.abs(t)))?t[1]:NaN}function bc(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(xc(e)/3)))-xc(Math.abs(t)))}function wc(t,e){return function(n,i){for(var o=n.length,r=[],s=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(n.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return r.reverse().join(e)}}function Ac(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}function Pc(t){t:for(var e,n=t.length,i=1,o=-1;i<n;++i)switch(t[i]){case".":o=e=i;break;case"0":0===o&&(o=i),e=i;break;default:if(!+t[i])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}function kc(t,e){var n=vc(t,e);if(!n)return fc=void 0,t.toPrecision(e);var i=n[0],o=n[1],r=o-(fc=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+vc(t,Math.max(0,e+r-1))[0]}function Mc(t,e){var n=vc(t,e);if(!n)return t+"";var i=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}gc.prototype=yc.prototype,yc.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},Object.defineProperty(_c,"name",{value:"default",configurable:!0}),Object.defineProperty(xc,"name",{value:"default",configurable:!0}),Object.defineProperty(bc,"name",{value:"default",configurable:!0}),Object.defineProperty(wc,"name",{value:"default",configurable:!0}),Object.defineProperty(Ac,"name",{value:"default",configurable:!0}),Object.defineProperty(Pc,"name",{value:"default",configurable:!0}),Object.defineProperty(kc,"name",{value:"default",configurable:!0}),Object.defineProperty(Mc,"name",{value:"default",configurable:!0});const Cc={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:_c,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Mc(100*t,e),r:Mc,s:kc,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ic(t){return t}Object.defineProperty(Ic,"name",{value:"default",configurable:!0}),Object.defineProperty(zc,"name",{value:"default",configurable:!0});var Tc,Lc,Sc,Oc=Array.prototype.map,jc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zc(t){var e=void 0===t.grouping||void 0===t.thousands?Ic:wc(Oc.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",r=void 0===t.numerals?Ic:Ac(Oc.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(t,c){var u=(t=gc(t)).fill,h=t.align,d=t.sign,p=t.symbol,f=t.zero,m=t.width,g=t.comma,y=t.precision,_=t.trim,v=t.type;"n"===v?(g=!0,v="g"):Cc[v]||(void 0===y&&(y=12),_=!0,v="g"),(f||"0"===u&&"="===h)&&(f=!0,u="0",h="=");var x=(c&&void 0!==c.prefix?c.prefix:"")+("$"===p?n:"#"===p&&/[boxX]/.test(v)?"0"+v.toLowerCase():""),b=("$"===p?i:/[%p]/.test(v)?s:"")+(c&&void 0!==c.suffix?c.suffix:""),w=Cc[v],A=/[defgprs%]/.test(v);function P(t){var n,i,s,c=x,p=b;if("c"===v)p=w(t)+p,t="";else{var P=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),y),_&&(t=Pc(t)),P&&0===+t&&"+"!==d&&(P=!1),c=(P?"("===d?d:a:"-"===d||"("===d?"":d)+c,p=("s"!==v||isNaN(t)||void 0===fc?"":jc[8+fc/3])+p+(P&&"("===d?")":""),A)for(n=-1,i=t.length;++n<i;)if(48>(s=t.charCodeAt(n))||s>57){p=(46===s?o+t.slice(n+1):t.slice(n))+p,t=t.slice(0,n);break}}g&&!f&&(t=e(t,1/0));var k=c.length+t.length+p.length,M=k<m?new Array(m-k+1).join(u):"";switch(g&&f&&(t=e(M+t,M.length?m-p.length:1/0),M=""),h){case"<":t=c+t+p+M;break;case"=":t=c+M+t+p;break;case"^":t=M.slice(0,k=M.length>>1)+c+t+p+M.slice(k);break;default:t=M+c+t+p}return r(t)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),P.toString=function(){return t+""},P}return{format:c,formatPrefix:function(t,e){var n=3*Math.max(-8,Math.min(8,Math.floor(xc(e)/3))),i=Math.pow(10,-n),o=c(((t=gc(t)).type="f",t),{suffix:jc[8+n/3]});return function(t){return o(i*t)}}}}function Ec(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,xc(e)-xc(t))+1}function Rc(t){return Math.max(0,-xc(Math.abs(t)))}function Nc(t){var e=t.domain;return t.ticks=function(t){var n=e();return hs(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return function(t,e,n,i){var o,r=ps(t,e,n);switch((i=gc(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(o=bc(r,s))||(i.precision=o),Sc(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Ec(r,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Rc(r))||(i.precision=o-2*("%"===i.type))}return Lc(i)}(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,o,r=e(),s=0,a=r.length-1,l=r[s],c=r[a],u=10;for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);u-- >0;){if((o=ds(l,c,n))===i)return r[s]=l,r[a]=c,e(r);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}function $c(){var t=Kl();return t.copy=function(){return ql(t,$c())},Yl.apply(t,arguments),Nc(t)}function Bc(){var t=Nc(function(){var t,e,n,i,o,r=0,s=1,a=Hl,l=!1;function c(e){return null==e||isNaN(e=+e)?o:a(0===n?.5:(e=(i(e)-t)*n,l?Math.max(0,Math.min(1,e)):e))}function u(t){return function(e){var n,i;return arguments.length?([n,i]=e,a=t(n,i),c):[a(0),a(1)]}}return c.domain=function(o){return arguments.length?([r,s]=o,t=i(r=+r),e=i(s=+s),n=t===e?0:1/(e-t),c):[r,s]},c.clamp=function(t){return arguments.length?(l=!!t,c):l},c.interpolator=function(t){return arguments.length?(a=t,c):a},c.range=u(Bl),c.rangeRound=u(Fl),c.unknown=function(t){return arguments.length?(o=t,c):o},function(o){return i=o,t=o(r),e=o(s),n=t===e?0:1/(e-t),c}}()(Hl));return t.copy=function(){return function(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}(t,Bc())},Xl.apply(t,arguments)}function Fc(t){return"piecewise"===t.type?pc(t.thresholds,t.colors):Bc([t.min??0,t.max??100],t.color)}function Dc(t){return t.values?ac(t.values,t.colors).unknown(t.unknownColor??null):ac(t.colors.map((t,e)=>e),t.colors).unknown(t.unknownColor??null)}function Zc(t){return"ordinal"===t.type?Dc(t):Fc(t)}function Hc(t){return"number"==typeof t&&!Number.isFinite(t)}Tc=zc({thousands:",",grouping:[3],currency:["$",""]}),Lc=Tc.format,Sc=Tc.formatPrefix,Object.defineProperty(Ec,"name",{value:"default",configurable:!0}),Object.defineProperty(Rc,"name",{value:"default",configurable:!0});const Uc={start:0,extremities:0,end:1,middle:.5};function Wc(e){const{scale:n,tickNumber:i,valueFormatter:o,tickInterval:r,tickPlacement:s="extremities",tickLabelPlacement:a="middle"}=e;return t.useMemo(()=>{if(Fo(n)){const t=n.domain();return n.bandwidth()>0?[...("function"==typeof r&&t.filter(r)||"object"==typeof r&&r||t).map(t=>({value:t,formattedValue:o?.(t,{location:"tick"})??`${t}`,offset:n(t)-(n.step()-n.bandwidth())/2+Uc[s]*n.step(),labelOffset:"tick"===a?0:n.step()*(Uc[a]-Uc[s])})),..."extremities"===s?[{formattedValue:void 0,offset:n.range()[1],labelOffset:0}]:[]]:("function"==typeof r&&t.filter(r)||"object"==typeof r&&r||t).map(t=>({value:t,formattedValue:o?.(t,{location:"tick"})??`${t}`,offset:n(t),labelOffset:0}))}return n.domain().some(Hc)?[]:("object"==typeof r?r:n.ticks(i)).map(t=>({value:t,formattedValue:o?.(t,{location:"tick"})??n.tickFormat(i)(t),offset:n(t),labelOffset:0}))},[n,r,i,o,s,a])}function Vc(t){return Math.log(t)}function qc(t){return Math.exp(t)}function Gc(t){return-Math.log(-t)}function Kc(t){return-Math.exp(-t)}function Yc(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Xc(t){return(e,n)=>-t(-e,n)}function Qc(){const t=function(t){const e=t(Vc,qc),n=e.domain;let i,o,r=10;function s(){return i=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(r),o=function(t){return 10===t?Yc:t===Math.E?Math.exp:e=>Math.pow(t,e)}(r),n()[0]<0?(i=Xc(i),o=Xc(o),t(Gc,Kc)):t(Vc,qc),e}return e.base=function(t){return arguments.length?(r=+t,s()):r},e.domain=function(t){return arguments.length?(n(t),s()):n()},e.ticks=t=>{const e=n();let s=e[0],a=e[e.length-1];const l=a<s;l&&([s,a]=[a,s]);let c,u,h=i(s),d=i(a);const p=null==t?10:+t;let f=[];if(!(r%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),s>0){for(;h<=d;++h)for(c=1;c<r;++c)if(u=h<0?c/o(-h):c*o(h),!(u<s)){if(u>a)break;f.push(u)}}else for(;h<=d;++h)for(c=r-1;c>=1;--c)if(u=h>0?c/o(-h):c*o(h),!(u<s)){if(u>a)break;f.push(u)}2*f.length<p&&(f=hs(s,a,p))}else f=hs(h,d,Math.min(d-h,p)).map(o);return l?f.reverse():f},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===r?"s":","),"function"!=typeof n&&(r%1||null!=(n=gc(n)).precision||(n.trim=!0),n=Lc(n)),t===1/0)return n;const s=Math.max(1,r*t/e.ticks().length);return t=>{let e=t/o(Math.round(i(t)));return e*r<r-.5&&(e*=r),e<=s?n(t):""}},e.nice=()=>n(Ql(n(),{floor:t=>o(Math.floor(i(t))),ceil:t=>o(Math.ceil(i(t)))})),e}(Gl()).domain([1,10]);return t.copy=()=>ql(t,Qc()).base(t.base()),Yl.apply(t,arguments),t}function Jc(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function tu(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function eu(t){return t<0?-t*t:t*t}function nu(){var t=function(t){var e=t(Hl,Hl),n=1;return e.exponent=function(e){return arguments.length?1===(n=+e)?t(Hl,Hl):.5===n?t(tu,eu):t(Jc(n),Jc(1/n)):n},Nc(e)}(Gl());return t.copy=function(){return ql(t,nu()).exponent(t.exponent())},Yl.apply(t,arguments),t}function iu(t,e,n){switch(t){case"log":return Qc(e,n);case"pow":return nu(e,n);case"sqrt":return function(){return nu.apply(null,arguments).exponent(.5)}(e,n);case"time":return nc(e,n);case"utc":return function(){return Yl.apply(ec(Js,ta,Xs,Ks,Ds,Ls,Is,Ms,Ps,la).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}(e,n);default:return $c(e,n)}}const ou=(t,e)=>{const n=t[1]-t[0],i=e[1]-e[0];return[t[0]-e[0]*n/i,t[1]+(100-e[1])*n/i]},ru=t=>t?.[0]instanceof Date;function su(t,e){const n=nc(t.data,e);return(e,{location:i})=>"tick"===i?n.tickFormat(t.tickNumber)(e):`${e.toLocaleString()}`}function au({drawingArea:t,formattedSeries:e,axis:n,extremumGetters:i,axisDirection:o,zoomData:s,zoomOptions:a,getFilters:l}){const c={};return n.forEach((n,u)=>{const h=n,d=a?.[h.id],p=s?.find(({axisId:t})=>t===h.id),f=p?[p.start,p.end]:[0,100],m=function(t,e,n){if("rotation"===e){const{startAngle:t=0,endAngle:e=t+360}=n;return n.reverse?[Math.PI*t/180,Math.PI*e/180]:[Math.PI*e/180,Math.PI*t/180]}if("radius"===e){const{minRadius:e=0,maxRadius:i=Math.min(t.width,t.height)/2}=n;return[e,i]}const i="x"===e?[t.left,t.left+t.width]:[t.top+t.height,t.top];return n.reverse?[i[1],i[0]]:i}(t,o,h),[g,y]=((t,e,n,i,o)=>{const r=Object.keys(e).reduce((r,s)=>((t,e,n,i,o,r,s)=>{const a=i[e],l=r[e]?.series??{},[c,u]=a?.({series:l,axis:n,axisIndex:o,isDefaultAxis:0===o,getFilters:s})??[1/0,-1/0],[h,d]=t;return[Math.min(c,h),Math.max(u,d)]})(r,s,t,e,n,i,o),[1/0,-1/0]);return Number.isNaN(r[0])||Number.isNaN(r[1])?[1/0,-1/0]:r})(h,i,u,e,void 0!==p||d?void 0:l),_=h.data??[];if(hc(h)){const t=h.categoryGapRatio??.2,e=h.barGapRatio??.1,n="y"===o?[m[1],m[0]]:m,i=ou(n,f);if(c[h.id]=(0,r.A)({categoryGapRatio:t,barGapRatio:e},h,{data:_,scale:lc(h.data,i).paddingInner(t).paddingOuter(t/2),tickNumber:h.data.length,colorScale:h.colorMap&&("ordinal"===h.colorMap.type?Dc((0,r.A)({values:h.data},h.colorMap)):Zc(h.colorMap))}),ru(h.data)){const t=su(h,n);c[h.id].valueFormatter=h.valueFormatter??t}}if(dc(h)){const t="y"===o?[...m].reverse():m,e=ou(t,f);if(c[h.id]=(0,r.A)({},h,{data:_,scale:uc(h.data,e),tickNumber:h.data.length,colorScale:h.colorMap&&("ordinal"===h.colorMap.type?Dc((0,r.A)({values:h.data},h.colorMap)):Zc(h.colorMap))}),ru(h.data)){const e=su(h,t);c[h.id].valueFormatter=h.valueFormatter??e}}if("band"===h.scaleType||"point"===h.scaleType)return;const v=h.scaleType??"linear",x=h.domainLimit??"nice",b=[h.min??g,h.max??y];if("function"==typeof x){const{min:t,max:e}=x(g,y);b[0]=t,b[1]=e}const w=function(t){const{tickMaxStep:e,tickMinStep:n,tickNumber:i,range:o,domain:r}=t,s=void 0===n?999:Math.floor(Math.abs(r[1]-r[0])/n),a=void 0===e?2:Math.ceil(Math.abs(r[1]-r[0])/e),l=i??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(s,Math.max(a,l))}((0,r.A)({},h,{range:m,domain:b})),A=w/((f[1]-f[0])/100),P=iu(v,b,ou(m,f)),k="nice"===x?P.nice(w):P,[M,C]=k.domain(),I=[h.min??M,h.max??C];c[h.id]=(0,r.A)({},h,{data:_,scaleType:v,scale:k.domain(I),tickNumber:A,colorScale:h.colorMap&&Zc(h.colorMap)})}),{axis:c,axisIds:n.map(({id:t})=>t)}}function lu(e){const{xAxis:n,yAxis:o,children:r}=e,s=Cr(),a=Lo(),l=function(){const{isInitialized:e,data:n}=t.useContext(Kr);if(!e)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n.xExtremumGetters}(),c=function(){const{isInitialized:e,data:n}=t.useContext(Kr);if(!e)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n.yExtremumGetters}(),u=t.useMemo(()=>au({drawingArea:a,formattedSeries:s,axis:n,extremumGetters:l,axisDirection:"x"}),[a,s,n,l]),h=t.useMemo(()=>au({drawingArea:a,formattedSeries:s,axis:o,extremumGetters:c,axisDirection:"y"}),[a,s,o,c]),d=t.useMemo(()=>({isInitialized:!0,data:{xAxis:u.axis,yAxis:h.axis,xAxisIds:u.axisIds,yAxisIds:h.axisIds}}),[u,h]);return(0,i.jsx)(O.Provider,{value:d,children:r})}const cu=t.createContext({zAxis:{},zAxisIds:[]});function uu(e){const{zAxis:n,dataset:o,children:s}=e,a=t.useMemo(()=>n?.map(t=>{const e=t.dataKey;if(void 0===e||void 0!==t.data)return t;if(void 0===o)throw new Error("MUI X: z-axis uses `dataKey` but no `dataset` is provided.");return(0,r.A)({},t,{data:o.map(t=>t[e])})}),[n,o]),l=t.useMemo(()=>{const t=a?.map((t,e)=>(0,r.A)({id:`defaultized-z-axis-${e}`},t))??[],e={};return t.forEach(t=>{e[t.id]=(0,r.A)({},t,{colorScale:t.colorMap&&("ordinal"===t.colorMap.type&&t.data?Dc((0,r.A)({values:t.data},t.colorMap)):Zc("continuous"===t.colorMap.type?(0,r.A)({min:t.min,max:t.max},t.colorMap):t.colorMap))})}),{zAxis:e,zAxisIds:t.map(({id:t})=>t)}},[a]);return(0,i.jsx)(cu.Provider,{value:l,children:s})}var hu=c(2501);const du=(t,e)=>n=>!!t&&("series"===t.fade?n.seriesId===e?.seriesId&&n.dataIndex!==e?.dataIndex:"global"===t.fade&&(n.seriesId!==e?.seriesId||n.dataIndex!==e?.dataIndex)),pu=(t,e)=>n=>!!t&&("series"===t.highlight||"item"===t.highlight&&n.dataIndex===e?.dataIndex)&&n.seriesId===e?.seriesId,fu=["highlighted","faded"];function mu({children:e,highlightedItem:n,onHighlightChange:o}){const[s,a]=(0,hu.A)({controlled:n,default:null,name:"HighlightedProvider",state:"highlightedItem"}),l=Cr(),c=t.useMemo(()=>{const t=new Map;return Object.keys(l).forEach(e=>{const n=l[e];Object.keys(n?.series??{}).forEach(e=>{const i=n?.series[e];t.set(e,(t=>{const e=t??{},{highlighted:n,faded:i}=e,o=(0,g.A)(e,fu);return(0,r.A)({highlight:n,fade:i},o)})(i?.highlightScope))})}),t},[l]),u=s&&s.seriesId?c.get(s.seriesId)??void 0:void 0,h=t.useMemo(()=>({isInitialized:!0,data:{highlightScope:u,highlightedItem:s,setHighlighted:t=>{a(t),o?.(t)},clearHighlighted:()=>{a(null),o?.(null)},isHighlighted:pu(u,s),isFaded:du(u,s)}}),[s,u,a,o]);return(0,i.jsx)(V.Provider,{value:h,children:e})}const gu=(t,e)=>"x"===e?{x:t,y:null}:{x:null,y:t},yu=t=>{const{axis:e,getFilters:n,isDefaultAxis:i}=t,o=n?.({currentAxisId:e.id,isDefaultAxis:i}),r=o?e.data?.filter((t,e)=>o({x:null,y:null},e)):e.data;return[Math.min(...r??[]),Math.max(...r??[])]},_u=t=>e=>{const{series:n,axis:i,getFilters:o,isDefaultAxis:r}=e;return Object.keys(n).filter(t=>{const e=n[t].yAxisId??n[t].yAxisKey;return e===i.id||r&&void 0===e}).reduce((e,s)=>{const{stackedData:a}=n[s],l=o?.({currentAxisId:i.id,isDefaultAxis:r,seriesXAxisId:n[s].xAxisId??n[s].xAxisKey,seriesYAxisId:n[s].yAxisId??n[s].yAxisKey}),[c,u]=a?.reduce((e,n,i)=>!l||l(gu(n[0],t),i)&&l(gu(n[1],t),i)?[Math.min(...n,e[0]),Math.max(...n,e[1])]:e,[1/0,-1/0])??[1/0,-1/0];return[Math.min(c,e[0]),Math.max(u,e[1])]},[1/0,-1/0])};function vu(t,e){if((o=t.length)>1)for(var n,i,o,r=1,s=t[e[0]],a=s.length;r<o;++r)for(i=s,s=t[e[r]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function xu(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function bu(t,e){return t[e]}function wu(t){const e=[];return e.key=t,e}function Au(){var t=_([]),e=xu,n=vu,i=bu;function o(o){var r,s,a=Array.from(t.apply(this,arguments),wu),l=a.length,c=-1;for(const t of o)for(r=0,++c;r<l;++r)(a[r][c]=[0,+i(t,a[r].key,c,o)]).data=t;for(r=0,s=y(e(a));r<l;++r)a[s[r]].index=r;return n(a,s),a}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:_(Array.from(e)),o):t},o.value=function(t){return arguments.length?(i="function"==typeof t?t:_(+t),o):i},o.order=function(t){return arguments.length?(e=null==t?xu:"function"==typeof t?t:_(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(n=null==t?vu:t,o):n},o}function Pu(t){var e=t.map(ku);return xu(t).sort(function(t,n){return e[t]-e[n]})}function ku(t){for(var e,n=-1,i=0,o=t.length,r=-1/0;++n<o;)(e=+t[n][1])>r&&(r=e,i=n);return i}function Mu(t){var e=t.map(Cu);return xu(t).sort(function(t,n){return e[t]-e[n]})}function Cu(t){for(var e,n=0,i=-1,o=t.length;++i<o;)(e=+t[i][1])&&(n+=e);return n}function Iu(t){return Mu(t).reverse()}function Tu(t){var e,n,i=t.length,o=t.map(Cu),r=Pu(t),s=0,a=0,l=[],c=[];for(e=0;e<i;++e)n=r[e],s<a?(s+=o[n],l.push(n)):(a+=o[n],c.push(n));return c.reverse().concat(l)}function Lu(t){return xu(t).reverse()}function Su(t,e){if((i=t.length)>0){for(var n,i,o,r=0,s=t[0].length;r<s;++r){for(o=n=0;n<i;++n)o+=t[n][r][1]||0;if(o)for(n=0;n<i;++n)t[n][r][1]/=o}vu(t,e)}}function Ou(t,e){if((a=t.length)>0)for(var n,i,o,r,s,a,l=0,c=t[e[0]].length;l<c;++l)for(r=s=0,n=0;n<a;++n)(o=(i=t[e[n]][l])[1]-i[0])>0?(i[0]=r,i[1]=r+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function ju(t,e){if((n=t.length)>0){for(var n,i=0,o=t[e[0]],r=o.length;i<r;++i){for(var s=0,a=0;s<n;++s)a+=t[s][i][1]||0;o[i][1]+=o[i][0]=-a/2}vu(t,e)}}function zu(t,e){if((o=t.length)>0&&(i=(n=t[e[0]]).length)>0){for(var n,i,o,r=0,s=1;s<i;++s){for(var a=0,l=0,c=0;a<o;++a){for(var u=t[e[a]],h=u[s][1]||0,d=(h-(u[s-1][1]||0))/2,p=0;p<a;++p){var f=t[e[p]];d+=(f[s][1]||0)-(f[s-1][1]||0)}l+=h,c+=d*h}n[s-1][1]+=n[s-1][0]=r,l&&(r-=c/l)}n[s-1][1]+=n[s-1][0]=r,vu(t,e)}}Object.defineProperty(vu,"name",{value:"default",configurable:!0}),Object.defineProperty(xu,"name",{value:"default",configurable:!0}),Object.defineProperty(Au,"name",{value:"default",configurable:!0}),Object.defineProperty(Pu,"name",{value:"default",configurable:!0}),Object.defineProperty(Mu,"name",{value:"default",configurable:!0}),Object.defineProperty(Iu,"name",{value:"default",configurable:!0}),Object.defineProperty(Tu,"name",{value:"default",configurable:!0}),Object.defineProperty(Lu,"name",{value:"default",configurable:!0}),Object.defineProperty(Su,"name",{value:"default",configurable:!0}),Object.defineProperty(Ou,"name",{value:"default",configurable:!0}),Object.defineProperty(ju,"name",{value:"default",configurable:!0}),Object.defineProperty(zu,"name",{value:"default",configurable:!0});const Eu={appearance:Pu,ascending:Mu,descending:Iu,insideOut:Tu,none:xu,reverse:Lu},Ru={expand:Su,diverging:Ou,none:vu,silhouette:ju,wiggle:zu},Nu=t=>{const{series:e,seriesOrder:n,defaultStrategy:i}=t,o=[],r={};return n.forEach(t=>{const{stack:n,stackOrder:s,stackOffset:a}=e[t];void 0===n?o.push({ids:[t],stackingOrder:Eu.none,stackingOffset:Ru.none}):void 0===r[n]?(r[n]=o.length,o.push({ids:[t],stackingOrder:Eu[s??i?.stackOrder??"none"],stackingOffset:Ru[a??i?.stackOffset??"diverging"]})):(o[r[n]].ids.push(t),void 0!==s&&(o[r[n]].stackingOrder=Eu[s]),void 0!==a&&(o[r[n]].stackingOffset=Ru[a]))}),o};function $u(t,e){const n={};return Object.keys(t).forEach(i=>{n[i]=(0,r.A)({},t[i],{valueFormatter:t[i].valueFormatter??e})}),n}const Bu=(t,e,n)=>{const i="vertical"===t.layout,o=i?e?.colorScale:n?.colorScale,r=i?n?.colorScale:e?.colorScale,s=i?e?.data:n?.data;return r?e=>{const n=t.data[e],i=null===n?t.color:r(n);return null===i?t.color:i}:o&&s?e=>{const n=s[e],i=null===n?t.color:o(n);return null===i?t.color:i}:()=>t.color},Fu={seriesType:"bar",seriesFormatter:(t,e)=>{const{seriesOrder:n,series:i}=t,o=Nu(t),s=e??[];n.forEach(t=>{const n=i[t].data;if(void 0!==n)n.forEach((e,n)=>{s.length<=n?s.push({[t]:e}):s[n][t]=e});else if(void 0===e)throw new Error([`MUI X: bar series with id='${t}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join("\n"))});const a={};return o.forEach(t=>{const{ids:n,stackingOffset:o,stackingOrder:l}=t,c=Au().keys(n.map(t=>{const e=i[t].dataKey;return void 0===i[t].data&&void 0!==e?e:t})).value((t,e)=>t[e]??0).order(l).offset(o)(s);n.forEach((t,n)=>{const o=i[t].dataKey;a[t]=(0,r.A)({layout:"vertical"},i[t],{data:o?e.map(t=>{const e=t[o];return"number"!=typeof e?0:e}):i[t].data,stackedData:c[n].map(([t,e])=>[t,e])})})}),{seriesOrder:n,stackingGroups:o,series:$u(a,t=>null==t?"":t.toLocaleString())}},colorProcessor:Bu,xExtremumGetter:t=>Object.keys(t.series).some(e=>"horizontal"===t.series[e].layout)?_u("x")(t):yu(t),yExtremumGetter:t=>Object.keys(t.series).some(e=>"horizontal"===t.series[e].layout)?yu(t):_u("y")(t)},Du=(t,e)=>[null===e[0]?t[0]:Math.min(t[0],e[0]),null===e[1]?t[1]:Math.max(t[1],e[1])],Zu=(t,e,n,i)=>{const o=i?.colorScale,r=n?.colorScale,s=e?.colorScale;return o?e=>{if(void 0!==i?.data?.[e]){const t=o(i?.data?.[e]);if(null!==t)return t}const n=t.data[e],r=null===n?t.color:o(n.z);return null===r?t.color:r}:r?e=>{const n=t.data[e],i=null===n?t.color:r(n.y);return null===i?t.color:i}:s?e=>{const n=t.data[e],i=null===n?t.color:s(n.x);return null===i?t.color:i}:()=>t.color},Hu={seriesType:"scatter",seriesFormatter:({series:t,seriesOrder:e},n)=>({series:Object.fromEntries(Object.entries(t).map(([t,e])=>{const i=e?.datasetKeys,o=["x","y","id"].filter(t=>"string"!=typeof i?.[t]);if(e?.datasetKeys&&o.length>0)throw new Error([`MUI X: scatter series with id='${t}' has incomplete datasetKeys.`,`Properties ${o.map(t=>`"${t}"`).join(", ")} are missing.`].join("\n"));const s=i?n?.map(t=>({x:t[i.x]??null,y:t[i.y]??null,z:i.z&&t[i.z],id:t[i.id]}))??[]:e.data??[];return[t,(0,r.A)({},e,{data:s,valueFormatter:e.valueFormatter??(t=>`(${t.x}, ${t.y})`)})]})),seriesOrder:e}),colorProcessor:Zu,xExtremumGetter:t=>{const{series:e,axis:n,isDefaultAxis:i,getFilters:o}=t;return Object.keys(e).filter(t=>{const o=e[t].xAxisId??e[t].xAxisKey;return o===n.id||void 0===o&&i}).reduce((t,r)=>{const s=o?.({currentAxisId:n.id,isDefaultAxis:i,seriesXAxisId:e[r].xAxisId??e[r].xAxisKey,seriesYAxisId:e[r].yAxisId??e[r].yAxisKey}),a=e[r].data?.reduce((t,e,n)=>s&&!s(e,n)?t:Du(t,[e.x,e.x]),[1/0,-1/0]);return Du(t,a??[1/0,-1/0])},[1/0,-1/0])},yExtremumGetter:t=>{const{series:e,axis:n,isDefaultAxis:i,getFilters:o}=t;return Object.keys(e).filter(t=>{const o=e[t].yAxisId??e[t].yAxisKey;return o===n.id||void 0===o&&i}).reduce((t,r)=>{const s=o?.({currentAxisId:n.id,isDefaultAxis:i,seriesXAxisId:e[r].xAxisId??e[r].xAxisKey,seriesYAxisId:e[r].yAxisId??e[r].yAxisKey}),a=e[r].data?.reduce((t,e,n)=>s&&!s(e,n)?t:Du(t,[e.y,e.y]),[1/0,-1/0]);return Du(t,a??[1/0,-1/0])},[1/0,-1/0])}},Uu=(t,e,n)=>{const i=n?.colorScale,o=e?.colorScale;return i?e=>{const n=t.data[e],o=null===n?t.color:i(n);return null===o?t.color:o}:o?n=>{const i=e.data?.[n],r=null===i?t.color:o(i);return null===r?t.color:r}:()=>t.color},Wu={seriesType:"line",colorProcessor:Uu,seriesFormatter:(t,e)=>{const{seriesOrder:n,series:i}=t,o=Nu((0,r.A)({},t,{defaultStrategy:{stackOffset:"none"}})),s=e??[];n.forEach(t=>{const e=i[t].data;void 0!==e&&e.forEach((e,n)=>{s.length<=n?s.push({[t]:e}):s[n][t]=e})});const a={};return o.forEach(t=>{const{ids:n,stackingOrder:o,stackingOffset:l}=t,c=Au().keys(n.map(t=>{const e=i[t].dataKey;return void 0===i[t].data&&void 0!==e?e:t})).value((t,e)=>t[e]??0).order(o).offset(l)(s);n.forEach((t,n)=>{const o=i[t].dataKey;a[t]=(0,r.A)({},i[t],{data:o?e.map(t=>{const e=t[o];return"number"!=typeof e?null:e}):i[t].data,stackedData:c[n].map(([t,e])=>[t,e])})})}),{seriesOrder:n,stackingGroups:o,series:$u(a,t=>null==t?"":t.toLocaleString())}},xExtremumGetter:t=>{const{axis:e}=t;return[Math.min(...e.data??[]),Math.max(...e.data??[])]},yExtremumGetter:t=>{const{series:e,axis:n,isDefaultAxis:i,getFilters:o}=t;return Object.keys(e).filter(t=>{const o=e[t].yAxisId??e[t].yAxisKey;return o===n.id||i&&void 0===o}).reduce((t,r)=>{const{area:s,stackedData:a}=e[r],l=void 0!==s,c=o?.({currentAxisId:n.id,isDefaultAxis:i,seriesXAxisId:e[r].xAxisId??e[r].xAxisKey,seriesYAxisId:e[r].yAxisId??e[r].yAxisKey}),u=function(t,e,n){return e.reduce((e,i,o)=>{const[r,s]=t(i);return!n||n({y:r,x:null},o)&&n({y:s,x:null},o)?[Math.min(r,s,e[0]),Math.max(r,s,e[1])]:e},[1/0,-1/0])}(l&&"log"!==n.scaleType&&"string"!=typeof e[r].baseline?t=>t:t=>[t[1],t[1]],a,c),[h,d]=u;return[Math.min(h,t[0]),Math.max(d,t[1])]},[1/0,-1/0])}};function Vu(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function qu(t){return t}function Gu(){var t=qu,e=Vu,n=null,i=_(0),o=_(Qo),r=_(0);function s(s){var a,l,c,u,h,d=(s=y(s)).length,p=0,f=new Array(d),m=new Array(d),g=+i.apply(this,arguments),_=Math.min(Qo,Math.max(-Qo,o.apply(this,arguments)-g)),v=Math.min(Math.abs(_)/d,r.apply(this,arguments)),x=v*(_<0?-1:1);for(a=0;a<d;++a)(h=m[f[a]=a]=+t(s[a],a,s))>0&&(p+=h);for(null!=e?f.sort(function(t,n){return e(m[t],m[n])}):null!=n&&f.sort(function(t,e){return n(s[t],s[e])}),a=0,c=p?(_-d*x)/p:0;a<d;++a,g=u)l=f[a],u=g+((h=m[l])>0?h*c:0)+x,m[l]={data:s[l],index:a,value:h,startAngle:g,endAngle:u,padAngle:v};return m}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:_(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:_(+t),s):i},s.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:_(+t),s):o},s.padAngle=function(t){return arguments.length?(r="function"==typeof t?t:_(+t),s):r},s}function Ku(t,e){return"function"==typeof t?t(e):t}Object.defineProperty(Vu,"name",{value:"default",configurable:!0}),Object.defineProperty(qu,"name",{value:"default",configurable:!0}),Object.defineProperty(Gu,"name",{value:"default",configurable:!0});const Yu=[Fu,Hu,Wu,{seriesType:"pie",colorProcessor:t=>e=>t.data[e].color,seriesFormatter:t=>{const{seriesOrder:e,series:n}=t,i={};return e.forEach(t=>{const e=Gu().startAngle(2*Math.PI*(n[t].startAngle??0)/360).endAngle(2*Math.PI*(n[t].endAngle??360)/360).padAngle(2*Math.PI*(n[t].paddingAngle??0)/360).sortValues(((t="none")=>{if("function"==typeof t)return t;switch(t){case"none":default:return null;case"desc":return(t,e)=>e-t;case"asc":return(t,e)=>t-e}})(n[t].sortingValues??"none"))(n[t].data.map(t=>t.value));i[t]=(0,r.A)({valueFormatter:t=>t.value.toLocaleString()},n[t],{data:n[t].data.map((n,i)=>(0,r.A)({},n,{id:n.id??`auto-generated-pie-id-${t}-${i}`},e[i])).map((e,i)=>(0,r.A)({},e,{formattedValue:n[t].valueFormatter?.((0,r.A)({},e,{label:Ku(e.label,"arc")}),{dataIndex:i})??e.value.toLocaleString()}))})}),{seriesOrder:e,series:i}}}];function Xu(t){const e=t??Yu,n={},i={},o={},r={},s={},a={};for(let t=0;t<e.length;t+=1){const l=e[t],c=l.seriesType;n[c]=l.seriesFormatter,i[c]=l.colorProcessor,l.xExtremumGetter&&(o[c]=l.xExtremumGetter),l.yExtremumGetter&&(r[c]=l.yExtremumGetter),l.rotationExtremumGetter&&(s[c]=l.rotationExtremumGetter),l.radiusExtremumGetter&&(a[c]=l.radiusExtremumGetter)}return{seriesFormatters:n,colorProcessors:i,xExtremumGetters:o,yExtremumGetters:r,rotationExtremumGetters:s,radiusExtremumGetters:a}}function Qu(e){const{children:n,plugins:o}=e,r=t.useMemo(()=>({isInitialized:!0,data:Xu(o)}),[o]);return(0,i.jsx)(Kr.Provider,{value:r,children:n})}const Ju=(t,e,n)=>{const i="x"===n?Po:ko;return[...t?.map((t,e)=>(0,r.A)({id:`defaultized-${n}-axis-${e}`},t))??[],...void 0===t||-1===t.findIndex(({id:t})=>t===i)?[{id:i,scaleType:"linear"}]:[]].map(t=>{const i=t.dataKey;if(void 0===i||void 0!==t.data)return t;if(void 0===e)throw new Error(`MUI X: ${n}-axis uses \`dataKey\` but no \`dataset\` is provided.`);return(0,r.A)({},t,{data:e.map(t=>t[i])})})},th=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children","skipAnimation"];function eh(e){const{children:n,skipAnimation:o}=e,r="undefined"==typeof window||!window?.matchMedia,[s,a]=t.useState(r||void 0);$e(()=>{if(r)return;const t=t=>{const e=t.matches||void 0;a(e),mt.assign({skipAnimation:e})},e=window.matchMedia("(prefers-reduced-motion)");return t(e),e?.addEventListener?.("change",t),()=>{e?.removeEventListener?.("change",t)}},[]);const l=t.useMemo(()=>({isInitialized:!0,data:{skipAnimation:o||s}}),[s,o]);return(0,i.jsx)(Lr.Provider,{value:l,children:n})}const nh=t.forwardRef(function(e,n){const{children:o,drawingProviderProps:s,seriesProviderProps:a,cartesianProviderProps:l,zAxisContextProps:c,highlightedProviderProps:u,chartsSurfaceProps:h,pluginProviderProps:d,animationProviderProps:p}=((e,n)=>{const{width:i,height:o,series:s,margin:a,xAxis:l,yAxis:c,zAxis:u,colors:h,dataset:d,sx:p,title:f,desc:m,disableAxisListener:y,highlightedItem:_,onHighlightChange:v,plugins:x,children:b,skipAnimation:w}=e,A=(0,g.A)(e,th),P=t.useRef(null),k=(0,E.A)(n,P),[M,C]=((e,n,i)=>[t.useMemo(()=>Ju(e,i,"x"),[e,i]),t.useMemo(()=>Ju(n,i,"y"),[n,i])])(l,c,d),I={skipAnimation:w},T={plugins:x};return{children:b,drawingProviderProps:{width:i,height:o,margin:a,svgRef:P},seriesProviderProps:{series:s,colors:h,dataset:d},cartesianProviderProps:{xAxis:M,yAxis:C,dataset:d},zAxisContextProps:{zAxis:u,dataset:d},highlightedProviderProps:{highlightedItem:_,onHighlightChange:v},chartsSurfaceProps:(0,r.A)({},A,{width:i,height:o,ref:k,sx:p,title:f,desc:m,disableAxisListener:y}),pluginProviderProps:T,animationProviderProps:I,xAxis:M,yAxis:C}})(e,n);return(0,i.jsx)(To,(0,r.A)({},s,{children:(0,i.jsx)(Qu,(0,r.A)({},d,{children:(0,i.jsx)(Yr,(0,r.A)({},a,{children:(0,i.jsx)(lu,(0,r.A)({},l,{children:(0,i.jsx)(uu,(0,r.A)({},c,{children:(0,i.jsx)(W,{children:(0,i.jsx)(mu,(0,r.A)({},u,{children:(0,i.jsxs)(ns,(0,r.A)({},h,{children:[(0,i.jsx)(kr,{}),(0,i.jsx)(eh,(0,r.A)({},p,{children:o}))]}))}))})}))}))}))}))}))}),ih=(0,K.Ay)("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:t})=>({width:t.width??"100%",height:t.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}));var oh=c(1529),rh=c(4877);const sh=["width","height","resolveSizeBeforeRender","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis","skipAnimation"],ah=t.forwardRef(function(e,n){const{hasIntrinsicSize:o,chartContainerProps:s,resizableChartContainerProps:a}=((e,n)=>{const{width:i,height:o,resolveSizeBeforeRender:s,margin:a,children:l,series:c,colors:u,dataset:h,desc:d,disableAxisListener:p,highlightedItem:f,onHighlightChange:m,plugins:y,sx:_,title:v,viewBox:x,xAxis:b,yAxis:w,zAxis:A,skipAnimation:P}=e,k=(0,g.A)(e,sh),{containerRef:M,width:C,height:I}=((e,n,i)=>{const o=t.useRef({displayError:!1,initialCompute:!0,computeRun:0}),r=t.useRef(null),[s,a]=t.useState(0),[l,c]=t.useState(0),u=t.useCallback(()=>{const t=r?.current;if(!t)return{};const e=(0,rh.A)(t).getComputedStyle(t),n=Math.floor(parseFloat(e.height))||0,i=Math.floor(parseFloat(e.width))||0;return a(i),c(n),{width:i,height:n}},[]);return t.useEffect(()=>{o.current.displayError=!0},[]),(0,oh.A)(()=>{if(!i||!o.current.initialCompute||o.current.computeRun>20)return;const t=u();t.width!==s||t.height!==l?o.current.computeRun+=1:o.current.initialCompute&&(o.current.initialCompute=!1)},[s,l,u,i]),(0,oh.A)(()=>{if(void 0!==e&&void 0!==n)return()=>{};u();const t=r.current;if("undefined"==typeof ResizeObserver)return()=>{};let i;const o=new ResizeObserver(()=>{i=requestAnimationFrame(()=>{u()})});return t&&o.observe(t),()=>{i&&cancelAnimationFrame(i),t&&o.unobserve(t)}},[u,n,e]),{containerRef:r,width:e??s,height:n??l}})(i,o,s);return{hasIntrinsicSize:C&&I,chartContainerProps:{margin:a,children:l,series:c,colors:u,dataset:h,desc:d,disableAxisListener:p,highlightedItem:f,onHighlightChange:m,plugins:y,sx:_,title:v,viewBox:x,xAxis:b,yAxis:w,zAxis:A,skipAnimation:P,width:C,height:I,ref:n},resizableChartContainerProps:(0,r.A)({},k,{ownerState:{width:i,height:o},ref:M})}})(e,n);return(0,i.jsx)(ih,(0,r.A)({},a,{children:o?(0,i.jsx)(nh,(0,r.A)({},s)):null}))});function lh(t){return(0,D.Ay)("MuiMarkElement",t)}new Set,(0,Z.A)("MuiMarkElement",["root","highlighted","faded"]);const ch=t=>{const{classes:e,id:n,isFaded:i,isHighlighted:o}=t,r={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return(0,z.A)(r,lh,e)},uh=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","shape"];function hh(e){const{x:n,y:o,id:s,classes:a,color:l,dataIndex:c,onClick:u,skipAnimation:h,shape:d}=e,p=(0,g.A)(e,uh);"circle"!==d&&[`MUI X: The mark element of your line chart have shape "${d}" which is not supported when using \`experimentalRendering=true\`.`,'Only "circle" are supported with `experimentalRendering`.'].join("\n");const f=Hr(),m=G(),{isFaded:y,isHighlighted:_}=Ro({seriesId:s}),{axis:v}=t.useContext(H),x=pi({to:{x:n,y:o},immediate:h}),b={id:s,classes:a,isHighlighted:v.x?.index===c||_,isFaded:y,color:l},w=ch(b);return(0,i.jsx)(Ei.circle,(0,r.A)({},p,{cx:x.x,cy:x.y,r:5,fill:(f.vars||f).palette.background.paper,stroke:l,strokeWidth:2,className:w.root,onClick:u,cursor:u?"pointer":"unset"},m({type:"line",seriesId:s,dataIndex:c})))}Go(3);const dh={draw(t,e){const n=Go(e/Yo);t.moveTo(n,0),t.arc(0,0,n,0,Qo)}},ph={draw(t,e){const n=Go(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},fh=Go(1/3),mh=2*fh,gh={draw(t,e){const n=Go(e/mh),i=n*fh;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}},yh={draw(t,e){const n=Go(e),i=-n/2;t.rect(i,i,n,n)}},_h=qo(Yo/10)/qo(7*Yo/10),vh=qo(Qo/10)*_h,xh=-Uo(Qo/10)*_h,bh={draw(t,e){const n=Go(.8908130915292852*e),i=vh*n,o=xh*n;t.moveTo(0,-n),t.lineTo(i,o);for(let e=1;e<5;++e){const r=Qo*e/5,s=Uo(r),a=qo(r);t.lineTo(a*n,-s*n),t.lineTo(s*i-a*o,a*i+s*o)}t.closePath()}},wh=Go(3),Ah={draw(t,e){const n=-Go(e/(3*wh));t.moveTo(0,2*n),t.lineTo(-wh*n,-n),t.lineTo(wh*n,-n),t.closePath()}},Ph=(Go(3),-.5),kh=Go(3)/2,Mh=1/Go(12),Ch=3*(Mh/2+1),Ih=[dh,ph,gh,yh,bh,Ah,{draw(t,e){const n=Go(e/Ch),i=n/2,o=n*Mh,r=i,s=n*Mh+n,a=-r,l=s;t.moveTo(i,o),t.lineTo(r,s),t.lineTo(a,l),t.lineTo(Ph*i-kh*o,kh*i+Ph*o),t.lineTo(Ph*r-kh*s,kh*r+Ph*s),t.lineTo(Ph*a-kh*l,kh*a+Ph*l),t.lineTo(Ph*i+kh*o,Ph*o-kh*i),t.lineTo(Ph*r+kh*s,Ph*s-kh*r),t.lineTo(Ph*a+kh*l,Ph*l-kh*a),t.closePath()}}];function Th(t,e){let n=null,i=C(o);function o(){let o;if(n||(n=o=i()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),o)return n=null,o+""||null}return t="function"==typeof t?t:_(t||dh),e="function"==typeof e?e:_(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:_(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:_(+t),o):e},o.context=function(t){return arguments.length?(n=null==t?null:t,o):n},o}function Lh(t){return"circle cross diamond square star triangle wye".split(/ /).indexOf(t)||0}const Sh=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation"],Oh=(0,K.Ay)(Ei.path,{name:"MuiMarkElement",slot:"Root",overridesResolver:(t,e)=>e.root})(({ownerState:t,theme:e})=>({fill:(e.vars||e).palette.background.paper,stroke:t.color,strokeWidth:2}));function jh(e){const{x:n,y:o,id:s,classes:a,color:l,shape:c,dataIndex:u,onClick:h,skipAnimation:d}=e,p=(0,g.A)(e,Sh),f=G(),{isFaded:m,isHighlighted:y}=Ro({seriesId:s}),{axis:_}=t.useContext(H),v=pi({to:{x:n,y:o},immediate:d}),x={id:s,classes:a,isHighlighted:_.x?.index===u||y,isFaded:m,color:l},b=ch(x);return(0,i.jsx)(Oh,(0,r.A)({},p,{style:{transform:xi([v.x,v.y],(t,e)=>`translate(${t}px, ${e}px)`),transformOrigin:xi([v.x,v.y],(t,e)=>`${t}px ${e}px`)},ownerState:x,className:b.root,d:Th(Ih[Lh(c)])(),onClick:h,cursor:h?"pointer":"unset"},f({type:"line",seriesId:s,dataIndex:u})))}const zh=["slots","slotProps","skipAnimation","onItemClick","experimentalRendering"];function Eh(t){const{slots:e,slotProps:n,skipAnimation:o,onItemClick:s,experimentalRendering:a}=t,l=(0,g.A)(t,zh),c=Sr(o),u=Ir(),h=j(),d=So(),p=Lo(),f=e?.mark??(a?hh:jh);if(void 0===u)return null;const{series:m,stackingGroups:y}=u,{xAxis:_,yAxis:v,xAxisIds:x,yAxisIds:b}=h,w=x[0],A=b[0];return(0,i.jsx)("g",(0,r.A)({},l,{children:y.flatMap(({ids:t})=>t.map(t=>{const{xAxisId:e,yAxisId:o,xAxisKey:a=w,yAxisKey:l=A,stackedData:u,data:h,showMark:g=!0}=m[t];if(!1===g)return null;const y=e??a,x=o??l,b=Do(_[y].scale),P=v[x].scale,k=_[y].data;if(void 0===k)throw new Error(`MUI X: ${y===Po?"The first `xAxis`":`The x-axis with id "${y}"`} should have data property to be able to display a line plot.`);const M=wo(`${d}-${t}-line-clip`),C=Uu(m[t],_[y],v[x]);return(0,i.jsx)("g",{clipPath:`url(#${M})`,children:k?.map((t,e)=>{const n=null==h[e]?null:u[e][1];return{x:b(t),y:null===n?null:P(n),position:t,value:n,index:e}}).filter(({x:t,y:e,index:n,position:i,value:o})=>null!==o&&null!==e&&!!p.isPointInside({x:t,y:e})&&(!0===g||g({x:t,y:e,index:n,position:i,value:o}))).map(({x:e,y:o,index:a})=>(0,i.jsx)(f,(0,r.A)({id:t,dataIndex:a,shape:"circle",color:C(a),x:e,y:o,skipAnimation:c,onClick:s&&(e=>s(e,{type:"line",seriesId:t,dataIndex:a}))},n?.mark),`${t}-${a}`))},t)}))}))}function Rh(t){return(0,D.Ay)("MuiChartsAxis",t)}const Nh=(0,Z.A)("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),$h=(0,K.Ay)("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({[`& .${Nh.tickLabel}`]:(0,r.A)({},t.typography.caption,{fill:(t.vars||t).palette.text.primary}),[`& .${Nh.label}`]:(0,r.A)({},t.typography.body1,{fill:(t.vars||t).palette.text.primary}),[`& .${Nh.line}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${Nh.tick}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges"}})),Bh={widthCache:{},cacheCount:0},Fh={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Dh=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],Zh="mui_measurement_span";function Hh(t,e){return Dh.indexOf(t)>=0&&e===+e?`${e}px`:e}function Uh(t){return t.split("").reduce((t,e)=>e===e.toUpperCase()?[...t,"-",e.toLowerCase()]:[...t,e],[]).join("")}let Wh;function Vh({style:t,needsComputation:e,text:n}){return n.split("\n").map(n=>(0,r.A)({text:n},e?((t,e={})=>{if(null==t||"undefined"==typeof window)return{width:0,height:0};const n=`${t}`,i=(t=>Object.keys(t).sort().reduce((e,n)=>`${e}${Uh(n)}:${Hh(n,t[n])};`,""))(e),o=`${n}-${i}`;if(Bh.widthCache[o])return Bh.widthCache[o];try{let t=document.getElementById(Zh);null===t&&(t=document.createElement("span"),t.setAttribute("id",Zh),t.setAttribute("aria-hidden","true"),document.body.appendChild(t));const i=(0,r.A)({},Fh,e);Object.keys(i).map(e=>(t.style[Uh(e)]=Hh(e,i[e]),e)),t.textContent=n;const s=t.getBoundingClientRect(),a={width:s.width,height:s.height};return Bh.widthCache[o]=a,Bh.cacheCount+1>2e3?(Bh.cacheCount=0,Bh.widthCache={}):Bh.cacheCount+=1,Wh&&clearTimeout(Wh),Wh=setTimeout(()=>{t.textContent=""},0),a}catch{return{width:0,height:0}}})(n,t):{width:0,height:0}))}const qh=["x","y","style","text","ownerState"],Gh=["angle","textAnchor","dominantBaseline"];function Kh(e){const{x:n,y:o,style:s,text:a}=e,l=(0,g.A)(e,qh),c=s??{},{angle:u,textAnchor:h,dominantBaseline:d}=c,p=(0,g.A)(c,Gh),f=t.useMemo(()=>Vh({style:p,needsComputation:a.includes("\n"),text:a}),[p,a]);let m;switch(d){case"hanging":m=0;break;case"central":m=(f.length-1)/2*-f[0].height;break;default:m=(f.length-1)*-f[0].height}const y=[];return u&&y.push(`rotate(${u}, ${n}, ${o})`),(0,i.jsx)("text",(0,r.A)({},l,{transform:y.length>0?y.join(" "):void 0,x:n,y:o,textAnchor:h,dominantBaseline:d,style:p,children:f.map((t,e)=>(0,i.jsx)("tspan",{x:n,dy:`${0===e?m:f[0].height}px`,dominantBaseline:d,children:t.text},e))}))}const Yh=["scale","tickNumber","reverse"];const Xh=(0,K.Ay)($h,{name:"MuiChartsXAxis",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Qh={position:"bottom",disableLine:!1,disableTicks:!1,tickSize:6};function Jh(e){const{xAxisIds:n,xAxis:o}=j(),s=o[e.axisId??n[0]],{scale:a,tickNumber:l,reverse:c}=s,u=(0,g.A)(s,Yh),h=function(e=!1){const[n,i]=t.useState(!1);return(0,oh.A)(()=>{e||i(!0)},[e]),t.useEffect(()=>{e&&i(!0)},[e]),n}(),d=m({props:(0,r.A)({},u,e),name:"MuiChartsXAxis"}),p=(0,r.A)({},Qh,d),{position:f,disableLine:y,disableTicks:_,tickLabelStyle:v,label:x,labelStyle:b,tickFontSize:w,labelFontSize:A,tickSize:P,valueFormatter:k,slots:M,slotProps:C,tickInterval:I,tickLabelInterval:T,tickPlacement:L,tickLabelPlacement:S,sx:O}=p,E=Hr(),R=(t=>{const{classes:e,position:n}=t,i={root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return(0,z.A)(i,Rh,e)})((0,r.A)({},p,{theme:E})),{left:N,top:$,width:B,height:D,isPointInside:Z}=Lo(),H=_?4:P,U="bottom"===f?1:-1,W=M?.axisLine??"line",V=M?.axisTick??"line",q=M?.axisTickLabel??Kh,G=M?.axisLabel??Kh,K=F({elementType:q,externalSlotProps:C?.axisTickLabel,additionalProps:{style:(0,r.A)({textAnchor:"middle",dominantBaseline:"bottom"===f?"hanging":"auto",fontSize:w??12},v)},className:R.tickLabel,ownerState:{}}),Y=function(t,{tickLabelStyle:e,tickLabelInterval:n,reverse:i,isMounted:o}){const s=t.map(t=>{if(!o||void 0===t.formattedValue)return(0,r.A)({},t,{width:0,height:0});const n=Vh({style:e,needsComputation:!0,text:t.formattedValue});return(0,r.A)({},t,{width:Math.max(...n.map(t=>t.width)),height:Math.max(n.length*n[0].height)})});if("function"==typeof n)return s.map((t,e)=>(0,r.A)({},t,{skipLabel:!n(t.value,e)}));let a=0,l=0;const c=i?-1:1;return s.map((t,n)=>{const{width:i,offset:o,labelOffset:s,height:u}=t,h=function(t,e,n=0){const i=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(i<5)return t;if(i>85)return e;const o=i*Math.PI/180;return o<Math.atan2(e,t)?t/Math.cos(o):e/Math.sin(o)}(i,u,e?.angle),d=o+s;return a=d-c*(1.2*h)/2,n>0&&c*a<c*l?(0,r.A)({},t,{skipLabel:!0}):(l=d+c*(1.2*h)/2,t)})}(Wc({scale:a,tickNumber:l,valueFormatter:k,tickInterval:I,tickPlacement:L,tickLabelPlacement:S}),{tickLabelStyle:K.style,tickLabelInterval:T,reverse:c,isMounted:h}),X={x:N+B/2,y:U*(H+22)},Q=F({elementType:G,externalSlotProps:C?.axisLabel,additionalProps:{style:(0,r.A)({fontSize:A??14,textAnchor:"middle",dominantBaseline:"bottom"===f?"hanging":"auto"},b)},ownerState:{}}),J=a.domain(),tt=Fo(a);return tt&&0===J.length||!tt&&J.some(Hc)?null:(0,i.jsxs)(Xh,{transform:`translate(0, ${"bottom"===f?$+D:$})`,className:R.root,sx:O,children:[!y&&(0,i.jsx)(W,(0,r.A)({x1:N,x2:N+B,className:R.line},C?.axisLine)),Y.map(({formattedValue:t,offset:e,labelOffset:n,skipLabel:o},s)=>{const a=n??0,l=U*(H+3),c=Z({x:e,y:-1},{direction:"x"}),u=Z({x:e+a,y:-1},{direction:"x"});return(0,i.jsxs)("g",{transform:`translate(${e}, 0)`,className:R.tickContainer,children:[!_&&c&&(0,i.jsx)(V,(0,r.A)({y2:U*H,className:R.tick},C?.axisTick)),void 0!==t&&!o&&u&&(0,i.jsx)(q,(0,r.A)({x:a,y:l},K,{text:t.toString()}))]},s)}),x&&(0,i.jsx)("g",{className:R.label,children:(0,i.jsx)(G,(0,r.A)({},X,Q,{text:x}))})]})}const td=t.createContext(),ed=()=>{const e=t.useContext(td);return null!=e&&e},nd=["scale","tickNumber"],id=(0,K.Ay)($h,{name:"MuiChartsYAxis",slot:"Root",overridesResolver:(t,e)=>e.root})({}),od={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function rd(t){const{yAxisIds:e,yAxis:n}=j(),o=n[t.axisId??e[0]],{scale:s,tickNumber:a}=o,l=(0,g.A)(o,nd),c=m({props:(0,r.A)({},l,t),name:"MuiChartsYAxis"}),u=(0,r.A)({},od,c),{position:h,disableLine:d,disableTicks:p,tickFontSize:f,label:y,labelFontSize:_,labelStyle:v,tickLabelStyle:x,tickSize:b,valueFormatter:w,slots:A,slotProps:P,tickPlacement:k,tickLabelPlacement:M,tickInterval:C,tickLabelInterval:I,sx:T}=u,L=Hr(),S=ed(),O=(t=>{const{classes:e,position:n}=t,i={root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return(0,z.A)(i,Rh,e)})((0,r.A)({},u,{theme:L})),{left:E,top:R,width:N,height:$,isPointInside:B}=Lo(),D=p?4:b,Z=Wc({scale:s,tickNumber:a,valueFormatter:w,tickPlacement:k,tickLabelPlacement:M,tickInterval:C}),H="right"===h?1:-1,U={x:H*(f+D+10),y:R+$/2},W=A?.axisLine??"line",V=A?.axisTick??"line",q=A?.axisTickLabel??Kh,G=A?.axisLabel??Kh,K=!S&&"right"===h||S&&"right"!==h,Y=F({elementType:q,externalSlotProps:P?.axisTickLabel,additionalProps:{style:(0,r.A)({fontSize:f,textAnchor:K?"start":"end",dominantBaseline:"central"},x)},className:O.tickLabel,ownerState:{}}),X=F({elementType:G,externalSlotProps:P?.axisLabel,additionalProps:{style:(0,r.A)({fontSize:_,angle:90*H,textAnchor:"middle",dominantBaseline:"auto"},v)},ownerState:{}}),Q=F({elementType:W,externalSlotProps:P?.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),J=s.domain(),tt=Fo(s);return tt&&0===J.length||!tt&&J.some(Hc)?null:(0,i.jsxs)(id,{transform:`translate(${"right"===h?E+N:E}, 0)`,className:O.root,sx:T,children:[!d&&(0,i.jsx)(W,(0,r.A)({y1:R,y2:R+$,className:O.line},Q)),Z.map(({formattedValue:t,offset:e,labelOffset:n,value:o},s)=>{const a=H*(D+2),l=n,c="function"==typeof I&&!I?.(o,s);return B({x:-1,y:e},{direction:"y"})?(0,i.jsxs)("g",{transform:`translate(0, ${e})`,className:O.tickContainer,children:[!p&&(0,i.jsx)(V,(0,r.A)({x2:H*D,className:O.tick},P?.axisTick)),void 0!==t&&!c&&(0,i.jsx)(q,(0,r.A)({x:a,y:l,text:t.toString()},Y))]},s):null}),y&&(0,i.jsx)("g",{className:O.label,children:(0,i.jsx)(G,(0,r.A)({},U,X,{text:y}))})]})}const sd=(t,e)=>null==t?null:"object"==typeof t?t.axisId??e??null:t,ad=(t,e,n)=>"object"==typeof t?(0,r.A)({},t,{slots:(0,r.A)({},e,t?.slots),slotProps:(0,r.A)({},n,t?.slotProps)}):{slots:e,slotProps:n};function ld(e){const{topAxis:n,leftAxis:o,rightAxis:s,bottomAxis:a,slots:l,slotProps:c}=e,{xAxis:u,xAxisIds:h,yAxis:d,yAxisIds:p}=j(),f=sd(void 0===o?p[0]:o,p[0]),m=sd(void 0===a?h[0]:a,h[0]),g=sd(n,h[0]),y=sd(s,p[0]);if(null!==g&&!u[g])throw new Error([`MUI X: id used for top axis "${g}" is not defined.`,`Available ids are: ${h.join(", ")}.`].join("\n"));if(null!==f&&!d[f])throw new Error([`MUI X: id used for left axis "${f}" is not defined.`,`Available ids are: ${p.join(", ")}.`].join("\n"));if(null!==y&&!d[y])throw new Error([`MUI X: id used for right axis "${y}" is not defined.`,`Available ids are: ${p.join(", ")}.`].join("\n"));if(null!==m&&!u[m])throw new Error([`MUI X: id used for bottom axis "${m}" is not defined.`,`Available ids are: ${h.join(", ")}.`].join("\n"));const _=ad(n,l,c),v=ad(a,l,c),x=ad(o,l,c),b=ad(s,l,c);return(0,i.jsxs)(t.Fragment,{children:[g&&(0,i.jsx)(Jh,(0,r.A)({},_,{position:"top",axisId:g})),m&&(0,i.jsx)(Jh,(0,r.A)({},v,{position:"bottom",axisId:m})),f&&(0,i.jsx)(rd,(0,r.A)({},x,{position:"left",axisId:f})),y&&(0,i.jsx)(rd,(0,r.A)({},b,{position:"right",axisId:y}))]})}var cd=c(2923),ud=c(2325);function hd(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function dd(t){return t instanceof hd(t).Element||t instanceof Element}function pd(t){return t instanceof hd(t).HTMLElement||t instanceof HTMLElement}function fd(t){return"undefined"!=typeof ShadowRoot&&(t instanceof hd(t).ShadowRoot||t instanceof ShadowRoot)}var md=Math.max,gd=Math.min,yd=Math.round;function _d(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function vd(){return!/^((?!chrome|android).)*safari/i.test(_d())}function xd(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),o=1,r=1;e&&pd(t)&&(o=t.offsetWidth>0&&yd(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&yd(i.height)/t.offsetHeight||1);var s=(dd(t)?hd(t):window).visualViewport,a=!vd()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/o,c=(i.top+(a&&s?s.offsetTop:0))/r,u=i.width/o,h=i.height/r;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function bd(t){var e=hd(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wd(t){return t?(t.nodeName||"").toLowerCase():null}function Ad(t){return((dd(t)?t.ownerDocument:t.document)||window.document).documentElement}function Pd(t){return xd(Ad(t)).left+bd(t).scrollLeft}function kd(t){return hd(t).getComputedStyle(t)}function Md(t){var e=kd(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function Cd(t,e,n){void 0===n&&(n=!1);var i,o,r=pd(e),s=pd(e)&&function(t){var e=t.getBoundingClientRect(),n=yd(e.width)/t.offsetWidth||1,i=yd(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=Ad(e),l=xd(t,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==wd(e)||Md(a))&&(c=(i=e)!==hd(i)&&pd(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:bd(i)),pd(e)?((u=xd(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Pd(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Id(t){var e=xd(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Td(t){return"html"===wd(t)?t:t.assignedSlot||t.parentNode||(fd(t)?t.host:null)||Ad(t)}function Ld(t){return["html","body","#document"].indexOf(wd(t))>=0?t.ownerDocument.body:pd(t)&&Md(t)?t:Ld(Td(t))}function Sd(t,e){var n;void 0===e&&(e=[]);var i=Ld(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=hd(i),s=o?[r].concat(r.visualViewport||[],Md(i)?i:[]):i,a=e.concat(s);return o?a:a.concat(Sd(Td(s)))}function Od(t){return["table","td","th"].indexOf(wd(t))>=0}function jd(t){return pd(t)&&"fixed"!==kd(t).position?t.offsetParent:null}function zd(t){for(var e=hd(t),n=jd(t);n&&Od(n)&&"static"===kd(n).position;)n=jd(n);return n&&("html"===wd(n)||"body"===wd(n)&&"static"===kd(n).position)?e:n||function(t){var e=/firefox/i.test(_d());if(/Trident/i.test(_d())&&pd(t)&&"fixed"===kd(t).position)return null;var n=Td(t);for(fd(n)&&(n=n.host);pd(n)&&["html","body"].indexOf(wd(n))<0;){var i=kd(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}var Ed="top",Rd="bottom",Nd="right",$d="left",Bd="auto",Fd=[Ed,Rd,Nd,$d],Dd="start",Zd="end",Hd="viewport",Ud="popper",Wd=Fd.reduce(function(t,e){return t.concat([e+"-"+Dd,e+"-"+Zd])},[]),Vd=[].concat(Fd,[Bd]).reduce(function(t,e){return t.concat([e,e+"-"+Dd,e+"-"+Zd])},[]),qd=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Gd(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}}),i.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||o(t)}),i}var Kd={placement:"bottom",modifiers:[],strategy:"absolute"};function Yd(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function Xd(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?Kd:o;return function(t,e,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Kd,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;h(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:dd(t)?Sd(t):t.contextElement?Sd(t.contextElement):[],popper:Sd(e)};var s,c,d=function(t){var e=Gd(t);return qd.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((s=[].concat(i,a.options.modifiers),c=s.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{}),Object.keys(c).map(function(t){return c[t]})));return a.orderedModifiers=d.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var r=o({state:a,name:e,instance:u,options:i});l.push(r||function(){})}}),u.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,n=t.popper;if(Yd(e,n)){a.rects={reference:Cd(e,zd(n),"fixed"===a.options.strategy),popper:Id(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,l=void 0===s?{}:s,h=o.name;"function"==typeof r&&(a=r({state:a,options:l,name:h,instance:u})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise(function(t){u.forceUpdate(),t(a)})},function(){return s||(s=new Promise(function(t){Promise.resolve().then(function(){s=void 0,t(o())})})),s}),destroy:function(){h(),c=!0}};if(!Yd(t,e))return u;function h(){l.forEach(function(t){return t()}),l=[]}return u.setOptions(n).then(function(t){!c&&n.onFirstUpdate&&n.onFirstUpdate(t)}),u}}var Qd={passive:!0};const Jd={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=hd(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(t){t.addEventListener("scroll",n.update,Qd)}),a&&l.addEventListener("resize",n.update,Qd),function(){r&&c.forEach(function(t){t.removeEventListener("scroll",n.update,Qd)}),a&&l.removeEventListener("resize",n.update,Qd)}},data:{}};function tp(t){return t.split("-")[0]}function ep(t){return t.split("-")[1]}function np(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ip(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?tp(o):null,s=o?ep(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Ed:e={x:a,y:n.y-i.height};break;case Rd:e={x:a,y:n.y+n.height};break;case Nd:e={x:n.x+n.width,y:l};break;case $d:e={x:n.x-i.width,y:l};break;default:e={x:n.x,y:n.y}}var c=r?np(r):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Dd:e[c]=e[c]-(n[u]/2-i[u]/2);break;case Zd:e[c]=e[c]+(n[u]/2-i[u]/2)}}return e}var op={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rp(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,h=t.isFixed,d=s.x,p=void 0===d?0:d,f=s.y,m=void 0===f?0:f,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),v=$d,x=Ed,b=window;if(c){var w=zd(n),A="clientHeight",P="clientWidth";w===hd(n)&&"static"!==kd(w=Ad(n)).position&&"absolute"===a&&(A="scrollHeight",P="scrollWidth"),(o===Ed||(o===$d||o===Nd)&&r===Zd)&&(x=Rd,m-=(h&&w===b&&b.visualViewport?b.visualViewport.height:w[A])-i.height,m*=l?1:-1),o!==$d&&(o!==Ed&&o!==Rd||r!==Zd)||(v=Nd,p-=(h&&w===b&&b.visualViewport?b.visualViewport.width:w[P])-i.width,p*=l?1:-1)}var k,M=Object.assign({position:a},c&&op),C=!0===u?function(t,e){var n=t.x,i=t.y,o=e.devicePixelRatio||1;return{x:yd(n*o)/o||0,y:yd(i*o)/o||0}}({x:p,y:m},hd(n)):{x:p,y:m};return p=C.x,m=C.y,l?Object.assign({},M,((k={})[x]=_?"0":"",k[v]=y?"0":"",k.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",k)):Object.assign({},M,((e={})[x]=_?m+"px":"",e[v]=y?p+"px":"",e.transform="",e))}const sp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:tp(e.placement),variation:ep(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,rp(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,rp(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},ap={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];pd(o)&&wd(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(t){var e=i[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});pd(i)&&wd(i)&&(Object.assign(i.style,r),Object.keys(o).forEach(function(t){i.removeAttribute(t)}))})}},requires:["computeStyles"]},lp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,s=Vd.reduce(function(t,n){return t[n]=function(t,e,n){var i=tp(t),o=[$d,Ed].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[$d,Nd].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,r),t},{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=s}};var cp={left:"right",right:"left",bottom:"top",top:"bottom"};function up(t){return t.replace(/left|right|bottom|top/g,function(t){return cp[t]})}var hp={start:"end",end:"start"};function dp(t){return t.replace(/start|end/g,function(t){return hp[t]})}function pp(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&fd(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function fp(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function mp(t,e,n){return e===Hd?fp(function(t,e){var n=hd(t),i=Ad(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=vd();(c||!c&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+Pd(t),y:l}}(t,n)):dd(e)?function(t,e){var n=xd(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):fp(function(t){var e,n=Ad(t),i=bd(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=md(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=md(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+Pd(t),l=-i.scrollTop;return"rtl"===kd(o||n).direction&&(a+=md(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(Ad(t)))}function gp(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function yp(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}function _p(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.strategy,s=void 0===r?t.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,u=void 0===c?Hd:c,h=n.elementContext,d=void 0===h?Ud:h,p=n.altBoundary,f=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,y=gp("number"!=typeof g?g:yp(g,Fd)),_=d===Ud?"reference":Ud,v=t.rects.popper,x=t.elements[f?_:d],b=function(t,e,n,i){var o="clippingParents"===e?function(t){var e=Sd(Td(t)),n=["absolute","fixed"].indexOf(kd(t).position)>=0&&pd(t)?zd(t):t;return dd(n)?e.filter(function(t){return dd(t)&&pp(t,n)&&"body"!==wd(t)}):[]}(t):[].concat(e),r=[].concat(o,[n]),s=r[0],a=r.reduce(function(e,n){var o=mp(t,n,i);return e.top=md(o.top,e.top),e.right=gd(o.right,e.right),e.bottom=gd(o.bottom,e.bottom),e.left=md(o.left,e.left),e},mp(t,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(dd(x)?x:x.contextElement||Ad(t.elements.popper),l,u,s),w=xd(t.elements.reference),A=ip({reference:w,element:v,strategy:"absolute",placement:o}),P=fp(Object.assign({},v,A)),k=d===Ud?P:w,M={top:b.top-k.top+y.top,bottom:k.bottom-b.bottom+y.bottom,left:b.left-k.left+y.left,right:k.right-b.right+y.right},C=t.modifiersData.offset;if(d===Ud&&C){var I=C[o];Object.keys(M).forEach(function(t){var e=[Nd,Rd].indexOf(t)>=0?1:-1,n=[Ed,Rd].indexOf(t)>=0?"y":"x";M[t]+=I[n]*e})}return M}const vp={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=e.options.placement,y=tp(g),_=l||(y!==g&&f?function(t){if(tp(t)===Bd)return[];var e=up(t);return[dp(t),e,dp(e)]}(g):[up(g)]),v=[g].concat(_).reduce(function(t,n){return t.concat(tp(n)===Bd?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Vd:l,u=ep(i),h=u?a?Wd:Wd.filter(function(t){return ep(t)===u}):Fd,d=h.filter(function(t){return c.indexOf(t)>=0});0===d.length&&(d=h);var p=d.reduce(function(e,n){return e[n]=_p(t,{placement:n,boundary:o,rootBoundary:r,padding:s})[tp(n)],e},{});return Object.keys(p).sort(function(t,e){return p[t]-p[e]})}(e,{placement:n,boundary:u,rootBoundary:h,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),x=e.rects.reference,b=e.rects.popper,w=new Map,A=!0,P=v[0],k=0;k<v.length;k++){var M=v[k],C=tp(M),I=ep(M)===Dd,T=[Ed,Rd].indexOf(C)>=0,L=T?"width":"height",S=_p(e,{placement:M,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),O=T?I?Nd:$d:I?Rd:Ed;x[L]>b[L]&&(O=up(O));var j=up(O),z=[];if(r&&z.push(S[C]<=0),a&&z.push(S[O]<=0,S[j]<=0),z.every(function(t){return t})){P=M,A=!1;break}w.set(M,z)}if(A)for(var E=function(t){var e=v.find(function(e){var n=w.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return P=e,"break"},R=f?3:1;R>0&&"break"!==E(R);R--);e.placement!==P&&(e.modifiersData[i]._skip=!0,e.placement=P,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xp(t,e,n){return md(t,gd(e,n))}const bp={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,d=n.tether,p=void 0===d||d,f=n.tetherOffset,m=void 0===f?0:f,g=_p(e,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),y=tp(e.placement),_=ep(e.placement),v=!_,x=np(y),b="x"===x?"y":"x",w=e.modifiersData.popperOffsets,A=e.rects.reference,P=e.rects.popper,k="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,M="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(w){if(r){var T,L="y"===x?Ed:$d,S="y"===x?Rd:Nd,O="y"===x?"height":"width",j=w[x],z=j+g[L],E=j-g[S],R=p?-P[O]/2:0,N=_===Dd?A[O]:P[O],$=_===Dd?-P[O]:-A[O],B=e.elements.arrow,F=p&&B?Id(B):{width:0,height:0},D=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=D[L],H=D[S],U=xp(0,A[O],F[O]),W=v?A[O]/2-R-U-Z-M.mainAxis:N-U-Z-M.mainAxis,V=v?-A[O]/2+R+U+H+M.mainAxis:$+U+H+M.mainAxis,q=e.elements.arrow&&zd(e.elements.arrow),G=q?"y"===x?q.clientTop||0:q.clientLeft||0:0,K=null!=(T=null==C?void 0:C[x])?T:0,Y=j+V-K,X=xp(p?gd(z,j+W-K-G):z,j,p?md(E,Y):E);w[x]=X,I[x]=X-j}if(a){var Q,J="x"===x?Ed:$d,tt="x"===x?Rd:Nd,et=w[b],nt="y"===b?"height":"width",it=et+g[J],ot=et-g[tt],rt=-1!==[Ed,$d].indexOf(y),st=null!=(Q=null==C?void 0:C[b])?Q:0,at=rt?it:et-A[nt]-P[nt]-st+M.altAxis,lt=rt?et+A[nt]+P[nt]-st-M.altAxis:ot,ct=p&&rt?function(t,e,n){var i=xp(t,e,n);return i>n?n:i}(at,et,lt):xp(p?at:it,et,p?lt:ot);w[b]=ct,I[b]=ct-et}e.modifiersData[i]=I}},requiresIfExists:["offset"]},wp={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=tp(n.placement),l=np(a),c=[$d,Nd].indexOf(a)>=0?"height":"width";if(r&&s){var u=function(t,e){return gp("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:yp(t,Fd))}(o.padding,n),h=Id(r),d="y"===l?Ed:$d,p="y"===l?Rd:Nd,f=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],g=zd(r),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,_=f/2-m/2,v=u[d],x=y-h[c]-u[p],b=y/2-h[c]/2+_,w=xp(v,b,x),A=l;n.modifiersData[i]=((e={})[A]=w,e.centerOffset=w-b,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&pp(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ap(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Pp(t){return[Ed,Nd,Rd,$d].some(function(e){return t[e]>=0})}var kp=Xd({defaultModifiers:[Jd,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=ip({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},sp,ap,lp,vp,bp,wp,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=_p(e,{elementContext:"reference"}),a=_p(e,{altBoundary:!0}),l=Ap(s,i),c=Ap(a,o,r),u=Pp(l),h=Pp(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}}]}),Mp=c(7365);const Cp=t.forwardRef(function(e,n){const{children:o,container:r,disablePortal:s=!1}=e,[a,l]=t.useState(null),c=(0,E.A)(t.isValidElement(o)?(u=o,parseInt(t.version,10)>=19?(null==u||null==(h=u.props)?void 0:h.ref)||null:(null==u?void 0:u.ref)||null):null,n);var u,h;if((0,oh.A)(()=>{s||l(function(t){return"function"==typeof t?t():t}(r)||document.body)},[r,s]),(0,oh.A)(()=>{if(a&&!s)return(0,Mp.A)(n,a),()=>{(0,Mp.A)(n,null)}},[n,a,s]),s){if(t.isValidElement(o)){const e={ref:c};return t.cloneElement(o,e)}return(0,i.jsx)(t.Fragment,{children:o})}return(0,i.jsx)(t.Fragment,{children:a?bi.createPortal(o,a):a})});function Ip(t){return(0,D.Ay)("MuiPopper",t)}(0,Z.A)("MuiPopper",["root"]);const Tp=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Lp=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Sp(t){return"function"==typeof t?t():t}const Op={},jp=t.forwardRef(function(e,n){var o;const{anchorEl:s,children:a,direction:l,disablePortal:c,modifiers:u,open:h,placement:d,popperOptions:p,popperRef:f,slotProps:m={},slots:y={},TransitionProps:_}=e,v=(0,g.A)(e,Tp),x=t.useRef(null),b=(0,E.A)(x,n),w=t.useRef(null),A=(0,E.A)(w,f),P=t.useRef(A);(0,oh.A)(()=>{P.current=A},[A]),t.useImperativeHandle(f,()=>w.current,[]);const k=function(t,e){if("ltr"===e)return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}(d,l),[M,C]=t.useState(k),[I,T]=t.useState(Sp(s));t.useEffect(()=>{w.current&&w.current.forceUpdate()}),t.useEffect(()=>{s&&T(Sp(s))},[s]),(0,oh.A)(()=>{if(!I||!h)return;let t=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{C(t.placement)}}];null!=u&&(t=t.concat(u)),p&&null!=p.modifiers&&(t=t.concat(p.modifiers));const e=kp(I,x.current,(0,r.A)({placement:k},p,{modifiers:t}));return P.current(e),()=>{e.destroy(),P.current(null)}},[I,c,u,h,p,k]);const L={placement:M};null!==_&&(L.TransitionProps=_);const S=(t=>{const{classes:e}=t;return(0,z.A)({root:["root"]},Ip,e)})(e),O=null!=(o=y.root)?o:"div",j=F({elementType:O,externalSlotProps:m.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:S.root});return(0,i.jsx)(O,(0,r.A)({},j,{children:"function"==typeof a?a(L):a}))}),zp=t.forwardRef(function(e,n){const{anchorEl:o,children:s,container:a,direction:l="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:h,open:d,placement:p="bottom",popperOptions:f=Op,popperRef:m,style:y,transition:_=!1,slotProps:v={},slots:x={}}=e,b=(0,g.A)(e,Lp),[w,A]=t.useState(!0);if(!u&&!d&&(!_||w))return null;let P;if(a)P=a;else if(o){const t=Sp(o);P=t&&void 0!==t.nodeType?(0,ud.A)(t).body:(0,ud.A)(null).body}const k=d||!u||_&&!w?void 0:"none",M=_?{in:d,onEnter:()=>{A(!1)},onExited:()=>{A(!0)}}:void 0;return(0,i.jsx)(Cp,{disablePortal:c,container:P,children:(0,i.jsx)(jp,(0,r.A)({anchorEl:o,direction:l,disablePortal:c,modifiers:h,ref:n,open:_?!w:d,placement:p,popperOptions:f,popperRef:m,slotProps:v,slots:x},b,{style:(0,r.A)({position:"fixed",top:0,left:0,display:k},y),TransitionProps:M,children:s}))})});var Ep=c(5607);const Rp=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Np=(0,K.Ay)(zp,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),$p=t.forwardRef(function(t,e){var n;const o=(0,cd.A)(),s=(0,Ep.b)({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:c,componentsProps:u,container:h,disablePortal:d,keepMounted:p,modifiers:f,open:m,placement:y,popperOptions:_,popperRef:v,transition:x,slots:b,slotProps:w}=s,A=(0,g.A)(s,Rp),P=null!=(n=null==b?void 0:b.root)?n:null==c?void 0:c.Root,k=(0,r.A)({anchorEl:a,container:h,disablePortal:d,keepMounted:p,modifiers:f,open:m,placement:y,popperOptions:_,popperRef:v,transition:x},A);return(0,i.jsx)(Np,(0,r.A)({as:l,direction:null==o?void 0:o.direction,slots:{root:P},slotProps:null!=w?w:u},k,{ref:e}))}),Bp=function(e){const{children:n,defer:o=!1,fallback:r=null}=e,[s,a]=t.useState(!1);return(0,oh.A)(()=>{o||a(!0)},[o]),t.useEffect(()=>{o&&a(!0)},[o]),(0,i.jsx)(t.Fragment,{children:s?n:r})};function Fp(t){if(null===t)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:e,y:n}=t,i={width:0,height:0,x:e,y:n,top:n,right:e,bottom:n,left:e};return{getBoundingClientRect:()=>(0,r.A)({},i,{toJSON:()=>JSON.stringify(i)})}}function Dp(t){return(0,D.Ay)("MuiChartsTooltip",t)}const Zp=(0,Z.A)("MuiChartsTooltip",["root","paper","table","row","cell","mark","markCell","labelCell","valueCell"]),Hp=(0,K.Ay)("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(t,e)=>e.paper})(({theme:t})=>({boxShadow:t.shadows[1],backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),borderRadius:t.shape.borderRadius})),Up=(0,K.Ay)("table",{name:"MuiChartsTooltip",slot:"Table",overridesResolver:(t,e)=>e.table})(({theme:t})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(t.vars||t).palette.divider} 1px`}})),Wp=(0,K.Ay)("tr",{name:"MuiChartsTooltip",slot:"Row",overridesResolver:(t,e)=>e.row})(({theme:t})=>({"tr:first-of-type& td":{paddingTop:t.spacing(1)},"tr:last-of-type& td":{paddingBottom:t.spacing(1)}})),Vp=(0,K.Ay)("td",{name:"MuiChartsTooltip",slot:"Cell",overridesResolver:(t,e)=>e.cell})(({theme:t})=>({verticalAlign:"middle",color:(t.vars||t).palette.text.secondary,[`&.${Zp.labelCell}`]:{paddingLeft:t.spacing(1)},[`&.${Zp.valueCell}`]:{paddingLeft:t.spacing(4),color:(t.vars||t).palette.text.primary},"td:first-of-type&":{paddingLeft:t.spacing(2)},"td:last-of-type&":{paddingRight:t.spacing(2)}})),qp=(0,K.Ay)("div",{name:"MuiChartsTooltip",slot:"Mark",overridesResolver:(t,e)=>e.mark,shouldForwardProp:t=>(0,Zr.shouldForwardProp)(t)&&"color"!==t})(({theme:t,color:e})=>({width:t.spacing(1),height:t.spacing(1),borderRadius:"50%",boxShadow:t.shadows[1],background:e,borderColor:(t.vars||t).palette.background.paper,border:`solid ${(t.vars||t).palette.background.paper} ${t.spacing(.25)}`,boxSizing:"content-box"}));function Gp(t){const{series:e,itemData:n,sx:o,classes:s,getColor:a}=t;if(void 0===n.dataIndex||!e.data[n.dataIndex])return null;const{displayedLabel:l,color:c}="pie"===e.type?{color:a(n.dataIndex),displayedLabel:Ku(e.data[n.dataIndex].label,"tooltip")}:{color:a(n.dataIndex),displayedLabel:Ku(e.label,"tooltip")},u="pie"===e.type?(0,r.A)({},e.data[n.dataIndex],{label:Ku(e.data[n.dataIndex].label,"tooltip")}):e.data[n.dataIndex],h=e.valueFormatter?.(u,{dataIndex:n.dataIndex});return(0,i.jsx)(Hp,{sx:o,className:s.paper,children:(0,i.jsx)(Up,{className:s.table,children:(0,i.jsx)("tbody",{children:(0,i.jsxs)(Wp,{className:s.row,children:[(0,i.jsx)(Vp,{className:(0,R.A)(s.markCell,s.cell),children:(0,i.jsx)(qp,{color:c,className:s.mark})}),(0,i.jsx)(Vp,{className:(0,R.A)(s.labelCell,s.cell),children:l}),(0,i.jsx)(Vp,{className:(0,R.A)(s.valueCell,s.cell),children:h})]})})})})}function Kp(e){const{isInitialized:n,data:i}=t.useContext(Kr);if(!n)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return e?i.colorProcessors[e]:i.colorProcessors}function Yp(e){const{content:n,itemData:o,sx:s,classes:a,contentProps:l}=e,c=Cr()[o.type].series[o.seriesId],{xAxis:u,yAxis:h,xAxisIds:d,yAxisIds:p}=j(),{zAxis:f,zAxisIds:m}=t.useContext(cu),g=Kp(),y=c.xAxisId??c.xAxisKey??d[0],_=c.yAxisId??c.yAxisKey??p[0],v=c.zAxisId??c.zAxisKey??m[0],x=g[c.type]?.(c,y&&u[y],_&&h[_],v&&f[v])??(()=>""),b=n??Gp,w=F({elementType:b,externalSlotProps:l,additionalProps:{itemData:o,series:c,sx:s,classes:a,getColor:x},ownerState:{}});return(0,i.jsx)(b,(0,r.A)({},w))}var Xp=c(9599),Qp=c(8466);function Jp(t){return(0,D.Ay)("MuiTypography",t)}(0,Z.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tf=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ef=(0,K.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],"inherit"!==n.align&&e[`align${(0,Qp.A)(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(({theme:t,ownerState:e})=>(0,r.A)({margin:0},"inherit"===e.variant&&{font:"inherit"},"inherit"!==e.variant&&t.typography[e.variant],"inherit"!==e.align&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),nf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},of={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},rf=t.forwardRef(function(t,e){const n=(0,Ep.b)({props:t,name:"MuiTypography"}),o=(t=>of[t]||t)(n.color),s=(0,Xp.A)((0,r.A)({},n,{color:o})),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:h=!1,paragraph:d=!1,variant:p="body1",variantMapping:f=nf}=s,m=(0,g.A)(s,tf),y=(0,r.A)({},s,{align:a,color:o,className:l,component:c,gutterBottom:u,noWrap:h,paragraph:d,variant:p,variantMapping:f}),_=c||(d?"p":f[p]||nf[p])||"span",v=(t=>{const{align:e,gutterBottom:n,noWrap:i,paragraph:o,variant:r,classes:s}=t,a={root:["root",r,"inherit"!==t.align&&`align${(0,Qp.A)(e)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return(0,z.A)(a,Jp,s)})(y);return(0,i.jsx)(ef,(0,r.A)({as:_,ref:e,ownerState:y,className:(0,R.A)(v.root,l)},m))}),sf=rf;let af;const lf=new class{constructor(){if(this.types=new Set,af)throw new Error("You can only create one instance!");af=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}};function cf(t){return lf.getTypes().has(t)}function uf(t){return cf(t.type)}function hf(t){const{series:e,axis:n,dataIndex:o,axisValue:r,sx:s,classes:a}=t;if(null==o)return null;const l=n.valueFormatter??(t=>"utc"===n.scaleType?function(t){return t instanceof Date?t.toUTCString():t.toLocaleString()}(t):t.toLocaleString());return(0,i.jsx)(Hp,{sx:s,className:a.paper,children:(0,i.jsxs)(Up,{className:a.table,children:[null!=r&&!n.hideTooltip&&(0,i.jsx)("thead",{children:(0,i.jsx)(Wp,{children:(0,i.jsx)(Vp,{colSpan:3,children:(0,i.jsx)(sf,{children:l(r,{location:"tooltip"})})})})}),(0,i.jsx)("tbody",{children:e.filter(uf).map(({id:t,label:e,valueFormatter:n,data:r,getColor:s})=>{const l=n(r[o]??null,{dataIndex:o});if(null==l)return null;const c=Ku(e,"tooltip"),u=s(o);return(0,i.jsxs)(Wp,{className:a.row,children:[(0,i.jsx)(Vp,{className:(0,R.A)(a.markCell,a.cell),children:u&&(0,i.jsx)(qp,{color:u,className:a.mark})}),(0,i.jsx)(Vp,{className:(0,R.A)(a.labelCell,a.cell),children:c?(0,i.jsx)(sf,{children:c}):null}),(0,i.jsx)(Vp,{className:(0,R.A)(a.valueCell,a.cell),children:(0,i.jsx)(sf,{children:l})})]},t)})})]})})}function df(e){const{content:n,contentProps:o,axisData:s,sx:a,classes:l}=e,c=s.x&&-1!==s.x.index,u=c?s.x&&s.x.index:s.y&&s.y.index,h=c?s.x&&s.x.value:s.y&&s.y.value,{xAxisIds:d,xAxis:p,yAxisIds:f,yAxis:m}=j(),{zAxisIds:g,zAxis:y}=t.useContext(cu),_=Cr(),v=Kp(),x=c?d[0]:f[0],b=t.useMemo(()=>{const t=[];return Object.keys(_).filter(cf).forEach(e=>{_[e].seriesOrder.forEach(n=>{const i=_[e].series[n],o=i.xAxisId??i.xAxisKey,s=i.yAxisId??i.yAxisKey,a=c?o:s;if(void 0===a||a===x){const i=_[e].series[n],a=o??d[0],l=s??f[0],c=i.zAxisId??i.zAxisKey??g[0],u=v[e]?.(i,p[a],m[l],c&&y[c])??(()=>"");t.push((0,r.A)({},i,{getColor:u}))}})}),t},[x,v,c,_,p,d,m,f,y,g]),w=t.useMemo(()=>c?p[x]:m[x],[x,c,p,m]),A=n??hf,P=F({elementType:A,externalSlotProps:o,additionalProps:{axisData:s,series:b,axis:w,dataIndex:u,axisValue:h,sx:a,classes:l},ownerState:{}});return(0,i.jsx)(A,(0,r.A)({},P))}lf.addType("bar"),lf.addType("line"),lf.addType("scatter");const pf=(0,K.Ay)($p,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({pointerEvents:"none",zIndex:t.zIndex.modal}));function ff(e){const n=m({props:e,name:"MuiChartsTooltip"}),{trigger:o="axis",itemContent:s,axisContent:a,slots:l,slotProps:c}=n,u=function(){const e=Qr(),[n,i]=t.useState(null);return t.useEffect(()=>{const t=e.current;if(null===t)return()=>{};const n=t=>{"mouse"!==t.pointerType&&i(null)},o=t=>{i({x:t.clientX,y:t.clientY,height:t.height,pointerType:t.pointerType})};return t.addEventListener("pointerdown",o),t.addEventListener("pointermove",o),t.addEventListener("pointerup",n),()=>{t.removeEventListener("pointerdown",o),t.removeEventListener("pointermove",o),t.removeEventListener("pointerup",n)}},[e]),n}(),{item:h,axis:d}=t.useContext(H),p="item"===o?h:d,f=function(t,e){if("item"===t)return null!==e;const n=null!==e.x,i=null!==e.y;return n||i}(o,p),g=null!==u&&f,y=(t=>{const{classes:e}=t;return(0,z.A)({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},Dp,e)})({classes:n.classes}),_=l?.popper??pf,v=F({elementType:_,externalSlotProps:c?.popper,additionalProps:{open:g,placement:"mouse"===u?.pointerType?"right-start":"top",anchorEl:Fp(u),modifiers:[{name:"offset",options:{offset:[0,"touch"===u?.pointerType?40-u.height:0]}}]},ownerState:{}});return"none"===o?null:(0,i.jsx)(Bp,{children:g&&(0,i.jsx)(_,(0,r.A)({},v,{className:y.root,children:"item"===o?(0,i.jsx)(Yp,{itemData:p,content:l?.itemContent??s,contentProps:c?.itemContent,sx:{mx:2},classes:y}):(0,i.jsx)(df,{axisData:p,content:l?.axisContent??a,contentProps:c?.axisContent,sx:{mx:2},classes:y})}))})}const mf={bar:t=>{const{seriesOrder:e,series:n}=t;return e.reduce((t,e)=>{const i=Ku(n[e].label,"legend");return void 0===i||t.push({id:e,seriesId:e,color:n[e].color,label:i}),t},[])},scatter:t=>{const{seriesOrder:e,series:n}=t;return e.reduce((t,e)=>{const i=Ku(n[e].label,"legend");return void 0===i||t.push({id:e,seriesId:e,color:n[e].color,label:i}),t},[])},line:t=>{const{seriesOrder:e,series:n}=t;return e.reduce((t,e)=>{const i=Ku(n[e].label,"legend");return void 0===i||t.push({id:e,seriesId:e,color:n[e].color,label:i}),t},[])},pie:t=>{const{seriesOrder:e,series:n}=t;return e.reduce((t,e)=>(n[e].data.forEach(n=>{const i=Ku(n.label,"legend");void 0!==i&&t.push({id:n.id,seriesId:e,color:n.color,label:i,itemId:n.id})}),t),[])}};function gf(t){return(0,D.Ay)("MuiChartsLegend",t)}(0,Z.A)("MuiChartsLegend",["root","series","itemBackground","mark","label","column","row"]);const yf=["label"];function _f(t){const e=ed(),{id:n,positionY:o,label:s,positionX:a,innerHeight:l,innerWidth:c,legendWidth:u,color:h,gapX:d,gapY:p,itemMarkHeight:f,itemMarkWidth:m,markGap:g,labelStyle:y,classes:_,onClick:v}=t;return(0,i.jsxs)("g",{className:(0,R.A)(_?.series,`${_?.series}-${n}`),transform:`translate(${d+(e?u-a:a)} ${p+o})`,children:[(0,i.jsx)("rect",{x:e?-(c+2):-2,y:-f/2-2,width:c+4,height:l+4,fill:"transparent",className:_?.itemBackground,onClick:v,style:{pointerEvents:v?"all":"none",cursor:v?"pointer":"unset"}}),(0,i.jsx)("rect",{className:_?.mark,x:e?-m:0,y:-f/2,width:m,height:f,fill:h,style:{pointerEvents:"none"}}),(0,i.jsx)(Kh,{style:(0,r.A)({pointerEvents:"none"},y),text:s,x:(e?-1:1)*(m+g),y:0})]})}const vf=["rotate","dominantBaseline"],xf=(0,K.Ay)("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(t,e)=>e.root})({});function bf(e){const{position:n,direction:o,itemsToDisplay:s,classes:a,itemMarkWidth:l=20,itemMarkHeight:c=20,markGap:u=5,itemGap:h=10,padding:d=10,labelStyle:p,onItemClick:f}=e,m=Hr(),y=Lo(),_=t.useMemo(()=>(0,r.A)({},m.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(m.vars||m).palette.text.primary,lineHeight:1},p),[p,m]),v=t.useMemo(()=>(t=>"number"==typeof t?{left:t,right:t,top:t,bottom:t}:(0,r.A)({left:0,right:0,top:0,bottom:0},t))(d),[d]),x=t.useCallback((t,e={})=>{const n=Vh({style:(0,g.A)(e,vf),needsComputation:!0,text:t}),i={innerWidth:l+u+Math.max(...n.map(t=>t.width)),innerHeight:Math.max(c,n.length*n[0].height)};return(0,r.A)({},i,{outerWidth:i.innerWidth+h,outerHeight:i.innerHeight+h})},[h,c,l,u]),b=y.left+y.width+y.right,w=y.top+y.height+y.bottom,A=b-v.left-v.right,P=w-v.top-v.bottom,[k,M,C]=t.useMemo(()=>function(t,e,n,i,o,s,a){let l=0,c=0,u=0,h=0,d=0;const p=[0];return[t.map(t=>{let{label:f}=t,m=(0,g.A)(t,yf);const y=e(f,n),_=(0,r.A)({},m,{label:f,positionX:l,positionY:c,innerHeight:y.innerHeight,innerWidth:y.innerWidth,outerHeight:y.outerHeight,outerWidth:y.outerWidth,rowIndex:d});return"row"===i&&(l+y.innerWidth>o&&(l=0,c+=p[d],d+=1,p.length<=d&&p.push(0),_.positionX=l,_.positionY=c,_.rowIndex=d),u=Math.max(u,l+y.outerWidth),h=Math.max(h,c+y.outerHeight),p[d]=Math.max(p[d],y.outerHeight),l+=y.outerWidth),"column"===i&&(c+y.innerHeight>s&&(l=u+a,c=0,d=0,_.positionX=l,_.positionY=c,_.rowIndex=d),p.length<=d&&p.push(0),u=Math.max(u,l+y.outerWidth),h=Math.max(h,c+y.outerHeight),d+=1,c+=y.outerHeight),_}).map(t=>(0,r.A)({},t,{positionY:t.positionY+("row"===i?p[t.rowIndex]/2:t.outerHeight/2)})),u,h]}(s,x,_,o,A,P,h),[s,x,_,o,A,P,h]),I=t.useMemo(()=>{switch(n.horizontal){case"left":return v.left;case"right":return b-v.right-M;default:return(b-M)/2}},[n.horizontal,v.left,v.right,b,M]),T=t.useMemo(()=>{switch(n.vertical){case"top":return v.top;case"bottom":return w-v.bottom-C;default:return(w-C)/2}},[n.vertical,v.top,v.bottom,w,C]);return(0,i.jsx)(Bp,{children:(0,i.jsx)(xf,{className:a?.root,children:k.map((e,n)=>(0,t.createElement)(_f,(0,r.A)({},e,{key:e.id,gapX:I,gapY:T,legendWidth:M,itemMarkHeight:c,itemMarkWidth:l,markGap:u,labelStyle:_,classes:a,onClick:f?t=>f(t,n):void 0})))})})}const wf=["drawingArea","seriesToDisplay","hidden","onItemClick"];function Af(t){const{seriesToDisplay:e,hidden:n,onItemClick:o}=t,s=(0,g.A)(t,wf);return n?null:(0,i.jsx)(bf,(0,r.A)({},s,{itemsToDisplay:e,onItemClick:o?(t,n)=>{return o(t,{type:"series",color:(i=e[n]).color,label:i.label,seriesId:i.seriesId,itemId:i.itemId},n);var i}:void 0}))}const Pf=["slots","slotProps"];function kf(t){const e=m({props:t,name:"MuiChartsLegend"}),n=(0,r.A)({direction:"row"},e,{position:(0,r.A)({horizontal:"middle",vertical:"top"},e.position)}),{slots:o,slotProps:s}=n,a=(0,g.A)(n,Pf),l=Hr(),c=(t=>{const{classes:e,direction:n}=t,i={root:["root",n],mark:["mark"],label:["label"],series:["series"],itemBackground:["itemBackground"]};return(0,z.A)(i,gf,e)})((0,r.A)({},n,{theme:l})),u=Lo(),h=Cr(),d=function(t){return Object.keys(t).flatMap(e=>{const n=mf[e];return void 0===n?[]:n(t[e])})}(h),p=o?.legend??Af,f=F({elementType:p,externalSlotProps:s?.legend,additionalProps:(0,r.A)({},a,{classes:c,drawingArea:u,series:h,seriesToDisplay:d}),ownerState:{}});return(0,i.jsx)(p,(0,r.A)({},f))}function Mf(t){return(0,D.Ay)("MuiChartsAxisHighlight",t)}(0,Z.A)("MuiChartsAxisHighlight",["root"]);const Cf=(0,K.Ay)("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:(0,r.A)({fill:"white",fillOpacity:.1},t.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:(0,r.A)({strokeDasharray:"5 2",stroke:"#ffffff"},t.applyStyles("light",{stroke:"#000000"}))}]}));function If(e){const{x:n,y:o}=e,{xAxisIds:r,xAxis:s,yAxisIds:a,yAxis:l}=j(),c=(0,z.A)({root:["root"]},Mf),u=r[0],h=a[0],d=s[u].scale,p=l[h].scale,{axis:f}=t.useContext(H),m=Do(d),g=Do(p),y=f.x,_=f.y,v="band"===n&&null!==y&&Fo(d),x="band"===o&&null!==_&&Fo(p);return(0,i.jsxs)(t.Fragment,{children:[v&&void 0!==d(y.value)&&(0,i.jsx)(Cf,{d:`M ${d(y.value)-(d.step()-d.bandwidth())/2} ${p.range()[0]} l ${d.step()} 0 l 0 ${p.range()[1]-p.range()[0]} l ${-d.step()} 0 Z`,className:c.root,ownerState:{axisHighlight:"band"}}),x&&void 0!==p(_.value)&&(0,i.jsx)(Cf,{d:`M ${d.range()[0]} ${p(_.value)-(p.step()-p.bandwidth())/2} l 0 ${p.step()} l ${d.range()[1]-d.range()[0]} 0 l 0 ${-p.step()} Z`,className:c.root,ownerState:{axisHighlight:"band"}}),"line"===n&&null!==f.x&&(0,i.jsx)(Cf,{d:`M ${m(f.x.value)} ${p.range()[0]} L ${m(f.x.value)} ${p.range()[1]}`,className:c.root,ownerState:{axisHighlight:"line"}}),"line"===o&&null!==f.y&&(0,i.jsx)(Cf,{d:`M ${d.range()[0]} ${g(f.y.value)} L ${d.range()[1]} ${g(f.y.value)}`,className:c.root,ownerState:{axisHighlight:"line"}})]})}function Tf(t){const{id:e,offset:n}=t,{left:o,top:s,width:a,height:l}=Lo(),c=(0,r.A)({top:0,right:0,bottom:0,left:0},n);return(0,i.jsx)("clipPath",{id:e,children:(0,i.jsx)("rect",{x:o-c.left,y:s-c.top,width:a+c.left+c.right,height:l+c.top+c.bottom})})}const Lf=["x","y","id","classes","color"];function Sf(t){return(0,D.Ay)("MuiHighlightElement",t)}(0,Z.A)("MuiHighlightElement",["root"]);const Of=(0,K.Ay)("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(t,e)=>e.root})(({ownerState:t})=>({transform:`translate(${t.x}px, ${t.y}px)`,transformOrigin:`${t.x}px ${t.y}px`,fill:t.color}));function jf(t){const{x:e,y:n,id:o,classes:s,color:a}=t,l=(0,g.A)(t,Lf),c={id:o,classes:s,color:a,x:e,y:n},u=(t=>{const{classes:e,id:n}=t,i={root:["root",`series-${n}`]};return(0,z.A)(i,Sf,e)})(c);return(0,i.jsx)(Of,(0,r.A)({pointerEvents:"none",ownerState:c,className:u.root,cx:0,cy:0,r:void 0===l.r?5:l.r},l))}const zf=["slots","slotProps"];function Ef(e){const{slots:n,slotProps:o}=e,s=(0,g.A)(e,zf),a=Ir(),l=j(),c=Lo(),{axis:u}=t.useContext(H),h=u.x?.index;if(void 0===h)return null;if(void 0===a)return null;const{series:d,stackingGroups:p}=a,{xAxis:f,yAxis:m,xAxisIds:y,yAxisIds:_}=l,v=y[0],x=_[0],b=n?.lineHighlight??jf;return(0,i.jsx)("g",(0,r.A)({},s,{children:p.flatMap(({ids:t})=>t.flatMap(t=>{const{xAxisId:e,yAxisId:n,xAxisKey:s=v,yAxisKey:a=x,stackedData:l,data:u,disableHighlight:p}=d[t],g=e??s,y=n??a;if(p||null==u[h])return null;const _=Do(f[g].scale),w=m[y].scale,A=f[g].data;if(void 0===A)throw new Error(`MUI X: ${g===Po?"The first `xAxis`":`The x-axis with id "${g}"`} should have data property to be able to display a line plot.`);const P=_(A[h]),k=w(l[h][1]);if(!c.isPointInside({x:P,y:k}))return null;const M=Uu(d[t],f[g],m[y]);return(0,i.jsx)(b,(0,r.A)({id:t,color:M(h),x:P,y:k},o?.lineHighlight),`${t}`)}))}))}function Rf(t){return(0,D.Ay)("MuiChartsGrid",t)}const Nf=(0,Z.A)("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),$f=(0,K.Ay)("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(t,e)=>[{[`&.${Nf.verticalLine}`]:e.verticalLine},{[`&.${Nf.horizontalLine}`]:e.horizontalLine},e.root]})({}),Bf=(0,K.Ay)("line",{name:"MuiChartsGrid",slot:"Line",overridesResolver:(t,e)=>e.line})(({theme:t})=>({stroke:(t.vars||t).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function Ff(e){const{axis:n,drawingArea:o,classes:r}=e,{scale:s,tickNumber:a,tickInterval:l}=n,c=Wc({scale:s,tickNumber:a,tickInterval:l});return(0,i.jsx)(t.Fragment,{children:c.map(({value:t,offset:e})=>(0,i.jsx)(Bf,{y1:o.top,y2:o.top+o.height,x1:e,x2:e,className:r.verticalLine},`vertical-${t}`))})}function Df(e){const{axis:n,drawingArea:o,classes:r}=e,{scale:s,tickNumber:a,tickInterval:l}=n,c=Wc({scale:s,tickNumber:a,tickInterval:l});return(0,i.jsx)(t.Fragment,{children:c.map(({value:t,offset:e})=>(0,i.jsx)(Bf,{y1:e,y2:e,x1:o.left,x2:o.left+o.width,className:r.horizontalLine},`horizontal-${t}`))})}const Zf=["vertical","horizontal"];function Hf(t){const e=m({props:t,name:"MuiChartsGrid"}),n=Lo(),{vertical:o,horizontal:s}=e,a=(0,g.A)(e,Zf),{xAxis:l,xAxisIds:c,yAxis:u,yAxisIds:h}=j(),d=(({classes:t})=>(0,z.A)({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},Rf,t))(e),p=u[h[0]],f=l[c[0]];return(0,i.jsxs)($f,(0,r.A)({},a,{className:d.root,children:[o&&(0,i.jsx)(Ff,{axis:f,drawingArea:n,classes:d}),s&&(0,i.jsx)(Df,{axis:p,drawingArea:n,classes:d})]}))}function Uf(e){const{onAxisClick:n}=e,o=Qr(),r=Cr(),{axis:s}=t.useContext(H),{xAxisIds:a,xAxis:l,yAxisIds:c,yAxis:u}=j();return t.useEffect(()=>{const t=o.current;if(null===t||!n)return()=>{};const e=t=>{t.preventDefault();const e=s.x&&-1!==s.x.index,i=e?a[0]:c[0],o=e?s.x&&s.x.index:s.y&&s.y.index;if(null==o)return;const h={};Object.keys(r).filter(t=>["bar","line"].includes(t)).forEach(t=>{r[t]?.seriesOrder.forEach(n=>{const s=r[t].series[n],a=s.xAxisId??s.xAxisKey,l=s.yAxisId??s.yAxisKey,c=e?a:l;void 0!==c&&c!==i||(h[n]=s.data[o])})});const d=(e?l:u)[i].data?.[o];n(t,{dataIndex:o,axisValue:d,seriesValues:h})};return t.addEventListener("click",e),()=>{t.removeEventListener("click",e)}},[s.x,s.y,n,r,o,l,a,u,c]),(0,i.jsx)(t.Fragment,{})}const Wf=["message"],Vf=(0,K.Ay)("text")(({theme:t})=>(0,r.A)({},t.typography.body2,{stroke:"none",fill:t.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function qf(t){const{message:e}=t,n=(0,g.A)(t,Wf),{top:o,left:s,height:a,width:l}=Lo();return(0,i.jsx)(Vf,(0,r.A)({x:s+l/2,y:o+a/2},n,{children:e??"Loading data…"}))}const Gf=["message"],Kf=(0,K.Ay)("text")(({theme:t})=>(0,r.A)({},t.typography.body2,{stroke:"none",fill:t.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function Yf(t){const{message:e}=t,n=(0,g.A)(t,Gf),{top:o,left:s,height:a,width:l}=Lo();return(0,i.jsx)(Kf,(0,r.A)({x:s+l/2,y:o+a/2},n,{children:e??"No data to display"}))}function Xf(t){const e=function(){const t=Cr();return Object.values(t).every(t=>{if(!t)return!0;const{series:e,seriesOrder:n}=t;return n.every(t=>0===e[t].data.length)})}();if(t.loading){const e=t.slots?.loadingOverlay??qf;return(0,i.jsx)(e,(0,r.A)({},t.slotProps?.loadingOverlay))}if(e){const e=t.slots?.noDataOverlay??Yf;return(0,i.jsx)(e,(0,r.A)({},t.slotProps?.noDataOverlay))}return null}const Qf=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","onAreaClick","onLineClick","onMarkClick","axisHighlight","disableLineItemHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","highlightedItem","onHighlightChange","className","experimentalMarkRendering"],Jf=t.forwardRef(function(t,e){const n=m({props:t,name:"MuiLineChart"}),{chartContainerProps:o,axisClickHandlerProps:s,gridProps:a,clipPathProps:l,clipPathGroupProps:c,areaPlotProps:u,linePlotProps:h,markPlotProps:d,overlayProps:p,chartsAxisProps:f,axisHighlightProps:y,lineHighlightPlotProps:_,legendProps:v,tooltipProps:x,children:b}=(t=>{const{xAxis:e,yAxis:n,series:i,width:o,height:s,margin:a,colors:l,dataset:c,sx:u,tooltip:h,onAxisClick:d,onAreaClick:p,onLineClick:f,onMarkClick:m,axisHighlight:y,disableLineItemHighlight:_,legend:v,grid:x,topAxis:b,leftAxis:w,rightAxis:A,bottomAxis:P,children:k,slots:M,slotProps:C,skipAnimation:I,loading:T,highlightedItem:L,onHighlightChange:S,className:O,experimentalMarkRendering:j}=t,z=(0,g.A)(t,Qf),E=`${(0,Ao.A)()}-clip-path`,R=(0,r.A)({},z,{series:i.map(t=>(0,r.A)({disableHighlight:!!_,type:"line"},t)),width:o,height:s,margin:a,colors:l,dataset:c,xAxis:e??[{id:Po,scaleType:"point",data:Array.from({length:Math.max(...i.map(t=>(t.data??c??[]).length))},(t,e)=>e)}],yAxis:n,sx:u,highlightedItem:L,onHighlightChange:S,disableAxisListener:"axis"!==h?.trigger&&"none"===y?.x&&"none"===y?.y&&!d,className:O,skipAnimation:I});return{chartContainerProps:R,axisClickHandlerProps:{onAxisClick:d},gridProps:{vertical:x?.vertical,horizontal:x?.horizontal},clipPathProps:{id:E},clipPathGroupProps:{clipPath:`url(#${E})`},areaPlotProps:{slots:M,slotProps:C,onItemClick:p},linePlotProps:{slots:M,slotProps:C,onItemClick:f},markPlotProps:{slots:M,slotProps:C,onItemClick:m,skipAnimation:I,experimentalRendering:j},overlayProps:{slots:M,slotProps:C,loading:T},chartsAxisProps:{topAxis:b,leftAxis:w,rightAxis:A,bottomAxis:P,slots:M,slotProps:C},axisHighlightProps:(0,r.A)({x:"line"},y),lineHighlightPlotProps:{slots:M,slotProps:C},legendProps:(0,r.A)({},v,{slots:M,slotProps:C}),tooltipProps:(0,r.A)({},h,{slots:M,slotProps:C}),children:k}})(n);return(0,i.jsxs)(ah,(0,r.A)({ref:e},o,{children:[n.onAxisClick&&(0,i.jsx)(Uf,(0,r.A)({},s)),(0,i.jsx)(Hf,(0,r.A)({},a)),(0,i.jsxs)("g",(0,r.A)({},c,{children:[(0,i.jsx)(jr,(0,r.A)({},u)),(0,i.jsx)(Dr,(0,r.A)({},h)),(0,i.jsx)(Xf,(0,r.A)({},p)),(0,i.jsx)(If,(0,r.A)({},y))]})),(0,i.jsx)(ld,(0,r.A)({},f)),(0,i.jsx)("g",{"data-drawing-container":!0,children:(0,i.jsx)(Eh,(0,r.A)({},d))}),(0,i.jsx)(Ef,(0,r.A)({},_)),(0,i.jsx)(kf,(0,r.A)({},v)),!n.loading&&(0,i.jsx)(ff,(0,r.A)({},x)),(0,i.jsx)(Tf,(0,r.A)({},l)),b]}))}),tm={top:30,right:24,bottom:55,left:78},em=t=>({...tm,...t}),nm=new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}),im=t=>"number"==typeof t&&Number.isFinite(t)?nm.format(t):null==t?"":String(t),om={"& .MuiChartsAxis-left .MuiChartsAxis-label":{translate:"-30px 0"}},rm=({series:t,xAxisData:e,xAxisLabel:n,yAxisLabel:o,width:r=600,height:s=400,loading:a=!1,margin:l,valueFormatter:c=im})=>{const u=e?[{data:e,scaleType:"point",label:n}]:n?[{label:n}]:void 0,h=[{label:o,valueFormatter:c}];return(0,i.jsx)(Jf,{series:t,xAxis:u,yAxis:h,width:r,height:s,loading:a,margin:em(l),sx:om})};function sm(e){const{series:n,xScale:o,yScale:s,color:a,colorGetter:l,markerSize:c,onItemClick:u}=e,h=Lo(),{useVoronoiInteraction:d}=t.useContext(H),p=d||n.disableHover,f=G(p),{isFaded:m,isHighlighted:g}=q(),y=t.useMemo(()=>{const t=Do(o),e=Do(s),i=[];for(let o=0;o<n.data.length;o+=1){const r=n.data[o],s=t(r.x),c=e(r.y),u=h.isPointInside({x:s,y:c}),d={type:"scatter",seriesId:n.id,dataIndex:o};if(u){const t={seriesId:d.seriesId,dataIndex:d.dataIndex},e=g(t);i.push({x:s,y:c,isHighlighted:e,isFaded:!e&&m(t),interactionProps:f(d),id:r.id,dataIndex:o,color:l?l(o):a})}}return i},[o,s,h,n.data,n.id,g,m,f,l,a]);return(0,i.jsx)("g",{children:y.map(t=>(0,i.jsx)("circle",(0,r.A)({cx:0,cy:0,r:(t.isHighlighted?1.2:1)*c,transform:`translate(${t.x}, ${t.y})`,fill:t.color,opacity:t.isFaded?.3:1,onClick:u&&(e=>u(e,{type:"scatter",seriesId:n.id,dataIndex:t.dataIndex})),cursor:u?"pointer":"unset"},t.interactionProps),t.id))})}function am(e){const{slots:n,slotProps:o,onItemClick:s}=e,a=Tr(),l=j(),{zAxis:c,zAxisIds:u}=t.useContext(cu);if(void 0===a)return null;const{series:h,seriesOrder:d}=a,{xAxis:p,yAxis:f,xAxisIds:m,yAxisIds:g}=l,y=m[0],_=g[0],v=u[0],x=n?.scatter??sm;return(0,i.jsx)(t.Fragment,{children:d.map(t=>{const{id:e,xAxisKey:n,yAxisKey:a,zAxisKey:l,xAxisId:u,yAxisId:d,zAxisId:m,markerSize:g,color:b}=h[t],w=Zu(h[t],p[u??n??y],f[d??a??_],c[m??l??v]),A=p[u??n??y].scale,P=f[d??a??_].scale;return(0,i.jsx)(x,(0,r.A)({xScale:A,yScale:P,color:b,colorGetter:w,markerSize:g??4,series:h[t],onItemClick:s},o?.scatter),e)})})}const lm=134217729;function cm(t,e,n,i,o){let r,s,a,l,c=e[0],u=i[0],h=0,d=0;u>c==u>-c?(r=c,c=e[++h]):(r=u,u=i[++d]);let p=0;if(h<t&&d<n)for(u>c==u>-c?(s=c+r,a=r-(s-c),c=e[++h]):(s=u+r,a=r-(s-u),u=i[++d]),r=s,0!==a&&(o[p++]=a);h<t&&d<n;)u>c==u>-c?(s=r+c,l=s-r,a=r-(s-l)+(c-l),c=e[++h]):(s=r+u,l=s-r,a=r-(s-l)+(u-l),u=i[++d]),r=s,0!==a&&(o[p++]=a);for(;h<t;)s=r+c,l=s-r,a=r-(s-l)+(c-l),c=e[++h],r=s,0!==a&&(o[p++]=a);for(;d<n;)s=r+u,l=s-r,a=r-(s-l)+(u-l),u=i[++d],r=s,0!==a&&(o[p++]=a);return 0===r&&0!==p||(o[p++]=r),p}function um(t){return new Float64Array(t)}const hm=um(4),dm=um(8),pm=um(12),fm=um(16),mm=um(4);function gm(t,e,n,i,o,r){const s=(e-r)*(n-o),a=(t-o)*(i-r),l=s-a,c=Math.abs(s+a);return Math.abs(l)>=33306690738754716e-32*c?l:-function(t,e,n,i,o,r,s){let a,l,c,u,h,d,p,f,m,g,y,_,v,x,b,w,A,P;const k=t-o,M=n-o,C=e-r,I=i-r;x=k*I,d=lm*k,p=d-(d-k),f=k-p,d=lm*I,m=d-(d-I),g=I-m,b=f*g-(x-p*m-f*m-p*g),w=C*M,d=lm*C,p=d-(d-C),f=C-p,d=lm*M,m=d-(d-M),g=M-m,A=f*g-(w-p*m-f*m-p*g),y=b-A,h=b-y,hm[0]=b-(y+h)+(h-A),_=x+y,h=_-x,v=x-(_-h)+(y-h),y=v-w,h=v-y,hm[1]=v-(y+h)+(h-w),P=_+y,h=P-_,hm[2]=_-(P-h)+(y-h),hm[3]=P;let T=function(t,e){let n=e[0];for(let t=1;t<4;t++)n+=e[t];return n}(0,hm),L=22204460492503146e-32*s;if(T>=L||-T>=L)return T;if(h=t-k,a=t-(k+h)+(h-o),h=n-M,c=n-(M+h)+(h-o),h=e-C,l=e-(C+h)+(h-r),h=i-I,u=i-(I+h)+(h-r),0===a&&0===l&&0===c&&0===u)return T;if(L=11093356479670487e-47*s+33306690738754706e-32*Math.abs(T),T+=k*u+I*a-(C*c+M*l),T>=L||-T>=L)return T;x=a*I,d=lm*a,p=d-(d-a),f=a-p,d=lm*I,m=d-(d-I),g=I-m,b=f*g-(x-p*m-f*m-p*g),w=l*M,d=lm*l,p=d-(d-l),f=l-p,d=lm*M,m=d-(d-M),g=M-m,A=f*g-(w-p*m-f*m-p*g),y=b-A,h=b-y,mm[0]=b-(y+h)+(h-A),_=x+y,h=_-x,v=x-(_-h)+(y-h),y=v-w,h=v-y,mm[1]=v-(y+h)+(h-w),P=_+y,h=P-_,mm[2]=_-(P-h)+(y-h),mm[3]=P;const S=cm(4,hm,4,mm,dm);x=k*u,d=lm*k,p=d-(d-k),f=k-p,d=lm*u,m=d-(d-u),g=u-m,b=f*g-(x-p*m-f*m-p*g),w=C*c,d=lm*C,p=d-(d-C),f=C-p,d=lm*c,m=d-(d-c),g=c-m,A=f*g-(w-p*m-f*m-p*g),y=b-A,h=b-y,mm[0]=b-(y+h)+(h-A),_=x+y,h=_-x,v=x-(_-h)+(y-h),y=v-w,h=v-y,mm[1]=v-(y+h)+(h-w),P=_+y,h=P-_,mm[2]=_-(P-h)+(y-h),mm[3]=P;const O=cm(S,dm,4,mm,pm);x=a*u,d=lm*a,p=d-(d-a),f=a-p,d=lm*u,m=d-(d-u),g=u-m,b=f*g-(x-p*m-f*m-p*g),w=l*c,d=lm*l,p=d-(d-l),f=l-p,d=lm*c,m=d-(d-c),g=c-m,A=f*g-(w-p*m-f*m-p*g),y=b-A,h=b-y,mm[0]=b-(y+h)+(h-A),_=x+y,h=_-x,v=x-(_-h)+(y-h),y=v-w,h=v-y,mm[1]=v-(y+h)+(h-w),P=_+y,h=P-_,mm[2]=_-(P-h)+(y-h),mm[3]=P;const j=cm(O,pm,4,mm,fm);return fm[j-1]}(t,e,n,i,o,r,c)}um(4),um(4),um(4),um(4),um(4),um(4),um(4),um(4),um(4),um(8),um(8),um(8),um(4),um(8),um(8),um(16),um(12),um(192),um(192),um(4),um(4),um(4),um(4),um(4),um(4),um(4),um(4),um(8),um(8),um(8),um(8),um(8),um(8),um(8),um(8),um(8),um(4),um(4),um(4),um(8),um(16),um(16),um(16),um(32),um(32),um(48),um(64),um(1152),um(1152),um(4),um(4),um(4),um(4),um(4),um(4),um(4),um(4),um(4),um(4),um(24),um(24),um(24),um(24),um(24),um(24),um(24),um(24),um(24),um(24),um(1152),um(1152),um(1152),um(1152),um(1152),um(2304),um(2304),um(3456),um(5760),um(8),um(8),um(8),um(16),um(24),um(48),um(48),um(96),um(192),um(384),um(384),um(384),um(768),um(96),um(96),um(96),um(1152);const ym=Math.pow(2,-52),_m=new Uint32Array(512);class vm{static from(t,e=km,n=Mm){const i=t.length,o=new Float64Array(2*i);for(let r=0;r<i;r++){const i=t[r];o[2*r]=e(i),o[2*r+1]=n(i)}return new vm(o)}constructor(t){const e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.trianglesLen=0,this._cx=0,this._cy=0,this._hullStart=0,this.hull=this._triangles,this.triangles=this._triangles,this.halfedges=this._halfedges,this.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:i,_hullHash:o}=this,r=t.length>>1;let s=1/0,a=1/0,l=-1/0,c=-1/0;for(let e=0;e<r;e++){const n=t[2*e],i=t[2*e+1];n<s&&(s=n),i<a&&(a=i),n>l&&(l=n),i>c&&(c=i),this._ids[e]=e}const u=(s+l)/2,h=(a+c)/2;let d=0,p=0,f=0;for(let e=0,n=1/0;e<r;e++){const i=xm(u,h,t[2*e],t[2*e+1]);i<n&&(d=e,n=i)}const m=t[2*d],g=t[2*d+1];for(let e=0,n=1/0;e<r;e++){if(e===d)continue;const i=xm(m,g,t[2*e],t[2*e+1]);i<n&&i>0&&(p=e,n=i)}let y=t[2*p],_=t[2*p+1],v=1/0;for(let e=0;e<r;e++){if(e===d||e===p)continue;const n=wm(m,g,y,_,t[2*e],t[2*e+1]);n<v&&(f=e,v=n)}let x=t[2*f],b=t[2*f+1];if(v===1/0){for(let e=0;e<r;e++)this._dists[e]=t[2*e]-t[0]||t[2*e+1]-t[1];Am(this._ids,this._dists,0,r-1);const e=new Uint32Array(r);let n=0;for(let t=0,i=-1/0;t<r;t++){const o=this._ids[t],r=this._dists[o];r>i&&(e[n++]=o,i=r)}return this.hull=e.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Int32Array(0))}if(gm(m,g,y,_,x,b)<0){const t=p,e=y,n=_;p=f,y=x,_=b,f=t,x=e,b=n}const w=function(t,e,n,i,o,r){const s=n-t,a=i-e,l=o-t,c=r-e,u=s*s+a*a,h=l*l+c*c,d=.5/(s*c-a*l);return{x:t+(c*u-a*h)*d,y:e+(s*h-l*u)*d}}(m,g,y,_,x,b);this._cx=w.x,this._cy=w.y;for(let e=0;e<r;e++)this._dists[e]=xm(t[2*e],t[2*e+1],w.x,w.y);Am(this._ids,this._dists,0,r-1),this._hullStart=d;let A=3;n[d]=e[f]=p,n[p]=e[d]=f,n[f]=e[p]=d,i[d]=0,i[p]=1,i[f]=2,o.fill(-1),o[this._hashKey(m,g)]=d,o[this._hashKey(y,_)]=p,o[this._hashKey(x,b)]=f,this.trianglesLen=0,this._addTriangle(d,p,f,-1,-1,-1);for(let r=0,s=0,a=0;r<this._ids.length;r++){const l=this._ids[r],c=t[2*l],u=t[2*l+1];if(r>0&&Math.abs(c-s)<=ym&&Math.abs(u-a)<=ym)continue;if(s=c,a=u,l===d||l===p||l===f)continue;let h=0;for(let t=0,e=this._hashKey(c,u);t<this._hashSize&&(h=o[(e+t)%this._hashSize],-1===h||h===n[h]);t++);h=e[h];let m,g=h;for(;m=n[g],gm(c,u,t[2*g],t[2*g+1],t[2*m],t[2*m+1])>=0;)if(g=m,g===h){g=-1;break}if(-1===g)continue;let y=this._addTriangle(g,l,n[g],-1,-1,i[g]);i[l]=this._legalize(y+2),i[g]=y,A++;let _=n[g];for(;m=n[_],gm(c,u,t[2*_],t[2*_+1],t[2*m],t[2*m+1])<0;)y=this._addTriangle(_,l,m,i[l],-1,i[_]),i[l]=this._legalize(y+2),n[_]=_,A--,_=m;if(g===h)for(;m=e[g],gm(c,u,t[2*m],t[2*m+1],t[2*g],t[2*g+1])<0;)y=this._addTriangle(m,l,g,-1,i[g],i[m]),this._legalize(y+2),i[m]=y,n[g]=g,A--,g=m;this._hullStart=e[l]=g,n[g]=e[_]=l,n[l]=_,o[this._hashKey(c,u)]=l,o[this._hashKey(t[2*g],t[2*g+1])]=g}this.hull=new Uint32Array(A);for(let t=0,e=this._hullStart;t<A;t++)this.hull[t]=e,e=n[e];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,e){return Math.floor(function(t,e){const n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:e,_halfedges:n,coords:i}=this;let o=0,r=0;for(;;){const s=n[t],a=t-t%3;if(r=a+(t+2)%3,-1===s){if(0===o)break;t=_m[--o];continue}const l=s-s%3,c=a+(t+1)%3,u=l+(s+2)%3,h=e[r],d=e[t],p=e[c],f=e[u];if(bm(i[2*h],i[2*h+1],i[2*d],i[2*d+1],i[2*p],i[2*p+1],i[2*f],i[2*f+1])){e[t]=f,e[s]=h;const i=n[u];if(-1===i){let e=this._hullStart;do{if(this._hullTri[e]===u){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,i),this._link(s,n[r]),this._link(r,u);const a=l+(s+1)%3;o<_m.length&&(_m[o++]=a)}else{if(0===o)break;t=_m[--o]}}return r}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,n,i,o,r){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=e,this._triangles[s+2]=n,this._link(s,i),this._link(s+1,o),this._link(s+2,r),this.trianglesLen+=3,s}}function xm(t,e,n,i){const o=t-n,r=e-i;return o*o+r*r}function bm(t,e,n,i,o,r,s,a){const l=t-s,c=e-a,u=n-s,h=i-a,d=o-s,p=r-a,f=u*u+h*h,m=d*d+p*p;return l*(h*m-f*p)-c*(u*m-f*d)+(l*l+c*c)*(u*p-h*d)<0}function wm(t,e,n,i,o,r){const s=n-t,a=i-e,l=o-t,c=r-e,u=s*s+a*a,h=l*l+c*c,d=.5/(s*c-a*l),p=(c*u-a*h)*d,f=(s*h-l*u)*d;return p*p+f*f}function Am(t,e,n,i){if(i-n<=20)for(let o=n+1;o<=i;o++){const i=t[o],r=e[i];let s=o-1;for(;s>=n&&e[t[s]]>r;)t[s+1]=t[s--];t[s+1]=i}else{let o=n+1,r=i;Pm(t,n+i>>1,o),e[t[n]]>e[t[i]]&&Pm(t,n,i),e[t[o]]>e[t[i]]&&Pm(t,o,i),e[t[n]]>e[t[o]]&&Pm(t,n,o);const s=t[o],a=e[s];for(;;){do{o++}while(e[t[o]]<a);do{r--}while(e[t[r]]>a);if(r<o)break;Pm(t,o,r)}t[n+1]=t[r],t[r]=s,i-o+1>=r-n?(Am(t,e,o,i),Am(t,e,n,r-1)):(Am(t,e,n,r-1),Am(t,e,o,i))}}function Pm(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function km(t){return t[0]}function Mm(t){return t[1]}const Cm=1e-6;class Im{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){const i=(t=+t)+(n=+n),o=e=+e;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${i},${o}`:(Math.abs(this._x1-i)>Cm||Math.abs(this._y1-o)>Cm)&&(this._+="L"+i+","+o),n&&(this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=i},${this._y1=o}`)}rect(t,e,n,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+i}h${-n}Z`}value(){return this._||null}}class Tm{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class Lm{constructor(t,[e,n,i,o]=[0,0,960,500]){if(!((i=+i)>=(e=+e)&&(o=+o)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=i,this.xmin=e,this.ymax=o,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:i}=this;let o,r;const s=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let i,a,l=0,c=0,u=n.length;l<u;l+=3,c+=2){const u=2*n[l],h=2*n[l+1],d=2*n[l+2],p=t[u],f=t[u+1],m=t[h],g=t[h+1],y=t[d],_=t[d+1],v=m-p,x=g-f,b=y-p,w=_-f,A=2*(v*w-x*b);if(Math.abs(A)<1e-9){if(void 0===o){o=r=0;for(const n of e)o+=t[2*n],r+=t[2*n+1];o/=e.length,r/=e.length}const n=1e9*Math.sign((o-p)*w-(r-f)*b);i=(p+y)/2-n*w,a=(f+_)/2+n*b}else{const t=1/A,e=v*v+x*x,n=b*b+w*w;i=p+(w*e-x*n)*t,a=f+(v*n-b*e)*t}s[c]=i,s[c+1]=a}let a,l,c,u=e[e.length-1],h=4*u,d=t[2*u],p=t[2*u+1];i.fill(0);for(let n=0;n<e.length;++n)u=e[n],a=h,l=d,c=p,h=4*u,d=t[2*u],p=t[2*u+1],i[a+2]=i[h]=c-p,i[a+3]=i[h+1]=d-l}render(t){const e=null==t?t=new Im:void 0,{delaunay:{halfedges:n,inedges:i,hull:o},circumcenters:r,vectors:s}=this;if(o.length<=1)return null;for(let e=0,i=n.length;e<i;++e){const i=n[e];if(i<e)continue;const o=2*Math.floor(e/3),s=2*Math.floor(i/3),a=r[o],l=r[o+1],c=r[s],u=r[s+1];this._renderSegment(a,l,c,u,t)}let a,l=o[o.length-1];for(let e=0;e<o.length;++e){a=l,l=o[e];const n=2*Math.floor(i[l]/3),c=r[n],u=r[n+1],h=4*a,d=this._project(c,u,s[h+2],s[h+3]);d&&this._renderSegment(c,u,d[0],d[1],t)}return e&&e.value()}renderBounds(t){const e=null==t?t=new Im:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){const n=null==e?e=new Im:void 0,i=this._clip(t);if(null===i||!i.length)return;e.moveTo(i[0],i[1]);let o=i.length;for(;i[0]===i[o-2]&&i[1]===i[o-1]&&o>1;)o-=2;for(let t=2;t<o;t+=2)i[t]===i[t-2]&&i[t+1]===i[t-1]||e.lineTo(i[t],i[t+1]);return e.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let e=0,n=t.length/2;e<n;++e){const t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){const e=new Tm;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,i,o){let r;const s=this._regioncode(t,e),a=this._regioncode(n,i);0===s&&0===a?(o.moveTo(t,e),o.lineTo(n,i)):(r=this._clipSegment(t,e,n,i,s,a))&&(o.moveTo(r[0],r[1]),o.lineTo(r[2],r[3]))}contains(t,e,n){return(e=+e)==e&&(n=+n)==n&&this.delaunay._step(t,e,n)===t}*neighbors(t){const e=this._clip(t);if(e)for(const n of this.delaunay.neighbors(t)){const t=this._clip(n);if(t)t:for(let i=0,o=e.length;i<o;i+=2)for(let r=0,s=t.length;r<s;r+=2)if(e[i]===t[r]&&e[i+1]===t[r+1]&&e[(i+2)%o]===t[(r+s-2)%s]&&e[(i+3)%o]===t[(r+s-1)%s]){yield n;break t}}}_cell(t){const{circumcenters:e,delaunay:{inedges:n,halfedges:i,triangles:o}}=this,r=n[t];if(-1===r)return null;const s=[];let a=r;do{const n=Math.floor(a/3);if(s.push(e[2*n],e[2*n+1]),a=a%3==2?a-2:a+1,o[a]!==t)break;a=i[a]}while(a!==r&&-1!==a);return s}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const e=this._cell(t);if(null===e)return null;const{vectors:n}=this,i=4*t;return this._simplify(n[i]||n[i+1]?this._clipInfinite(t,e,n[i],n[i+1],n[i+2],n[i+3]):this._clipFinite(t,e))}_clipFinite(t,e){const n=e.length;let i,o,r,s,a=null,l=e[n-2],c=e[n-1],u=this._regioncode(l,c),h=0;for(let d=0;d<n;d+=2)if(i=l,o=c,l=e[d],c=e[d+1],r=u,u=this._regioncode(l,c),0===r&&0===u)s=h,h=0,a?a.push(l,c):a=[l,c];else{let e,n,d,p,f;if(0===r){if(null===(e=this._clipSegment(i,o,l,c,r,u)))continue;[n,d,p,f]=e}else{if(null===(e=this._clipSegment(l,c,i,o,u,r)))continue;[p,f,n,d]=e,s=h,h=this._edgecode(n,d),s&&h&&this._edge(t,s,h,a,a.length),a?a.push(n,d):a=[n,d]}s=h,h=this._edgecode(p,f),s&&h&&this._edge(t,s,h,a,a.length),a?a.push(p,f):a=[p,f]}if(a)s=h,h=this._edgecode(a[0],a[1]),s&&h&&this._edge(t,s,h,a,a.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return a}_clipSegment(t,e,n,i,o,r){const s=o<r;for(s&&([t,e,n,i,o,r]=[n,i,t,e,r,o]);;){if(0===o&&0===r)return s?[n,i,t,e]:[t,e,n,i];if(o&r)return null;let a,l,c=o||r;8&c?(a=t+(n-t)*(this.ymax-e)/(i-e),l=this.ymax):4&c?(a=t+(n-t)*(this.ymin-e)/(i-e),l=this.ymin):2&c?(l=e+(i-e)*(this.xmax-t)/(n-t),a=this.xmax):(l=e+(i-e)*(this.xmin-t)/(n-t),a=this.xmin),o?(t=a,e=l,o=this._regioncode(t,e)):(n=a,i=l,r=this._regioncode(n,i))}}_clipInfinite(t,e,n,i,o,r){let s,a=Array.from(e);if((s=this._project(a[0],a[1],n,i))&&a.unshift(s[0],s[1]),(s=this._project(a[a.length-2],a[a.length-1],o,r))&&a.push(s[0],s[1]),a=this._clipFinite(t,a))for(let e,n=0,i=a.length,o=this._edgecode(a[i-2],a[i-1]);n<i;n+=2)e=o,o=this._edgecode(a[n],a[n+1]),e&&o&&(n=this._edge(t,e,o,a,n),i=a.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(a=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return a}_edge(t,e,n,i,o){for(;e!==n;){let n,r;switch(e){case 5:e=4;continue;case 4:e=6,n=this.xmax,r=this.ymin;break;case 6:e=2;continue;case 2:e=10,n=this.xmax,r=this.ymax;break;case 10:e=8;continue;case 8:e=9,n=this.xmin,r=this.ymax;break;case 9:e=1;continue;case 1:e=5,n=this.xmin,r=this.ymin}i[o]===n&&i[o+1]===r||!this.contains(t,n,r)||(i.splice(o,0,n,r),o+=2)}return o}_project(t,e,n,i){let o,r,s,a=1/0;if(i<0){if(e<=this.ymin)return null;(o=(this.ymin-e)/i)<a&&(s=this.ymin,r=t+(a=o)*n)}else if(i>0){if(e>=this.ymax)return null;(o=(this.ymax-e)/i)<a&&(s=this.ymax,r=t+(a=o)*n)}if(n>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/n)<a&&(r=this.xmax,s=e+(a=o)*i)}else if(n<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/n)<a&&(r=this.xmin,s=e+(a=o)*i)}return[r,s]}_edgecode(t,e){return(t===this.xmin?1:t===this.xmax?2:0)|(e===this.ymin?4:e===this.ymax?8:0)}_regioncode(t,e){return(t<this.xmin?1:t>this.xmax?2:0)|(e<this.ymin?4:e>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let e=0;e<t.length;e+=2){const n=(e+2)%t.length,i=(e+4)%t.length;(t[e]===t[n]&&t[n]===t[i]||t[e+1]===t[n+1]&&t[n+1]===t[i+1])&&(t.splice(n,2),e-=2)}t.length||(t=null)}return t}}const Sm=2*Math.PI,Om=Math.pow;function jm(t){return t[0]}function zm(t){return t[1]}function Em(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class Rm{static from(t,e=jm,n=zm,i){return new Rm("length"in t?function(t,e,n,i){const o=t.length,r=new Float64Array(2*o);for(let s=0;s<o;++s){const o=t[s];r[2*s]=e.call(i,o,s,t),r[2*s+1]=n.call(i,o,s,t)}return r}(t,e,n,i):Float64Array.from(function*(t,e,n,i){let o=0;for(const r of t)yield e.call(i,r,o,t),yield n.call(i,r,o,t),++o}(t,e,n,i)))}constructor(t){this._delaunator=new vm(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:e,coords:n}=t;for(let t=0;t<e.length;t+=3){const i=2*e[t],o=2*e[t+1],r=2*e[t+2];if((n[r]-n[i])*(n[o+1]-n[i+1])-(n[o]-n[i])*(n[r+1]-n[i+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:e.length/2},(t,e)=>e).sort((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]);const t=this.collinear[0],n=this.collinear[this.collinear.length-1],i=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],o=1e-8*Math.hypot(i[3]-i[1],i[2]-i[0]);for(let t=0,n=e.length/2;t<n;++t){const n=Em(e[2*t],e[2*t+1],o);e[2*t]=n[0],e[2*t+1]=n[1]}this._delaunator=new vm(e)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,r=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let t=0,e=n.length;t<e;++t){const e=o[t%3==2?t-2:t+1];-1!==n[t]&&-1!==r[e]||(r[e]=t)}for(let t=0,e=i.length;t<e;++t)s[i[t]]=t;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],r[i[0]]=1,2===i.length&&(r[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new Lm(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:i,halfedges:o,triangles:r,collinear:s}=this;if(s){const e=s.indexOf(t);return e>0&&(yield s[e-1]),void(e<s.length-1&&(yield s[e+1]))}const a=e[t];if(-1===a)return;let l=a,c=-1;do{if(yield c=r[l],l=l%3==2?l-2:l+1,r[l]!==t)return;if(l=o[l],-1===l){const e=n[(i[t]+1)%n.length];return void(e!==c&&(yield e))}}while(l!==a)}find(t,e,n=0){if((t=+t)!=t||(e=+e)!=e)return-1;const i=n;let o;for(;(o=this._step(n,t,e))>=0&&o!==n&&o!==i;)n=o;return o}_step(t,e,n){const{inedges:i,hull:o,_hullIndex:r,halfedges:s,triangles:a,points:l}=this;if(-1===i[t]||!l.length)return(t+1)%(l.length>>1);let c=t,u=Om(e-l[2*t],2)+Om(n-l[2*t+1],2);const h=i[t];let d=h;do{let i=a[d];const h=Om(e-l[2*i],2)+Om(n-l[2*i+1],2);if(h<u&&(u=h,c=i),d=d%3==2?d-2:d+1,a[d]!==t)break;if(d=s[d],-1===d){if(d=o[(r[t]+1)%o.length],d!==i&&Om(e-l[2*d],2)+Om(n-l[2*d+1],2)<u)return d;break}}while(d!==h);return c}render(t){const e=null==t?t=new Im:void 0,{points:n,halfedges:i,triangles:o}=this;for(let e=0,r=i.length;e<r;++e){const r=i[e];if(r<e)continue;const s=2*o[e],a=2*o[r];t.moveTo(n[s],n[s+1]),t.lineTo(n[a],n[a+1])}return this.renderHull(t),e&&e.value()}renderPoints(t,e){void 0!==e||t&&"function"==typeof t.moveTo||(e=t,t=null),e=null==e?2:+e;const n=null==t?t=new Im:void 0,{points:i}=this;for(let n=0,o=i.length;n<o;n+=2){const o=i[n],r=i[n+1];t.moveTo(o+e,r),t.arc(o,r,e,0,Sm)}return n&&n.value()}renderHull(t){const e=null==t?t=new Im:void 0,{hull:n,points:i}=this,o=2*n[0],r=n.length;t.moveTo(i[o],i[o+1]);for(let e=1;e<r;++e){const o=2*n[e];t.lineTo(i[o],i[o+1])}return t.closePath(),e&&e.value()}hullPolygon(){const t=new Tm;return this.renderHull(t),t.value()}renderTriangle(t,e){const n=null==e?e=new Im:void 0,{points:i,triangles:o}=this,r=2*o[t*=3],s=2*o[t+1],a=2*o[t+2];return e.moveTo(i[r],i[r+1]),e.lineTo(i[s],i[s+1]),e.lineTo(i[a],i[a+1]),e.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:t}=this;for(let e=0,n=t.length/3;e<n;++e)yield this.trianglePolygon(e)}trianglePolygon(t){const e=new Tm;return this.renderTriangle(t,e),e.value()}}function Nm(e){const{voronoiMaxRadius:n,onItemClick:o}=e,r=Qr(),s=Lo(),{xAxis:a,yAxis:l,xAxisIds:c,yAxisIds:u}=j(),{dispatch:h}=t.useContext(H),{series:d,seriesOrder:p}=Tr()??{},f=t.useRef({}),m=t.useRef(void 0),g=t.useRef(void 0),{setHighlighted:y,clearHighlighted:_}=q(),v=c[0],x=u[0];return(0,oh.A)(()=>(h({type:"updateVoronoiUsage",useVoronoiInteraction:!0}),()=>{h({type:"updateVoronoiUsage",useVoronoiInteraction:!1})}),[h]),(0,oh.A)(()=>{if(void 0===p||void 0===d)return;f.current={};let t=[];p.forEach(e=>{const{data:n,xAxisId:i,yAxisId:o,xAxisKey:r,yAxisKey:c}=d[e],u=a[i??r??v].scale,h=l[o??c??x].scale,p=Do(u),m=Do(h),g=n.flatMap(({x:t,y:e})=>{const n=p(t),i=m(e);return s.isPointInside({x:n,y:i})?[n,i]:[-s.width,-s.height]});f.current[e]={seriesId:e,startIndex:t.length,endIndex:t.length+g.length},t=t.concat(g)}),m.current=new Rm(t),g.current=void 0},[v,x,d,p,a,l,s]),t.useEffect(()=>{if(null===r.current)return;const t=r.current;function e(e){const i=Xr(t,e);if(!s.isPointInside(i))return g.current=void 0,"outside-chart";if(!m.current)return"no-point-found";const o=m.current.find(i.x,i.y,g.current);if(void 0===o)return"no-point-found";g.current=o;const r=Object.values(f.current).find(t=>2*o>=t.startIndex&&2*o<t.endIndex);if(void 0===r)return"no-point-found";const a=(2*o-f.current[r.seriesId].startIndex)/2;if(void 0!==n){const t=m.current.points[2*o],e=m.current.points[2*o+1];if((t-i.x)**2+(e-i.y)**2>n**2)return"outside-voronoi-max-radius"}return{seriesId:r.seriesId,dataIndex:a}}const i=()=>{h({type:"exitChart"}),_()},a=t=>{const n=e(t);if("outside-chart"===n)return h({type:"exitChart"}),void _();if("outside-voronoi-max-radius"===n||"no-point-found"===n)return h({type:"leaveItem",data:{type:"scatter"}}),void _();const{seriesId:i,dataIndex:o}=n;h({type:"enterItem",data:{type:"scatter",seriesId:i,dataIndex:o}}),y({seriesId:i,dataIndex:o})},l=t=>{if(!o)return;const n=e(t);if("string"==typeof n)return;const{seriesId:i,dataIndex:r}=n;o(t,{type:"scatter",seriesId:i,dataIndex:r})};return t.addEventListener("pointerleave",i),t.addEventListener("pointermove",a),t.addEventListener("click",l),()=>{t.removeEventListener("pointerleave",i),t.removeEventListener("pointermove",a),t.removeEventListener("click",l)}},[r,h,l,a,n,o,y,_,s]),(0,i.jsx)(t.Fragment,{})}const $m=["xAxis","yAxis","zAxis","series","tooltip","axisHighlight","voronoiMaxRadius","disableVoronoi","legend","width","height","margin","colors","sx","grid","topAxis","leftAxis","rightAxis","bottomAxis","onItemClick","children","slots","slotProps","loading","highlightedItem","onHighlightChange","className"],Bm=t.forwardRef(function(t,e){const n=m({props:t,name:"MuiScatterChart"}),{chartContainerProps:o,zAxisProps:s,voronoiHandlerProps:a,chartsAxisProps:l,gridProps:c,scatterPlotProps:u,overlayProps:h,legendProps:d,axisHighlightProps:p,tooltipProps:f,children:y}=(t=>{const{xAxis:e,yAxis:n,zAxis:i,series:o,tooltip:s,axisHighlight:a,voronoiMaxRadius:l,disableVoronoi:c,legend:u,width:h,height:d,margin:p,colors:f,sx:m,grid:y,topAxis:_,leftAxis:v,rightAxis:x,bottomAxis:b,onItemClick:w,children:A,slots:P,slotProps:k,loading:M,highlightedItem:C,onHighlightChange:I,className:T}=t,L=(0,g.A)(t,$m),S=(0,r.A)({},L,{series:o.map(t=>(0,r.A)({type:"scatter"},t)),width:h,height:d,margin:p,colors:f,xAxis:e,yAxis:n,sx:m,highlightedItem:C,onHighlightChange:I,className:T});return{chartContainerProps:S,zAxisProps:{zAxis:i},voronoiHandlerProps:{voronoiMaxRadius:l,onItemClick:w},chartsAxisProps:{topAxis:_,leftAxis:v,rightAxis:x,bottomAxis:b,slots:P,slotProps:k},gridProps:{vertical:y?.vertical,horizontal:y?.horizontal},scatterPlotProps:{onItemClick:c?w:void 0,slots:P,slotProps:k},overlayProps:{loading:M,slots:P,slotProps:k},legendProps:(0,r.A)({},u,{slots:P,slotProps:k}),axisHighlightProps:(0,r.A)({y:"none",x:"none"},a),tooltipProps:(0,r.A)({trigger:"item"},s,{slots:P,slotProps:k}),children:A}})(n);return(0,i.jsx)(ah,(0,r.A)({ref:e},o,{children:(0,i.jsxs)(uu,(0,r.A)({},s,{children:[!n.disableVoronoi&&(0,i.jsx)(Nm,(0,r.A)({},a)),(0,i.jsx)(ld,(0,r.A)({},l)),(0,i.jsx)(Hf,(0,r.A)({},c)),(0,i.jsx)("g",{"data-drawing-container":!0,children:(0,i.jsx)(am,(0,r.A)({},u))}),(0,i.jsx)(Xf,(0,r.A)({},h)),(0,i.jsx)(kf,(0,r.A)({},d)),(0,i.jsx)(If,(0,r.A)({},p)),!n.loading&&(0,i.jsx)(ff,(0,r.A)({},f)),y]}))}))}),Fm=({series:t,xAxisLabel:e,yAxisLabel:n,width:o=600,height:r=400,loading:s=!1,margin:a,valueFormatter:l=im})=>{const c=[{label:e,valueFormatter:l}],u=[{label:n,valueFormatter:l}];return(0,i.jsx)(Bm,{series:t,xAxis:c,yAxis:u,width:o,height:r,loading:s,margin:em(a),sx:om})},Dm=["id","dataIndex","classes","color","slots","slotProps","style","onClick"];function Zm(t){return(0,D.Ay)("MuiBarElement",t)}(0,Z.A)("MuiBarElement",["root"]);const Hm=(0,K.Ay)(Ei.rect,{name:"MuiBarElement",slot:"Root",overridesResolver:(t,e)=>e.root})(({ownerState:t})=>({stroke:"none",fill:t.isHighlighted?to(t.color).brighter(.5).formatHex():t.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:t.isFaded?.3:1}));function Um(t){const{id:e,dataIndex:n,classes:o,color:s,slots:a,slotProps:l,style:c,onClick:u}=t,h=(0,g.A)(t,Dm),d=G(),{isFaded:p,isHighlighted:f}=Ro({seriesId:e,dataIndex:n}),m={id:e,dataIndex:n,classes:o,color:s,isFaded:p,isHighlighted:f},y=(t=>{const{classes:e,id:n}=t,i={root:["root",`series-${n}`]};return(0,z.A)(i,Zm,e)})(m),_=a?.bar??Hm,v=F({elementType:_,externalSlotProps:l?.bar,externalForwardedProps:h,additionalProps:(0,r.A)({},d({type:"bar",seriesId:e,dataIndex:n}),{style:c,onClick:u,cursor:u?"pointer":"unset"}),className:y.root,ownerState:m});return(0,i.jsx)(_,(0,r.A)({},v))}const Wm=(t,{hasNegative:e,hasPositive:n,borderRadius:i,layout:o})=>{if(!i)return 0;const r="vertical"===o;return"top-left"===t&&(r&&n||!r&&e)||"top-right"===t&&(r&&n||!r&&n)||"bottom-right"===t&&(r&&e||!r&&n)||"bottom-left"===t&&(r&&e||!r&&e)?i:0},Vm=["style","maskId"];function qm(t){const e=t.ownerState;return(0,i.jsx)(Ei.rect,{style:(0,r.A)({},t.style,{clipPath:("vertical"===t.ownerState.layout?t.style?.height:t.style?.width).to(t=>{return`inset(0px round ${(n={topLeft:Math.min(t,Wm("top-left",e)),topRight:Math.min(t,Wm("top-right",e)),bottomRight:Math.min(t,Wm("bottom-right",e)),bottomLeft:Math.min(t,Wm("bottom-left",e))}).topLeft}px ${n.topRight}px ${n.bottomRight}px ${n.bottomLeft}px)`;var n})})})}function Gm(t){const{style:e,maskId:n}=t,o=(0,g.A)(t,Vm);return!t.borderRadius||t.borderRadius<=0?null:(0,i.jsx)("clipPath",{id:n,children:(0,i.jsx)(qm,{ownerState:o,style:e})})}function Km(t){return(0,D.Ay)("MuiBarLabel",t)}const Ym=(0,Z.A)("MuiBarLabel",["root","highlighted","faded"]),Xm=["seriesId","dataIndex","color","isFaded","isHighlighted","classes"],Qm=(0,K.Ay)(Ei.text,{name:"MuiBarLabel",slot:"Root",overridesResolver:(t,e)=>[{[`&.${Ym.faded}`]:e.faded},{[`&.${Ym.highlighted}`]:e.highlighted},e.root]})(({theme:t})=>(0,r.A)({},t?.typography?.body2,{stroke:"none",fill:(t.vars||t)?.palette?.text?.primary,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",textAnchor:"middle",dominantBaseline:"central",pointerEvents:"none",opacity:1,[`&.${Ym.faded}`]:{opacity:.3}}));function Jm(t){const e=m({props:t,name:"MuiBarLabel"}),n=(0,g.A)(e,Xm);return(0,i.jsx)(Qm,(0,r.A)({},n))}const tg=["seriesId","classes","color","style","dataIndex","barLabel","slots","slotProps","height","width","value"],eg=["ownerState"];function ng(t){const{seriesId:e,classes:n,color:o,style:s,dataIndex:a,barLabel:l,slots:c,slotProps:u,height:h,width:d,value:p}=t,f=(0,g.A)(t,tg),{isFaded:m,isHighlighted:y}=Ro({seriesId:e,dataIndex:a}),_={seriesId:e,classes:n,color:o,isFaded:m,isHighlighted:y,dataIndex:a},v=(t=>{const{classes:e,seriesId:n,isFaded:i,isHighlighted:o}=t,r={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return(0,z.A)(r,Km,e)})(_),x=c?.barLabel??Jm,b=F({elementType:x,externalSlotProps:u?.barLabel,additionalProps:(0,r.A)({},f,{style:s,className:v.root}),ownerState:_}),{ownerState:w}=b,A=(0,g.A)(b,eg);if(!l)return null;const P=(t=>{const{barLabel:e,value:n,dataIndex:i,seriesId:o,height:r,width:s}=t;return"value"===e?n?n?.toString():null:e({seriesId:o,dataIndex:i,value:n},{bar:{height:r,width:s}})})({barLabel:l,value:p,dataIndex:a,seriesId:e,height:h,width:d});return P?(0,i.jsx)(x,(0,r.A)({},A,w,{children:P})):null}const ig=["bars","skipAnimation"],og=({layout:t,yOrigin:e,x:n,width:i,y:o,xOrigin:s,height:a})=>(0,r.A)({},"vertical"===t?{y:e,x:n+i/2,height:0,width:i}:{y:o+a/2,x:s,height:a,width:0}),rg=({x:t,width:e,y:n,height:i})=>({x:t+e/2,y:n+i/2,height:i,width:e});function sg(e){const{bars:n,skipAnimation:o}=e,s=(0,g.A)(e,ig),a=fi(n,{keys:t=>`${t.seriesId}-${t.dataIndex}`,from:og,leave:null,enter:rg,update:rg,immediate:o});return(0,i.jsx)(t.Fragment,{children:a((t,{seriesId:e,dataIndex:n,color:o,value:a,width:l,height:c})=>(0,i.jsx)(ng,(0,r.A)({seriesId:e,dataIndex:n,value:a,color:o,width:l,height:c},s,{style:t})))})}const ag=(t,e)=>e===("x"===t?Po:ko)?`The first \`${t}Axis\``:`The ${t}-axis with id "${e}"`,lg=["skipAnimation","onItemClick","borderRadius","barLabel"],cg=({layout:t,yOrigin:e,x:n,width:i,y:o,xOrigin:s,height:a})=>(0,r.A)({},"vertical"===t?{y:e,x:n,height:0,width:i}:{y:o,x:s,height:a,width:0}),ug=({x:t,width:e,y:n,height:i})=>({y:n,x:t,height:i,width:e});function hg(e){const{completedData:n,masksData:o}=(()=>{const e=function(){const e=Cr();return t.useMemo(()=>e.bar,[e.bar])}()??{series:{},stackingGroups:[],seriesOrder:[]},n=j(),i=So(),{series:o,stackingGroups:r}=e,{xAxis:s,yAxis:a,xAxisIds:l,yAxisIds:c}=n,u=l[0],h=c[0],d={};return{completedData:r.flatMap(({ids:t},e)=>t.flatMap(t=>{const n=o[t].xAxisId??o[t].xAxisKey??u,l=o[t].yAxisId??o[t].yAxisKey??h,c=s[n],p=a[l],f="vertical"===o[t].layout;!function(t,e,n,i,o,r){const s=i[n],a=r[o],l=t?s:a,c=t?a:s,u=t?n:o,h=t?o:n,d=t?"x":"y",p=t?"y":"x";if(!hc(l))throw new Error(`MUI X: ${ag(d,u)} should be of type "band" to display the bar series of id "${e}".`);if(void 0===l.data)throw new Error(`MUI X: ${ag(d,u)} should have data property.`);if(hc(c)||dc(c))throw new Error(`MUI X: ${ag(p,h)} should be a continuous type to display the bar series of id "${e}".`)}(f,t,n,s,l,a);const m=f?c:p,g=c.scale,y=p.scale,_=Bu(o[t],s[n],a[l]),v=m.scale.bandwidth(),{barWidth:x,offset:b}=function({bandWidth:t,numberOfGroups:e,gapRatio:n}){if(0===n)return{barWidth:t/e,offset:0};const i=t/(e+(e-1)*n);return{barWidth:i,offset:n*i}}({bandWidth:v,numberOfGroups:r.length,gapRatio:m.barGapRatio}),w=e*(x+b),{stackedData:A}=o[t];return A.map((r,c)=>{const u=r.map(t=>f?y(t):g(t)),h=Math.round(Math.min(...u)),p=Math.round(Math.max(...u)),m=o[t].stack,v={seriesId:t,dataIndex:c,layout:o[t].layout,x:f?g(s[n].data?.[c])+w:h,y:f?h:y(a[l].data?.[c])+w,xOrigin:g(0),yOrigin:y(0),height:f?p-h:x,width:f?x:p-h,color:_(c),value:o[t].data[c],maskId:`${i}_${m||t}_${e}_${c}`};d[v.maskId]||(d[v.maskId]={id:v.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:v.layout,xOrigin:g(0),yOrigin:y(0),x:0,y:0});const b=d[v.maskId];return b.width="vertical"===v.layout?v.width:b.width+v.width,b.height="vertical"===v.layout?b.height+v.height:v.height,b.x=Math.min(0===b.x?1/0:b.x,v.x),b.y=Math.min(0===b.y?1/0:b.y,v.y),b.hasNegative=b.hasNegative||(v.value??0)<0,b.hasPositive=b.hasPositive||(v.value??0)>0,v})})),masksData:Object.values(d)}})(),{skipAnimation:s,onItemClick:a,borderRadius:l,barLabel:c}=e,u=(0,g.A)(e,lg),h=Sr(s),d=!l||l<=0,p=fi(n,{keys:t=>`${t.seriesId}-${t.dataIndex}`,from:cg,leave:cg,enter:ug,update:ug,immediate:h}),f=fi(d?[]:o,{keys:t=>t.id,from:cg,leave:cg,enter:ug,update:ug,immediate:h});return(0,i.jsxs)(t.Fragment,{children:[!d&&f((t,{id:e,hasPositive:n,hasNegative:o,layout:r})=>(0,i.jsx)(Gm,{maskId:e,borderRadius:l,hasNegative:o,hasPositive:n,layout:r,style:t})),p((t,{seriesId:e,dataIndex:n,color:o,maskId:s})=>{const l=(0,i.jsx)(Um,(0,r.A)({id:e,dataIndex:n,color:o},u,{onClick:a&&(t=>{a(t,{type:"bar",seriesId:e,dataIndex:n})}),style:t}));return d?l:(0,i.jsx)("g",{clipPath:`url(#${s})`,children:l})}),c&&(0,i.jsx)(sg,(0,r.A)({bars:n,skipAnimation:h,barLabel:c},u))]})}const dg=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","axisHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className"],pg=t.forwardRef(function(t,e){const n=m({props:t,name:"MuiBarChart"}),{chartContainerProps:o,barPlotProps:s,axisClickHandlerProps:a,gridProps:l,clipPathProps:c,clipPathGroupProps:u,overlayProps:h,chartsAxisProps:d,axisHighlightProps:p,legendProps:f,tooltipProps:y,children:_}=(t=>{const{xAxis:e,yAxis:n,series:i,width:o,height:s,margin:a,colors:l,dataset:c,sx:u,tooltip:h,onAxisClick:d,axisHighlight:p,legend:f,grid:m,topAxis:y,leftAxis:_,rightAxis:v,bottomAxis:x,children:b,slots:w,slotProps:A,skipAnimation:P,loading:k,layout:M,onItemClick:C,highlightedItem:I,onHighlightChange:T,borderRadius:L,barLabel:S,className:O}=t,j=(0,g.A)(t,dg),z=`${(0,Ao.A)()}-clip-path`,E="horizontal"===M||void 0===M&&i.some(t=>"horizontal"===t.layout),R={scaleType:"band",data:Array.from({length:Math.max(...i.map(t=>(t.data??c??[]).length))},(t,e)=>e)},N=(0,r.A)({},j,{series:i.map(t=>(0,r.A)({type:"bar"},t,{layout:E?"horizontal":"vertical"})),width:o,height:s,margin:a,colors:l,dataset:c,xAxis:e??(E?void 0:[(0,r.A)({id:Po},R)]),yAxis:n??(E?[(0,r.A)({id:ko},R)]:void 0),sx:u,highlightedItem:I,onHighlightChange:T,disableAxisListener:"axis"!==h?.trigger&&"none"===p?.x&&"none"===p?.y&&!d,className:O,skipAnimation:P});return{chartContainerProps:N,barPlotProps:{onItemClick:C,slots:w,slotProps:A,borderRadius:L,barLabel:S},axisClickHandlerProps:{onAxisClick:d},gridProps:{vertical:m?.vertical,horizontal:m?.horizontal},clipPathProps:{id:z},clipPathGroupProps:{clipPath:`url(#${z})`},overlayProps:{slots:w,slotProps:A,loading:k},chartsAxisProps:{topAxis:y,leftAxis:_,rightAxis:v,bottomAxis:x,slots:w,slotProps:A},axisHighlightProps:(0,r.A)({},E?{y:"band"}:{x:"band"},p),legendProps:(0,r.A)({},f,{slots:w,slotProps:A}),tooltipProps:(0,r.A)({},h,{slots:w,slotProps:A}),children:b}})(n);return(0,i.jsxs)(ah,(0,r.A)({ref:e},o,{children:[n.onAxisClick&&(0,i.jsx)(Uf,(0,r.A)({},a)),(0,i.jsx)(Hf,(0,r.A)({},l)),(0,i.jsxs)("g",(0,r.A)({},u,{children:[(0,i.jsx)(hg,(0,r.A)({},s)),(0,i.jsx)(Xf,(0,r.A)({},h)),(0,i.jsx)(If,(0,r.A)({},p))]})),(0,i.jsx)(ld,(0,r.A)({},d)),(0,i.jsx)(kf,(0,r.A)({},f)),!n.loading&&(0,i.jsx)(ff,(0,r.A)({},y)),(0,i.jsx)(Tf,(0,r.A)({},c)),_]}))}),fg=({series:t,categories:e,layout:n="vertical",xAxisLabel:o,yAxisLabel:r,width:s=600,height:a=400,loading:l=!1,margin:c,valueFormatter:u=im})=>{const h={data:e,scaleType:"band",label:"vertical"===n?o:r},d=[{label:"vertical"===n?r:o,valueFormatter:u}],p="vertical"===n?[h]:d,f="vertical"===n?d:[h];return(0,i.jsx)(pg,{series:t,xAxis:p,yAxis:f,layout:n,width:s,height:a,loading:l,margin:em(c),sx:om})};function mg(t){return t.innerRadius}function gg(t){return t.outerRadius}function yg(t){return t.startAngle}function _g(t){return t.endAngle}function vg(t){return t&&t.padAngle}function xg(t,e,n,i,o,r,s){var a=t-n,l=e-i,c=(s?r:-r)/Go(a*a+l*l),u=c*l,h=-c*a,d=t+u,p=e+h,f=n+u,m=i+h,g=(d+f)/2,y=(p+m)/2,_=f-d,v=m-p,x=_*_+v*v,b=o-r,w=d*m-f*p,A=(v<0?-1:1)*Go(Wo(0,b*b*x-w*w)),P=(w*v-_*A)/x,k=(-w*_-v*A)/x,M=(w*v+_*A)/x,C=(-w*_+v*A)/x,I=P-g,T=k-y,L=M-g,S=C-y;return I*I+T*T>L*L+S*S&&(P=M,k=C),{cx:P,cy:k,x01:-u,y01:-h,x11:P*(o/b-1),y11:k*(o/b-1)}}function bg(){var t=mg,e=gg,n=_(0),i=null,o=yg,r=_g,s=vg,a=null,l=C(c);function c(){var c,u,h,d=+t.apply(this,arguments),p=+e.apply(this,arguments),f=o.apply(this,arguments)-Xo,m=r.apply(this,arguments)-Xo,g=Zo(m-f),y=m>f;if(a||(a=c=l()),p<d&&(u=p,p=d,d=u),p>Ko)if(g>Qo-Ko)a.moveTo(p*Uo(f),p*qo(f)),a.arc(0,0,p,f,m,!y),d>Ko&&(a.moveTo(d*Uo(m),d*qo(m)),a.arc(0,0,d,m,f,y));else{var _,v,x=f,b=m,w=f,A=m,P=g,k=g,M=s.apply(this,arguments)/2,C=M>Ko&&(i?+i.apply(this,arguments):Go(d*d+p*p)),I=Vo(Zo(p-d)/2,+n.apply(this,arguments)),T=I,L=I;if(C>Ko){var S=Jo(C/d*qo(M)),O=Jo(C/p*qo(M));(P-=2*S)>Ko?(w+=S*=y?1:-1,A-=S):(P=0,w=A=(f+m)/2),(k-=2*O)>Ko?(x+=O*=y?1:-1,b-=O):(k=0,x=b=(f+m)/2)}var j=p*Uo(x),z=p*qo(x),E=d*Uo(A),R=d*qo(A);if(I>Ko){var N,$=p*Uo(b),B=p*qo(b),F=d*Uo(w),D=d*qo(w);if(g<Yo)if(N=function(t,e,n,i,o,r,s,a){var l=n-t,c=i-e,u=s-o,h=a-r,d=h*l-u*c;if(!(d*d<Ko))return[t+(d=(u*(e-r)-h*(t-o))/d)*l,e+d*c]}(j,z,F,D,$,B,E,R)){var Z=j-N[0],H=z-N[1],U=$-N[0],W=B-N[1],V=1/qo(((h=(Z*U+H*W)/(Go(Z*Z+H*H)*Go(U*U+W*W)))>1?0:h<-1?Yo:Math.acos(h))/2),q=Go(N[0]*N[0]+N[1]*N[1]);T=Vo(I,(d-q)/(V-1)),L=Vo(I,(p-q)/(V+1))}else T=L=0}k>Ko?L>Ko?(_=xg(F,D,j,z,p,L,y),v=xg($,B,E,R,p,L,y),a.moveTo(_.cx+_.x01,_.cy+_.y01),L<I?a.arc(_.cx,_.cy,L,Ho(_.y01,_.x01),Ho(v.y01,v.x01),!y):(a.arc(_.cx,_.cy,L,Ho(_.y01,_.x01),Ho(_.y11,_.x11),!y),a.arc(0,0,p,Ho(_.cy+_.y11,_.cx+_.x11),Ho(v.cy+v.y11,v.cx+v.x11),!y),a.arc(v.cx,v.cy,L,Ho(v.y11,v.x11),Ho(v.y01,v.x01),!y))):(a.moveTo(j,z),a.arc(0,0,p,x,b,!y)):a.moveTo(j,z),d>Ko&&P>Ko?T>Ko?(_=xg(E,R,$,B,d,-T,y),v=xg(j,z,F,D,d,-T,y),a.lineTo(_.cx+_.x01,_.cy+_.y01),T<I?a.arc(_.cx,_.cy,T,Ho(_.y01,_.x01),Ho(v.y01,v.x01),!y):(a.arc(_.cx,_.cy,T,Ho(_.y01,_.x01),Ho(_.y11,_.x11),!y),a.arc(0,0,d,Ho(_.cy+_.y11,_.cx+_.x11),Ho(v.cy+v.y11,v.cx+v.x11),y),a.arc(v.cx,v.cy,T,Ho(v.y11,v.x11),Ho(v.y01,v.x01),!y))):a.arc(0,0,d,A,w,y):a.lineTo(E,R)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+o.apply(this,arguments)+ +r.apply(this,arguments))/2-Yo/2;return[Uo(i)*n,qo(i)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:_(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:_(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:_(+t),c):n},c.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:_(+t),c):i},c.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:_(+t),c):o},c.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:_(+t),c):r},c.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:_(+t),c):s},c.context=function(t){return arguments.length?(a=null==t?null:t,c):a},c}Object.defineProperty(bg,"name",{value:"default",configurable:!0});const wg=["classes","color","cornerRadius","dataIndex","endAngle","id","innerRadius","isFaded","isHighlighted","onClick","outerRadius","paddingAngle","startAngle","highlightScope"];function Ag(t){return(0,D.Ay)("MuiPieArc",t)}(0,Z.A)("MuiPieArc",["root","highlighted","faded"]);const Pg=(0,K.Ay)(Ei.path,{name:"MuiPieArc",slot:"Root",overridesResolver:(t,e)=>e.arc})(({theme:t})=>({stroke:(t.vars||t).palette.background.paper,transition:"opacity 0.2s ease-in, fill 0.2s ease-in, filter 0.2s ease-in"}));function kg(t){const{classes:e,color:n,cornerRadius:o,dataIndex:s,endAngle:a,id:l,innerRadius:c,isFaded:u,isHighlighted:h,onClick:d,outerRadius:p,paddingAngle:f,startAngle:m}=t,y=(0,g.A)(t,wg),_={id:l,dataIndex:s,classes:e,color:n,isFaded:u,isHighlighted:h},v=(t=>{const{classes:e,id:n,isFaded:i,isHighlighted:o,dataIndex:r}=t,s={root:["root",`series-${n}`,`data-index-${r}`,o&&"highlighted",i&&"faded"]};return(0,z.A)(s,Ag,e)})(_),x=G();return(0,i.jsx)(Pg,(0,r.A)({d:xi([m,a,f,c,p,o],(t,e,n,i,o,r)=>bg().cornerRadius(r)({padAngle:n,startAngle:t,endAngle:e,innerRadius:i,outerRadius:o})),visibility:xi([m,a],(t,e)=>t===e?"hidden":"visible"),onClick:d,cursor:d?"pointer":"unset",ownerState:_,className:v.root,fill:_.color,opacity:_.isFaded?.3:1,filter:_.isHighlighted?"brightness(120%)":"none",strokeWidth:1,strokeLinejoin:"round"},y,x({type:"pie",seriesId:l,dataIndex:s})))}const Mg={keys:t=>t.id,from:({innerRadius:t,outerRadius:e,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:r,color:s,isFaded:a})=>({innerRadius:t,outerRadius:(t+e)/2,cornerRadius:n,startAngle:(i+o)/2,endAngle:(i+o)/2,paddingAngle:r,fill:s,opacity:a?.3:1}),leave:({innerRadius:t,startAngle:e,endAngle:n})=>({innerRadius:t,outerRadius:t,startAngle:(e+n)/2,endAngle:(e+n)/2}),enter:({innerRadius:t,outerRadius:e,startAngle:n,endAngle:i})=>({innerRadius:t,outerRadius:e,startAngle:n,endAngle:i}),update:({innerRadius:t,outerRadius:e,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:r,color:s,isFaded:a})=>({innerRadius:t,outerRadius:e,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:r,fill:s,opacity:a?.3:1}),config:{tension:120,friction:14,clamp:!0}},Cg={keys:t=>t.id,from:({innerRadius:t,outerRadius:e,arcLabelRadius:n,cornerRadius:i,startAngle:o,endAngle:r,paddingAngle:s})=>({innerRadius:t,outerRadius:(t+e)/2,cornerRadius:i,arcLabelRadius:n,startAngle:(o+r)/2,endAngle:(o+r)/2,paddingAngle:s,opacity:0}),leave:({innerRadius:t,startAngle:e,endAngle:n})=>({innerRadius:t,outerRadius:t,arcLabelRadius:t,startAngle:(e+n)/2,endAngle:(e+n)/2,opacity:0}),enter:({innerRadius:t,outerRadius:e,startAngle:n,endAngle:i,arcLabelRadius:o})=>({innerRadius:t,outerRadius:e,startAngle:n,endAngle:i,arcLabelRadius:o,opacity:1}),update:({innerRadius:t,outerRadius:e,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:r,arcLabelRadius:s})=>({innerRadius:t,outerRadius:e,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:r,arcLabelRadius:s,opacity:1}),config:{tension:120,friction:14,clamp:!0}};function Ig(e){const{id:n,data:i,faded:o,highlighted:s,paddingAngle:a=0,innerRadius:l=0,arcLabelRadius:c,outerRadius:u,cornerRadius:h=0}=e,{isFaded:d,isHighlighted:p}=q();return t.useMemo(()=>i.map((t,e)=>{const i={seriesId:n,dataIndex:e},f=p(i),m=!f&&d(i),g=(0,r.A)({additionalRadius:0},m&&o||f&&s||{}),y=Math.max(0,Math.PI*(g.paddingAngle??a)/180),_=Math.max(0,g.innerRadius??l),v=Math.max(0,g.outerRadius??u+g.additionalRadius),x=g.cornerRadius??h,b=g.arcLabelRadius??c??(_+v)/2;return(0,r.A)({},t,g,{isFaded:m,isHighlighted:f,paddingAngle:y,innerRadius:_,outerRadius:v,cornerRadius:x,arcLabelRadius:b})}),[h,l,u,a,c,i,o,s,d,p,n])}const Tg=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"];function Lg(t){const{slots:e,slotProps:n,innerRadius:o=0,outerRadius:s,cornerRadius:a=0,paddingAngle:l=0,id:c,highlighted:u,faded:h={additionalRadius:-5},data:d,onItemClick:p,skipAnimation:f}=t,m=(0,g.A)(t,Tg),y=fi(Ig({innerRadius:o,outerRadius:s,cornerRadius:a,paddingAngle:l,id:c,highlighted:u,faded:h,data:d}),(0,r.A)({},Mg,{immediate:f})),{highlightScope:_}=q();if(0===d.length)return null;const v=e?.pieArc??kg;return(0,i.jsx)("g",(0,r.A)({},m,{children:y(({startAngle:t,endAngle:e,paddingAngle:o,innerRadius:s,outerRadius:a,cornerRadius:l},u,h,d)=>(0,i.jsx)(v,(0,r.A)({startAngle:t,endAngle:e,paddingAngle:o,innerRadius:s,outerRadius:a,cornerRadius:l,id:c,color:u.color,dataIndex:d,highlightScope:_,isFaded:u.isFaded,isHighlighted:u.isHighlighted,onClick:p&&(t=>{p(t,{type:"pie",seriesId:c,dataIndex:d},u)})},n?.pieArc)))}))}const Sg=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function Og(t){return(0,D.Ay)("MuiPieArcLabel",t)}(0,Z.A)("MuiPieArcLabel",["root","highlighted","faded"]);const jg=(0,K.Ay)(Ei.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({fill:(t.vars||t).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none"})),zg=(t,e)=>(n,i,o,r,s)=>{if(!t)return 0;const[a,l]=bg().cornerRadius(s).centroid({padAngle:o,startAngle:n,endAngle:i,innerRadius:r,outerRadius:r});return"x"===e?a:l};function Eg(t){const{id:e,classes:n,color:o,startAngle:s,endAngle:a,paddingAngle:l,arcLabelRadius:c,cornerRadius:u,formattedArcLabel:h,isHighlighted:d,isFaded:p,style:f}=t,m=(0,g.A)(t,Sg),y=(t=>{const{classes:e,id:n,isFaded:i,isHighlighted:o}=t,r={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return(0,z.A)(r,Og,e)})({id:e,classes:n,color:o,isFaded:p,isHighlighted:d});return(0,i.jsx)(jg,(0,r.A)({className:y.root},m,{style:(0,r.A)({x:xi([s,a,l,c,u],zg(h,"x")),y:xi([s,a,l,c,u],zg(h,"y"))},f),children:h}))}const Rg=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],Ng=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],$g=180/Math.PI;function Bg(t,e,n){if(!t)return null;if((n.endAngle-n.startAngle)*$g<e)return null;switch(t){case"label":return Ku(n.label,"arc");case"value":return n.value?.toString();case"formattedValue":return n.formattedValue;default:return t((0,r.A)({},n,{label:Ku(n.label,"arc")}))}}function Fg(t){const{arcLabel:e,arcLabelMinAngle:n=0,arcLabelRadius:o,cornerRadius:s=0,data:a,faded:l={additionalRadius:-5},highlighted:c,id:u,innerRadius:h,outerRadius:d,paddingAngle:p=0,skipAnimation:f,slotProps:m,slots:y}=t,_=(0,g.A)(t,Rg),v=fi(Ig({innerRadius:h,outerRadius:d,arcLabelRadius:o,cornerRadius:s,paddingAngle:p,id:u,highlighted:c,faded:l,data:a}),(0,r.A)({},Cg,{immediate:f}));if(0===a.length)return null;const x=y?.pieArcLabel??Eg;return(0,i.jsx)("g",(0,r.A)({},_,{children:v((t,o)=>{let{startAngle:s,endAngle:a,paddingAngle:l,innerRadius:c,outerRadius:h,arcLabelRadius:d,cornerRadius:p}=t,f=(0,g.A)(t,Ng);return(0,i.jsx)(x,(0,r.A)({startAngle:s,endAngle:a,paddingAngle:l,innerRadius:c,outerRadius:h,arcLabelRadius:d,cornerRadius:p,style:f,id:u,color:o.color,isFaded:o.isFaded,isHighlighted:o.isHighlighted,formattedArcLabel:Bg(e,n,o)},m?.pieArcLabel))})}))}function Dg(t,e){if("number"==typeof t)return t;if("100%"===t)return e;if(t.endsWith("%")){const n=Number.parseFloat(t.slice(0,t.length-1));if(!Number.isNaN(n))return n*e/100}if(t.endsWith("px")){const e=Number.parseFloat(t.slice(0,t.length-2));if(!Number.isNaN(e))return e}throw new Error(`MUI X: Received an unknown value "${t}". It should be a number, or a string with a percentage value.`)}function Zg(t,e){const{height:n,width:i}=e,{cx:o,cy:r}=t,s=Math.min(i,n)/2;return{cx:Dg(o??"50%",i),cy:Dg(r??"50%",n),availableRadius:s}}function Hg(e){const{skipAnimation:n,slots:o,slotProps:r,onItemClick:s}=e,a=function(){const e=Cr();return t.useMemo(()=>e.pie,[e.pie])}(),{left:l,top:c,width:u,height:h}=t.useContext(Co),d=Sr(n);if(void 0===a)return null;const{series:p,seriesOrder:f}=a;return(0,i.jsxs)("g",{children:[f.map(t=>{const{innerRadius:e,outerRadius:n,cornerRadius:a,paddingAngle:f,data:m,cx:g,cy:y,highlighted:_,faded:v}=p[t],{cx:x,cy:b,availableRadius:w}=Zg({cx:g,cy:y},{width:u,height:h}),A=Dg(n??w,w),P=Dg(e??0,w);return(0,i.jsx)("g",{transform:`translate(${l+x}, ${c+b})`,children:(0,i.jsx)(Lg,{innerRadius:P,outerRadius:A,cornerRadius:a,paddingAngle:f,id:t,data:m,skipAnimation:d,highlighted:_,faded:v,onItemClick:s,slots:o,slotProps:r})},t)}),f.map(t=>{const{innerRadius:e,outerRadius:n,arcLabelRadius:s,cornerRadius:a,paddingAngle:f,arcLabel:m,arcLabelMinAngle:g,data:y,cx:_,cy:v}=p[t],{cx:x,cy:b,availableRadius:w}=Zg({cx:_,cy:v},{width:u,height:h}),A=Dg(n??w,w),P=Dg(e??0,w),k=void 0===s?(A+P)/2:Dg(s,w);return(0,i.jsx)("g",{transform:`translate(${l+x}, ${c+b})`,children:(0,i.jsx)(Fg,{innerRadius:P,outerRadius:A??w,arcLabelRadius:k,cornerRadius:a,paddingAngle:f,id:t,data:y,skipAnimation:d,arcLabel:m,arcLabelMinAngle:g,slots:o,slotProps:r})},t)})]})}const Ug=["xAxis","yAxis","series","width","height","margin","colors","sx","tooltip","axisHighlight","skipAnimation","legend","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className"],Wg={top:5,bottom:5,left:5,right:100},Vg={top:5,bottom:5,left:100,right:5},qg=t.forwardRef(function(t,e){const n=m({props:t,name:"MuiPieChart"}),{xAxis:o,yAxis:s,series:a,width:l,height:c,margin:u,colors:h,sx:d,tooltip:p={trigger:"item"},axisHighlight:f={x:"none",y:"none"},skipAnimation:y,legend:_,topAxis:v=null,leftAxis:x=null,rightAxis:b=null,bottomAxis:w=null,children:A,slots:P,slotProps:k,onItemClick:M,loading:C,highlightedItem:I,onHighlightChange:T,className:L}=n,S=(0,g.A)(n,Ug),O=ed(),j=(0,r.A)({},O?Vg:Wg,u),z=(0,r.A)({direction:"column",position:{vertical:"middle",horizontal:O?"left":"right"}},_);return(0,i.jsxs)(ah,(0,r.A)({},S,{ref:e,series:a.map(t=>(0,r.A)({type:"pie"},t)),width:l,height:c,margin:j,xAxis:o??[{id:Po,scaleType:"point",data:[...new Array(Math.max(0,...a.map(t=>t.data.length)))].map((t,e)=>e)}],yAxis:s,colors:h,sx:d,disableAxisListener:"axis"!==p?.trigger&&"none"===f?.x&&"none"===f?.y,highlightedItem:I,onHighlightChange:T,className:L,skipAnimation:y,children:[(0,i.jsx)(ld,{topAxis:v,leftAxis:x,rightAxis:b,bottomAxis:w,slots:P,slotProps:k}),(0,i.jsx)(Hg,{slots:P,slotProps:k,onItemClick:M}),(0,i.jsx)(Xf,{loading:C,slots:P,slotProps:k}),(0,i.jsx)(kf,(0,r.A)({},z,{slots:P,slotProps:k})),(0,i.jsx)(If,(0,r.A)({},f)),!C&&(0,i.jsx)(ff,(0,r.A)({},p,{slots:P,slotProps:k})),A]}))});var Gg=c(9071),Kg=c(3478);const Yg=(0,Z.A)("MuiBox",["root"]),Xg=(0,Kg.A)(),Qg=(0,Zr.createBox)({themeId:f.A,defaultTheme:Xg,defaultClassName:Yg.root,generateClassName:Gg.A.generate}),Jg=({data:t,width:e=400,height:n=400,innerRadius:o=60,outerRadius:r=120,paddingAngle:s=2,loading:a=!1,hideLegend:l=!1})=>(0,i.jsxs)(Qg,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:[(0,i.jsx)(qg,{series:[{data:t,innerRadius:o,outerRadius:r,paddingAngle:s}],width:e,height:n,loading:a,margin:{top:10,right:10,bottom:10,left:10},slotProps:{legend:{hidden:!0}}}),!l&&(0,i.jsx)(Qg,{sx:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"4px 16px",mt:1,px:1,maxWidth:e},children:t.map(t=>(0,i.jsxs)(Qg,{sx:{display:"flex",alignItems:"center",gap:.75,minWidth:0},children:[(0,i.jsx)(Qg,{sx:{width:12,height:12,borderRadius:"3px",backgroundColor:t.color,flexShrink:0}}),(0,i.jsx)(sf,{sx:{fontSize:12,lineHeight:1.3,color:"text.secondary"},children:t.label})]},t.id))})]});var ty=c(7423),ey=c(9582);const ny=(t,e)=>`${t>0?"+":""}${t}${e}`,iy=({title:t,value:e,unit:o,delta:r,deltaSuffix:s="%",status:a,icon:l,loading:c=!1})=>{const u=void 0===r?void 0:r>0?"success.main":r<0?"error.main":"text.secondary";return(0,i.jsx)(n.Card,{variant:"outlined",sx:{minWidth:200},children:(0,i.jsxs)(n.CardContent,{children:[(0,i.jsxs)(n.Box,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",children:[(0,i.jsx)(n.Typography,{variant:"body2",color:"text.secondary",children:t}),l&&(0,i.jsx)(n.Box,{color:"text.secondary",display:"flex",alignItems:"center",children:l})]}),(0,i.jsx)(n.Box,{mt:1,display:"flex",alignItems:"baseline",gap:.5,children:c?(0,i.jsx)(n.Skeleton,{width:80,height:40}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.Typography,{variant:"h4",component:"div",children:e}),o&&(0,i.jsx)(n.Typography,{variant:"body2",color:"text.secondary",children:o})]})}),(0,i.jsxs)(n.Box,{mt:1,display:"flex",alignItems:"center",gap:1,children:[void 0!==r&&!c&&(0,i.jsxs)(n.Box,{display:"flex",alignItems:"center",sx:{color:u},children:[r>0?(0,i.jsx)(ty.A,{fontSize:"small"}):r<0?(0,i.jsx)(ey.A,{fontSize:"small"}):null,(0,i.jsx)(n.Typography,{variant:"body2",component:"span",sx:{fontWeight:500},children:ny(r,s)})]}),a&&!c&&(0,i.jsx)(n.Chip,{label:a.label,size:"small",color:a.color??"default"})]})]})})},oy=86400,ry=7*oy,sy=30*oy,ay=365*oy,ly=(t,e=new Date)=>{const n=t instanceof Date?t:new Date(t),i=Math.round((e.getTime()-n.getTime())/1e3);return Number.isNaN(i)?"":i<0?"in the future":i<5?"just now":i<60?`${i} seconds ago`:i<120?"1 minute ago":i<3600?`${Math.floor(i/60)} minutes ago`:i<7200?"1 hour ago":i<oy?`${Math.floor(i/3600)} hours ago`:i<2*oy?"yesterday":i<ry?`${Math.floor(i/oy)} days ago`:i<2*ry?"1 week ago":i<sy?`${Math.floor(i/ry)} weeks ago`:i<5184e3?"1 month ago":i<ay?`${Math.floor(i/sy)} months ago`:i<2*ay?"1 year ago":`${Math.floor(i/ay)} years ago`},cy=({items:t,loading:e=!1,emptyMessage:o="No activity yet.",maxHeight:r,now:s})=>e?(0,i.jsx)(n.List,{dense:!0,sx:{maxHeight:r,overflowY:r?"auto":void 0},children:Array.from({length:3}).map((t,e)=>(0,i.jsxs)(n.ListItem,{alignItems:"flex-start",children:[(0,i.jsx)(n.ListItemAvatar,{children:(0,i.jsx)(n.Skeleton,{variant:"circular",width:40,height:40})}),(0,i.jsx)(n.ListItemText,{primary:(0,i.jsx)(n.Skeleton,{width:"60%"}),secondary:(0,i.jsx)(n.Skeleton,{width:"30%"})})]},e))}):0===t.length?(0,i.jsx)(n.Box,{p:2,children:(0,i.jsx)(n.Typography,{variant:"body2",color:"text.secondary",children:o})}):(0,i.jsx)(n.List,{dense:!0,sx:{maxHeight:r,overflowY:r?"auto":void 0},children:t.map(t=>(0,i.jsxs)(n.ListItem,{alignItems:"flex-start",children:[(0,i.jsx)(n.ListItemAvatar,{children:(0,i.jsx)(n.Avatar,{sx:{bgcolor:t.iconColor},children:t.icon})}),(0,i.jsx)(n.ListItemText,{primary:t.description,secondary:ly(t.timestamp,s)})]},t.id))});var uy=c(1386);const hy=({rows:t,columns:o,loading:r=!1,pageSize:s=10,pageSizeOptions:a=[5,10,25,30,50],initialSort:l,height:c=400,density:u="standard",checkboxSelection:h=!1,disablePagination:d=!1,onRowClick:p})=>{const[f,m]=e().useState({page:0,pageSize:s});return(0,i.jsx)(n.Box,{sx:{height:c,width:"100%"},children:(0,i.jsx)(uy.DataGrid,{rows:t,columns:o,loading:r,density:u,checkboxSelection:h,initialState:{sorting:l?{sortModel:l}:void 0},paginationModel:d?void 0:f,onPaginationModelChange:d?void 0:m,pageSizeOptions:a,hideFooterPagination:d,onRowClick:p?t=>p(t.row):void 0,disableRowSelectionOnClick:!0})})};function dy(t,e){return Object.freeze({...t,...e})}const py=(0,t.createContext)(null),fy=py.Provider;function my(){const e=(0,t.useContext)(py);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}var gy=c(3481),yy=c.n(gy);function _y(){return _y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_y.apply(this,arguments)}function vy({bounds:e,boundsOptions:n,center:i,children:o,className:r,id:s,placeholder:a,style:l,whenReady:c,zoom:u,...h},d){const[p]=(0,t.useState)({className:r,id:s,style:l}),[f,m]=(0,t.useState)(null);(0,t.useImperativeHandle)(d,()=>f?.map??null,[f]);const g=(0,t.useCallback)(t=>{if(null!==t&&null===f){const o=new gy.Map(t,h);null!=i&&null!=u?o.setView(i,u):null!=e&&o.fitBounds(e,n),null!=c&&o.whenReady(c),m(function(t){return Object.freeze({__version:1,map:t})}(o))}},[]);(0,t.useEffect)(()=>()=>{f?.map.remove()},[f]);const y=f?t.createElement(fy,{value:f},o):a??null;return t.createElement("div",_y({},p,{ref:g}),y)}const xy=(0,t.forwardRef)(vy);function by(e){function n(n,i){const{instance:o,context:r}=e(n).current;return(0,t.useImperativeHandle)(i,()=>o),null==n.children?null:t.createElement(fy,{value:r},n.children)}return(0,t.forwardRef)(n)}function wy(t,e,n){return Object.freeze({instance:t,context:e,container:n})}function Ay(e,n){return null==n?function(n,i){const o=(0,t.useRef)();return o.current||(o.current=e(n,i)),o}:function(i,o){const r=(0,t.useRef)();r.current||(r.current=e(i,o));const s=(0,t.useRef)(i),{instance:a}=r.current;return(0,t.useEffect)(function(){s.current!==i&&(n(a,i,s.current),s.current=i)},[a,i,o]),r}}function Py(e,n){const i=(0,t.useRef)(n);(0,t.useEffect)(function(){n!==i.current&&null!=e.attributionControl&&(null!=i.current&&e.attributionControl.removeAttribution(i.current),null!=n&&e.attributionControl.addAttribution(n)),i.current=n},[e,n])}function ky(e,n){const i=(0,t.useRef)();(0,t.useEffect)(function(){return null!=n&&e.instance.on(n),i.current=n,function(){null!=i.current&&e.instance.off(i.current),i.current=null}},[e,n])}function My(t,e){const n=t.pane??e.pane;return n?{...t,pane:n}:t}function Cy(e,n){(0,t.useEffect)(function(){return(n.layerContainer??n.map).addLayer(e.instance),function(){n.layerContainer?.removeLayer(e.instance),n.map.removeLayer(e.instance)}},[n,e])}function Iy(t){return function(e){const n=my(),i=t(My(e,n),n);return Py(n.map,e.attribution),ky(i.current,e.eventHandlers),Cy(i.current,n),i}}const Ty=(Ly=function({url:t,...e},n){return wy(new gy.TileLayer(t,My(e,n)),n)},function(e){function n(n,i){const{instance:o}=e(n).current;return(0,t.useImperativeHandle)(i,()=>o),null}return(0,t.forwardRef)(n)}(Iy(Ay(Ly,function(t,e,n){!function(t,e,n){const{opacity:i,zIndex:o}=e;null!=i&&i!==n.opacity&&t.setOpacity(i),null!=o&&o!==n.zIndex&&t.setZIndex(o)}(t,e,n);const{url:i}=e;null!=i&&i!==n.url&&t.setUrl(i)}))));var Ly;const Sy=by((zy=Ay(function({center:t,children:e,...n},i){const o=new gy.CircleMarker(t,n);return wy(o,dy(i,{overlayContainer:o}))},function(t,e,n){e.center!==n.center&&t.setLatLng(e.center),null!=e.radius&&e.radius!==n.radius&&t.setRadius(e.radius)}),function(e){const n=my(),i=zy(My(e,n),n);return ky(i.current,e.eventHandlers),Cy(i.current,n),function(e,n){const i=(0,t.useRef)();(0,t.useEffect)(function(){if(n.pathOptions!==i.current){const t=n.pathOptions??{};e.instance.setStyle(t),i.current=t}},[e,n])}(i.current,e),i})),Oy=function(){const e=function(t,e){return function(n,i){const o=my(),r=t(My(n,o),o);return Py(o.map,n.attribution),ky(r.current,n.eventHandlers),e(r.current,o,n,i),r}}(Ay(function(t,e){return wy(new gy.Popup(t,e.overlayContainer),e)}),function(e,n,{position:i},o){(0,t.useEffect)(function(){const{instance:t}=e;function r(e){e.popup===t&&(t.update(),o(!0))}function s(e){e.popup===t&&o(!1)}return n.map.on({popupopen:r,popupclose:s}),null==n.overlayContainer?(null!=i&&t.setLatLng(i),t.openOn(n.map)):n.overlayContainer.bindPopup(t),function(){n.map.off({popupopen:r,popupclose:s}),n.overlayContainer?.unbindPopup(),n.map.removeLayer(t)}},[e,n,o,i])});return function(e){function n(n,i){const[o,r]=(0,t.useState)(!1),{instance:s}=e(n,r).current;(0,t.useImperativeHandle)(i,()=>s),(0,t.useEffect)(function(){o&&s.update()},[s,o,n.children]);const a=s._contentNode;return a?(0,bi.createPortal)(n.children,a):null}return(0,t.forwardRef)(n)}(e)}(),jy=by(Iy(Ay(function({position:t,...e},n){const i=new gy.Marker(t,e);return wy(i,dy(n,{overlayContainer:i}))},function(t,e,n){e.position!==n.position&&t.setLatLng(e.position),null!=e.icon&&e.icon!==n.icon&&t.setIcon(e.icon),null!=e.zIndexOffset&&e.zIndexOffset!==n.zIndexOffset&&t.setZIndexOffset(e.zIndexOffset),null!=e.opacity&&e.opacity!==n.opacity&&t.setOpacity(e.opacity),null!=t.dragging&&e.draggable!==n.draggable&&(!0===e.draggable?t.dragging.enable():t.dragging.disable())})));var zy,Ey=c(5072),Ry=c.n(Ey),Ny=c(7825),$y=c.n(Ny),By=c(7659),Fy=c.n(By),Dy=c(5056),Zy=c.n(Dy),Hy=c(540),Uy=c.n(Hy),Wy=c(1113),Vy=c.n(Wy),qy=c(1081),Gy={};Gy.styleTagTransform=Vy(),Gy.setAttributes=Zy(),Gy.insert=Fy().bind(null,"head"),Gy.domAPI=$y(),Gy.insertStyleElement=Uy(),Ry()(qy.A,Gy),qy.A&&qy.A.locals&&qy.A.locals;const Ky=yy().icon({iconUrl:"https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png",iconRetinaUrl:"https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon-2x.png",shadowUrl:"https://unpkg.com/leaflet@1.9.4/dist/images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]});yy().Marker.prototype.options.icon=Ky;const Yy=({points:t,enabled:n})=>{const i=my().map;return e().useEffect(()=>{if(!n||0===t.length)return;const e=t.map(t=>[t.lat,t.lng]);i.fitBounds(e,{padding:[40,40]})},[t,n,i]),null},Xy=({points:t,center:e,zoom:o=5,height:r=500,width:s="100%",variant:a="marker",fitBounds:l=!0,tileUrl:c="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",tileAttribution:u='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',loading:h=!1})=>{const d=e??(t.length>0?[t[0].lat,t[0].lng]:[20.5937,78.9629]);return(0,i.jsxs)(n.Box,{sx:{position:"relative",height:r,width:s,"& .leaflet-container":{height:"100%",width:"100%"}},children:[(0,i.jsxs)(xy,{center:d,zoom:o,scrollWheelZoom:!0,children:[(0,i.jsx)(Ty,{url:c,attribution:u}),(0,i.jsx)(Yy,{points:t,enabled:l}),t.map(t=>"circle"===a?(0,i.jsx)(Sy,{center:[t.lat,t.lng],radius:8,pathOptions:{color:t.color??"#1976d2",fillColor:t.color??"#1976d2",fillOpacity:.7},children:(t.label||t.description)&&(0,i.jsxs)(Oy,{children:[t.label&&(0,i.jsx)("strong",{children:t.label}),t.description&&(0,i.jsx)(n.Box,{mt:t.label?.5:0,children:t.description})]})},t.id):(0,i.jsx)(jy,{position:[t.lat,t.lng],children:(t.label||t.description)&&(0,i.jsxs)(Oy,{children:[t.label&&(0,i.jsx)("strong",{children:t.label}),t.description&&(0,i.jsx)(n.Box,{mt:t.label?.5:0,children:t.description})]})},t.id))]}),h&&(0,i.jsx)(n.Box,{sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"rgba(255,255,255,0.6)",zIndex:500},children:(0,i.jsx)(n.CircularProgress,{})})]})},Qy=({series:t,xAxisData:e,xAxisLabel:n,yAxisLabel:o,width:r=600,height:s=400,loading:a=!1,showMarks:l=!1,margin:c,valueFormatter:u=im})=>{const h=e?[{data:e,scaleType:"point",label:n}]:n?[{label:n}]:void 0,d=[{label:o,valueFormatter:u}],p=t.map(t=>({...t,area:!0,showMark:l}));return(0,i.jsx)(Jf,{series:p,xAxis:h,yAxis:d,width:r,height:s,loading:a,margin:em(c),sx:om})}})(),u})());
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("@mui/material"),require("@emotion/react"),require("@emotion/styled"),require("react-dom"),require("@mui/system"),require("@mui/x-data-grid")):"function"==typeof define&&define.amd?define([,,,,,,],e):"object"==typeof exports?exports.reactlib=e(require("react"),require("@mui/material"),require("@emotion/react"),require("@emotion/styled"),require("react-dom"),require("@mui/system"),require("@mui/x-data-grid")):t.reactlib=e(t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0])}(this,(t,e,n,i,o,r,s)=>(()=>{var a={9582(t,e,n){"use strict";var i=n(4994);e.A=void 0;var o=i(n(2032)),r=n(4848);e.A=(0,o.default)((0,r.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward")},7423(t,e,n){"use strict";var i=n(4994);e.A=void 0;var o=i(n(2032)),r=n(4848);e.A=(0,o.default)((0,r.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward")},2032(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i.createSvgIcon}});var i=n(8382)},5607(t,e,n){"use strict";n.d(e,{b:()=>s});var i=n(690),o=n(7379);n(4848);const r=i.createContext(void 0);function s(t){return function({props:t,name:e}){return function(t){const{theme:e,name:n,props:i}=t;if(!e||!e.components||!e.components[n])return i;const r=e.components[n];return r.defaultProps?(0,o.A)(r.defaultProps,i):r.styleOverrides||r.variants?i:(0,o.A)(r,i)}({props:t,name:e,theme:{components:i.useContext(r)}})}(t)}},3478(t,e,n){"use strict";n.d(e,{A:()=>ct});var i=n(8168),o=n(8587),r=n(9453),s=n(1317),a=n(4188),l=n(3571),c=n(8749),u=n(771);const h={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p="#f3e5f5",f="#ce93d8",m="#ba68c8",g="#ab47bc",y="#9c27b0",_="#7b1fa2",v="#e57373",x="#ef5350",b="#f44336",w="#d32f2f",A="#c62828",P="#ffb74d",k="#ffa726",M="#ff9800",C="#f57c00",I="#e65100",T="#e3f2fd",L="#90caf9",S="#42a5f5",O="#1976d2",j="#1565c0",z="#4fc3f7",E="#29b6f6",R="#03a9f4",N="#0288d1",$="#01579b",B="#81c784",F="#66bb6a",D="#4caf50",Z="#388e3c",H="#2e7d32",U="#1b5e20",W=["mode","contrastThreshold","tonalOffset"],V={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:h.white,default:h.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},q={text:{primary:h.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:h.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function G(t,e,n,i){const o=i.light||i,r=i.dark||1.5*i;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:"light"===e?t.light=(0,u.a)(t.main,o):"dark"===e&&(t.dark=(0,u.e$)(t.main,r)))}const K=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],Y={textTransform:"uppercase"},X='"Roboto", "Helvetica", "Arial", sans-serif';function Q(t,e){const n="function"==typeof e?e(t):e,{fontFamily:r=X,fontSize:a=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:h=700,htmlFontSize:d=16,allVariants:p,pxToRem:f}=n,m=(0,o.A)(n,K),g=a/14,y=f||(t=>t/d*g+"rem"),_=(t,e,n,o,s)=>{return(0,i.A)({fontFamily:r,fontWeight:t,fontSize:y(e),lineHeight:n},r===X?{letterSpacing:(a=o/e,Math.round(1e5*a)/1e5+"em")}:{},s,p);var a},v={h1:_(l,96,1.167,-1.5),h2:_(l,60,1.2,-.5),h3:_(c,48,1.167,0),h4:_(c,34,1.235,.25),h5:_(c,24,1.334,0),h6:_(u,20,1.6,.15),subtitle1:_(c,16,1.75,.15),subtitle2:_(u,14,1.57,.1),body1:_(c,16,1.5,.15),body2:_(c,14,1.43,.15),button:_(u,14,1.75,.4,Y),caption:_(c,12,1.66,.4),overline:_(c,12,2.66,1,Y),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,s.A)((0,i.A)({htmlFontSize:d,pxToRem:y,fontFamily:r,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:h},v),m,{clone:!1})}function J(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,0.2)`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,0.14)`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,0.12)`].join(",")}const tt=["none",J(0,2,1,-1,0,1,1,0,0,1,3,0),J(0,3,1,-2,0,2,2,0,0,1,5,0),J(0,3,3,-2,0,3,4,0,0,1,8,0),J(0,2,4,-1,0,4,5,0,0,1,10,0),J(0,3,5,-1,0,5,8,0,0,1,14,0),J(0,3,5,-1,0,6,10,0,0,1,18,0),J(0,4,5,-2,0,7,10,1,0,2,16,1),J(0,5,5,-3,0,8,10,1,0,3,14,2),J(0,5,6,-3,0,9,12,1,0,3,16,2),J(0,6,6,-3,0,10,14,1,0,4,18,3),J(0,6,7,-4,0,11,15,1,0,4,20,3),J(0,7,8,-4,0,12,17,2,0,5,22,4),J(0,7,8,-4,0,13,19,2,0,5,24,4),J(0,7,9,-4,0,14,21,2,0,5,26,4),J(0,8,9,-5,0,15,22,2,0,6,28,5),J(0,8,10,-5,0,16,24,2,0,6,30,5),J(0,8,11,-5,0,17,26,2,0,6,32,5),J(0,9,11,-5,0,18,28,2,0,7,34,6),J(0,9,12,-6,0,19,29,2,0,7,36,6),J(0,10,13,-6,0,20,31,3,0,8,38,7),J(0,10,13,-6,0,21,33,3,0,8,40,7),J(0,10,14,-6,0,22,35,3,0,8,42,7),J(0,11,14,-7,0,23,36,3,0,9,44,8),J(0,11,15,-7,0,24,38,3,0,9,46,8)],et=["duration","easing","delay"],nt={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},it={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ot(t){return`${Math.round(t)}ms`}function rt(t){if(!t)return 0;const e=t/36;return Math.round(10*(4+15*e**.25+e/5))}function st(t){const e=(0,i.A)({},nt,t.easing),n=(0,i.A)({},it,t.duration);return(0,i.A)({getAutoHeightDuration:rt,create:(t=["all"],i={})=>{const{duration:r=n.standard,easing:s=e.easeInOut,delay:a=0}=i;return(0,o.A)(i,et),(Array.isArray(t)?t:[t]).map(t=>`${t} ${"string"==typeof r?r:ot(r)} ${s} ${"string"==typeof a?a:ot(a)}`).join(",")}},t,{easing:e,duration:n})}const at={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},lt=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const ct=function(t={},...e){const{mixins:n={},palette:K={},transitions:Y={},typography:X={}}=t,J=(0,o.A)(t,lt);if(t.vars&&void 0===t.generateCssVars)throw new Error((0,r.A)(18));const et=function(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:a=.2}=t,l=(0,o.A)(t,W),c=t.primary||function(t="light"){return"dark"===t?{main:L,light:T,dark:S}:{main:O,light:S,dark:j}}(e),K=t.secondary||function(t="light"){return"dark"===t?{main:f,light:p,dark:g}:{main:y,light:m,dark:_}}(e),Y=t.error||function(t="light"){return"dark"===t?{main:b,light:v,dark:w}:{main:w,light:x,dark:A}}(e),X=t.info||function(t="light"){return"dark"===t?{main:E,light:z,dark:N}:{main:N,light:R,dark:$}}(e),Q=t.success||function(t="light"){return"dark"===t?{main:F,light:B,dark:Z}:{main:H,light:D,dark:U}}(e),J=t.warning||function(t="light"){return"dark"===t?{main:k,light:P,dark:C}:{main:"#ed6c02",light:M,dark:I}}(e);function tt(t){return(0,u.eM)(t,q.text.primary)>=n?q.text.primary:V.text.primary}const et=({color:t,name:e,mainShade:n=500,lightShade:o=300,darkShade:s=700})=>{if(!(t=(0,i.A)({},t)).main&&t[n]&&(t.main=t[n]),!t.hasOwnProperty("main"))throw new Error((0,r.A)(11,e?` (${e})`:"",n));if("string"!=typeof t.main)throw new Error((0,r.A)(12,e?` (${e})`:"",JSON.stringify(t.main)));return G(t,"light",o,a),G(t,"dark",s,a),t.contrastText||(t.contrastText=tt(t.main)),t},nt={dark:q,light:V};return(0,s.A)((0,i.A)({common:(0,i.A)({},h),mode:e,primary:et({color:c,name:"primary"}),secondary:et({color:K,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:et({color:Y,name:"error"}),warning:et({color:J,name:"warning"}),info:et({color:X,name:"info"}),success:et({color:Q,name:"success"}),grey:d,contrastThreshold:n,getContrastText:tt,augmentColor:et,tonalOffset:a},nt[e]),l)}(K),nt=(0,c.A)(t);let it=(0,s.A)(nt,{mixins:(ot=nt.breakpoints,rt=n,(0,i.A)({toolbar:{minHeight:56,[ot.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[ot.up("sm")]:{minHeight:64}}},rt)),palette:et,shadows:tt.slice(),typography:Q(et,X),transitions:st(Y),zIndex:(0,i.A)({},at)});var ot,rt;return it=(0,s.A)(it,J),it=e.reduce((t,e)=>(0,s.A)(t,e),it),it.unstable_sxConfig=(0,i.A)({},a.A,null==J?void 0:J.unstable_sxConfig),it.unstable_sx=function(t){return(0,l.A)({sx:t,theme:this})},it}},2765(t,e,n){"use strict";n.d(e,{A:()=>i});const i=(0,n(3478).A)()},8312(t,e,n){"use strict";n.d(e,{A:()=>i});const i="$$material"},9245(t,e,n){"use strict";n.d(e,{Ay:()=>s});var i=n(6461),o=n(2765),r=n(8312);const s=(0,i.Ay)({themeId:r.A,defaultTheme:o.A,rootShouldForwardProp:t=>function(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}(t)&&"classes"!==t})},8466(t,e,n){"use strict";n.d(e,{A:()=>i});const i=n(3967).A},8382(t,e,n){"use strict";n.r(e),n.d(e,{capitalize:()=>o.A,createChainedFunction:()=>r,createSvgIcon:()=>b,debounce:()=>w,deprecatedPropType:()=>A,isMuiElement:()=>P,ownerDocument:()=>k,ownerWindow:()=>M,requirePropFactory:()=>C,setRef:()=>I,unstable_ClassNameGenerator:()=>W,unstable_useEnhancedEffect:()=>L,unstable_useId:()=>S,unsupportedProp:()=>O,useControlled:()=>j,useEventCallback:()=>z,useForkRef:()=>E,useIsFocusVisible:()=>U});var i=n(9071),o=n(8466);const r=function(...t){return t.reduce((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)},()=>{})};var s=n(8168),a=n(690),l=n(8587),c=n(4164),u=n(5659),h=n(5607),d=n(9245),p=n(8413),f=n(1609);function m(t){return(0,f.Ay)("MuiSvgIcon",t)}(0,p.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var g=n(4848);const y=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],_=(0,d.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"inherit"!==n.color&&e[`color${(0,o.A)(n.color)}`],e[`fontSize${(0,o.A)(n.fontSize)}`]]}})(({theme:t,ownerState:e})=>{var n,i,o,r,s,a,l,c,u,h,d,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(i=n.create)?void 0:i.call(n,"fill",{duration:null==(o=t.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(r=t.typography)||null==(s=r.pxToRem)?void 0:s.call(r,20))||"1.25rem",medium:(null==(a=t.typography)||null==(l=a.pxToRem)?void 0:l.call(a,24))||"1.5rem",large:(null==(c=t.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[e.fontSize],color:null!=(h=null==(d=(t.vars||t).palette)||null==(d=d[e.color])?void 0:d.main)?h:{action:null==(p=(t.vars||t).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[e.color]}}),v=a.forwardRef(function(t,e){const n=(0,h.b)({props:t,name:"MuiSvgIcon"}),{children:i,className:r,color:d="inherit",component:p="svg",fontSize:f="medium",htmlColor:v,inheritViewBox:x=!1,titleAccess:b,viewBox:w="0 0 24 24"}=n,A=(0,l.A)(n,y),P=a.isValidElement(i)&&"svg"===i.type,k=(0,s.A)({},n,{color:d,component:p,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:x,viewBox:w,hasSvgAsChild:P}),M={};x||(M.viewBox=w);const C=(t=>{const{color:e,fontSize:n,classes:i}=t,r={root:["root","inherit"!==e&&`color${(0,o.A)(e)}`,`fontSize${(0,o.A)(n)}`]};return(0,u.A)(r,m,i)})(k);return(0,g.jsxs)(_,(0,s.A)({as:p,className:(0,c.A)(C.root,r),focusable:"false",color:v,"aria-hidden":!b||void 0,role:b?"img":void 0,ref:e},M,A,P&&i.props,{ownerState:k,children:[P?i.props.children:i,b?(0,g.jsx)("title",{children:b}):null]}))});v.muiName="SvgIcon";const x=v;function b(t,e){function n(n,i){return(0,g.jsx)(x,(0,s.A)({"data-testid":`${e}Icon`,ref:i},n,{children:t}))}return n.muiName=x.muiName,a.memo(a.forwardRef(n))}const w=function(t,e=166){let n;function i(...i){clearTimeout(n),n=setTimeout(()=>{t.apply(this,i)},e)}return i.clear=()=>{clearTimeout(n)},i},A=function(t,e){return()=>null},P=function(t,e){var n,i;return a.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(i=t.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)},k=n(2325).A,M=n(4877).A,C=function(t,e){return()=>null},I=n(7365).A;var T=n(1529);const L=T.A,S=n(4661).A,O=function(t,e,n,i,o){return null},j=n(2501).A,z=function(t){const e=a.useRef(t);return(0,T.A)(()=>{e.current=t}),a.useRef((...t)=>(0,e.current)(...t)).current},E=n(1523).A;class R{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new R}start(t,e){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,e()},t)}}let N=!0,$=!1;const B=new R,F={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function D(t){t.metaKey||t.altKey||t.ctrlKey||(N=!0)}function Z(){N=!1}function H(){"hidden"===this.visibilityState&&$&&(N=!0)}const U=function(){const t=a.useCallback(t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",D,!0),e.addEventListener("mousedown",Z,!0),e.addEventListener("pointerdown",Z,!0),e.addEventListener("touchstart",Z,!0),e.addEventListener("visibilitychange",H,!0))},[]),e=a.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!function(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(t){}return N||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!F[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&($=!0,B.start(100,()=>{$=!1}),e.current=!1,!0)},ref:t}},W={configure:t=>{i.A.configure(t)}}},2739(t,e,n){"use strict";n.r(e),n.d(e,{GlobalStyles:()=>bt,StyledEngineProvider:()=>xt,ThemeContext:()=>g.ThemeContext,css:()=>g.css,default:()=>wt,internal_processStyles:()=>At,internal_serializeStyles:()=>kt,keyframes:()=>g.keyframes});var i=n(4774),o=n.n(i),r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function s(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var a=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(t){return 45===t.charCodeAt(1)},u=function(t){return null!=t&&"boolean"!=typeof t},h=s(function(t){return c(t)?t:t.replace(a,"-$&").toLowerCase()}),d=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(l,function(t,e,n){return f={name:e,styles:n,next:f},e})}return 1===r[t]||c(t)||"number"!=typeof e||0===e?e:e+"px"};function p(t,e,n){if(null==n)return"";var i=n;if(void 0!==i.__emotion_styles)return i;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return f={name:o.name,styles:o.styles,next:f},o.name;var r=n;if(void 0!==r.styles){var s=r.next;if(void 0!==s)for(;void 0!==s;)f={name:s.name,styles:s.styles,next:f},s=s.next;return r.styles+";"}return function(t,e,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=p(t,e,n[o])+";";else for(var r in n){var s=n[r];if("object"!=typeof s){var a=s;null!=e&&void 0!==e[a]?i+=r+"{"+e[a]+"}":u(a)&&(i+=h(r)+":"+d(r,a)+";")}else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=e&&void 0!==e[s[0]]){var l=p(t,e,s);switch(r){case"animation":case"animationName":i+=h(r)+":"+l+";";break;default:i+=r+"{"+l+"}"}}else for(var c=0;c<s.length;c++)u(s[c])&&(i+=h(r)+":"+d(r,s[c])+";")}return i}(t,e,n);case"function":if(void 0!==t){var a=f,l=n(t);return f=a,p(t,e,l)}}var c=n;if(null==e)return c;var m=e[c];return void 0!==m?m:c}var f,m=/label:\s*([^\s;{]+)\s*(;|$)/g,g=n(476),y=n(690),_=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{n.insertRule(t,n.cssRules.length)}catch(t){}}else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}),this.tags=[],this.ctr=0},t}(),v=Math.abs,x=String.fromCharCode,b=Object.assign;function w(t){return t.trim()}function A(t,e,n){return t.replace(e,n)}function P(t,e){return t.indexOf(e)}function k(t,e){return 0|t.charCodeAt(e)}function M(t,e,n){return t.slice(e,n)}function C(t){return t.length}function I(t){return t.length}function T(t,e){return e.push(t),t}var L=1,S=1,O=0,j=0,z=0,E="";function R(t,e,n,i,o,r,s){return{value:t,root:e,parent:n,type:i,props:o,children:r,line:L,column:S,length:s,return:""}}function N(t,e){return b(R("",null,null,"",null,null,0),t,{length:-t.length},e)}function $(){return z=j>0?k(E,--j):0,S--,10===z&&(S=1,L--),z}function B(){return z=j<O?k(E,j++):0,S++,10===z&&(S=1,L++),z}function F(){return k(E,j)}function D(){return j}function Z(t,e){return M(E,t,e)}function H(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function U(t){return L=S=1,O=C(E=t),j=0,[]}function W(t){return E="",t}function V(t){return w(Z(j-1,K(91===t?t+2:40===t?t+1:t)))}function q(t){for(;(z=F())&&z<33;)B();return H(t)>2||H(z)>3?"":" "}function G(t,e){for(;--e&&B()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return Z(t,D()+(e<6&&32==F()&&32==B()))}function K(t){for(;B();)switch(z){case t:return j;case 34:case 39:34!==t&&39!==t&&K(z);break;case 40:41===t&&K(t);break;case 92:B()}return j}function Y(t,e){for(;B()&&t+z!==57&&(t+z!==84||47!==F()););return"/*"+Z(e,j-1)+"*"+x(47===t?t:B())}function X(t){for(;!H(F());)B();return Z(t,j)}var Q="-ms-",J="-moz-",tt="-webkit-",et="comm",nt="rule",it="decl",ot="@keyframes";function rt(t,e){for(var n="",i=I(t),o=0;o<i;o++)n+=e(t[o],o,t,e)||"";return n}function st(t,e,n,i){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case it:return t.return=t.return||t.value;case et:return"";case ot:return t.return=t.value+"{"+rt(t.children,i)+"}";case nt:t.value=t.props.join(",")}return C(n=rt(t.children,i))?t.return=t.value+"{"+n+"}":""}function at(t){return W(lt("",null,null,null,[""],t=U(t),0,[0],t))}function lt(t,e,n,i,o,r,s,a,l){for(var c=0,u=0,h=s,d=0,p=0,f=0,m=1,g=1,y=1,_=0,v="",b=o,w=r,M=i,I=v;g;)switch(f=_,_=B()){case 40:if(108!=f&&58==k(I,h-1)){-1!=P(I+=A(V(_),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:I+=V(_);break;case 9:case 10:case 13:case 32:I+=q(f);break;case 92:I+=G(D()-1,7);continue;case 47:switch(F()){case 42:case 47:T(ut(Y(B(),D()),e,n),l);break;default:I+="/"}break;case 123*m:a[c++]=C(I)*y;case 125*m:case 59:case 0:switch(_){case 0:case 125:g=0;case 59+u:-1==y&&(I=A(I,/\f/g,"")),p>0&&C(I)-h&&T(p>32?ht(I+";",i,n,h-1):ht(A(I," ","")+";",i,n,h-2),l);break;case 59:I+=";";default:if(T(M=ct(I,e,n,c,u,o,a,v,b=[],w=[],h),r),123===_)if(0===u)lt(I,e,M,M,b,r,h,a,w);else switch(99===d&&110===k(I,3)?100:d){case 100:case 108:case 109:case 115:lt(t,M,M,i&&T(ct(t,M,M,0,0,o,a,v,o,b=[],h),w),o,w,h,a,i?b:w);break;default:lt(I,M,M,M,[""],w,0,a,w)}}c=u=p=0,m=y=1,v=I="",h=s;break;case 58:h=1+C(I),p=f;default:if(m<1)if(123==_)--m;else if(125==_&&0==m++&&125==$())continue;switch(I+=x(_),_*m){case 38:y=u>0?1:(I+="\f",-1);break;case 44:a[c++]=(C(I)-1)*y,y=1;break;case 64:45===F()&&(I+=V(B())),d=F(),u=h=C(v=I+=X(D())),_++;break;case 45:45===f&&2==C(I)&&(m=0)}}return r}function ct(t,e,n,i,o,r,s,a,l,c,u){for(var h=o-1,d=0===o?r:[""],p=I(d),f=0,m=0,g=0;f<i;++f)for(var y=0,_=M(t,h+1,h=v(m=s[f])),x=t;y<p;++y)(x=w(m>0?d[y]+" "+_:A(_,/&\f/g,d[y])))&&(l[g++]=x);return R(t,e,n,0===o?nt:a,l,c,u)}function ut(t,e,n){return R(t,e,n,et,x(z),M(t,2,-2),0)}function ht(t,e,n,i){return R(t,e,n,it,M(t,0,i),M(t,i+1,-1),i)}var dt=function(t,e,n){for(var i=0,o=0;i=o,o=F(),38===i&&12===o&&(e[n]=1),!H(o);)B();return Z(t,j)},pt=new WeakMap,ft=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||pt.get(n))&&!i){pt.set(t,!0);for(var o=[],r=function(t,e){return W(function(t,e){var n=-1,i=44;do{switch(H(i)){case 0:38===i&&12===F()&&(e[n]=1),t[n]+=dt(j-1,e,n);break;case 2:t[n]+=V(i);break;case 4:if(44===i){t[++n]=58===F()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=x(i)}}while(i=B());return t}(U(t),e))}(e,o),s=n.props,a=0,l=0;a<r.length;a++)for(var c=0;c<s.length;c++,l++)t.props[l]=o[a]?r[a].replace(/&\f/g,s[c]):s[c]+" "+r[a]}}},mt=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function gt(t,e){switch(function(t,e){return 45^k(t,0)?(((e<<2^k(t,0))<<2^k(t,1))<<2^k(t,2))<<2^k(t,3):0}(t,e)){case 5103:return tt+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return tt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return tt+t+J+t+Q+t+t;case 6828:case 4268:return tt+t+Q+t+t;case 6165:return tt+t+Q+"flex-"+t+t;case 5187:return tt+t+A(t,/(\w+).+(:[^]+)/,tt+"box-$1$2"+Q+"flex-$1$2")+t;case 5443:return tt+t+Q+"flex-item-"+A(t,/flex-|-self/,"")+t;case 4675:return tt+t+Q+"flex-line-pack"+A(t,/align-content|flex-|-self/,"")+t;case 5548:return tt+t+Q+A(t,"shrink","negative")+t;case 5292:return tt+t+Q+A(t,"basis","preferred-size")+t;case 6060:return tt+"box-"+A(t,"-grow","")+tt+t+Q+A(t,"grow","positive")+t;case 4554:return tt+A(t,/([^-])(transform)/g,"$1"+tt+"$2")+t;case 6187:return A(A(A(t,/(zoom-|grab)/,tt+"$1"),/(image-set)/,tt+"$1"),t,"")+t;case 5495:case 3959:return A(t,/(image-set\([^]*)/,tt+"$1$`$1");case 4968:return A(A(t,/(.+:)(flex-)?(.*)/,tt+"box-pack:$3"+Q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tt+t+t;case 4095:case 3583:case 4068:case 2532:return A(t,/(.+)-inline(.+)/,tt+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(C(t)-1-e>6)switch(k(t,e+1)){case 109:if(45!==k(t,e+4))break;case 102:return A(t,/(.+:)(.+)-([^]+)/,"$1"+tt+"$2-$3$1"+J+(108==k(t,e+3)?"$3":"$2-$3"))+t;case 115:return~P(t,"stretch")?gt(A(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==k(t,e+1))break;case 6444:switch(k(t,C(t)-3-(~P(t,"!important")&&10))){case 107:return A(t,":",":"+tt)+t;case 101:return A(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tt+(45===k(t,14)?"inline-":"")+"box$3$1"+tt+"$2$3$1"+Q+"$2box$3")+t}break;case 5936:switch(k(t,e+11)){case 114:return tt+t+Q+A(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return tt+t+Q+A(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return tt+t+Q+A(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return tt+t+Q+t+t}return t}var yt=[function(t,e,n,i){if(t.length>-1&&!t.return)switch(t.type){case it:t.return=gt(t.value,t.length);break;case ot:return rt([N(t,{value:A(t.value,"@","@"+tt)})],i);case nt:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,function(e){switch(function(t){return(t=/(::plac\w+|:read-\w+)/.exec(t))?t[0]:t}(e)){case":read-only":case":read-write":return rt([N(t,{props:[A(e,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return rt([N(t,{props:[A(e,/:(plac\w+)/,":"+tt+"input-$1")]}),N(t,{props:[A(e,/:(plac\w+)/,":-moz-$1")]}),N(t,{props:[A(e,/:(plac\w+)/,Q+"input-$1")]})],i)}return""})}}],_t=n(4848);const vt=new Map;function xt(t){const{injectFirst:e,enableCssLayer:n,children:i}=t,o=y.useMemo(()=>{const t=`${e}-${n}`;if("object"==typeof document&&vt.has(t))return vt.get(t);const i=function(t,e){const n=function(t){var e=t.key;if("css"===e){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))})}var i,o,r=t.stylisPlugins||yt,s={},a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n<e.length;n++)s[e[n]]=!0;a.push(t)});var l,c,u,h,d=[st,(h=function(t){l.insert(t)},function(t){t.root||(t=t.return)&&h(t)})],p=(c=[ft,mt].concat(r,d),u=I(c),function(t,e,n,i){for(var o="",r=0;r<u;r++)o+=c[r](t,e,n,i)||"";return o});o=function(t,e,n,i){l=n,rt(at(t?t+"{"+e.styles+"}":e.styles),p),i&&(f.inserted[e.name]=!0)};var f={key:e,sheet:new _({key:e,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:o};return f.sheet.hydrate(a),f}({key:"css",prepend:t});if(e){const t=n.insert;n.insert=(...e)=>(e[1].styles.match(/^@layer\s+[^{]*$/)||(e[1].styles=`@layer mui {${e[1].styles}}`),t(...e))}return n}(e,n);return vt.set(t,i),i},[e,n]);return e||n?(0,_t.jsx)(g.CacheProvider,{value:o,children:i}):i}function bt(t){const{styles:e,defaultTheme:n={}}=t,i="function"==typeof e?t=>{return e(null==(i=t)||0===Object.keys(i).length?n:t);var i}:e;return(0,_t.jsx)(g.Global,{styles:i})}function wt(t,e){return o()(t,e)}const At=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))},Pt=[];function kt(t){return Pt[0]=t,function(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var i=!0,o="";f=void 0;var r=t[0];null==r||void 0===r.raw?(i=!1,o+=p(n,e,r)):o+=r[0];for(var s=1;s<t.length;s++)o+=p(n,e,t[s]),i&&(o+=r[s]);m.lastIndex=0;for(var a,l="";null!==(a=m.exec(o));)l+="-"+a[1];var c=function(t){for(var e,n=0,i=0,o=t.length;o>=4;++i,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&t.charCodeAt(i+2))<<16;case 2:n^=(255&t.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:f}}(Pt)}},771(t,e,n){"use strict";var i=n(4994);e.e$=u,e.eM=function(t,e){const n=c(t),i=c(e);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)},e.a=h;var o=i(n(8944)),r=i(n(7535));function s(t,e=0,n=1){return(0,r.default)(t,e,n)}function a(t){if(t.type)return t;if("#"===t.charAt(0))return a(function(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&1===n[0].length&&(n=n.map(t=>t+t)),n?`rgb${4===n.length?"a":""}(${n.map((t,e)=>e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3).join(", ")})`:""}(t));const e=t.indexOf("("),n=t.substring(0,e);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,o.default)(9,t));let i,r=t.substring(e+1,t.length-1);if("color"===n){if(r=r.split(" "),i=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,o.default)(10,i))}else r=r.split(",");return r=r.map(t=>parseFloat(t)),{type:n,values:r,colorSpace:i}}function l(t){const{type:e,colorSpace:n}=t;let{values:i}=t;return-1!==e.indexOf("rgb")?i=i.map((t,e)=>e<3?parseInt(t,10):t):-1!==e.indexOf("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),i=-1!==e.indexOf("color")?`${n} ${i.join(" ")}`:`${i.join(", ")}`,`${e}(${i})`}function c(t){let e="hsl"===(t=a(t)).type||"hsla"===t.type?a(function(t){t=a(t);const{values:e}=t,n=e[0],i=e[1]/100,o=e[2]/100,r=i*Math.min(o,1-o),s=(t,e=(t+n/30)%12)=>o-r*Math.max(Math.min(e-3,9-e,1),-1);let c="rgb";const u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===t.type&&(c+="a",u.push(e[3])),l({type:c,values:u})}(t)).values:t.values;return e=e.map(e=>("color"!==t.type&&(e/=255),e<=.03928?e/12.92:((e+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function u(t,e){if(t=a(t),e=s(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb")||-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return l(t)}function h(t,e){if(t=a(t),e=s(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return l(t)}},6461(t,e,n){"use strict";var i=n(4994);e.Ay=function(t={}){const{themeId:e,defaultTheme:n=g,rootShouldForwardProp:i=f,slotShouldForwardProp:l=f}=t,u=t=>(0,c.default)((0,o.default)({},t,{theme:_((0,o.default)({},t,{defaultTheme:n,themeId:e}))}));return u.__mui_systemSx=!0,(t,c={})=>{(0,s.internal_processStyles)(t,t=>t.filter(t=>!(null!=t&&t.__mui_systemSx)));const{name:h,slot:p,skipVariantsResolver:m,skipSx:g,overridesResolver:b=v(y(p))}=c,w=(0,r.default)(c,d),A=h&&h.startsWith("Mui")||p?"components":"custom",P=void 0!==m?m:p&&"Root"!==p&&"root"!==p||!1,k=g||!1;let M=f;"Root"===p||"root"===p?M=i:p?M=l:function(t){return"string"==typeof t&&t.charCodeAt(0)>96}(t)&&(M=void 0);const C=(0,s.default)(t,(0,o.default)({shouldForwardProp:M,label:void 0},w)),I=t=>"function"==typeof t&&t.__emotion_real!==t||(0,a.isPlainObject)(t)?i=>{const r=_({theme:i.theme,defaultTheme:n,themeId:e});return x(t,(0,o.default)({},i,{theme:r}),r.modularCssLayers?A:void 0)}:t,T=(i,...r)=>{let s=I(i);const a=r?r.map(I):[];h&&b&&a.push(t=>{const i=_((0,o.default)({},t,{defaultTheme:n,themeId:e}));if(!i.components||!i.components[h]||!i.components[h].styleOverrides)return null;const r=i.components[h].styleOverrides,s={};return Object.entries(r).forEach(([e,n])=>{s[e]=x(n,(0,o.default)({},t,{theme:i}),i.modularCssLayers?"theme":void 0)}),b(t,s)}),h&&!P&&a.push(t=>{var i;const r=_((0,o.default)({},t,{defaultTheme:n,themeId:e}));return x({variants:null==r||null==(i=r.components)||null==(i=i[h])?void 0:i.variants},(0,o.default)({},t,{theme:r}),r.modularCssLayers?"theme":void 0)}),k||a.push(u);const l=a.length-r.length;if(Array.isArray(i)&&l>0){const t=new Array(l).fill("");s=[...i,...t],s.raw=[...i.raw,...t]}const c=C(s,...a);return t.muiName&&(c.muiName=t.muiName),c};return C.withConfig&&(T.withConfig=C.withConfig),T}};var o=i(n(4634)),r=i(n(4893)),s=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if("default"!==r&&Object.prototype.hasOwnProperty.call(t,r)){var s=o?Object.getOwnPropertyDescriptor(t,r):null;s&&(s.get||s.set)?Object.defineProperty(i,r,s):i[r]=t[r]}return i.default=t,n&&n.set(t,i),i}(n(2739)),a=n(4239),l=(i(n(7149)),i(n(7320)),i(n(3142))),c=i(n(3857));const u=["ownerState"],h=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}function f(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}function m(t,e){return e&&t&&"object"==typeof t&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}const g=(0,l.default)(),y=t=>t?t.charAt(0).toLowerCase()+t.slice(1):t;function _({defaultTheme:t,theme:e,themeId:n}){return i=e,0===Object.keys(i).length?t:e[n]||e;var i}function v(t){return t?(e,n)=>n[t]:null}function x(t,e,n){let{ownerState:i}=e,a=(0,r.default)(e,u);const l="function"==typeof t?t((0,o.default)({ownerState:i},a)):t;if(Array.isArray(l))return l.flatMap(t=>x(t,(0,o.default)({ownerState:i},a),n));if(l&&"object"==typeof l&&Array.isArray(l.variants)){const{variants:t=[]}=l;let e=(0,r.default)(l,h);return t.forEach(t=>{let r=!0;if("function"==typeof t.props?r=t.props((0,o.default)({ownerState:i},a,i)):Object.keys(t.props).forEach(e=>{(null==i?void 0:i[e])!==t.props[e]&&a[e]!==t.props[e]&&(r=!1)}),r){Array.isArray(e)||(e=[e]);const r="function"==typeof t.style?t.style((0,o.default)({ownerState:i},a,i)):t.style;e.push(n?m((0,s.internal_serializeStyles)(r),n):r)}}),e}return n?m((0,s.internal_serializeStyles)(l),n):l}},9452(t,e,n){"use strict";n.d(e,{EU:()=>s,NI:()=>r,vf:()=>a,zu:()=>i});const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${i[t]}px)`};function r(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const t=r.breakpoints||o;return e.reduce((i,o,r)=>(i[t.up(t.keys[r])]=n(e[r]),i),{})}if("object"==typeof e){const t=r.breakpoints||o;return Object.keys(e).reduce((o,r)=>{if(-1!==Object.keys(t.values||i).indexOf(r))o[t.up(r)]=n(e[r],r);else{const t=r;o[t]=e[t]}return o},{})}return n(e)}function s(t={}){var e;return(null==(e=t.keys)?void 0:e.reduce((e,n)=>(e[t.up(n)]={},e),{}))||{}}function a(t,e){return t.reduce((t,e)=>{const n=t[e];return(!n||0===Object.keys(n).length)&&delete t[e],t},e)}},8336(t,e,n){"use strict";function i(t,e){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const i=n.getColorSchemeSelector(t).replace(/(\[[^\]]+\])/,"*:where($1)");return{[i]:e}}return n.palette.mode===t?e:{}}n.d(e,{A:()=>i})},8094(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(8587),o=n(8168);const r=["values","unit","step"];function s(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=t,a=(0,i.A)(t,r),l=(t=>{const e=Object.keys(t).map(e=>({key:e,val:t[e]}))||[];return e.sort((t,e)=>t.val-e.val),e.reduce((t,e)=>(0,o.A)({},t,{[e.key]:e.val}),{})})(e),c=Object.keys(l);function u(t){return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n})`}function h(t){return`@media (max-width:${("number"==typeof e[t]?e[t]:t)-s/100}${n})`}function d(t,i){const o=c.indexOf(i);return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n}) and (max-width:${(-1!==o&&"number"==typeof e[c[o]]?e[c[o]]:i)-s/100}${n})`}return(0,o.A)({keys:c,values:l,up:u,down:h,between:d,only:function(t){return c.indexOf(t)+1<c.length?d(t,c[c.indexOf(t)+1]):u(t)},not:function(t){const e=c.indexOf(t);return 0===e?u(c[1]):e===c.length-1?h(c[e]):d(t,c[c.indexOf(t)+1]).replace("@media","@media not all and")},unit:n},a)}},8749(t,e,n){"use strict";n.d(e,{A:()=>p});var i=n(8168),o=n(8587),r=n(1317),s=n(8094);const a={borderRadius:4};var l=n(8248),c=n(3571),u=n(4188),h=n(8336);const d=["breakpoints","palette","spacing","shape"],p=function(t={},...e){const{breakpoints:n={},palette:p={},spacing:f,shape:m={}}=t,g=(0,o.A)(t,d),y=(0,s.A)(n),_=function(t=8){if(t.mui)return t;const e=(0,l.LX)({spacing:t}),n=(...t)=>(0===t.length?[1]:t).map(t=>{const n=e(t);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(f);let v=(0,r.A)({breakpoints:y,direction:"ltr",components:{},palette:(0,i.A)({mode:"light"},p),spacing:_,shape:(0,i.A)({},a,m)},g);return v.applyStyles=h.A,v=e.reduce((t,e)=>(0,r.A)(t,e),v),v.unstable_sxConfig=(0,i.A)({},u.A,null==g?void 0:g.unstable_sxConfig),v.unstable_sx=function(t){return(0,c.A)({sx:t,theme:this})},v}},3142(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>i.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>r.A});var i=n(8749),o=n(8094),r=n(8336)},4620(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(1317);const o=function(t,e){return e?(0,i.A)(t,e,{clone:!1}):t}},8248(t,e,n){"use strict";n.d(e,{LX:()=>f,MA:()=>p,_W:()=>m,Lc:()=>y,Ms:()=>_});var i=n(9452),o=n(6481),r=n(4620);const s={m:"margin",p:"padding"},a={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(){const t={};return e=>(void 0===t[e]&&(t[e]=(t=>{if(t.length>2){if(!l[t])return[t];t=l[t]}const[e,n]=t.split(""),i=s[e],o=a[n]||"";return Array.isArray(o)?o.map(t=>i+t):[i+o]})(e)),t[e])}(),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],h=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...h];function p(t,e,n,i){var r;const s=null!=(r=(0,o.Yn)(t,e,!1))?r:n;return"number"==typeof s?t=>"string"==typeof t?t:s*t:Array.isArray(s)?t=>"string"==typeof t?t:s[t]:"function"==typeof s?s:()=>{}}function f(t){return p(t,"spacing",8)}function m(t,e){if("string"==typeof e||null==e)return e;const n=t(Math.abs(e));return e>=0?n:"number"==typeof n?-n:`-${n}`}function g(t,e){const n=f(t.theme);return Object.keys(t).map(o=>function(t,e,n,o){if(-1===e.indexOf(n))return null;const r=function(t,e){return n=>t.reduce((t,i)=>(t[i]=m(e,n),t),{})}(c(n),o),s=t[n];return(0,i.NI)(t,s,r)}(t,e,o,n)).reduce(r.A,{})}function y(t){return g(t,u)}function _(t){return g(t,h)}function v(t){return g(t,d)}y.propTypes={},y.filterProps=u,_.propTypes={},_.filterProps=h,v.propTypes={},v.filterProps=d},6481(t,e,n){"use strict";n.d(e,{Ay:()=>a,BO:()=>s,Yn:()=>r});var i=n(3967),o=n(9452);function r(t,e,n=!0){if(!e||"string"!=typeof e)return null;if(t&&t.vars&&n){const n=`vars.${e}`.split(".").reduce((t,e)=>t&&t[e]?t[e]:null,t);if(null!=n)return n}return e.split(".").reduce((t,e)=>t&&null!=t[e]?t[e]:null,t)}function s(t,e,n,i=n){let o;return o="function"==typeof t?t(n):Array.isArray(t)?t[n]||i:r(t,n)||i,e&&(o=e(o,i,t)),o}const a=function(t){const{prop:e,cssProperty:n=t.prop,themeKey:a,transform:l}=t,c=t=>{if(null==t[e])return null;const c=t[e],u=r(t.theme,a)||{};return(0,o.NI)(t,c,t=>{let o=s(u,l,t);return t===o&&"string"==typeof t&&(o=s(u,l,`${e}${"default"===t?"":(0,i.A)(t)}`,t)),!1===n?o:{[n]:o}})};return c.propTypes={},c.filterProps=[e],c}},4188(t,e,n){"use strict";n.d(e,{A:()=>z});var i=n(8248),o=n(6481),r=n(4620);const s=function(...t){const e=t.reduce((t,e)=>(e.filterProps.forEach(n=>{t[n]=e}),t),{}),n=t=>Object.keys(t).reduce((n,i)=>e[i]?(0,r.A)(n,e[i](t)):n,{});return n.propTypes={},n.filterProps=t.reduce((t,e)=>t.concat(e.filterProps),[]),n};var a=n(9452);function l(t){return"number"!=typeof t?t:`${t}px solid`}function c(t,e){return(0,o.Ay)({prop:t,themeKey:"borders",transform:e})}const u=c("border",l),h=c("borderTop",l),d=c("borderRight",l),p=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),y=c("borderRightColor"),_=c("borderBottomColor"),v=c("borderLeftColor"),x=c("outline",l),b=c("outlineColor"),w=t=>{if(void 0!==t.borderRadius&&null!==t.borderRadius){const e=(0,i.MA)(t.theme,"shape.borderRadius",4,"borderRadius"),n=t=>({borderRadius:(0,i._W)(e,t)});return(0,a.NI)(t,t.borderRadius,n)}return null};w.propTypes={},w.filterProps=["borderRadius"],s(u,h,d,p,f,m,g,y,_,v,w,x,b);const A=t=>{if(void 0!==t.gap&&null!==t.gap){const e=(0,i.MA)(t.theme,"spacing",8,"gap"),n=t=>({gap:(0,i._W)(e,t)});return(0,a.NI)(t,t.gap,n)}return null};A.propTypes={},A.filterProps=["gap"];const P=t=>{if(void 0!==t.columnGap&&null!==t.columnGap){const e=(0,i.MA)(t.theme,"spacing",8,"columnGap"),n=t=>({columnGap:(0,i._W)(e,t)});return(0,a.NI)(t,t.columnGap,n)}return null};P.propTypes={},P.filterProps=["columnGap"];const k=t=>{if(void 0!==t.rowGap&&null!==t.rowGap){const e=(0,i.MA)(t.theme,"spacing",8,"rowGap"),n=t=>({rowGap:(0,i._W)(e,t)});return(0,a.NI)(t,t.rowGap,n)}return null};function M(t,e){return"grey"===e?e:t}function C(t){return t<=1&&0!==t?100*t+"%":t}k.propTypes={},k.filterProps=["rowGap"],s(A,P,k,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"})),s((0,o.Ay)({prop:"color",themeKey:"palette",transform:M}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:M}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:M}));const I=(0,o.Ay)({prop:"width",transform:C}),T=t=>{if(void 0!==t.maxWidth&&null!==t.maxWidth){const e=e=>{var n,i;const o=(null==(n=t.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[e])||a.zu[e];return o?"px"!==(null==(i=t.theme)||null==(i=i.breakpoints)?void 0:i.unit)?{maxWidth:`${o}${t.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:C(e)}};return(0,a.NI)(t,t.maxWidth,e)}return null};T.filterProps=["maxWidth"];const L=(0,o.Ay)({prop:"minWidth",transform:C}),S=(0,o.Ay)({prop:"height",transform:C}),O=(0,o.Ay)({prop:"maxHeight",transform:C}),j=(0,o.Ay)({prop:"minHeight",transform:C}),z=((0,o.Ay)({prop:"size",cssProperty:"width",transform:C}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:C}),s(I,T,L,S,O,j,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w},color:{themeKey:"palette",transform:M},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:M},backgroundColor:{themeKey:"palette",transform:M},p:{style:i.Ms},pt:{style:i.Ms},pr:{style:i.Ms},pb:{style:i.Ms},pl:{style:i.Ms},px:{style:i.Ms},py:{style:i.Ms},padding:{style:i.Ms},paddingTop:{style:i.Ms},paddingRight:{style:i.Ms},paddingBottom:{style:i.Ms},paddingLeft:{style:i.Ms},paddingX:{style:i.Ms},paddingY:{style:i.Ms},paddingInline:{style:i.Ms},paddingInlineStart:{style:i.Ms},paddingInlineEnd:{style:i.Ms},paddingBlock:{style:i.Ms},paddingBlockStart:{style:i.Ms},paddingBlockEnd:{style:i.Ms},m:{style:i.Lc},mt:{style:i.Lc},mr:{style:i.Lc},mb:{style:i.Lc},ml:{style:i.Lc},mx:{style:i.Lc},my:{style:i.Lc},margin:{style:i.Lc},marginTop:{style:i.Lc},marginRight:{style:i.Lc},marginBottom:{style:i.Lc},marginLeft:{style:i.Lc},marginX:{style:i.Lc},marginY:{style:i.Lc},marginInline:{style:i.Lc},marginInlineStart:{style:i.Lc},marginInlineEnd:{style:i.Lc},marginBlock:{style:i.Lc},marginBlockStart:{style:i.Lc},marginBlockEnd:{style:i.Lc},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:A},rowGap:{style:k},columnGap:{style:P},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:C},maxWidth:{style:T},minWidth:{transform:C},height:{transform:C},maxHeight:{transform:C},minHeight:{transform:C},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},9599(t,e,n){"use strict";n.d(e,{A:()=>l});var i=n(8168),o=n(8587),r=n(1317),s=n(4188);const a=["sx"];function l(t){const{sx:e}=t,n=(0,o.A)(t,a),{systemProps:l,otherProps:c}=(t=>{var e,n;const i={systemProps:{},otherProps:{}},o=null!=(e=null==t||null==(n=t.theme)?void 0:n.unstable_sxConfig)?e:s.A;return Object.keys(t).forEach(e=>{o[e]?i.systemProps[e]=t[e]:i.otherProps[e]=t[e]}),i})(n);let u;return u=Array.isArray(e)?[l,...e]:"function"==typeof e?(...t)=>{const n=e(...t);return(0,r.Q)(n)?(0,i.A)({},l,n):l}:(0,i.A)({},l,e),(0,i.A)({},c,{sx:u})}},3857(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>i.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>i.k,unstable_defaultSxConfig:()=>r.A});var i=n(3571),o=n(9599),r=n(4188)},3571(t,e,n){"use strict";n.d(e,{A:()=>u,k:()=>l});var i=n(3967),o=n(4620),r=n(6481),s=n(9452),a=n(4188);function l(){function t(t,e,n,o){const a={[t]:e,theme:n},l=o[t];if(!l)return{[t]:e};const{cssProperty:c=t,themeKey:u,transform:h,style:d}=l;if(null==e)return null;if("typography"===u&&"inherit"===e)return{[t]:e};const p=(0,r.Yn)(n,u)||{};return d?d(a):(0,s.NI)(a,e,e=>{let n=(0,r.BO)(p,h,e);return e===n&&"string"==typeof e&&(n=(0,r.BO)(p,h,`${t}${"default"===e?"":(0,i.A)(e)}`,e)),!1===c?n:{[c]:n}})}return function e(n){var i;const{sx:r,theme:l={},nested:c}=n||{};if(!r)return null;const u=null!=(i=l.unstable_sxConfig)?i:a.A;function h(n){let i=n;if("function"==typeof n)i=n(l);else if("object"!=typeof n)return n;if(!i)return null;const r=(0,s.EU)(l.breakpoints),a=Object.keys(r);let h=r;return Object.keys(i).forEach(n=>{const r="function"==typeof(a=i[n])?a(l):a;var a;if(null!=r)if("object"==typeof r)if(u[n])h=(0,o.A)(h,t(n,r,l,u));else{const t=(0,s.NI)({theme:l},r,t=>({[n]:t}));!function(...t){const e=t.reduce((t,e)=>t.concat(Object.keys(e)),[]),n=new Set(e);return t.every(t=>n.size===Object.keys(t).length)}(t,r)?h=(0,o.A)(h,t):h[n]=e({sx:r,theme:l,nested:!0})}else h=(0,o.A)(h,t(n,r,l,u))}),!c&&l.modularCssLayers?{"@layer sx":(0,s.vf)(a,h)}:(0,s.vf)(a,h)}return Array.isArray(r)?r.map(h):h(r)}}const c=l();c.filterProps=["sx"];const u=c},2923(t,e,n){"use strict";e.A=void 0;var i=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=r(e);if(n&&n.has(t))return n.get(t);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var a=o?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(i,s,a):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}(n(690)),o=n(2739);function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}e.A=function(t=null){const e=i.useContext(o.ThemeContext);return e&&(n=e,0!==Object.keys(n).length)?e:t;var n}},9071(t,e,n){"use strict";n.d(e,{A:()=>o});const i=t=>t,o=(()=>{let t=i;return{configure(e){t=e},generate:e=>t(e),reset(){t=i}}})()},3967(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(9453);function o(t){if("string"!=typeof t)throw new Error((0,i.A)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},7149(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>i.A});var i=n(3967)},7535(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>i});const i=function(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}},5659(t,e,n){"use strict";function i(t,e,n=void 0){const i={};return Object.keys(t).forEach(o=>{i[o]=t[o].reduce((t,i)=>{if(i){const o=e(i);""!==o&&t.push(o),n&&n[i]&&t.push(n[i])}return t},[]).join(" ")}),i}n.d(e,{A:()=>i})},1317(t,e,n){"use strict";n.d(e,{A:()=>a,Q:()=>r});var i=n(8168),o=n(690);function r(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}function s(t){if(o.isValidElement(t)||!r(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=s(t[n])}),e}function a(t,e,n={clone:!0}){const l=n.clone?(0,i.A)({},t):t;return r(t)&&r(e)&&Object.keys(e).forEach(i=>{o.isValidElement(e[i])?l[i]=e[i]:r(e[i])&&Object.prototype.hasOwnProperty.call(t,i)&&r(t[i])?l[i]=a(t[i],e[i],n):n.clone?l[i]=r(e[i])?s(e[i]):e[i]:l[i]=e[i]}),l}},4239(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>i.A,isPlainObject:()=>i.Q});var i=n(1317)},9453(t,e,n){"use strict";function i(t){let e="https://mui.com/production-error/?code="+t;for(let t=1;t<arguments.length;t+=1)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified MUI error #"+t+"; visit "+e+" for the full message."}n.d(e,{A:()=>i})},8944(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>i.A});var i=n(9453)},1609(t,e,n){"use strict";n.d(e,{Ay:()=>r});var i=n(9071);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function r(t,e,n="Mui"){const r=o[e];return r?`${n}-${r}`:`${i.A.generate(t)}-${e}`}},8413(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(1609);function o(t,e,n="Mui"){const o={};return e.forEach(e=>{o[e]=(0,i.Ay)(t,e,n)}),o}},7320(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>l,getFunctionName:()=>r});var i=n(4405);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function r(t){const e=`${t}`.match(o);return e&&e[1]||""}function s(t,e=""){return t.displayName||t.name||r(t)||e}function a(t,e,n){const i=s(e);return t.displayName||(""!==i?`${n}(${i})`:n)}function l(t){if(null!=t){if("string"==typeof t)return t;if("function"==typeof t)return s(t,"Component");if("object"==typeof t)switch(t.$$typeof){case i.vM:return a(t,t.render,"ForwardRef");case i.lD:return a(t,t.type,"memo");default:return}}}},2325(t,e,n){"use strict";function i(t){return t&&t.ownerDocument||document}n.d(e,{A:()=>i})},4877(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(2325);function o(t){return(0,i.A)(t).defaultView||window}},7379(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(8168);function o(t,e){const n=(0,i.A)({},e);return Object.keys(t).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=(0,i.A)({},t[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const s=t[r]||{},a=e[r];n[r]={},a&&Object.keys(a)?s&&Object.keys(s)?(n[r]=(0,i.A)({},a),Object.keys(s).forEach(t=>{n[r][t]=o(s[t],a[t])})):n[r]=a:n[r]=s}else void 0===n[r]&&(n[r]=t[r])}),n}},7365(t,e,n){"use strict";function i(t,e){"function"==typeof t?t(e):t&&(t.current=e)}n.d(e,{A:()=>i})},2501(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(690);function o({controlled:t,default:e,name:n,state:o="value"}){const{current:r}=i.useRef(void 0!==t),[s,a]=i.useState(e);return[r?t:s,i.useCallback(t=>{r||a(t)},[])]}},1529(t,e,n){"use strict";n.d(e,{A:()=>o});var i=n(690);const o="undefined"!=typeof window?i.useLayoutEffect:i.useEffect},1523(t,e,n){"use strict";n.d(e,{A:()=>r});var i=n(690),o=n(7365);function r(...t){return i.useMemo(()=>t.every(t=>null==t)?null:e=>{t.forEach(t=>{(0,o.A)(t,e)})},t)}},4661(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(690);let o=0;const r=i["useId".toString()];function s(t){if(void 0!==r){const e=r();return null!=t?t:e}return function(t){const[e,n]=i.useState(t),r=t||e;return i.useEffect(()=>{null==e&&(o+=1,n(`mui-${o}`))},[e]),r}(t)}},1081(t,e,n){"use strict";n.d(e,{A:()=>g});var i=n(1601),o=n.n(i),r=n(6314),s=n.n(r),a=n(4417),l=n.n(a),c=new URL(n(3982),n.b),u=new URL(n(6426),n.b),h=new URL(n(9927),n.b),d=s()(o()),p=l()(c),f=l()(u),m=l()(h);d.push([t.id,`/* required styles */\n\n.leaflet-pane,\n.leaflet-tile,\n.leaflet-marker-icon,\n.leaflet-marker-shadow,\n.leaflet-tile-container,\n.leaflet-pane > svg,\n.leaflet-pane > canvas,\n.leaflet-zoom-box,\n.leaflet-image-layer,\n.leaflet-layer {\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\t}\n.leaflet-container {\n\toverflow: hidden;\n\t}\n.leaflet-tile,\n.leaflet-marker-icon,\n.leaflet-marker-shadow {\n\t-webkit-user-select: none;\n\t -moz-user-select: none;\n\t user-select: none;\n\t -webkit-user-drag: none;\n\t}\n/* Prevents IE11 from highlighting tiles in blue */\n.leaflet-tile::selection {\n\tbackground: transparent;\n}\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\n.leaflet-safari .leaflet-tile {\n\timage-rendering: -webkit-optimize-contrast;\n\t}\n/* hack that prevents hw layers "stretching" when loading new tiles */\n.leaflet-safari .leaflet-tile-container {\n\twidth: 1600px;\n\theight: 1600px;\n\t-webkit-transform-origin: 0 0;\n\t}\n.leaflet-marker-icon,\n.leaflet-marker-shadow {\n\tdisplay: block;\n\t}\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\n.leaflet-container .leaflet-overlay-pane svg {\n\tmax-width: none !important;\n\tmax-height: none !important;\n\t}\n.leaflet-container .leaflet-marker-pane img,\n.leaflet-container .leaflet-shadow-pane img,\n.leaflet-container .leaflet-tile-pane img,\n.leaflet-container img.leaflet-image-layer,\n.leaflet-container .leaflet-tile {\n\tmax-width: none !important;\n\tmax-height: none !important;\n\twidth: auto;\n\tpadding: 0;\n\t}\n\n.leaflet-container img.leaflet-tile {\n\t/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */\n\tmix-blend-mode: plus-lighter;\n}\n\n.leaflet-container.leaflet-touch-zoom {\n\t-ms-touch-action: pan-x pan-y;\n\ttouch-action: pan-x pan-y;\n\t}\n.leaflet-container.leaflet-touch-drag {\n\t-ms-touch-action: pinch-zoom;\n\t/* Fallback for FF which doesn't support pinch-zoom */\n\ttouch-action: none;\n\ttouch-action: pinch-zoom;\n}\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\n\t-ms-touch-action: none;\n\ttouch-action: none;\n}\n.leaflet-container {\n\t-webkit-tap-highlight-color: transparent;\n}\n.leaflet-container a {\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\n}\n.leaflet-tile {\n\tfilter: inherit;\n\tvisibility: hidden;\n\t}\n.leaflet-tile-loaded {\n\tvisibility: inherit;\n\t}\n.leaflet-zoom-box {\n\twidth: 0;\n\theight: 0;\n\t-moz-box-sizing: border-box;\n\t box-sizing: border-box;\n\tz-index: 800;\n\t}\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\n.leaflet-overlay-pane svg {\n\t-moz-user-select: none;\n\t}\n\n.leaflet-pane { z-index: 400; }\n\n.leaflet-tile-pane { z-index: 200; }\n.leaflet-overlay-pane { z-index: 400; }\n.leaflet-shadow-pane { z-index: 500; }\n.leaflet-marker-pane { z-index: 600; }\n.leaflet-tooltip-pane { z-index: 650; }\n.leaflet-popup-pane { z-index: 700; }\n\n.leaflet-map-pane canvas { z-index: 100; }\n.leaflet-map-pane svg { z-index: 200; }\n\n.leaflet-vml-shape {\n\twidth: 1px;\n\theight: 1px;\n\t}\n.lvml {\n\tbehavior: url(#default#VML);\n\tdisplay: inline-block;\n\tposition: absolute;\n\t}\n\n\n/* control positioning */\n\n.leaflet-control {\n\tposition: relative;\n\tz-index: 800;\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\n\tpointer-events: auto;\n\t}\n.leaflet-top,\n.leaflet-bottom {\n\tposition: absolute;\n\tz-index: 1000;\n\tpointer-events: none;\n\t}\n.leaflet-top {\n\ttop: 0;\n\t}\n.leaflet-right {\n\tright: 0;\n\t}\n.leaflet-bottom {\n\tbottom: 0;\n\t}\n.leaflet-left {\n\tleft: 0;\n\t}\n.leaflet-control {\n\tfloat: left;\n\tclear: both;\n\t}\n.leaflet-right .leaflet-control {\n\tfloat: right;\n\t}\n.leaflet-top .leaflet-control {\n\tmargin-top: 10px;\n\t}\n.leaflet-bottom .leaflet-control {\n\tmargin-bottom: 10px;\n\t}\n.leaflet-left .leaflet-control {\n\tmargin-left: 10px;\n\t}\n.leaflet-right .leaflet-control {\n\tmargin-right: 10px;\n\t}\n\n\n/* zoom and fade animations */\n\n.leaflet-fade-anim .leaflet-popup {\n\topacity: 0;\n\t-webkit-transition: opacity 0.2s linear;\n\t -moz-transition: opacity 0.2s linear;\n\t transition: opacity 0.2s linear;\n\t}\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\n\topacity: 1;\n\t}\n.leaflet-zoom-animated {\n\t-webkit-transform-origin: 0 0;\n\t -ms-transform-origin: 0 0;\n\t transform-origin: 0 0;\n\t}\nsvg.leaflet-zoom-animated {\n\twill-change: transform;\n}\n\n.leaflet-zoom-anim .leaflet-zoom-animated {\n\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\n\t -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\n\t transition: transform 0.25s cubic-bezier(0,0,0.25,1);\n\t}\n.leaflet-zoom-anim .leaflet-tile,\n.leaflet-pan-anim .leaflet-tile {\n\t-webkit-transition: none;\n\t -moz-transition: none;\n\t transition: none;\n\t}\n\n.leaflet-zoom-anim .leaflet-zoom-hide {\n\tvisibility: hidden;\n\t}\n\n\n/* cursors */\n\n.leaflet-interactive {\n\tcursor: pointer;\n\t}\n.leaflet-grab {\n\tcursor: -webkit-grab;\n\tcursor: -moz-grab;\n\tcursor: grab;\n\t}\n.leaflet-crosshair,\n.leaflet-crosshair .leaflet-interactive {\n\tcursor: crosshair;\n\t}\n.leaflet-popup-pane,\n.leaflet-control {\n\tcursor: auto;\n\t}\n.leaflet-dragging .leaflet-grab,\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\n.leaflet-dragging .leaflet-marker-draggable {\n\tcursor: move;\n\tcursor: -webkit-grabbing;\n\tcursor: -moz-grabbing;\n\tcursor: grabbing;\n\t}\n\n/* marker & overlays interactivity */\n.leaflet-marker-icon,\n.leaflet-marker-shadow,\n.leaflet-image-layer,\n.leaflet-pane > svg path,\n.leaflet-tile-container {\n\tpointer-events: none;\n\t}\n\n.leaflet-marker-icon.leaflet-interactive,\n.leaflet-image-layer.leaflet-interactive,\n.leaflet-pane > svg path.leaflet-interactive,\nsvg.leaflet-image-layer.leaflet-interactive path {\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\n\tpointer-events: auto;\n\t}\n\n/* visual tweaks */\n\n.leaflet-container {\n\tbackground: #ddd;\n\toutline-offset: 1px;\n\t}\n.leaflet-container a {\n\tcolor: #0078A8;\n\t}\n.leaflet-zoom-box {\n\tborder: 2px dotted #38f;\n\tbackground: rgba(255,255,255,0.5);\n\t}\n\n\n/* general typography */\n.leaflet-container {\n\tfont-family: "Helvetica Neue", Arial, Helvetica, sans-serif;\n\tfont-size: 12px;\n\tfont-size: 0.75rem;\n\tline-height: 1.5;\n\t}\n\n\n/* general toolbar styles */\n\n.leaflet-bar {\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\n\tborder-radius: 4px;\n\t}\n.leaflet-bar a {\n\tbackground-color: #fff;\n\tborder-bottom: 1px solid #ccc;\n\twidth: 26px;\n\theight: 26px;\n\tline-height: 26px;\n\tdisplay: block;\n\ttext-align: center;\n\ttext-decoration: none;\n\tcolor: black;\n\t}\n.leaflet-bar a,\n.leaflet-control-layers-toggle {\n\tbackground-position: 50% 50%;\n\tbackground-repeat: no-repeat;\n\tdisplay: block;\n\t}\n.leaflet-bar a:hover,\n.leaflet-bar a:focus {\n\tbackground-color: #f4f4f4;\n\t}\n.leaflet-bar a:first-child {\n\tborder-top-left-radius: 4px;\n\tborder-top-right-radius: 4px;\n\t}\n.leaflet-bar a:last-child {\n\tborder-bottom-left-radius: 4px;\n\tborder-bottom-right-radius: 4px;\n\tborder-bottom: none;\n\t}\n.leaflet-bar a.leaflet-disabled {\n\tcursor: default;\n\tbackground-color: #f4f4f4;\n\tcolor: #bbb;\n\t}\n\n.leaflet-touch .leaflet-bar a {\n\twidth: 30px;\n\theight: 30px;\n\tline-height: 30px;\n\t}\n.leaflet-touch .leaflet-bar a:first-child {\n\tborder-top-left-radius: 2px;\n\tborder-top-right-radius: 2px;\n\t}\n.leaflet-touch .leaflet-bar a:last-child {\n\tborder-bottom-left-radius: 2px;\n\tborder-bottom-right-radius: 2px;\n\t}\n\n/* zoom control */\n\n.leaflet-control-zoom-in,\n.leaflet-control-zoom-out {\n\tfont: bold 18px 'Lucida Console', Monaco, monospace;\n\ttext-indent: 1px;\n\t}\n\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\n\tfont-size: 22px;\n\t}\n\n\n/* layers control */\n\n.leaflet-control-layers {\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\n\tbackground: #fff;\n\tborder-radius: 5px;\n\t}\n.leaflet-control-layers-toggle {\n\tbackground-image: url(${p});\n\twidth: 36px;\n\theight: 36px;\n\t}\n.leaflet-retina .leaflet-control-layers-toggle {\n\tbackground-image: url(${f});\n\tbackground-size: 26px 26px;\n\t}\n.leaflet-touch .leaflet-control-layers-toggle {\n\twidth: 44px;\n\theight: 44px;\n\t}\n.leaflet-control-layers .leaflet-control-layers-list,\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\n\tdisplay: none;\n\t}\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\n\tdisplay: block;\n\tposition: relative;\n\t}\n.leaflet-control-layers-expanded {\n\tpadding: 6px 10px 6px 6px;\n\tcolor: #333;\n\tbackground: #fff;\n\t}\n.leaflet-control-layers-scrollbar {\n\toverflow-y: scroll;\n\toverflow-x: hidden;\n\tpadding-right: 5px;\n\t}\n.leaflet-control-layers-selector {\n\tmargin-top: 2px;\n\tposition: relative;\n\ttop: 1px;\n\t}\n.leaflet-control-layers label {\n\tdisplay: block;\n\tfont-size: 13px;\n\tfont-size: 1.08333em;\n\t}\n.leaflet-control-layers-separator {\n\theight: 0;\n\tborder-top: 1px solid #ddd;\n\tmargin: 5px -10px 5px -6px;\n\t}\n\n/* Default icon URLs */\n.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */\n\tbackground-image: url(${m});\n\t}\n\n\n/* attribution and scale controls */\n\n.leaflet-container .leaflet-control-attribution {\n\tbackground: #fff;\n\tbackground: rgba(255, 255, 255, 0.8);\n\tmargin: 0;\n\t}\n.leaflet-control-attribution,\n.leaflet-control-scale-line {\n\tpadding: 0 5px;\n\tcolor: #333;\n\tline-height: 1.4;\n\t}\n.leaflet-control-attribution a {\n\ttext-decoration: none;\n\t}\n.leaflet-control-attribution a:hover,\n.leaflet-control-attribution a:focus {\n\ttext-decoration: underline;\n\t}\n.leaflet-attribution-flag {\n\tdisplay: inline !important;\n\tvertical-align: baseline !important;\n\twidth: 1em;\n\theight: 0.6669em;\n\t}\n.leaflet-left .leaflet-control-scale {\n\tmargin-left: 5px;\n\t}\n.leaflet-bottom .leaflet-control-scale {\n\tmargin-bottom: 5px;\n\t}\n.leaflet-control-scale-line {\n\tborder: 2px solid #777;\n\tborder-top: none;\n\tline-height: 1.1;\n\tpadding: 2px 5px 1px;\n\twhite-space: nowrap;\n\t-moz-box-sizing: border-box;\n\t box-sizing: border-box;\n\tbackground: rgba(255, 255, 255, 0.8);\n\ttext-shadow: 1px 1px #fff;\n\t}\n.leaflet-control-scale-line:not(:first-child) {\n\tborder-top: 2px solid #777;\n\tborder-bottom: none;\n\tmargin-top: -2px;\n\t}\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\n\tborder-bottom: 2px solid #777;\n\t}\n\n.leaflet-touch .leaflet-control-attribution,\n.leaflet-touch .leaflet-control-layers,\n.leaflet-touch .leaflet-bar {\n\tbox-shadow: none;\n\t}\n.leaflet-touch .leaflet-control-layers,\n.leaflet-touch .leaflet-bar {\n\tborder: 2px solid rgba(0,0,0,0.2);\n\tbackground-clip: padding-box;\n\t}\n\n\n/* popup */\n\n.leaflet-popup {\n\tposition: absolute;\n\ttext-align: center;\n\tmargin-bottom: 20px;\n\t}\n.leaflet-popup-content-wrapper {\n\tpadding: 1px;\n\ttext-align: left;\n\tborder-radius: 12px;\n\t}\n.leaflet-popup-content {\n\tmargin: 13px 24px 13px 20px;\n\tline-height: 1.3;\n\tfont-size: 13px;\n\tfont-size: 1.08333em;\n\tmin-height: 1px;\n\t}\n.leaflet-popup-content p {\n\tmargin: 17px 0;\n\tmargin: 1.3em 0;\n\t}\n.leaflet-popup-tip-container {\n\twidth: 40px;\n\theight: 20px;\n\tposition: absolute;\n\tleft: 50%;\n\tmargin-top: -1px;\n\tmargin-left: -20px;\n\toverflow: hidden;\n\tpointer-events: none;\n\t}\n.leaflet-popup-tip {\n\twidth: 17px;\n\theight: 17px;\n\tpadding: 1px;\n\n\tmargin: -10px auto 0;\n\tpointer-events: auto;\n\n\t-webkit-transform: rotate(45deg);\n\t -moz-transform: rotate(45deg);\n\t -ms-transform: rotate(45deg);\n\t transform: rotate(45deg);\n\t}\n.leaflet-popup-content-wrapper,\n.leaflet-popup-tip {\n\tbackground: white;\n\tcolor: #333;\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\n\t}\n.leaflet-container a.leaflet-popup-close-button {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tborder: none;\n\ttext-align: center;\n\twidth: 24px;\n\theight: 24px;\n\tfont: 16px/24px Tahoma, Verdana, sans-serif;\n\tcolor: #757575;\n\ttext-decoration: none;\n\tbackground: transparent;\n\t}\n.leaflet-container a.leaflet-popup-close-button:hover,\n.leaflet-container a.leaflet-popup-close-button:focus {\n\tcolor: #585858;\n\t}\n.leaflet-popup-scrolled {\n\toverflow: auto;\n\t}\n\n.leaflet-oldie .leaflet-popup-content-wrapper {\n\t-ms-zoom: 1;\n\t}\n.leaflet-oldie .leaflet-popup-tip {\n\twidth: 24px;\n\tmargin: 0 auto;\n\n\t-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\n\t}\n\n.leaflet-oldie .leaflet-control-zoom,\n.leaflet-oldie .leaflet-control-layers,\n.leaflet-oldie .leaflet-popup-content-wrapper,\n.leaflet-oldie .leaflet-popup-tip {\n\tborder: 1px solid #999;\n\t}\n\n\n/* div icon */\n\n.leaflet-div-icon {\n\tbackground: #fff;\n\tborder: 1px solid #666;\n\t}\n\n\n/* Tooltip */\n/* Base styles for the element that has a tooltip */\n.leaflet-tooltip {\n\tposition: absolute;\n\tpadding: 6px;\n\tbackground-color: #fff;\n\tborder: 1px solid #fff;\n\tborder-radius: 3px;\n\tcolor: #222;\n\twhite-space: nowrap;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n\tpointer-events: none;\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\n\t}\n.leaflet-tooltip.leaflet-interactive {\n\tcursor: pointer;\n\tpointer-events: auto;\n\t}\n.leaflet-tooltip-top:before,\n.leaflet-tooltip-bottom:before,\n.leaflet-tooltip-left:before,\n.leaflet-tooltip-right:before {\n\tposition: absolute;\n\tpointer-events: none;\n\tborder: 6px solid transparent;\n\tbackground: transparent;\n\tcontent: "";\n\t}\n\n/* Directions */\n\n.leaflet-tooltip-bottom {\n\tmargin-top: 6px;\n}\n.leaflet-tooltip-top {\n\tmargin-top: -6px;\n}\n.leaflet-tooltip-bottom:before,\n.leaflet-tooltip-top:before {\n\tleft: 50%;\n\tmargin-left: -6px;\n\t}\n.leaflet-tooltip-top:before {\n\tbottom: 0;\n\tmargin-bottom: -12px;\n\tborder-top-color: #fff;\n\t}\n.leaflet-tooltip-bottom:before {\n\ttop: 0;\n\tmargin-top: -12px;\n\tmargin-left: -6px;\n\tborder-bottom-color: #fff;\n\t}\n.leaflet-tooltip-left {\n\tmargin-left: -6px;\n}\n.leaflet-tooltip-right {\n\tmargin-left: 6px;\n}\n.leaflet-tooltip-left:before,\n.leaflet-tooltip-right:before {\n\ttop: 50%;\n\tmargin-top: -6px;\n\t}\n.leaflet-tooltip-left:before {\n\tright: 0;\n\tmargin-right: -12px;\n\tborder-left-color: #fff;\n\t}\n.leaflet-tooltip-right:before {\n\tleft: 0;\n\tmargin-left: -12px;\n\tborder-right-color: #fff;\n\t}\n\n/* Printing */\n\n@media print {\n\t/* Prevent printers from removing background-images of controls. */\n\t.leaflet-control {\n\t\t-webkit-print-color-adjust: exact;\n\t\tprint-color-adjust: exact;\n\t\t}\n\t}\n`,""]);const g=d},6314(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,i,o,r){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);i&&s[u[0]]||(void 0!==r&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),e.push(u))}},e}},4417(t){"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},1601(t){"use strict";t.exports=function(t){return t[1]}},3481(t,e){!function(t){"use strict";function e(t){var e,n,i,o;for(n=1,i=arguments.length;n<i;n++)for(e in o=arguments[n])t[e]=o[e];return t}var n=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function i(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}var o=0;function r(t){return"_leaflet_id"in t||(t._leaflet_id=++o),t._leaflet_id}function s(t,e,n){var i,o,r,s;return s=function(){i=!1,o&&(r.apply(n,o),o=!1)},r=function(){i?o=arguments:(t.apply(n,arguments),setTimeout(s,e),i=!0)},r}function a(t,e,n){var i=e[1],o=e[0],r=i-o;return t===i&&n?t:((t-o)%r+r)%r+o}function l(){return!1}function c(t,e){if(!1===e)return t;var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function h(t){return u(t).split(/\s+/)}function d(t,e){for(var i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),e)t.options[i]=e[i];return t.options}function p(t,e,n){var i=[];for(var o in t)i.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")}var f=/\{ *([\w_ -]+) *\}/g;function m(t,e){return t.replace(f,function(t,n){var i=e[n];if(void 0===i)throw new Error("No value provided for variable "+t);return"function"==typeof i&&(i=i(e)),i})}var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function y(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var _="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function v(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function b(t){var e=+new Date,n=Math.max(0,16-(e-x));return x=e+n,window.setTimeout(t,n)}var w=window.requestAnimationFrame||v("RequestAnimationFrame")||b,A=window.cancelAnimationFrame||v("CancelAnimationFrame")||v("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function P(t,e,n){if(!n||w!==b)return w.call(window,i(t,e));t.call(e)}function k(t){t&&A.call(window,t)}var M={__proto__:null,extend:e,create:n,bind:i,get lastId(){return o},stamp:r,throttle:s,wrapNum:a,falseFn:l,formatNum:c,trim:u,splitWords:h,setOptions:d,getParamString:p,template:m,isArray:g,indexOf:y,emptyImageUrl:_,requestFn:w,cancelFn:A,requestAnimFrame:P,cancelAnimFrame:k};function C(){}C.extend=function(t){var i=function(){d(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=i.__super__=this.prototype,r=n(o);for(var s in r.constructor=i,i.prototype=r,this)Object.prototype.hasOwnProperty.call(this,s)&&"prototype"!==s&&"__super__"!==s&&(i[s]=this[s]);return t.statics&&e(i,t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=g(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),e.apply(null,[r].concat(t.includes))),e(r,t),delete r.statics,delete r.includes,r.options&&(r.options=o.options?n(o.options):{},e(r.options,t.options)),r._initHooks=[],r.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=r._initHooks.length;t<e;t++)r._initHooks[t].call(this)}},i},C.include=function(t){var n=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=n,this.mergeOptions(t.options)),this},C.mergeOptions=function(t){return e(this.prototype.options,t),this},C.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var I={on:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e);else for(var o=0,r=(t=h(t)).length;o<r;o++)this._on(t[o],e,n);return this},off:function(t,e,n){if(arguments.length)if("object"==typeof t)for(var i in t)this._off(i,t[i],e);else{t=h(t);for(var o=1===arguments.length,r=0,s=t.length;r<s;r++)o?this._off(t[r]):this._off(t[r],e,n)}else delete this._events;return this},_on:function(t,e,n,i){if("function"==typeof e){if(!1===this._listens(t,e,n)){n===this&&(n=void 0);var o={fn:e,ctx:n};i&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,n){var i,o,r;if(this._events&&(i=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var s=this._listens(t,e,n);if(!1!==s){var a=i[s];this._firingCount&&(a.fn=l,this._events[t]=i=i.slice()),i.splice(s,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(o=0,r=i.length;o<r;o++)i[o].fn=l;delete this._events[t]}},fire:function(t,n,i){if(!this.listens(t,i))return this;var o=e({},n,{type:t,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var s=0,a=r.length;s<a;s++){var l=r[s],c=l.fn;l.once&&this.off(t,c,l.ctx),c.call(l.ctx||this,o)}this._firingCount--}}return i&&this._propagateEvent(o),this},listens:function(t,e,n,i){"string"!=typeof t&&console.warn('"string" type argument expected');var o=e;"function"!=typeof e&&(i=!!e,o=void 0,n=void 0);var r=this._events&&this._events[t];if(r&&r.length&&!1!==this._listens(t,o,n))return!0;if(i)for(var s in this._eventParents)if(this._eventParents[s].listens(t,e,n,i))return!0;return!1},_listens:function(t,e,n){if(!this._events)return!1;var i=this._events[t]||[];if(!e)return!!i.length;n===this&&(n=void 0);for(var o=0,r=i.length;o<r;o++)if(i[o].fn===e&&i[o].ctx===n)return o;return!1},once:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e,!0);else for(var o=0,r=(t=h(t)).length;o<r;o++)this._on(t[o],e,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[r(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[r(t)],this},_propagateEvent:function(t){for(var n in this._eventParents)this._eventParents[n].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};I.addEventListener=I.on,I.removeEventListener=I.clearAllEventListeners=I.off,I.addOneTimeEventListener=I.once,I.fireEvent=I.fire,I.hasEventListeners=I.listens;var T=C.extend(I);function S(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var O=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function j(t,e,n){return t instanceof S?t:g(t)?new S(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new S(t.x,t.y):new S(t,e,n)}function z(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function E(t,e){return!t||t instanceof z?t:new z(t,e)}function R(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function N(t,e){return t instanceof R?t:new R(t,e)}function $(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function B(t,e,n){return t instanceof $?t:g(t)&&"object"!=typeof t[0]?3===t.length?new $(t[0],t[1],t[2]):2===t.length?new $(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new $(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new $(t,e,n)}S.prototype={clone:function(){return new S(this.x,this.y)},add:function(t){return this.clone()._add(j(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(j(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new S(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new S(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=O(this.x),this.y=O(this.y),this},distanceTo:function(t){var e=(t=j(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=j(t)).x===this.x&&t.y===this.y},contains:function(t){return t=j(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},z.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof S||"number"==typeof t[0]||"x"in t)e=n=j(t);else if(e=(t=E(t)).min,n=t.max,!e||!n)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone()),this},getCenter:function(t){return j((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return j(this.min.x,this.max.y)},getTopRight:function(){return j(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof S?j(t):E(t))instanceof z?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=E(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>=e.x&&i.x<=n.x,s=o.y>=e.y&&i.y<=n.y;return r&&s},overlaps:function(t){t=E(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>e.x&&i.x<n.x,s=o.y>e.y&&i.y<n.y;return r&&s},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,n=this.max,i=Math.abs(e.x-n.x)*t,o=Math.abs(e.y-n.y)*t;return E(j(e.x-i,e.y-o),j(n.x+i,n.y+o))},equals:function(t){return!!t&&(t=E(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},R.prototype={extend:function(t){var e,n,i=this._southWest,o=this._northEast;if(t instanceof $)e=t,n=t;else{if(!(t instanceof R))return t?this.extend(B(t)||N(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return i||o?(i.lat=Math.min(e.lat,i.lat),i.lng=Math.min(e.lng,i.lng),o.lat=Math.max(n.lat,o.lat),o.lng=Math.max(n.lng,o.lng)):(this._southWest=new $(e.lat,e.lng),this._northEast=new $(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,o=Math.abs(e.lng-n.lng)*t;return new R(new $(e.lat-i,e.lng-o),new $(n.lat+i,n.lng+o))},getCenter:function(){return new $((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new $(this.getNorth(),this.getWest())},getSouthEast:function(){return new $(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof $||"lat"in t?B(t):N(t);var e,n,i=this._southWest,o=this._northEast;return t instanceof R?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=o.lat&&e.lng>=i.lng&&n.lng<=o.lng},intersects:function(t){t=N(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&i.lat<=n.lat,s=o.lng>=e.lng&&i.lng<=n.lng;return r&&s},overlaps:function(t){t=N(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&i.lat<n.lat,s=o.lng>e.lng&&i.lng<n.lng;return r&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=N(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},$.prototype={equals:function(t,e){return!!t&&(t=B(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+c(this.lat,t)+", "+c(this.lng,t)+")"},distanceTo:function(t){return Z.distance(this,B(t))},wrap:function(){return Z.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return N([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new $(this.lat,this.lng,this.alt)}};var F,D={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new z(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?a(t.lng,this.wrapLng,!0):t.lng;return new $(this.wrapLat?a(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),i=e.lat-n.lat,o=e.lng-n.lng;if(0===i&&0===o)return t;var r=t.getSouthWest(),s=t.getNorthEast();return new R(new $(r.lat-i,r.lng-o),new $(s.lat-i,s.lng-o))}},Z=e({},D,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,o=e.lat*n,r=Math.sin((e.lat-t.lat)*n/2),s=Math.sin((e.lng-t.lng)*n/2),a=r*r+Math.cos(i)*Math.cos(o)*s*s,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}}),H=6378137,U={R:H,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),o=Math.sin(i*e);return new S(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new $((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(F=H*Math.PI,new z([-F,-F],[F,F]))};function W(t,e,n,i){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=i}function V(t,e,n,i){return new W(t,e,n,i)}W.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new S((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var q=e({},Z,{code:"EPSG:3857",projection:U,transformation:function(){var t=.5/(Math.PI*U.R);return V(t,.5,-t,.5)}()}),G=e({},q,{code:"EPSG:900913"});function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Y(t,e){var n,i,o,r,s,a,l="";for(n=0,o=t.length;n<o;n++){for(i=0,r=(s=t[n]).length;i<r;i++)l+=(i?"L":"M")+(a=s[i]).x+" "+a.y;l+=e?zt.svg?"z":"x":""}return l||"M0 0"}var X,Q=document.documentElement.style,J="ActiveXObject"in window,tt=J&&!document.addEventListener,et="msLaunchUri"in navigator&&!("documentMode"in document),nt=jt("webkit"),it=jt("android"),ot=jt("android 2")||jt("android 3"),rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=it&&jt("Google")&&rt<537&&!("AudioNode"in window),at=!!window.opera,lt=!et&&jt("chrome"),ct=jt("gecko")&&!nt&&!at&&!J,ut=!lt&&jt("safari"),ht=jt("phantom"),dt="OTransition"in Q,pt=0===navigator.platform.indexOf("Win"),ft=J&&"transition"in Q,mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,gt="MozPerspective"in Q,yt=!window.L_DISABLE_3D&&(ft||mt||gt)&&!dt&&!ht,_t="undefined"!=typeof orientation||jt("mobile"),vt=_t&&nt,xt=_t&&mt,bt=!window.PointerEvent&&window.MSPointerEvent,wt=!(!window.PointerEvent&&!bt),At="ontouchstart"in window||!!window.TouchEvent,Pt=!window.L_NO_TOUCH&&(At||wt),kt=_t&&at,Mt=_t&&ct,Ct=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,It=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(t){}return t}(),Tt=!!document.createElement("canvas").getContext,Lt=!(!document.createElementNS||!K("svg").createSVGRect),St=!!Lt&&((X=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(X.firstChild&&X.firstChild.namespaceURI)),Ot=!Lt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function jt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var zt={ie:J,ielt9:tt,edge:et,webkit:nt,android:it,android23:ot,androidStock:st,opera:at,chrome:lt,gecko:ct,safari:ut,phantom:ht,opera12:dt,win:pt,ie3d:ft,webkit3d:mt,gecko3d:gt,any3d:yt,mobile:_t,mobileWebkit:vt,mobileWebkit3d:xt,msPointer:bt,pointer:wt,touch:Pt,touchNative:At,mobileOpera:kt,mobileGecko:Mt,retina:Ct,passiveEvents:It,canvas:Tt,svg:Lt,vml:Ot,inlineSvg:St,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Et=zt.msPointer?"MSPointerDown":"pointerdown",Rt=zt.msPointer?"MSPointerMove":"pointermove",Nt=zt.msPointer?"MSPointerUp":"pointerup",$t=zt.msPointer?"MSPointerCancel":"pointercancel",Bt={touchstart:Et,touchmove:Rt,touchend:Nt,touchcancel:$t},Ft={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ne(e),qt(t,e)},touchmove:qt,touchend:qt,touchcancel:qt},Dt={},Zt=!1;function Ht(t,e,n){return"touchstart"===e&&(Zt||(document.addEventListener(Et,Ut,!0),document.addEventListener(Rt,Wt,!0),document.addEventListener(Nt,Vt,!0),document.addEventListener($t,Vt,!0),Zt=!0)),Ft[e]?(n=Ft[e].bind(this,n),t.addEventListener(Bt[e],n,!1),n):(console.warn("wrong event specified:",e),l)}function Ut(t){Dt[t.pointerId]=t}function Wt(t){Dt[t.pointerId]&&(Dt[t.pointerId]=t)}function Vt(t){delete Dt[t.pointerId]}function qt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],Dt)e.touches.push(Dt[n]);e.changedTouches=[e],t(e)}}var Gt,Kt,Yt,Xt,Qt,Jt=me(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),te=me(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ee="webkitTransition"===te||"OTransition"===te?te+"End":"transitionend";function ne(t){return"string"==typeof t?document.getElementById(t):t}function ie(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function oe(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function re(t){var e=t.parentNode;e&&e.removeChild(t)}function se(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ae(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function le(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ce(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=pe(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function ue(t,e){if(void 0!==t.classList)for(var n=h(e),i=0,o=n.length;i<o;i++)t.classList.add(n[i]);else if(!ce(t,e)){var r=pe(t);de(t,(r?r+" ":"")+e)}}function he(t,e){void 0!==t.classList?t.classList.remove(e):de(t,u((" "+pe(t)+" ").replace(" "+e+" "," ")))}function de(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function pe(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function fe(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}(t,e)}function me(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function ge(t,e,n){var i=e||new S(0,0);t.style[Jt]=(zt.ie3d?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function ye(t,e){t._leaflet_pos=e,zt.any3d?ge(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function _e(t){return t._leaflet_pos||new S(0,0)}if("onselectstart"in document)Gt=function(){Ce(window,"selectstart",Ne)},Kt=function(){Te(window,"selectstart",Ne)};else{var ve=me(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Gt=function(){if(ve){var t=document.documentElement.style;Yt=t[ve],t[ve]="none"}},Kt=function(){ve&&(document.documentElement.style[ve]=Yt,Yt=void 0)}}function xe(){Ce(window,"dragstart",Ne)}function be(){Te(window,"dragstart",Ne)}function we(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Ae(),Xt=t,Qt=t.style.outlineStyle,t.style.outlineStyle="none",Ce(window,"keydown",Ae))}function Ae(){Xt&&(Xt.style.outlineStyle=Qt,Xt=void 0,Qt=void 0,Te(window,"keydown",Ae))}function Pe(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function ke(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Me={__proto__:null,TRANSFORM:Jt,TRANSITION:te,TRANSITION_END:ee,get:ne,getStyle:ie,create:oe,remove:re,empty:se,toFront:ae,toBack:le,hasClass:ce,addClass:ue,removeClass:he,setClass:de,getClass:pe,setOpacity:fe,testProp:me,setTransform:ge,setPosition:ye,getPosition:_e,get disableTextSelection(){return Gt},get enableTextSelection(){return Kt},disableImageDrag:xe,enableImageDrag:be,preventOutline:we,restoreOutline:Ae,getSizedParentNode:Pe,getScale:ke};function Ce(t,e,n,i){if(e&&"object"==typeof e)for(var o in e)Oe(t,o,e[o],n);else for(var r=0,s=(e=h(e)).length;r<s;r++)Oe(t,e[r],n,i);return this}var Ie="_leaflet_events";function Te(t,e,n,i){if(1===arguments.length)Le(t),delete t[Ie];else if(e&&"object"==typeof e)for(var o in e)je(t,o,e[o],n);else if(e=h(e),2===arguments.length)Le(t,function(t){return-1!==y(e,t)});else for(var r=0,s=e.length;r<s;r++)je(t,e[r],n,i);return this}function Le(t,e){for(var n in t[Ie]){var i=n.split(/\d/)[0];e&&!e(i)||je(t,i,null,null,n)}}var Se={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Oe(t,e,n,i){var o=e+r(n)+(i?"_"+r(i):"");if(t[Ie]&&t[Ie][o])return this;var s=function(e){return n.call(i||t,e||window.event)},a=s;!zt.touchNative&&zt.pointer&&0===e.indexOf("touch")?s=Ht(t,e,s):zt.touch&&"dblclick"===e?s=function(t,e){t.addEventListener("dblclick",e);var n,i=0;function o(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var o=Be(t);if(!o.some(function(t){return t instanceof HTMLLabelElement&&t.attributes.for})||o.some(function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement})){var r=Date.now();r-i<=200?2===++n&&e(function(t){var e,n,i={};for(n in t)e=t[n],i[n]=e&&e.bind?e.bind(t):e;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}(t)):n=1,i=r}}}else n=t.detail}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}(t,s):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Se[e]||e,s,!!zt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(s=function(e){e=e||window.event,He(t,e)&&a(e)},t.addEventListener(Se[e],s,!1)):t.addEventListener(e,a,!1):t.attachEvent("on"+e,s),t[Ie]=t[Ie]||{},t[Ie][o]=s}function je(t,e,n,i,o){o=o||e+r(n)+(i?"_"+r(i):"");var s=t[Ie]&&t[Ie][o];if(!s)return this;!zt.touchNative&&zt.pointer&&0===e.indexOf("touch")?function(t,e,n){Bt[e]?t.removeEventListener(Bt[e],n,!1):console.warn("wrong event specified:",e)}(t,e,s):zt.touch&&"dblclick"===e?function(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}(t,s):"removeEventListener"in t?t.removeEventListener(Se[e]||e,s,!1):t.detachEvent("on"+e,s),t[Ie][o]=null}function ze(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ee(t){return Oe(t,"wheel",ze),this}function Re(t){return Ce(t,"mousedown touchstart dblclick contextmenu",ze),t._leaflet_disable_click=!0,this}function Ne(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function $e(t){return Ne(t),ze(t),this}function Be(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function Fe(t,e){if(!e)return new S(t.clientX,t.clientY);var n=ke(e),i=n.boundingClientRect;return new S((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var De=zt.linux&&zt.chrome?window.devicePixelRatio:zt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ze(t){return zt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/De:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function He(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var Ue={__proto__:null,on:Ce,off:Te,stopPropagation:ze,disableScrollPropagation:Ee,disableClickPropagation:Re,preventDefault:Ne,stop:$e,getPropagationPath:Be,getMousePosition:Fe,getWheelDelta:Ze,isExternalTarget:He,addListener:Ce,removeListener:Te},We=T.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=_e(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=P(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),ye(this._el,n),this.fire("step")},_complete:function(){k(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Ve=T.extend({options:{crs:q,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=d(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(B(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=te&&zt.any3d&&!zt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ce(this._proxy,ee,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,n,i){return n=void 0===n?this._zoom:this._limitZoom(n),t=this._limitCenter(B(t),n,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=e({animate:i.animate},i.zoom),i.pan=e({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,n,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,n,i.pan&&i.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(zt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(zt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),o=this.getSize().divideBy(2),r=(t instanceof S?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/i),s=this.containerPointToLatLng(o.add(r));return this.setView(s,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():N(t);var n=j(e.paddingTopLeft||e.padding||[0,0]),i=j(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,n.add(i));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var r=i.subtract(n).divideBy(2),s=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o);return{center:this.unproject(s.add(a).divideBy(2).add(r),o),zoom:o}},fitBounds:function(t,e){if(!(t=N(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=j(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new We,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){ue(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!zt.any3d)return this.setView(t,e,n);this._stop();var i=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),s=this._zoom;t=B(t),e=void 0===e?s:e;var a=Math.max(r.x,r.y),l=a*this.getZoomScale(s,e),c=o.distanceTo(i)||1,u=1.42,h=2.0164;function d(t){var e=(l*l-a*a+(t?-1:1)*h*h*c*c)/(2*(t?l:a)*h*c),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}var m=d(0);function g(t){return a*(f(m)*(p(e=m+u*t)/f(e))-p(m))/h;var e}var y=Date.now(),_=(d(1)-m)/u,v=n.duration?1e3*n.duration:1e3*_*.8;return this._moveStart(!0,n.noMoveStart),function n(){var r=(Date.now()-y)/v,l=function(t){return 1-Math.pow(1-t,1.5)}(r)*_;r<=1?(this._flyToFrame=P(n,this),this._move(this.unproject(i.add(o.subtract(i).multiplyBy(g(l)/c)),s),this.getScaleZoom(a/function(t){return a*(f(m)/f(m+u*t))}(l),s),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=N(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,N(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=j((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=j(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),s=this.getPixelBounds(),a=E([s.min.add(n),s.max.subtract(i)]),l=a.getSize();if(!a.contains(r)){this._enforcingBounds=!0;var c=r.subtract(a.getCenter()),u=a.extend(r).getSize().subtract(l);o.x+=c.x<0?-u.x:u.x,o.y+=c.y<0?-u.y:u.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),r=n.divideBy(2).round(),s=o.divideBy(2).round(),a=r.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=i(this._handleGeolocationResponse,this),o=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new $(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var o=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(o,i.maxZoom):o)}var r={latlng:e,bounds:n,timestamp:t.timestamp};for(var s in t.coords)"number"==typeof t.coords[s]&&(r[s]=t.coords[s]);this.fire("locationfound",r)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),re(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(k(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)re(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=oe("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new R(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=N(t),n=j(n||[0,0]);var i=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(n),c=E(this.project(a,i),this.project(s,i)).getSize(),u=zt.any3d?this.options.zoomSnap:1,h=l.x/c.x,d=l.y/c.y,p=e?Math.max(h,d):Math.min(h,d);return i=this.getScaleZoom(p,i),u&&(i=Math.round(i/(u/100))*(u/100),i=e?Math.ceil(i/u)*u:Math.floor(i/u)*u),Math.max(o,Math.min(r,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new S(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new z(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(B(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(j(t),e)},layerPointToLatLng:function(t){var e=j(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(B(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(B(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(N(t))},distance:function(t,e){return this.options.crs.distance(B(t),B(e))},containerPointToLayerPoint:function(t){return j(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return j(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(j(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(B(t)))},mouseEventToContainerPoint:function(t){return Fe(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ne(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Ce(e,"scroll",this._onScroll,this),this._containerId=r(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&zt.any3d,ue(t,"leaflet-container"+(zt.touch?" leaflet-touch":"")+(zt.retina?" leaflet-retina":"")+(zt.ielt9?" leaflet-oldie":"")+(zt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ie(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ye(this._mapPane,new S(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ue(t.markerPane,"leaflet-zoom-hide"),ue(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){ye(this._mapPane,new S(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,n)._move(t,e)._moveEnd(o),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,i){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),i?n&&n.pinch&&this.fire("zoom",n):((o||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return k(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ye(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[r(this._container)]=this;var e=t?Te:Ce;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),zt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){k(this._resizeRequest),this._resizeRequest=P(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],o="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,a=!1;s;){if((n=this._targets[r(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)){if(o&&!He(s,t))break;if(i.push(n),o)break}if(s===this._container)break;s=s.parentNode}return i.length||a||o||!this.listens(e,!0)||(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var n=t.type;"mousedown"===n&&we(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,i){if("click"===t.type){var o=e({},t);o.type="preclick",this._fireDOMEvent(o,o.type,i)}var r=this._findEventTargets(t,n);if(i){for(var s=[],a=0;a<i.length;a++)i[a].listens(n,!0)&&s.push(i[a]);r=s.concat(r)}if(r.length){"contextmenu"===n&&Ne(t);var l=r[0],c={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var u=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=u?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=u?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(a=0;a<r.length;a++)if(r[a].fire(n,c,!0),c.originalEvent._stopped||!1===r[a].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,n))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return _e(this._mapPane)||new S(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return E([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),o=this.getSize().divideBy(2),r=new z(i.subtract(o),i.add(o)),s=this._getBoundsOffset(r,n,e);return Math.abs(s.x)<=1&&Math.abs(s.y)<=1?t:this.unproject(i.add(s),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new z(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=E(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),o=i.min.subtract(t.min),r=i.max.subtract(t.max);return new S(this._rebound(o.x,-r.x),this._rebound(o.y,-r.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=zt.any3d?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){he(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=oe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=Jt,n=this._proxy.style[e];ge(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){re(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ge(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(o)||(P(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ue(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&he(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});var qe=C.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return ue(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(re(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ge=function(t){return new qe(t)};Ve.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=oe("div",e+"control-container",this._container);function i(i,o){var r=e+i+" "+e+o;t[i+o]=oe("div",r,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)re(this._controlCorners[t]);re(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ke=qe.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){for(var i in d(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return qe.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(r(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){ue(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(ue(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):he(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return he(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=oe("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Re(e),Ee(e);var i=this._section=oe("section",t+"-list");n&&(this._map.on("click",this.collapse,this),Ce(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var o=this._layersLink=oe("a",t+"-toggle",e);o.href="#",o.title="Layers",o.setAttribute("role","button"),Ce(o,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Ne(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=oe("div",t+"-base",i),this._separator=oe("div",t+"-separator",i),this._overlaysList=oe("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&r(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(i(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;se(this._baseLayersList),se(this._overlaysList),this._layerControlInputs=[];var t,e,n,i,o=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,o+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+r(this),i),this._layerControlInputs.push(e),e.layerId=r(t.layer),Ce(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");return n.appendChild(s),s.appendChild(e),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t,e,n=this._layerControlInputs,i=[],o=[];this._handlingClick=!0;for(var r=n.length-1;r>=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||o.push(e);for(r=0;r<o.length;r++)this._map.hasLayer(o[r])&&this._map.removeLayer(o[r]);for(r=0;r<i.length;r++)this._map.hasLayer(i[r])||this._map.addLayer(i[r]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&i<e.options.minZoom||void 0!==e.options.maxZoom&&i>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Ce(t,"click",Ne),this.expand();var e=this;setTimeout(function(){Te(t,"click",Ne),e._preventClick=!1})}}),Ye=qe.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=oe("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,o){var r=oe("a",n,i);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),Re(r),Ce(r,"click",$e),Ce(r,"click",o,this),Ce(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";he(this._zoomInButton,e),he(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(ue(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(ue(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ve.mergeOptions({zoomControl:!0}),Ve.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ye,this.addControl(this.zoomControl))});var Xe=qe.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=oe("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=oe("div",e,n)),t.imperial&&(this._iScale=oe("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,o=3.2808399*t;o>5280?(e=o/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(o),this._updateScale(this._iScale,i+" ft",i/o))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Qe=qe.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(zt.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=oe("div","leaflet-control-attribution"),Re(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});Ve.mergeOptions({attributionControl:!0}),Ve.addInitHook(function(){this.options.attributionControl&&(new Qe).addTo(this)});qe.Layers=Ke,qe.Zoom=Ye,qe.Scale=Xe,qe.Attribution=Qe,Ge.layers=function(t,e,n){return new Ke(t,e,n)},Ge.zoom=function(t){return new Ye(t)},Ge.scale=function(t){return new Xe(t)},Ge.attribution=function(t){return new Qe(t)};var Je=C.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Je.addTo=function(t,e){return t.addHandler(e,this),this};var tn={Events:I},en=zt.touch?"touchstart mousedown":"mousedown",nn=T.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){d(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Ce(this._dragStartTarget,en,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(nn._dragging===this&&this.finishDrag(!0),Te(this._dragStartTarget,en,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ce(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)nn._dragging===this&&this.finishDrag();else if(!(nn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(nn._dragging=this,this._preventOutline&&we(this._element),xe(),Gt(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Pe(this._element);this._startPoint=new S(e.clientX,e.clientY),this._startPos=_e(this._element),this._parentScale=ke(n);var i="mousedown"===t.type;Ce(document,i?"mousemove":"touchmove",this._onMove,this),Ce(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new S(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Ne(t),this._moved||(this.fire("dragstart"),this._moved=!0,ue(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ue(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ye(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){he(document.body,"leaflet-dragging"),this._lastTarget&&(he(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Te(document,"mousemove touchmove",this._onMove,this),Te(document,"mouseup touchend touchcancel",this._onUp,this),be(),Kt();var e=this._moved&&this._moving;this._moving=!1,nn._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function on(t,e,n){var i,o,r,s,a,l,c,u,h,d=[1,4,2,8];for(o=0,c=t.length;o<c;o++)t[o]._code=fn(t[o],e);for(s=0;s<4;s++){for(u=d[s],i=[],o=0,r=(c=t.length)-1;o<c;r=o++)a=t[o],l=t[r],a._code&u?l._code&u||((h=pn(l,a,u,e,n))._code=fn(h,e),i.push(h)):(l._code&u&&((h=pn(l,a,u,e,n))._code=fn(h,e),i.push(h)),i.push(a));t=i}return t}function rn(t,e){var n,i,o,r,s,a,l,c,u;if(!t||0===t.length)throw new Error("latlngs not passed");yn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var h=B([0,0]),d=N(t);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(h=sn(t));var p=t.length,f=[];for(n=0;n<p;n++){var m=B(t[n]);f.push(e.project(B([m.lat-h.lat,m.lng-h.lng])))}for(a=l=c=0,n=0,i=p-1;n<p;i=n++)o=f[n],r=f[i],s=o.y*r.x-r.y*o.x,l+=(o.x+r.x)*s,c+=(o.y+r.y)*s,a+=3*s;u=0===a?f[0]:[l/a,c/a];var g=e.unproject(j(u));return B([g.lat+h.lat,g.lng+h.lng])}function sn(t){for(var e=0,n=0,i=0,o=0;o<t.length;o++){var r=B(t[o]);e+=r.lat,n+=r.lng,i++}return B([e/i,n/i])}var an,ln={__proto__:null,clipPolygon:on,polygonCenter:rn,centroid:sn};function cn(t,e){if(!e||!t.length)return t.slice();var n=e*e;return function(t,e){var n=t.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,hn(t,i,e,0,n-1);var o,r=[];for(o=0;o<n;o++)i[o]&&r.push(t[o]);return r}(t=function(t,e){for(var n=[t[0]],i=1,o=0,r=t.length;i<r;i++)mn(t[i],t[o])>e&&(n.push(t[i]),o=i);return o<r-1&&n.push(t[r-1]),n}(t,n),n)}function un(t,e,n){return Math.sqrt(gn(t,e,n,!0))}function hn(t,e,n,i,o){var r,s,a,l=0;for(s=i+1;s<=o-1;s++)(a=gn(t[s],t[i],t[o],!0))>l&&(r=s,l=a);l>n&&(e[r]=1,hn(t,e,n,i,r),hn(t,e,n,r,o))}function dn(t,e,n,i,o){var r,s,a,l=i?an:fn(t,n),c=fn(e,n);for(an=c;;){if(!(l|c))return[t,e];if(l&c)return!1;a=fn(s=pn(t,e,r=l||c,n,o),n),r===l?(t=s,l=a):(e=s,c=a)}}function pn(t,e,n,i,o){var r,s,a=e.x-t.x,l=e.y-t.y,c=i.min,u=i.max;return 8&n?(r=t.x+a*(u.y-t.y)/l,s=u.y):4&n?(r=t.x+a*(c.y-t.y)/l,s=c.y):2&n?(r=u.x,s=t.y+l*(u.x-t.x)/a):1&n&&(r=c.x,s=t.y+l*(c.x-t.x)/a),new S(r,s,o)}function fn(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function mn(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function gn(t,e,n,i){var o,r=e.x,s=e.y,a=n.x-r,l=n.y-s,c=a*a+l*l;return c>0&&((o=((t.x-r)*a+(t.y-s)*l)/c)>1?(r=n.x,s=n.y):o>0&&(r+=a*o,s+=l*o)),a=t.x-r,l=t.y-s,i?a*a+l*l:new S(r,s)}function yn(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function _n(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),yn(t)}function vn(t,e){var n,i,o,r,s,a,l,c;if(!t||0===t.length)throw new Error("latlngs not passed");yn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=B([0,0]),h=N(t);h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(u=sn(t));var d=t.length,p=[];for(n=0;n<d;n++){var f=B(t[n]);p.push(e.project(B([f.lat-u.lat,f.lng-u.lng])))}for(n=0,i=0;n<d-1;n++)i+=p[n].distanceTo(p[n+1])/2;if(0===i)c=p[0];else for(n=0,r=0;n<d-1;n++)if(s=p[n],a=p[n+1],(r+=o=s.distanceTo(a))>i){l=(r-i)/o,c=[a.x-l*(a.x-s.x),a.y-l*(a.y-s.y)];break}var m=e.unproject(j(c));return B([m.lat+u.lat,m.lng+u.lng])}var xn={__proto__:null,simplify:cn,pointToSegmentDistance:un,closestPointOnSegment:function(t,e,n){return gn(t,e,n)},clipSegment:dn,_getEdgeIntersection:pn,_getBitCode:fn,_sqClosestPointOnSegment:gn,isFlat:yn,_flat:_n,polylineCenter:vn},bn={project:function(t){return new S(t.lng,t.lat)},unproject:function(t){return new $(t.y,t.x)},bounds:new z([-180,-90],[180,90])},wn={R:6378137,R_MINOR:6356752.314245179,bounds:new z([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,o=this.R_MINOR/n,r=Math.sqrt(1-o*o),s=r*Math.sin(i),a=Math.tan(Math.PI/4-i/2)/Math.pow((1-s)/(1+s),r/2);return i=-n*Math.log(Math.max(a,1e-10)),new S(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),s=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(s),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=r*Math.sin(a),e=Math.pow((1-e)/(1+e),r/2),a+=c=Math.PI/2-2*Math.atan(s*e)-a;return new $(a*n,t.x*n/i)}},An={__proto__:null,LonLat:bn,Mercator:wn,SphericalMercator:U},Pn=e({},Z,{code:"EPSG:3395",projection:wn,transformation:function(){var t=.5/(Math.PI*wn.R);return V(t,.5,-t,.5)}()}),kn=e({},Z,{code:"EPSG:4326",projection:bn,transformation:V(1/180,1,-1/180,.5)}),Mn=e({},D,{projection:bn,transformation:V(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});D.Earth=Z,D.EPSG3395=Pn,D.EPSG3857=q,D.EPSG900913=G,D.EPSG4326=kn,D.Simple=Mn;var Cn=T.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ve.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=r(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return r(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?g(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[r(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=r(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var o=this._zoomBoundLayers[i].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var In=Cn.extend({initialize:function(t,e){var n,i;if(d(this,e),this._layers={},t)for(n=0,i=t.length;n<i;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return r(t)}}),Tn=In.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),In.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),In.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new R;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Ln=C.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){d(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var i=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(i,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i},_setIconStyles:function(t,e){var n=this.options,i=n[e+"Size"];"number"==typeof i&&(i=[i,i]);var o=j(i),r=j("shadow"===e&&n.shadowAnchor||n.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),r&&(t.style.marginLeft=-r.x+"px",t.style.marginTop=-r.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return zt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var Sn=Ln.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof Sn.imagePath&&(Sn.imagePath=this._detectIconPath()),(this.options.imagePath||Sn.imagePath)+Ln.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,n){var i=e.exec(t);return i&&i[n]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=oe("div","leaflet-default-icon-path",document.body),e=ie(t,"background-image")||ie(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),On=Je.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new nn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ue(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&he(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=_e(e._icon),s=n.getPixelBounds(),a=n.getPixelOrigin(),l=E(s.min._subtract(a).add(o),s.max._subtract(a).subtract(o));if(!l.contains(r)){var c=j((Math.max(l.max.x,r.x)-l.max.x)/(s.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(s.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(s.max.y-l.max.y)-(Math.min(l.min.y,r.y)-l.min.y)/(s.min.y-l.min.y)).multiplyBy(i);n.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),ye(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=P(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(k(this._panRequest),this._panRequest=P(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=_e(e._icon),o=e._map.layerPointToLatLng(i);n&&ye(n,i),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){k(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),jn=Cn.extend({options:{icon:new Sn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){d(this,e),this._latlng=B(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=B(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),i=!1;n!==this._icon&&(this._icon&&this._removeIcon(),i=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),ue(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ce(n,"focus",this._panOnFocus,this);var o=t.icon.createShadow(this._shadow),r=!1;o!==this._shadow&&(this._removeShadow(),r=!0),o&&(ue(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Te(this._icon,"focus",this._panOnFocus,this),re(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&re(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&ye(this._icon,t),this._shadow&&ye(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(ue(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),On)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new On(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&fe(this._icon,t),this._shadow&&fe(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?j(e.iconSize):j(0,0),i=e.iconAnchor?j(e.iconAnchor):j(0,0);t.panInside(this._latlng,{paddingTopLeft:i,paddingBottomRight:n.subtract(i)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var zn=Cn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return d(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),En=zn.extend({options:{fill:!0,radius:10},initialize:function(t,e){d(this,e),this._latlng=B(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=B(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return zn.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),i=[t+n,e+n];this._pxBounds=new z(this._point.subtract(i),this._point.add(i))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var Rn=En.extend({initialize:function(t,n,i){if("number"==typeof n&&(n=e({},i,{radius:n})),d(this,n),this._latlng=B(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new R(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:zn.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===Z.distance){var o=Math.PI/180,r=this._mRadius/Z.R/o,s=n.project([e+r,t]),a=n.project([e-r,t]),l=s.add(a).divideBy(2),c=n.unproject(l).lat,u=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(c*o))/(Math.cos(e*o)*Math.cos(c*o)))/o;(isNaN(u)||0===u)&&(u=r/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-n.project([c,t-u]).x,this._radiusY=l.y-s.y}else{var h=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(h).x}this._updateBounds()}});var Nn=zn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){d(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,i=1/0,o=null,r=gn,s=0,a=this._parts.length;s<a;s++)for(var l=this._parts[s],c=1,u=l.length;c<u;c++){var h=r(t,e=l[c-1],n=l[c],!0);h<i&&(i=h,o=r(t,e,n))}return o&&(o.distance=Math.sqrt(i)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return vn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=B(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new R,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return yn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=yn(t),i=0,o=t.length;i<o;i++)n?(e[i]=B(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new S(t,t);this._rawPxBounds&&(this._pxBounds=new z([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var i,o,r=t[0]instanceof $,s=t.length;if(r){for(o=[],i=0;i<s;i++)o[i]=this._map.latLngToLayerPoint(t[i]),n.extend(o[i]);e.push(o)}else for(i=0;i<s;i++)this._projectLatlngs(t[i],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,i,o,r,s,a,l=this._parts;for(e=0,i=0,o=this._rings.length;e<o;e++)for(n=0,r=(a=this._rings[e]).length;n<r-1;n++)(s=dn(a[n],a[n+1],t,n,!0))&&(l[i]=l[i]||[],l[i].push(s[0]),s[1]===a[n+1]&&n!==r-2||(l[i].push(s[1]),i++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=cn(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,o,r,s,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,r=this._parts.length;n<r;n++)for(i=0,o=(s=(a=this._parts[n]).length)-1;i<s;o=i++)if((e||0!==i)&&un(t,a[o],a[i])<=l)return!0;return!1}});Nn._flat=_n;var $n=Nn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return rn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Nn.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof $&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){Nn.prototype._setLatLngs.call(this,t),yn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return yn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new S(e,e);if(t=new z(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,o=0,r=this._rings.length;o<r;o++)(i=on(this._rings[o],t,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,i,o,r,s,a,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(r=0,s=(l=(e=this._parts[o]).length)-1;r<l;s=r++)n=e[r],i=e[s],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(c=!c);return c||Nn.prototype._containsPoint.call(this,t,!0)}});var Bn=Tn.extend({initialize:function(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=g(t)?t:t.features;if(o){for(e=0,n=o.length;e<n;e++)((i=o[e]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var r=this.options;if(r.filter&&!r.filter(t))return this;var s=Fn(t,r);return s?(s.feature=qn(t),s.defaultOptions=s.options,this.resetStyle(s),r.onEachFeature&&r.onEachFeature(t,s),this.addLayer(s)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function Fn(t,e){var n,i,o,r,s="Feature"===t.type?t.geometry:t,a=s?s.coordinates:null,l=[],c=e&&e.pointToLayer,u=e&&e.coordsToLatLng||Zn;if(!a&&!s)return null;switch(s.type){case"Point":return Dn(c,t,n=u(a),e);case"MultiPoint":for(o=0,r=a.length;o<r;o++)n=u(a[o]),l.push(Dn(c,t,n,e));return new Tn(l);case"LineString":case"MultiLineString":return i=Hn(a,"LineString"===s.type?0:1,u),new Nn(i,e);case"Polygon":case"MultiPolygon":return i=Hn(a,"Polygon"===s.type?1:2,u),new $n(i,e);case"GeometryCollection":for(o=0,r=s.geometries.length;o<r;o++){var h=Fn({geometry:s.geometries[o],type:"Feature",properties:t.properties},e);h&&l.push(h)}return new Tn(l);case"FeatureCollection":for(o=0,r=s.features.length;o<r;o++){var d=Fn(s.features[o],e);d&&l.push(d)}return new Tn(l);default:throw new Error("Invalid GeoJSON object.")}}function Dn(t,e,n,i){return t?t(e,n):new jn(n,i&&i.markersInheritOptions&&i)}function Zn(t){return new $(t[1],t[0],t[2])}function Hn(t,e,n){for(var i,o=[],r=0,s=t.length;r<s;r++)i=e?Hn(t[r],e-1,n):(n||Zn)(t[r]),o.push(i);return o}function Un(t,e){return void 0!==(t=B(t)).alt?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function Wn(t,e,n,i){for(var o=[],r=0,s=t.length;r<s;r++)o.push(e?Wn(t[r],yn(t[r])?0:e-1,n,i):Un(t[r],i));return!e&&n&&o.length>0&&o.push(o[0].slice()),o}function Vn(t,n){return t.feature?e({},t.feature,{geometry:n}):qn(n)}function qn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Gn={toGeoJSON:function(t){return Vn(this,{type:"Point",coordinates:Un(this.getLatLng(),t)})}};function Kn(t,e){return new Bn(t,e)}jn.include(Gn),Rn.include(Gn),En.include(Gn),Nn.include({toGeoJSON:function(t){var e=!yn(this._latlngs);return Vn(this,{type:(e?"Multi":"")+"LineString",coordinates:Wn(this._latlngs,e?1:0,!1,t)})}}),$n.include({toGeoJSON:function(t){var e=!yn(this._latlngs),n=e&&!yn(this._latlngs[0]),i=Wn(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),Vn(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),In.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),Vn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,i=[];return this.eachLayer(function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(n)i.push(o.geometry);else{var r=qn(o);"FeatureCollection"===r.type?i.push.apply(i,r.features):i.push(r)}}}),n?Vn(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var Yn=Kn,Xn=Cn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=N(e),d(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ue(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){re(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ae(this._image),this},bringToBack:function(){return this._map&&le(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=N(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:oe("img");ue(e,"leaflet-image-layer"),this._zoomAnimated&&ue(e,"leaflet-zoom-animated"),this.options.className&&ue(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onload=i(this.fire,this,"load"),e.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ge(this._image,n,e)},_reset:function(){var t=this._image,e=new z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();ye(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){fe(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Qn=Xn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:oe("video");if(ue(e,"leaflet-image-layer"),this._zoomAnimated&&ue(e,"leaflet-zoom-animated"),this.options.className&&ue(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onloadeddata=i(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),o=[],r=0;r<n.length;r++)o.push(n[r].src);this._url=n.length>0?o:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var a=oe("source");a.src=this._url[s],e.appendChild(a)}}}});var Jn=Xn.extend({_initImage:function(){var t=this._image=this._url;ue(t,"leaflet-image-layer"),this._zoomAnimated&&ue(t,"leaflet-zoom-animated"),this.options.className&&ue(t,this.options.className),t.onselectstart=l,t.onmousemove=l}});var ti=Cn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof $||g(t))?(this._latlng=B(t),d(this,e)):(d(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&fe(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&fe(this._container,1),this.bringToFront(),this.options.interactive&&(ue(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(fe(this._container,0),this._removeTimeout=setTimeout(i(re,void 0,this._container),200)):re(this._container),this.options.interactive&&(he(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=B(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ae(this._container),this},bringToBack:function(){return this._map&&le(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Tn){e=null;var n=this._source._layers;for(var i in n)if(n[i]._map){e=n[i];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=j(this.options.offset),n=this._getAnchor();this._zoomAnimated?ye(this._container,t.add(n)):e=e.add(t).add(n);var i=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=i+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}});Ve.include({_initOverlay:function(t,e,n,i){var o=e;return o instanceof t||(o=new t(i).setContent(e)),n&&o.setLatLng(n),o}}),Cn.include({_initOverlay:function(t,e,n,i){var o=n;return o instanceof t?(d(o,i),o._source=this):(o=e&&!i?e:new t(i,this)).setContent(n),o}});var ei=ti.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,ti.prototype.openOn.call(this,t)},onAdd:function(t){ti.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof zn||this._source.on("preclick",ze))},onRemove:function(t){ti.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof zn||this._source.off("preclick",ze))},getEvents:function(){var t=ti.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=oe("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=oe("div",t+"-content-wrapper",e);if(this._contentNode=oe("div",t+"-content",n),Re(e),Ee(this._contentNode),Ce(e,"contextmenu",ze),this._tipContainer=oe("div",t+"-tip-container",e),this._tip=oe("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=oe("a",t+"-close-button",e);i.setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">×</span>',Ce(i,"click",function(t){Ne(t),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";o&&i>o?(e.height=o+"px",ue(t,r)):he(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();ye(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(ie(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,o=new S(this._containerLeft,-n-this._containerBottom);o._add(_e(this._container));var r=t.layerPointToContainerPoint(o),s=j(this.options.autoPanPadding),a=j(this.options.autoPanPaddingTopLeft||s),l=j(this.options.autoPanPaddingBottomRight||s),c=t.getSize(),u=0,h=0;r.x+i+l.x>c.x&&(u=r.x+i-c.x+l.x),r.x-u-a.x<0&&(u=r.x-a.x),r.y+n+l.y>c.y&&(h=r.y+n-c.y+l.y),r.y-h-a.y<0&&(h=r.y-a.y),(u||h)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([u,h]))}},_getAnchor:function(){return j(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ve.mergeOptions({closePopupOnClick:!0}),Ve.include({openPopup:function(t,e,n){return this._initOverlay(ei,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Cn.include({bindPopup:function(t,e){return this._popup=this._initOverlay(ei,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Tn||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){$e(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof zn?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var ni=ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ti.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){ti.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=ti.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=oe("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+r(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,o=this._container,r=i.latLngToContainerPoint(i.getCenter()),s=i.layerPointToContainerPoint(t),a=this.options.direction,l=o.offsetWidth,c=o.offsetHeight,u=j(this.options.offset),h=this._getAnchor();"top"===a?(e=l/2,n=c):"bottom"===a?(e=l/2,n=0):"center"===a?(e=l/2,n=c/2):"right"===a?(e=0,n=c/2):"left"===a?(e=l,n=c/2):s.x<r.x?(a="right",e=0,n=c/2):(a="left",e=l+2*(u.x+h.x),n=c/2),t=t.subtract(j(e,n,!0)).add(u).add(h),he(o,"leaflet-tooltip-right"),he(o,"leaflet-tooltip-left"),he(o,"leaflet-tooltip-top"),he(o,"leaflet-tooltip-bottom"),ue(o,"leaflet-tooltip-"+a),ye(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&fe(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return j(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Ve.include({openTooltip:function(t,e,n){return this._initOverlay(ni,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Cn.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ni,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Tn||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(Ce(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),Ce(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)})}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),i=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(i)}});var ii=Ln.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(se(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=j(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});Ln.Default=Sn;var oi=Cn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:zt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){d(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),re(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ae(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(le(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof S?t:new S(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,i=-t(-1/0,1/0),o=0,r=n.length;o<r;o++)e=n[o].style.zIndex,n[o]!==this._container&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!zt.ielt9){fe(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var o=this._tiles[i];if(o.current&&o.loaded){var r=Math.min(1,(t-o.loaded)/200);fe(o.el,r),r<1?e=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(k(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this))}},_onOpaqueTile:l,_initContainer:function(){this._container||(this._container=oe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(re(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[t],o=this._map;return i||((i=this._levels[t]={}).el=oe("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,o.getCenter(),o.getZoom()),i.el.offsetWidth,this._onCreateLevel(i)),this._level=i,i}},_onUpdateLevel:l,_onRemoveLevel:l,_onCreateLevel:l,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)re(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,i){var o=Math.floor(t/2),r=Math.floor(e/2),s=n-1,a=new S(+o,+r);a.z=+s;var l=this._tileCoordsToKey(a),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),s>i&&this._retainParent(o,r,s,i))},_retainChildren:function(t,e,n,i){for(var o=2*t;o<2*t+2;o++)for(var r=2*e;r<2*e+2;r++){var s=new S(o,r);s.z=n+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<i&&this._retainChildren(o,r,n+1,i))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,i){var o=Math.round(e);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var r=this.options.updateWhenZooming&&o!==this._tileZoom;i&&!r||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom),o=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();zt.any3d?ge(t.el,o,i):ye(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(n,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(2*i);return new z(o.subtract(r),o.add(r))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var i=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(i),r=o.getCenter(),s=[],a=this.options.keepBuffer,l=new z(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new S(u.x,u.y))||(this._tiles[c].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var h=o.min.y;h<=o.max.y;h++)for(var d=o.min.x;d<=o.max.x;d++){var p=new S(d,h);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:s.push(p)}}if(s.sort(function(t,e){return t.distanceTo(r)-e.distanceTo(r)}),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;d<s.length;d++)this._addTile(s[d],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return N(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),o=i.add(n);return[e.unproject(i,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new R(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new S(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(re(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ue(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,zt.ielt9&&this.options.opacity<1&&fe(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&P(i(this._tileReady,this,t,null,r)),ye(r,n),this._tiles[o]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(fe(n.el,0),k(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(ue(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),zt.ielt9||!this._map._fadeAnimated?P(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new S(this._wrapX?a(t.x,this._wrapX):t.x,this._wrapY?a(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new z(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var ri=oi.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=d(this,e)).detectRetina&&zt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Ce(n,"load",i(this._tileOnLoad,this,e,n)),Ce(n,"error",i(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:zt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=i),n["-y"]=i}return m(this._url,e(n,this.options))},_tileOnLoad:function(t,e){zt.ielt9?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,!e.complete)){e.src=_;var n=this._tiles[t].coords;re(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",_),oi.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==_))return oi.prototype._tileReady.call(this,t,e,n)}});function si(t,e){return new ri(t,e)}var ai=ri.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var i=e({},this.defaultWmsParams);for(var o in n)o in this.options||(i[o]=n[o]);var r=(n=d(this,n)).detectRetina&&zt.retina?2:1,s=this.getTileSize();i.width=s.x*r,i.height=s.y*r,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ri.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=E(n.project(e[0]),n.project(e[1])),o=i.min,r=i.max,s=(this._wmsVersion>=1.3&&this._crs===kn?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),a=ri.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});ri.WMS=ai,si.wms=function(t,e){return new ai(t,e)};var li=Cn.extend({options:{padding:.1},initialize:function(t){d(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ue(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=i.multiplyBy(-n).add(o).subtract(this._map._getNewPixelOrigin(t,e));zt.any3d?ge(this._container,r,n):ye(this._container,r)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new z(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ci=li.extend({options:{tolerance:0},getEvents:function(){var t=li.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){li.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Ce(t,"mousemove",this._onMouseMove,this),Ce(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ce(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){k(this._redrawRequest),delete this._ctx,re(this._container),Te(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){li.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=zt.retina?2:1;ye(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",zt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){li.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[r(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),o=[];for(n=0;n<i.length;n++){if(e=Number(i[n]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||P(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new z,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,o,r,s=t._parts,a=s.length,l=this._ctx;if(a){for(l.beginPath(),n=0;n<a;n++){for(i=0,o=s[n].length;i<o;i++)r=s[n][i],l[i?"lineTo":"moveTo"](r.x,r.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||i)/i;1!==o&&(n.save(),n.scale(1,o)),n.beginPath(),n.arc(e.x,e.y/o,i,0,2*Math.PI,!1),1!==o&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,i=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(i)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(n=e);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(he(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,o,r=this._drawFirst;r;r=r.next)(n=r.layer).options.interactive&&n._containsPoint(e)&&(o=n);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(ue(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(i(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;n&&(n.prev=i,i?i.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;i&&(i.next=n,n?n.prev=i:i&&(this._drawLast=i),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function ui(t){return zt.canvas?new ci(t):null}var hi=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),di={_initContainer:function(){this._container=oe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(li.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=hi("shape");ue(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=hi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;re(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,o=t._container;o.stroked=!!i.stroke,o.filled=!!i.fill,i.stroke?(e||(e=t._stroke=hi("stroke")),o.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=g(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(o.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=hi("fill")),o.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(o.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ae(t._container)},_bringToBack:function(t){le(t._container)}},pi=zt.vml?hi:K,fi=li.extend({_initContainer:function(){this._container=pi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=pi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){re(this._container),Te(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){li.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),ye(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=pi("path");t.options.className&&ue(e,t.options.className),t.options.interactive&&ue(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){re(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Y(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ae(t._path)},_bringToBack:function(t){le(t._path)}});function mi(t){return zt.svg||zt.vml?new fi(t):null}zt.vml&&fi.include(di),Ve.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&ui(t)||mi(t)}});var gi=$n.extend({initialize:function(t,e){$n.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=N(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});fi.create=pi,fi.pointsToPath=Y,Bn.geometryToLayer=Fn,Bn.coordsToLatLng=Zn,Bn.coordsToLatLngs=Hn,Bn.latLngToCoords=Un,Bn.latLngsToCoords=Wn,Bn.getFeature=Vn,Bn.asFeature=qn,Ve.mergeOptions({boxZoom:!0});var yi=Je.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Ce(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Te(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){re(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Gt(),xe(),this._startPoint=this._map.mouseEventToContainerPoint(t),Ce(document,{contextmenu:$e,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=oe("div","leaflet-zoom-box",this._container),ue(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new z(this._point,this._startPoint),n=e.getSize();ye(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(re(this._box),he(this._container,"leaflet-crosshair")),Kt(),be(),Te(document,{contextmenu:$e,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var e=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ve.addInitHook("addHandler","boxZoom",yi),Ve.mergeOptions({doubleClickZoom:!0});var _i=Je.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,o=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});Ve.addInitHook("addHandler","doubleClickZoom",_i),Ve.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var vi=Je.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new nn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ue(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){he(this._map._container,"leaflet-grab"),he(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=N(this._map.options.maxBounds);this._offsetLimit=E(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,r=(i+e+n)%t-e-n,s=Math.abs(o+n)<Math.abs(r+n)?o:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),i)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,a=o.multiplyBy(s/r),l=a.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),u=a.multiplyBy(c/l),h=c/(n.inertiaDeceleration*s),d=u.multiplyBy(-h/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),P(function(){e.panBy(d,{duration:h,easeLinearity:s,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}});Ve.addInitHook("addHandler","dragging",vi),Ve.mergeOptions({keyboard:!0,keyboardPanDelta:80});var xi=Je.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Ce(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Te(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,i=this._panKeys={},o=this.keyCodes;for(e=0,n=o.left.length;e<n;e++)i[o.left[e]]=[-1*t,0];for(e=0,n=o.right.length;e<n;e++)i[o.right[e]]=[t,0];for(e=0,n=o.down.length;e<n;e++)i[o.down[e]]=[0,t];for(e=0,n=o.up.length;e<n;e++)i[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,i=this._zoomKeys={},o=this.keyCodes;for(e=0,n=o.zoomIn.length;e<n;e++)i[o.zoomIn[e]]=t;for(e=0,n=o.zoomOut.length;e<n;e++)i[o.zoomOut[e]]=-t},_addHooks:function(){Ce(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Te(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,i=this._map;if(n in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(e=this._panKeys[n],t.shiftKey&&(e=j(e).multiplyBy(3)),i.options.maxBounds&&(e=i._limitOffset(j(e),i.options.maxBounds)),i.options.worldCopyJump){var o=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(e)));i.panTo(o)}else i.panBy(e)}else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}$e(t)}}});Ve.addInitHook("addHandler","keyboard",xi),Ve.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var bi=Je.extend({addHooks:function(){Ce(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Te(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ze(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),o),$e(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var i=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,r=n?Math.ceil(o/n)*n:o,s=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0,this._startTime=null,s&&("center"===t.options.scrollWheelZoom?t.setZoom(e+s):t.setZoomAround(this._lastMousePos,e+s))}});Ve.addInitHook("addHandler","scrollWheelZoom",bi);Ve.mergeOptions({tapHold:zt.touchNative&&zt.safari&&zt.mobile,tapTolerance:15});var wi=Je.extend({addHooks:function(){Ce(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Te(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new S(e.clientX,e.clientY),this._holdTimeout=setTimeout(i(function(){this._cancel(),this._isTapValid()&&(Ce(document,"touchend",Ne),Ce(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),600),Ce(document,"touchend touchcancel contextmenu",this._cancel,this),Ce(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Te(document,"touchend",Ne),Te(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Te(document,"touchend touchcancel contextmenu",this._cancel,this),Te(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new S(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});Ve.addInitHook("addHandler","tapHold",wi),Ve.mergeOptions({touchZoom:zt.touch,bounceAtZoomLimits:!0});var Ai=Je.extend({addHooks:function(){ue(this._map._container,"leaflet-touch-zoom"),Ce(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){he(this._map._container,"leaflet-touch-zoom"),Te(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Ce(document,"touchmove",this._onTouchMove,this),Ce(document,"touchend touchcancel",this._onTouchEnd,this),Ne(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),r=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&r>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===r)return}else{var s=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===r&&0===s.x&&0===s.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),k(this._animRequest);var a=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=P(a,this,!0),Ne(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,k(this._animRequest),Te(document,"touchmove",this._onTouchMove,this),Te(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ve.addInitHook("addHandler","touchZoom",Ai),Ve.BoxZoom=yi,Ve.DoubleClickZoom=_i,Ve.Drag=vi,Ve.Keyboard=xi,Ve.ScrollWheelZoom=bi,Ve.TapHold=wi,Ve.TouchZoom=Ai,t.Bounds=z,t.Browser=zt,t.CRS=D,t.Canvas=ci,t.Circle=Rn,t.CircleMarker=En,t.Class=C,t.Control=qe,t.DivIcon=ii,t.DivOverlay=ti,t.DomEvent=Ue,t.DomUtil=Me,t.Draggable=nn,t.Evented=T,t.FeatureGroup=Tn,t.GeoJSON=Bn,t.GridLayer=oi,t.Handler=Je,t.Icon=Ln,t.ImageOverlay=Xn,t.LatLng=$,t.LatLngBounds=R,t.Layer=Cn,t.LayerGroup=In,t.LineUtil=xn,t.Map=Ve,t.Marker=jn,t.Mixin=tn,t.Path=zn,t.Point=S,t.PolyUtil=ln,t.Polygon=$n,t.Polyline=Nn,t.Popup=ei,t.PosAnimation=We,t.Projection=An,t.Rectangle=gi,t.Renderer=li,t.SVG=fi,t.SVGOverlay=Jn,t.TileLayer=ri,t.Tooltip=ni,t.Transformation=W,t.Util=M,t.VideoOverlay=Qn,t.bind=i,t.bounds=E,t.canvas=ui,t.circle=function(t,e,n){return new Rn(t,e,n)},t.circleMarker=function(t,e){return new En(t,e)},t.control=Ge,t.divIcon=function(t){return new ii(t)},t.extend=e,t.featureGroup=function(t,e){return new Tn(t,e)},t.geoJSON=Kn,t.geoJson=Yn,t.gridLayer=function(t){return new oi(t)},t.icon=function(t){return new Ln(t)},t.imageOverlay=function(t,e,n){return new Xn(t,e,n)},t.latLng=B,t.latLngBounds=N,t.layerGroup=function(t,e){return new In(t,e)},t.map=function(t,e){return new Ve(t,e)},t.marker=function(t,e){return new jn(t,e)},t.point=j,t.polygon=function(t,e){return new $n(t,e)},t.polyline=function(t,e){return new Nn(t,e)},t.popup=function(t,e){return new ei(t,e)},t.rectangle=function(t,e){return new gi(t,e)},t.setOptions=d,t.stamp=r,t.svg=mi,t.svgOverlay=function(t,e,n){return new Jn(t,e,n)},t.tileLayer=si,t.tooltip=function(t,e){return new ni(t,e)},t.transformation=V,t.version="1.9.4",t.videoOverlay=function(t,e,n){return new Qn(t,e,n)};var Pi=window.L;t.noConflict=function(){return window.L=Pi,this},window.L=t}(e)},4405(t,e){"use strict";Symbol.for("react.transitional.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.consumer"),Symbol.for("react.context");var n=Symbol.for("react.forward_ref"),i=(Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"));Symbol.for("react.lazy"),Symbol.for("react.view_transition"),Symbol.for("react.client.reference");e.vM=n,e.lD=i},1020(t,e,n){"use strict";var i=n(690),o=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var i,r={},c=null,u=null;for(i in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)s.call(e,i)&&!l.hasOwnProperty(i)&&(r[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===r[i]&&(r[i]=e[i]);return{$$typeof:o,type:t,key:c,ref:u,props:r,_owner:a.current}}e.Fragment=r,e.jsx=c,e.jsxs=c},4848(t,e,n){"use strict";t.exports=n(1020)},5072(t){"use strict";var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var r={},s=[],a=0;a<t.length;a++){var l=t[a],c=i.base?l[0]+i.base:l[0],u=r[c]||0,h="".concat(c," ").concat(u);r[c]=u+1;var d=n(h),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var f=o(p,i);i.byIndex=a,e.splice(a,0,{identifier:h,updater:f,references:1})}s.push(h)}return s}function o(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,o){var r=i(t=t||[],o=o||{});return function(t){t=t||[];for(var s=0;s<r.length;s++){var a=n(r[s]);e[a].references--}for(var l=i(t,o),c=0;c<r.length;c++){var u=n(r[c]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}r=l}}},7659(t){"use strict";var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},540(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},5056(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7825(t){"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,o&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},1113(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},6426(t,e,n){"use strict";t.exports=n.p+"8f2c4d11474275fbc161.png"},3982(t,e,n){"use strict";t.exports=n.p+"416d91365b44e4b4f477.png"},9927(t,e,n){"use strict";t.exports=n.p+"2b3e1faf89f94a483539.png"},476(t){"use strict";t.exports=n},4774(t){"use strict";t.exports=i},674(t){"use strict";t.exports=e},1054(t){"use strict";t.exports=r},1386(t){"use strict";t.exports=s},690(e){"use strict";e.exports=t},1658(t){"use strict";t.exports=o},4634(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(null,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4994(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},4893(t){t.exports=function(t,e){if(null==t)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;n[i]=t[i]}return n},t.exports.__esModule=!0,t.exports.default=t.exports},8168(t,e,n){"use strict";function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i.apply(null,arguments)}n.d(e,{A:()=>i})},8587(t,e,n){"use strict";function i(t,e){if(null==t)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;n[i]=t[i]}return n}n.d(e,{A:()=>i})},4164(t,e,n){"use strict";function i(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=i(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}n.d(e,{A:()=>o});const o=function(){for(var t,e,n=0,o="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=i(t))&&(o&&(o+=" "),o+=e);return o}}},l={};function c(t){var e=l[t];if(void 0!==e)return e.exports;var n=l[t]={id:t,exports:{}};return a[t].call(n.exports,n,n.exports,c),n.exports}c.m=a,c.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return c.d(e,{a:e}),e},c.d=(t,e)=>{for(var n in e)c.o(e,n)&&!c.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),c.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),c.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;c.g.importScripts&&(t=c.g.location+"");var e=c.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!t||!/^http(s?):/.test(t));)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=t})(),c.b="undefined"!=typeof document&&document.baseURI||self.location.href,c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{ActivityFeed:()=>dy,AreaChart:()=>e_,BarChart:()=>wg,Button:()=>o,DEFAULT_CHART_MARGIN:()=>rm,DataTable:()=>fy,DonutChart:()=>ny,GeoPoints:()=>t_,KpiStatsCard:()=>sy,LineChart:()=>pm,ScatterChart:()=>Gm,compactNumber:()=>lm,formatRelativeTime:()=>hy,resolveMargin:()=>sm,truncatedTickFormatter:()=>um});var t=c(690),e=c.n(t),n=c(674),i=c(4848);const o=({children:t,loading:e=!1,disabled:o,variant:r="contained",startIcon:s,...a})=>(0,i.jsx)(n.Button,{variant:r,disabled:o||e,startIcon:e?(0,i.jsx)(n.CircularProgress,{size:16,color:"inherit"}):s,...a,children:t});var r=c(8168),s=c(7379),a=c(8749),l=c(476);const h=(0,a.A)(),d=function(e=h){return function(e=null){const n=t.useContext(l.ThemeContext);return n&&(i=n,0!==Object.keys(i).length)?n:e;var i}(e)};var p=c(2765),f=c(8312);function m({props:t,name:e}){return function({props:t,name:e,defaultTheme:n,themeId:i}){let o=d(n);i&&(o=o[i]||o);const r=function(t){const{theme:e,name:n,props:i}=t;return e&&e.components&&e.components[n]&&e.components[n].defaultProps?(0,s.A)(e.components[n].defaultProps,i):i}({theme:o,name:e,props:t});return r}({props:t,name:e,defaultTheme:p.A,themeId:f.A})}var g=c(8587);function y(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function _(t){return function(){return t}}function v(t){this._context=t}function x(t){return new v(t)}Object.defineProperty(y,"name",{value:"default",configurable:!0}),Array.prototype.slice,Object.defineProperty(_,"name",{value:"default",configurable:!0}),Object.defineProperty(x,"name",{value:"default",configurable:!0}),v.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};const b=Math.PI,w=2*b,A=1e-6,P=w-A;function k(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class M{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?k:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return k;const n=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,i){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,e,n,i,o,r){this._append`C${+t},${+e},${+n},${+i},${this._x1=+o},${this._y1=+r}`}arcTo(t,e,n,i,o){if(t=+t,e=+e,n=+n,i=+i,(o=+o)<0)throw new Error(`negative radius: ${o}`);let r=this._x1,s=this._y1,a=n-t,l=i-e,c=r-t,u=s-e,h=c*c+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>A)if(Math.abs(u*a-l*c)>A&&o){let d=n-r,p=i-s,f=a*a+l*l,m=d*d+p*p,g=Math.sqrt(f),y=Math.sqrt(h),_=o*Math.tan((b-Math.acos((f+h-m)/(2*g*y)))/2),v=_/y,x=_/g;Math.abs(v-1)>A&&this._append`L${t+v*c},${e+v*u}`,this._append`A${o},${o},0,0,${+(u*d>c*p)},${this._x1=t+x*a},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,i,o,r){if(t=+t,e=+e,r=!!r,(n=+n)<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),a=n*Math.sin(i),l=t+s,c=e+a,u=1^r,h=r?i-o:o-i;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>A||Math.abs(this._y1-c)>A)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%w+w),h>P?this._append`A${n},${n},0,1,${u},${t-s},${e-a}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:h>A&&this._append`A${n},${n},0,${+(h>=b)},${u},${this._x1=t+n*Math.cos(o)},${this._y1=e+n*Math.sin(o)}`)}rect(t,e,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function C(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new M(e)}function I(t){return t[0]}function T(t){return t[1]}function L(t,e){var n=_(!0),i=null,o=x,r=null,s=C(a);function a(a){var l,c,u,h=(a=y(a)).length,d=!1;for(null==i&&(r=o(u=s())),l=0;l<=h;++l)!(l<h&&n(c=a[l],l,a))===d&&((d=!d)?r.lineStart():r.lineEnd()),d&&r.point(+t(c,l,a),+e(c,l,a));if(u)return r=null,u+""||null}return t="function"==typeof t?t:void 0===t?I:_(t),e="function"==typeof e?e:void 0===e?T:_(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:_(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:_(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:_(!!t),a):n},a.curve=function(t){return arguments.length?(o=t,null!=i&&(r=o(i)),a):o},a.context=function(t){return arguments.length?(null==t?i=r=null:r=o(i=t),a):i},a}function S(t,e,n){var i=null,o=_(!0),r=null,s=x,a=null,l=C(c);function c(c){var u,h,d,p,f,m=(c=y(c)).length,g=!1,_=new Array(m),v=new Array(m);for(null==r&&(a=s(f=l())),u=0;u<=m;++u){if(!(u<m&&o(p=c[u],u,c))===g)if(g=!g)h=u,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),d=u-1;d>=h;--d)a.point(_[d],v[d]);a.lineEnd(),a.areaEnd()}g&&(_[u]=+t(p,u,c),v[u]=+e(p,u,c),a.point(i?+i(p,u,c):_[u],n?+n(p,u,c):v[u]))}if(f)return a=null,f+""||null}function u(){return L().defined(o).curve(s).context(r)}return t="function"==typeof t?t:void 0===t?I:_(+t),e="function"==typeof e?e:_(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?T:_(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:_(+e),i=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:_(+e),c):t},c.x1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:_(+t),c):i},c.y=function(t){return arguments.length?(e="function"==typeof t?t:_(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:_(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:_(+t),c):n},c.lineX0=c.lineY0=function(){return u().x(t).y(e)},c.lineY1=function(){return u().x(t).y(n)},c.lineX1=function(){return u().x(i).y(e)},c.defined=function(t){return arguments.length?(o="function"==typeof t?t:_(!!t),c):o},c.curve=function(t){return arguments.length?(s=t,null!=r&&(a=s(r)),c):s},c.context=function(t){return arguments.length?(null==t?r=a=null:a=s(r=t),c):r},c}Object.defineProperty(L,"name",{value:"default",configurable:!0}),Object.defineProperty(S,"name",{value:"default",configurable:!0});const O=t.createContext({isInitialized:!1,data:{xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]}}),j=()=>{const{data:e}=t.useContext(O);return e};var z=c(5659),E=c(1523);var R=c(4164);const N=function(t){if(void 0===t)return{};const e={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&"function"==typeof t[e])).forEach(n=>{e[n]=t[n]}),e},$=function(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:s}=t;if(!e){const t=(0,R.A)(null==n?void 0:n.className,s,null==o?void 0:o.className,null==i?void 0:i.className),e=(0,r.A)({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),a=(0,r.A)({},n,o,i);return t.length>0&&(a.className=t),Object.keys(e).length>0&&(a.style=e),{props:a,internalRef:void 0}}const a=function(t,e=[]){if(void 0===t)return{};const n={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof t[n]&&!e.includes(n)).forEach(e=>{n[e]=t[e]}),n}((0,r.A)({},o,i)),l=N(i),c=N(o),u=e(a),h=(0,R.A)(null==u?void 0:u.className,null==n?void 0:n.className,s,null==o?void 0:o.className,null==i?void 0:i.className),d=(0,r.A)({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),p=(0,r.A)({},u,n,c,l);return h.length>0&&(p.className=h),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}},B=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"],F=function(t){var e;const{elementType:n,externalSlotProps:i,ownerState:o,skipResolvingSlotProps:s=!1}=t,a=(0,g.A)(t,B),l=s?{}:function(t,e,n){return"function"==typeof t?t(e,n):t}(i,o),{props:c,internalRef:u}=$((0,r.A)({},a,{externalSlotProps:l})),h=(0,E.A)(u,null==l?void 0:l.ref,null==(e=t.additionalProps)?void 0:e.ref);return function(t,e,n){return void 0===t||"string"==typeof t?e:(0,r.A)({},e,{ownerState:(0,r.A)({},e.ownerState,n)})}(n,(0,r.A)({},c,{ref:h}),o)};var D=c(1609),Z=c(8413);const H=t.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null}),U=(t,e)=>{switch(e.type){case"enterItem":return(0,r.A)({},t,{item:e.data});case"exitChart":return null===t.item&&null===t.axis.x&&null===t.axis.y?t:(0,r.A)({},t,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return(0,r.A)({},t,{useVoronoiInteraction:e.useVoronoiInteraction});case"leaveItem":return null===t.item||Object.keys(e.data).some(n=>e.data[n]!==t.item[n])?t:(0,r.A)({},t,{item:null});case"updateAxis":return e.data.x===t.axis.x&&e.data.y===t.axis.y?t:(0,r.A)({},t,{axis:e.data});default:return t}};function W(e){const{children:n}=e,[o,s]=t.useReducer(U,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),a=t.useMemo(()=>(0,r.A)({},o,{dispatch:s}),[o]);return(0,i.jsx)(H.Provider,{value:a,children:n})}const V=t.createContext({isInitialized:!1,data:{highlightedItem:null,setHighlighted:()=>{},clearHighlighted:()=>{},isHighlighted:()=>!1,isFaded:()=>!1}});function q(){const{isInitialized:e,data:n}=t.useContext(V);if(!e)throw new Error(["MUI X: Could not find the highlighted ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n}const G=e=>{const{dispatch:n}=t.useContext(H),{setHighlighted:i,clearHighlighted:o}=q();return e?()=>({}):t=>({onPointerEnter:()=>{n({type:"enterItem",data:t}),i({seriesId:t.seriesId,dataIndex:t.dataIndex})},onPointerLeave:e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),n({type:"leaveItem",data:t}),o()},onPointerDown:t=>{t.currentTarget.hasPointerCapture(t.pointerId)&&t.currentTarget.releasePointerCapture(t.pointerId)}})};var K=c(9245),Y=dt(),X=t=>lt(t,Y),Q=dt();X.write=t=>lt(t,Q);var J=dt();X.onStart=t=>lt(t,J);var tt=dt();X.onFrame=t=>lt(t,tt);var et=dt();X.onFinish=t=>lt(t,et);var nt=[];X.setTimeout=(t,e)=>{const n=X.now()+e,i=()=>{const t=nt.findIndex(t=>t.cancel==i);~t&&nt.splice(t,1),st-=~t?1:0},o={time:n,handler:t,cancel:i};return nt.splice(it(n),0,o),st+=1,ct(),o};var it=t=>~(~nt.findIndex(e=>e.time>t)||~nt.length);X.cancel=t=>{J.delete(t),tt.delete(t),et.delete(t),Y.delete(t),Q.delete(t)},X.sync=t=>{at=!0,X.batchedUpdates(t),at=!1},X.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function i(...t){e=t,X.onStart(n)}return i.handler=t,i.cancel=()=>{J.delete(n),e=null},i};var ot="undefined"!=typeof window?window.requestAnimationFrame:()=>{};X.use=t=>ot=t,X.now="undefined"!=typeof performance?()=>performance.now():Date.now,X.batchedUpdates=t=>t(),X.catch=console.error,X.frameLoop="always",X.advance=()=>{"demand"!==X.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):ht()};var rt=-1,st=0,at=!1;function lt(t,e){at?(e.delete(t),t(0)):(e.add(t),ct())}function ct(){rt<0&&(rt=0,"demand"!==X.frameLoop&&ot(ut))}function ut(){~rt&&(ot(ut),X.batchedUpdates(ht))}function ht(){const t=rt;rt=X.now();const e=it(rt);e&&(pt(nt.splice(0,e),t=>t.handler()),st-=e),st?(J.flush(),Y.flush(t?Math.min(64,rt-t):16.667),tt.flush(),Q.flush(),et.flush()):rt=-1}function dt(){let t=new Set,e=t;return{add(n){st+=e!=t||t.has(n)?0:1,t.add(n)},delete:n=>(st-=e==t&&t.has(n)?1:0,t.delete(n)),flush(n){e.size&&(t=new Set,st-=e.size,pt(e,e=>e(n)&&t.add(e)),st+=t.size,e=t)}}}function pt(t,e){t.forEach(t=>{try{e(t)}catch(t){X.catch(t)}})}var ft=Object.defineProperty,mt={};function gt(){}((t,e)=>{for(var n in e)ft(t,n,{get:e[n],enumerable:!0})})(mt,{assign:()=>Lt,colors:()=>Ct,createStringInterpolator:()=>At,skipAnimation:()=>It,to:()=>Pt,willAdvance:()=>Tt});var yt={arr:Array.isArray,obj:t=>!!t&&"Object"===t.constructor.name,fun:t=>"function"==typeof t,str:t=>"string"==typeof t,num:t=>"number"==typeof t,und:t=>void 0===t};function _t(t,e){if(yt.arr(t)){if(!yt.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}var vt=(t,e)=>t.forEach(e);function xt(t,e,n){if(yt.arr(t))for(let i=0;i<t.length;i++)e.call(n,t[i],`${i}`);else for(const i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i)}var bt=t=>yt.und(t)?[]:yt.arr(t)?t:[t];function wt(t,e){if(t.size){const n=Array.from(t);t.clear(),vt(n,e)}}var At,Pt,kt=(t,...e)=>wt(t,t=>t(...e)),Mt=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ct=null,It=!1,Tt=gt,Lt=t=>{t.to&&(Pt=t.to),t.now&&(X.now=t.now),void 0!==t.colors&&(Ct=t.colors),null!=t.skipAnimation&&(It=t.skipAnimation),t.createStringInterpolator&&(At=t.createStringInterpolator),t.requestAnimationFrame&&X.use(t.requestAnimationFrame),t.batchedUpdates&&(X.batchedUpdates=t.batchedUpdates),t.willAdvance&&(Tt=t.willAdvance),t.frameLoop&&(X.frameLoop=t.frameLoop)},St=new Set,Ot=[],jt=[],zt=0,Et={get idle(){return!St.size&&!Ot.length},start(t){zt>t.priority?(St.add(t),X.onStart(Rt)):(Nt(t),X(Bt))},advance:Bt,sort(t){if(zt)X.onFrame(()=>Et.sort(t));else{const e=Ot.indexOf(t);~e&&(Ot.splice(e,1),$t(t))}},clear(){Ot=[],St.clear()}};function Rt(){St.forEach(Nt),St.clear(),X(Bt)}function Nt(t){Ot.includes(t)||$t(t)}function $t(t){Ot.splice(function(e){const n=e.findIndex(e=>e.priority>t.priority);return n<0?e.length:n}(Ot),0,t)}function Bt(t){const e=jt;for(let n=0;n<Ot.length;n++){const i=Ot[n];zt=i.priority,i.idle||(Tt(i),i.advance(t),i.idle||e.push(i))}return zt=0,(jt=Ot).length=0,(Ot=e).length>0}var Ft="[-+]?\\d*\\.?\\d+",Dt=Ft+"%";function Zt(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var Ht=new RegExp("rgb"+Zt(Ft,Ft,Ft)),Ut=new RegExp("rgba"+Zt(Ft,Ft,Ft,Ft)),Wt=new RegExp("hsl"+Zt(Ft,Dt,Dt)),Vt=new RegExp("hsla"+Zt(Ft,Dt,Dt,Ft)),qt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Gt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Kt=/^#([0-9a-fA-F]{6})$/,Yt=/^#([0-9a-fA-F]{8})$/;function Xt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Qt(t,e,n){const i=n<.5?n*(1+e):n+e-n*e,o=2*n-i,r=Xt(o,i,t+1/3),s=Xt(o,i,t),a=Xt(o,i,t-1/3);return Math.round(255*r)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function Jt(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function te(t){return(parseFloat(t)%360+360)%360/360}function ee(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(255*e)}function ne(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function ie(t){let e=function(t){let e;return"number"==typeof t?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Kt.exec(t))?parseInt(e[1]+"ff",16)>>>0:Ct&&void 0!==Ct[t]?Ct[t]:(e=Ht.exec(t))?(Jt(e[1])<<24|Jt(e[2])<<16|Jt(e[3])<<8|255)>>>0:(e=Ut.exec(t))?(Jt(e[1])<<24|Jt(e[2])<<16|Jt(e[3])<<8|ee(e[4]))>>>0:(e=qt.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Yt.exec(t))?parseInt(e[1],16)>>>0:(e=Gt.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Wt.exec(t))?(255|Qt(te(e[1]),ne(e[2]),ne(e[3])))>>>0:(e=Vt.exec(t))?(Qt(te(e[1]),ne(e[2]),ne(e[3]))|ee(e[4]))>>>0:null}(t);return null===e?t:(e=e||0,`rgba(${(4278190080&e)>>>24}, ${(16711680&e)>>>16}, ${(65280&e)>>>8}, ${(255&e)/255})`)}var oe=(t,e,n)=>{if(yt.fun(t))return t;if(yt.arr(t))return oe({range:t,output:e,extrapolate:n});if(yt.str(t.output[0]))return At(t);const i=t,o=i.output,r=i.range||[0,1],s=i.extrapolateLeft||i.extrapolate||"extend",a=i.extrapolateRight||i.extrapolate||"extend",l=i.easing||(t=>t);return t=>{const e=function(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}(t,r);return function(t,e,n,i,o,r,s,a,l){let c=l?l(t):t;if(c<e){if("identity"===s)return c;"clamp"===s&&(c=e)}if(c>n){if("identity"===a)return c;"clamp"===a&&(c=n)}return i===o?i:e===n?t<=e?i:o:(e===-1/0?c=-c:n===1/0?c-=e:c=(c-e)/(n-e),c=r(c),i===-1/0?c=-c:o===1/0?c+=i:c=c*(o-i)+i,c)}(t,r[e],r[e+1],o[e],o[e+1],l,s,a,i.map)}},re=1.70158,se=1.525*re,ae=re+1,le=2*Math.PI/3,ce=2*Math.PI/4.5,ue=t=>{const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},he={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>0===t?0:Math.pow(2,10*t-10),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>0===t?0:1===t?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>ae*t*t*t-re*t*t,easeOutBack:t=>1+ae*Math.pow(t-1,3)+re*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*(7.189819*t-se)/2:(Math.pow(2*t-2,2)*((se+1)*(2*t-2)+se)+2)/2,easeInElastic:t=>0===t?0:1===t?1:-Math.pow(2,10*t-10)*Math.sin((10*t-10.75)*le),easeOutElastic:t=>0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin((10*t-.75)*le)+1,easeInOutElastic:t=>0===t?0:1===t?1:t<.5?-Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*ce)/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*ce)/2+1,easeInBounce:t=>1-ue(1-t),easeOutBounce:ue,easeInOutBounce:t=>t<.5?(1-ue(1-2*t))/2:(1+ue(2*t-1))/2,steps:(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t;return o=("end"===e?Math.floor(i):Math.ceil(i))/t,Math.min(Math.max(o,0),1);var o}},de=Symbol.for("FluidValue.get"),pe=Symbol.for("FluidValue.observers"),fe=t=>Boolean(t&&t[de]),me=t=>t&&t[de]?t[de]():t,ge=t=>t[pe]||null;function ye(t,e){const n=t[pe];n&&n.forEach(t=>{!function(t,e){t.eventObserved?t.eventObserved(e):t(e)}(t,e)})}var _e=class{constructor(t){if(!t&&!(t=this.get))throw Error("Unknown getter");ve(this,t)}},ve=(t,e)=>Ae(t,de,e);function xe(t,e){if(t[de]){let n=t[pe];n||Ae(t,pe,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function be(t,e){const n=t[pe];if(n&&n.has(e)){const i=n.size-1;i?n.delete(e):t[pe]=null,t.observerRemoved&&t.observerRemoved(i,e)}}var we,Ae=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),Pe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ke=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Me=new RegExp(`(${Pe.source})(%|[a-z]+)`,"i"),Ce=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ie=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Te=t=>{const[e,n]=Le(t);if(!e||Mt())return t;const i=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(i)return i.trim();if(n&&n.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(n)||t}return n&&Ie.test(n)?Te(n):n||t},Le=t=>{const e=Ie.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]},Se=(t,e,n,i,o)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(i)}, ${o})`,Oe=t=>{we||(we=Ct?new RegExp(`(${Object.keys(Ct).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(t=>me(t).replace(Ie,Te).replace(ke,ie).replace(we,ie)),n=e.map(t=>t.match(Pe).map(Number)),i=n[0].map((t,e)=>n.map(t=>{if(!(e in t))throw Error('The arity of each "output" value must be equal');return t[e]})).map(e=>oe({...t,output:e}));return t=>{const n=!Me.test(e[0])&&e.find(t=>Me.test(t))?.replace(Pe,"");let o=0;return e[0].replace(Pe,()=>`${i[o++](t)}${n||""}`).replace(Ce,Se)}},je="react-spring: ",ze=t=>{const e=t;let n=!1;if("function"!=typeof e)throw new TypeError(`${je}once requires a function parameter`);return(...t)=>{n||(e(...t),n=!0)}},Ee=ze(console.warn),Re=ze(console.warn);function Ne(t){return yt.str(t)&&("#"==t[0]||/\d/.test(t)||!Mt()&&Ie.test(t)||t in(Ct||{}))}var $e=Mt()?t.useEffect:t.useLayoutEffect;function Be(){const e=(0,t.useState)()[1],n=(()=>{const e=(0,t.useRef)(!1);return $e(()=>(e.current=!0,()=>{e.current=!1}),[]),e})();return()=>{n.current&&e(Math.random())}}var Fe=e=>(0,t.useEffect)(e,De),De=[];function Ze(e){const n=(0,t.useRef)();return(0,t.useEffect)(()=>{n.current=e}),n.current}var He=Symbol.for("Animated:node"),Ue=t=>t&&t[He],We=(t,e)=>((t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}))(t,He,e),Ve=t=>t&&t[He]&&t[He].getPayload(),qe=class{constructor(){We(this,this)}getPayload(){return this.payload||[]}},Ge=class extends qe{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,yt.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Ge(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return yt.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value!==t&&(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,yt.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Ke=class extends Ge{constructor(t){super(0),this._string=null,this._toString=oe({output:[t,t]})}static create(t){return new Ke(t)}getValue(){const t=this._string;return null==t?this._string=this._toString(this._value):t}setValue(t){if(yt.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else{if(!super.setValue(t))return!1;this._string=null}return!0}reset(t){t&&(this._toString=oe({output:[this.getValue(),t]})),this._value=0,super.reset()}},Ye={dependencies:null},Xe=class extends qe{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const e={};return xt(this.source,(n,i)=>{(t=>!!t&&t[He]===t)(n)?e[i]=n.getValue(t):fe(n)?e[i]=me(n):t||(e[i]=n)}),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&vt(this.payload,t=>t.reset())}_makePayload(t){if(t){const e=new Set;return xt(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){Ye.dependencies&&fe(t)&&Ye.dependencies.add(t);const e=Ve(t);e&&vt(e,t=>this.add(t))}},Qe=class extends Xe{constructor(t){super(t)}static create(t){return new Qe(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const e=this.getPayload();return t.length==e.length?e.map((e,n)=>e.setValue(t[n])).some(Boolean):(super.setValue(t.map(Je)),!0)}};function Je(t){return(Ne(t)?Ke:Ge).create(t)}function tn(t){const e=Ue(t);return e?e.constructor:yt.arr(t)?Qe:Ne(t)?Ke:Ge}var en=(e,n)=>{const i=!yt.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,t.forwardRef)((o,r)=>{const s=(0,t.useRef)(null),a=i&&(0,t.useCallback)(t=>{s.current=function(t,e){return t&&(yt.fun(t)?t(e):t.current=e),e}(r,t)},[r]),[l,c]=function(t,e){const n=new Set;return Ye.dependencies=n,t.style&&(t={...t,style:e.createAnimatedStyle(t.style)}),t=new Xe(t),Ye.dependencies=null,[t,n]}(o,n),u=Be(),h=()=>{const t=s.current;i&&!t||!1===(!!t&&n.applyAnimatedValues(t,l.getValue(!0)))&&u()},d=new nn(h,c),p=(0,t.useRef)();$e(()=>(p.current=d,vt(c,t=>xe(t,d)),()=>{p.current&&(vt(p.current.deps,t=>be(t,p.current)),X.cancel(p.current.update))})),(0,t.useEffect)(h,[]),Fe(()=>()=>{const t=p.current;vt(t.deps,e=>be(e,t))});const f=n.getComponentProps(l.getValue());return t.createElement(e,{...f,ref:a})})},nn=class{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){"change"==t.type&&X.write(this.update)}},on=Symbol.for("AnimatedComponent"),rn=t=>yt.str(t)?t:t&&yt.str(t.displayName)?t.displayName:yt.fun(t)&&t.name||null;function sn(t,...e){return yt.fun(t)?t(...e):t}var an=(t,e)=>!0===t||!!(e&&t&&(yt.fun(t)?t(e):bt(t).includes(e))),ln=(t,e)=>yt.obj(t)?e&&t[e]:t,cn=(t,e)=>!0===t.default?t[e]:t.default?t.default[e]:void 0,un=t=>t,hn=(t,e=un)=>{let n=dn;t.default&&!0!==t.default&&(t=t.default,n=Object.keys(t));const i={};for(const o of n){const n=e(t[o],o);yt.und(n)||(i[o]=n)}return i},dn=["config","onProps","onStart","onChange","onPause","onResume","onRest"],pn={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function fn(t){const e=function(t){const e={};let n=0;if(xt(t,(t,i)=>{pn[i]||(e[i]=t,n++)}),n)return e}(t);if(e){const n={to:e};return xt(t,(t,i)=>i in e||(n[i]=t)),n}return{...t}}function mn(t){return t=me(t),yt.arr(t)?t.map(mn):Ne(t)?mt.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function gn(t){for(const e in t)return!0;return!1}function yn(t){return yt.fun(t)||yt.arr(t)&&yt.obj(t[0])}function _n(t,e){t.ref?.delete(t),e?.delete(t)}function vn(t,e){e&&t.ref!==e&&(t.ref?.delete(t),e.add(t),t.ref=e)}var xn={tension:170,friction:26,mass:1,damping:1,easing:he.linear,clamp:!1},bn=class{constructor(){this.velocity=0,Object.assign(this,xn)}};function wn(t,e){if(yt.und(e.decay)){const n=!yt.und(e.tension)||!yt.und(e.friction);!n&&yt.und(e.frequency)&&yt.und(e.damping)&&yt.und(e.mass)||(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}else t.duration=void 0}var An=[],Pn=class{constructor(){this.changed=!1,this.values=An,this.toValues=null,this.fromValues=An,this.config=new bn,this.immediate=!1}};function kn(t,{key:e,props:n,defaultProps:i,state:o,actions:r}){return new Promise((s,a)=>{let l,c,u=an(n.cancel??i?.cancel,e);if(u)p();else{yt.und(n.pause)||(o.paused=an(n.pause,e));let t=i?.pause;!0!==t&&(t=o.paused||an(t,e)),l=sn(n.delay||0,e),t?(o.resumeQueue.add(d),r.pause()):(r.resume(),d())}function h(){o.resumeQueue.add(d),o.timeouts.delete(c),c.cancel(),l=c.time-X.now()}function d(){l>0&&!mt.skipAnimation?(o.delayed=!0,c=X.setTimeout(p,l),o.pauseQueue.add(h),o.timeouts.add(c)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(h),o.timeouts.delete(c),t<=(o.cancelId||0)&&(u=!0);try{r.start({...n,callId:t,cancel:u},s)}catch(t){a(t)}}})}var Mn=(t,e)=>1==e.length?e[0]:e.some(t=>t.cancelled)?Tn(t.get()):e.every(t=>t.noop)?Cn(t.get()):In(t.get(),e.every(t=>t.finished)),Cn=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),In=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),Tn=t=>({value:t,cancelled:!0,finished:!1});function Ln(t,e,n,i){const{callId:o,parentId:r,onRest:s}=e,{asyncTo:a,promise:l}=n;return r||t!==a||e.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=t;const c=hn(e,(t,e)=>"onRest"===e?void 0:t);let u,h;const d=new Promise((t,e)=>(u=t,h=e)),p=t=>{const e=o<=(n.cancelId||0)&&Tn(i)||o!==n.asyncId&&In(i,!1);if(e)throw t.result=e,h(t),t},f=(t,e)=>{const r=new On,s=new jn;return(async()=>{if(mt.skipAnimation)throw Sn(n),s.result=In(i,!1),h(s),s;p(r);const a=yt.obj(t)?{...t}:{...e,to:t};a.parentId=o,xt(c,(t,e)=>{yt.und(a[e])&&(a[e]=t)});const l=await i.start(a);return p(r),n.paused&&await new Promise(t=>{n.resumeQueue.add(t)}),l})()};let m;if(mt.skipAnimation)return Sn(n),In(i,!1);try{let e;e=yt.arr(t)?(async t=>{for(const e of t)await f(e)})(t):Promise.resolve(t(f,i.stop.bind(i))),await Promise.all([e.then(u),d]),m=In(i.get(),!0,!1)}catch(t){if(t instanceof On)m=t.result;else{if(!(t instanceof jn))throw t;m=t.result}}finally{o==n.asyncId&&(n.asyncId=r,n.asyncTo=r?a:void 0,n.promise=r?l:void 0)}return yt.fun(s)&&X.batchedUpdates(()=>{s(m,i,i.item)}),m})():l}function Sn(t,e){wt(t.timeouts,t=>t.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}var On=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},jn=class extends Error{constructor(){super("SkipAnimationSignal")}},zn=t=>t instanceof Rn,En=1,Rn=class extends _e{constructor(){super(...arguments),this.id=En++,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Ue(this);return t&&t.getValue()}to(...t){return mt.to(this,t)}interpolate(...t){return Ee(`${je}The "interpolate" function is deprecated in v9 (use "to" instead)`),mt.to(this,t)}toJSON(){return this.get()}observerAdded(t){1==t&&this._attach()}observerRemoved(t){0==t&&this._detach()}_attach(){}_detach(){}_onChange(t,e=!1){ye(this,{type:"change",parent:this,value:t,idle:e})}_onPriorityChange(t){this.idle||Et.sort(this),ye(this,{type:"priority",parent:this,priority:t})}},Nn=Symbol.for("SpringPhase"),$n=t=>(1&t[Nn])>0,Bn=t=>(2&t[Nn])>0,Fn=t=>(4&t[Nn])>0,Dn=(t,e)=>e?t[Nn]|=3:t[Nn]&=-3,Zn=(t,e)=>e?t[Nn]|=4:t[Nn]&=-5,Hn=class extends Rn{constructor(t,e){if(super(),this.animation=new Pn,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!yt.und(t)||!yt.und(e)){const n=yt.obj(t)?{...t}:{...e,from:t};yt.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Bn(this)||this._state.asyncTo)||Fn(this)}get goal(){return me(this.animation.to)}get velocity(){const t=Ue(this);return t instanceof Ge?t.lastVelocity||0:t.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return $n(this)}get isAnimating(){return Bn(this)}get isPaused(){return Fn(this)}get isDelayed(){return this._state.delayed}advance(t){let e=!0,n=!1;const i=this.animation;let{toValues:o}=i;const{config:r}=i,s=Ve(i.to);!s&&fe(i.to)&&(o=bt(me(i.to))),i.values.forEach((a,l)=>{if(a.done)return;const c=a.constructor==Ke?1:s?s[l].lastPosition:o[l];let u=i.immediate,h=c;if(!u){if(h=a.lastPosition,r.tension<=0)return void(a.done=!0);let e=a.elapsedTime+=t;const n=i.fromValues[l],o=null!=a.v0?a.v0:a.v0=yt.arr(r.velocity)?r.velocity[l]:r.velocity;let s;const d=r.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(yt.und(r.duration))if(r.decay){const t=!0===r.decay?.998:r.decay,i=Math.exp(-(1-t)*e);h=n+o/(1-t)*(1-i),u=Math.abs(a.lastPosition-h)<=d,s=o*i}else{s=null==a.lastVelocity?o:a.lastVelocity;const e=r.restVelocity||d/10,i=r.clamp?0:r.bounce,l=!yt.und(i),p=n==c?a.v0>0:n<c;let f,m=!1;const g=1,y=Math.ceil(t/g);for(let t=0;t<y&&(f=Math.abs(s)>e,f||(u=Math.abs(c-h)<=d,!u));++t)l&&(m=h==c||h>c==p,m&&(s=-s*i,h=c)),s+=(1e-6*-r.tension*(h-c)+.001*-r.friction*s)/r.mass*g,h+=s*g}else{let i=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,a.durationProgress>0&&(a.elapsedTime=r.duration*a.durationProgress,e=a.elapsedTime+=t)),i=(r.progress||0)+e/this._memoizedDuration,i=i>1?1:i<0?0:i,a.durationProgress=i),h=n+r.easing(i)*(c-n),s=(h-a.lastPosition)/t,u=1==i}a.lastVelocity=s,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),u=!0)}s&&!s[l].done&&(u=!1),u?a.done=!0:e=!1,a.setValue(h,r.round)&&(n=!0)});const a=Ue(this),l=a.getValue();if(e){const t=me(i.to);l===t&&!n||r.decay?n&&r.decay&&this._onChange(l):(a.setValue(t),this._onChange(t)),this._stop()}else n&&this._onChange(l)}set(t){return X.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Bn(this)){const{to:t,config:e}=this.animation;X.batchedUpdates(()=>{this._onStart(),e.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,e){let n;return yt.und(t)?(n=this.queue||[],this.queue=[]):n=[yt.obj(t)?t:{...e,to:t}],Promise.all(n.map(t=>this._update(t))).then(t=>Mn(this,t))}stop(t){const{to:e}=this.animation;return this._focus(this.get()),Sn(this._state,t&&this._lastCallId),X.batchedUpdates(()=>this._stop(e,t)),this}reset(){this._update({reset:!0})}eventObserved(t){"change"==t.type?this._start():"priority"==t.type&&(this.priority=t.priority+1)}_prepareNode(t){const e=this.key||"";let{to:n,from:i}=t;n=yt.obj(n)?n[e]:n,(null==n||yn(n))&&(n=void 0),i=yt.obj(i)?i[e]:i,null==i&&(i=void 0);const o={to:n,from:i};return $n(this)||(t.reverse&&([n,i]=[i,n]),i=me(i),yt.und(i)?Ue(this)||this._set(n):this._set(i)),o}_update({...t},e){const{key:n,defaultProps:i}=this;t.default&&Object.assign(i,hn(t,(t,e)=>/^on/.test(e)?ln(t,n):t)),Yn(this,t,"onProps"),Xn(this,"onProps",t,this);const o=this._prepareNode(t);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const r=this._state;return kn(++this._lastCallId,{key:n,props:t,defaultProps:i,state:r,actions:{pause:()=>{Fn(this)||(Zn(this,!0),kt(r.pauseQueue),Xn(this,"onPause",In(this,Un(this,this.animation.to)),this))},resume:()=>{Fn(this)&&(Zn(this,!1),Bn(this)&&this._resume(),kt(r.resumeQueue),Xn(this,"onResume",In(this,Un(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(n=>{if(t.loop&&n.finished&&(!e||!n.noop)){const e=Wn(t);if(e)return this._update(e,!0)}return n})}_merge(t,e,n){if(e.cancel)return this.stop(!0),n(Tn(this));const i=!yt.und(t.to),o=!yt.und(t.from);if(i||o){if(!(e.callId>this._lastToId))return n(Tn(this));this._lastToId=e.callId}const{key:r,defaultProps:s,animation:a}=this,{to:l,from:c}=a;let{to:u=l,from:h=c}=t;!o||i||e.default&&!yt.und(u)||(u=h),e.reverse&&([u,h]=[h,u]);const d=!_t(h,c);d&&(a.from=h),h=me(h);const p=!_t(u,l);p&&this._focus(u);const f=yn(e.to),{config:m}=a,{decay:g,velocity:y}=m;(i||o)&&(m.velocity=0),e.config&&!f&&function(t,e,n){n&&(wn(n={...n},e),e={...n,...e}),wn(t,e),Object.assign(t,e);for(const e in xn)null==t[e]&&(t[e]=xn[e]);let{frequency:i,damping:o}=t;const{mass:r}=t;yt.und(i)||(i<.01&&(i=.01),o<0&&(o=0),t.tension=Math.pow(2*Math.PI/i,2)*r,t.friction=4*Math.PI*o*r/i)}(m,sn(e.config,r),e.config!==s.config?sn(s.config,r):void 0);let _=Ue(this);if(!_||yt.und(u))return n(In(this,!0));const v=yt.und(e.reset)?o&&!e.default:!yt.und(h)&&an(e.reset,r),x=v?h:this.get(),b=mn(u),w=yt.num(b)||yt.arr(b)||Ne(b),A=!f&&(!w||an(s.immediate||e.immediate,r));if(p){const t=tn(u);if(t!==_.constructor){if(!A)throw Error(`Cannot animate between ${_.constructor.name} and ${t.name}, as the "to" prop suggests`);_=this._set(b)}}const P=_.constructor;let k=fe(u),M=!1;if(!k){const t=v||!$n(this)&&d;(p||t)&&(M=_t(mn(x),b),k=!M),(_t(a.immediate,A)||A)&&_t(m.decay,g)&&_t(m.velocity,y)||(k=!0)}if(M&&Bn(this)&&(a.changed&&!v?k=!0:k||this._stop(l)),!f&&((k||fe(l))&&(a.values=_.getPayload(),a.toValues=fe(u)?null:P==Ke?[1]:bt(b)),a.immediate!=A&&(a.immediate=A,A||v||this._set(l)),k)){const{onRest:t}=a;vt(Kn,t=>Yn(this,e,t));const i=In(this,Un(this,l));kt(this._pendingCalls,i),this._pendingCalls.add(n),a.changed&&X.batchedUpdates(()=>{a.changed=!v,t?.(i,this),v?sn(s.onRest,i):a.onStart?.(i,this)})}v&&this._set(x),f?n(Ln(e.to,e,this._state,this)):k?this._start():Bn(this)&&!p?this._pendingCalls.add(n):n(Cn(x))}_focus(t){const e=this.animation;t!==e.to&&(ge(this)&&this._detach(),e.to=t,ge(this)&&this._attach())}_attach(){let t=0;const{to:e}=this.animation;fe(e)&&(xe(e,this),zn(e)&&(t=e.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;fe(t)&&be(t,this)}_set(t,e=!0){const n=me(t);if(!yt.und(n)){const t=Ue(this);if(!t||!_t(n,t.getValue())){const i=tn(n);t&&t.constructor==i?t.setValue(n):We(this,i.create(n)),t&&X.batchedUpdates(()=>{this._onChange(n,e)})}}return Ue(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,Xn(this,"onStart",In(this,Un(this,t.to)),this))}_onChange(t,e){e||(this._onStart(),sn(this.animation.onChange,t,this)),sn(this.defaultProps.onChange,t,this),super._onChange(t,e)}_start(){const t=this.animation;Ue(this).reset(me(t.to)),t.immediate||(t.fromValues=t.values.map(t=>t.lastPosition)),Bn(this)||(Dn(this,!0),Fn(this)||this._resume())}_resume(){mt.skipAnimation?this.finish():Et.start(this)}_stop(t,e){if(Bn(this)){Dn(this,!1);const n=this.animation;vt(n.values,t=>{t.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),ye(this,{type:"idle",parent:this});const i=e?Tn(this.get()):In(this.get(),Un(this,t??n.to));kt(this._pendingCalls,i),n.changed&&(n.changed=!1,Xn(this,"onRest",i,this))}}};function Un(t,e){const n=mn(e);return _t(mn(t.get()),n)}function Wn(t,e=t.loop,n=t.to){const i=sn(e);if(i){const o=!0!==i&&fn(i),r=(o||t).reverse,s=!o||o.reset;return Vn({...t,loop:e,default:!1,pause:void 0,to:!r||yn(n)?n:void 0,from:s?t.from:void 0,reset:s,...o})}}function Vn(t){const{to:e,from:n}=t=fn(t),i=new Set;return yt.obj(e)&&Gn(e,i),yt.obj(n)&&Gn(n,i),t.keys=i.size?Array.from(i):null,t}function qn(t){const e=Vn(t);return yt.und(e.default)&&(e.default=hn(e)),e}function Gn(t,e){xt(t,(t,n)=>null!=t&&e.add(n))}var Kn=["onStart","onRest","onChange","onPause","onResume"];function Yn(t,e,n){t.animation[n]=e[n]!==cn(e,n)?ln(e[n],t.key):void 0}function Xn(t,e,...n){t.animation[e]?.(...n),t.defaultProps[e]?.(...n)}var Qn=["onStart","onChange","onRest"],Jn=1,ti=class{constructor(t,e){this.id=Jn++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),t&&this.start({default:!0,...t})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((e,n)=>t[n]=e.get()),t}set(t){for(const e in t){const n=t[e];yt.und(n)||this.springs[e].set(n)}}update(t){return t&&this.queue.push(Vn(t)),this}start(t){let{queue:e}=this;return t?e=bt(t).map(Vn):this.queue=[],this._flush?this._flush(this,e):(ai(this,e),ei(this,e))}stop(t,e){if(t!==!!t&&(e=t),e){const n=this.springs;vt(bt(e),e=>n[e].stop(!!t))}else Sn(this._state,this._lastAsyncId),this.each(e=>e.stop(!!t));return this}pause(t){if(yt.und(t))this.start({pause:!0});else{const e=this.springs;vt(bt(t),t=>e[t].pause())}return this}resume(t){if(yt.und(t))this.start({pause:!1});else{const e=this.springs;vt(bt(t),t=>e[t].resume())}return this}each(t){xt(this.springs,t)}_onFrame(){const{onStart:t,onChange:e,onRest:n}=this._events,i=this._active.size>0,o=this._changed.size>0;(i&&!this._started||o&&!this._started)&&(this._started=!0,wt(t,([t,e])=>{e.value=this.get(),t(e,this,this._item)}));const r=!i&&this._started,s=o||r&&n.size?this.get():null;o&&e.size&&wt(e,([t,e])=>{e.value=s,t(e,this,this._item)}),r&&(this._started=!1,wt(n,([t,e])=>{e.value=s,t(e,this,this._item)}))}eventObserved(t){if("change"==t.type)this._changed.add(t.parent),t.idle||this._active.add(t.parent);else{if("idle"!=t.type)return;this._active.delete(t.parent)}X.onFrame(this._onFrame)}};function ei(t,e){return Promise.all(e.map(e=>ni(t,e))).then(e=>Mn(t,e))}async function ni(t,e,n){const{keys:i,to:o,from:r,loop:s,onRest:a,onResolve:l}=e,c=yt.obj(e.default)&&e.default;s&&(e.loop=!1),!1===o&&(e.to=null),!1===r&&(e.from=null);const u=yt.arr(o)||yt.fun(o)?o:void 0;u?(e.to=void 0,e.onRest=void 0,c&&(c.onRest=void 0)):vt(Qn,n=>{const i=e[n];if(yt.fun(i)){const o=t._events[n];e[n]=({finished:t,cancelled:e})=>{const n=o.get(i);n?(t||(n.finished=!1),e&&(n.cancelled=!0)):o.set(i,{value:null,finished:t||!1,cancelled:e||!1})},c&&(c[n]=e[n])}});const h=t._state;e.pause===!h.paused?(h.paused=e.pause,kt(e.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(e.pause=!0);const d=(i||Object.keys(t.springs)).map(n=>t.springs[n].start(e)),p=!0===e.cancel||!0===cn(e,"cancel");(u||p&&h.asyncId)&&d.push(kn(++t._lastAsyncId,{props:e,state:h,actions:{pause:gt,resume:gt,start(e,n){p?(Sn(h,t._lastAsyncId),n(Tn(t))):(e.onRest=a,n(Ln(u,e,h,t)))}}})),h.paused&&await new Promise(t=>{h.resumeQueue.add(t)});const f=Mn(t,await Promise.all(d));if(s&&f.finished&&(!n||!f.noop)){const n=Wn(e,s,o);if(n)return ai(t,[n]),ni(t,n,!0)}return l&&X.batchedUpdates(()=>l(f,t,t.item)),f}function ii(t,e){const n={...t.springs};return e&&vt(bt(e),t=>{yt.und(t.keys)&&(t=Vn(t)),yt.obj(t.to)||(t={...t,to:void 0}),si(n,t,t=>ri(t))}),oi(t,n),n}function oi(t,e){xt(e,(e,n)=>{t.springs[n]||(t.springs[n]=e,xe(e,t))})}function ri(t,e){const n=new Hn;return n.key=t,e&&xe(n,e),n}function si(t,e,n){e.keys&&vt(e.keys,i=>{(t[i]||(t[i]=n(i)))._prepareNode(e)})}function ai(t,e){vt(e,e=>{si(t.springs,e,e=>ri(e,t))})}var li,ci,ui=({children:e,...n})=>{const i=(0,t.useContext)(hi),o=n.pause||!!i.pause,r=n.immediate||!!i.immediate;n=function(e,n){const[i]=(0,t.useState)(()=>({inputs:n,result:e()})),o=(0,t.useRef)(),r=o.current;let s=r;return s?Boolean(n&&s.inputs&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(n,s.inputs))||(s={inputs:n,result:e()}):s=i,(0,t.useEffect)(()=>{o.current=s,r==i&&(i.inputs=i.result=void 0)},[s]),s.result}(()=>({pause:o,immediate:r}),[o,r]);const{Provider:s}=hi;return t.createElement(s,{value:n},e)},hi=(li=ui,ci={},Object.assign(li,t.createContext(ci)),li.Provider._context=li,li.Consumer._context=li,li);ui.Provider=hi.Provider,ui.Consumer=hi.Consumer;var di=()=>{const t=[],e=function(e){Re(`${je}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const i=[];return vt(t,(t,o)=>{if(yt.und(e))i.push(t.start());else{const r=n(e,t,o);r&&i.push(t.start(r))}}),i};e.current=t,e.add=function(e){t.includes(e)||t.push(e)},e.delete=function(e){const n=t.indexOf(e);~n&&t.splice(n,1)},e.pause=function(){return vt(t,t=>t.pause(...arguments)),this},e.resume=function(){return vt(t,t=>t.resume(...arguments)),this},e.set=function(e){vt(t,(t,n)=>{const i=yt.fun(e)?e(n,t):e;i&&t.set(i)})},e.start=function(e){const n=[];return vt(t,(t,i)=>{if(yt.und(e))n.push(t.start());else{const o=this._getProps(e,t,i);o&&n.push(t.start(o))}}),n},e.stop=function(){return vt(t,t=>t.stop(...arguments)),this},e.update=function(e){return vt(t,(t,n)=>t.update(this._getProps(e,t,n))),this};const n=function(t,e,n){return yt.fun(t)?t(n,e):t};return e._getProps=n,e};function pi(e,n){const i=yt.fun(e),[[o],r]=function(e,n,i){const o=yt.fun(n)&&n;o&&!i&&(i=[]);const r=(0,t.useMemo)(()=>o||3==arguments.length?di():void 0,[]),s=(0,t.useRef)(0),a=Be(),l=(0,t.useMemo)(()=>({ctrls:[],queue:[],flush(t,e){const n=ii(t,e);return s.current>0&&!l.queue.length&&!Object.keys(n).some(e=>!t.springs[e])?ei(t,e):new Promise(i=>{oi(t,n),l.queue.push(()=>{i(ei(t,e))}),a()})}}),[]),c=(0,t.useRef)([...l.ctrls]),u=[],h=Ze(e)||0;function d(t,e){for(let i=t;i<e;i++){const t=c.current[i]||(c.current[i]=new ti(null,l.flush)),e=o?o(i,t):n[i];e&&(u[i]=qn(e))}}(0,t.useMemo)(()=>{vt(c.current.slice(e,h),t=>{_n(t,r),t.stop(!0)}),c.current.length=e,d(h,e)},[e]),(0,t.useMemo)(()=>{d(0,Math.min(h,e))},i);const p=c.current.map((t,e)=>ii(t,u[e])),f=(0,t.useContext)(ui),m=Ze(f),g=f!==m&&gn(f);$e(()=>{s.current++,l.ctrls=c.current;const{queue:t}=l;t.length&&(l.queue=[],vt(t,t=>t())),vt(c.current,(t,e)=>{r?.add(t),g&&t.start({default:f});const n=u[e];n&&(vn(t,n.ref),t.ref?t.queue.push(n):t.start(n))})}),Fe(()=>()=>{vt(l.ctrls,t=>t.stop(!0))});const y=p.map(t=>({...t}));return r?[y,r]:y}(1,i?e:[e],i?n||[]:n);return i||2==arguments.length?[o,r]:o}function fi(e,n,i){const o=yt.fun(n)&&n,{reset:r,sort:s,trail:a=0,expires:l=!0,exitBeforeEnter:c=!1,onDestroyed:u,ref:h,config:d}=o?o():n,p=(0,t.useMemo)(()=>o||3==arguments.length?di():void 0,[]),f=bt(e),m=[],g=(0,t.useRef)(null),y=r?null:g.current;$e(()=>{g.current=m}),Fe(()=>(vt(m,t=>{p?.add(t.ctrl),t.ctrl.ref=p}),()=>{vt(g.current,t=>{t.expired&&clearTimeout(t.expirationId),_n(t.ctrl,p),t.ctrl.stop(!0)})}));const _=function(t,{key:e,keys:n=e},i){if(null===n){const e=new Set;return t.map(t=>{const n=i&&i.find(n=>n.item===t&&"leave"!==n.phase&&!e.has(n));return n?(e.add(n),n.key):mi++})}return yt.und(n)?t:yt.fun(n)?t.map(n):bt(n)}(f,o?o():n,y),v=r&&g.current||[];$e(()=>vt(v,({ctrl:t,item:e,key:n})=>{_n(t,p),sn(u,e,n)}));const x=[];if(y&&vt(y,(t,e)=>{t.expired?(clearTimeout(t.expirationId),v.push(t)):~(e=x[e]=_.indexOf(t.key))&&(m[e]=t)}),vt(f,(t,e)=>{m[e]||(m[e]={key:_[e],item:t,phase:"mount",ctrl:new ti},m[e].ctrl.item=t)}),x.length){let t=-1;const{leave:e}=o?o():n;vt(x,(n,i)=>{const o=y[i];~n?(t=m.indexOf(o),m[t]={...o,item:f[n]}):e&&m.splice(++t,0,o)})}yt.fun(s)&&m.sort((t,e)=>s(t.item,e.item));let b=-a;const w=Be(),A=hn(n),P=new Map,k=(0,t.useRef)(new Map),M=(0,t.useRef)(!1);vt(m,(t,e)=>{const i=t.key,r=t.phase,s=o?o():n;let u,p;const f=sn(s.delay||0,i);if("mount"==r)u=s.enter,p="enter";else{const t=_.indexOf(i)<0;if("leave"!=r)if(t)u=s.leave,p="leave";else{if(!(u=s.update))return;p="update"}else{if(t)return;u=s.enter,p="enter"}}if(u=sn(u,t.item,e),u=yt.obj(u)?fn(u):{to:u},!u.config){const n=d||A.config;u.config=sn(n,t.item,e,p)}b+=a;const m={...A,delay:f+b,ref:h,immediate:s.immediate,reset:!1,...u};if("enter"==p&&yt.und(m.from)){const i=o?o():n,r=yt.und(i.initial)||y?i.from:i.initial;m.from=sn(r,t.item,e)}const{onResolve:v}=m;m.onResolve=t=>{sn(v,t);const e=g.current,n=e.find(t=>t.key===i);if(n&&(!t.cancelled||"update"==n.phase)&&n.ctrl.idle){const t=e.every(t=>t.ctrl.idle);if("leave"==n.phase){const e=sn(l,n.item);if(!1!==e){const i=!0===e?0:e;if(n.expired=!0,!t&&i>0)return void(i<=2147483647&&(n.expirationId=setTimeout(w,i)))}}t&&e.some(t=>t.expired)&&(k.current.delete(n),c&&(M.current=!0),w())}};const x=ii(t.ctrl,m);"leave"===p&&c?k.current.set(t,{phase:p,springs:x,payload:m}):P.set(t,{phase:p,springs:x,payload:m})});const C=(0,t.useContext)(ui),I=Ze(C),T=C!==I&&gn(C);$e(()=>{T&&vt(m,t=>{t.ctrl.start({default:C})})},[C]),vt(P,(t,e)=>{if(k.current.size){const t=m.findIndex(t=>t.key===e.key);m.splice(t,1)}}),$e(()=>{vt(k.current.size?k.current:P,({phase:t,payload:e},n)=>{const{ctrl:i}=n;n.phase=t,p?.add(i),T&&"enter"==t&&i.start({default:C}),e&&(vn(i,e.ref),!i.ref&&!p||M.current?(i.start(e),M.current&&(M.current=!1)):i.update(e))})},r?void 0:i);const L=e=>t.createElement(t.Fragment,null,m.map((n,i)=>{const{springs:o}=P.get(n)||n.ctrl,r=e({...o},n.item,n,i);return r&&r.type?t.createElement(r.type,{...r.props,key:yt.str(n.key)||yt.num(n.key)?n.key:n.ctrl.id,ref:r.ref}):r}));return p?[L,p]:L}var mi=1,gi=class extends Rn{constructor(t,e){super(),this.source=t,this.idle=!0,this._active=new Set,this.calc=oe(...e);const n=this._get(),i=tn(n);We(this,i.create(n))}advance(t){const e=this._get();_t(e,this.get())||(Ue(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&_i(this._active)&&vi(this)}_get(){const t=yt.arr(this.source)?this.source.map(me):bt(me(this.source));return this.calc(...t)}_start(){this.idle&&!_i(this._active)&&(this.idle=!1,vt(Ve(this),t=>{t.done=!1}),mt.skipAnimation?(X.batchedUpdates(()=>this.advance()),vi(this)):Et.start(this))}_attach(){let t=1;vt(bt(this.source),e=>{fe(e)&&xe(e,this),zn(e)&&(e.idle||this._active.add(e),t=Math.max(t,e.priority+1))}),this.priority=t,this._start()}_detach(){vt(bt(this.source),t=>{fe(t)&&be(t,this)}),this._active.clear(),vi(this)}eventObserved(t){"change"==t.type?t.idle?this.advance():(this._active.add(t.parent),this._start()):"idle"==t.type?this._active.delete(t.parent):"priority"==t.type&&(this.priority=bt(this.source).reduce((t,e)=>Math.max(t,(zn(e)?e.priority:0)+1),0))}};function yi(t){return!1!==t.idle}function _i(t){return!t.size||Array.from(t).every(yi)}function vi(t){t.idle||(t.idle=!0,vt(Ve(t),t=>{t.done=!0}),ye(t,{type:"idle",parent:t}))}var xi=(t,...e)=>new gi(t,e);mt.assign({createStringInterpolator:Oe,to:(t,e)=>new gi(t,e)}),Et.advance;var bi=c(1658),wi=/^--/;function Ai(t,e){return null==e||"boolean"==typeof e||""===e?"":"number"!=typeof e||0===e||wi.test(t)||ki.hasOwnProperty(t)&&ki[t]?(""+e).trim():e+"px"}var Pi={},ki={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Mi=["Webkit","Ms","Moz","O"];ki=Object.keys(ki).reduce((t,e)=>(Mi.forEach(n=>t[((t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1))(n,e)]=t[e]),t),ki);var Ci=/^(matrix|translate|scale|rotate|skew)/,Ii=/^(translate)/,Ti=/^(rotate|skew)/,Li=(t,e)=>yt.num(t)&&0!==t?t+e:t,Si=(t,e)=>yt.arr(t)?t.every(t=>Si(t,e)):yt.num(t)?t===e:parseFloat(t)===e,Oi=class extends Xe{constructor({x:t,y:e,z:n,...i}){const o=[],r=[];(t||e||n)&&(o.push([t||0,e||0,n||0]),r.push(t=>[`translate3d(${t.map(t=>Li(t,"px")).join(",")})`,Si(t,0)])),xt(i,(t,e)=>{if("transform"===e)o.push([t||""]),r.push(t=>[t,""===t]);else if(Ci.test(e)){if(delete i[e],yt.und(t))return;const n=Ii.test(e)?"px":Ti.test(e)?"deg":"";o.push(bt(t)),r.push("rotate3d"===e?([t,e,i,o])=>[`rotate3d(${t},${e},${i},${Li(o,n)})`,Si(o,0)]:t=>[`${e}(${t.map(t=>Li(t,n)).join(",")})`,Si(t,e.startsWith("scale")?1:0)])}}),o.length&&(i.transform=new ji(o,r)),super(i)}},ji=class extends _e{constructor(t,e){super(),this.inputs=t,this.transforms=e,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let t="",e=!0;return vt(this.inputs,(n,i)=>{const o=me(n[0]),[r,s]=this.transforms[i](yt.arr(o)?o:n.map(me));t+=" "+r,e=e&&s}),e?"none":t}observerAdded(t){1==t&&vt(this.inputs,t=>vt(t,t=>fe(t)&&xe(t,this)))}observerRemoved(t){0==t&&vt(this.inputs,t=>vt(t,t=>fe(t)&&be(t,this)))}eventObserved(t){"change"==t.type&&(this._value=null),ye(this,t)}};mt.assign({batchedUpdates:bi.unstable_batchedUpdates,createStringInterpolator:Oe,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var zi=((t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=t=>new Xe(t),getComponentProps:i=t=>t}={})=>{const o={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:i},r=t=>{const e=rn(t)||"Anonymous";return(t=yt.str(t)?r[t]||(r[t]=en(t,o)):t[on]||(t[on]=en(t,o))).displayName=`Animated(${e})`,t};return xt(t,(e,n)=>{yt.arr(t)&&(n=rn(e)),r[n]=r(e)}),{animated:r}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n="filter"===t.nodeName||t.parentNode&&"filter"===t.parentNode.nodeName,{className:i,style:o,children:r,scrollTop:s,scrollLeft:a,viewBox:l,...c}=e,u=Object.values(c),h=Object.keys(c).map(e=>n||t.hasAttribute(e)?e:Pi[e]||(Pi[e]=e.replace(/([A-Z])/g,t=>"-"+t.toLowerCase())));void 0!==r&&(t.textContent=r);for(const e in o)if(o.hasOwnProperty(e)){const n=Ai(e,o[e]);wi.test(e)?t.style.setProperty(e,n):t.style[e]=n}h.forEach((e,n)=>{t.setAttribute(e,u[n])}),void 0!==i&&(t.className=i),void 0!==s&&(t.scrollTop=s),void 0!==a&&(t.scrollLeft=a),void 0!==l&&t.setAttribute("viewBox",l)},createAnimatedStyle:t=>new Oi(t),getComponentProps:({scrollTop:t,scrollLeft:e,...n})=>n}),Ei=zi.animated;function Ri(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ni(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function $i(){}Object.defineProperty(Ri,"name",{value:"default",configurable:!0});var Bi=.7,Fi=1/Bi,Di="\\s*([+-]?\\d+)\\s*",Zi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ui=/^#([0-9a-f]{3,8})$/,Wi=new RegExp(`^rgb\\(${Di},${Di},${Di}\\)$`),Vi=new RegExp(`^rgb\\(${Hi},${Hi},${Hi}\\)$`),qi=new RegExp(`^rgba\\(${Di},${Di},${Di},${Zi}\\)$`),Gi=new RegExp(`^rgba\\(${Hi},${Hi},${Hi},${Zi}\\)$`),Ki=new RegExp(`^hsl\\(${Zi},${Hi},${Hi}\\)$`),Yi=new RegExp(`^hsla\\(${Zi},${Hi},${Hi},${Zi}\\)$`),Xi={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 Qi(){return this.rgb().formatHex()}function Ji(){return this.rgb().formatRgb()}function to(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Ui.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?eo(e):3===n?new oo(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?no(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?no(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Wi.exec(t))?new oo(e[1],e[2],e[3],1):(e=Vi.exec(t))?new oo(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=qi.exec(t))?no(e[1],e[2],e[3],e[4]):(e=Gi.exec(t))?no(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ki.exec(t))?uo(e[1],e[2]/100,e[3]/100,1):(e=Yi.exec(t))?uo(e[1],e[2]/100,e[3]/100,e[4]):Xi.hasOwnProperty(t)?eo(Xi[t]):"transparent"===t?new oo(NaN,NaN,NaN,0):null}function eo(t){return new oo(t>>16&255,t>>8&255,255&t,1)}function no(t,e,n,i){return i<=0&&(t=e=n=NaN),new oo(t,e,n,i)}function io(t,e,n,i){return 1===arguments.length?((o=t)instanceof $i||(o=to(o)),o?new oo((o=o.rgb()).r,o.g,o.b,o.opacity):new oo):new oo(t,e,n,null==i?1:i);var o}function oo(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function ro(){return`#${co(this.r)}${co(this.g)}${co(this.b)}`}function so(){const t=ao(this.opacity);return`${1===t?"rgb(":"rgba("}${lo(this.r)}, ${lo(this.g)}, ${lo(this.b)}${1===t?")":`, ${t})`}`}function ao(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function lo(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function co(t){return((t=lo(t))<16?"0":"")+t.toString(16)}function uo(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new po(t,e,n,i)}function ho(t){if(t instanceof po)return new po(t.h,t.s,t.l,t.opacity);if(t instanceof $i||(t=to(t)),!t)return new po;if(t instanceof po)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),r=Math.max(e,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=e===r?(n-i)/a+6*(n<i):n===r?(i-e)/a+2:(e-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new po(s,a,l,t.opacity)}function po(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function fo(t){return(t=(t||0)%360)<0?t+360:t}function mo(t){return Math.max(0,Math.min(1,t||0))}function go(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function yo(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}Ri($i,to,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Qi,formatHex:Qi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ho(this).formatHsl()},formatRgb:Ji,toString:Ji}),Ri(oo,io,Ni($i,{brighter(t){return t=null==t?Fi:Math.pow(Fi,t),new oo(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Bi:Math.pow(Bi,t),new oo(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new oo(lo(this.r),lo(this.g),lo(this.b),ao(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:ro,formatHex:ro,formatHex8:function(){return`#${co(this.r)}${co(this.g)}${co(this.b)}${co(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:so,toString:so})),Ri(po,function(t,e,n,i){return 1===arguments.length?ho(t):new po(t,e,n,null==i?1:i)},Ni($i,{brighter(t){return t=null==t?Fi:Math.pow(Fi,t),new po(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Bi:Math.pow(Bi,t),new po(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,o=2*n-i;return new oo(go(t>=240?t-240:t+120,o,i),go(t,o,i),go(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new po(fo(this.h),mo(this.s),mo(this.l),ao(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 t=ao(this.opacity);return`${1===t?"hsl(":"hsla("}${fo(this.h)}, ${100*mo(this.s)}%, ${100*mo(this.l)}%${1===t?")":`, ${t})`}`}})),Object.defineProperty(yo,"name",{value:"default",configurable:!0}),Object.defineProperty(xo,"name",{value:"default",configurable:!0});var _o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vo=new RegExp(_o.source,"g");function xo(t,e){var n,i,o,r=_o.lastIndex=vo.lastIndex=0,s=-1,a=[],l=[];for(t+="",e+="";(n=_o.exec(t))&&(i=vo.exec(e));)(o=i.index)>r&&(o=e.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:yo(n,i)})),r=vo.lastIndex;return r<e.length&&(o=e.slice(r),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)a[(n=l[i]).i]=n.x(t);return a.join("")})}const bo=e=>{const n=function(e){const n=t.useRef({currentPath:e,previousPath:void 0});return n.current.currentPath!==e&&(n.current={currentPath:e,previousPath:n.current.currentPath}),n.current}(e);return t.useMemo(()=>n.previousPath?xo(n.previousPath,n.currentPath):()=>n.currentPath,[n.currentPath,n.previousPath])};function wo(t){return t.replace(" ","_")}var Ao=c(4661);const Po="DEFAULT_X_AXIS_KEY",ko="DEFAULT_Y_AXIS_KEY",Mo={top:50,bottom:50,left:50,right:50},Co=t.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:"",isPointInside:()=>!1}),Io=t.createContext({isInitialized:!1,data:{current:null}});function To(e){const{width:n,height:o,margin:s,svgRef:a,children:l}=e,c=((e,n,i)=>{const o=(0,r.A)({},Mo,i);return t.useMemo(()=>({left:o.left,top:o.top,right:o.right,bottom:o.bottom,width:Math.max(0,e-o.left-o.right),height:Math.max(0,n-o.top-o.bottom)}),[e,n,o.top,o.bottom,o.left,o.right])})(n,o,s),u=(0,Ao.A)(),h=t.useCallback(({x:t,y:e},n)=>{if(n?.targetElement&&n?.targetElement.closest("[data-drawing-container]"))return!0;const i=t>=c.left-1&&t<=c.left+c.width,o=e>=c.top-1&&e<=c.top+c.height;return"x"===n?.direction?i:("y"===n?.direction||i)&&o},[c]),d=t.useMemo(()=>(0,r.A)({chartId:u??""},c,{isPointInside:h}),[u,c,h]),p=t.useMemo(()=>({isInitialized:!0,data:a}),[a]);return(0,i.jsx)(Io.Provider,{value:p,children:(0,i.jsx)(Co.Provider,{value:d,children:l})})}function Lo(){const{left:e,top:n,width:i,height:o,bottom:r,right:s,isPointInside:a}=t.useContext(Co);return t.useMemo(()=>({left:e,top:n,width:i,height:o,bottom:r,right:s,isPointInside:a}),[o,e,n,i,r,s,a])}function So(){const{chartId:e}=t.useContext(Co);return t.useMemo(()=>e,[e])}function Oo(e){const n=Lo(),o=So(),r=fi([n],{from:t=>({animatedWidth:t.left}),enter:t=>({animatedWidth:t.width+t.left+t.right}),leave:t=>({animatedWidth:t.width+t.left+t.right}),reset:!1,immediate:e.skipAnimation}),s=wo(`${o}-${e.id}`);return(0,i.jsxs)(t.Fragment,{children:[(0,i.jsx)("clipPath",{id:s,children:r(t=>(0,i.jsx)(Ei.rect,{x:0,y:0,width:t.animatedWidth,height:n.top+n.height+n.bottom}))}),(0,i.jsx)("g",{clipPath:`url(#${s})`,children:e.children})]})}const jo=["d","skipAnimation","ownerState"],zo=(0,K.Ay)(Ei.path,{name:"MuiAreaElement",slot:"Root",overridesResolver:(t,e)=>e.root})(({ownerState:t})=>({stroke:"none",fill:t.gradientId&&`url(#${t.gradientId})`||t.isHighlighted&&to(t.color).brighter(1).formatHex()||to(t.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:t.isFaded?.3:1}));function Eo(t){const{d:e,skipAnimation:n,ownerState:o}=t,s=(0,g.A)(t,jo),a=fi([bo(e)],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return(0,i.jsx)(Oo,{skipAnimation:n,id:`${o.id}-area-clip`,children:a((t,e)=>(0,i.jsx)(zo,(0,r.A)({},s,{ownerState:o,d:t.value.to(e)})))})}function Ro(t){const e=q();if(!t)return{isHighlighted:!1,isFaded:!1};const n=e.isHighlighted(t);return{isHighlighted:n,isFaded:!n&&e.isFaded(t)}}const No=["id","classes","color","gradientId","slots","slotProps","onClick"];function $o(t){return(0,D.Ay)("MuiAreaElement",t)}function Bo(t){const{id:e,classes:n,color:o,gradientId:s,slots:a,slotProps:l,onClick:c}=t,u=(0,g.A)(t,No),h=G(),{isFaded:d,isHighlighted:p}=Ro({seriesId:e}),f={id:e,classes:n,color:o,gradientId:s,isFaded:d,isHighlighted:p},m=(t=>{const{classes:e,id:n,isFaded:i,isHighlighted:o}=t,r={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return(0,z.A)(r,$o,e)})(f),y=a?.area??Eo,_=F({elementType:y,externalSlotProps:l?.area,additionalProps:(0,r.A)({},h({type:"line",seriesId:e}),{onClick:c,cursor:c?"pointer":"unset"}),className:m.root,ownerState:f});return(0,i.jsx)(y,(0,r.A)({},u,_))}function Fo(t){return void 0!==t.bandwidth}function Do(t){return Fo(t)?e=>(t(e)??0)+t.bandwidth()/2:e=>t(e)}(0,Z.A)("MuiAreaElement",["root","highlighted","faded"]);const Zo=Math.abs,Ho=Math.atan2,Uo=Math.cos,Wo=Math.max,Vo=Math.min,qo=Math.sin,Go=Math.sqrt,Ko=1e-12,Yo=Math.PI,Xo=Yo/2,Qo=2*Yo;function Jo(t){return t>=1?Xo:t<=-1?-Xo:Math.asin(t)}function tr(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function er(t,e){this._context=t,this._k=(1-e)/6}function nr(t,e){this._context=t,this._alpha=e}er.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:tr(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:tr(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new er(t,e)}return n.tension=function(e){return t(+e)},n}(0),nr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:!function(t,e,n){var i=t._x1,o=t._y1,r=t._x2,s=t._y2;if(t._l01_a>Ko){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Ko){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);r=(r*c+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*c+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(i,o,r,s,t._x2,t._y2)}(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ir=function t(e){function n(t){return e?new nr(t,e):new er(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function or(t){return t<0?-1:1}function rr(t,e,n){var i=t._x1-t._x0,o=e-t._x1,r=(t._y1-t._y0)/(i||o<0&&-0),s=(n-t._y1)/(o||i<0&&-0),a=(r*o+s*i)/(i+o);return(or(r)+or(s))*Math.min(Math.abs(r),Math.abs(s),.5*Math.abs(a))||0}function sr(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ar(t,e,n){var i=t._x0,o=t._y0,r=t._x1,s=t._y1,a=(r-i)/3;t._context.bezierCurveTo(i+a,o+a*e,r-a,s-a*n,r,s)}function lr(t){this._context=t}function cr(t){this._context=new ur(t)}function ur(t){this._context=t}function hr(t){return new lr(t)}function dr(t){return new cr(t)}function pr(t){this._context=t}function fr(t){var e,n,i=t.length-1,o=new Array(i),r=new Array(i),s=new Array(i);for(o[0]=0,r[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)o[e]=1,r[e]=4,s[e]=4*t[e]+2*t[e+1];for(o[i-1]=2,r[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)n=o[e]/r[e-1],r[e]-=n,s[e]-=n*s[e-1];for(o[i-1]=s[i-1]/r[i-1],e=i-2;e>=0;--e)o[e]=(s[e]-o[e+1])/r[e];for(r[i-1]=(t[i]+o[i-1])/2,e=0;e<i-1;++e)r[e]=2*t[e+1]-o[e+1];return[o,r]}function mr(t){return new pr(t)}function gr(t,e){this._context=t,this._t=e}function yr(t){return new gr(t,.5)}function _r(t){return new gr(t,0)}function vr(t){return new gr(t,1)}function xr(t){switch(t){case"catmullRom":return ir.alpha(.5);case"linear":return x;case"monotoneX":default:return hr;case"monotoneY":return dr;case"natural":return mr;case"step":return yr;case"stepBefore":return _r;case"stepAfter":return vr}}function br(e){const{isReversed:n,gradientId:o,size:r,direction:s,scale:a,colorMap:l}=e;return r<=0?null:(0,i.jsx)("linearGradient",{id:o,x1:"0",x2:"0",y1:"0",y2:"0",[`${s}${n?1:2}`]:`${r}px`,gradientUnits:"userSpaceOnUse",children:l.thresholds.map((e,o)=>{const s=a(e);if(void 0===s)return null;const c=n?1-s/r:s/r;return(0,i.jsxs)(t.Fragment,{children:[(0,i.jsx)("stop",{offset:c,stopColor:l.colors[o],stopOpacity:1}),(0,i.jsx)("stop",{offset:c,stopColor:l.colors[o+1],stopOpacity:1})]},e.toString()+o)})})}function wr(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Ar(t){const{gradientUnits:e,isReversed:n,gradientId:o,size:r,direction:s,scale:a,colorScale:l,colorMap:c}=t,u=[c.min??0,c.max??100],h=u.map(a).filter(t=>void 0!==t);if(2!==h.length)return null;const d="number"==typeof u[0]?yo(u[0],u[1]):wr(u[0],u[1]),p=Math.round((Math.max(...h)-Math.min(...h))/10),f=`${u[0]}-${u[1]}-`;return(0,i.jsx)("linearGradient",{id:o,x1:"0",x2:"0",y1:"0",y2:"0",[`${s}${n?1:2}`]:"objectBoundingBox"===e?1:`${r}px`,gradientUnits:e??"userSpaceOnUse",children:Array.from({length:p+1},(t,e)=>{const o=d(e/p);if(void 0===o)return null;const s=a(o);if(void 0===s)return null;const c=n?1-s/r:s/r,u=l(o);return null===u?null:(0,i.jsx)("stop",{offset:c,stopColor:u,stopOpacity:1},f+e)})})}function Pr(){const{chartId:e}=t.useContext(Co);return t.useCallback((t,n)=>`${e}-gradient-${n}-${t}`,[e])}function kr(){const{top:t,height:e,bottom:n,left:o,width:r,right:s}=Lo(),a=t+e+n,l=o+r+s,c=Pr(),{xAxisIds:u,xAxis:h,yAxisIds:d,yAxis:p}=j();return(0,i.jsxs)("defs",{children:[d.filter(t=>void 0!==p[t].colorMap).map(t=>{const e=c(t,"y"),{colorMap:n,scale:o,colorScale:r,reverse:s}=p[t];return"piecewise"===n?.type?(0,i.jsx)(br,{isReversed:!s,scale:o,colorMap:n,size:a,gradientId:e,direction:"y"},e):"continuous"===n?.type?(0,i.jsx)(Ar,{isReversed:!s,scale:o,colorScale:r,colorMap:n,size:a,gradientId:e,direction:"y"},e):null}),u.filter(t=>void 0!==h[t].colorMap).map(t=>{const e=c(t,"x"),{colorMap:n,scale:o,reverse:r,colorScale:s}=h[t];return"piecewise"===n?.type?(0,i.jsx)(br,{isReversed:r,scale:o,colorMap:n,size:l,gradientId:e,direction:"x"},e):"continuous"===n?.type?(0,i.jsx)(Ar,{isReversed:r,scale:o,colorScale:s,colorMap:n,size:l,gradientId:e,direction:"x"},e):null})]})}lr.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:ar(this,this._t0,sr(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ar(this,sr(this,n=rr(this,t,e)),n);break;default:ar(this,this._t0,n=rr(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(cr.prototype=Object.create(lr.prototype)).point=function(t,e){lr.prototype.point.call(this,e,t)},ur.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,o,r){this._context.bezierCurveTo(e,t,i,n,r,o)}},Object.defineProperty(mr,"name",{value:"default",configurable:!0}),pr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var i=fr(t),o=fr(e),r=0,s=1;s<n;++r,++s)this._context.bezierCurveTo(i[0][r],o[0][r],i[1][r],o[1][r],t[s],e[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Object.defineProperty(yr,"name",{value:"default",configurable:!0}),gr.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Object.defineProperty(wr,"name",{value:"default",configurable:!0});const Mr=t.createContext({isInitialized:!1,data:{}});function Cr(){const{isInitialized:e,data:n}=t.useContext(Mr);if(!e)throw new Error(["MUI X: Could not find the series ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n}function Ir(){const e=Cr();return t.useMemo(()=>e.line,[e.line])}function Tr(){const e=Cr();return t.useMemo(()=>e.scatter,[e.scatter])}const Lr=t.createContext({isInitialized:!1,data:{skipAnimation:void 0}});function Sr(e){const{isInitialized:n,data:i}=t.useContext(Lr);if(!n)throw new Error(["MUI X: Could not find the animation ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return e||i.skipAnimation}const Or=["slots","slotProps","onItemClick","skipAnimation"];function jr(e){const{slots:n,slotProps:o,onItemClick:s,skipAnimation:a}=e,l=(0,g.A)(e,Or),c=Sr(a),u=Pr(),h=(()=>{const e=Ir(),n=j(),i=t.useMemo(()=>{if(void 0===e)return[];const{series:t,stackingGroups:i}=e,{xAxis:o,yAxis:s,xAxisIds:a,yAxisIds:l}=n,c=a[0],u=l[0];return i.flatMap(({ids:e})=>[...e].reverse().map(e=>{const{xAxisId:n,yAxisId:i,xAxisKey:a=c,yAxisKey:l=u,stackedData:h,data:d,connectNulls:p,baseline:f}=t[e],m=n??a,g=i??l,y=Do(o[m].scale),_=s[g].scale,v=o[m].data,x=s[g].colorScale&&[g,"y"]||o[m].colorScale&&[m,"x"]||void 0,b=S().x(t=>y(t.x)).defined((t,e)=>p||null!=d[e]).y0(t=>{if("number"==typeof f)return _(f);if("max"===f)return _.range()[1];if("min"===f)return _.range()[0];const e=t.y&&_(t.y[0]);return Number.isNaN(e)?_.range()[0]:e}).y1(t=>t.y&&_(t.y[1])),w=xr(t[e].curve),A=v?.map((t,e)=>({x:t,y:h[e]}))??[],P=p?A.filter((t,e)=>null!=d[e]):A,k=b.curve(w)(P)||"";return(0,r.A)({},t[e],{gradientUsed:x,d:k,seriesId:e})}))},[e,n]);return i})();return(0,i.jsx)("g",(0,r.A)({},l,{children:h.map(({d:t,seriesId:e,color:r,area:a,gradientUsed:l})=>!!a&&(0,i.jsx)(Bo,{id:e,d:t,color:r,gradientId:l&&u(...l),slots:n,slotProps:o,onClick:s&&(t=>s(t,{type:"line",seriesId:e})),skipAnimation:c},e))}))}const zr=["d","skipAnimation","ownerState"],Er=(0,K.Ay)(Ei.path,{name:"MuiLineElement",slot:"Root",overridesResolver:(t,e)=>e.root})(({ownerState:t})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:t.gradientId&&`url(#${t.gradientId})`||t.isHighlighted&&to(t.color).brighter(.5).formatHex()||t.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:t.isFaded?.3:1}));function Rr(t){const{d:e,skipAnimation:n,ownerState:o}=t,s=(0,g.A)(t,zr),a=fi([bo(e)],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return(0,i.jsx)(Oo,{skipAnimation:n,id:`${o.id}-line-clip`,children:a((t,e)=>(0,i.jsx)(Er,(0,r.A)({},s,{ownerState:o,d:t.value.to(e)})))})}const Nr=["id","classes","color","gradientId","slots","slotProps","onClick"];function $r(t){return(0,D.Ay)("MuiLineElement",t)}function Br(t){const{id:e,classes:n,color:o,gradientId:s,slots:a,slotProps:l,onClick:c}=t,u=(0,g.A)(t,Nr),h=G(),{isFaded:d,isHighlighted:p}=Ro({seriesId:e}),f={id:e,classes:n,color:o,gradientId:s,isFaded:d,isHighlighted:p},m=(t=>{const{classes:e,id:n,isFaded:i,isHighlighted:o}=t,r={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return(0,z.A)(r,$r,e)})(f),y=a?.line??Rr,_=F({elementType:y,externalSlotProps:l?.line,additionalProps:(0,r.A)({},h({type:"line",seriesId:e}),{onClick:c,cursor:c?"pointer":"unset"}),className:m.root,ownerState:f});return(0,i.jsx)(y,(0,r.A)({},u,_))}(0,Z.A)("MuiLineElement",["root","highlighted","faded"]);const Fr=["slots","slotProps","skipAnimation","onItemClick"];function Dr(e){const{slots:n,slotProps:o,skipAnimation:s,onItemClick:a}=e,l=(0,g.A)(e,Fr),c=Sr(s),u=Pr(),h=(()=>{const e=Ir(),n=j();return t.useMemo(()=>{if(void 0===e)return[];const{series:t,stackingGroups:i}=e,{xAxis:o,yAxis:s,xAxisIds:a,yAxisIds:l}=n,c=a[0],u=l[0];return i.flatMap(({ids:e})=>e.flatMap(e=>{const{xAxisId:n,yAxisId:i,xAxisKey:a=c,yAxisKey:l=u,stackedData:h,data:d,connectNulls:p}=t[e],f=n??a,m=i??l,g=Do(o[f].scale),y=s[m].scale,_=o[f].data,v=s[m].colorScale&&[m,"y"]||o[f].colorScale&&[f,"x"]||void 0,x=L().x(t=>g(t.x)).defined((t,e)=>p||null!=d[e]).y(t=>y(t.y[1])),b=_?.map((t,e)=>({x:t,y:h[e]}))??[],w=p?b.filter((t,e)=>null!=d[e]):b,A=x.curve(xr(t[e].curve))(w)||"";return(0,r.A)({},t[e],{gradientUsed:v,d:A,seriesId:e})}))},[e,n])})();return(0,i.jsx)("g",(0,r.A)({},l,{children:h.map(({d:t,seriesId:e,color:r,gradientUsed:s})=>(0,i.jsx)(Br,{id:e,d:t,color:r,gradientId:s&&u(...s),skipAnimation:c,slots:n,slotProps:o,onClick:a&&(t=>a(t,{type:"line",seriesId:e}))},e))}))}var Zr=c(1054);function Hr(){const t=(0,Zr.useTheme)(p.A);return t[f.A]||t}const Ur=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],Wr=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],Vr=t=>"dark"===t?Wr:Ur,qr=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],Gr=({series:t,colors:e,seriesFormatters:n,dataset:i})=>{const o={};t.forEach((t,n)=>{const{id:i=`auto-generated-id-${n}`,type:s}=t;if(void 0===o[s]&&(o[s]={series:{},seriesOrder:[]}),void 0!==o[s]?.series[i])throw new Error(`MUI X: series' id "${i}" is not unique.`);o[s].series[i]=(0,r.A)({id:i},function(t,e,n=qr){return"pie"===t.type?(0,r.A)({},t,{data:t.data.map((t,e)=>(0,r.A)({color:n[e%n.length]},t))}):(0,r.A)({color:n[e%n.length]},t)}(t,n,e)),o[s].seriesOrder.push(i)});const s={};return Object.keys(n).forEach(t=>{const e=o[t];void 0!==e&&(s[t]=n[t]?.(e,i)??o[t])}),s},Kr=t.createContext({isInitialized:!1,data:{colorProcessors:{},seriesFormatters:{},xExtremumGetters:{},yExtremumGetters:{},rotationExtremumGetters:{},radiusExtremumGetters:{}}});function Yr(e){const{series:n,dataset:o,colors:r=Vr,children:s}=e,a=function(){const{isInitialized:e,data:n}=t.useContext(Kr);if(!e)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n.seriesFormatters}(),l=Hr(),c=t.useMemo(()=>({isInitialized:!0,data:Gr({series:n,colors:"function"==typeof r?r(l.palette.mode):r,seriesFormatters:a,dataset:o})}),[n,r,l.palette.mode,a,o]);return(0,i.jsx)(Mr.Provider,{value:c,children:s})}function Xr(t,e){const n=t.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n.matrixTransform(t.getScreenCTM().inverse())}function Qr(){const{isInitialized:e,data:n}=t.useContext(Io);if(!e)throw new Error(["MUI X: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n}function Jr(t){return t instanceof Date?t.getTime():t}const ts=["children","width","height","viewBox","disableAxisListener","className","title","desc"],es=(0,K.Ay)("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({touchAction:"none"})),ns=t.forwardRef(function(e,n){const o=m({props:e,name:"MuiChartsSurface"}),{children:s,width:a,height:l,viewBox:c,disableAxisListener:u=!1,className:h,title:d,desc:p}=o,f=(0,g.A)(o,ts),y=(0,r.A)({width:a,height:l,x:0,y:0},c);return(e=>{const n=Qr(),i=Lo(),{xAxis:o,yAxis:r,xAxisIds:s,yAxisIds:a}=j(),{dispatch:l}=t.useContext(H),c=s[0],u=a[0],h=t.useRef({isInChart:!1,x:-1,y:-1});t.useEffect(()=>{const t=n.current;if(null===t||e)return()=>{};function s(t,e){const{scale:n,data:i,reverse:o}=t;if(!Fo(n)){const t=n.invert(e);if(void 0===i)return{value:t,index:-1};const o=Jr(t),r=i?.findIndex((e,n)=>{const r=Jr(e);return r>o&&(0===n||Math.abs(o-r)<=Math.abs(o-Jr(i[n-1])))||r<=o&&(n===i.length-1||Math.abs(Jr(t)-r)<Math.abs(Jr(t)-Jr(i[n+1])))});return{value:void 0!==r&&r>=0?i[r]:t,index:r}}const r=0===n.bandwidth()?Math.floor((e-Math.min(...n.range())+n.step()/2)/n.step()):Math.floor((e-Math.min(...n.range()))/n.step());if(r<0||r>=i.length)return null;if(o){const t=i.length-1-r;return{index:t,value:i[t]}}return{index:r,value:i[r]}}const a=()=>{h.current={isInChart:!1,x:-1,y:-1},l({type:"exitChart"})},d=e=>{const n="targetTouches"in e?e.targetTouches[0]:e,a=Xr(t,n);if(h.current.x=a.x,h.current.y=a.y,!i.isPointInside(a,{targetElement:e.target}))return void(h.current.isInChart&&(l({type:"exitChart"}),h.current.isInChart=!1));h.current.isInChart=!0;const d=s(o[c],a.x),p=s(r[u],a.y);l({type:"updateAxis",data:{x:d,y:p}})},p=t=>{const e=t.currentTarget;e&&e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId)};return t.addEventListener("pointerdown",p),t.addEventListener("pointermove",d),t.addEventListener("pointerout",a),t.addEventListener("pointercancel",a),t.addEventListener("pointerleave",a),()=>{t.removeEventListener("pointerdown",p),t.removeEventListener("pointermove",d),t.removeEventListener("pointerout",a),t.removeEventListener("pointercancel",a),t.removeEventListener("pointerleave",a)}},[n,l,u,r,c,o,e,i])})(u),(0,i.jsxs)(es,(0,r.A)({width:a,height:l,viewBox:`${y.x} ${y.y} ${y.width} ${y.height}`,ref:n,className:h},f,{children:[(0,i.jsx)("title",{children:d}),(0,i.jsx)("desc",{children:p}),s]}))});function is(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function os(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rs(t){let e,n,i;function o(t,i,o=0,r=t.length){if(o<r){if(0!==e(i,i))return r;do{const e=o+r>>>1;n(t[e],i)<0?o=e+1:r=e}while(o<r)}return o}return 2!==t.length?(e=is,n=(e,n)=>is(t(e),n),i=(e,n)=>t(e)-n):(e=t===is||t===os?t:ss,n=t,i=t),{left:o,center:function(t,e,n=0,r=t.length){const s=o(t,e,n,r-1);return s>n&&i(t[s-1],e)>-i(t[s],e)?s-1:s},right:function(t,i,o=0,r=t.length){if(o<r){if(0!==e(i,i))return r;do{const e=o+r>>>1;n(t[e],i)<=0?o=e+1:r=e}while(o<r)}return o}}}function ss(){return 0}const as=Math.sqrt(50),ls=Math.sqrt(10),cs=Math.sqrt(2);function us(t,e,n){const i=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=as?10:r>=ls?5:r>=cs?2:1;let a,l,c;return o<0?(c=Math.pow(10,-o)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?us(t,e,2*n):[a,l,c]}function hs(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const i=e<t,[o,r,s]=i?us(e,t,n):us(t,e,n);if(!(r>=o))return[];const a=r-o+1,l=new Array(a);if(i)if(s<0)for(let t=0;t<a;++t)l[t]=(r-t)/-s;else for(let t=0;t<a;++t)l[t]=(r-t)*s;else if(s<0)for(let t=0;t<a;++t)l[t]=(o+t)/-s;else for(let t=0;t<a;++t)l[t]=(o+t)*s;return l}function ds(t,e,n){return us(t=+t,e=+e,n=+n)[2]}function ps(t,e,n){n=+n;const i=(e=+e)<(t=+t),o=i?ds(e,t,n):ds(t,e,n);return(i?-1:1)*(o<0?1/-o:o)}const fs=1e3,ms=6e4,gs=36e5,ys=864e5,_s=6048e5,vs=31536e6,xs=new Date,bs=new Date;function ws(t,e,n,i){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),o.round=t=>{const e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),o.range=(n,i,r)=>{const s=[];if(n=o.ceil(n),r=null==r?1:Math.floor(r),!(n<i&&r>0))return s;let a;do{s.push(a=new Date(+n)),e(n,r),t(n)}while(a<n&&n<i);return s},o.filter=n=>ws(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,i)=>{if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}),n&&(o.count=(e,i)=>(xs.setTime(+e),bs.setTime(+i),t(xs),t(bs),Math.floor(n(xs,bs))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(i?e=>i(e)%t===0:e=>o.count(0,e)%t===0):o:null)),o}const As=ws(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);As.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?ws(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):As:null),As.range;const Ps=ws(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*fs)},(t,e)=>(e-t)/fs,t=>t.getUTCSeconds()),ks=(Ps.range,ws(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*fs)},(t,e)=>{t.setTime(+t+e*ms)},(t,e)=>(e-t)/ms,t=>t.getMinutes())),Ms=(ks.range,ws(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ms)},(t,e)=>(e-t)/ms,t=>t.getUTCMinutes())),Cs=(Ms.range,ws(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*fs-t.getMinutes()*ms)},(t,e)=>{t.setTime(+t+e*gs)},(t,e)=>(e-t)/gs,t=>t.getHours())),Is=(Cs.range,ws(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gs)},(t,e)=>(e-t)/gs,t=>t.getUTCHours())),Ts=(Is.range,ws(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ms)/ys,t=>t.getDate()-1)),Ls=(Ts.range,ws(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ys,t=>t.getUTCDate()-1)),Ss=(Ls.range,ws(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ys,t=>Math.floor(t/ys)));function Os(t){return ws(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ms)/_s)}Ss.range;const js=Os(0),zs=Os(1),Es=Os(2),Rs=Os(3),Ns=Os(4),$s=Os(5),Bs=Os(6);function Fs(t){return ws(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/_s)}js.range,zs.range,Es.range,Rs.range,Ns.range,$s.range,Bs.range;const Ds=Fs(0),Zs=Fs(1),Hs=Fs(2),Us=Fs(3),Ws=Fs(4),Vs=Fs(5),qs=Fs(6),Gs=(Ds.range,Zs.range,Hs.range,Us.range,Ws.range,Vs.range,qs.range,ws(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth())),Ks=(Gs.range,ws(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth())),Ys=(Ks.range,ws(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear()));Ys.every=t=>isFinite(t=Math.floor(t))&&t>0?ws(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,Ys.range;const Xs=ws(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function Qs(t,e,n,i,o,r){const s=[[Ps,1,fs],[Ps,5,5e3],[Ps,15,15e3],[Ps,30,3e4],[r,1,ms],[r,5,3e5],[r,15,9e5],[r,30,18e5],[o,1,gs],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,ys],[i,2,1728e5],[n,1,_s],[e,1,2592e6],[e,3,7776e6],[t,1,vs]];function a(e,n,i){const o=Math.abs(n-e)/i,r=rs(([,,t])=>t).right(s,o);if(r===s.length)return t.every(ps(e/vs,n/vs,i));if(0===r)return As.every(Math.max(ps(e,n,i),1));const[a,l]=s[o/s[r-1][2]<s[r][2]/o?r-1:r];return a.every(l)}return[function(t,e,n){const i=e<t;i&&([t,e]=[e,t]);const o=n&&"function"==typeof n.range?n:a(t,e,n),r=o?o.range(t,+e+1):[];return i?r.reverse():r},a]}Xs.every=t=>isFinite(t=Math.floor(t))&&t>0?ws(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,Xs.range;const[Js,ta]=Qs(Xs,Ks,Ds,Ss,Is,Ms),[ea,na]=Qs(Ys,Gs,js,Ts,Cs,ks);function ia(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function oa(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ra(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var sa,aa,la,ca={"-":"",_:" ",0:"0"},ua=/^\s*\d+/,ha=/^%/,da=/[\\^$*+?|[\]().{}]/g;function pa(t,e,n){var i=t<0?"-":"",o=(i?-t:t)+"",r=o.length;return i+(r<n?new Array(n-r+1).join(e)+o:o)}function fa(t){return t.replace(da,"\\$&")}function ma(t){return new RegExp("^(?:"+t.map(fa).join("|")+")","i")}function ga(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function ya(t,e,n){var i=ua.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function _a(t,e,n){var i=ua.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function va(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function xa(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function ba(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function wa(t,e,n){var i=ua.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Aa(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Pa(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function ka(t,e,n){var i=ua.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function Ma(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Ca(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Ia(t,e,n){var i=ua.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Ta(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function La(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Sa(t,e,n){var i=ua.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Oa(t,e,n){var i=ua.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function ja(t,e,n){var i=ua.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function za(t,e,n){var i=ha.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Ea(t,e,n){var i=ua.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function Ra(t,e,n){var i=ua.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Na(t,e){return pa(t.getDate(),e,2)}function $a(t,e){return pa(t.getHours(),e,2)}function Ba(t,e){return pa(t.getHours()%12||12,e,2)}function Fa(t,e){return pa(1+Ts.count(Ys(t),t),e,3)}function Da(t,e){return pa(t.getMilliseconds(),e,3)}function Za(t,e){return Da(t,e)+"000"}function Ha(t,e){return pa(t.getMonth()+1,e,2)}function Ua(t,e){return pa(t.getMinutes(),e,2)}function Wa(t,e){return pa(t.getSeconds(),e,2)}function Va(t){var e=t.getDay();return 0===e?7:e}function qa(t,e){return pa(js.count(Ys(t)-1,t),e,2)}function Ga(t){var e=t.getDay();return e>=4||0===e?Ns(t):Ns.ceil(t)}function Ka(t,e){return t=Ga(t),pa(Ns.count(Ys(t),t)+(4===Ys(t).getDay()),e,2)}function Ya(t){return t.getDay()}function Xa(t,e){return pa(zs.count(Ys(t)-1,t),e,2)}function Qa(t,e){return pa(t.getFullYear()%100,e,2)}function Ja(t,e){return pa((t=Ga(t)).getFullYear()%100,e,2)}function tl(t,e){return pa(t.getFullYear()%1e4,e,4)}function el(t,e){var n=t.getDay();return pa((t=n>=4||0===n?Ns(t):Ns.ceil(t)).getFullYear()%1e4,e,4)}function nl(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+pa(e/60|0,"0",2)+pa(e%60,"0",2)}function il(t,e){return pa(t.getUTCDate(),e,2)}function ol(t,e){return pa(t.getUTCHours(),e,2)}function rl(t,e){return pa(t.getUTCHours()%12||12,e,2)}function sl(t,e){return pa(1+Ls.count(Xs(t),t),e,3)}function al(t,e){return pa(t.getUTCMilliseconds(),e,3)}function ll(t,e){return al(t,e)+"000"}function cl(t,e){return pa(t.getUTCMonth()+1,e,2)}function ul(t,e){return pa(t.getUTCMinutes(),e,2)}function hl(t,e){return pa(t.getUTCSeconds(),e,2)}function dl(t){var e=t.getUTCDay();return 0===e?7:e}function pl(t,e){return pa(Ds.count(Xs(t)-1,t),e,2)}function fl(t){var e=t.getUTCDay();return e>=4||0===e?Ws(t):Ws.ceil(t)}function ml(t,e){return t=fl(t),pa(Ws.count(Xs(t),t)+(4===Xs(t).getUTCDay()),e,2)}function gl(t){return t.getUTCDay()}function yl(t,e){return pa(Zs.count(Xs(t)-1,t),e,2)}function _l(t,e){return pa(t.getUTCFullYear()%100,e,2)}function vl(t,e){return pa((t=fl(t)).getUTCFullYear()%100,e,2)}function xl(t,e){return pa(t.getUTCFullYear()%1e4,e,4)}function bl(t,e){var n=t.getUTCDay();return pa((t=n>=4||0===n?Ws(t):Ws.ceil(t)).getUTCFullYear()%1e4,e,4)}function wl(){return"+0000"}function Al(){return"%"}function Pl(t){return+t}function kl(t){return Math.floor(+t/1e3)}sa=function(t){var e=t.dateTime,n=t.date,i=t.time,o=t.periods,r=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=ma(o),u=ga(o),h=ma(r),d=ga(r),p=ma(s),f=ga(s),m=ma(a),g=ga(a),y=ma(l),_=ga(l),v={a:function(t){return s[t.getDay()]},A:function(t){return r[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:Na,e:Na,f:Za,g:Ja,G:el,H:$a,I:Ba,j:Fa,L:Da,m:Ha,M:Ua,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Pl,s:kl,S:Wa,u:Va,U:qa,V:Ka,w:Ya,W:Xa,x:null,X:null,y:Qa,Y:tl,Z:nl,"%":Al},x={a:function(t){return s[t.getUTCDay()]},A:function(t){return r[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:il,e:il,f:ll,g:vl,G:bl,H:ol,I:rl,j:sl,L:al,m:cl,M:ul,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Pl,s:kl,S:hl,u:dl,U:pl,V:ml,w:gl,W:yl,x:null,X:null,y:_l,Y:xl,Z:wl,"%":Al},b={a:function(t,e,n){var i=p.exec(e.slice(n));return i?(t.w=f.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=d.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(t,e,n){var i=y.exec(e.slice(n));return i?(t.m=_.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(t,e,n){var i=m.exec(e.slice(n));return i?(t.m=g.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(t,n,i){return P(t,e,n,i)},d:Ca,e:Ca,f:ja,g:Aa,G:wa,H:Ta,I:Ta,j:Ia,L:Oa,m:Ma,M:La,p:function(t,e,n){var i=c.exec(e.slice(n));return i?(t.p=u.get(i[0].toLowerCase()),n+i[0].length):-1},q:ka,Q:Ea,s:Ra,S:Sa,u:_a,U:va,V:xa,w:ya,W:ba,x:function(t,e,i){return P(t,n,e,i)},X:function(t,e,n){return P(t,i,e,n)},y:Aa,Y:wa,Z:Pa,"%":za};function w(t,e){return function(n){var i,o,r,s=[],a=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++a<c;)37===t.charCodeAt(a)&&(s.push(t.slice(l,a)),null!=(o=ca[i=t.charAt(++a)])?i=t.charAt(++a):o="e"===i?" ":"0",(r=e[i])&&(i=r(n,o)),s.push(i),l=a+1);return s.push(t.slice(l,a)),s.join("")}}function A(t,e){return function(n){var i,o,r=ra(1900,void 0,1);if(P(r,t,n+="",0)!=n.length)return null;if("Q"in r)return new Date(r.Q);if("s"in r)return new Date(1e3*r.s+("L"in r?r.L:0));if(e&&!("Z"in r)&&(r.Z=0),"p"in r&&(r.H=r.H%12+12*r.p),void 0===r.m&&(r.m="q"in r?r.q:0),"V"in r){if(r.V<1||r.V>53)return null;"w"in r||(r.w=1),"Z"in r?(o=(i=oa(ra(r.y,0,1))).getUTCDay(),i=o>4||0===o?Zs.ceil(i):Zs(i),i=Ls.offset(i,7*(r.V-1)),r.y=i.getUTCFullYear(),r.m=i.getUTCMonth(),r.d=i.getUTCDate()+(r.w+6)%7):(o=(i=ia(ra(r.y,0,1))).getDay(),i=o>4||0===o?zs.ceil(i):zs(i),i=Ts.offset(i,7*(r.V-1)),r.y=i.getFullYear(),r.m=i.getMonth(),r.d=i.getDate()+(r.w+6)%7)}else("W"in r||"U"in r)&&("w"in r||(r.w="u"in r?r.u%7:"W"in r?1:0),o="Z"in r?oa(ra(r.y,0,1)).getUTCDay():ia(ra(r.y,0,1)).getDay(),r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(o+5)%7:r.w+7*r.U-(o+6)%7);return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,oa(r)):ia(r)}}function P(t,e,n,i){for(var o,r,s=0,a=e.length,l=n.length;s<a;){if(i>=l)return-1;if(37===(o=e.charCodeAt(s++))){if(o=e.charAt(s++),!(r=b[o in ca?e.charAt(s++):o])||(i=r(t,n,i))<0)return-1}else if(o!=n.charCodeAt(i++))return-1}return i}return v.x=w(n,v),v.X=w(i,v),v.c=w(e,v),x.x=w(n,x),x.X=w(i,x),x.c=w(e,x),{format:function(t){var e=w(t+="",v);return e.toString=function(){return t},e},parse:function(t){var e=A(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=A(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),aa=sa.format,sa.parse,la=sa.utcFormat,sa.utcParse;const Ml=rs(is),Cl=Ml.right,Il=(Ml.left,rs(function(t){return null===t?NaN:+t}).center,Cl);function Tl(t,e,n,i,o){var r=t*t,s=r*t;return((1-3*t+3*r-s)*e+(4-6*r+3*s)*n+(1+3*t+3*r-3*s)*i+s*o)/6}function Ll(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],r=t[i+1],s=i>0?t[i-1]:2*o-r,a=i<e-1?t[i+2]:2*r-o;return Tl((n-i/e)*e,s,o,r,a)}}function Sl(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),o=t[(i+e-1)%e],r=t[i%e],s=t[(i+1)%e],a=t[(i+2)%e];return Tl((n-i/e)*e,o,r,s,a)}}Object.defineProperty(Ll,"name",{value:"default",configurable:!0}),Object.defineProperty(Sl,"name",{value:"default",configurable:!0});const Ol=t=>()=>t;function jl(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ol(isNaN(t)?e:t)}(Object.getOwnPropertyDescriptor(Ol,"name")||{}).writable||Object.defineProperty(Ol,"name",{value:"default",configurable:!0});const zl=function t(e){var n=function(t){return 1===(t=+t)?jl:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Ol(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=io(t)).r,(e=io(e)).r),o=n(t.g,e.g),r=n(t.b,e.b),s=jl(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=o(e),t.b=r(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1);function El(t){return function(e){var n,i,o=e.length,r=new Array(o),s=new Array(o),a=new Array(o);for(n=0;n<o;++n)i=io(e[n]),r[n]=i.r||0,s[n]=i.g||0,a[n]=i.b||0;return r=t(r),s=t(s),a=t(a),i.opacity=1,function(t){return i.r=r(t),i.g=s(t),i.b=a(t),i+""}}}function Rl(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,r=new Array(o),s=new Array(i);for(n=0;n<o;++n)r[n]=Bl(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<o;++n)s[n]=r[n](t);return s}}function Nl(t,e){var n,i={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Bl(t[n],e[n]):o[n]=e[n];return function(t){for(n in i)o[n]=i[n](t);return o}}function $l(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,o=e.slice();return function(r){for(n=0;n<i;++n)o[n]=t[n]*(1-r)+e[n]*r;return o}}function Bl(t,e){var n,i,o=typeof e;return null==e||"boolean"===o?Ol(e):("number"===o?yo:"string"===o?(n=to(e))?(e=n,zl):xo:e instanceof to?zl:e instanceof Date?wr:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?Rl:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Nl:yo:$l))(t,e)}function Fl(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Dl(t){return+t}El(Ll),El(Sl),Object.defineProperty(function(t,e){return((void 0)(e)?void 0:Rl)(t,e)},"name",{value:"default",configurable:!0}),Object.defineProperty(Nl,"name",{value:"default",configurable:!0}),Object.defineProperty($l,"name",{value:"default",configurable:!0}),Object.defineProperty(Bl,"name",{value:"default",configurable:!0}),Object.defineProperty(Fl,"name",{value:"default",configurable:!0});var Zl=[0,1];function Hl(t){return t}function Ul(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function Wl(t,e,n){var i=t[0],o=t[1],r=e[0],s=e[1];return o<i?(i=Ul(o,i),r=n(s,r)):(i=Ul(i,o),r=n(r,s)),function(t){return r(i(t))}}function Vl(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),r=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=Ul(t[s],t[s+1]),r[s]=n(e[s],e[s+1]);return function(e){var n=Il(t,e,1,i)-1;return r[n](o[n](e))}}function ql(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Gl(){var t,e,n,i,o,r,s=Zl,a=Zl,l=Bl,c=Hl;function u(){var t=Math.min(s.length,a.length);return c!==Hl&&(c=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(s[0],s[t-1])),i=t>2?Vl:Wl,o=r=null,h}function h(e){return null==e||isNaN(e=+e)?n:(o||(o=i(s.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((r||(r=i(a,s.map(t),yo)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,Dl),u()):s.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),u()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),l=Fl,u()},h.clamp=function(t){return arguments.length?(c=!!t||Hl,u()):c!==Hl},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,u()}}function Kl(){return Gl()(Hl,Hl)}function Yl(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Xl(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}function Ql(t,e){var n,i=0,o=(t=t.slice()).length-1,r=t[i],s=t[o];return s<r&&(n=i,i=o,o=n,n=r,r=s,s=n),t[i]=e.floor(r),t[o]=e.ceil(s),t}function Jl(t){return new Date(t)}function tc(t){return t instanceof Date?+t:+new Date(+t)}function ec(t,e,n,i,o,r,s,a,l,c){var u=Kl(),h=u.invert,d=u.domain,p=c(".%L"),f=c(":%S"),m=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),_=c("%b %d"),v=c("%B"),x=c("%Y");function b(t){return(l(t)<t?p:a(t)<t?f:s(t)<t?m:r(t)<t?g:i(t)<t?o(t)<t?y:_:n(t)<t?v:x)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?d(Array.from(t,tc)):d().map(Jl)},u.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?b:c(e)},u.nice=function(t){var n=d();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?d(Ql(n,t)):u},u.copy=function(){return ql(u,ec(t,e,n,i,o,r,s,a,l,c))},u}function nc(){return Yl.apply(ec(ea,na,Ys,Gs,js,Ts,Cs,ks,Ps,aa).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}class ic extends Map{constructor(t,e=rc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(oc(this,t))}has(t){return super.has(oc(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}(this,t))}}function oc({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function rc(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const sc=Symbol("implicit");function ac(){var t=new ic,e=[],n=[],i=sc;function o(o){let r=t.get(o);if(void 0===r){if(i!==sc)return i;t.set(o,r=e.push(o)-1)}return n[r%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new ic;for(const i of n)t.has(i)||t.set(i,e.push(i)-1);return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return ac(e,n).unknown(i)},Yl.apply(o,arguments),o}function lc(){var t,e,n=ac().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,u=.5;function h(){var n=i().length,h=s<r,d=h?s:r,p=h?r:s;t=(p-d)/Math.max(1,n-l+2*c),a&&(t=Math.floor(t)),d+=(p-d-t*(n-l))*u,e=t*(1-l),a&&(d=Math.round(d),e=Math.round(e));var f=function(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var i=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),r=new Array(o);++i<o;)r[i]=t+i*n;return r}(n).map(function(e){return d+t*e});return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([r,s]=t,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(t){return[r,s]=t,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),h()):u},n.copy=function(){return lc(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(u)},Yl.apply(h(),arguments)}function cc(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return cc(e())},t}function uc(){return cc(lc.apply(null,arguments).paddingInner(1))}function hc(t){return"band"===t.scaleType}function dc(t){return"point"===t.scaleType}function pc(){var t,e=[.5],n=[0,1],i=1;function o(o){return null!=o&&o<=o?n[Il(e,o,0,i)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),i=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),i=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var i=n.indexOf(t);return[e[i-1],e[i]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return pc().domain(e).range(n).unknown(t)},Yl.apply(o,arguments)}var fc,mc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gc(t){if(!(e=mc.exec(t)))throw new Error("invalid format: "+t);var e;return new yc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function yc(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function _c(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function vc(t,e){if(!isFinite(t)||0===t)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function xc(t){return(t=vc(Math.abs(t)))?t[1]:NaN}function bc(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(xc(e)/3)))-xc(Math.abs(t)))}function wc(t,e){return function(n,i){for(var o=n.length,r=[],s=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(n.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return r.reverse().join(e)}}function Ac(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}function Pc(t){t:for(var e,n=t.length,i=1,o=-1;i<n;++i)switch(t[i]){case".":o=e=i;break;case"0":0===o&&(o=i),e=i;break;default:if(!+t[i])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}function kc(t,e){var n=vc(t,e);if(!n)return fc=void 0,t.toPrecision(e);var i=n[0],o=n[1],r=o-(fc=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+vc(t,Math.max(0,e+r-1))[0]}function Mc(t,e){var n=vc(t,e);if(!n)return t+"";var i=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}gc.prototype=yc.prototype,yc.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},Object.defineProperty(_c,"name",{value:"default",configurable:!0}),Object.defineProperty(xc,"name",{value:"default",configurable:!0}),Object.defineProperty(bc,"name",{value:"default",configurable:!0}),Object.defineProperty(wc,"name",{value:"default",configurable:!0}),Object.defineProperty(Ac,"name",{value:"default",configurable:!0}),Object.defineProperty(Pc,"name",{value:"default",configurable:!0}),Object.defineProperty(kc,"name",{value:"default",configurable:!0}),Object.defineProperty(Mc,"name",{value:"default",configurable:!0});const Cc={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:_c,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Mc(100*t,e),r:Mc,s:kc,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ic(t){return t}Object.defineProperty(Ic,"name",{value:"default",configurable:!0}),Object.defineProperty(zc,"name",{value:"default",configurable:!0});var Tc,Lc,Sc,Oc=Array.prototype.map,jc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zc(t){var e=void 0===t.grouping||void 0===t.thousands?Ic:wc(Oc.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",r=void 0===t.numerals?Ic:Ac(Oc.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(t,c){var u=(t=gc(t)).fill,h=t.align,d=t.sign,p=t.symbol,f=t.zero,m=t.width,g=t.comma,y=t.precision,_=t.trim,v=t.type;"n"===v?(g=!0,v="g"):Cc[v]||(void 0===y&&(y=12),_=!0,v="g"),(f||"0"===u&&"="===h)&&(f=!0,u="0",h="=");var x=(c&&void 0!==c.prefix?c.prefix:"")+("$"===p?n:"#"===p&&/[boxX]/.test(v)?"0"+v.toLowerCase():""),b=("$"===p?i:/[%p]/.test(v)?s:"")+(c&&void 0!==c.suffix?c.suffix:""),w=Cc[v],A=/[defgprs%]/.test(v);function P(t){var n,i,s,c=x,p=b;if("c"===v)p=w(t)+p,t="";else{var P=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),y),_&&(t=Pc(t)),P&&0===+t&&"+"!==d&&(P=!1),c=(P?"("===d?d:a:"-"===d||"("===d?"":d)+c,p=("s"!==v||isNaN(t)||void 0===fc?"":jc[8+fc/3])+p+(P&&"("===d?")":""),A)for(n=-1,i=t.length;++n<i;)if(48>(s=t.charCodeAt(n))||s>57){p=(46===s?o+t.slice(n+1):t.slice(n))+p,t=t.slice(0,n);break}}g&&!f&&(t=e(t,1/0));var k=c.length+t.length+p.length,M=k<m?new Array(m-k+1).join(u):"";switch(g&&f&&(t=e(M+t,M.length?m-p.length:1/0),M=""),h){case"<":t=c+t+p+M;break;case"=":t=c+M+t+p;break;case"^":t=M.slice(0,k=M.length>>1)+c+t+p+M.slice(k);break;default:t=M+c+t+p}return r(t)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),P.toString=function(){return t+""},P}return{format:c,formatPrefix:function(t,e){var n=3*Math.max(-8,Math.min(8,Math.floor(xc(e)/3))),i=Math.pow(10,-n),o=c(((t=gc(t)).type="f",t),{suffix:jc[8+n/3]});return function(t){return o(i*t)}}}}function Ec(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,xc(e)-xc(t))+1}function Rc(t){return Math.max(0,-xc(Math.abs(t)))}function Nc(t){var e=t.domain;return t.ticks=function(t){var n=e();return hs(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return function(t,e,n,i){var o,r=ps(t,e,n);switch((i=gc(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(o=bc(r,s))||(i.precision=o),Sc(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Ec(r,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Rc(r))||(i.precision=o-2*("%"===i.type))}return Lc(i)}(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,o,r=e(),s=0,a=r.length-1,l=r[s],c=r[a],u=10;for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);u-- >0;){if((o=ds(l,c,n))===i)return r[s]=l,r[a]=c,e(r);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}function $c(){var t=Kl();return t.copy=function(){return ql(t,$c())},Yl.apply(t,arguments),Nc(t)}function Bc(){var t=Nc(function(){var t,e,n,i,o,r=0,s=1,a=Hl,l=!1;function c(e){return null==e||isNaN(e=+e)?o:a(0===n?.5:(e=(i(e)-t)*n,l?Math.max(0,Math.min(1,e)):e))}function u(t){return function(e){var n,i;return arguments.length?([n,i]=e,a=t(n,i),c):[a(0),a(1)]}}return c.domain=function(o){return arguments.length?([r,s]=o,t=i(r=+r),e=i(s=+s),n=t===e?0:1/(e-t),c):[r,s]},c.clamp=function(t){return arguments.length?(l=!!t,c):l},c.interpolator=function(t){return arguments.length?(a=t,c):a},c.range=u(Bl),c.rangeRound=u(Fl),c.unknown=function(t){return arguments.length?(o=t,c):o},function(o){return i=o,t=o(r),e=o(s),n=t===e?0:1/(e-t),c}}()(Hl));return t.copy=function(){return function(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}(t,Bc())},Xl.apply(t,arguments)}function Fc(t){return"piecewise"===t.type?pc(t.thresholds,t.colors):Bc([t.min??0,t.max??100],t.color)}function Dc(t){return t.values?ac(t.values,t.colors).unknown(t.unknownColor??null):ac(t.colors.map((t,e)=>e),t.colors).unknown(t.unknownColor??null)}function Zc(t){return"ordinal"===t.type?Dc(t):Fc(t)}function Hc(t){return"number"==typeof t&&!Number.isFinite(t)}Tc=zc({thousands:",",grouping:[3],currency:["$",""]}),Lc=Tc.format,Sc=Tc.formatPrefix,Object.defineProperty(Ec,"name",{value:"default",configurable:!0}),Object.defineProperty(Rc,"name",{value:"default",configurable:!0});const Uc={start:0,extremities:0,end:1,middle:.5};function Wc(e){const{scale:n,tickNumber:i,valueFormatter:o,tickInterval:r,tickPlacement:s="extremities",tickLabelPlacement:a="middle"}=e;return t.useMemo(()=>{if(Fo(n)){const t=n.domain();return n.bandwidth()>0?[...("function"==typeof r&&t.filter(r)||"object"==typeof r&&r||t).map(t=>({value:t,formattedValue:o?.(t,{location:"tick"})??`${t}`,offset:n(t)-(n.step()-n.bandwidth())/2+Uc[s]*n.step(),labelOffset:"tick"===a?0:n.step()*(Uc[a]-Uc[s])})),..."extremities"===s?[{formattedValue:void 0,offset:n.range()[1],labelOffset:0}]:[]]:("function"==typeof r&&t.filter(r)||"object"==typeof r&&r||t).map(t=>({value:t,formattedValue:o?.(t,{location:"tick"})??`${t}`,offset:n(t),labelOffset:0}))}return n.domain().some(Hc)?[]:("object"==typeof r?r:n.ticks(i)).map(t=>({value:t,formattedValue:o?.(t,{location:"tick"})??n.tickFormat(i)(t),offset:n(t),labelOffset:0}))},[n,r,i,o,s,a])}function Vc(t){return Math.log(t)}function qc(t){return Math.exp(t)}function Gc(t){return-Math.log(-t)}function Kc(t){return-Math.exp(-t)}function Yc(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Xc(t){return(e,n)=>-t(-e,n)}function Qc(){const t=function(t){const e=t(Vc,qc),n=e.domain;let i,o,r=10;function s(){return i=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(r),o=function(t){return 10===t?Yc:t===Math.E?Math.exp:e=>Math.pow(t,e)}(r),n()[0]<0?(i=Xc(i),o=Xc(o),t(Gc,Kc)):t(Vc,qc),e}return e.base=function(t){return arguments.length?(r=+t,s()):r},e.domain=function(t){return arguments.length?(n(t),s()):n()},e.ticks=t=>{const e=n();let s=e[0],a=e[e.length-1];const l=a<s;l&&([s,a]=[a,s]);let c,u,h=i(s),d=i(a);const p=null==t?10:+t;let f=[];if(!(r%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),s>0){for(;h<=d;++h)for(c=1;c<r;++c)if(u=h<0?c/o(-h):c*o(h),!(u<s)){if(u>a)break;f.push(u)}}else for(;h<=d;++h)for(c=r-1;c>=1;--c)if(u=h>0?c/o(-h):c*o(h),!(u<s)){if(u>a)break;f.push(u)}2*f.length<p&&(f=hs(s,a,p))}else f=hs(h,d,Math.min(d-h,p)).map(o);return l?f.reverse():f},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===r?"s":","),"function"!=typeof n&&(r%1||null!=(n=gc(n)).precision||(n.trim=!0),n=Lc(n)),t===1/0)return n;const s=Math.max(1,r*t/e.ticks().length);return t=>{let e=t/o(Math.round(i(t)));return e*r<r-.5&&(e*=r),e<=s?n(t):""}},e.nice=()=>n(Ql(n(),{floor:t=>o(Math.floor(i(t))),ceil:t=>o(Math.ceil(i(t)))})),e}(Gl()).domain([1,10]);return t.copy=()=>ql(t,Qc()).base(t.base()),Yl.apply(t,arguments),t}function Jc(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function tu(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function eu(t){return t<0?-t*t:t*t}function nu(){var t=function(t){var e=t(Hl,Hl),n=1;return e.exponent=function(e){return arguments.length?1===(n=+e)?t(Hl,Hl):.5===n?t(tu,eu):t(Jc(n),Jc(1/n)):n},Nc(e)}(Gl());return t.copy=function(){return ql(t,nu()).exponent(t.exponent())},Yl.apply(t,arguments),t}function iu(t,e,n){switch(t){case"log":return Qc(e,n);case"pow":return nu(e,n);case"sqrt":return function(){return nu.apply(null,arguments).exponent(.5)}(e,n);case"time":return nc(e,n);case"utc":return function(){return Yl.apply(ec(Js,ta,Xs,Ks,Ds,Ls,Is,Ms,Ps,la).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}(e,n);default:return $c(e,n)}}const ou=(t,e)=>{const n=t[1]-t[0],i=e[1]-e[0];return[t[0]-e[0]*n/i,t[1]+(100-e[1])*n/i]},ru=t=>t?.[0]instanceof Date;function su(t,e){const n=nc(t.data,e);return(e,{location:i})=>"tick"===i?n.tickFormat(t.tickNumber)(e):`${e.toLocaleString()}`}function au({drawingArea:t,formattedSeries:e,axis:n,extremumGetters:i,axisDirection:o,zoomData:s,zoomOptions:a,getFilters:l}){const c={};return n.forEach((n,u)=>{const h=n,d=a?.[h.id],p=s?.find(({axisId:t})=>t===h.id),f=p?[p.start,p.end]:[0,100],m=function(t,e,n){if("rotation"===e){const{startAngle:t=0,endAngle:e=t+360}=n;return n.reverse?[Math.PI*t/180,Math.PI*e/180]:[Math.PI*e/180,Math.PI*t/180]}if("radius"===e){const{minRadius:e=0,maxRadius:i=Math.min(t.width,t.height)/2}=n;return[e,i]}const i="x"===e?[t.left,t.left+t.width]:[t.top+t.height,t.top];return n.reverse?[i[1],i[0]]:i}(t,o,h),[g,y]=((t,e,n,i,o)=>{const r=Object.keys(e).reduce((r,s)=>((t,e,n,i,o,r,s)=>{const a=i[e],l=r[e]?.series??{},[c,u]=a?.({series:l,axis:n,axisIndex:o,isDefaultAxis:0===o,getFilters:s})??[1/0,-1/0],[h,d]=t;return[Math.min(c,h),Math.max(u,d)]})(r,s,t,e,n,i,o),[1/0,-1/0]);return Number.isNaN(r[0])||Number.isNaN(r[1])?[1/0,-1/0]:r})(h,i,u,e,void 0!==p||d?void 0:l),_=h.data??[];if(hc(h)){const t=h.categoryGapRatio??.2,e=h.barGapRatio??.1,n="y"===o?[m[1],m[0]]:m,i=ou(n,f);if(c[h.id]=(0,r.A)({categoryGapRatio:t,barGapRatio:e},h,{data:_,scale:lc(h.data,i).paddingInner(t).paddingOuter(t/2),tickNumber:h.data.length,colorScale:h.colorMap&&("ordinal"===h.colorMap.type?Dc((0,r.A)({values:h.data},h.colorMap)):Zc(h.colorMap))}),ru(h.data)){const t=su(h,n);c[h.id].valueFormatter=h.valueFormatter??t}}if(dc(h)){const t="y"===o?[...m].reverse():m,e=ou(t,f);if(c[h.id]=(0,r.A)({},h,{data:_,scale:uc(h.data,e),tickNumber:h.data.length,colorScale:h.colorMap&&("ordinal"===h.colorMap.type?Dc((0,r.A)({values:h.data},h.colorMap)):Zc(h.colorMap))}),ru(h.data)){const e=su(h,t);c[h.id].valueFormatter=h.valueFormatter??e}}if("band"===h.scaleType||"point"===h.scaleType)return;const v=h.scaleType??"linear",x=h.domainLimit??"nice",b=[h.min??g,h.max??y];if("function"==typeof x){const{min:t,max:e}=x(g,y);b[0]=t,b[1]=e}const w=function(t){const{tickMaxStep:e,tickMinStep:n,tickNumber:i,range:o,domain:r}=t,s=void 0===n?999:Math.floor(Math.abs(r[1]-r[0])/n),a=void 0===e?2:Math.ceil(Math.abs(r[1]-r[0])/e),l=i??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(s,Math.max(a,l))}((0,r.A)({},h,{range:m,domain:b})),A=w/((f[1]-f[0])/100),P=iu(v,b,ou(m,f)),k="nice"===x?P.nice(w):P,[M,C]=k.domain(),I=[h.min??M,h.max??C];c[h.id]=(0,r.A)({},h,{data:_,scaleType:v,scale:k.domain(I),tickNumber:A,colorScale:h.colorMap&&Zc(h.colorMap)})}),{axis:c,axisIds:n.map(({id:t})=>t)}}function lu(e){const{xAxis:n,yAxis:o,children:r}=e,s=Cr(),a=Lo(),l=function(){const{isInitialized:e,data:n}=t.useContext(Kr);if(!e)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n.xExtremumGetters}(),c=function(){const{isInitialized:e,data:n}=t.useContext(Kr);if(!e)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n.yExtremumGetters}(),u=t.useMemo(()=>au({drawingArea:a,formattedSeries:s,axis:n,extremumGetters:l,axisDirection:"x"}),[a,s,n,l]),h=t.useMemo(()=>au({drawingArea:a,formattedSeries:s,axis:o,extremumGetters:c,axisDirection:"y"}),[a,s,o,c]),d=t.useMemo(()=>({isInitialized:!0,data:{xAxis:u.axis,yAxis:h.axis,xAxisIds:u.axisIds,yAxisIds:h.axisIds}}),[u,h]);return(0,i.jsx)(O.Provider,{value:d,children:r})}const cu=t.createContext({zAxis:{},zAxisIds:[]});function uu(e){const{zAxis:n,dataset:o,children:s}=e,a=t.useMemo(()=>n?.map(t=>{const e=t.dataKey;if(void 0===e||void 0!==t.data)return t;if(void 0===o)throw new Error("MUI X: z-axis uses `dataKey` but no `dataset` is provided.");return(0,r.A)({},t,{data:o.map(t=>t[e])})}),[n,o]),l=t.useMemo(()=>{const t=a?.map((t,e)=>(0,r.A)({id:`defaultized-z-axis-${e}`},t))??[],e={};return t.forEach(t=>{e[t.id]=(0,r.A)({},t,{colorScale:t.colorMap&&("ordinal"===t.colorMap.type&&t.data?Dc((0,r.A)({values:t.data},t.colorMap)):Zc("continuous"===t.colorMap.type?(0,r.A)({min:t.min,max:t.max},t.colorMap):t.colorMap))})}),{zAxis:e,zAxisIds:t.map(({id:t})=>t)}},[a]);return(0,i.jsx)(cu.Provider,{value:l,children:s})}var hu=c(2501);const du=(t,e)=>n=>!!t&&("series"===t.fade?n.seriesId===e?.seriesId&&n.dataIndex!==e?.dataIndex:"global"===t.fade&&(n.seriesId!==e?.seriesId||n.dataIndex!==e?.dataIndex)),pu=(t,e)=>n=>!!t&&("series"===t.highlight||"item"===t.highlight&&n.dataIndex===e?.dataIndex)&&n.seriesId===e?.seriesId,fu=["highlighted","faded"];function mu({children:e,highlightedItem:n,onHighlightChange:o}){const[s,a]=(0,hu.A)({controlled:n,default:null,name:"HighlightedProvider",state:"highlightedItem"}),l=Cr(),c=t.useMemo(()=>{const t=new Map;return Object.keys(l).forEach(e=>{const n=l[e];Object.keys(n?.series??{}).forEach(e=>{const i=n?.series[e];t.set(e,(t=>{const e=t??{},{highlighted:n,faded:i}=e,o=(0,g.A)(e,fu);return(0,r.A)({highlight:n,fade:i},o)})(i?.highlightScope))})}),t},[l]),u=s&&s.seriesId?c.get(s.seriesId)??void 0:void 0,h=t.useMemo(()=>({isInitialized:!0,data:{highlightScope:u,highlightedItem:s,setHighlighted:t=>{a(t),o?.(t)},clearHighlighted:()=>{a(null),o?.(null)},isHighlighted:pu(u,s),isFaded:du(u,s)}}),[s,u,a,o]);return(0,i.jsx)(V.Provider,{value:h,children:e})}const gu=(t,e)=>"x"===e?{x:t,y:null}:{x:null,y:t},yu=t=>{const{axis:e,getFilters:n,isDefaultAxis:i}=t,o=n?.({currentAxisId:e.id,isDefaultAxis:i}),r=o?e.data?.filter((t,e)=>o({x:null,y:null},e)):e.data;return[Math.min(...r??[]),Math.max(...r??[])]},_u=t=>e=>{const{series:n,axis:i,getFilters:o,isDefaultAxis:r}=e;return Object.keys(n).filter(t=>{const e=n[t].yAxisId??n[t].yAxisKey;return e===i.id||r&&void 0===e}).reduce((e,s)=>{const{stackedData:a}=n[s],l=o?.({currentAxisId:i.id,isDefaultAxis:r,seriesXAxisId:n[s].xAxisId??n[s].xAxisKey,seriesYAxisId:n[s].yAxisId??n[s].yAxisKey}),[c,u]=a?.reduce((e,n,i)=>!l||l(gu(n[0],t),i)&&l(gu(n[1],t),i)?[Math.min(...n,e[0]),Math.max(...n,e[1])]:e,[1/0,-1/0])??[1/0,-1/0];return[Math.min(c,e[0]),Math.max(u,e[1])]},[1/0,-1/0])};function vu(t,e){if((o=t.length)>1)for(var n,i,o,r=1,s=t[e[0]],a=s.length;r<o;++r)for(i=s,s=t[e[r]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function xu(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function bu(t,e){return t[e]}function wu(t){const e=[];return e.key=t,e}function Au(){var t=_([]),e=xu,n=vu,i=bu;function o(o){var r,s,a=Array.from(t.apply(this,arguments),wu),l=a.length,c=-1;for(const t of o)for(r=0,++c;r<l;++r)(a[r][c]=[0,+i(t,a[r].key,c,o)]).data=t;for(r=0,s=y(e(a));r<l;++r)a[s[r]].index=r;return n(a,s),a}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:_(Array.from(e)),o):t},o.value=function(t){return arguments.length?(i="function"==typeof t?t:_(+t),o):i},o.order=function(t){return arguments.length?(e=null==t?xu:"function"==typeof t?t:_(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(n=null==t?vu:t,o):n},o}function Pu(t){var e=t.map(ku);return xu(t).sort(function(t,n){return e[t]-e[n]})}function ku(t){for(var e,n=-1,i=0,o=t.length,r=-1/0;++n<o;)(e=+t[n][1])>r&&(r=e,i=n);return i}function Mu(t){var e=t.map(Cu);return xu(t).sort(function(t,n){return e[t]-e[n]})}function Cu(t){for(var e,n=0,i=-1,o=t.length;++i<o;)(e=+t[i][1])&&(n+=e);return n}function Iu(t){return Mu(t).reverse()}function Tu(t){var e,n,i=t.length,o=t.map(Cu),r=Pu(t),s=0,a=0,l=[],c=[];for(e=0;e<i;++e)n=r[e],s<a?(s+=o[n],l.push(n)):(a+=o[n],c.push(n));return c.reverse().concat(l)}function Lu(t){return xu(t).reverse()}function Su(t,e){if((i=t.length)>0){for(var n,i,o,r=0,s=t[0].length;r<s;++r){for(o=n=0;n<i;++n)o+=t[n][r][1]||0;if(o)for(n=0;n<i;++n)t[n][r][1]/=o}vu(t,e)}}function Ou(t,e){if((a=t.length)>0)for(var n,i,o,r,s,a,l=0,c=t[e[0]].length;l<c;++l)for(r=s=0,n=0;n<a;++n)(o=(i=t[e[n]][l])[1]-i[0])>0?(i[0]=r,i[1]=r+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function ju(t,e){if((n=t.length)>0){for(var n,i=0,o=t[e[0]],r=o.length;i<r;++i){for(var s=0,a=0;s<n;++s)a+=t[s][i][1]||0;o[i][1]+=o[i][0]=-a/2}vu(t,e)}}function zu(t,e){if((o=t.length)>0&&(i=(n=t[e[0]]).length)>0){for(var n,i,o,r=0,s=1;s<i;++s){for(var a=0,l=0,c=0;a<o;++a){for(var u=t[e[a]],h=u[s][1]||0,d=(h-(u[s-1][1]||0))/2,p=0;p<a;++p){var f=t[e[p]];d+=(f[s][1]||0)-(f[s-1][1]||0)}l+=h,c+=d*h}n[s-1][1]+=n[s-1][0]=r,l&&(r-=c/l)}n[s-1][1]+=n[s-1][0]=r,vu(t,e)}}Object.defineProperty(vu,"name",{value:"default",configurable:!0}),Object.defineProperty(xu,"name",{value:"default",configurable:!0}),Object.defineProperty(Au,"name",{value:"default",configurable:!0}),Object.defineProperty(Pu,"name",{value:"default",configurable:!0}),Object.defineProperty(Mu,"name",{value:"default",configurable:!0}),Object.defineProperty(Iu,"name",{value:"default",configurable:!0}),Object.defineProperty(Tu,"name",{value:"default",configurable:!0}),Object.defineProperty(Lu,"name",{value:"default",configurable:!0}),Object.defineProperty(Su,"name",{value:"default",configurable:!0}),Object.defineProperty(Ou,"name",{value:"default",configurable:!0}),Object.defineProperty(ju,"name",{value:"default",configurable:!0}),Object.defineProperty(zu,"name",{value:"default",configurable:!0});const Eu={appearance:Pu,ascending:Mu,descending:Iu,insideOut:Tu,none:xu,reverse:Lu},Ru={expand:Su,diverging:Ou,none:vu,silhouette:ju,wiggle:zu},Nu=t=>{const{series:e,seriesOrder:n,defaultStrategy:i}=t,o=[],r={};return n.forEach(t=>{const{stack:n,stackOrder:s,stackOffset:a}=e[t];void 0===n?o.push({ids:[t],stackingOrder:Eu.none,stackingOffset:Ru.none}):void 0===r[n]?(r[n]=o.length,o.push({ids:[t],stackingOrder:Eu[s??i?.stackOrder??"none"],stackingOffset:Ru[a??i?.stackOffset??"diverging"]})):(o[r[n]].ids.push(t),void 0!==s&&(o[r[n]].stackingOrder=Eu[s]),void 0!==a&&(o[r[n]].stackingOffset=Ru[a]))}),o};function $u(t,e){const n={};return Object.keys(t).forEach(i=>{n[i]=(0,r.A)({},t[i],{valueFormatter:t[i].valueFormatter??e})}),n}const Bu=(t,e,n)=>{const i="vertical"===t.layout,o=i?e?.colorScale:n?.colorScale,r=i?n?.colorScale:e?.colorScale,s=i?e?.data:n?.data;return r?e=>{const n=t.data[e],i=null===n?t.color:r(n);return null===i?t.color:i}:o&&s?e=>{const n=s[e],i=null===n?t.color:o(n);return null===i?t.color:i}:()=>t.color},Fu={seriesType:"bar",seriesFormatter:(t,e)=>{const{seriesOrder:n,series:i}=t,o=Nu(t),s=e??[];n.forEach(t=>{const n=i[t].data;if(void 0!==n)n.forEach((e,n)=>{s.length<=n?s.push({[t]:e}):s[n][t]=e});else if(void 0===e)throw new Error([`MUI X: bar series with id='${t}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join("\n"))});const a={};return o.forEach(t=>{const{ids:n,stackingOffset:o,stackingOrder:l}=t,c=Au().keys(n.map(t=>{const e=i[t].dataKey;return void 0===i[t].data&&void 0!==e?e:t})).value((t,e)=>t[e]??0).order(l).offset(o)(s);n.forEach((t,n)=>{const o=i[t].dataKey;a[t]=(0,r.A)({layout:"vertical"},i[t],{data:o?e.map(t=>{const e=t[o];return"number"!=typeof e?0:e}):i[t].data,stackedData:c[n].map(([t,e])=>[t,e])})})}),{seriesOrder:n,stackingGroups:o,series:$u(a,t=>null==t?"":t.toLocaleString())}},colorProcessor:Bu,xExtremumGetter:t=>Object.keys(t.series).some(e=>"horizontal"===t.series[e].layout)?_u("x")(t):yu(t),yExtremumGetter:t=>Object.keys(t.series).some(e=>"horizontal"===t.series[e].layout)?yu(t):_u("y")(t)},Du=(t,e)=>[null===e[0]?t[0]:Math.min(t[0],e[0]),null===e[1]?t[1]:Math.max(t[1],e[1])],Zu=(t,e,n,i)=>{const o=i?.colorScale,r=n?.colorScale,s=e?.colorScale;return o?e=>{if(void 0!==i?.data?.[e]){const t=o(i?.data?.[e]);if(null!==t)return t}const n=t.data[e],r=null===n?t.color:o(n.z);return null===r?t.color:r}:r?e=>{const n=t.data[e],i=null===n?t.color:r(n.y);return null===i?t.color:i}:s?e=>{const n=t.data[e],i=null===n?t.color:s(n.x);return null===i?t.color:i}:()=>t.color},Hu={seriesType:"scatter",seriesFormatter:({series:t,seriesOrder:e},n)=>({series:Object.fromEntries(Object.entries(t).map(([t,e])=>{const i=e?.datasetKeys,o=["x","y","id"].filter(t=>"string"!=typeof i?.[t]);if(e?.datasetKeys&&o.length>0)throw new Error([`MUI X: scatter series with id='${t}' has incomplete datasetKeys.`,`Properties ${o.map(t=>`"${t}"`).join(", ")} are missing.`].join("\n"));const s=i?n?.map(t=>({x:t[i.x]??null,y:t[i.y]??null,z:i.z&&t[i.z],id:t[i.id]}))??[]:e.data??[];return[t,(0,r.A)({},e,{data:s,valueFormatter:e.valueFormatter??(t=>`(${t.x}, ${t.y})`)})]})),seriesOrder:e}),colorProcessor:Zu,xExtremumGetter:t=>{const{series:e,axis:n,isDefaultAxis:i,getFilters:o}=t;return Object.keys(e).filter(t=>{const o=e[t].xAxisId??e[t].xAxisKey;return o===n.id||void 0===o&&i}).reduce((t,r)=>{const s=o?.({currentAxisId:n.id,isDefaultAxis:i,seriesXAxisId:e[r].xAxisId??e[r].xAxisKey,seriesYAxisId:e[r].yAxisId??e[r].yAxisKey}),a=e[r].data?.reduce((t,e,n)=>s&&!s(e,n)?t:Du(t,[e.x,e.x]),[1/0,-1/0]);return Du(t,a??[1/0,-1/0])},[1/0,-1/0])},yExtremumGetter:t=>{const{series:e,axis:n,isDefaultAxis:i,getFilters:o}=t;return Object.keys(e).filter(t=>{const o=e[t].yAxisId??e[t].yAxisKey;return o===n.id||void 0===o&&i}).reduce((t,r)=>{const s=o?.({currentAxisId:n.id,isDefaultAxis:i,seriesXAxisId:e[r].xAxisId??e[r].xAxisKey,seriesYAxisId:e[r].yAxisId??e[r].yAxisKey}),a=e[r].data?.reduce((t,e,n)=>s&&!s(e,n)?t:Du(t,[e.y,e.y]),[1/0,-1/0]);return Du(t,a??[1/0,-1/0])},[1/0,-1/0])}},Uu=(t,e,n)=>{const i=n?.colorScale,o=e?.colorScale;return i?e=>{const n=t.data[e],o=null===n?t.color:i(n);return null===o?t.color:o}:o?n=>{const i=e.data?.[n],r=null===i?t.color:o(i);return null===r?t.color:r}:()=>t.color},Wu={seriesType:"line",colorProcessor:Uu,seriesFormatter:(t,e)=>{const{seriesOrder:n,series:i}=t,o=Nu((0,r.A)({},t,{defaultStrategy:{stackOffset:"none"}})),s=e??[];n.forEach(t=>{const e=i[t].data;void 0!==e&&e.forEach((e,n)=>{s.length<=n?s.push({[t]:e}):s[n][t]=e})});const a={};return o.forEach(t=>{const{ids:n,stackingOrder:o,stackingOffset:l}=t,c=Au().keys(n.map(t=>{const e=i[t].dataKey;return void 0===i[t].data&&void 0!==e?e:t})).value((t,e)=>t[e]??0).order(o).offset(l)(s);n.forEach((t,n)=>{const o=i[t].dataKey;a[t]=(0,r.A)({},i[t],{data:o?e.map(t=>{const e=t[o];return"number"!=typeof e?null:e}):i[t].data,stackedData:c[n].map(([t,e])=>[t,e])})})}),{seriesOrder:n,stackingGroups:o,series:$u(a,t=>null==t?"":t.toLocaleString())}},xExtremumGetter:t=>{const{axis:e}=t;return[Math.min(...e.data??[]),Math.max(...e.data??[])]},yExtremumGetter:t=>{const{series:e,axis:n,isDefaultAxis:i,getFilters:o}=t;return Object.keys(e).filter(t=>{const o=e[t].yAxisId??e[t].yAxisKey;return o===n.id||i&&void 0===o}).reduce((t,r)=>{const{area:s,stackedData:a}=e[r],l=void 0!==s,c=o?.({currentAxisId:n.id,isDefaultAxis:i,seriesXAxisId:e[r].xAxisId??e[r].xAxisKey,seriesYAxisId:e[r].yAxisId??e[r].yAxisKey}),u=function(t,e,n){return e.reduce((e,i,o)=>{const[r,s]=t(i);return!n||n({y:r,x:null},o)&&n({y:s,x:null},o)?[Math.min(r,s,e[0]),Math.max(r,s,e[1])]:e},[1/0,-1/0])}(l&&"log"!==n.scaleType&&"string"!=typeof e[r].baseline?t=>t:t=>[t[1],t[1]],a,c),[h,d]=u;return[Math.min(h,t[0]),Math.max(d,t[1])]},[1/0,-1/0])}};function Vu(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function qu(t){return t}function Gu(){var t=qu,e=Vu,n=null,i=_(0),o=_(Qo),r=_(0);function s(s){var a,l,c,u,h,d=(s=y(s)).length,p=0,f=new Array(d),m=new Array(d),g=+i.apply(this,arguments),_=Math.min(Qo,Math.max(-Qo,o.apply(this,arguments)-g)),v=Math.min(Math.abs(_)/d,r.apply(this,arguments)),x=v*(_<0?-1:1);for(a=0;a<d;++a)(h=m[f[a]=a]=+t(s[a],a,s))>0&&(p+=h);for(null!=e?f.sort(function(t,n){return e(m[t],m[n])}):null!=n&&f.sort(function(t,e){return n(s[t],s[e])}),a=0,c=p?(_-d*x)/p:0;a<d;++a,g=u)l=f[a],u=g+((h=m[l])>0?h*c:0)+x,m[l]={data:s[l],index:a,value:h,startAngle:g,endAngle:u,padAngle:v};return m}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:_(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:_(+t),s):i},s.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:_(+t),s):o},s.padAngle=function(t){return arguments.length?(r="function"==typeof t?t:_(+t),s):r},s}function Ku(t,e){return"function"==typeof t?t(e):t}Object.defineProperty(Vu,"name",{value:"default",configurable:!0}),Object.defineProperty(qu,"name",{value:"default",configurable:!0}),Object.defineProperty(Gu,"name",{value:"default",configurable:!0});const Yu=[Fu,Hu,Wu,{seriesType:"pie",colorProcessor:t=>e=>t.data[e].color,seriesFormatter:t=>{const{seriesOrder:e,series:n}=t,i={};return e.forEach(t=>{const e=Gu().startAngle(2*Math.PI*(n[t].startAngle??0)/360).endAngle(2*Math.PI*(n[t].endAngle??360)/360).padAngle(2*Math.PI*(n[t].paddingAngle??0)/360).sortValues(((t="none")=>{if("function"==typeof t)return t;switch(t){case"none":default:return null;case"desc":return(t,e)=>e-t;case"asc":return(t,e)=>t-e}})(n[t].sortingValues??"none"))(n[t].data.map(t=>t.value));i[t]=(0,r.A)({valueFormatter:t=>t.value.toLocaleString()},n[t],{data:n[t].data.map((n,i)=>(0,r.A)({},n,{id:n.id??`auto-generated-pie-id-${t}-${i}`},e[i])).map((e,i)=>(0,r.A)({},e,{formattedValue:n[t].valueFormatter?.((0,r.A)({},e,{label:Ku(e.label,"arc")}),{dataIndex:i})??e.value.toLocaleString()}))})}),{seriesOrder:e,series:i}}}];function Xu(t){const e=t??Yu,n={},i={},o={},r={},s={},a={};for(let t=0;t<e.length;t+=1){const l=e[t],c=l.seriesType;n[c]=l.seriesFormatter,i[c]=l.colorProcessor,l.xExtremumGetter&&(o[c]=l.xExtremumGetter),l.yExtremumGetter&&(r[c]=l.yExtremumGetter),l.rotationExtremumGetter&&(s[c]=l.rotationExtremumGetter),l.radiusExtremumGetter&&(a[c]=l.radiusExtremumGetter)}return{seriesFormatters:n,colorProcessors:i,xExtremumGetters:o,yExtremumGetters:r,rotationExtremumGetters:s,radiusExtremumGetters:a}}function Qu(e){const{children:n,plugins:o}=e,r=t.useMemo(()=>({isInitialized:!0,data:Xu(o)}),[o]);return(0,i.jsx)(Kr.Provider,{value:r,children:n})}const Ju=(t,e,n)=>{const i="x"===n?Po:ko;return[...t?.map((t,e)=>(0,r.A)({id:`defaultized-${n}-axis-${e}`},t))??[],...void 0===t||-1===t.findIndex(({id:t})=>t===i)?[{id:i,scaleType:"linear"}]:[]].map(t=>{const i=t.dataKey;if(void 0===i||void 0!==t.data)return t;if(void 0===e)throw new Error(`MUI X: ${n}-axis uses \`dataKey\` but no \`dataset\` is provided.`);return(0,r.A)({},t,{data:e.map(t=>t[i])})})},th=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children","skipAnimation"];function eh(e){const{children:n,skipAnimation:o}=e,r="undefined"==typeof window||!window?.matchMedia,[s,a]=t.useState(r||void 0);$e(()=>{if(r)return;const t=t=>{const e=t.matches||void 0;a(e),mt.assign({skipAnimation:e})},e=window.matchMedia("(prefers-reduced-motion)");return t(e),e?.addEventListener?.("change",t),()=>{e?.removeEventListener?.("change",t)}},[]);const l=t.useMemo(()=>({isInitialized:!0,data:{skipAnimation:o||s}}),[s,o]);return(0,i.jsx)(Lr.Provider,{value:l,children:n})}const nh=t.forwardRef(function(e,n){const{children:o,drawingProviderProps:s,seriesProviderProps:a,cartesianProviderProps:l,zAxisContextProps:c,highlightedProviderProps:u,chartsSurfaceProps:h,pluginProviderProps:d,animationProviderProps:p}=((e,n)=>{const{width:i,height:o,series:s,margin:a,xAxis:l,yAxis:c,zAxis:u,colors:h,dataset:d,sx:p,title:f,desc:m,disableAxisListener:y,highlightedItem:_,onHighlightChange:v,plugins:x,children:b,skipAnimation:w}=e,A=(0,g.A)(e,th),P=t.useRef(null),k=(0,E.A)(n,P),[M,C]=((e,n,i)=>[t.useMemo(()=>Ju(e,i,"x"),[e,i]),t.useMemo(()=>Ju(n,i,"y"),[n,i])])(l,c,d),I={skipAnimation:w},T={plugins:x};return{children:b,drawingProviderProps:{width:i,height:o,margin:a,svgRef:P},seriesProviderProps:{series:s,colors:h,dataset:d},cartesianProviderProps:{xAxis:M,yAxis:C,dataset:d},zAxisContextProps:{zAxis:u,dataset:d},highlightedProviderProps:{highlightedItem:_,onHighlightChange:v},chartsSurfaceProps:(0,r.A)({},A,{width:i,height:o,ref:k,sx:p,title:f,desc:m,disableAxisListener:y}),pluginProviderProps:T,animationProviderProps:I,xAxis:M,yAxis:C}})(e,n);return(0,i.jsx)(To,(0,r.A)({},s,{children:(0,i.jsx)(Qu,(0,r.A)({},d,{children:(0,i.jsx)(Yr,(0,r.A)({},a,{children:(0,i.jsx)(lu,(0,r.A)({},l,{children:(0,i.jsx)(uu,(0,r.A)({},c,{children:(0,i.jsx)(W,{children:(0,i.jsx)(mu,(0,r.A)({},u,{children:(0,i.jsxs)(ns,(0,r.A)({},h,{children:[(0,i.jsx)(kr,{}),(0,i.jsx)(eh,(0,r.A)({},p,{children:o}))]}))}))})}))}))}))}))}))}),ih=(0,K.Ay)("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:t})=>({width:t.width??"100%",height:t.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}));var oh=c(1529),rh=c(4877);const sh=["width","height","resolveSizeBeforeRender","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis","skipAnimation"],ah=t.forwardRef(function(e,n){const{hasIntrinsicSize:o,chartContainerProps:s,resizableChartContainerProps:a}=((e,n)=>{const{width:i,height:o,resolveSizeBeforeRender:s,margin:a,children:l,series:c,colors:u,dataset:h,desc:d,disableAxisListener:p,highlightedItem:f,onHighlightChange:m,plugins:y,sx:_,title:v,viewBox:x,xAxis:b,yAxis:w,zAxis:A,skipAnimation:P}=e,k=(0,g.A)(e,sh),{containerRef:M,width:C,height:I}=((e,n,i)=>{const o=t.useRef({displayError:!1,initialCompute:!0,computeRun:0}),r=t.useRef(null),[s,a]=t.useState(0),[l,c]=t.useState(0),u=t.useCallback(()=>{const t=r?.current;if(!t)return{};const e=(0,rh.A)(t).getComputedStyle(t),n=Math.floor(parseFloat(e.height))||0,i=Math.floor(parseFloat(e.width))||0;return a(i),c(n),{width:i,height:n}},[]);return t.useEffect(()=>{o.current.displayError=!0},[]),(0,oh.A)(()=>{if(!i||!o.current.initialCompute||o.current.computeRun>20)return;const t=u();t.width!==s||t.height!==l?o.current.computeRun+=1:o.current.initialCompute&&(o.current.initialCompute=!1)},[s,l,u,i]),(0,oh.A)(()=>{if(void 0!==e&&void 0!==n)return()=>{};u();const t=r.current;if("undefined"==typeof ResizeObserver)return()=>{};let i;const o=new ResizeObserver(()=>{i=requestAnimationFrame(()=>{u()})});return t&&o.observe(t),()=>{i&&cancelAnimationFrame(i),t&&o.unobserve(t)}},[u,n,e]),{containerRef:r,width:e??s,height:n??l}})(i,o,s);return{hasIntrinsicSize:C&&I,chartContainerProps:{margin:a,children:l,series:c,colors:u,dataset:h,desc:d,disableAxisListener:p,highlightedItem:f,onHighlightChange:m,plugins:y,sx:_,title:v,viewBox:x,xAxis:b,yAxis:w,zAxis:A,skipAnimation:P,width:C,height:I,ref:n},resizableChartContainerProps:(0,r.A)({},k,{ownerState:{width:i,height:o},ref:M})}})(e,n);return(0,i.jsx)(ih,(0,r.A)({},a,{children:o?(0,i.jsx)(nh,(0,r.A)({},s)):null}))});function lh(t){return(0,D.Ay)("MuiMarkElement",t)}new Set,(0,Z.A)("MuiMarkElement",["root","highlighted","faded"]);const ch=t=>{const{classes:e,id:n,isFaded:i,isHighlighted:o}=t,r={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return(0,z.A)(r,lh,e)},uh=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","shape"];function hh(e){const{x:n,y:o,id:s,classes:a,color:l,dataIndex:c,onClick:u,skipAnimation:h,shape:d}=e,p=(0,g.A)(e,uh);"circle"!==d&&[`MUI X: The mark element of your line chart have shape "${d}" which is not supported when using \`experimentalRendering=true\`.`,'Only "circle" are supported with `experimentalRendering`.'].join("\n");const f=Hr(),m=G(),{isFaded:y,isHighlighted:_}=Ro({seriesId:s}),{axis:v}=t.useContext(H),x=pi({to:{x:n,y:o},immediate:h}),b={id:s,classes:a,isHighlighted:v.x?.index===c||_,isFaded:y,color:l},w=ch(b);return(0,i.jsx)(Ei.circle,(0,r.A)({},p,{cx:x.x,cy:x.y,r:5,fill:(f.vars||f).palette.background.paper,stroke:l,strokeWidth:2,className:w.root,onClick:u,cursor:u?"pointer":"unset"},m({type:"line",seriesId:s,dataIndex:c})))}Go(3);const dh={draw(t,e){const n=Go(e/Yo);t.moveTo(n,0),t.arc(0,0,n,0,Qo)}},ph={draw(t,e){const n=Go(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},fh=Go(1/3),mh=2*fh,gh={draw(t,e){const n=Go(e/mh),i=n*fh;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}},yh={draw(t,e){const n=Go(e),i=-n/2;t.rect(i,i,n,n)}},_h=qo(Yo/10)/qo(7*Yo/10),vh=qo(Qo/10)*_h,xh=-Uo(Qo/10)*_h,bh={draw(t,e){const n=Go(.8908130915292852*e),i=vh*n,o=xh*n;t.moveTo(0,-n),t.lineTo(i,o);for(let e=1;e<5;++e){const r=Qo*e/5,s=Uo(r),a=qo(r);t.lineTo(a*n,-s*n),t.lineTo(s*i-a*o,a*i+s*o)}t.closePath()}},wh=Go(3),Ah={draw(t,e){const n=-Go(e/(3*wh));t.moveTo(0,2*n),t.lineTo(-wh*n,-n),t.lineTo(wh*n,-n),t.closePath()}},Ph=(Go(3),-.5),kh=Go(3)/2,Mh=1/Go(12),Ch=3*(Mh/2+1),Ih=[dh,ph,gh,yh,bh,Ah,{draw(t,e){const n=Go(e/Ch),i=n/2,o=n*Mh,r=i,s=n*Mh+n,a=-r,l=s;t.moveTo(i,o),t.lineTo(r,s),t.lineTo(a,l),t.lineTo(Ph*i-kh*o,kh*i+Ph*o),t.lineTo(Ph*r-kh*s,kh*r+Ph*s),t.lineTo(Ph*a-kh*l,kh*a+Ph*l),t.lineTo(Ph*i+kh*o,Ph*o-kh*i),t.lineTo(Ph*r+kh*s,Ph*s-kh*r),t.lineTo(Ph*a+kh*l,Ph*l-kh*a),t.closePath()}}];function Th(t,e){let n=null,i=C(o);function o(){let o;if(n||(n=o=i()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),o)return n=null,o+""||null}return t="function"==typeof t?t:_(t||dh),e="function"==typeof e?e:_(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:_(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:_(+t),o):e},o.context=function(t){return arguments.length?(n=null==t?null:t,o):n},o}function Lh(t){return"circle cross diamond square star triangle wye".split(/ /).indexOf(t)||0}const Sh=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation"],Oh=(0,K.Ay)(Ei.path,{name:"MuiMarkElement",slot:"Root",overridesResolver:(t,e)=>e.root})(({ownerState:t,theme:e})=>({fill:(e.vars||e).palette.background.paper,stroke:t.color,strokeWidth:2}));function jh(e){const{x:n,y:o,id:s,classes:a,color:l,shape:c,dataIndex:u,onClick:h,skipAnimation:d}=e,p=(0,g.A)(e,Sh),f=G(),{isFaded:m,isHighlighted:y}=Ro({seriesId:s}),{axis:_}=t.useContext(H),v=pi({to:{x:n,y:o},immediate:d}),x={id:s,classes:a,isHighlighted:_.x?.index===u||y,isFaded:m,color:l},b=ch(x);return(0,i.jsx)(Oh,(0,r.A)({},p,{style:{transform:xi([v.x,v.y],(t,e)=>`translate(${t}px, ${e}px)`),transformOrigin:xi([v.x,v.y],(t,e)=>`${t}px ${e}px`)},ownerState:x,className:b.root,d:Th(Ih[Lh(c)])(),onClick:h,cursor:h?"pointer":"unset"},f({type:"line",seriesId:s,dataIndex:u})))}const zh=["slots","slotProps","skipAnimation","onItemClick","experimentalRendering"];function Eh(t){const{slots:e,slotProps:n,skipAnimation:o,onItemClick:s,experimentalRendering:a}=t,l=(0,g.A)(t,zh),c=Sr(o),u=Ir(),h=j(),d=So(),p=Lo(),f=e?.mark??(a?hh:jh);if(void 0===u)return null;const{series:m,stackingGroups:y}=u,{xAxis:_,yAxis:v,xAxisIds:x,yAxisIds:b}=h,w=x[0],A=b[0];return(0,i.jsx)("g",(0,r.A)({},l,{children:y.flatMap(({ids:t})=>t.map(t=>{const{xAxisId:e,yAxisId:o,xAxisKey:a=w,yAxisKey:l=A,stackedData:u,data:h,showMark:g=!0}=m[t];if(!1===g)return null;const y=e??a,x=o??l,b=Do(_[y].scale),P=v[x].scale,k=_[y].data;if(void 0===k)throw new Error(`MUI X: ${y===Po?"The first `xAxis`":`The x-axis with id "${y}"`} should have data property to be able to display a line plot.`);const M=wo(`${d}-${t}-line-clip`),C=Uu(m[t],_[y],v[x]);return(0,i.jsx)("g",{clipPath:`url(#${M})`,children:k?.map((t,e)=>{const n=null==h[e]?null:u[e][1];return{x:b(t),y:null===n?null:P(n),position:t,value:n,index:e}}).filter(({x:t,y:e,index:n,position:i,value:o})=>null!==o&&null!==e&&!!p.isPointInside({x:t,y:e})&&(!0===g||g({x:t,y:e,index:n,position:i,value:o}))).map(({x:e,y:o,index:a})=>(0,i.jsx)(f,(0,r.A)({id:t,dataIndex:a,shape:"circle",color:C(a),x:e,y:o,skipAnimation:c,onClick:s&&(e=>s(e,{type:"line",seriesId:t,dataIndex:a}))},n?.mark),`${t}-${a}`))},t)}))}))}function Rh(t){return(0,D.Ay)("MuiChartsAxis",t)}const Nh=(0,Z.A)("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),$h=(0,K.Ay)("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({[`& .${Nh.tickLabel}`]:(0,r.A)({},t.typography.caption,{fill:(t.vars||t).palette.text.primary}),[`& .${Nh.label}`]:(0,r.A)({},t.typography.body1,{fill:(t.vars||t).palette.text.primary}),[`& .${Nh.line}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${Nh.tick}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges"}})),Bh={widthCache:{},cacheCount:0},Fh={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Dh=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],Zh="mui_measurement_span";function Hh(t,e){return Dh.indexOf(t)>=0&&e===+e?`${e}px`:e}function Uh(t){return t.split("").reduce((t,e)=>e===e.toUpperCase()?[...t,"-",e.toLowerCase()]:[...t,e],[]).join("")}let Wh;function Vh({style:t,needsComputation:e,text:n}){return n.split("\n").map(n=>(0,r.A)({text:n},e?((t,e={})=>{if(null==t||"undefined"==typeof window)return{width:0,height:0};const n=`${t}`,i=(t=>Object.keys(t).sort().reduce((e,n)=>`${e}${Uh(n)}:${Hh(n,t[n])};`,""))(e),o=`${n}-${i}`;if(Bh.widthCache[o])return Bh.widthCache[o];try{let t=document.getElementById(Zh);null===t&&(t=document.createElement("span"),t.setAttribute("id",Zh),t.setAttribute("aria-hidden","true"),document.body.appendChild(t));const i=(0,r.A)({},Fh,e);Object.keys(i).map(e=>(t.style[Uh(e)]=Hh(e,i[e]),e)),t.textContent=n;const s=t.getBoundingClientRect(),a={width:s.width,height:s.height};return Bh.widthCache[o]=a,Bh.cacheCount+1>2e3?(Bh.cacheCount=0,Bh.widthCache={}):Bh.cacheCount+=1,Wh&&clearTimeout(Wh),Wh=setTimeout(()=>{t.textContent=""},0),a}catch{return{width:0,height:0}}})(n,t):{width:0,height:0}))}const qh=["x","y","style","text","ownerState"],Gh=["angle","textAnchor","dominantBaseline"];function Kh(e){const{x:n,y:o,style:s,text:a}=e,l=(0,g.A)(e,qh),c=s??{},{angle:u,textAnchor:h,dominantBaseline:d}=c,p=(0,g.A)(c,Gh),f=t.useMemo(()=>Vh({style:p,needsComputation:a.includes("\n"),text:a}),[p,a]);let m;switch(d){case"hanging":m=0;break;case"central":m=(f.length-1)/2*-f[0].height;break;default:m=(f.length-1)*-f[0].height}const y=[];return u&&y.push(`rotate(${u}, ${n}, ${o})`),(0,i.jsx)("text",(0,r.A)({},l,{transform:y.length>0?y.join(" "):void 0,x:n,y:o,textAnchor:h,dominantBaseline:d,style:p,children:f.map((t,e)=>(0,i.jsx)("tspan",{x:n,dy:`${0===e?m:f[0].height}px`,dominantBaseline:d,children:t.text},e))}))}const Yh=["scale","tickNumber","reverse"];const Xh=(0,K.Ay)($h,{name:"MuiChartsXAxis",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Qh={position:"bottom",disableLine:!1,disableTicks:!1,tickSize:6};function Jh(e){const{xAxisIds:n,xAxis:o}=j(),s=o[e.axisId??n[0]],{scale:a,tickNumber:l,reverse:c}=s,u=(0,g.A)(s,Yh),h=function(e=!1){const[n,i]=t.useState(!1);return(0,oh.A)(()=>{e||i(!0)},[e]),t.useEffect(()=>{e&&i(!0)},[e]),n}(),d=m({props:(0,r.A)({},u,e),name:"MuiChartsXAxis"}),p=(0,r.A)({},Qh,d),{position:f,disableLine:y,disableTicks:_,tickLabelStyle:v,label:x,labelStyle:b,tickFontSize:w,labelFontSize:A,tickSize:P,valueFormatter:k,slots:M,slotProps:C,tickInterval:I,tickLabelInterval:T,tickPlacement:L,tickLabelPlacement:S,sx:O}=p,E=Hr(),R=(t=>{const{classes:e,position:n}=t,i={root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return(0,z.A)(i,Rh,e)})((0,r.A)({},p,{theme:E})),{left:N,top:$,width:B,height:D,isPointInside:Z}=Lo(),H=_?4:P,U="bottom"===f?1:-1,W=M?.axisLine??"line",V=M?.axisTick??"line",q=M?.axisTickLabel??Kh,G=M?.axisLabel??Kh,K=F({elementType:q,externalSlotProps:C?.axisTickLabel,additionalProps:{style:(0,r.A)({textAnchor:"middle",dominantBaseline:"bottom"===f?"hanging":"auto",fontSize:w??12},v)},className:R.tickLabel,ownerState:{}}),Y=function(t,{tickLabelStyle:e,tickLabelInterval:n,reverse:i,isMounted:o}){const s=t.map(t=>{if(!o||void 0===t.formattedValue)return(0,r.A)({},t,{width:0,height:0});const n=Vh({style:e,needsComputation:!0,text:t.formattedValue});return(0,r.A)({},t,{width:Math.max(...n.map(t=>t.width)),height:Math.max(n.length*n[0].height)})});if("function"==typeof n)return s.map((t,e)=>(0,r.A)({},t,{skipLabel:!n(t.value,e)}));let a=0,l=0;const c=i?-1:1;return s.map((t,n)=>{const{width:i,offset:o,labelOffset:s,height:u}=t,h=function(t,e,n=0){const i=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(i<5)return t;if(i>85)return e;const o=i*Math.PI/180;return o<Math.atan2(e,t)?t/Math.cos(o):e/Math.sin(o)}(i,u,e?.angle),d=o+s;return a=d-c*(1.2*h)/2,n>0&&c*a<c*l?(0,r.A)({},t,{skipLabel:!0}):(l=d+c*(1.2*h)/2,t)})}(Wc({scale:a,tickNumber:l,valueFormatter:k,tickInterval:I,tickPlacement:L,tickLabelPlacement:S}),{tickLabelStyle:K.style,tickLabelInterval:T,reverse:c,isMounted:h}),X={x:N+B/2,y:U*(H+22)},Q=F({elementType:G,externalSlotProps:C?.axisLabel,additionalProps:{style:(0,r.A)({fontSize:A??14,textAnchor:"middle",dominantBaseline:"bottom"===f?"hanging":"auto"},b)},ownerState:{}}),J=a.domain(),tt=Fo(a);return tt&&0===J.length||!tt&&J.some(Hc)?null:(0,i.jsxs)(Xh,{transform:`translate(0, ${"bottom"===f?$+D:$})`,className:R.root,sx:O,children:[!y&&(0,i.jsx)(W,(0,r.A)({x1:N,x2:N+B,className:R.line},C?.axisLine)),Y.map(({formattedValue:t,offset:e,labelOffset:n,skipLabel:o},s)=>{const a=n??0,l=U*(H+3),c=Z({x:e,y:-1},{direction:"x"}),u=Z({x:e+a,y:-1},{direction:"x"});return(0,i.jsxs)("g",{transform:`translate(${e}, 0)`,className:R.tickContainer,children:[!_&&c&&(0,i.jsx)(V,(0,r.A)({y2:U*H,className:R.tick},C?.axisTick)),void 0!==t&&!o&&u&&(0,i.jsx)(q,(0,r.A)({x:a,y:l},K,{text:t.toString()}))]},s)}),x&&(0,i.jsx)("g",{className:R.label,children:(0,i.jsx)(G,(0,r.A)({},X,Q,{text:x}))})]})}const td=t.createContext(),ed=()=>{const e=t.useContext(td);return null!=e&&e},nd=["scale","tickNumber"],id=(0,K.Ay)($h,{name:"MuiChartsYAxis",slot:"Root",overridesResolver:(t,e)=>e.root})({}),od={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function rd(t){const{yAxisIds:e,yAxis:n}=j(),o=n[t.axisId??e[0]],{scale:s,tickNumber:a}=o,l=(0,g.A)(o,nd),c=m({props:(0,r.A)({},l,t),name:"MuiChartsYAxis"}),u=(0,r.A)({},od,c),{position:h,disableLine:d,disableTicks:p,tickFontSize:f,label:y,labelFontSize:_,labelStyle:v,tickLabelStyle:x,tickSize:b,valueFormatter:w,slots:A,slotProps:P,tickPlacement:k,tickLabelPlacement:M,tickInterval:C,tickLabelInterval:I,sx:T}=u,L=Hr(),S=ed(),O=(t=>{const{classes:e,position:n}=t,i={root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return(0,z.A)(i,Rh,e)})((0,r.A)({},u,{theme:L})),{left:E,top:R,width:N,height:$,isPointInside:B}=Lo(),D=p?4:b,Z=Wc({scale:s,tickNumber:a,valueFormatter:w,tickPlacement:k,tickLabelPlacement:M,tickInterval:C}),H="right"===h?1:-1,U={x:H*(f+D+10),y:R+$/2},W=A?.axisLine??"line",V=A?.axisTick??"line",q=A?.axisTickLabel??Kh,G=A?.axisLabel??Kh,K=!S&&"right"===h||S&&"right"!==h,Y=F({elementType:q,externalSlotProps:P?.axisTickLabel,additionalProps:{style:(0,r.A)({fontSize:f,textAnchor:K?"start":"end",dominantBaseline:"central"},x)},className:O.tickLabel,ownerState:{}}),X=F({elementType:G,externalSlotProps:P?.axisLabel,additionalProps:{style:(0,r.A)({fontSize:_,angle:90*H,textAnchor:"middle",dominantBaseline:"auto"},v)},ownerState:{}}),Q=F({elementType:W,externalSlotProps:P?.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),J=s.domain(),tt=Fo(s);return tt&&0===J.length||!tt&&J.some(Hc)?null:(0,i.jsxs)(id,{transform:`translate(${"right"===h?E+N:E}, 0)`,className:O.root,sx:T,children:[!d&&(0,i.jsx)(W,(0,r.A)({y1:R,y2:R+$,className:O.line},Q)),Z.map(({formattedValue:t,offset:e,labelOffset:n,value:o},s)=>{const a=H*(D+2),l=n,c="function"==typeof I&&!I?.(o,s);return B({x:-1,y:e},{direction:"y"})?(0,i.jsxs)("g",{transform:`translate(0, ${e})`,className:O.tickContainer,children:[!p&&(0,i.jsx)(V,(0,r.A)({x2:H*D,className:O.tick},P?.axisTick)),void 0!==t&&!c&&(0,i.jsx)(q,(0,r.A)({x:a,y:l,text:t.toString()},Y))]},s):null}),y&&(0,i.jsx)("g",{className:O.label,children:(0,i.jsx)(G,(0,r.A)({},U,X,{text:y}))})]})}const sd=(t,e)=>null==t?null:"object"==typeof t?t.axisId??e??null:t,ad=(t,e,n)=>"object"==typeof t?(0,r.A)({},t,{slots:(0,r.A)({},e,t?.slots),slotProps:(0,r.A)({},n,t?.slotProps)}):{slots:e,slotProps:n};function ld(e){const{topAxis:n,leftAxis:o,rightAxis:s,bottomAxis:a,slots:l,slotProps:c}=e,{xAxis:u,xAxisIds:h,yAxis:d,yAxisIds:p}=j(),f=sd(void 0===o?p[0]:o,p[0]),m=sd(void 0===a?h[0]:a,h[0]),g=sd(n,h[0]),y=sd(s,p[0]);if(null!==g&&!u[g])throw new Error([`MUI X: id used for top axis "${g}" is not defined.`,`Available ids are: ${h.join(", ")}.`].join("\n"));if(null!==f&&!d[f])throw new Error([`MUI X: id used for left axis "${f}" is not defined.`,`Available ids are: ${p.join(", ")}.`].join("\n"));if(null!==y&&!d[y])throw new Error([`MUI X: id used for right axis "${y}" is not defined.`,`Available ids are: ${p.join(", ")}.`].join("\n"));if(null!==m&&!u[m])throw new Error([`MUI X: id used for bottom axis "${m}" is not defined.`,`Available ids are: ${h.join(", ")}.`].join("\n"));const _=ad(n,l,c),v=ad(a,l,c),x=ad(o,l,c),b=ad(s,l,c);return(0,i.jsxs)(t.Fragment,{children:[g&&(0,i.jsx)(Jh,(0,r.A)({},_,{position:"top",axisId:g})),m&&(0,i.jsx)(Jh,(0,r.A)({},v,{position:"bottom",axisId:m})),f&&(0,i.jsx)(rd,(0,r.A)({},x,{position:"left",axisId:f})),y&&(0,i.jsx)(rd,(0,r.A)({},b,{position:"right",axisId:y}))]})}var cd=c(2923),ud=c(2325);function hd(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function dd(t){return t instanceof hd(t).Element||t instanceof Element}function pd(t){return t instanceof hd(t).HTMLElement||t instanceof HTMLElement}function fd(t){return"undefined"!=typeof ShadowRoot&&(t instanceof hd(t).ShadowRoot||t instanceof ShadowRoot)}var md=Math.max,gd=Math.min,yd=Math.round;function _d(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function vd(){return!/^((?!chrome|android).)*safari/i.test(_d())}function xd(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),o=1,r=1;e&&pd(t)&&(o=t.offsetWidth>0&&yd(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&yd(i.height)/t.offsetHeight||1);var s=(dd(t)?hd(t):window).visualViewport,a=!vd()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/o,c=(i.top+(a&&s?s.offsetTop:0))/r,u=i.width/o,h=i.height/r;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function bd(t){var e=hd(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wd(t){return t?(t.nodeName||"").toLowerCase():null}function Ad(t){return((dd(t)?t.ownerDocument:t.document)||window.document).documentElement}function Pd(t){return xd(Ad(t)).left+bd(t).scrollLeft}function kd(t){return hd(t).getComputedStyle(t)}function Md(t){var e=kd(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function Cd(t,e,n){void 0===n&&(n=!1);var i,o,r=pd(e),s=pd(e)&&function(t){var e=t.getBoundingClientRect(),n=yd(e.width)/t.offsetWidth||1,i=yd(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=Ad(e),l=xd(t,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==wd(e)||Md(a))&&(c=(i=e)!==hd(i)&&pd(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:bd(i)),pd(e)?((u=xd(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Pd(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Id(t){var e=xd(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Td(t){return"html"===wd(t)?t:t.assignedSlot||t.parentNode||(fd(t)?t.host:null)||Ad(t)}function Ld(t){return["html","body","#document"].indexOf(wd(t))>=0?t.ownerDocument.body:pd(t)&&Md(t)?t:Ld(Td(t))}function Sd(t,e){var n;void 0===e&&(e=[]);var i=Ld(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=hd(i),s=o?[r].concat(r.visualViewport||[],Md(i)?i:[]):i,a=e.concat(s);return o?a:a.concat(Sd(Td(s)))}function Od(t){return["table","td","th"].indexOf(wd(t))>=0}function jd(t){return pd(t)&&"fixed"!==kd(t).position?t.offsetParent:null}function zd(t){for(var e=hd(t),n=jd(t);n&&Od(n)&&"static"===kd(n).position;)n=jd(n);return n&&("html"===wd(n)||"body"===wd(n)&&"static"===kd(n).position)?e:n||function(t){var e=/firefox/i.test(_d());if(/Trident/i.test(_d())&&pd(t)&&"fixed"===kd(t).position)return null;var n=Td(t);for(fd(n)&&(n=n.host);pd(n)&&["html","body"].indexOf(wd(n))<0;){var i=kd(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}var Ed="top",Rd="bottom",Nd="right",$d="left",Bd="auto",Fd=[Ed,Rd,Nd,$d],Dd="start",Zd="end",Hd="viewport",Ud="popper",Wd=Fd.reduce(function(t,e){return t.concat([e+"-"+Dd,e+"-"+Zd])},[]),Vd=[].concat(Fd,[Bd]).reduce(function(t,e){return t.concat([e,e+"-"+Dd,e+"-"+Zd])},[]),qd=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Gd(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}}),i.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||o(t)}),i}var Kd={placement:"bottom",modifiers:[],strategy:"absolute"};function Yd(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function Xd(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?Kd:o;return function(t,e,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Kd,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;h(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:dd(t)?Sd(t):t.contextElement?Sd(t.contextElement):[],popper:Sd(e)};var s,c,d=function(t){var e=Gd(t);return qd.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((s=[].concat(i,a.options.modifiers),c=s.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{}),Object.keys(c).map(function(t){return c[t]})));return a.orderedModifiers=d.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var r=o({state:a,name:e,instance:u,options:i});l.push(r||function(){})}}),u.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,n=t.popper;if(Yd(e,n)){a.rects={reference:Cd(e,zd(n),"fixed"===a.options.strategy),popper:Id(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,l=void 0===s?{}:s,h=o.name;"function"==typeof r&&(a=r({state:a,options:l,name:h,instance:u})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise(function(t){u.forceUpdate(),t(a)})},function(){return s||(s=new Promise(function(t){Promise.resolve().then(function(){s=void 0,t(o())})})),s}),destroy:function(){h(),c=!0}};if(!Yd(t,e))return u;function h(){l.forEach(function(t){return t()}),l=[]}return u.setOptions(n).then(function(t){!c&&n.onFirstUpdate&&n.onFirstUpdate(t)}),u}}var Qd={passive:!0};const Jd={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=hd(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(t){t.addEventListener("scroll",n.update,Qd)}),a&&l.addEventListener("resize",n.update,Qd),function(){r&&c.forEach(function(t){t.removeEventListener("scroll",n.update,Qd)}),a&&l.removeEventListener("resize",n.update,Qd)}},data:{}};function tp(t){return t.split("-")[0]}function ep(t){return t.split("-")[1]}function np(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ip(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?tp(o):null,s=o?ep(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Ed:e={x:a,y:n.y-i.height};break;case Rd:e={x:a,y:n.y+n.height};break;case Nd:e={x:n.x+n.width,y:l};break;case $d:e={x:n.x-i.width,y:l};break;default:e={x:n.x,y:n.y}}var c=r?np(r):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Dd:e[c]=e[c]-(n[u]/2-i[u]/2);break;case Zd:e[c]=e[c]+(n[u]/2-i[u]/2)}}return e}var op={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rp(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,h=t.isFixed,d=s.x,p=void 0===d?0:d,f=s.y,m=void 0===f?0:f,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),v=$d,x=Ed,b=window;if(c){var w=zd(n),A="clientHeight",P="clientWidth";w===hd(n)&&"static"!==kd(w=Ad(n)).position&&"absolute"===a&&(A="scrollHeight",P="scrollWidth"),(o===Ed||(o===$d||o===Nd)&&r===Zd)&&(x=Rd,m-=(h&&w===b&&b.visualViewport?b.visualViewport.height:w[A])-i.height,m*=l?1:-1),o!==$d&&(o!==Ed&&o!==Rd||r!==Zd)||(v=Nd,p-=(h&&w===b&&b.visualViewport?b.visualViewport.width:w[P])-i.width,p*=l?1:-1)}var k,M=Object.assign({position:a},c&&op),C=!0===u?function(t,e){var n=t.x,i=t.y,o=e.devicePixelRatio||1;return{x:yd(n*o)/o||0,y:yd(i*o)/o||0}}({x:p,y:m},hd(n)):{x:p,y:m};return p=C.x,m=C.y,l?Object.assign({},M,((k={})[x]=_?"0":"",k[v]=y?"0":"",k.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",k)):Object.assign({},M,((e={})[x]=_?m+"px":"",e[v]=y?p+"px":"",e.transform="",e))}const sp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:tp(e.placement),variation:ep(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,rp(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,rp(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},ap={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];pd(o)&&wd(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(t){var e=i[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});pd(i)&&wd(i)&&(Object.assign(i.style,r),Object.keys(o).forEach(function(t){i.removeAttribute(t)}))})}},requires:["computeStyles"]},lp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,s=Vd.reduce(function(t,n){return t[n]=function(t,e,n){var i=tp(t),o=[$d,Ed].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[$d,Nd].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,r),t},{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=s}};var cp={left:"right",right:"left",bottom:"top",top:"bottom"};function up(t){return t.replace(/left|right|bottom|top/g,function(t){return cp[t]})}var hp={start:"end",end:"start"};function dp(t){return t.replace(/start|end/g,function(t){return hp[t]})}function pp(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&fd(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function fp(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function mp(t,e,n){return e===Hd?fp(function(t,e){var n=hd(t),i=Ad(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=vd();(c||!c&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+Pd(t),y:l}}(t,n)):dd(e)?function(t,e){var n=xd(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):fp(function(t){var e,n=Ad(t),i=bd(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=md(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=md(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+Pd(t),l=-i.scrollTop;return"rtl"===kd(o||n).direction&&(a+=md(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(Ad(t)))}function gp(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function yp(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}function _p(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.strategy,s=void 0===r?t.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,u=void 0===c?Hd:c,h=n.elementContext,d=void 0===h?Ud:h,p=n.altBoundary,f=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,y=gp("number"!=typeof g?g:yp(g,Fd)),_=d===Ud?"reference":Ud,v=t.rects.popper,x=t.elements[f?_:d],b=function(t,e,n,i){var o="clippingParents"===e?function(t){var e=Sd(Td(t)),n=["absolute","fixed"].indexOf(kd(t).position)>=0&&pd(t)?zd(t):t;return dd(n)?e.filter(function(t){return dd(t)&&pp(t,n)&&"body"!==wd(t)}):[]}(t):[].concat(e),r=[].concat(o,[n]),s=r[0],a=r.reduce(function(e,n){var o=mp(t,n,i);return e.top=md(o.top,e.top),e.right=gd(o.right,e.right),e.bottom=gd(o.bottom,e.bottom),e.left=md(o.left,e.left),e},mp(t,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(dd(x)?x:x.contextElement||Ad(t.elements.popper),l,u,s),w=xd(t.elements.reference),A=ip({reference:w,element:v,strategy:"absolute",placement:o}),P=fp(Object.assign({},v,A)),k=d===Ud?P:w,M={top:b.top-k.top+y.top,bottom:k.bottom-b.bottom+y.bottom,left:b.left-k.left+y.left,right:k.right-b.right+y.right},C=t.modifiersData.offset;if(d===Ud&&C){var I=C[o];Object.keys(M).forEach(function(t){var e=[Nd,Rd].indexOf(t)>=0?1:-1,n=[Ed,Rd].indexOf(t)>=0?"y":"x";M[t]+=I[n]*e})}return M}const vp={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=e.options.placement,y=tp(g),_=l||(y!==g&&f?function(t){if(tp(t)===Bd)return[];var e=up(t);return[dp(t),e,dp(e)]}(g):[up(g)]),v=[g].concat(_).reduce(function(t,n){return t.concat(tp(n)===Bd?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Vd:l,u=ep(i),h=u?a?Wd:Wd.filter(function(t){return ep(t)===u}):Fd,d=h.filter(function(t){return c.indexOf(t)>=0});0===d.length&&(d=h);var p=d.reduce(function(e,n){return e[n]=_p(t,{placement:n,boundary:o,rootBoundary:r,padding:s})[tp(n)],e},{});return Object.keys(p).sort(function(t,e){return p[t]-p[e]})}(e,{placement:n,boundary:u,rootBoundary:h,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),x=e.rects.reference,b=e.rects.popper,w=new Map,A=!0,P=v[0],k=0;k<v.length;k++){var M=v[k],C=tp(M),I=ep(M)===Dd,T=[Ed,Rd].indexOf(C)>=0,L=T?"width":"height",S=_p(e,{placement:M,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),O=T?I?Nd:$d:I?Rd:Ed;x[L]>b[L]&&(O=up(O));var j=up(O),z=[];if(r&&z.push(S[C]<=0),a&&z.push(S[O]<=0,S[j]<=0),z.every(function(t){return t})){P=M,A=!1;break}w.set(M,z)}if(A)for(var E=function(t){var e=v.find(function(e){var n=w.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return P=e,"break"},R=f?3:1;R>0&&"break"!==E(R);R--);e.placement!==P&&(e.modifiersData[i]._skip=!0,e.placement=P,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xp(t,e,n){return md(t,gd(e,n))}const bp={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,d=n.tether,p=void 0===d||d,f=n.tetherOffset,m=void 0===f?0:f,g=_p(e,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),y=tp(e.placement),_=ep(e.placement),v=!_,x=np(y),b="x"===x?"y":"x",w=e.modifiersData.popperOffsets,A=e.rects.reference,P=e.rects.popper,k="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,M="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(w){if(r){var T,L="y"===x?Ed:$d,S="y"===x?Rd:Nd,O="y"===x?"height":"width",j=w[x],z=j+g[L],E=j-g[S],R=p?-P[O]/2:0,N=_===Dd?A[O]:P[O],$=_===Dd?-P[O]:-A[O],B=e.elements.arrow,F=p&&B?Id(B):{width:0,height:0},D=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=D[L],H=D[S],U=xp(0,A[O],F[O]),W=v?A[O]/2-R-U-Z-M.mainAxis:N-U-Z-M.mainAxis,V=v?-A[O]/2+R+U+H+M.mainAxis:$+U+H+M.mainAxis,q=e.elements.arrow&&zd(e.elements.arrow),G=q?"y"===x?q.clientTop||0:q.clientLeft||0:0,K=null!=(T=null==C?void 0:C[x])?T:0,Y=j+V-K,X=xp(p?gd(z,j+W-K-G):z,j,p?md(E,Y):E);w[x]=X,I[x]=X-j}if(a){var Q,J="x"===x?Ed:$d,tt="x"===x?Rd:Nd,et=w[b],nt="y"===b?"height":"width",it=et+g[J],ot=et-g[tt],rt=-1!==[Ed,$d].indexOf(y),st=null!=(Q=null==C?void 0:C[b])?Q:0,at=rt?it:et-A[nt]-P[nt]-st+M.altAxis,lt=rt?et+A[nt]+P[nt]-st-M.altAxis:ot,ct=p&&rt?function(t,e,n){var i=xp(t,e,n);return i>n?n:i}(at,et,lt):xp(p?at:it,et,p?lt:ot);w[b]=ct,I[b]=ct-et}e.modifiersData[i]=I}},requiresIfExists:["offset"]},wp={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=tp(n.placement),l=np(a),c=[$d,Nd].indexOf(a)>=0?"height":"width";if(r&&s){var u=function(t,e){return gp("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:yp(t,Fd))}(o.padding,n),h=Id(r),d="y"===l?Ed:$d,p="y"===l?Rd:Nd,f=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],g=zd(r),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,_=f/2-m/2,v=u[d],x=y-h[c]-u[p],b=y/2-h[c]/2+_,w=xp(v,b,x),A=l;n.modifiersData[i]=((e={})[A]=w,e.centerOffset=w-b,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&pp(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ap(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Pp(t){return[Ed,Nd,Rd,$d].some(function(e){return t[e]>=0})}var kp=Xd({defaultModifiers:[Jd,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=ip({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},sp,ap,lp,vp,bp,wp,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=_p(e,{elementContext:"reference"}),a=_p(e,{altBoundary:!0}),l=Ap(s,i),c=Ap(a,o,r),u=Pp(l),h=Pp(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}}]}),Mp=c(7365);const Cp=t.forwardRef(function(e,n){const{children:o,container:r,disablePortal:s=!1}=e,[a,l]=t.useState(null),c=(0,E.A)(t.isValidElement(o)?(u=o,parseInt(t.version,10)>=19?(null==u||null==(h=u.props)?void 0:h.ref)||null:(null==u?void 0:u.ref)||null):null,n);var u,h;if((0,oh.A)(()=>{s||l(function(t){return"function"==typeof t?t():t}(r)||document.body)},[r,s]),(0,oh.A)(()=>{if(a&&!s)return(0,Mp.A)(n,a),()=>{(0,Mp.A)(n,null)}},[n,a,s]),s){if(t.isValidElement(o)){const e={ref:c};return t.cloneElement(o,e)}return(0,i.jsx)(t.Fragment,{children:o})}return(0,i.jsx)(t.Fragment,{children:a?bi.createPortal(o,a):a})});function Ip(t){return(0,D.Ay)("MuiPopper",t)}(0,Z.A)("MuiPopper",["root"]);const Tp=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Lp=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Sp(t){return"function"==typeof t?t():t}const Op={},jp=t.forwardRef(function(e,n){var o;const{anchorEl:s,children:a,direction:l,disablePortal:c,modifiers:u,open:h,placement:d,popperOptions:p,popperRef:f,slotProps:m={},slots:y={},TransitionProps:_}=e,v=(0,g.A)(e,Tp),x=t.useRef(null),b=(0,E.A)(x,n),w=t.useRef(null),A=(0,E.A)(w,f),P=t.useRef(A);(0,oh.A)(()=>{P.current=A},[A]),t.useImperativeHandle(f,()=>w.current,[]);const k=function(t,e){if("ltr"===e)return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}(d,l),[M,C]=t.useState(k),[I,T]=t.useState(Sp(s));t.useEffect(()=>{w.current&&w.current.forceUpdate()}),t.useEffect(()=>{s&&T(Sp(s))},[s]),(0,oh.A)(()=>{if(!I||!h)return;let t=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{C(t.placement)}}];null!=u&&(t=t.concat(u)),p&&null!=p.modifiers&&(t=t.concat(p.modifiers));const e=kp(I,x.current,(0,r.A)({placement:k},p,{modifiers:t}));return P.current(e),()=>{e.destroy(),P.current(null)}},[I,c,u,h,p,k]);const L={placement:M};null!==_&&(L.TransitionProps=_);const S=(t=>{const{classes:e}=t;return(0,z.A)({root:["root"]},Ip,e)})(e),O=null!=(o=y.root)?o:"div",j=F({elementType:O,externalSlotProps:m.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:S.root});return(0,i.jsx)(O,(0,r.A)({},j,{children:"function"==typeof a?a(L):a}))}),zp=t.forwardRef(function(e,n){const{anchorEl:o,children:s,container:a,direction:l="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:h,open:d,placement:p="bottom",popperOptions:f=Op,popperRef:m,style:y,transition:_=!1,slotProps:v={},slots:x={}}=e,b=(0,g.A)(e,Lp),[w,A]=t.useState(!0);if(!u&&!d&&(!_||w))return null;let P;if(a)P=a;else if(o){const t=Sp(o);P=t&&void 0!==t.nodeType?(0,ud.A)(t).body:(0,ud.A)(null).body}const k=d||!u||_&&!w?void 0:"none",M=_?{in:d,onEnter:()=>{A(!1)},onExited:()=>{A(!0)}}:void 0;return(0,i.jsx)(Cp,{disablePortal:c,container:P,children:(0,i.jsx)(jp,(0,r.A)({anchorEl:o,direction:l,disablePortal:c,modifiers:h,ref:n,open:_?!w:d,placement:p,popperOptions:f,popperRef:m,slotProps:v,slots:x},b,{style:(0,r.A)({position:"fixed",top:0,left:0,display:k},y),TransitionProps:M,children:s}))})});var Ep=c(5607);const Rp=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Np=(0,K.Ay)(zp,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),$p=t.forwardRef(function(t,e){var n;const o=(0,cd.A)(),s=(0,Ep.b)({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:c,componentsProps:u,container:h,disablePortal:d,keepMounted:p,modifiers:f,open:m,placement:y,popperOptions:_,popperRef:v,transition:x,slots:b,slotProps:w}=s,A=(0,g.A)(s,Rp),P=null!=(n=null==b?void 0:b.root)?n:null==c?void 0:c.Root,k=(0,r.A)({anchorEl:a,container:h,disablePortal:d,keepMounted:p,modifiers:f,open:m,placement:y,popperOptions:_,popperRef:v,transition:x},A);return(0,i.jsx)(Np,(0,r.A)({as:l,direction:null==o?void 0:o.direction,slots:{root:P},slotProps:null!=w?w:u},k,{ref:e}))}),Bp=function(e){const{children:n,defer:o=!1,fallback:r=null}=e,[s,a]=t.useState(!1);return(0,oh.A)(()=>{o||a(!0)},[o]),t.useEffect(()=>{o&&a(!0)},[o]),(0,i.jsx)(t.Fragment,{children:s?n:r})};function Fp(t){if(null===t)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:e,y:n}=t,i={width:0,height:0,x:e,y:n,top:n,right:e,bottom:n,left:e};return{getBoundingClientRect:()=>(0,r.A)({},i,{toJSON:()=>JSON.stringify(i)})}}function Dp(t){return(0,D.Ay)("MuiChartsTooltip",t)}const Zp=(0,Z.A)("MuiChartsTooltip",["root","paper","table","row","cell","mark","markCell","labelCell","valueCell"]),Hp=(0,K.Ay)("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(t,e)=>e.paper})(({theme:t})=>({boxShadow:t.shadows[1],backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),borderRadius:t.shape.borderRadius})),Up=(0,K.Ay)("table",{name:"MuiChartsTooltip",slot:"Table",overridesResolver:(t,e)=>e.table})(({theme:t})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(t.vars||t).palette.divider} 1px`}})),Wp=(0,K.Ay)("tr",{name:"MuiChartsTooltip",slot:"Row",overridesResolver:(t,e)=>e.row})(({theme:t})=>({"tr:first-of-type& td":{paddingTop:t.spacing(1)},"tr:last-of-type& td":{paddingBottom:t.spacing(1)}})),Vp=(0,K.Ay)("td",{name:"MuiChartsTooltip",slot:"Cell",overridesResolver:(t,e)=>e.cell})(({theme:t})=>({verticalAlign:"middle",color:(t.vars||t).palette.text.secondary,[`&.${Zp.labelCell}`]:{paddingLeft:t.spacing(1)},[`&.${Zp.valueCell}`]:{paddingLeft:t.spacing(4),color:(t.vars||t).palette.text.primary},"td:first-of-type&":{paddingLeft:t.spacing(2)},"td:last-of-type&":{paddingRight:t.spacing(2)}})),qp=(0,K.Ay)("div",{name:"MuiChartsTooltip",slot:"Mark",overridesResolver:(t,e)=>e.mark,shouldForwardProp:t=>(0,Zr.shouldForwardProp)(t)&&"color"!==t})(({theme:t,color:e})=>({width:t.spacing(1),height:t.spacing(1),borderRadius:"50%",boxShadow:t.shadows[1],background:e,borderColor:(t.vars||t).palette.background.paper,border:`solid ${(t.vars||t).palette.background.paper} ${t.spacing(.25)}`,boxSizing:"content-box"}));function Gp(t){const{series:e,itemData:n,sx:o,classes:s,getColor:a}=t;if(void 0===n.dataIndex||!e.data[n.dataIndex])return null;const{displayedLabel:l,color:c}="pie"===e.type?{color:a(n.dataIndex),displayedLabel:Ku(e.data[n.dataIndex].label,"tooltip")}:{color:a(n.dataIndex),displayedLabel:Ku(e.label,"tooltip")},u="pie"===e.type?(0,r.A)({},e.data[n.dataIndex],{label:Ku(e.data[n.dataIndex].label,"tooltip")}):e.data[n.dataIndex],h=e.valueFormatter?.(u,{dataIndex:n.dataIndex});return(0,i.jsx)(Hp,{sx:o,className:s.paper,children:(0,i.jsx)(Up,{className:s.table,children:(0,i.jsx)("tbody",{children:(0,i.jsxs)(Wp,{className:s.row,children:[(0,i.jsx)(Vp,{className:(0,R.A)(s.markCell,s.cell),children:(0,i.jsx)(qp,{color:c,className:s.mark})}),(0,i.jsx)(Vp,{className:(0,R.A)(s.labelCell,s.cell),children:l}),(0,i.jsx)(Vp,{className:(0,R.A)(s.valueCell,s.cell),children:h})]})})})})}function Kp(e){const{isInitialized:n,data:i}=t.useContext(Kr);if(!n)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return e?i.colorProcessors[e]:i.colorProcessors}function Yp(e){const{content:n,itemData:o,sx:s,classes:a,contentProps:l}=e,c=Cr()[o.type].series[o.seriesId],{xAxis:u,yAxis:h,xAxisIds:d,yAxisIds:p}=j(),{zAxis:f,zAxisIds:m}=t.useContext(cu),g=Kp(),y=c.xAxisId??c.xAxisKey??d[0],_=c.yAxisId??c.yAxisKey??p[0],v=c.zAxisId??c.zAxisKey??m[0],x=g[c.type]?.(c,y&&u[y],_&&h[_],v&&f[v])??(()=>""),b=n??Gp,w=F({elementType:b,externalSlotProps:l,additionalProps:{itemData:o,series:c,sx:s,classes:a,getColor:x},ownerState:{}});return(0,i.jsx)(b,(0,r.A)({},w))}var Xp=c(9599),Qp=c(8466);function Jp(t){return(0,D.Ay)("MuiTypography",t)}(0,Z.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tf=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ef=(0,K.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],"inherit"!==n.align&&e[`align${(0,Qp.A)(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(({theme:t,ownerState:e})=>(0,r.A)({margin:0},"inherit"===e.variant&&{font:"inherit"},"inherit"!==e.variant&&t.typography[e.variant],"inherit"!==e.align&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),nf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},of={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},rf=t.forwardRef(function(t,e){const n=(0,Ep.b)({props:t,name:"MuiTypography"}),o=(t=>of[t]||t)(n.color),s=(0,Xp.A)((0,r.A)({},n,{color:o})),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:h=!1,paragraph:d=!1,variant:p="body1",variantMapping:f=nf}=s,m=(0,g.A)(s,tf),y=(0,r.A)({},s,{align:a,color:o,className:l,component:c,gutterBottom:u,noWrap:h,paragraph:d,variant:p,variantMapping:f}),_=c||(d?"p":f[p]||nf[p])||"span",v=(t=>{const{align:e,gutterBottom:n,noWrap:i,paragraph:o,variant:r,classes:s}=t,a={root:["root",r,"inherit"!==t.align&&`align${(0,Qp.A)(e)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return(0,z.A)(a,Jp,s)})(y);return(0,i.jsx)(ef,(0,r.A)({as:_,ref:e,ownerState:y,className:(0,R.A)(v.root,l)},m))}),sf=rf;let af;const lf=new class{constructor(){if(this.types=new Set,af)throw new Error("You can only create one instance!");af=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}};function cf(t){return lf.getTypes().has(t)}function uf(t){return cf(t.type)}function hf(t){const{series:e,axis:n,dataIndex:o,axisValue:r,sx:s,classes:a}=t;if(null==o)return null;const l=n.valueFormatter??(t=>"utc"===n.scaleType?function(t){return t instanceof Date?t.toUTCString():t.toLocaleString()}(t):t.toLocaleString());return(0,i.jsx)(Hp,{sx:s,className:a.paper,children:(0,i.jsxs)(Up,{className:a.table,children:[null!=r&&!n.hideTooltip&&(0,i.jsx)("thead",{children:(0,i.jsx)(Wp,{children:(0,i.jsx)(Vp,{colSpan:3,children:(0,i.jsx)(sf,{children:l(r,{location:"tooltip"})})})})}),(0,i.jsx)("tbody",{children:e.filter(uf).map(({id:t,label:e,valueFormatter:n,data:r,getColor:s})=>{const l=n(r[o]??null,{dataIndex:o});if(null==l)return null;const c=Ku(e,"tooltip"),u=s(o);return(0,i.jsxs)(Wp,{className:a.row,children:[(0,i.jsx)(Vp,{className:(0,R.A)(a.markCell,a.cell),children:u&&(0,i.jsx)(qp,{color:u,className:a.mark})}),(0,i.jsx)(Vp,{className:(0,R.A)(a.labelCell,a.cell),children:c?(0,i.jsx)(sf,{children:c}):null}),(0,i.jsx)(Vp,{className:(0,R.A)(a.valueCell,a.cell),children:(0,i.jsx)(sf,{children:l})})]},t)})})]})})}function df(e){const{content:n,contentProps:o,axisData:s,sx:a,classes:l}=e,c=s.x&&-1!==s.x.index,u=c?s.x&&s.x.index:s.y&&s.y.index,h=c?s.x&&s.x.value:s.y&&s.y.value,{xAxisIds:d,xAxis:p,yAxisIds:f,yAxis:m}=j(),{zAxisIds:g,zAxis:y}=t.useContext(cu),_=Cr(),v=Kp(),x=c?d[0]:f[0],b=t.useMemo(()=>{const t=[];return Object.keys(_).filter(cf).forEach(e=>{_[e].seriesOrder.forEach(n=>{const i=_[e].series[n],o=i.xAxisId??i.xAxisKey,s=i.yAxisId??i.yAxisKey,a=c?o:s;if(void 0===a||a===x){const i=_[e].series[n],a=o??d[0],l=s??f[0],c=i.zAxisId??i.zAxisKey??g[0],u=v[e]?.(i,p[a],m[l],c&&y[c])??(()=>"");t.push((0,r.A)({},i,{getColor:u}))}})}),t},[x,v,c,_,p,d,m,f,y,g]),w=t.useMemo(()=>c?p[x]:m[x],[x,c,p,m]),A=n??hf,P=F({elementType:A,externalSlotProps:o,additionalProps:{axisData:s,series:b,axis:w,dataIndex:u,axisValue:h,sx:a,classes:l},ownerState:{}});return(0,i.jsx)(A,(0,r.A)({},P))}lf.addType("bar"),lf.addType("line"),lf.addType("scatter");const pf=(0,K.Ay)($p,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({pointerEvents:"none",zIndex:t.zIndex.modal}));function ff(e){const n=m({props:e,name:"MuiChartsTooltip"}),{trigger:o="axis",itemContent:s,axisContent:a,slots:l,slotProps:c}=n,u=function(){const e=Qr(),[n,i]=t.useState(null);return t.useEffect(()=>{const t=e.current;if(null===t)return()=>{};const n=t=>{"mouse"!==t.pointerType&&i(null)},o=t=>{i({x:t.clientX,y:t.clientY,height:t.height,pointerType:t.pointerType})};return t.addEventListener("pointerdown",o),t.addEventListener("pointermove",o),t.addEventListener("pointerup",n),()=>{t.removeEventListener("pointerdown",o),t.removeEventListener("pointermove",o),t.removeEventListener("pointerup",n)}},[e]),n}(),{item:h,axis:d}=t.useContext(H),p="item"===o?h:d,f=function(t,e){if("item"===t)return null!==e;const n=null!==e.x,i=null!==e.y;return n||i}(o,p),g=null!==u&&f,y=(t=>{const{classes:e}=t;return(0,z.A)({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},Dp,e)})({classes:n.classes}),_=l?.popper??pf,v=F({elementType:_,externalSlotProps:c?.popper,additionalProps:{open:g,placement:"mouse"===u?.pointerType?"right-start":"top",anchorEl:Fp(u),modifiers:[{name:"offset",options:{offset:[0,"touch"===u?.pointerType?40-u.height:0]}}]},ownerState:{}});return"none"===o?null:(0,i.jsx)(Bp,{children:g&&(0,i.jsx)(_,(0,r.A)({},v,{className:y.root,children:"item"===o?(0,i.jsx)(Yp,{itemData:p,content:l?.itemContent??s,contentProps:c?.itemContent,sx:{mx:2},classes:y}):(0,i.jsx)(df,{axisData:p,content:l?.axisContent??a,contentProps:c?.axisContent,sx:{mx:2},classes:y})}))})}const mf={bar:t=>{const{seriesOrder:e,series:n}=t;return e.reduce((t,e)=>{const i=Ku(n[e].label,"legend");return void 0===i||t.push({id:e,seriesId:e,color:n[e].color,label:i}),t},[])},scatter:t=>{const{seriesOrder:e,series:n}=t;return e.reduce((t,e)=>{const i=Ku(n[e].label,"legend");return void 0===i||t.push({id:e,seriesId:e,color:n[e].color,label:i}),t},[])},line:t=>{const{seriesOrder:e,series:n}=t;return e.reduce((t,e)=>{const i=Ku(n[e].label,"legend");return void 0===i||t.push({id:e,seriesId:e,color:n[e].color,label:i}),t},[])},pie:t=>{const{seriesOrder:e,series:n}=t;return e.reduce((t,e)=>(n[e].data.forEach(n=>{const i=Ku(n.label,"legend");void 0!==i&&t.push({id:n.id,seriesId:e,color:n.color,label:i,itemId:n.id})}),t),[])}};function gf(t){return(0,D.Ay)("MuiChartsLegend",t)}(0,Z.A)("MuiChartsLegend",["root","series","itemBackground","mark","label","column","row"]);const yf=["label"];function _f(t){const e=ed(),{id:n,positionY:o,label:s,positionX:a,innerHeight:l,innerWidth:c,legendWidth:u,color:h,gapX:d,gapY:p,itemMarkHeight:f,itemMarkWidth:m,markGap:g,labelStyle:y,classes:_,onClick:v}=t;return(0,i.jsxs)("g",{className:(0,R.A)(_?.series,`${_?.series}-${n}`),transform:`translate(${d+(e?u-a:a)} ${p+o})`,children:[(0,i.jsx)("rect",{x:e?-(c+2):-2,y:-f/2-2,width:c+4,height:l+4,fill:"transparent",className:_?.itemBackground,onClick:v,style:{pointerEvents:v?"all":"none",cursor:v?"pointer":"unset"}}),(0,i.jsx)("rect",{className:_?.mark,x:e?-m:0,y:-f/2,width:m,height:f,fill:h,style:{pointerEvents:"none"}}),(0,i.jsx)(Kh,{style:(0,r.A)({pointerEvents:"none"},y),text:s,x:(e?-1:1)*(m+g),y:0})]})}const vf=["rotate","dominantBaseline"],xf=(0,K.Ay)("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(t,e)=>e.root})({});function bf(e){const{position:n,direction:o,itemsToDisplay:s,classes:a,itemMarkWidth:l=20,itemMarkHeight:c=20,markGap:u=5,itemGap:h=10,padding:d=10,labelStyle:p,onItemClick:f}=e,m=Hr(),y=Lo(),_=t.useMemo(()=>(0,r.A)({},m.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(m.vars||m).palette.text.primary,lineHeight:1},p),[p,m]),v=t.useMemo(()=>(t=>"number"==typeof t?{left:t,right:t,top:t,bottom:t}:(0,r.A)({left:0,right:0,top:0,bottom:0},t))(d),[d]),x=t.useCallback((t,e={})=>{const n=Vh({style:(0,g.A)(e,vf),needsComputation:!0,text:t}),i={innerWidth:l+u+Math.max(...n.map(t=>t.width)),innerHeight:Math.max(c,n.length*n[0].height)};return(0,r.A)({},i,{outerWidth:i.innerWidth+h,outerHeight:i.innerHeight+h})},[h,c,l,u]),b=y.left+y.width+y.right,w=y.top+y.height+y.bottom,A=b-v.left-v.right,P=w-v.top-v.bottom,[k,M,C]=t.useMemo(()=>function(t,e,n,i,o,s,a){let l=0,c=0,u=0,h=0,d=0;const p=[0];return[t.map(t=>{let{label:f}=t,m=(0,g.A)(t,yf);const y=e(f,n),_=(0,r.A)({},m,{label:f,positionX:l,positionY:c,innerHeight:y.innerHeight,innerWidth:y.innerWidth,outerHeight:y.outerHeight,outerWidth:y.outerWidth,rowIndex:d});return"row"===i&&(l+y.innerWidth>o&&(l=0,c+=p[d],d+=1,p.length<=d&&p.push(0),_.positionX=l,_.positionY=c,_.rowIndex=d),u=Math.max(u,l+y.outerWidth),h=Math.max(h,c+y.outerHeight),p[d]=Math.max(p[d],y.outerHeight),l+=y.outerWidth),"column"===i&&(c+y.innerHeight>s&&(l=u+a,c=0,d=0,_.positionX=l,_.positionY=c,_.rowIndex=d),p.length<=d&&p.push(0),u=Math.max(u,l+y.outerWidth),h=Math.max(h,c+y.outerHeight),d+=1,c+=y.outerHeight),_}).map(t=>(0,r.A)({},t,{positionY:t.positionY+("row"===i?p[t.rowIndex]/2:t.outerHeight/2)})),u,h]}(s,x,_,o,A,P,h),[s,x,_,o,A,P,h]),I=t.useMemo(()=>{switch(n.horizontal){case"left":return v.left;case"right":return b-v.right-M;default:return(b-M)/2}},[n.horizontal,v.left,v.right,b,M]),T=t.useMemo(()=>{switch(n.vertical){case"top":return v.top;case"bottom":return w-v.bottom-C;default:return(w-C)/2}},[n.vertical,v.top,v.bottom,w,C]);return(0,i.jsx)(Bp,{children:(0,i.jsx)(xf,{className:a?.root,children:k.map((e,n)=>(0,t.createElement)(_f,(0,r.A)({},e,{key:e.id,gapX:I,gapY:T,legendWidth:M,itemMarkHeight:c,itemMarkWidth:l,markGap:u,labelStyle:_,classes:a,onClick:f?t=>f(t,n):void 0})))})})}const wf=["drawingArea","seriesToDisplay","hidden","onItemClick"];function Af(t){const{seriesToDisplay:e,hidden:n,onItemClick:o}=t,s=(0,g.A)(t,wf);return n?null:(0,i.jsx)(bf,(0,r.A)({},s,{itemsToDisplay:e,onItemClick:o?(t,n)=>{return o(t,{type:"series",color:(i=e[n]).color,label:i.label,seriesId:i.seriesId,itemId:i.itemId},n);var i}:void 0}))}const Pf=["slots","slotProps"];function kf(t){const e=m({props:t,name:"MuiChartsLegend"}),n=(0,r.A)({direction:"row"},e,{position:(0,r.A)({horizontal:"middle",vertical:"top"},e.position)}),{slots:o,slotProps:s}=n,a=(0,g.A)(n,Pf),l=Hr(),c=(t=>{const{classes:e,direction:n}=t,i={root:["root",n],mark:["mark"],label:["label"],series:["series"],itemBackground:["itemBackground"]};return(0,z.A)(i,gf,e)})((0,r.A)({},n,{theme:l})),u=Lo(),h=Cr(),d=function(t){return Object.keys(t).flatMap(e=>{const n=mf[e];return void 0===n?[]:n(t[e])})}(h),p=o?.legend??Af,f=F({elementType:p,externalSlotProps:s?.legend,additionalProps:(0,r.A)({},a,{classes:c,drawingArea:u,series:h,seriesToDisplay:d}),ownerState:{}});return(0,i.jsx)(p,(0,r.A)({},f))}function Mf(t){return(0,D.Ay)("MuiChartsAxisHighlight",t)}(0,Z.A)("MuiChartsAxisHighlight",["root"]);const Cf=(0,K.Ay)("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:(0,r.A)({fill:"white",fillOpacity:.1},t.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:(0,r.A)({strokeDasharray:"5 2",stroke:"#ffffff"},t.applyStyles("light",{stroke:"#000000"}))}]}));function If(e){const{x:n,y:o}=e,{xAxisIds:r,xAxis:s,yAxisIds:a,yAxis:l}=j(),c=(0,z.A)({root:["root"]},Mf),u=r[0],h=a[0],d=s[u].scale,p=l[h].scale,{axis:f}=t.useContext(H),m=Do(d),g=Do(p),y=f.x,_=f.y,v="band"===n&&null!==y&&Fo(d),x="band"===o&&null!==_&&Fo(p);return(0,i.jsxs)(t.Fragment,{children:[v&&void 0!==d(y.value)&&(0,i.jsx)(Cf,{d:`M ${d(y.value)-(d.step()-d.bandwidth())/2} ${p.range()[0]} l ${d.step()} 0 l 0 ${p.range()[1]-p.range()[0]} l ${-d.step()} 0 Z`,className:c.root,ownerState:{axisHighlight:"band"}}),x&&void 0!==p(_.value)&&(0,i.jsx)(Cf,{d:`M ${d.range()[0]} ${p(_.value)-(p.step()-p.bandwidth())/2} l 0 ${p.step()} l ${d.range()[1]-d.range()[0]} 0 l 0 ${-p.step()} Z`,className:c.root,ownerState:{axisHighlight:"band"}}),"line"===n&&null!==f.x&&(0,i.jsx)(Cf,{d:`M ${m(f.x.value)} ${p.range()[0]} L ${m(f.x.value)} ${p.range()[1]}`,className:c.root,ownerState:{axisHighlight:"line"}}),"line"===o&&null!==f.y&&(0,i.jsx)(Cf,{d:`M ${d.range()[0]} ${g(f.y.value)} L ${d.range()[1]} ${g(f.y.value)}`,className:c.root,ownerState:{axisHighlight:"line"}})]})}function Tf(t){const{id:e,offset:n}=t,{left:o,top:s,width:a,height:l}=Lo(),c=(0,r.A)({top:0,right:0,bottom:0,left:0},n);return(0,i.jsx)("clipPath",{id:e,children:(0,i.jsx)("rect",{x:o-c.left,y:s-c.top,width:a+c.left+c.right,height:l+c.top+c.bottom})})}const Lf=["x","y","id","classes","color"];function Sf(t){return(0,D.Ay)("MuiHighlightElement",t)}(0,Z.A)("MuiHighlightElement",["root"]);const Of=(0,K.Ay)("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(t,e)=>e.root})(({ownerState:t})=>({transform:`translate(${t.x}px, ${t.y}px)`,transformOrigin:`${t.x}px ${t.y}px`,fill:t.color}));function jf(t){const{x:e,y:n,id:o,classes:s,color:a}=t,l=(0,g.A)(t,Lf),c={id:o,classes:s,color:a,x:e,y:n},u=(t=>{const{classes:e,id:n}=t,i={root:["root",`series-${n}`]};return(0,z.A)(i,Sf,e)})(c);return(0,i.jsx)(Of,(0,r.A)({pointerEvents:"none",ownerState:c,className:u.root,cx:0,cy:0,r:void 0===l.r?5:l.r},l))}const zf=["slots","slotProps"];function Ef(e){const{slots:n,slotProps:o}=e,s=(0,g.A)(e,zf),a=Ir(),l=j(),c=Lo(),{axis:u}=t.useContext(H),h=u.x?.index;if(void 0===h)return null;if(void 0===a)return null;const{series:d,stackingGroups:p}=a,{xAxis:f,yAxis:m,xAxisIds:y,yAxisIds:_}=l,v=y[0],x=_[0],b=n?.lineHighlight??jf;return(0,i.jsx)("g",(0,r.A)({},s,{children:p.flatMap(({ids:t})=>t.flatMap(t=>{const{xAxisId:e,yAxisId:n,xAxisKey:s=v,yAxisKey:a=x,stackedData:l,data:u,disableHighlight:p}=d[t],g=e??s,y=n??a;if(p||null==u[h])return null;const _=Do(f[g].scale),w=m[y].scale,A=f[g].data;if(void 0===A)throw new Error(`MUI X: ${g===Po?"The first `xAxis`":`The x-axis with id "${g}"`} should have data property to be able to display a line plot.`);const P=_(A[h]),k=w(l[h][1]);if(!c.isPointInside({x:P,y:k}))return null;const M=Uu(d[t],f[g],m[y]);return(0,i.jsx)(b,(0,r.A)({id:t,color:M(h),x:P,y:k},o?.lineHighlight),`${t}`)}))}))}function Rf(t){return(0,D.Ay)("MuiChartsGrid",t)}const Nf=(0,Z.A)("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),$f=(0,K.Ay)("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(t,e)=>[{[`&.${Nf.verticalLine}`]:e.verticalLine},{[`&.${Nf.horizontalLine}`]:e.horizontalLine},e.root]})({}),Bf=(0,K.Ay)("line",{name:"MuiChartsGrid",slot:"Line",overridesResolver:(t,e)=>e.line})(({theme:t})=>({stroke:(t.vars||t).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function Ff(e){const{axis:n,drawingArea:o,classes:r}=e,{scale:s,tickNumber:a,tickInterval:l}=n,c=Wc({scale:s,tickNumber:a,tickInterval:l});return(0,i.jsx)(t.Fragment,{children:c.map(({value:t,offset:e})=>(0,i.jsx)(Bf,{y1:o.top,y2:o.top+o.height,x1:e,x2:e,className:r.verticalLine},`vertical-${t}`))})}function Df(e){const{axis:n,drawingArea:o,classes:r}=e,{scale:s,tickNumber:a,tickInterval:l}=n,c=Wc({scale:s,tickNumber:a,tickInterval:l});return(0,i.jsx)(t.Fragment,{children:c.map(({value:t,offset:e})=>(0,i.jsx)(Bf,{y1:e,y2:e,x1:o.left,x2:o.left+o.width,className:r.horizontalLine},`horizontal-${t}`))})}const Zf=["vertical","horizontal"];function Hf(t){const e=m({props:t,name:"MuiChartsGrid"}),n=Lo(),{vertical:o,horizontal:s}=e,a=(0,g.A)(e,Zf),{xAxis:l,xAxisIds:c,yAxis:u,yAxisIds:h}=j(),d=(({classes:t})=>(0,z.A)({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},Rf,t))(e),p=u[h[0]],f=l[c[0]];return(0,i.jsxs)($f,(0,r.A)({},a,{className:d.root,children:[o&&(0,i.jsx)(Ff,{axis:f,drawingArea:n,classes:d}),s&&(0,i.jsx)(Df,{axis:p,drawingArea:n,classes:d})]}))}function Uf(e){const{onAxisClick:n}=e,o=Qr(),r=Cr(),{axis:s}=t.useContext(H),{xAxisIds:a,xAxis:l,yAxisIds:c,yAxis:u}=j();return t.useEffect(()=>{const t=o.current;if(null===t||!n)return()=>{};const e=t=>{t.preventDefault();const e=s.x&&-1!==s.x.index,i=e?a[0]:c[0],o=e?s.x&&s.x.index:s.y&&s.y.index;if(null==o)return;const h={};Object.keys(r).filter(t=>["bar","line"].includes(t)).forEach(t=>{r[t]?.seriesOrder.forEach(n=>{const s=r[t].series[n],a=s.xAxisId??s.xAxisKey,l=s.yAxisId??s.yAxisKey,c=e?a:l;void 0!==c&&c!==i||(h[n]=s.data[o])})});const d=(e?l:u)[i].data?.[o];n(t,{dataIndex:o,axisValue:d,seriesValues:h})};return t.addEventListener("click",e),()=>{t.removeEventListener("click",e)}},[s.x,s.y,n,r,o,l,a,u,c]),(0,i.jsx)(t.Fragment,{})}const Wf=["message"],Vf=(0,K.Ay)("text")(({theme:t})=>(0,r.A)({},t.typography.body2,{stroke:"none",fill:t.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function qf(t){const{message:e}=t,n=(0,g.A)(t,Wf),{top:o,left:s,height:a,width:l}=Lo();return(0,i.jsx)(Vf,(0,r.A)({x:s+l/2,y:o+a/2},n,{children:e??"Loading data…"}))}const Gf=["message"],Kf=(0,K.Ay)("text")(({theme:t})=>(0,r.A)({},t.typography.body2,{stroke:"none",fill:t.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function Yf(t){const{message:e}=t,n=(0,g.A)(t,Gf),{top:o,left:s,height:a,width:l}=Lo();return(0,i.jsx)(Kf,(0,r.A)({x:s+l/2,y:o+a/2},n,{children:e??"No data to display"}))}function Xf(t){const e=function(){const t=Cr();return Object.values(t).every(t=>{if(!t)return!0;const{series:e,seriesOrder:n}=t;return n.every(t=>0===e[t].data.length)})}();if(t.loading){const e=t.slots?.loadingOverlay??qf;return(0,i.jsx)(e,(0,r.A)({},t.slotProps?.loadingOverlay))}if(e){const e=t.slots?.noDataOverlay??Yf;return(0,i.jsx)(e,(0,r.A)({},t.slotProps?.noDataOverlay))}return null}const Qf=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","onAreaClick","onLineClick","onMarkClick","axisHighlight","disableLineItemHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","highlightedItem","onHighlightChange","className","experimentalMarkRendering"],Jf=t.forwardRef(function(t,e){const n=m({props:t,name:"MuiLineChart"}),{chartContainerProps:o,axisClickHandlerProps:s,gridProps:a,clipPathProps:l,clipPathGroupProps:c,areaPlotProps:u,linePlotProps:h,markPlotProps:d,overlayProps:p,chartsAxisProps:f,axisHighlightProps:y,lineHighlightPlotProps:_,legendProps:v,tooltipProps:x,children:b}=(t=>{const{xAxis:e,yAxis:n,series:i,width:o,height:s,margin:a,colors:l,dataset:c,sx:u,tooltip:h,onAxisClick:d,onAreaClick:p,onLineClick:f,onMarkClick:m,axisHighlight:y,disableLineItemHighlight:_,legend:v,grid:x,topAxis:b,leftAxis:w,rightAxis:A,bottomAxis:P,children:k,slots:M,slotProps:C,skipAnimation:I,loading:T,highlightedItem:L,onHighlightChange:S,className:O,experimentalMarkRendering:j}=t,z=(0,g.A)(t,Qf),E=`${(0,Ao.A)()}-clip-path`,R=(0,r.A)({},z,{series:i.map(t=>(0,r.A)({disableHighlight:!!_,type:"line"},t)),width:o,height:s,margin:a,colors:l,dataset:c,xAxis:e??[{id:Po,scaleType:"point",data:Array.from({length:Math.max(...i.map(t=>(t.data??c??[]).length))},(t,e)=>e)}],yAxis:n,sx:u,highlightedItem:L,onHighlightChange:S,disableAxisListener:"axis"!==h?.trigger&&"none"===y?.x&&"none"===y?.y&&!d,className:O,skipAnimation:I});return{chartContainerProps:R,axisClickHandlerProps:{onAxisClick:d},gridProps:{vertical:x?.vertical,horizontal:x?.horizontal},clipPathProps:{id:E},clipPathGroupProps:{clipPath:`url(#${E})`},areaPlotProps:{slots:M,slotProps:C,onItemClick:p},linePlotProps:{slots:M,slotProps:C,onItemClick:f},markPlotProps:{slots:M,slotProps:C,onItemClick:m,skipAnimation:I,experimentalRendering:j},overlayProps:{slots:M,slotProps:C,loading:T},chartsAxisProps:{topAxis:b,leftAxis:w,rightAxis:A,bottomAxis:P,slots:M,slotProps:C},axisHighlightProps:(0,r.A)({x:"line"},y),lineHighlightPlotProps:{slots:M,slotProps:C},legendProps:(0,r.A)({},v,{slots:M,slotProps:C}),tooltipProps:(0,r.A)({},h,{slots:M,slotProps:C}),children:k}})(n);return(0,i.jsxs)(ah,(0,r.A)({ref:e},o,{children:[n.onAxisClick&&(0,i.jsx)(Uf,(0,r.A)({},s)),(0,i.jsx)(Hf,(0,r.A)({},a)),(0,i.jsxs)("g",(0,r.A)({},c,{children:[(0,i.jsx)(jr,(0,r.A)({},u)),(0,i.jsx)(Dr,(0,r.A)({},h)),(0,i.jsx)(Xf,(0,r.A)({},p)),(0,i.jsx)(If,(0,r.A)({},y))]})),(0,i.jsx)(ld,(0,r.A)({},f)),(0,i.jsx)("g",{"data-drawing-container":!0,children:(0,i.jsx)(Eh,(0,r.A)({},d))}),(0,i.jsx)(Ef,(0,r.A)({},_)),(0,i.jsx)(kf,(0,r.A)({},v)),!n.loading&&(0,i.jsx)(ff,(0,r.A)({},x)),(0,i.jsx)(Tf,(0,r.A)({},l)),b]}))});var tm=c(9071),em=c(3478);const nm=(0,Z.A)("MuiBox",["root"]),im=(0,em.A)(),om=(0,Zr.createBox)({themeId:f.A,defaultTheme:im,defaultClassName:nm.root,generateClassName:tm.A.generate}),rm={top:30,right:24,bottom:84,left:78},sm=t=>({...rm,...t}),am=new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}),lm=t=>"number"==typeof t&&Number.isFinite(t)?am.format(t):null==t?"":String(t),cm=(t,e)=>{const n=null==t?"":String(t);return e<=0||n.length<=e?n:`${n.slice(0,e-1).trimEnd()}…`},um=t=>(e,n)=>n?.location&&"tick"!==n.location?String(e??""):cm(e,t),hm={"& .MuiChartsAxis-left .MuiChartsAxis-label":{translate:"-30px 0"}},dm={legend:{direction:"row",position:{vertical:"bottom",horizontal:"middle"},padding:0}},pm=({series:t,xAxisData:e,xAxisLabel:n,yAxisLabel:o,width:r,height:s,loading:a=!1,margin:l,valueFormatter:c=lm})=>{const u=e?[{data:e,scaleType:"point",label:n}]:n?[{label:n}]:void 0,h=[{label:o,valueFormatter:c}];return(0,i.jsx)(om,{sx:{width:"100%",height:"100%"},children:(0,i.jsx)(Jf,{series:t,xAxis:u,yAxis:h,width:r,height:s,loading:a,margin:sm(l),sx:hm,slotProps:dm})})};function fm(e){const{series:n,xScale:o,yScale:s,color:a,colorGetter:l,markerSize:c,onItemClick:u}=e,h=Lo(),{useVoronoiInteraction:d}=t.useContext(H),p=d||n.disableHover,f=G(p),{isFaded:m,isHighlighted:g}=q(),y=t.useMemo(()=>{const t=Do(o),e=Do(s),i=[];for(let o=0;o<n.data.length;o+=1){const r=n.data[o],s=t(r.x),c=e(r.y),u=h.isPointInside({x:s,y:c}),d={type:"scatter",seriesId:n.id,dataIndex:o};if(u){const t={seriesId:d.seriesId,dataIndex:d.dataIndex},e=g(t);i.push({x:s,y:c,isHighlighted:e,isFaded:!e&&m(t),interactionProps:f(d),id:r.id,dataIndex:o,color:l?l(o):a})}}return i},[o,s,h,n.data,n.id,g,m,f,l,a]);return(0,i.jsx)("g",{children:y.map(t=>(0,i.jsx)("circle",(0,r.A)({cx:0,cy:0,r:(t.isHighlighted?1.2:1)*c,transform:`translate(${t.x}, ${t.y})`,fill:t.color,opacity:t.isFaded?.3:1,onClick:u&&(e=>u(e,{type:"scatter",seriesId:n.id,dataIndex:t.dataIndex})),cursor:u?"pointer":"unset"},t.interactionProps),t.id))})}function mm(e){const{slots:n,slotProps:o,onItemClick:s}=e,a=Tr(),l=j(),{zAxis:c,zAxisIds:u}=t.useContext(cu);if(void 0===a)return null;const{series:h,seriesOrder:d}=a,{xAxis:p,yAxis:f,xAxisIds:m,yAxisIds:g}=l,y=m[0],_=g[0],v=u[0],x=n?.scatter??fm;return(0,i.jsx)(t.Fragment,{children:d.map(t=>{const{id:e,xAxisKey:n,yAxisKey:a,zAxisKey:l,xAxisId:u,yAxisId:d,zAxisId:m,markerSize:g,color:b}=h[t],w=Zu(h[t],p[u??n??y],f[d??a??_],c[m??l??v]),A=p[u??n??y].scale,P=f[d??a??_].scale;return(0,i.jsx)(x,(0,r.A)({xScale:A,yScale:P,color:b,colorGetter:w,markerSize:g??4,series:h[t],onItemClick:s},o?.scatter),e)})})}const gm=134217729;function ym(t,e,n,i,o){let r,s,a,l,c=e[0],u=i[0],h=0,d=0;u>c==u>-c?(r=c,c=e[++h]):(r=u,u=i[++d]);let p=0;if(h<t&&d<n)for(u>c==u>-c?(s=c+r,a=r-(s-c),c=e[++h]):(s=u+r,a=r-(s-u),u=i[++d]),r=s,0!==a&&(o[p++]=a);h<t&&d<n;)u>c==u>-c?(s=r+c,l=s-r,a=r-(s-l)+(c-l),c=e[++h]):(s=r+u,l=s-r,a=r-(s-l)+(u-l),u=i[++d]),r=s,0!==a&&(o[p++]=a);for(;h<t;)s=r+c,l=s-r,a=r-(s-l)+(c-l),c=e[++h],r=s,0!==a&&(o[p++]=a);for(;d<n;)s=r+u,l=s-r,a=r-(s-l)+(u-l),u=i[++d],r=s,0!==a&&(o[p++]=a);return 0===r&&0!==p||(o[p++]=r),p}function _m(t){return new Float64Array(t)}const vm=_m(4),xm=_m(8),bm=_m(12),wm=_m(16),Am=_m(4);function Pm(t,e,n,i,o,r){const s=(e-r)*(n-o),a=(t-o)*(i-r),l=s-a,c=Math.abs(s+a);return Math.abs(l)>=33306690738754716e-32*c?l:-function(t,e,n,i,o,r,s){let a,l,c,u,h,d,p,f,m,g,y,_,v,x,b,w,A,P;const k=t-o,M=n-o,C=e-r,I=i-r;x=k*I,d=gm*k,p=d-(d-k),f=k-p,d=gm*I,m=d-(d-I),g=I-m,b=f*g-(x-p*m-f*m-p*g),w=C*M,d=gm*C,p=d-(d-C),f=C-p,d=gm*M,m=d-(d-M),g=M-m,A=f*g-(w-p*m-f*m-p*g),y=b-A,h=b-y,vm[0]=b-(y+h)+(h-A),_=x+y,h=_-x,v=x-(_-h)+(y-h),y=v-w,h=v-y,vm[1]=v-(y+h)+(h-w),P=_+y,h=P-_,vm[2]=_-(P-h)+(y-h),vm[3]=P;let T=function(t,e){let n=e[0];for(let t=1;t<4;t++)n+=e[t];return n}(0,vm),L=22204460492503146e-32*s;if(T>=L||-T>=L)return T;if(h=t-k,a=t-(k+h)+(h-o),h=n-M,c=n-(M+h)+(h-o),h=e-C,l=e-(C+h)+(h-r),h=i-I,u=i-(I+h)+(h-r),0===a&&0===l&&0===c&&0===u)return T;if(L=11093356479670487e-47*s+33306690738754706e-32*Math.abs(T),T+=k*u+I*a-(C*c+M*l),T>=L||-T>=L)return T;x=a*I,d=gm*a,p=d-(d-a),f=a-p,d=gm*I,m=d-(d-I),g=I-m,b=f*g-(x-p*m-f*m-p*g),w=l*M,d=gm*l,p=d-(d-l),f=l-p,d=gm*M,m=d-(d-M),g=M-m,A=f*g-(w-p*m-f*m-p*g),y=b-A,h=b-y,Am[0]=b-(y+h)+(h-A),_=x+y,h=_-x,v=x-(_-h)+(y-h),y=v-w,h=v-y,Am[1]=v-(y+h)+(h-w),P=_+y,h=P-_,Am[2]=_-(P-h)+(y-h),Am[3]=P;const S=ym(4,vm,4,Am,xm);x=k*u,d=gm*k,p=d-(d-k),f=k-p,d=gm*u,m=d-(d-u),g=u-m,b=f*g-(x-p*m-f*m-p*g),w=C*c,d=gm*C,p=d-(d-C),f=C-p,d=gm*c,m=d-(d-c),g=c-m,A=f*g-(w-p*m-f*m-p*g),y=b-A,h=b-y,Am[0]=b-(y+h)+(h-A),_=x+y,h=_-x,v=x-(_-h)+(y-h),y=v-w,h=v-y,Am[1]=v-(y+h)+(h-w),P=_+y,h=P-_,Am[2]=_-(P-h)+(y-h),Am[3]=P;const O=ym(S,xm,4,Am,bm);x=a*u,d=gm*a,p=d-(d-a),f=a-p,d=gm*u,m=d-(d-u),g=u-m,b=f*g-(x-p*m-f*m-p*g),w=l*c,d=gm*l,p=d-(d-l),f=l-p,d=gm*c,m=d-(d-c),g=c-m,A=f*g-(w-p*m-f*m-p*g),y=b-A,h=b-y,Am[0]=b-(y+h)+(h-A),_=x+y,h=_-x,v=x-(_-h)+(y-h),y=v-w,h=v-y,Am[1]=v-(y+h)+(h-w),P=_+y,h=P-_,Am[2]=_-(P-h)+(y-h),Am[3]=P;const j=ym(O,bm,4,Am,wm);return wm[j-1]}(t,e,n,i,o,r,c)}_m(4),_m(4),_m(4),_m(4),_m(4),_m(4),_m(4),_m(4),_m(4),_m(8),_m(8),_m(8),_m(4),_m(8),_m(8),_m(16),_m(12),_m(192),_m(192),_m(4),_m(4),_m(4),_m(4),_m(4),_m(4),_m(4),_m(4),_m(8),_m(8),_m(8),_m(8),_m(8),_m(8),_m(8),_m(8),_m(8),_m(4),_m(4),_m(4),_m(8),_m(16),_m(16),_m(16),_m(32),_m(32),_m(48),_m(64),_m(1152),_m(1152),_m(4),_m(4),_m(4),_m(4),_m(4),_m(4),_m(4),_m(4),_m(4),_m(4),_m(24),_m(24),_m(24),_m(24),_m(24),_m(24),_m(24),_m(24),_m(24),_m(24),_m(1152),_m(1152),_m(1152),_m(1152),_m(1152),_m(2304),_m(2304),_m(3456),_m(5760),_m(8),_m(8),_m(8),_m(16),_m(24),_m(48),_m(48),_m(96),_m(192),_m(384),_m(384),_m(384),_m(768),_m(96),_m(96),_m(96),_m(1152);const km=Math.pow(2,-52),Mm=new Uint32Array(512);class Cm{static from(t,e=jm,n=zm){const i=t.length,o=new Float64Array(2*i);for(let r=0;r<i;r++){const i=t[r];o[2*r]=e(i),o[2*r+1]=n(i)}return new Cm(o)}constructor(t){const e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.trianglesLen=0,this._cx=0,this._cy=0,this._hullStart=0,this.hull=this._triangles,this.triangles=this._triangles,this.halfedges=this._halfedges,this.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:i,_hullHash:o}=this,r=t.length>>1;let s=1/0,a=1/0,l=-1/0,c=-1/0;for(let e=0;e<r;e++){const n=t[2*e],i=t[2*e+1];n<s&&(s=n),i<a&&(a=i),n>l&&(l=n),i>c&&(c=i),this._ids[e]=e}const u=(s+l)/2,h=(a+c)/2;let d=0,p=0,f=0;for(let e=0,n=1/0;e<r;e++){const i=Im(u,h,t[2*e],t[2*e+1]);i<n&&(d=e,n=i)}const m=t[2*d],g=t[2*d+1];for(let e=0,n=1/0;e<r;e++){if(e===d)continue;const i=Im(m,g,t[2*e],t[2*e+1]);i<n&&i>0&&(p=e,n=i)}let y=t[2*p],_=t[2*p+1],v=1/0;for(let e=0;e<r;e++){if(e===d||e===p)continue;const n=Lm(m,g,y,_,t[2*e],t[2*e+1]);n<v&&(f=e,v=n)}let x=t[2*f],b=t[2*f+1];if(v===1/0){for(let e=0;e<r;e++)this._dists[e]=t[2*e]-t[0]||t[2*e+1]-t[1];Sm(this._ids,this._dists,0,r-1);const e=new Uint32Array(r);let n=0;for(let t=0,i=-1/0;t<r;t++){const o=this._ids[t],r=this._dists[o];r>i&&(e[n++]=o,i=r)}return this.hull=e.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Int32Array(0))}if(Pm(m,g,y,_,x,b)<0){const t=p,e=y,n=_;p=f,y=x,_=b,f=t,x=e,b=n}const w=function(t,e,n,i,o,r){const s=n-t,a=i-e,l=o-t,c=r-e,u=s*s+a*a,h=l*l+c*c,d=.5/(s*c-a*l);return{x:t+(c*u-a*h)*d,y:e+(s*h-l*u)*d}}(m,g,y,_,x,b);this._cx=w.x,this._cy=w.y;for(let e=0;e<r;e++)this._dists[e]=Im(t[2*e],t[2*e+1],w.x,w.y);Sm(this._ids,this._dists,0,r-1),this._hullStart=d;let A=3;n[d]=e[f]=p,n[p]=e[d]=f,n[f]=e[p]=d,i[d]=0,i[p]=1,i[f]=2,o.fill(-1),o[this._hashKey(m,g)]=d,o[this._hashKey(y,_)]=p,o[this._hashKey(x,b)]=f,this.trianglesLen=0,this._addTriangle(d,p,f,-1,-1,-1);for(let r=0,s=0,a=0;r<this._ids.length;r++){const l=this._ids[r],c=t[2*l],u=t[2*l+1];if(r>0&&Math.abs(c-s)<=km&&Math.abs(u-a)<=km)continue;if(s=c,a=u,l===d||l===p||l===f)continue;let h=0;for(let t=0,e=this._hashKey(c,u);t<this._hashSize&&(h=o[(e+t)%this._hashSize],-1===h||h===n[h]);t++);h=e[h];let m,g=h;for(;m=n[g],Pm(c,u,t[2*g],t[2*g+1],t[2*m],t[2*m+1])>=0;)if(g=m,g===h){g=-1;break}if(-1===g)continue;let y=this._addTriangle(g,l,n[g],-1,-1,i[g]);i[l]=this._legalize(y+2),i[g]=y,A++;let _=n[g];for(;m=n[_],Pm(c,u,t[2*_],t[2*_+1],t[2*m],t[2*m+1])<0;)y=this._addTriangle(_,l,m,i[l],-1,i[_]),i[l]=this._legalize(y+2),n[_]=_,A--,_=m;if(g===h)for(;m=e[g],Pm(c,u,t[2*m],t[2*m+1],t[2*g],t[2*g+1])<0;)y=this._addTriangle(m,l,g,-1,i[g],i[m]),this._legalize(y+2),i[m]=y,n[g]=g,A--,g=m;this._hullStart=e[l]=g,n[g]=e[_]=l,n[l]=_,o[this._hashKey(c,u)]=l,o[this._hashKey(t[2*g],t[2*g+1])]=g}this.hull=new Uint32Array(A);for(let t=0,e=this._hullStart;t<A;t++)this.hull[t]=e,e=n[e];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,e){return Math.floor(function(t,e){const n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:e,_halfedges:n,coords:i}=this;let o=0,r=0;for(;;){const s=n[t],a=t-t%3;if(r=a+(t+2)%3,-1===s){if(0===o)break;t=Mm[--o];continue}const l=s-s%3,c=a+(t+1)%3,u=l+(s+2)%3,h=e[r],d=e[t],p=e[c],f=e[u];if(Tm(i[2*h],i[2*h+1],i[2*d],i[2*d+1],i[2*p],i[2*p+1],i[2*f],i[2*f+1])){e[t]=f,e[s]=h;const i=n[u];if(-1===i){let e=this._hullStart;do{if(this._hullTri[e]===u){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,i),this._link(s,n[r]),this._link(r,u);const a=l+(s+1)%3;o<Mm.length&&(Mm[o++]=a)}else{if(0===o)break;t=Mm[--o]}}return r}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,n,i,o,r){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=e,this._triangles[s+2]=n,this._link(s,i),this._link(s+1,o),this._link(s+2,r),this.trianglesLen+=3,s}}function Im(t,e,n,i){const o=t-n,r=e-i;return o*o+r*r}function Tm(t,e,n,i,o,r,s,a){const l=t-s,c=e-a,u=n-s,h=i-a,d=o-s,p=r-a,f=u*u+h*h,m=d*d+p*p;return l*(h*m-f*p)-c*(u*m-f*d)+(l*l+c*c)*(u*p-h*d)<0}function Lm(t,e,n,i,o,r){const s=n-t,a=i-e,l=o-t,c=r-e,u=s*s+a*a,h=l*l+c*c,d=.5/(s*c-a*l),p=(c*u-a*h)*d,f=(s*h-l*u)*d;return p*p+f*f}function Sm(t,e,n,i){if(i-n<=20)for(let o=n+1;o<=i;o++){const i=t[o],r=e[i];let s=o-1;for(;s>=n&&e[t[s]]>r;)t[s+1]=t[s--];t[s+1]=i}else{let o=n+1,r=i;Om(t,n+i>>1,o),e[t[n]]>e[t[i]]&&Om(t,n,i),e[t[o]]>e[t[i]]&&Om(t,o,i),e[t[n]]>e[t[o]]&&Om(t,n,o);const s=t[o],a=e[s];for(;;){do{o++}while(e[t[o]]<a);do{r--}while(e[t[r]]>a);if(r<o)break;Om(t,o,r)}t[n+1]=t[r],t[r]=s,i-o+1>=r-n?(Sm(t,e,o,i),Sm(t,e,n,r-1)):(Sm(t,e,n,r-1),Sm(t,e,o,i))}}function Om(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function jm(t){return t[0]}function zm(t){return t[1]}const Em=1e-6;class Rm{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){const i=(t=+t)+(n=+n),o=e=+e;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${i},${o}`:(Math.abs(this._x1-i)>Em||Math.abs(this._y1-o)>Em)&&(this._+="L"+i+","+o),n&&(this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=i},${this._y1=o}`)}rect(t,e,n,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+i}h${-n}Z`}value(){return this._||null}}class Nm{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class $m{constructor(t,[e,n,i,o]=[0,0,960,500]){if(!((i=+i)>=(e=+e)&&(o=+o)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=i,this.xmin=e,this.ymax=o,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:i}=this;let o,r;const s=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let i,a,l=0,c=0,u=n.length;l<u;l+=3,c+=2){const u=2*n[l],h=2*n[l+1],d=2*n[l+2],p=t[u],f=t[u+1],m=t[h],g=t[h+1],y=t[d],_=t[d+1],v=m-p,x=g-f,b=y-p,w=_-f,A=2*(v*w-x*b);if(Math.abs(A)<1e-9){if(void 0===o){o=r=0;for(const n of e)o+=t[2*n],r+=t[2*n+1];o/=e.length,r/=e.length}const n=1e9*Math.sign((o-p)*w-(r-f)*b);i=(p+y)/2-n*w,a=(f+_)/2+n*b}else{const t=1/A,e=v*v+x*x,n=b*b+w*w;i=p+(w*e-x*n)*t,a=f+(v*n-b*e)*t}s[c]=i,s[c+1]=a}let a,l,c,u=e[e.length-1],h=4*u,d=t[2*u],p=t[2*u+1];i.fill(0);for(let n=0;n<e.length;++n)u=e[n],a=h,l=d,c=p,h=4*u,d=t[2*u],p=t[2*u+1],i[a+2]=i[h]=c-p,i[a+3]=i[h+1]=d-l}render(t){const e=null==t?t=new Rm:void 0,{delaunay:{halfedges:n,inedges:i,hull:o},circumcenters:r,vectors:s}=this;if(o.length<=1)return null;for(let e=0,i=n.length;e<i;++e){const i=n[e];if(i<e)continue;const o=2*Math.floor(e/3),s=2*Math.floor(i/3),a=r[o],l=r[o+1],c=r[s],u=r[s+1];this._renderSegment(a,l,c,u,t)}let a,l=o[o.length-1];for(let e=0;e<o.length;++e){a=l,l=o[e];const n=2*Math.floor(i[l]/3),c=r[n],u=r[n+1],h=4*a,d=this._project(c,u,s[h+2],s[h+3]);d&&this._renderSegment(c,u,d[0],d[1],t)}return e&&e.value()}renderBounds(t){const e=null==t?t=new Rm:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){const n=null==e?e=new Rm:void 0,i=this._clip(t);if(null===i||!i.length)return;e.moveTo(i[0],i[1]);let o=i.length;for(;i[0]===i[o-2]&&i[1]===i[o-1]&&o>1;)o-=2;for(let t=2;t<o;t+=2)i[t]===i[t-2]&&i[t+1]===i[t-1]||e.lineTo(i[t],i[t+1]);return e.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let e=0,n=t.length/2;e<n;++e){const t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){const e=new Nm;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,i,o){let r;const s=this._regioncode(t,e),a=this._regioncode(n,i);0===s&&0===a?(o.moveTo(t,e),o.lineTo(n,i)):(r=this._clipSegment(t,e,n,i,s,a))&&(o.moveTo(r[0],r[1]),o.lineTo(r[2],r[3]))}contains(t,e,n){return(e=+e)==e&&(n=+n)==n&&this.delaunay._step(t,e,n)===t}*neighbors(t){const e=this._clip(t);if(e)for(const n of this.delaunay.neighbors(t)){const t=this._clip(n);if(t)t:for(let i=0,o=e.length;i<o;i+=2)for(let r=0,s=t.length;r<s;r+=2)if(e[i]===t[r]&&e[i+1]===t[r+1]&&e[(i+2)%o]===t[(r+s-2)%s]&&e[(i+3)%o]===t[(r+s-1)%s]){yield n;break t}}}_cell(t){const{circumcenters:e,delaunay:{inedges:n,halfedges:i,triangles:o}}=this,r=n[t];if(-1===r)return null;const s=[];let a=r;do{const n=Math.floor(a/3);if(s.push(e[2*n],e[2*n+1]),a=a%3==2?a-2:a+1,o[a]!==t)break;a=i[a]}while(a!==r&&-1!==a);return s}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const e=this._cell(t);if(null===e)return null;const{vectors:n}=this,i=4*t;return this._simplify(n[i]||n[i+1]?this._clipInfinite(t,e,n[i],n[i+1],n[i+2],n[i+3]):this._clipFinite(t,e))}_clipFinite(t,e){const n=e.length;let i,o,r,s,a=null,l=e[n-2],c=e[n-1],u=this._regioncode(l,c),h=0;for(let d=0;d<n;d+=2)if(i=l,o=c,l=e[d],c=e[d+1],r=u,u=this._regioncode(l,c),0===r&&0===u)s=h,h=0,a?a.push(l,c):a=[l,c];else{let e,n,d,p,f;if(0===r){if(null===(e=this._clipSegment(i,o,l,c,r,u)))continue;[n,d,p,f]=e}else{if(null===(e=this._clipSegment(l,c,i,o,u,r)))continue;[p,f,n,d]=e,s=h,h=this._edgecode(n,d),s&&h&&this._edge(t,s,h,a,a.length),a?a.push(n,d):a=[n,d]}s=h,h=this._edgecode(p,f),s&&h&&this._edge(t,s,h,a,a.length),a?a.push(p,f):a=[p,f]}if(a)s=h,h=this._edgecode(a[0],a[1]),s&&h&&this._edge(t,s,h,a,a.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return a}_clipSegment(t,e,n,i,o,r){const s=o<r;for(s&&([t,e,n,i,o,r]=[n,i,t,e,r,o]);;){if(0===o&&0===r)return s?[n,i,t,e]:[t,e,n,i];if(o&r)return null;let a,l,c=o||r;8&c?(a=t+(n-t)*(this.ymax-e)/(i-e),l=this.ymax):4&c?(a=t+(n-t)*(this.ymin-e)/(i-e),l=this.ymin):2&c?(l=e+(i-e)*(this.xmax-t)/(n-t),a=this.xmax):(l=e+(i-e)*(this.xmin-t)/(n-t),a=this.xmin),o?(t=a,e=l,o=this._regioncode(t,e)):(n=a,i=l,r=this._regioncode(n,i))}}_clipInfinite(t,e,n,i,o,r){let s,a=Array.from(e);if((s=this._project(a[0],a[1],n,i))&&a.unshift(s[0],s[1]),(s=this._project(a[a.length-2],a[a.length-1],o,r))&&a.push(s[0],s[1]),a=this._clipFinite(t,a))for(let e,n=0,i=a.length,o=this._edgecode(a[i-2],a[i-1]);n<i;n+=2)e=o,o=this._edgecode(a[n],a[n+1]),e&&o&&(n=this._edge(t,e,o,a,n),i=a.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(a=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return a}_edge(t,e,n,i,o){for(;e!==n;){let n,r;switch(e){case 5:e=4;continue;case 4:e=6,n=this.xmax,r=this.ymin;break;case 6:e=2;continue;case 2:e=10,n=this.xmax,r=this.ymax;break;case 10:e=8;continue;case 8:e=9,n=this.xmin,r=this.ymax;break;case 9:e=1;continue;case 1:e=5,n=this.xmin,r=this.ymin}i[o]===n&&i[o+1]===r||!this.contains(t,n,r)||(i.splice(o,0,n,r),o+=2)}return o}_project(t,e,n,i){let o,r,s,a=1/0;if(i<0){if(e<=this.ymin)return null;(o=(this.ymin-e)/i)<a&&(s=this.ymin,r=t+(a=o)*n)}else if(i>0){if(e>=this.ymax)return null;(o=(this.ymax-e)/i)<a&&(s=this.ymax,r=t+(a=o)*n)}if(n>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/n)<a&&(r=this.xmax,s=e+(a=o)*i)}else if(n<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/n)<a&&(r=this.xmin,s=e+(a=o)*i)}return[r,s]}_edgecode(t,e){return(t===this.xmin?1:t===this.xmax?2:0)|(e===this.ymin?4:e===this.ymax?8:0)}_regioncode(t,e){return(t<this.xmin?1:t>this.xmax?2:0)|(e<this.ymin?4:e>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let e=0;e<t.length;e+=2){const n=(e+2)%t.length,i=(e+4)%t.length;(t[e]===t[n]&&t[n]===t[i]||t[e+1]===t[n+1]&&t[n+1]===t[i+1])&&(t.splice(n,2),e-=2)}t.length||(t=null)}return t}}const Bm=2*Math.PI,Fm=Math.pow;function Dm(t){return t[0]}function Zm(t){return t[1]}function Hm(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class Um{static from(t,e=Dm,n=Zm,i){return new Um("length"in t?function(t,e,n,i){const o=t.length,r=new Float64Array(2*o);for(let s=0;s<o;++s){const o=t[s];r[2*s]=e.call(i,o,s,t),r[2*s+1]=n.call(i,o,s,t)}return r}(t,e,n,i):Float64Array.from(function*(t,e,n,i){let o=0;for(const r of t)yield e.call(i,r,o,t),yield n.call(i,r,o,t),++o}(t,e,n,i)))}constructor(t){this._delaunator=new Cm(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:e,coords:n}=t;for(let t=0;t<e.length;t+=3){const i=2*e[t],o=2*e[t+1],r=2*e[t+2];if((n[r]-n[i])*(n[o+1]-n[i+1])-(n[o]-n[i])*(n[r+1]-n[i+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:e.length/2},(t,e)=>e).sort((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]);const t=this.collinear[0],n=this.collinear[this.collinear.length-1],i=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],o=1e-8*Math.hypot(i[3]-i[1],i[2]-i[0]);for(let t=0,n=e.length/2;t<n;++t){const n=Hm(e[2*t],e[2*t+1],o);e[2*t]=n[0],e[2*t+1]=n[1]}this._delaunator=new Cm(e)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,r=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let t=0,e=n.length;t<e;++t){const e=o[t%3==2?t-2:t+1];-1!==n[t]&&-1!==r[e]||(r[e]=t)}for(let t=0,e=i.length;t<e;++t)s[i[t]]=t;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],r[i[0]]=1,2===i.length&&(r[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new $m(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:i,halfedges:o,triangles:r,collinear:s}=this;if(s){const e=s.indexOf(t);return e>0&&(yield s[e-1]),void(e<s.length-1&&(yield s[e+1]))}const a=e[t];if(-1===a)return;let l=a,c=-1;do{if(yield c=r[l],l=l%3==2?l-2:l+1,r[l]!==t)return;if(l=o[l],-1===l){const e=n[(i[t]+1)%n.length];return void(e!==c&&(yield e))}}while(l!==a)}find(t,e,n=0){if((t=+t)!=t||(e=+e)!=e)return-1;const i=n;let o;for(;(o=this._step(n,t,e))>=0&&o!==n&&o!==i;)n=o;return o}_step(t,e,n){const{inedges:i,hull:o,_hullIndex:r,halfedges:s,triangles:a,points:l}=this;if(-1===i[t]||!l.length)return(t+1)%(l.length>>1);let c=t,u=Fm(e-l[2*t],2)+Fm(n-l[2*t+1],2);const h=i[t];let d=h;do{let i=a[d];const h=Fm(e-l[2*i],2)+Fm(n-l[2*i+1],2);if(h<u&&(u=h,c=i),d=d%3==2?d-2:d+1,a[d]!==t)break;if(d=s[d],-1===d){if(d=o[(r[t]+1)%o.length],d!==i&&Fm(e-l[2*d],2)+Fm(n-l[2*d+1],2)<u)return d;break}}while(d!==h);return c}render(t){const e=null==t?t=new Rm:void 0,{points:n,halfedges:i,triangles:o}=this;for(let e=0,r=i.length;e<r;++e){const r=i[e];if(r<e)continue;const s=2*o[e],a=2*o[r];t.moveTo(n[s],n[s+1]),t.lineTo(n[a],n[a+1])}return this.renderHull(t),e&&e.value()}renderPoints(t,e){void 0!==e||t&&"function"==typeof t.moveTo||(e=t,t=null),e=null==e?2:+e;const n=null==t?t=new Rm:void 0,{points:i}=this;for(let n=0,o=i.length;n<o;n+=2){const o=i[n],r=i[n+1];t.moveTo(o+e,r),t.arc(o,r,e,0,Bm)}return n&&n.value()}renderHull(t){const e=null==t?t=new Rm:void 0,{hull:n,points:i}=this,o=2*n[0],r=n.length;t.moveTo(i[o],i[o+1]);for(let e=1;e<r;++e){const o=2*n[e];t.lineTo(i[o],i[o+1])}return t.closePath(),e&&e.value()}hullPolygon(){const t=new Nm;return this.renderHull(t),t.value()}renderTriangle(t,e){const n=null==e?e=new Rm:void 0,{points:i,triangles:o}=this,r=2*o[t*=3],s=2*o[t+1],a=2*o[t+2];return e.moveTo(i[r],i[r+1]),e.lineTo(i[s],i[s+1]),e.lineTo(i[a],i[a+1]),e.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:t}=this;for(let e=0,n=t.length/3;e<n;++e)yield this.trianglePolygon(e)}trianglePolygon(t){const e=new Nm;return this.renderTriangle(t,e),e.value()}}function Wm(e){const{voronoiMaxRadius:n,onItemClick:o}=e,r=Qr(),s=Lo(),{xAxis:a,yAxis:l,xAxisIds:c,yAxisIds:u}=j(),{dispatch:h}=t.useContext(H),{series:d,seriesOrder:p}=Tr()??{},f=t.useRef({}),m=t.useRef(void 0),g=t.useRef(void 0),{setHighlighted:y,clearHighlighted:_}=q(),v=c[0],x=u[0];return(0,oh.A)(()=>(h({type:"updateVoronoiUsage",useVoronoiInteraction:!0}),()=>{h({type:"updateVoronoiUsage",useVoronoiInteraction:!1})}),[h]),(0,oh.A)(()=>{if(void 0===p||void 0===d)return;f.current={};let t=[];p.forEach(e=>{const{data:n,xAxisId:i,yAxisId:o,xAxisKey:r,yAxisKey:c}=d[e],u=a[i??r??v].scale,h=l[o??c??x].scale,p=Do(u),m=Do(h),g=n.flatMap(({x:t,y:e})=>{const n=p(t),i=m(e);return s.isPointInside({x:n,y:i})?[n,i]:[-s.width,-s.height]});f.current[e]={seriesId:e,startIndex:t.length,endIndex:t.length+g.length},t=t.concat(g)}),m.current=new Um(t),g.current=void 0},[v,x,d,p,a,l,s]),t.useEffect(()=>{if(null===r.current)return;const t=r.current;function e(e){const i=Xr(t,e);if(!s.isPointInside(i))return g.current=void 0,"outside-chart";if(!m.current)return"no-point-found";const o=m.current.find(i.x,i.y,g.current);if(void 0===o)return"no-point-found";g.current=o;const r=Object.values(f.current).find(t=>2*o>=t.startIndex&&2*o<t.endIndex);if(void 0===r)return"no-point-found";const a=(2*o-f.current[r.seriesId].startIndex)/2;if(void 0!==n){const t=m.current.points[2*o],e=m.current.points[2*o+1];if((t-i.x)**2+(e-i.y)**2>n**2)return"outside-voronoi-max-radius"}return{seriesId:r.seriesId,dataIndex:a}}const i=()=>{h({type:"exitChart"}),_()},a=t=>{const n=e(t);if("outside-chart"===n)return h({type:"exitChart"}),void _();if("outside-voronoi-max-radius"===n||"no-point-found"===n)return h({type:"leaveItem",data:{type:"scatter"}}),void _();const{seriesId:i,dataIndex:o}=n;h({type:"enterItem",data:{type:"scatter",seriesId:i,dataIndex:o}}),y({seriesId:i,dataIndex:o})},l=t=>{if(!o)return;const n=e(t);if("string"==typeof n)return;const{seriesId:i,dataIndex:r}=n;o(t,{type:"scatter",seriesId:i,dataIndex:r})};return t.addEventListener("pointerleave",i),t.addEventListener("pointermove",a),t.addEventListener("click",l),()=>{t.removeEventListener("pointerleave",i),t.removeEventListener("pointermove",a),t.removeEventListener("click",l)}},[r,h,l,a,n,o,y,_,s]),(0,i.jsx)(t.Fragment,{})}const Vm=["xAxis","yAxis","zAxis","series","tooltip","axisHighlight","voronoiMaxRadius","disableVoronoi","legend","width","height","margin","colors","sx","grid","topAxis","leftAxis","rightAxis","bottomAxis","onItemClick","children","slots","slotProps","loading","highlightedItem","onHighlightChange","className"],qm=t.forwardRef(function(t,e){const n=m({props:t,name:"MuiScatterChart"}),{chartContainerProps:o,zAxisProps:s,voronoiHandlerProps:a,chartsAxisProps:l,gridProps:c,scatterPlotProps:u,overlayProps:h,legendProps:d,axisHighlightProps:p,tooltipProps:f,children:y}=(t=>{const{xAxis:e,yAxis:n,zAxis:i,series:o,tooltip:s,axisHighlight:a,voronoiMaxRadius:l,disableVoronoi:c,legend:u,width:h,height:d,margin:p,colors:f,sx:m,grid:y,topAxis:_,leftAxis:v,rightAxis:x,bottomAxis:b,onItemClick:w,children:A,slots:P,slotProps:k,loading:M,highlightedItem:C,onHighlightChange:I,className:T}=t,L=(0,g.A)(t,Vm),S=(0,r.A)({},L,{series:o.map(t=>(0,r.A)({type:"scatter"},t)),width:h,height:d,margin:p,colors:f,xAxis:e,yAxis:n,sx:m,highlightedItem:C,onHighlightChange:I,className:T});return{chartContainerProps:S,zAxisProps:{zAxis:i},voronoiHandlerProps:{voronoiMaxRadius:l,onItemClick:w},chartsAxisProps:{topAxis:_,leftAxis:v,rightAxis:x,bottomAxis:b,slots:P,slotProps:k},gridProps:{vertical:y?.vertical,horizontal:y?.horizontal},scatterPlotProps:{onItemClick:c?w:void 0,slots:P,slotProps:k},overlayProps:{loading:M,slots:P,slotProps:k},legendProps:(0,r.A)({},u,{slots:P,slotProps:k}),axisHighlightProps:(0,r.A)({y:"none",x:"none"},a),tooltipProps:(0,r.A)({trigger:"item"},s,{slots:P,slotProps:k}),children:A}})(n);return(0,i.jsx)(ah,(0,r.A)({ref:e},o,{children:(0,i.jsxs)(uu,(0,r.A)({},s,{children:[!n.disableVoronoi&&(0,i.jsx)(Wm,(0,r.A)({},a)),(0,i.jsx)(ld,(0,r.A)({},l)),(0,i.jsx)(Hf,(0,r.A)({},c)),(0,i.jsx)("g",{"data-drawing-container":!0,children:(0,i.jsx)(mm,(0,r.A)({},u))}),(0,i.jsx)(Xf,(0,r.A)({},h)),(0,i.jsx)(kf,(0,r.A)({},d)),(0,i.jsx)(If,(0,r.A)({},p)),!n.loading&&(0,i.jsx)(ff,(0,r.A)({},f)),y]}))}))}),Gm=({series:t,xAxisLabel:e,yAxisLabel:n,width:o,height:r,loading:s=!1,margin:a,valueFormatter:l=lm})=>{const c=[{label:e,valueFormatter:l}],u=[{label:n,valueFormatter:l}];return(0,i.jsx)(om,{sx:{width:"100%",height:"100%"},children:(0,i.jsx)(qm,{series:t,xAxis:c,yAxis:u,width:o,height:r,loading:s,margin:sm(a),sx:hm,slotProps:dm})})},Km=["id","dataIndex","classes","color","slots","slotProps","style","onClick"];function Ym(t){return(0,D.Ay)("MuiBarElement",t)}(0,Z.A)("MuiBarElement",["root"]);const Xm=(0,K.Ay)(Ei.rect,{name:"MuiBarElement",slot:"Root",overridesResolver:(t,e)=>e.root})(({ownerState:t})=>({stroke:"none",fill:t.isHighlighted?to(t.color).brighter(.5).formatHex():t.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:t.isFaded?.3:1}));function Qm(t){const{id:e,dataIndex:n,classes:o,color:s,slots:a,slotProps:l,style:c,onClick:u}=t,h=(0,g.A)(t,Km),d=G(),{isFaded:p,isHighlighted:f}=Ro({seriesId:e,dataIndex:n}),m={id:e,dataIndex:n,classes:o,color:s,isFaded:p,isHighlighted:f},y=(t=>{const{classes:e,id:n}=t,i={root:["root",`series-${n}`]};return(0,z.A)(i,Ym,e)})(m),_=a?.bar??Xm,v=F({elementType:_,externalSlotProps:l?.bar,externalForwardedProps:h,additionalProps:(0,r.A)({},d({type:"bar",seriesId:e,dataIndex:n}),{style:c,onClick:u,cursor:u?"pointer":"unset"}),className:y.root,ownerState:m});return(0,i.jsx)(_,(0,r.A)({},v))}const Jm=(t,{hasNegative:e,hasPositive:n,borderRadius:i,layout:o})=>{if(!i)return 0;const r="vertical"===o;return"top-left"===t&&(r&&n||!r&&e)||"top-right"===t&&(r&&n||!r&&n)||"bottom-right"===t&&(r&&e||!r&&n)||"bottom-left"===t&&(r&&e||!r&&e)?i:0},tg=["style","maskId"];function eg(t){const e=t.ownerState;return(0,i.jsx)(Ei.rect,{style:(0,r.A)({},t.style,{clipPath:("vertical"===t.ownerState.layout?t.style?.height:t.style?.width).to(t=>{return`inset(0px round ${(n={topLeft:Math.min(t,Jm("top-left",e)),topRight:Math.min(t,Jm("top-right",e)),bottomRight:Math.min(t,Jm("bottom-right",e)),bottomLeft:Math.min(t,Jm("bottom-left",e))}).topLeft}px ${n.topRight}px ${n.bottomRight}px ${n.bottomLeft}px)`;var n})})})}function ng(t){const{style:e,maskId:n}=t,o=(0,g.A)(t,tg);return!t.borderRadius||t.borderRadius<=0?null:(0,i.jsx)("clipPath",{id:n,children:(0,i.jsx)(eg,{ownerState:o,style:e})})}function ig(t){return(0,D.Ay)("MuiBarLabel",t)}const og=(0,Z.A)("MuiBarLabel",["root","highlighted","faded"]),rg=["seriesId","dataIndex","color","isFaded","isHighlighted","classes"],sg=(0,K.Ay)(Ei.text,{name:"MuiBarLabel",slot:"Root",overridesResolver:(t,e)=>[{[`&.${og.faded}`]:e.faded},{[`&.${og.highlighted}`]:e.highlighted},e.root]})(({theme:t})=>(0,r.A)({},t?.typography?.body2,{stroke:"none",fill:(t.vars||t)?.palette?.text?.primary,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",textAnchor:"middle",dominantBaseline:"central",pointerEvents:"none",opacity:1,[`&.${og.faded}`]:{opacity:.3}}));function ag(t){const e=m({props:t,name:"MuiBarLabel"}),n=(0,g.A)(e,rg);return(0,i.jsx)(sg,(0,r.A)({},n))}const lg=["seriesId","classes","color","style","dataIndex","barLabel","slots","slotProps","height","width","value"],cg=["ownerState"];function ug(t){const{seriesId:e,classes:n,color:o,style:s,dataIndex:a,barLabel:l,slots:c,slotProps:u,height:h,width:d,value:p}=t,f=(0,g.A)(t,lg),{isFaded:m,isHighlighted:y}=Ro({seriesId:e,dataIndex:a}),_={seriesId:e,classes:n,color:o,isFaded:m,isHighlighted:y,dataIndex:a},v=(t=>{const{classes:e,seriesId:n,isFaded:i,isHighlighted:o}=t,r={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return(0,z.A)(r,ig,e)})(_),x=c?.barLabel??ag,b=F({elementType:x,externalSlotProps:u?.barLabel,additionalProps:(0,r.A)({},f,{style:s,className:v.root}),ownerState:_}),{ownerState:w}=b,A=(0,g.A)(b,cg);if(!l)return null;const P=(t=>{const{barLabel:e,value:n,dataIndex:i,seriesId:o,height:r,width:s}=t;return"value"===e?n?n?.toString():null:e({seriesId:o,dataIndex:i,value:n},{bar:{height:r,width:s}})})({barLabel:l,value:p,dataIndex:a,seriesId:e,height:h,width:d});return P?(0,i.jsx)(x,(0,r.A)({},A,w,{children:P})):null}const hg=["bars","skipAnimation"],dg=({layout:t,yOrigin:e,x:n,width:i,y:o,xOrigin:s,height:a})=>(0,r.A)({},"vertical"===t?{y:e,x:n+i/2,height:0,width:i}:{y:o+a/2,x:s,height:a,width:0}),pg=({x:t,width:e,y:n,height:i})=>({x:t+e/2,y:n+i/2,height:i,width:e});function fg(e){const{bars:n,skipAnimation:o}=e,s=(0,g.A)(e,hg),a=fi(n,{keys:t=>`${t.seriesId}-${t.dataIndex}`,from:dg,leave:null,enter:pg,update:pg,immediate:o});return(0,i.jsx)(t.Fragment,{children:a((t,{seriesId:e,dataIndex:n,color:o,value:a,width:l,height:c})=>(0,i.jsx)(ug,(0,r.A)({seriesId:e,dataIndex:n,value:a,color:o,width:l,height:c},s,{style:t})))})}const mg=(t,e)=>e===("x"===t?Po:ko)?`The first \`${t}Axis\``:`The ${t}-axis with id "${e}"`,gg=["skipAnimation","onItemClick","borderRadius","barLabel"],yg=({layout:t,yOrigin:e,x:n,width:i,y:o,xOrigin:s,height:a})=>(0,r.A)({},"vertical"===t?{y:e,x:n,height:0,width:i}:{y:o,x:s,height:a,width:0}),_g=({x:t,width:e,y:n,height:i})=>({y:n,x:t,height:i,width:e});function vg(e){const{completedData:n,masksData:o}=(()=>{const e=function(){const e=Cr();return t.useMemo(()=>e.bar,[e.bar])}()??{series:{},stackingGroups:[],seriesOrder:[]},n=j(),i=So(),{series:o,stackingGroups:r}=e,{xAxis:s,yAxis:a,xAxisIds:l,yAxisIds:c}=n,u=l[0],h=c[0],d={};return{completedData:r.flatMap(({ids:t},e)=>t.flatMap(t=>{const n=o[t].xAxisId??o[t].xAxisKey??u,l=o[t].yAxisId??o[t].yAxisKey??h,c=s[n],p=a[l],f="vertical"===o[t].layout;!function(t,e,n,i,o,r){const s=i[n],a=r[o],l=t?s:a,c=t?a:s,u=t?n:o,h=t?o:n,d=t?"x":"y",p=t?"y":"x";if(!hc(l))throw new Error(`MUI X: ${mg(d,u)} should be of type "band" to display the bar series of id "${e}".`);if(void 0===l.data)throw new Error(`MUI X: ${mg(d,u)} should have data property.`);if(hc(c)||dc(c))throw new Error(`MUI X: ${mg(p,h)} should be a continuous type to display the bar series of id "${e}".`)}(f,t,n,s,l,a);const m=f?c:p,g=c.scale,y=p.scale,_=Bu(o[t],s[n],a[l]),v=m.scale.bandwidth(),{barWidth:x,offset:b}=function({bandWidth:t,numberOfGroups:e,gapRatio:n}){if(0===n)return{barWidth:t/e,offset:0};const i=t/(e+(e-1)*n);return{barWidth:i,offset:n*i}}({bandWidth:v,numberOfGroups:r.length,gapRatio:m.barGapRatio}),w=e*(x+b),{stackedData:A}=o[t];return A.map((r,c)=>{const u=r.map(t=>f?y(t):g(t)),h=Math.round(Math.min(...u)),p=Math.round(Math.max(...u)),m=o[t].stack,v={seriesId:t,dataIndex:c,layout:o[t].layout,x:f?g(s[n].data?.[c])+w:h,y:f?h:y(a[l].data?.[c])+w,xOrigin:g(0),yOrigin:y(0),height:f?p-h:x,width:f?x:p-h,color:_(c),value:o[t].data[c],maskId:`${i}_${m||t}_${e}_${c}`};d[v.maskId]||(d[v.maskId]={id:v.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:v.layout,xOrigin:g(0),yOrigin:y(0),x:0,y:0});const b=d[v.maskId];return b.width="vertical"===v.layout?v.width:b.width+v.width,b.height="vertical"===v.layout?b.height+v.height:v.height,b.x=Math.min(0===b.x?1/0:b.x,v.x),b.y=Math.min(0===b.y?1/0:b.y,v.y),b.hasNegative=b.hasNegative||(v.value??0)<0,b.hasPositive=b.hasPositive||(v.value??0)>0,v})})),masksData:Object.values(d)}})(),{skipAnimation:s,onItemClick:a,borderRadius:l,barLabel:c}=e,u=(0,g.A)(e,gg),h=Sr(s),d=!l||l<=0,p=fi(n,{keys:t=>`${t.seriesId}-${t.dataIndex}`,from:yg,leave:yg,enter:_g,update:_g,immediate:h}),f=fi(d?[]:o,{keys:t=>t.id,from:yg,leave:yg,enter:_g,update:_g,immediate:h});return(0,i.jsxs)(t.Fragment,{children:[!d&&f((t,{id:e,hasPositive:n,hasNegative:o,layout:r})=>(0,i.jsx)(ng,{maskId:e,borderRadius:l,hasNegative:o,hasPositive:n,layout:r,style:t})),p((t,{seriesId:e,dataIndex:n,color:o,maskId:s})=>{const l=(0,i.jsx)(Qm,(0,r.A)({id:e,dataIndex:n,color:o},u,{onClick:a&&(t=>{a(t,{type:"bar",seriesId:e,dataIndex:n})}),style:t}));return d?l:(0,i.jsx)("g",{clipPath:`url(#${s})`,children:l})}),c&&(0,i.jsx)(fg,(0,r.A)({bars:n,skipAnimation:h,barLabel:c},u))]})}const xg=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","axisHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className"],bg=t.forwardRef(function(t,e){const n=m({props:t,name:"MuiBarChart"}),{chartContainerProps:o,barPlotProps:s,axisClickHandlerProps:a,gridProps:l,clipPathProps:c,clipPathGroupProps:u,overlayProps:h,chartsAxisProps:d,axisHighlightProps:p,legendProps:f,tooltipProps:y,children:_}=(t=>{const{xAxis:e,yAxis:n,series:i,width:o,height:s,margin:a,colors:l,dataset:c,sx:u,tooltip:h,onAxisClick:d,axisHighlight:p,legend:f,grid:m,topAxis:y,leftAxis:_,rightAxis:v,bottomAxis:x,children:b,slots:w,slotProps:A,skipAnimation:P,loading:k,layout:M,onItemClick:C,highlightedItem:I,onHighlightChange:T,borderRadius:L,barLabel:S,className:O}=t,j=(0,g.A)(t,xg),z=`${(0,Ao.A)()}-clip-path`,E="horizontal"===M||void 0===M&&i.some(t=>"horizontal"===t.layout),R={scaleType:"band",data:Array.from({length:Math.max(...i.map(t=>(t.data??c??[]).length))},(t,e)=>e)},N=(0,r.A)({},j,{series:i.map(t=>(0,r.A)({type:"bar"},t,{layout:E?"horizontal":"vertical"})),width:o,height:s,margin:a,colors:l,dataset:c,xAxis:e??(E?void 0:[(0,r.A)({id:Po},R)]),yAxis:n??(E?[(0,r.A)({id:ko},R)]:void 0),sx:u,highlightedItem:I,onHighlightChange:T,disableAxisListener:"axis"!==h?.trigger&&"none"===p?.x&&"none"===p?.y&&!d,className:O,skipAnimation:P});return{chartContainerProps:N,barPlotProps:{onItemClick:C,slots:w,slotProps:A,borderRadius:L,barLabel:S},axisClickHandlerProps:{onAxisClick:d},gridProps:{vertical:m?.vertical,horizontal:m?.horizontal},clipPathProps:{id:z},clipPathGroupProps:{clipPath:`url(#${z})`},overlayProps:{slots:w,slotProps:A,loading:k},chartsAxisProps:{topAxis:y,leftAxis:_,rightAxis:v,bottomAxis:x,slots:w,slotProps:A},axisHighlightProps:(0,r.A)({},E?{y:"band"}:{x:"band"},p),legendProps:(0,r.A)({},f,{slots:w,slotProps:A}),tooltipProps:(0,r.A)({},h,{slots:w,slotProps:A}),children:b}})(n);return(0,i.jsxs)(ah,(0,r.A)({ref:e},o,{children:[n.onAxisClick&&(0,i.jsx)(Uf,(0,r.A)({},a)),(0,i.jsx)(Hf,(0,r.A)({},l)),(0,i.jsxs)("g",(0,r.A)({},u,{children:[(0,i.jsx)(vg,(0,r.A)({},s)),(0,i.jsx)(Xf,(0,r.A)({},h)),(0,i.jsx)(If,(0,r.A)({},p))]})),(0,i.jsx)(ld,(0,r.A)({},d)),(0,i.jsx)(kf,(0,r.A)({},f)),!n.loading&&(0,i.jsx)(ff,(0,r.A)({},y)),(0,i.jsx)(Tf,(0,r.A)({},c)),_]}))}),wg=({series:t,categories:n,layout:o="vertical",xAxisLabel:r,yAxisLabel:s,width:a,height:l,loading:c=!1,margin:u,valueFormatter:h=lm,categoryLabelMaxLength:d=18})=>{const p={data:n,scaleType:"band",label:"vertical"===o?r:s},f=[{label:"vertical"===o?s:r,valueFormatter:h}],m="vertical"===o?[p]:f,g="vertical"===o?f:[p],y=e().useMemo(()=>{return t=d,({x:e,y:n,text:o,className:r,style:s})=>{const a=null==o?"":String(o),l=cm(a,t),{textAnchor:c,dominantBaseline:u,...h}=s??{};return(0,i.jsxs)("text",{x:e,y:n,className:r,style:h,textAnchor:c,dominantBaseline:u,children:[l!==a&&(0,i.jsx)("title",{children:a}),l]})};var t},[d]);return(0,i.jsx)(om,{sx:{width:"100%",height:"100%"},children:(0,i.jsx)(bg,{series:t,xAxis:m,yAxis:g,layout:o,width:a,height:l,loading:c,margin:sm(u),sx:hm,slots:{axisTickLabel:y},slotProps:dm})})};function Ag(t){return t.innerRadius}function Pg(t){return t.outerRadius}function kg(t){return t.startAngle}function Mg(t){return t.endAngle}function Cg(t){return t&&t.padAngle}function Ig(t,e,n,i,o,r,s){var a=t-n,l=e-i,c=(s?r:-r)/Go(a*a+l*l),u=c*l,h=-c*a,d=t+u,p=e+h,f=n+u,m=i+h,g=(d+f)/2,y=(p+m)/2,_=f-d,v=m-p,x=_*_+v*v,b=o-r,w=d*m-f*p,A=(v<0?-1:1)*Go(Wo(0,b*b*x-w*w)),P=(w*v-_*A)/x,k=(-w*_-v*A)/x,M=(w*v+_*A)/x,C=(-w*_+v*A)/x,I=P-g,T=k-y,L=M-g,S=C-y;return I*I+T*T>L*L+S*S&&(P=M,k=C),{cx:P,cy:k,x01:-u,y01:-h,x11:P*(o/b-1),y11:k*(o/b-1)}}function Tg(){var t=Ag,e=Pg,n=_(0),i=null,o=kg,r=Mg,s=Cg,a=null,l=C(c);function c(){var c,u,h,d=+t.apply(this,arguments),p=+e.apply(this,arguments),f=o.apply(this,arguments)-Xo,m=r.apply(this,arguments)-Xo,g=Zo(m-f),y=m>f;if(a||(a=c=l()),p<d&&(u=p,p=d,d=u),p>Ko)if(g>Qo-Ko)a.moveTo(p*Uo(f),p*qo(f)),a.arc(0,0,p,f,m,!y),d>Ko&&(a.moveTo(d*Uo(m),d*qo(m)),a.arc(0,0,d,m,f,y));else{var _,v,x=f,b=m,w=f,A=m,P=g,k=g,M=s.apply(this,arguments)/2,C=M>Ko&&(i?+i.apply(this,arguments):Go(d*d+p*p)),I=Vo(Zo(p-d)/2,+n.apply(this,arguments)),T=I,L=I;if(C>Ko){var S=Jo(C/d*qo(M)),O=Jo(C/p*qo(M));(P-=2*S)>Ko?(w+=S*=y?1:-1,A-=S):(P=0,w=A=(f+m)/2),(k-=2*O)>Ko?(x+=O*=y?1:-1,b-=O):(k=0,x=b=(f+m)/2)}var j=p*Uo(x),z=p*qo(x),E=d*Uo(A),R=d*qo(A);if(I>Ko){var N,$=p*Uo(b),B=p*qo(b),F=d*Uo(w),D=d*qo(w);if(g<Yo)if(N=function(t,e,n,i,o,r,s,a){var l=n-t,c=i-e,u=s-o,h=a-r,d=h*l-u*c;if(!(d*d<Ko))return[t+(d=(u*(e-r)-h*(t-o))/d)*l,e+d*c]}(j,z,F,D,$,B,E,R)){var Z=j-N[0],H=z-N[1],U=$-N[0],W=B-N[1],V=1/qo(((h=(Z*U+H*W)/(Go(Z*Z+H*H)*Go(U*U+W*W)))>1?0:h<-1?Yo:Math.acos(h))/2),q=Go(N[0]*N[0]+N[1]*N[1]);T=Vo(I,(d-q)/(V-1)),L=Vo(I,(p-q)/(V+1))}else T=L=0}k>Ko?L>Ko?(_=Ig(F,D,j,z,p,L,y),v=Ig($,B,E,R,p,L,y),a.moveTo(_.cx+_.x01,_.cy+_.y01),L<I?a.arc(_.cx,_.cy,L,Ho(_.y01,_.x01),Ho(v.y01,v.x01),!y):(a.arc(_.cx,_.cy,L,Ho(_.y01,_.x01),Ho(_.y11,_.x11),!y),a.arc(0,0,p,Ho(_.cy+_.y11,_.cx+_.x11),Ho(v.cy+v.y11,v.cx+v.x11),!y),a.arc(v.cx,v.cy,L,Ho(v.y11,v.x11),Ho(v.y01,v.x01),!y))):(a.moveTo(j,z),a.arc(0,0,p,x,b,!y)):a.moveTo(j,z),d>Ko&&P>Ko?T>Ko?(_=Ig(E,R,$,B,d,-T,y),v=Ig(j,z,F,D,d,-T,y),a.lineTo(_.cx+_.x01,_.cy+_.y01),T<I?a.arc(_.cx,_.cy,T,Ho(_.y01,_.x01),Ho(v.y01,v.x01),!y):(a.arc(_.cx,_.cy,T,Ho(_.y01,_.x01),Ho(_.y11,_.x11),!y),a.arc(0,0,d,Ho(_.cy+_.y11,_.cx+_.x11),Ho(v.cy+v.y11,v.cx+v.x11),y),a.arc(v.cx,v.cy,T,Ho(v.y11,v.x11),Ho(v.y01,v.x01),!y))):a.arc(0,0,d,A,w,y):a.lineTo(E,R)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+o.apply(this,arguments)+ +r.apply(this,arguments))/2-Yo/2;return[Uo(i)*n,qo(i)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:_(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:_(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:_(+t),c):n},c.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:_(+t),c):i},c.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:_(+t),c):o},c.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:_(+t),c):r},c.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:_(+t),c):s},c.context=function(t){return arguments.length?(a=null==t?null:t,c):a},c}Object.defineProperty(Tg,"name",{value:"default",configurable:!0});const Lg=["classes","color","cornerRadius","dataIndex","endAngle","id","innerRadius","isFaded","isHighlighted","onClick","outerRadius","paddingAngle","startAngle","highlightScope"];function Sg(t){return(0,D.Ay)("MuiPieArc",t)}(0,Z.A)("MuiPieArc",["root","highlighted","faded"]);const Og=(0,K.Ay)(Ei.path,{name:"MuiPieArc",slot:"Root",overridesResolver:(t,e)=>e.arc})(({theme:t})=>({stroke:(t.vars||t).palette.background.paper,transition:"opacity 0.2s ease-in, fill 0.2s ease-in, filter 0.2s ease-in"}));function jg(t){const{classes:e,color:n,cornerRadius:o,dataIndex:s,endAngle:a,id:l,innerRadius:c,isFaded:u,isHighlighted:h,onClick:d,outerRadius:p,paddingAngle:f,startAngle:m}=t,y=(0,g.A)(t,Lg),_={id:l,dataIndex:s,classes:e,color:n,isFaded:u,isHighlighted:h},v=(t=>{const{classes:e,id:n,isFaded:i,isHighlighted:o,dataIndex:r}=t,s={root:["root",`series-${n}`,`data-index-${r}`,o&&"highlighted",i&&"faded"]};return(0,z.A)(s,Sg,e)})(_),x=G();return(0,i.jsx)(Og,(0,r.A)({d:xi([m,a,f,c,p,o],(t,e,n,i,o,r)=>Tg().cornerRadius(r)({padAngle:n,startAngle:t,endAngle:e,innerRadius:i,outerRadius:o})),visibility:xi([m,a],(t,e)=>t===e?"hidden":"visible"),onClick:d,cursor:d?"pointer":"unset",ownerState:_,className:v.root,fill:_.color,opacity:_.isFaded?.3:1,filter:_.isHighlighted?"brightness(120%)":"none",strokeWidth:1,strokeLinejoin:"round"},y,x({type:"pie",seriesId:l,dataIndex:s})))}const zg={keys:t=>t.id,from:({innerRadius:t,outerRadius:e,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:r,color:s,isFaded:a})=>({innerRadius:t,outerRadius:(t+e)/2,cornerRadius:n,startAngle:(i+o)/2,endAngle:(i+o)/2,paddingAngle:r,fill:s,opacity:a?.3:1}),leave:({innerRadius:t,startAngle:e,endAngle:n})=>({innerRadius:t,outerRadius:t,startAngle:(e+n)/2,endAngle:(e+n)/2}),enter:({innerRadius:t,outerRadius:e,startAngle:n,endAngle:i})=>({innerRadius:t,outerRadius:e,startAngle:n,endAngle:i}),update:({innerRadius:t,outerRadius:e,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:r,color:s,isFaded:a})=>({innerRadius:t,outerRadius:e,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:r,fill:s,opacity:a?.3:1}),config:{tension:120,friction:14,clamp:!0}},Eg={keys:t=>t.id,from:({innerRadius:t,outerRadius:e,arcLabelRadius:n,cornerRadius:i,startAngle:o,endAngle:r,paddingAngle:s})=>({innerRadius:t,outerRadius:(t+e)/2,cornerRadius:i,arcLabelRadius:n,startAngle:(o+r)/2,endAngle:(o+r)/2,paddingAngle:s,opacity:0}),leave:({innerRadius:t,startAngle:e,endAngle:n})=>({innerRadius:t,outerRadius:t,arcLabelRadius:t,startAngle:(e+n)/2,endAngle:(e+n)/2,opacity:0}),enter:({innerRadius:t,outerRadius:e,startAngle:n,endAngle:i,arcLabelRadius:o})=>({innerRadius:t,outerRadius:e,startAngle:n,endAngle:i,arcLabelRadius:o,opacity:1}),update:({innerRadius:t,outerRadius:e,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:r,arcLabelRadius:s})=>({innerRadius:t,outerRadius:e,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:r,arcLabelRadius:s,opacity:1}),config:{tension:120,friction:14,clamp:!0}};function Rg(e){const{id:n,data:i,faded:o,highlighted:s,paddingAngle:a=0,innerRadius:l=0,arcLabelRadius:c,outerRadius:u,cornerRadius:h=0}=e,{isFaded:d,isHighlighted:p}=q();return t.useMemo(()=>i.map((t,e)=>{const i={seriesId:n,dataIndex:e},f=p(i),m=!f&&d(i),g=(0,r.A)({additionalRadius:0},m&&o||f&&s||{}),y=Math.max(0,Math.PI*(g.paddingAngle??a)/180),_=Math.max(0,g.innerRadius??l),v=Math.max(0,g.outerRadius??u+g.additionalRadius),x=g.cornerRadius??h,b=g.arcLabelRadius??c??(_+v)/2;return(0,r.A)({},t,g,{isFaded:m,isHighlighted:f,paddingAngle:y,innerRadius:_,outerRadius:v,cornerRadius:x,arcLabelRadius:b})}),[h,l,u,a,c,i,o,s,d,p,n])}const Ng=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"];function $g(t){const{slots:e,slotProps:n,innerRadius:o=0,outerRadius:s,cornerRadius:a=0,paddingAngle:l=0,id:c,highlighted:u,faded:h={additionalRadius:-5},data:d,onItemClick:p,skipAnimation:f}=t,m=(0,g.A)(t,Ng),y=fi(Rg({innerRadius:o,outerRadius:s,cornerRadius:a,paddingAngle:l,id:c,highlighted:u,faded:h,data:d}),(0,r.A)({},zg,{immediate:f})),{highlightScope:_}=q();if(0===d.length)return null;const v=e?.pieArc??jg;return(0,i.jsx)("g",(0,r.A)({},m,{children:y(({startAngle:t,endAngle:e,paddingAngle:o,innerRadius:s,outerRadius:a,cornerRadius:l},u,h,d)=>(0,i.jsx)(v,(0,r.A)({startAngle:t,endAngle:e,paddingAngle:o,innerRadius:s,outerRadius:a,cornerRadius:l,id:c,color:u.color,dataIndex:d,highlightScope:_,isFaded:u.isFaded,isHighlighted:u.isHighlighted,onClick:p&&(t=>{p(t,{type:"pie",seriesId:c,dataIndex:d},u)})},n?.pieArc)))}))}const Bg=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function Fg(t){return(0,D.Ay)("MuiPieArcLabel",t)}(0,Z.A)("MuiPieArcLabel",["root","highlighted","faded"]);const Dg=(0,K.Ay)(Ei.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({fill:(t.vars||t).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none"})),Zg=(t,e)=>(n,i,o,r,s)=>{if(!t)return 0;const[a,l]=Tg().cornerRadius(s).centroid({padAngle:o,startAngle:n,endAngle:i,innerRadius:r,outerRadius:r});return"x"===e?a:l};function Hg(t){const{id:e,classes:n,color:o,startAngle:s,endAngle:a,paddingAngle:l,arcLabelRadius:c,cornerRadius:u,formattedArcLabel:h,isHighlighted:d,isFaded:p,style:f}=t,m=(0,g.A)(t,Bg),y=(t=>{const{classes:e,id:n,isFaded:i,isHighlighted:o}=t,r={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return(0,z.A)(r,Fg,e)})({id:e,classes:n,color:o,isFaded:p,isHighlighted:d});return(0,i.jsx)(Dg,(0,r.A)({className:y.root},m,{style:(0,r.A)({x:xi([s,a,l,c,u],Zg(h,"x")),y:xi([s,a,l,c,u],Zg(h,"y"))},f),children:h}))}const Ug=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],Wg=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],Vg=180/Math.PI;function qg(t,e,n){if(!t)return null;if((n.endAngle-n.startAngle)*Vg<e)return null;switch(t){case"label":return Ku(n.label,"arc");case"value":return n.value?.toString();case"formattedValue":return n.formattedValue;default:return t((0,r.A)({},n,{label:Ku(n.label,"arc")}))}}function Gg(t){const{arcLabel:e,arcLabelMinAngle:n=0,arcLabelRadius:o,cornerRadius:s=0,data:a,faded:l={additionalRadius:-5},highlighted:c,id:u,innerRadius:h,outerRadius:d,paddingAngle:p=0,skipAnimation:f,slotProps:m,slots:y}=t,_=(0,g.A)(t,Ug),v=fi(Rg({innerRadius:h,outerRadius:d,arcLabelRadius:o,cornerRadius:s,paddingAngle:p,id:u,highlighted:c,faded:l,data:a}),(0,r.A)({},Eg,{immediate:f}));if(0===a.length)return null;const x=y?.pieArcLabel??Hg;return(0,i.jsx)("g",(0,r.A)({},_,{children:v((t,o)=>{let{startAngle:s,endAngle:a,paddingAngle:l,innerRadius:c,outerRadius:h,arcLabelRadius:d,cornerRadius:p}=t,f=(0,g.A)(t,Wg);return(0,i.jsx)(x,(0,r.A)({startAngle:s,endAngle:a,paddingAngle:l,innerRadius:c,outerRadius:h,arcLabelRadius:d,cornerRadius:p,style:f,id:u,color:o.color,isFaded:o.isFaded,isHighlighted:o.isHighlighted,formattedArcLabel:qg(e,n,o)},m?.pieArcLabel))})}))}function Kg(t,e){if("number"==typeof t)return t;if("100%"===t)return e;if(t.endsWith("%")){const n=Number.parseFloat(t.slice(0,t.length-1));if(!Number.isNaN(n))return n*e/100}if(t.endsWith("px")){const e=Number.parseFloat(t.slice(0,t.length-2));if(!Number.isNaN(e))return e}throw new Error(`MUI X: Received an unknown value "${t}". It should be a number, or a string with a percentage value.`)}function Yg(t,e){const{height:n,width:i}=e,{cx:o,cy:r}=t,s=Math.min(i,n)/2;return{cx:Kg(o??"50%",i),cy:Kg(r??"50%",n),availableRadius:s}}function Xg(e){const{skipAnimation:n,slots:o,slotProps:r,onItemClick:s}=e,a=function(){const e=Cr();return t.useMemo(()=>e.pie,[e.pie])}(),{left:l,top:c,width:u,height:h}=t.useContext(Co),d=Sr(n);if(void 0===a)return null;const{series:p,seriesOrder:f}=a;return(0,i.jsxs)("g",{children:[f.map(t=>{const{innerRadius:e,outerRadius:n,cornerRadius:a,paddingAngle:f,data:m,cx:g,cy:y,highlighted:_,faded:v}=p[t],{cx:x,cy:b,availableRadius:w}=Yg({cx:g,cy:y},{width:u,height:h}),A=Kg(n??w,w),P=Kg(e??0,w);return(0,i.jsx)("g",{transform:`translate(${l+x}, ${c+b})`,children:(0,i.jsx)($g,{innerRadius:P,outerRadius:A,cornerRadius:a,paddingAngle:f,id:t,data:m,skipAnimation:d,highlighted:_,faded:v,onItemClick:s,slots:o,slotProps:r})},t)}),f.map(t=>{const{innerRadius:e,outerRadius:n,arcLabelRadius:s,cornerRadius:a,paddingAngle:f,arcLabel:m,arcLabelMinAngle:g,data:y,cx:_,cy:v}=p[t],{cx:x,cy:b,availableRadius:w}=Yg({cx:_,cy:v},{width:u,height:h}),A=Kg(n??w,w),P=Kg(e??0,w),k=void 0===s?(A+P)/2:Kg(s,w);return(0,i.jsx)("g",{transform:`translate(${l+x}, ${c+b})`,children:(0,i.jsx)(Gg,{innerRadius:P,outerRadius:A??w,arcLabelRadius:k,cornerRadius:a,paddingAngle:f,id:t,data:y,skipAnimation:d,arcLabel:m,arcLabelMinAngle:g,slots:o,slotProps:r})},t)})]})}const Qg=["xAxis","yAxis","series","width","height","margin","colors","sx","tooltip","axisHighlight","skipAnimation","legend","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className"],Jg={top:5,bottom:5,left:5,right:100},ty={top:5,bottom:5,left:100,right:5},ey=t.forwardRef(function(t,e){const n=m({props:t,name:"MuiPieChart"}),{xAxis:o,yAxis:s,series:a,width:l,height:c,margin:u,colors:h,sx:d,tooltip:p={trigger:"item"},axisHighlight:f={x:"none",y:"none"},skipAnimation:y,legend:_,topAxis:v=null,leftAxis:x=null,rightAxis:b=null,bottomAxis:w=null,children:A,slots:P,slotProps:k,onItemClick:M,loading:C,highlightedItem:I,onHighlightChange:T,className:L}=n,S=(0,g.A)(n,Qg),O=ed(),j=(0,r.A)({},O?ty:Jg,u),z=(0,r.A)({direction:"column",position:{vertical:"middle",horizontal:O?"left":"right"}},_);return(0,i.jsxs)(ah,(0,r.A)({},S,{ref:e,series:a.map(t=>(0,r.A)({type:"pie"},t)),width:l,height:c,margin:j,xAxis:o??[{id:Po,scaleType:"point",data:[...new Array(Math.max(0,...a.map(t=>t.data.length)))].map((t,e)=>e)}],yAxis:s,colors:h,sx:d,disableAxisListener:"axis"!==p?.trigger&&"none"===f?.x&&"none"===f?.y,highlightedItem:I,onHighlightChange:T,className:L,skipAnimation:y,children:[(0,i.jsx)(ld,{topAxis:v,leftAxis:x,rightAxis:b,bottomAxis:w,slots:P,slotProps:k}),(0,i.jsx)(Xg,{slots:P,slotProps:k,onItemClick:M}),(0,i.jsx)(Xf,{loading:C,slots:P,slotProps:k}),(0,i.jsx)(kf,(0,r.A)({},z,{slots:P,slotProps:k})),(0,i.jsx)(If,(0,r.A)({},f)),!C&&(0,i.jsx)(ff,(0,r.A)({},p,{slots:P,slotProps:k})),A]}))}),ny=({data:t,width:e=400,height:n,innerRadius:o=60,outerRadius:r=120,paddingAngle:s=2,loading:a=!1,hideLegend:l=!1})=>{const c=n??2*r+24;return(0,i.jsxs)(om,{sx:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:[(0,i.jsx)(ey,{series:[{data:t,innerRadius:o,outerRadius:r,paddingAngle:s}],width:e,height:c,loading:a,margin:{top:10,right:10,bottom:10,left:10},slotProps:{legend:{hidden:!0}}}),!l&&(0,i.jsx)(om,{sx:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"4px 16px",mt:1,px:1,maxWidth:"100%"},children:t.map(t=>(0,i.jsxs)(om,{sx:{display:"flex",alignItems:"center",gap:.75,minWidth:0},children:[(0,i.jsx)(om,{sx:{width:12,height:12,borderRadius:"3px",backgroundColor:t.color,flexShrink:0}}),(0,i.jsx)(sf,{sx:{fontSize:12,lineHeight:1.3,color:"text.secondary"},children:t.label})]},t.id))})]})};var iy=c(7423),oy=c(9582);const ry=(t,e)=>`${t>0?"+":""}${t}${e}`,sy=({title:t,value:e,unit:o,delta:r,deltaSuffix:s="%",status:a,icon:l,loading:c=!1})=>{const u=void 0===r?void 0:r>0?"success.main":r<0?"error.main":"text.secondary";return(0,i.jsx)(n.Card,{variant:"outlined",sx:{width:"100%",height:"100%",minWidth:200},children:(0,i.jsxs)(n.CardContent,{children:[(0,i.jsxs)(n.Box,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",children:[(0,i.jsx)(n.Typography,{variant:"body2",color:"text.secondary",children:t}),l&&(0,i.jsx)(n.Box,{color:"text.secondary",display:"flex",alignItems:"center",children:l})]}),(0,i.jsx)(n.Box,{mt:1,display:"flex",alignItems:"baseline",gap:.5,children:c?(0,i.jsx)(n.Skeleton,{width:80,height:40}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.Typography,{variant:"h4",component:"div",children:e}),o&&(0,i.jsx)(n.Typography,{variant:"body2",color:"text.secondary",children:o})]})}),(0,i.jsxs)(n.Box,{mt:1,display:"flex",alignItems:"center",gap:1,children:[void 0!==r&&!c&&(0,i.jsxs)(n.Box,{display:"flex",alignItems:"center",sx:{color:u},children:[r>0?(0,i.jsx)(iy.A,{fontSize:"small"}):r<0?(0,i.jsx)(oy.A,{fontSize:"small"}):null,(0,i.jsx)(n.Typography,{variant:"body2",component:"span",sx:{fontWeight:500},children:ry(r,s)})]}),a&&!c&&(0,i.jsx)(n.Chip,{label:a.label,size:"small",color:a.color??"default"})]})]})})},ay=86400,ly=7*ay,cy=30*ay,uy=365*ay,hy=(t,e=new Date)=>{const n=t instanceof Date?t:new Date(t),i=Math.round((e.getTime()-n.getTime())/1e3);return Number.isNaN(i)?"":i<0?"in the future":i<5?"just now":i<60?`${i} seconds ago`:i<120?"1 minute ago":i<3600?`${Math.floor(i/60)} minutes ago`:i<7200?"1 hour ago":i<ay?`${Math.floor(i/3600)} hours ago`:i<2*ay?"yesterday":i<ly?`${Math.floor(i/ay)} days ago`:i<2*ly?"1 week ago":i<cy?`${Math.floor(i/ly)} weeks ago`:i<5184e3?"1 month ago":i<uy?`${Math.floor(i/cy)} months ago`:i<2*uy?"1 year ago":`${Math.floor(i/uy)} years ago`},dy=({items:t,loading:e=!1,emptyMessage:o="No activity yet.",maxHeight:r,now:s})=>e?(0,i.jsx)(n.List,{dense:!0,sx:{maxHeight:r,overflowY:r?"auto":void 0},children:Array.from({length:3}).map((t,e)=>(0,i.jsxs)(n.ListItem,{alignItems:"flex-start",children:[(0,i.jsx)(n.ListItemAvatar,{children:(0,i.jsx)(n.Skeleton,{variant:"circular",width:40,height:40})}),(0,i.jsx)(n.ListItemText,{primary:(0,i.jsx)(n.Skeleton,{width:"60%"}),secondary:(0,i.jsx)(n.Skeleton,{width:"30%"})})]},e))}):0===t.length?(0,i.jsx)(n.Box,{p:2,children:(0,i.jsx)(n.Typography,{variant:"body2",color:"text.secondary",children:o})}):(0,i.jsx)(n.List,{dense:!0,sx:{maxHeight:r,overflowY:r?"auto":void 0},children:t.map(t=>(0,i.jsxs)(n.ListItem,{alignItems:"flex-start",children:[(0,i.jsx)(n.ListItemAvatar,{children:(0,i.jsx)(n.Avatar,{sx:{bgcolor:t.iconColor},children:t.icon})}),(0,i.jsx)(n.ListItemText,{primary:t.description,secondary:hy(t.timestamp,s)})]},t.id))});var py=c(1386);const fy=({rows:t,columns:o,loading:r=!1,pageSize:s=10,pageSizeOptions:a=[5,10,25,30,50],initialSort:l,height:c="100%",density:u="standard",checkboxSelection:h=!1,disablePagination:d=!1,onRowClick:p})=>{const[f,m]=e().useState({page:0,pageSize:s});return(0,i.jsx)(n.Box,{sx:{height:c,width:"100%"},children:(0,i.jsx)(py.DataGrid,{rows:t,columns:o,loading:r,density:u,checkboxSelection:h,initialState:{sorting:l?{sortModel:l}:void 0},paginationModel:d?void 0:f,onPaginationModelChange:d?void 0:m,pageSizeOptions:a,hideFooterPagination:d,onRowClick:p?t=>p(t.row):void 0,disableRowSelectionOnClick:!0})})};function my(t,e){return Object.freeze({...t,...e})}const gy=(0,t.createContext)(null),yy=gy.Provider;function _y(){const e=(0,t.useContext)(gy);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}var vy=c(3481),xy=c.n(vy);function by(){return by=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},by.apply(this,arguments)}function wy({bounds:e,boundsOptions:n,center:i,children:o,className:r,id:s,placeholder:a,style:l,whenReady:c,zoom:u,...h},d){const[p]=(0,t.useState)({className:r,id:s,style:l}),[f,m]=(0,t.useState)(null);(0,t.useImperativeHandle)(d,()=>f?.map??null,[f]);const g=(0,t.useCallback)(t=>{if(null!==t&&null===f){const o=new vy.Map(t,h);null!=i&&null!=u?o.setView(i,u):null!=e&&o.fitBounds(e,n),null!=c&&o.whenReady(c),m(function(t){return Object.freeze({__version:1,map:t})}(o))}},[]);(0,t.useEffect)(()=>()=>{f?.map.remove()},[f]);const y=f?t.createElement(yy,{value:f},o):a??null;return t.createElement("div",by({},p,{ref:g}),y)}const Ay=(0,t.forwardRef)(wy);function Py(e){function n(n,i){const{instance:o,context:r}=e(n).current;return(0,t.useImperativeHandle)(i,()=>o),null==n.children?null:t.createElement(yy,{value:r},n.children)}return(0,t.forwardRef)(n)}function ky(t,e,n){return Object.freeze({instance:t,context:e,container:n})}function My(e,n){return null==n?function(n,i){const o=(0,t.useRef)();return o.current||(o.current=e(n,i)),o}:function(i,o){const r=(0,t.useRef)();r.current||(r.current=e(i,o));const s=(0,t.useRef)(i),{instance:a}=r.current;return(0,t.useEffect)(function(){s.current!==i&&(n(a,i,s.current),s.current=i)},[a,i,o]),r}}function Cy(e,n){const i=(0,t.useRef)(n);(0,t.useEffect)(function(){n!==i.current&&null!=e.attributionControl&&(null!=i.current&&e.attributionControl.removeAttribution(i.current),null!=n&&e.attributionControl.addAttribution(n)),i.current=n},[e,n])}function Iy(e,n){const i=(0,t.useRef)();(0,t.useEffect)(function(){return null!=n&&e.instance.on(n),i.current=n,function(){null!=i.current&&e.instance.off(i.current),i.current=null}},[e,n])}function Ty(t,e){const n=t.pane??e.pane;return n?{...t,pane:n}:t}function Ly(e,n){(0,t.useEffect)(function(){return(n.layerContainer??n.map).addLayer(e.instance),function(){n.layerContainer?.removeLayer(e.instance),n.map.removeLayer(e.instance)}},[n,e])}function Sy(t){return function(e){const n=_y(),i=t(Ty(e,n),n);return Cy(n.map,e.attribution),Iy(i.current,e.eventHandlers),Ly(i.current,n),i}}const Oy=(jy=function({url:t,...e},n){return ky(new vy.TileLayer(t,Ty(e,n)),n)},function(e){function n(n,i){const{instance:o}=e(n).current;return(0,t.useImperativeHandle)(i,()=>o),null}return(0,t.forwardRef)(n)}(Sy(My(jy,function(t,e,n){!function(t,e,n){const{opacity:i,zIndex:o}=e;null!=i&&i!==n.opacity&&t.setOpacity(i),null!=o&&o!==n.zIndex&&t.setZIndex(o)}(t,e,n);const{url:i}=e;null!=i&&i!==n.url&&t.setUrl(i)}))));var jy;const zy=Py((Ny=My(function({center:t,children:e,...n},i){const o=new vy.CircleMarker(t,n);return ky(o,my(i,{overlayContainer:o}))},function(t,e,n){e.center!==n.center&&t.setLatLng(e.center),null!=e.radius&&e.radius!==n.radius&&t.setRadius(e.radius)}),function(e){const n=_y(),i=Ny(Ty(e,n),n);return Iy(i.current,e.eventHandlers),Ly(i.current,n),function(e,n){const i=(0,t.useRef)();(0,t.useEffect)(function(){if(n.pathOptions!==i.current){const t=n.pathOptions??{};e.instance.setStyle(t),i.current=t}},[e,n])}(i.current,e),i})),Ey=function(){const e=function(t,e){return function(n,i){const o=_y(),r=t(Ty(n,o),o);return Cy(o.map,n.attribution),Iy(r.current,n.eventHandlers),e(r.current,o,n,i),r}}(My(function(t,e){return ky(new vy.Popup(t,e.overlayContainer),e)}),function(e,n,{position:i},o){(0,t.useEffect)(function(){const{instance:t}=e;function r(e){e.popup===t&&(t.update(),o(!0))}function s(e){e.popup===t&&o(!1)}return n.map.on({popupopen:r,popupclose:s}),null==n.overlayContainer?(null!=i&&t.setLatLng(i),t.openOn(n.map)):n.overlayContainer.bindPopup(t),function(){n.map.off({popupopen:r,popupclose:s}),n.overlayContainer?.unbindPopup(),n.map.removeLayer(t)}},[e,n,o,i])});return function(e){function n(n,i){const[o,r]=(0,t.useState)(!1),{instance:s}=e(n,r).current;(0,t.useImperativeHandle)(i,()=>s),(0,t.useEffect)(function(){o&&s.update()},[s,o,n.children]);const a=s._contentNode;return a?(0,bi.createPortal)(n.children,a):null}return(0,t.forwardRef)(n)}(e)}(),Ry=Py(Sy(My(function({position:t,...e},n){const i=new vy.Marker(t,e);return ky(i,my(n,{overlayContainer:i}))},function(t,e,n){e.position!==n.position&&t.setLatLng(e.position),null!=e.icon&&e.icon!==n.icon&&t.setIcon(e.icon),null!=e.zIndexOffset&&e.zIndexOffset!==n.zIndexOffset&&t.setZIndexOffset(e.zIndexOffset),null!=e.opacity&&e.opacity!==n.opacity&&t.setOpacity(e.opacity),null!=t.dragging&&e.draggable!==n.draggable&&(!0===e.draggable?t.dragging.enable():t.dragging.disable())})));var Ny,$y=c(5072),By=c.n($y),Fy=c(7825),Dy=c.n(Fy),Zy=c(7659),Hy=c.n(Zy),Uy=c(5056),Wy=c.n(Uy),Vy=c(540),qy=c.n(Vy),Gy=c(1113),Ky=c.n(Gy),Yy=c(1081),Xy={};Xy.styleTagTransform=Ky(),Xy.setAttributes=Wy(),Xy.insert=Hy().bind(null,"head"),Xy.domAPI=Dy(),Xy.insertStyleElement=qy(),By()(Yy.A,Xy),Yy.A&&Yy.A.locals&&Yy.A.locals;const Qy=xy().icon({iconUrl:"https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png",iconRetinaUrl:"https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon-2x.png",shadowUrl:"https://unpkg.com/leaflet@1.9.4/dist/images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]});xy().Marker.prototype.options.icon=Qy;const Jy=({points:t,enabled:n})=>{const i=_y().map;return e().useEffect(()=>{if(!n||0===t.length)return;const e=t.map(t=>[t.lat,t.lng]);i.fitBounds(e,{padding:[40,40]})},[t,n,i]),null},t_=({points:t,center:e,zoom:o=5,height:r="100%",width:s="100%",variant:a="marker",fitBounds:l=!0,tileUrl:c="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",tileAttribution:u='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',loading:h=!1})=>{const d=e??(t.length>0?[t[0].lat,t[0].lng]:[20.5937,78.9629]);return(0,i.jsxs)(n.Box,{sx:{position:"relative",height:r,width:s,"& .leaflet-container":{height:"100%",width:"100%"}},children:[(0,i.jsxs)(Ay,{center:d,zoom:o,scrollWheelZoom:!0,children:[(0,i.jsx)(Oy,{url:c,attribution:u}),(0,i.jsx)(Jy,{points:t,enabled:l}),t.map(t=>"circle"===a?(0,i.jsx)(zy,{center:[t.lat,t.lng],radius:8,pathOptions:{color:t.color??"#1976d2",fillColor:t.color??"#1976d2",fillOpacity:.7},children:(t.label||t.description)&&(0,i.jsxs)(Ey,{children:[t.label&&(0,i.jsx)("strong",{children:t.label}),t.description&&(0,i.jsx)(n.Box,{mt:t.label?.5:0,children:t.description})]})},t.id):(0,i.jsx)(Ry,{position:[t.lat,t.lng],children:(t.label||t.description)&&(0,i.jsxs)(Ey,{children:[t.label&&(0,i.jsx)("strong",{children:t.label}),t.description&&(0,i.jsx)(n.Box,{mt:t.label?.5:0,children:t.description})]})},t.id))]}),h&&(0,i.jsx)(n.Box,{sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"rgba(255,255,255,0.6)",zIndex:500},children:(0,i.jsx)(n.CircularProgress,{})})]})},e_=({series:t,xAxisData:e,xAxisLabel:n,yAxisLabel:o,width:r,height:s,loading:a=!1,showMarks:l=!1,margin:c,valueFormatter:u=lm})=>{const h=e?[{data:e,scaleType:"point",label:n}]:n?[{label:n}]:void 0,d=[{label:o,valueFormatter:u}],p=t.map(t=>({...t,area:!0,showMark:l}));return(0,i.jsx)(om,{sx:{width:"100%",height:"100%"},children:(0,i.jsx)(Jf,{series:p,xAxis:h,yAxis:d,width:r,height:s,loading:a,margin:sm(c),sx:hm,slotProps:dm})})}})(),u})());
|