dimensional / data /command_center.html
playercc7's picture
Upload materialized data command_center.html
467db86 verified
Raw History Blame
436 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Command Center</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { background: #1a1a2e; font-family: -apple-system, system-ui, sans-serif; }
#root { width: 100%; height: 100%; }
</style>
<script type="module">(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))l(f);new MutationObserver(f=>{for(const p of f)if(p.type==="childList")for(const g of p.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&l(g)}).observe(document,{childList:!0,subtree:!0});function r(f){const p={};return f.integrity&&(p.integrity=f.integrity),f.referrerPolicy&&(p.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?p.credentials="include":f.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function l(f){if(f.ep)return;f.ep=!0;const p=r(f);fetch(f.href,p)}})();function Jp(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var qc={exports:{}},Ks={},Gc={exports:{}},Nt={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var zd;function sg(){if(zd)return Nt;zd=1;var i=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),T=Symbol.iterator;function C(N){return N===null||typeof N!="object"?null:(N=T&&N[T]||N["@@iterator"],typeof N=="function"?N:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,H={};function $(N,U,wt){this.props=N,this.context=U,this.refs=H,this.updater=wt||E}$.prototype.isReactComponent={},$.prototype.setState=function(N,U){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,U,"setState")},$.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function J(){}J.prototype=$.prototype;function Q(N,U,wt){this.props=N,this.context=U,this.refs=H,this.updater=wt||E}var tt=Q.prototype=new J;tt.constructor=Q,D(tt,$.prototype),tt.isPureReactComponent=!0;var F=Array.isArray,K=Object.prototype.hasOwnProperty,gt={current:null},Y={key:!0,ref:!0,__self:!0,__source:!0};function ct(N,U,wt){var vt,pt={},at=null,bt=null;if(U!=null)for(vt in U.ref!==void 0&&(bt=U.ref),U.key!==void 0&&(at=""+U.key),U)K.call(U,vt)&&!Y.hasOwnProperty(vt)&&(pt[vt]=U[vt]);var At=arguments.length-2;if(At===1)pt.children=wt;else if(1<At){for(var Vt=Array(At),me=0;me<At;me++)Vt[me]=arguments[me+2];pt.children=Vt}if(N&&N.defaultProps)for(vt in At=N.defaultProps,At)pt[vt]===void 0&&(pt[vt]=At[vt]);return{$$typeof:i,type:N,key:at,ref:bt,props:pt,_owner:gt.current}}function ut(N,U){return{$$typeof:i,type:N.type,key:U,ref:N.ref,props:N.props,_owner:N._owner}}function it(N){return typeof N=="object"&&N!==null&&N.$$typeof===i}function q(N){var U={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(wt){return U[wt]})}var yt=/\/+/g;function Mt(N,U){return typeof N=="object"&&N!==null&&N.key!=null?q(""+N.key):U.toString(36)}function Ot(N,U,wt,vt,pt){var at=typeof N;(at==="undefined"||at==="boolean")&&(N=null);var bt=!1;if(N===null)bt=!0;else switch(at){case"string":case"number":bt=!0;break;case"object":switch(N.$$typeof){case i:case o:bt=!0}}if(bt)return bt=N,pt=pt(bt),N=vt===""?"."+Mt(bt,0):vt,F(pt)?(wt="",N!=null&&(wt=N.replace(yt,"$&/")+"/"),Ot(pt,U,wt,"",function(me){return me})):pt!=null&&(it(pt)&&(pt=ut(pt,wt+(!pt.key||bt&&bt.key===pt.key?"":(""+pt.key).replace(yt,"$&/")+"/")+N)),U.push(pt)),1;if(bt=0,vt=vt===""?".":vt+":",F(N))for(var At=0;At<N.length;At++){at=N[At];var Vt=vt+Mt(at,At);bt+=Ot(at,U,wt,Vt,pt)}else if(Vt=C(N),typeof Vt=="function")for(N=Vt.call(N),At=0;!(at=N.next()).done;)at=at.value,Vt=vt+Mt(at,At++),bt+=Ot(at,U,wt,Vt,pt);else if(at==="object")throw U=String(N),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return bt}function Ut(N,U,wt){if(N==null)return N;var vt=[],pt=0;return Ot(N,vt,"","",function(at){return U.call(wt,at,pt++)}),vt}function zt(N){if(N._status===-1){var U=N._result;U=U(),U.then(function(wt){(N._status===0||N._status===-1)&&(N._status=1,N._result=wt)},function(wt){(N._status===0||N._status===-1)&&(N._status=2,N._result=wt)}),N._status===-1&&(N._status=0,N._result=U)}if(N._status===1)return N._result.default;throw N._result}var Dt={current:null},Z={transition:null},ht={ReactCurrentDispatcher:Dt,ReactCurrentBatchConfig:Z,ReactCurrentOwner:gt};function j(){throw Error("act(...) is not supported in production builds of React.")}return Nt.Children={map:Ut,forEach:function(N,U,wt){Ut(N,function(){U.apply(this,arguments)},wt)},count:function(N){var U=0;return Ut(N,function(){U++}),U},toArray:function(N){return Ut(N,function(U){return U})||[]},only:function(N){if(!it(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Nt.Component=$,Nt.Fragment=r,Nt.Profiler=f,Nt.PureComponent=Q,Nt.StrictMode=l,Nt.Suspense=w,Nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ht,Nt.act=j,Nt.cloneElement=function(N,U,wt){if(N==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+N+".");var vt=D({},N.props),pt=N.key,at=N.ref,bt=N._owner;if(U!=null){if(U.ref!==void 0&&(at=U.ref,bt=gt.current),U.key!==void 0&&(pt=""+U.key),N.type&&N.type.defaultProps)var At=N.type.defaultProps;for(Vt in U)K.call(U,Vt)&&!Y.hasOwnProperty(Vt)&&(vt[Vt]=U[Vt]===void 0&&At!==void 0?At[Vt]:U[Vt])}var Vt=arguments.length-2;if(Vt===1)vt.children=wt;else if(1<Vt){At=Array(Vt);for(var me=0;me<Vt;me++)At[me]=arguments[me+2];vt.children=At}return{$$typeof:i,type:N.type,key:pt,ref:at,props:vt,_owner:bt}},Nt.createContext=function(N){return N={$$typeof:g,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},N.Provider={$$typeof:p,_context:N},N.Consumer=N},Nt.createElement=ct,Nt.createFactory=function(N){var U=ct.bind(null,N);return U.type=N,U},Nt.createRef=function(){return{current:null}},Nt.forwardRef=function(N){return{$$typeof:y,render:N}},Nt.isValidElement=it,Nt.lazy=function(N){return{$$typeof:S,_payload:{_status:-1,_result:N},_init:zt}},Nt.memo=function(N,U){return{$$typeof:v,type:N,compare:U===void 0?null:U}},Nt.startTransition=function(N){var U=Z.transition;Z.transition={};try{N()}finally{Z.transition=U}},Nt.unstable_act=j,Nt.useCallback=function(N,U){return Dt.current.useCallback(N,U)},Nt.useContext=function(N){return Dt.current.useContext(N)},Nt.useDebugValue=function(){},Nt.useDeferredValue=function(N){return Dt.current.useDeferredValue(N)},Nt.useEffect=function(N,U){return Dt.current.useEffect(N,U)},Nt.useId=function(){return Dt.current.useId()},Nt.useImperativeHandle=function(N,U,wt){return Dt.current.useImperativeHandle(N,U,wt)},Nt.useInsertionEffect=function(N,U){return Dt.current.useInsertionEffect(N,U)},Nt.useLayoutEffect=function(N,U){return Dt.current.useLayoutEffect(N,U)},Nt.useMemo=function(N,U){return Dt.current.useMemo(N,U)},Nt.useReducer=function(N,U,wt){return Dt.current.useReducer(N,U,wt)},Nt.useRef=function(N){return Dt.current.useRef(N)},Nt.useState=function(N){return Dt.current.useState(N)},Nt.useSyncExternalStore=function(N,U,wt){return Dt.current.useSyncExternalStore(N,U,wt)},Nt.useTransition=function(){return Dt.current.useTransition()},Nt.version="18.3.1",Nt}var Rd;function Bf(){return Rd||(Rd=1,Gc.exports=sg()),Gc.exports}/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var bd;function ag(){if(bd)return Ks;bd=1;var i=Bf(),o=Symbol.for("react.element"),r=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,f=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function g(y,w,v){var S,T={},C=null,E=null;v!==void 0&&(C=""+v),w.key!==void 0&&(C=""+w.key),w.ref!==void 0&&(E=w.ref);for(S in w)l.call(w,S)&&!p.hasOwnProperty(S)&&(T[S]=w[S]);if(y&&y.defaultProps)for(S in w=y.defaultProps,w)T[S]===void 0&&(T[S]=w[S]);return{$$typeof:o,type:y,key:C,ref:E,props:T,_owner:f.current}}return Ks.Fragment=r,Ks.jsx=g,Ks.jsxs=g,Ks}var Id;function lg(){return Id||(Id=1,qc.exports=ag()),qc.exports}var ot=lg(),rt=Bf();const pf=Jp(rt);var Il={},Kc={exports:{}},De={},Yc={exports:{}},Xc={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Bd;function ug(){return Bd||(Bd=1,(function(i){function o(Z,ht){var j=Z.length;Z.push(ht);t:for(;0<j;){var N=j-1>>>1,U=Z[N];if(0<f(U,ht))Z[N]=ht,Z[j]=U,j=N;else break t}}function r(Z){return Z.length===0?null:Z[0]}function l(Z){if(Z.length===0)return null;var ht=Z[0],j=Z.pop();if(j!==ht){Z[0]=j;t:for(var N=0,U=Z.length,wt=U>>>1;N<wt;){var vt=2*(N+1)-1,pt=Z[vt],at=vt+1,bt=Z[at];if(0>f(pt,j))at<U&&0>f(bt,pt)?(Z[N]=bt,Z[at]=j,N=at):(Z[N]=pt,Z[vt]=j,N=vt);else if(at<U&&0>f(bt,j))Z[N]=bt,Z[at]=j,N=at;else break t}}return ht}function f(Z,ht){var j=Z.sortIndex-ht.sortIndex;return j!==0?j:Z.id-ht.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;i.unstable_now=function(){return p.now()}}else{var g=Date,y=g.now();i.unstable_now=function(){return g.now()-y}}var w=[],v=[],S=1,T=null,C=3,E=!1,D=!1,H=!1,$=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function tt(Z){for(var ht=r(v);ht!==null;){if(ht.callback===null)l(v);else if(ht.startTime<=Z)l(v),ht.sortIndex=ht.expirationTime,o(w,ht);else break;ht=r(v)}}function F(Z){if(H=!1,tt(Z),!D)if(r(w)!==null)D=!0,zt(K);else{var ht=r(v);ht!==null&&Dt(F,ht.startTime-Z)}}function K(Z,ht){D=!1,H&&(H=!1,J(ct),ct=-1),E=!0;var j=C;try{for(tt(ht),T=r(w);T!==null&&(!(T.expirationTime>ht)||Z&&!q());){var N=T.callback;if(typeof N=="function"){T.callback=null,C=T.priorityLevel;var U=N(T.expirationTime<=ht);ht=i.unstable_now(),typeof U=="function"?T.callback=U:T===r(w)&&l(w),tt(ht)}else l(w);T=r(w)}if(T!==null)var wt=!0;else{var vt=r(v);vt!==null&&Dt(F,vt.startTime-ht),wt=!1}return wt}finally{T=null,C=j,E=!1}}var gt=!1,Y=null,ct=-1,ut=5,it=-1;function q(){return!(i.unstable_now()-it<ut)}function yt(){if(Y!==null){var Z=i.unstable_now();it=Z;var ht=!0;try{ht=Y(!0,Z)}finally{ht?Mt():(gt=!1,Y=null)}}else gt=!1}var Mt;if(typeof Q=="function")Mt=function(){Q(yt)};else if(typeof MessageChannel<"u"){var Ot=new MessageChannel,Ut=Ot.port2;Ot.port1.onmessage=yt,Mt=function(){Ut.postMessage(null)}}else Mt=function(){$(yt,0)};function zt(Z){Y=Z,gt||(gt=!0,Mt())}function Dt(Z,ht){ct=$(function(){Z(i.unstable_now())},ht)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(Z){Z.callback=null},i.unstable_continueExecution=function(){D||E||(D=!0,zt(K))},i.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ut=0<Z?Math.floor(1e3/Z):5},i.unstable_getCurrentPriorityLevel=function(){return C},i.unstable_getFirstCallbackNode=function(){return r(w)},i.unstable_next=function(Z){switch(C){case 1:case 2:case 3:var ht=3;break;default:ht=C}var j=C;C=ht;try{return Z()}finally{C=j}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(Z,ht){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var j=C;C=Z;try{return ht()}finally{C=j}},i.unstable_scheduleCallback=function(Z,ht,j){var N=i.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?N+j:N):j=N,Z){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=j+U,Z={id:S++,callback:ht,priorityLevel:Z,startTime:j,expirationTime:U,sortIndex:-1},j>N?(Z.sortIndex=j,o(v,Z),r(w)===null&&Z===r(v)&&(H?(J(ct),ct=-1):H=!0,Dt(F,j-N))):(Z.sortIndex=U,o(w,Z),D||E||(D=!0,zt(K))),Z},i.unstable_shouldYield=q,i.unstable_wrapCallback=function(Z){var ht=C;return function(){var j=C;C=ht;try{return Z.apply(this,arguments)}finally{C=j}}}})(Xc)),Xc}var Dd;function cg(){return Dd||(Dd=1,Yc.exports=ug()),Yc.exports}/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Fd;function fg(){if(Fd)return De;Fd=1;var i=Bf(),o=cg();function r(t){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+t,a=1;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,f={};function p(t,n){g(t,n),g(t+"Capture",n)}function g(t,n){for(f[t]=n,t=0;t<n.length;t++)l.add(n[t])}var y=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),w=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,S={},T={};function C(t){return w.call(T,t)?!0:w.call(S,t)?!1:v.test(t)?T[t]=!0:(S[t]=!0,!1)}function E(t,n,a,c){if(a!==null&&a.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return c?!1:a!==null?!a.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function D(t,n,a,c){if(n===null||typeof n>"u"||E(t,n,a,c))return!0;if(c)return!1;if(a!==null)switch(a.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function H(t,n,a,c,d,m,x){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=c,this.attributeNamespace=d,this.mustUseProperty=a,this.propertyName=t,this.type=n,this.sanitizeURL=m,this.removeEmptyString=x}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){$[t]=new H(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var n=t[0];$[n]=new H(n,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){$[t]=new H(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){$[t]=new H(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){$[t]=new H(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){$[t]=new H(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){$[t]=new H(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){$[t]=new H(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){$[t]=new H(t,5,!1,t.toLowerCase(),null,!1,!1)});var J=/[\-:]([a-z])/g;function Q(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var n=t.replace(J,Q);$[n]=new H(n,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var n=t.replace(J,Q);$[n]=new H(n,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var n=t.replace(J,Q);$[n]=new H(n,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){$[t]=new H(t,1,!1,t.toLowerCase(),null,!1,!1)}),$.xlinkHref=new H("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){$[t]=new H(t,1,!1,t.toLowerCase(),null,!0,!0)});function tt(t,n,a,c){var d=$.hasOwnProperty(n)?$[n]:null;(d!==null?d.type!==0:c||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(D(n,a,d,c)&&(a=null),c||d===null?C(n)&&(a===null?t.removeAttribute(n):t.setAttribute(n,""+a)):d.mustUseProperty?t[d.propertyName]=a===null?d.type===3?!1:"":a:(n=d.attributeName,c=d.attributeNamespace,a===null?t.removeAttribute(n):(d=d.type,a=d===3||d===4&&a===!0?"":""+a,c?t.setAttributeNS(c,n,a):t.setAttribute(n,a))))}var F=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,K=Symbol.for("react.element"),gt=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),ct=Symbol.for("react.strict_mode"),ut=Symbol.for("react.profiler"),it=Symbol.for("react.provider"),q=Symbol.for("react.context"),yt=Symbol.for("react.forward_ref"),Mt=Symbol.for("react.suspense"),Ot=Symbol.for("react.suspense_list"),Ut=Symbol.for("react.memo"),zt=Symbol.for("react.lazy"),Dt=Symbol.for("react.offscreen"),Z=Symbol.iterator;function ht(t){return t===null||typeof t!="object"?null:(t=Z&&t[Z]||t["@@iterator"],typeof t=="function"?t:null)}var j=Object.assign,N;function U(t){if(N===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);N=n&&n[1]||""}return`
`+N+t}var wt=!1;function vt(t,n){if(!t||wt)return"";wt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(B){var c=B}Reflect.construct(t,[],n)}else{try{n.call()}catch(B){c=B}t.call(n.prototype)}else{try{throw Error()}catch(B){c=B}t()}}catch(B){if(B&&c&&typeof B.stack=="string"){for(var d=B.stack.split(`
`),m=c.stack.split(`
`),x=d.length-1,P=m.length-1;1<=x&&0<=P&&d[x]!==m[P];)P--;for(;1<=x&&0<=P;x--,P--)if(d[x]!==m[P]){if(x!==1||P!==1)do if(x--,P--,0>P||d[x]!==m[P]){var A=`
`+d[x].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=x&&0<=P);break}}}finally{wt=!1,Error.prepareStackTrace=a}return(t=t?t.displayName||t.name:"")?U(t):""}function pt(t){switch(t.tag){case 5:return U(t.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return t=vt(t.type,!1),t;case 11:return t=vt(t.type.render,!1),t;case 1:return t=vt(t.type,!0),t;default:return""}}function at(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Y:return"Fragment";case gt:return"Portal";case ut:return"Profiler";case ct:return"StrictMode";case Mt:return"Suspense";case Ot:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case q:return(t.displayName||"Context")+".Consumer";case it:return(t._context.displayName||"Context")+".Provider";case yt:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ut:return n=t.displayName||null,n!==null?n:at(t.type)||"Memo";case zt:n=t._payload,t=t._init;try{return at(t(n))}catch{}}return null}function bt(t){var n=t.type;switch(t.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return at(n);case 8:return n===ct?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function At(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Vt(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function me(t){var n=Vt(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),c=""+t[n];if(!t.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var d=a.get,m=a.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return d.call(this)},set:function(x){c=""+x,m.call(this,x)}}),Object.defineProperty(t,n,{enumerable:a.enumerable}),{getValue:function(){return c},setValue:function(x){c=""+x},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function yi(t){t._valueTracker||(t._valueTracker=me(t))}function wi(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var a=n.getValue(),c="";return t&&(c=Vt(t)?t.checked?"true":"false":t.value),t=c,t!==a?(n.setValue(t),!0):!1}function xi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Ko(t,n){var a=n.checked;return j({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??t._wrapperState.initialChecked})}function Yo(t,n){var a=n.defaultValue==null?"":n.defaultValue,c=n.checked!=null?n.checked:n.defaultChecked;a=At(n.value!=null?n.value:a),t._wrapperState={initialChecked:c,initialValue:a,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Xo(t,n){n=n.checked,n!=null&&tt(t,"checked",n,!1)}function ar(t,n){Xo(t,n);var a=At(n.value),c=n.type;if(a!=null)c==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+a):t.value!==""+a&&(t.value=""+a);else if(c==="submit"||c==="reset"){t.removeAttribute("value");return}n.hasOwnProperty("value")?Qo(t,n.type,a):n.hasOwnProperty("defaultValue")&&Qo(t,n.type,At(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(t.defaultChecked=!!n.defaultChecked)}function lr(t,n,a){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var c=n.type;if(!(c!=="submit"&&c!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+t._wrapperState.initialValue,a||n===t.value||(t.value=n),t.defaultValue=n}a=t.name,a!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,a!==""&&(t.name=a)}function Qo(t,n,a){(n!=="number"||xi(t.ownerDocument)!==t)&&(a==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+a&&(t.defaultValue=""+a))}var ki=Array.isArray;function Cn(t,n,a,c){if(t=t.options,n){n={};for(var d=0;d<a.length;d++)n["$"+a[d]]=!0;for(a=0;a<t.length;a++)d=n.hasOwnProperty("$"+t[a].value),t[a].selected!==d&&(t[a].selected=d),d&&c&&(t[a].defaultSelected=!0)}else{for(a=""+At(a),n=null,d=0;d<t.length;d++){if(t[d].value===a){t[d].selected=!0,c&&(t[d].defaultSelected=!0);return}n!==null||t[d].disabled||(n=t[d])}n!==null&&(n.selected=!0)}}function qr(t,n){if(n.dangerouslySetInnerHTML!=null)throw Error(r(91));return j({},n,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Jo(t,n){var a=n.value;if(a==null){if(a=n.children,n=n.defaultValue,a!=null){if(n!=null)throw Error(r(92));if(ki(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),a=n}t._wrapperState={initialValue:At(a)}}function pa(t,n){var a=At(n.value),c=At(n.defaultValue);a!=null&&(a=""+a,a!==t.value&&(t.value=a),n.defaultValue==null&&t.defaultValue!==a&&(t.defaultValue=a)),c!=null&&(t.defaultValue=""+c)}function ma(t){var n=t.textContent;n===t._wrapperState.initialValue&&n!==""&&n!==null&&(t.value=n)}function Gr(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Kr(t,n){return t==null||t==="http://www.w3.org/1999/xhtml"?Gr(n):t==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var ur,_a=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,a,c,d){MSApp.execUnsafeLocalFunction(function(){return t(n,a,c,d)})}:t})(function(t,n){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=n;else{for(ur=ur||document.createElement("div"),ur.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=ur.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;n.firstChild;)t.appendChild(n.firstChild)}});function Si(t,n){if(n){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=n;return}}t.textContent=n}var Ei={animationIterationCount:!0,aspectRatio:!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,gridArea:!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},Su=["Webkit","ms","Moz","O"];Object.keys(Ei).forEach(function(t){Su.forEach(function(n){n=n+t.charAt(0).toUpperCase()+t.substring(1),Ei[n]=Ei[t]})});function ts(t,n,a){return n==null||typeof n=="boolean"||n===""?"":a||typeof n!="number"||n===0||Ei.hasOwnProperty(t)&&Ei[t]?(""+n).trim():n+"px"}function Yr(t,n){t=t.style;for(var a in n)if(n.hasOwnProperty(a)){var c=a.indexOf("--")===0,d=ts(a,n[a],c);a==="float"&&(a="cssFloat"),c?t.setProperty(a,d):t[a]=d}}var ga=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function es(t,n){if(n){if(ga[t]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(r(137,t));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(r(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(r(61))}if(n.style!=null&&typeof n.style!="object")throw Error(r(62))}}function $n(t,n){if(t.indexOf("-")===-1)return typeof n.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ns=null;function is(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Xr=null,qn=null,Gn=null;function va(t){if(t=si(t)){if(typeof Xr!="function")throw Error(r(280));var n=t.stateNode;n&&(n=Po(n),Xr(t.stateNode,t.type,n))}}function ya(t){qn?Gn?Gn.push(t):Gn=[t]:qn=t}function wa(){if(qn){var t=qn,n=Gn;if(Gn=qn=null,va(t),n)for(t=0;t<n.length;t++)va(n[t])}}function xa(t,n){return t(n)}function ka(){}var rs=!1;function Qr(t,n,a){if(rs)return t(n,a);rs=!0;try{return xa(t,n,a)}finally{rs=!1,(qn!==null||Gn!==null)&&(ka(),wa())}}function cr(t,n){var a=t.stateNode;if(a===null)return null;var c=Po(a);if(c===null)return null;a=c[n];t:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(t=t.type,c=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!c;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,n,typeof a));return a}var os=!1;if(y)try{var fr={};Object.defineProperty(fr,"passive",{get:function(){os=!0}}),window.addEventListener("test",fr,fr),window.removeEventListener("test",fr,fr)}catch{os=!1}function Eu(t,n,a,c,d,m,x,P,A){var B=Array.prototype.slice.call(arguments,3);try{n.apply(a,B)}catch(G){this.onError(G)}}var ve=!1,mt=null,hr=!1,Jr=null,Sa={onError:function(t){ve=!0,mt=t}};function Ea(t,n,a,c,d,m,x,P,A){ve=!1,mt=null,Eu.apply(Sa,arguments)}function ss(t,n,a,c,d,m,x,P,A){if(Ea.apply(this,arguments),ve){if(ve){var B=mt;ve=!1,mt=null}else throw Error(r(198));hr||(hr=!0,Jr=B)}}function Mn(t){var n=t,a=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(a=n.return),t=n.return;while(t)}return n.tag===3?a:null}function Kn(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function as(t){if(Mn(t)!==t)throw Error(r(188))}function Pu(t){var n=t.alternate;if(!n){if(n=Mn(t),n===null)throw Error(r(188));return n!==t?null:t}for(var a=t,c=n;;){var d=a.return;if(d===null)break;var m=d.alternate;if(m===null){if(c=d.return,c!==null){a=c;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===a)return as(d),t;if(m===c)return as(d),n;m=m.sibling}throw Error(r(188))}if(a.return!==c.return)a=d,c=m;else{for(var x=!1,P=d.child;P;){if(P===a){x=!0,a=d,c=m;break}if(P===c){x=!0,c=d,a=m;break}P=P.sibling}if(!x){for(P=m.child;P;){if(P===a){x=!0,a=m,c=d;break}if(P===c){x=!0,c=m,a=d;break}P=P.sibling}if(!x)throw Error(r(189))}}if(a.alternate!==c)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:n}function Pa(t){return t=Pu(t),t!==null?La(t):null}function La(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var n=La(t);if(n!==null)return n;t=t.sibling}return null}var Ta=o.unstable_scheduleCallback,ls=o.unstable_cancelCallback,Lu=o.unstable_shouldYield,to=o.unstable_requestPaint,Qt=o.unstable_now,Tu=o.unstable_getCurrentPriorityLevel,us=o.unstable_ImmediatePriority,Ca=o.unstable_UserBlockingPriority,eo=o.unstable_NormalPriority,cs=o.unstable_LowPriority,Pi=o.unstable_IdlePriority,dr=null,Ze=null;function pr(t){if(Ze&&typeof Ze.onCommitFiberRoot=="function")try{Ze.onCommitFiberRoot(dr,t,void 0,(t.current.flags&128)===128)}catch{}}var Tt=Math.clz32?Math.clz32:Li,Gt=Math.log,no=Math.LN2;function Li(t){return t>>>=0,t===0?32:31-(Gt(t)/no|0)|0}var dn=64,Ti=4194304;function Lt(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function $t(t,n){var a=t.pendingLanes;if(a===0)return 0;var c=0,d=t.suspendedLanes,m=t.pingedLanes,x=a&268435455;if(x!==0){var P=x&~d;P!==0?c=Lt(P):(m&=x,m!==0&&(c=Lt(m)))}else x=a&~d,x!==0?c=Lt(x):m!==0&&(c=Lt(m));if(c===0)return 0;if(n!==0&&n!==c&&(n&d)===0&&(d=c&-c,m=n&-n,d>=m||d===16&&(m&4194240)!==0))return n;if((c&4)!==0&&(c|=a&16),n=t.entangledLanes,n!==0)for(t=t.entanglements,n&=c;0<n;)a=31-Tt(n),d=1<<a,c|=t[a],n&=~d;return c}function fs(t,n){switch(t){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function io(t,n){for(var a=t.suspendedLanes,c=t.pingedLanes,d=t.expirationTimes,m=t.pendingLanes;0<m;){var x=31-Tt(m),P=1<<x,A=d[x];A===-1?((P&a)===0||(P&c)!==0)&&(d[x]=fs(P,n)):A<=n&&(t.expiredLanes|=P),m&=~P}}function ye(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Ma(){var t=dn;return dn<<=1,(dn&4194240)===0&&(dn=64),t}function Ci(t){for(var n=[],a=0;31>a;a++)n.push(t);return n}function He(t,n,a){t.pendingLanes|=n,n!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,n=31-Tt(n),t[n]=a}function ne(t,n){var a=t.pendingLanes&~n;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=n,t.mutableReadLanes&=n,t.entangledLanes&=n,n=t.entanglements;var c=t.eventTimes;for(t=t.expirationTimes;0<a;){var d=31-Tt(a),m=1<<d;n[d]=0,c[d]=-1,t[d]=-1,a&=~m}}function pn(t,n){var a=t.entangledLanes|=n;for(t=t.entanglements;a;){var c=31-Tt(a),d=1<<c;d&n|t[c]&n&&(t[c]|=n),a&=~d}}var It=0;function Mi(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var ro,Yn,oo,so,mr,_r=!1,Ai=[],Ue=null,mn=null,Qe=null,gr=new Map,Et=new Map,le=[],jt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function hs(t,n){switch(t){case"focusin":case"focusout":Ue=null;break;case"dragenter":case"dragleave":mn=null;break;case"mouseover":case"mouseout":Qe=null;break;case"pointerover":case"pointerout":gr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Et.delete(n.pointerId)}}function Xn(t,n,a,c,d,m){return t===null||t.nativeEvent!==m?(t={blockedOn:n,domEventName:a,eventSystemFlags:c,nativeEvent:m,targetContainers:[d]},n!==null&&(n=si(n),n!==null&&Yn(n)),t):(t.eventSystemFlags|=c,n=t.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),t)}function ds(t,n,a,c,d){switch(n){case"focusin":return Ue=Xn(Ue,t,n,a,c,d),!0;case"dragenter":return mn=Xn(mn,t,n,a,c,d),!0;case"mouseover":return Qe=Xn(Qe,t,n,a,c,d),!0;case"pointerover":var m=d.pointerId;return gr.set(m,Xn(gr.get(m)||null,t,n,a,c,d)),!0;case"gotpointercapture":return m=d.pointerId,Et.set(m,Xn(Et.get(m)||null,t,n,a,c,d)),!0}return!1}function ao(t){var n=oi(t.target);if(n!==null){var a=Mn(n);if(a!==null){if(n=a.tag,n===13){if(n=Kn(a),n!==null){t.blockedOn=n,mr(t.priority,function(){oo(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Je(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var a=co(t.domEventName,t.eventSystemFlags,n[0],t.nativeEvent);if(a===null){a=t.nativeEvent;var c=new a.constructor(a.type,a);ns=c,a.target.dispatchEvent(c),ns=null}else return n=si(a),n!==null&&Yn(n),t.blockedOn=a,!1;n.shift()}return!0}function lo(t,n,a){Je(t)&&a.delete(n)}function vr(){_r=!1,Ue!==null&&Je(Ue)&&(Ue=null),mn!==null&&Je(mn)&&(mn=null),Qe!==null&&Je(Qe)&&(Qe=null),gr.forEach(lo),Et.forEach(lo)}function Jt(t,n){t.blockedOn===n&&(t.blockedOn=null,_r||(_r=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,vr)))}function je(t){function n(d){return Jt(d,t)}if(0<Ai.length){Jt(Ai[0],t);for(var a=1;a<Ai.length;a++){var c=Ai[a];c.blockedOn===t&&(c.blockedOn=null)}}for(Ue!==null&&Jt(Ue,t),mn!==null&&Jt(mn,t),Qe!==null&&Jt(Qe,t),gr.forEach(n),Et.forEach(n),a=0;a<le.length;a++)c=le[a],c.blockedOn===t&&(c.blockedOn=null);for(;0<le.length&&(a=le[0],a.blockedOn===null);)ao(a),a.blockedOn===null&&le.shift()}var Qn=F.ReactCurrentBatchConfig,yr=!0;function Cu(t,n,a,c){var d=It,m=Qn.transition;Qn.transition=null;try{It=1,wr(t,n,a,c)}finally{It=d,Qn.transition=m}}function Aa(t,n,a,c){var d=It,m=Qn.transition;Qn.transition=null;try{It=4,wr(t,n,a,c)}finally{It=d,Qn.transition=m}}function wr(t,n,a,c){if(yr){var d=co(t,n,a,c);if(d===null)e(t,n,c,uo,a),hs(t,c);else if(ds(d,t,n,a,c))c.stopPropagation();else if(hs(t,c),n&4&&-1<jt.indexOf(t)){for(;d!==null;){var m=si(d);if(m!==null&&ro(m),m=co(t,n,a,c),m===null&&e(t,n,c,uo,a),m===d)break;d=m}d!==null&&c.stopPropagation()}else e(t,n,c,null,a)}}var uo=null;function co(t,n,a,c){if(uo=null,t=is(c),t=oi(t),t!==null)if(n=Mn(t),n===null)t=null;else if(a=n.tag,a===13){if(t=Kn(n),t!==null)return t;t=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null);return uo=t,null}function Rt(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Tu()){case us:return 1;case Ca:return 4;case eo:case cs:return 16;case Pi:return 536870912;default:return 16}default:return 16}}var An=null,Le=null,Nn=null;function ps(){if(Nn)return Nn;var t,n=Le,a=n.length,c,d="value"in An?An.value:An.textContent,m=d.length;for(t=0;t<a&&n[t]===d[t];t++);var x=a-t;for(c=1;c<=x&&n[a-c]===d[m-c];c++);return Nn=d.slice(t,1<c?1-c:void 0)}function fo(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function Ni(){return!0}function Na(){return!1}function we(t){function n(a,c,d,m,x){this._reactName=a,this._targetInst=d,this.type=c,this.nativeEvent=m,this.target=x,this.currentTarget=null;for(var P in t)t.hasOwnProperty(P)&&(a=t[P],this[P]=a?a(m):m[P]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Ni:Na,this.isPropagationStopped=Na,this}return j(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ni)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),n}var Oi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ms=we(Oi),Jn=j({},Oi,{view:0,detail:0}),Mu=we(Jn),Ne,_s,zi,We=j({},Jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ei,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==zi&&(zi&&t.type==="mousemove"?(Ne=t.screenX-zi.screenX,_s=t.screenY-zi.screenY):_s=Ne=0,zi=t),Ne)},movementY:function(t){return"movementY"in t?t.movementY:_s}}),gs=we(We),Oa=j({},We,{dataTransfer:0}),vs=we(Oa),Au=j({},Jn,{relatedTarget:0}),ho=we(Au),za=j({},Oi,{animationName:0,elapsedTime:0,pseudoElement:0}),Nu=we(za),Ou=j({},Oi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ys=we(Ou),zu=j({},Oi,{data:0}),ws=we(zu),Ra={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},po={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ti={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ru(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=ti[t])?!!n[t]:!1}function ei(){return Ru}var Oe=j({},Jn,{key:function(t){if(t.key){var n=Ra[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=fo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?po[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ei,charCode:function(t){return t.type==="keypress"?fo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?fo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),ba=we(Oe),Ia=j({},We,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ba=we(Ia),xs=j({},Jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ei}),ks=we(xs),bu=j({},Oi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Iu=we(bu),Da=j({},We,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Bu=we(Da),Ve=[9,13,27,32],On=y&&"CompositionEvent"in window,xr=null;y&&"documentMode"in document&&(xr=document.documentMode);var _n=y&&"TextEvent"in window&&!xr,Fa=y&&(!On||xr&&8<xr&&11>=xr),ni=" ",Za=!1;function Ri(t,n){switch(t){case"keyup":return Ve.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ss(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var gn=!1;function Du(t,n){switch(t){case"compositionend":return Ss(n);case"keypress":return n.which!==32?null:(Za=!0,ni);case"textInput":return t=n.data,t===ni&&Za?null:t;default:return null}}function zn(t,n){if(gn)return t==="compositionend"||!On&&Ri(t,n)?(t=ps(),Nn=Le=An=null,gn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Fa&&n.locale!=="ko"?null:n.data;default:return null}}var mo={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ha(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!mo[t.type]:n==="textarea"}function _o(t,n,a,c){ya(c),n=u(n,"onChange"),0<n.length&&(a=new ms("onChange","change",null,a,c),t.push({event:a,listeners:n}))}var kr=null,Te=null;function Fu(t){Os(t,0)}function vn(t){var n=ai(t);if(wi(n))return t}function Zu(t,n){if(t==="change")return n}var tn=!1;if(y){var bi;if(y){var go="oninput"in document;if(!go){var vo=document.createElement("div");vo.setAttribute("oninput","return;"),go=typeof vo.oninput=="function"}bi=go}else bi=!1;tn=bi&&(!document.documentMode||9<document.documentMode)}function Sr(){kr&&(kr.detachEvent("onpropertychange",yo),Te=kr=null)}function yo(t){if(t.propertyName==="value"&&vn(Te)){var n=[];_o(n,Te,t,is(t)),Qr(Fu,n)}}function wo(t,n,a){t==="focusin"?(Sr(),kr=n,Te=a,kr.attachEvent("onpropertychange",yo)):t==="focusout"&&Sr()}function Ii(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return vn(Te)}function xo(t,n){if(t==="click")return vn(n)}function Es(t,n){if(t==="input"||t==="change")return vn(n)}function Ua(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var $e=typeof Object.is=="function"?Object.is:Ua;function Rn(t,n){if($e(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var a=Object.keys(t),c=Object.keys(n);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var d=a[c];if(!w.call(n,d)||!$e(t[d],n[d]))return!1}return!0}function ja(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ps(t,n){var a=ja(t);t=0;for(var c;a;){if(a.nodeType===3){if(c=t+a.textContent.length,t<=n&&c>=n)return{node:a,offset:n-t};t=c}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=ja(a)}}function Wa(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?Wa(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Ls(){for(var t=window,n=xi();n instanceof t.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)t=n.contentWindow;else break;n=xi(t.document)}return n}function Ts(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}function en(t){var n=Ls(),a=t.focusedElem,c=t.selectionRange;if(n!==a&&a&&a.ownerDocument&&Wa(a.ownerDocument.documentElement,a)){if(c!==null&&Ts(a)){if(n=c.start,t=c.end,t===void 0&&(t=n),"selectionStart"in a)a.selectionStart=n,a.selectionEnd=Math.min(t,a.value.length);else if(t=(n=a.ownerDocument||document)&&n.defaultView||window,t.getSelection){t=t.getSelection();var d=a.textContent.length,m=Math.min(c.start,d);c=c.end===void 0?m:Math.min(c.end,d),!t.extend&&m>c&&(d=c,c=m,m=d),d=Ps(a,m);var x=Ps(a,c);d&&x&&(t.rangeCount!==1||t.anchorNode!==d.node||t.anchorOffset!==d.offset||t.focusNode!==x.node||t.focusOffset!==x.offset)&&(n=n.createRange(),n.setStart(d.node,d.offset),t.removeAllRanges(),m>c?(t.addRange(n),t.extend(x.node,x.offset)):(n.setEnd(x.node,x.offset),t.addRange(n)))}}for(n=[],t=a;t=t.parentNode;)t.nodeType===1&&n.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<n.length;a++)t=n[a],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var ko=y&&"documentMode"in document&&11>=document.documentMode,Bi=null,Di=null,Er=null,So=!1;function Va(t,n,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;So||Bi==null||Bi!==xi(c)||(c=Bi,"selectionStart"in c&&Ts(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Er&&Rn(Er,c)||(Er=c,c=u(Di,"onSelect"),0<c.length&&(n=new ms("onSelect","select",null,n,a),t.push({event:n,listeners:c}),n.target=Bi)))}function bn(t,n){var a={};return a[t.toLowerCase()]=n.toLowerCase(),a["Webkit"+t]="webkit"+n,a["Moz"+t]="moz"+n,a}var Fi={animationend:bn("Animation","AnimationEnd"),animationiteration:bn("Animation","AnimationIteration"),animationstart:bn("Animation","AnimationStart"),transitionend:bn("Transition","TransitionEnd")},In={},Cs={};y&&(Cs=document.createElement("div").style,"AnimationEvent"in window||(delete Fi.animationend.animation,delete Fi.animationiteration.animation,delete Fi.animationstart.animation),"TransitionEvent"in window||delete Fi.transitionend.transition);function Pr(t){if(In[t])return In[t];if(!Fi[t])return t;var n=Fi[t],a;for(a in n)if(n.hasOwnProperty(a)&&a in Cs)return In[t]=n[a];return t}var $a=Pr("animationend"),nn=Pr("animationiteration"),Ms=Pr("animationstart"),As=Pr("transitionend"),Zi=new Map,qa="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function qe(t,n){Zi.set(t,n),p(n,[t])}for(var ii=0;ii<qa.length;ii++){var Eo=qa[ii],Ga=Eo.toLowerCase(),Hu=Eo[0].toUpperCase()+Eo.slice(1);qe(Ga,"on"+Hu)}qe($a,"onAnimationEnd"),qe(nn,"onAnimationIteration"),qe(Ms,"onAnimationStart"),qe("dblclick","onDoubleClick"),qe("focusin","onFocus"),qe("focusout","onBlur"),qe(As,"onTransitionEnd"),g("onMouseEnter",["mouseout","mouseover"]),g("onMouseLeave",["mouseout","mouseover"]),g("onPointerEnter",["pointerout","pointerover"]),g("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ka=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hi));function Ns(t,n,a){var c=t.type||"unknown-event";t.currentTarget=a,ss(c,n,void 0,t),t.currentTarget=null}function Os(t,n){n=(n&4)!==0;for(var a=0;a<t.length;a++){var c=t[a],d=c.event;c=c.listeners;t:{var m=void 0;if(n)for(var x=c.length-1;0<=x;x--){var P=c[x],A=P.instance,B=P.currentTarget;if(P=P.listener,A!==m&&d.isPropagationStopped())break t;Ns(d,P,B),m=A}else for(x=0;x<c.length;x++){if(P=c[x],A=P.instance,B=P.currentTarget,P=P.listener,A!==m&&d.isPropagationStopped())break t;Ns(d,P,B),m=A}}}if(hr)throw t=Jr,hr=!1,Jr=null,t}function Wt(t,n){var a=n[Vi];a===void 0&&(a=n[Vi]=new Set);var c=t+"__bubble";a.has(c)||(Ya(n,t,2,!1),a.add(c))}function zs(t,n,a){var c=0;n&&(c|=4),Ya(a,t,c,n)}var Lr="_reactListening"+Math.random().toString(36).slice(2);function Ui(t){if(!t[Lr]){t[Lr]=!0,l.forEach(function(a){a!=="selectionchange"&&(Ka.has(a)||zs(a,!1,t),zs(a,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Lr]||(n[Lr]=!0,zs("selectionchange",!1,n))}}function Ya(t,n,a,c){switch(Rt(n)){case 1:var d=Cu;break;case 4:d=Aa;break;default:d=wr}a=d.bind(null,n,a,t),d=void 0,!os||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),c?d!==void 0?t.addEventListener(n,a,{capture:!0,passive:d}):t.addEventListener(n,a,!0):d!==void 0?t.addEventListener(n,a,{passive:d}):t.addEventListener(n,a,!1)}function e(t,n,a,c,d){var m=c;if((n&1)===0&&(n&2)===0&&c!==null)t:for(;;){if(c===null)return;var x=c.tag;if(x===3||x===4){var P=c.stateNode.containerInfo;if(P===d||P.nodeType===8&&P.parentNode===d)break;if(x===4)for(x=c.return;x!==null;){var A=x.tag;if((A===3||A===4)&&(A=x.stateNode.containerInfo,A===d||A.nodeType===8&&A.parentNode===d))return;x=x.return}for(;P!==null;){if(x=oi(P),x===null)return;if(A=x.tag,A===5||A===6){c=m=x;continue t}P=P.parentNode}}c=c.return}Qr(function(){var B=m,G=is(a),X=[];t:{var V=Zi.get(t);if(V!==void 0){var st=ms,ft=t;switch(t){case"keypress":if(fo(a)===0)break t;case"keydown":case"keyup":st=ba;break;case"focusin":ft="focus",st=ho;break;case"focusout":ft="blur",st=ho;break;case"beforeblur":case"afterblur":st=ho;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":st=gs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":st=vs;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":st=ks;break;case $a:case nn:case Ms:st=Nu;break;case As:st=Iu;break;case"scroll":st=Mu;break;case"wheel":st=Bu;break;case"copy":case"cut":case"paste":st=ys;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":st=Ba}var dt=(n&4)!==0,re=!dt&&t==="scroll",R=dt?V!==null?V+"Capture":null:V;dt=[];for(var O=B,b;O!==null;){b=O;var et=b.stateNode;if(b.tag===5&&et!==null&&(b=et,R!==null&&(et=cr(O,R),et!=null&&dt.push(s(O,et,b)))),re)break;O=O.return}0<dt.length&&(V=new st(V,ft,null,a,G),X.push({event:V,listeners:dt}))}}if((n&7)===0){t:{if(V=t==="mouseover"||t==="pointerover",st=t==="mouseout"||t==="pointerout",V&&a!==ns&&(ft=a.relatedTarget||a.fromElement)&&(oi(ft)||ft[Ht]))break t;if((st||V)&&(V=G.window===G?G:(V=G.ownerDocument)?V.defaultView||V.parentWindow:window,st?(ft=a.relatedTarget||a.toElement,st=B,ft=ft?oi(ft):null,ft!==null&&(re=Mn(ft),ft!==re||ft.tag!==5&&ft.tag!==6)&&(ft=null)):(st=null,ft=B),st!==ft)){if(dt=gs,et="onMouseLeave",R="onMouseEnter",O="mouse",(t==="pointerout"||t==="pointerover")&&(dt=Ba,et="onPointerLeave",R="onPointerEnter",O="pointer"),re=st==null?V:ai(st),b=ft==null?V:ai(ft),V=new dt(et,O+"leave",st,a,G),V.target=re,V.relatedTarget=b,et=null,oi(G)===B&&(dt=new dt(R,O+"enter",ft,a,G),dt.target=b,dt.relatedTarget=re,et=dt),re=et,st&&ft)e:{for(dt=st,R=ft,O=0,b=dt;b;b=h(b))O++;for(b=0,et=R;et;et=h(et))b++;for(;0<O-b;)dt=h(dt),O--;for(;0<b-O;)R=h(R),b--;for(;O--;){if(dt===R||R!==null&&dt===R.alternate)break e;dt=h(dt),R=h(R)}dt=null}else dt=null;st!==null&&_(X,V,st,dt,!1),ft!==null&&re!==null&&_(X,re,ft,dt,!0)}}t:{if(V=B?ai(B):window,st=V.nodeName&&V.nodeName.toLowerCase(),st==="select"||st==="input"&&V.type==="file")var _t=Zu;else if(Ha(V))if(tn)_t=Es;else{_t=Ii;var kt=wo}else(st=V.nodeName)&&st.toLowerCase()==="input"&&(V.type==="checkbox"||V.type==="radio")&&(_t=xo);if(_t&&(_t=_t(t,B))){_o(X,_t,a,G);break t}kt&&kt(t,V,B),t==="focusout"&&(kt=V._wrapperState)&&kt.controlled&&V.type==="number"&&Qo(V,"number",V.value)}switch(kt=B?ai(B):window,t){case"focusin":(Ha(kt)||kt.contentEditable==="true")&&(Bi=kt,Di=B,Er=null);break;case"focusout":Er=Di=Bi=null;break;case"mousedown":So=!0;break;case"contextmenu":case"mouseup":case"dragend":So=!1,Va(X,a,G);break;case"selectionchange":if(ko)break;case"keydown":case"keyup":Va(X,a,G)}var St;if(On)t:{switch(t){case"compositionstart":var Pt="onCompositionStart";break t;case"compositionend":Pt="onCompositionEnd";break t;case"compositionupdate":Pt="onCompositionUpdate";break t}Pt=void 0}else gn?Ri(t,a)&&(Pt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Pt="onCompositionStart");Pt&&(Fa&&a.locale!=="ko"&&(gn||Pt!=="onCompositionStart"?Pt==="onCompositionEnd"&&gn&&(St=ps()):(An=G,Le="value"in An?An.value:An.textContent,gn=!0)),kt=u(B,Pt),0<kt.length&&(Pt=new ws(Pt,t,null,a,G),X.push({event:Pt,listeners:kt}),St?Pt.data=St:(St=Ss(a),St!==null&&(Pt.data=St)))),(St=_n?Du(t,a):zn(t,a))&&(B=u(B,"onBeforeInput"),0<B.length&&(G=new ws("onBeforeInput","beforeinput",null,a,G),X.push({event:G,listeners:B}),G.data=St))}Os(X,n)})}function s(t,n,a){return{instance:t,listener:n,currentTarget:a}}function u(t,n){for(var a=n+"Capture",c=[];t!==null;){var d=t,m=d.stateNode;d.tag===5&&m!==null&&(d=m,m=cr(t,a),m!=null&&c.unshift(s(t,m,d)),m=cr(t,n),m!=null&&c.push(s(t,m,d))),t=t.return}return c}function h(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function _(t,n,a,c,d){for(var m=n._reactName,x=[];a!==null&&a!==c;){var P=a,A=P.alternate,B=P.stateNode;if(A!==null&&A===c)break;P.tag===5&&B!==null&&(P=B,d?(A=cr(a,m),A!=null&&x.unshift(s(a,A,P))):d||(A=cr(a,m),A!=null&&x.push(s(a,A,P)))),a=a.return}x.length!==0&&t.push({event:n,listeners:x})}var k=/\r\n?/g,M=/\u0000|\uFFFD/g;function z(t){return(typeof t=="string"?t:""+t).replace(k,`
`).replace(M,"")}function I(t,n,a){if(n=z(n),z(t)!==n&&a)throw Error(r(425))}function W(){}var nt=null,xt=null;function Ct(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var ue=typeof setTimeout=="function"?setTimeout:void 0,oe=typeof clearTimeout=="function"?clearTimeout:void 0,Ce=typeof Promise=="function"?Promise:void 0,xe=typeof queueMicrotask=="function"?queueMicrotask:typeof Ce<"u"?function(t){return Ce.resolve(null).then(t).catch(ji)}:ue;function ji(t){setTimeout(function(){throw t})}function Rs(t,n){var a=n,c=0;do{var d=a.nextSibling;if(t.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"){if(c===0){t.removeChild(d),je(n);return}c--}else a!=="$"&&a!=="$?"&&a!=="$!"||c++;a=d}while(a);je(n)}function Bn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return t}function Xa(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"){if(n===0)return t;n--}else a==="/$"&&n++}t=t.previousSibling}return null}var ri=Math.random().toString(36).slice(2),rn="__reactFiber$"+ri,Wi="__reactProps$"+ri,Ht="__reactContainer$"+ri,Vi="__reactEvents$"+ri,Uu="__reactListeners$"+ri,ju="__reactHandles$"+ri;function oi(t){var n=t[rn];if(n)return n;for(var a=t.parentNode;a;){if(n=a[Ht]||a[rn]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(t=Xa(t);t!==null;){if(a=t[rn])return a;t=Xa(t)}return n}t=a,a=t.parentNode}return null}function si(t){return t=t[rn]||t[Ht],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function ai(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(r(33))}function Po(t){return t[Wi]||null}var Wu=[],Lo=-1;function $i(t){return{current:t}}function Kt(t){0>Lo||(t.current=Wu[Lo],Wu[Lo]=null,Lo--)}function qt(t,n){Lo++,Wu[Lo]=t.current,t.current=n}var qi={},ke=$i(qi),ze=$i(!1),Tr=qi;function To(t,n){var a=t.type.contextTypes;if(!a)return qi;var c=t.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===n)return c.__reactInternalMemoizedMaskedChildContext;var d={},m;for(m in a)d[m]=n[m];return c&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=n,t.__reactInternalMemoizedMaskedChildContext=d),d}function Re(t){return t=t.childContextTypes,t!=null}function Qa(){Kt(ze),Kt(ke)}function eh(t,n,a){if(ke.current!==qi)throw Error(r(168));qt(ke,n),qt(ze,a)}function nh(t,n,a){var c=t.stateNode;if(n=n.childContextTypes,typeof c.getChildContext!="function")return a;c=c.getChildContext();for(var d in c)if(!(d in n))throw Error(r(108,bt(t)||"Unknown",d));return j({},a,c)}function Ja(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||qi,Tr=ke.current,qt(ke,t),qt(ze,ze.current),!0}function ih(t,n,a){var c=t.stateNode;if(!c)throw Error(r(169));a?(t=nh(t,n,Tr),c.__reactInternalMemoizedMergedChildContext=t,Kt(ze),Kt(ke),qt(ke,t)):Kt(ze),qt(ze,a)}var li=null,tl=!1,Vu=!1;function rh(t){li===null?li=[t]:li.push(t)}function P_(t){tl=!0,rh(t)}function Gi(){if(!Vu&&li!==null){Vu=!0;var t=0,n=It;try{var a=li;for(It=1;t<a.length;t++){var c=a[t];do c=c(!0);while(c!==null)}li=null,tl=!1}catch(d){throw li!==null&&(li=li.slice(t+1)),Ta(us,Gi),d}finally{It=n,Vu=!1}}return null}var Co=[],Mo=0,el=null,nl=0,on=[],sn=0,Cr=null,ui=1,ci="";function Mr(t,n){Co[Mo++]=nl,Co[Mo++]=el,el=t,nl=n}function oh(t,n,a){on[sn++]=ui,on[sn++]=ci,on[sn++]=Cr,Cr=t;var c=ui;t=ci;var d=32-Tt(c)-1;c&=~(1<<d),a+=1;var m=32-Tt(n)+d;if(30<m){var x=d-d%5;m=(c&(1<<x)-1).toString(32),c>>=x,d-=x,ui=1<<32-Tt(n)+d|a<<d|c,ci=m+t}else ui=1<<m|a<<d|c,ci=t}function $u(t){t.return!==null&&(Mr(t,1),oh(t,1,0))}function qu(t){for(;t===el;)el=Co[--Mo],Co[Mo]=null,nl=Co[--Mo],Co[Mo]=null;for(;t===Cr;)Cr=on[--sn],on[sn]=null,ci=on[--sn],on[sn]=null,ui=on[--sn],on[sn]=null}var Ge=null,Ke=null,Yt=!1,yn=null;function sh(t,n){var a=cn(5,null,null,0);a.elementType="DELETED",a.stateNode=n,a.return=t,n=t.deletions,n===null?(t.deletions=[a],t.flags|=16):n.push(a)}function ah(t,n){switch(t.tag){case 5:var a=t.type;return n=n.nodeType!==1||a.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(t.stateNode=n,Ge=t,Ke=Bn(n.firstChild),!0):!1;case 6:return n=t.pendingProps===""||n.nodeType!==3?null:n,n!==null?(t.stateNode=n,Ge=t,Ke=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(a=Cr!==null?{id:ui,overflow:ci}:null,t.memoizedState={dehydrated:n,treeContext:a,retryLane:1073741824},a=cn(18,null,null,0),a.stateNode=n,a.return=t,t.child=a,Ge=t,Ke=null,!0):!1;default:return!1}}function Gu(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Ku(t){if(Yt){var n=Ke;if(n){var a=n;if(!ah(t,n)){if(Gu(t))throw Error(r(418));n=Bn(a.nextSibling);var c=Ge;n&&ah(t,n)?sh(c,a):(t.flags=t.flags&-4097|2,Yt=!1,Ge=t)}}else{if(Gu(t))throw Error(r(418));t.flags=t.flags&-4097|2,Yt=!1,Ge=t}}}function lh(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ge=t}function il(t){if(t!==Ge)return!1;if(!Yt)return lh(t),Yt=!0,!1;var n;if((n=t.tag!==3)&&!(n=t.tag!==5)&&(n=t.type,n=n!=="head"&&n!=="body"&&!Ct(t.type,t.memoizedProps)),n&&(n=Ke)){if(Gu(t))throw uh(),Error(r(418));for(;n;)sh(t,n),n=Bn(n.nextSibling)}if(lh(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));t:{for(t=t.nextSibling,n=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"){if(n===0){Ke=Bn(t.nextSibling);break t}n--}else a!=="$"&&a!=="$!"&&a!=="$?"||n++}t=t.nextSibling}Ke=null}}else Ke=Ge?Bn(t.stateNode.nextSibling):null;return!0}function uh(){for(var t=Ke;t;)t=Bn(t.nextSibling)}function Ao(){Ke=Ge=null,Yt=!1}function Yu(t){yn===null?yn=[t]:yn.push(t)}var L_=F.ReactCurrentBatchConfig;function bs(t,n,a){if(t=a.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(r(309));var c=a.stateNode}if(!c)throw Error(r(147,t));var d=c,m=""+t;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===m?n.ref:(n=function(x){var P=d.refs;x===null?delete P[m]:P[m]=x},n._stringRef=m,n)}if(typeof t!="string")throw Error(r(284));if(!a._owner)throw Error(r(290,t))}return t}function rl(t,n){throw t=Object.prototype.toString.call(n),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t))}function ch(t){var n=t._init;return n(t._payload)}function fh(t){function n(R,O){if(t){var b=R.deletions;b===null?(R.deletions=[O],R.flags|=16):b.push(O)}}function a(R,O){if(!t)return null;for(;O!==null;)n(R,O),O=O.sibling;return null}function c(R,O){for(R=new Map;O!==null;)O.key!==null?R.set(O.key,O):R.set(O.index,O),O=O.sibling;return R}function d(R,O){return R=nr(R,O),R.index=0,R.sibling=null,R}function m(R,O,b){return R.index=b,t?(b=R.alternate,b!==null?(b=b.index,b<O?(R.flags|=2,O):b):(R.flags|=2,O)):(R.flags|=1048576,O)}function x(R){return t&&R.alternate===null&&(R.flags|=2),R}function P(R,O,b,et){return O===null||O.tag!==6?(O=Hc(b,R.mode,et),O.return=R,O):(O=d(O,b),O.return=R,O)}function A(R,O,b,et){var _t=b.type;return _t===Y?G(R,O,b.props.children,et,b.key):O!==null&&(O.elementType===_t||typeof _t=="object"&&_t!==null&&_t.$$typeof===zt&&ch(_t)===O.type)?(et=d(O,b.props),et.ref=bs(R,O,b),et.return=R,et):(et=Cl(b.type,b.key,b.props,null,R.mode,et),et.ref=bs(R,O,b),et.return=R,et)}function B(R,O,b,et){return O===null||O.tag!==4||O.stateNode.containerInfo!==b.containerInfo||O.stateNode.implementation!==b.implementation?(O=Uc(b,R.mode,et),O.return=R,O):(O=d(O,b.children||[]),O.return=R,O)}function G(R,O,b,et,_t){return O===null||O.tag!==7?(O=Br(b,R.mode,et,_t),O.return=R,O):(O=d(O,b),O.return=R,O)}function X(R,O,b){if(typeof O=="string"&&O!==""||typeof O=="number")return O=Hc(""+O,R.mode,b),O.return=R,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case K:return b=Cl(O.type,O.key,O.props,null,R.mode,b),b.ref=bs(R,null,O),b.return=R,b;case gt:return O=Uc(O,R.mode,b),O.return=R,O;case zt:var et=O._init;return X(R,et(O._payload),b)}if(ki(O)||ht(O))return O=Br(O,R.mode,b,null),O.return=R,O;rl(R,O)}return null}function V(R,O,b,et){var _t=O!==null?O.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return _t!==null?null:P(R,O,""+b,et);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case K:return b.key===_t?A(R,O,b,et):null;case gt:return b.key===_t?B(R,O,b,et):null;case zt:return _t=b._init,V(R,O,_t(b._payload),et)}if(ki(b)||ht(b))return _t!==null?null:G(R,O,b,et,null);rl(R,b)}return null}function st(R,O,b,et,_t){if(typeof et=="string"&&et!==""||typeof et=="number")return R=R.get(b)||null,P(O,R,""+et,_t);if(typeof et=="object"&&et!==null){switch(et.$$typeof){case K:return R=R.get(et.key===null?b:et.key)||null,A(O,R,et,_t);case gt:return R=R.get(et.key===null?b:et.key)||null,B(O,R,et,_t);case zt:var kt=et._init;return st(R,O,b,kt(et._payload),_t)}if(ki(et)||ht(et))return R=R.get(b)||null,G(O,R,et,_t,null);rl(O,et)}return null}function ft(R,O,b,et){for(var _t=null,kt=null,St=O,Pt=O=0,pe=null;St!==null&&Pt<b.length;Pt++){St.index>Pt?(pe=St,St=null):pe=St.sibling;var Zt=V(R,St,b[Pt],et);if(Zt===null){St===null&&(St=pe);break}t&&St&&Zt.alternate===null&&n(R,St),O=m(Zt,O,Pt),kt===null?_t=Zt:kt.sibling=Zt,kt=Zt,St=pe}if(Pt===b.length)return a(R,St),Yt&&Mr(R,Pt),_t;if(St===null){for(;Pt<b.length;Pt++)St=X(R,b[Pt],et),St!==null&&(O=m(St,O,Pt),kt===null?_t=St:kt.sibling=St,kt=St);return Yt&&Mr(R,Pt),_t}for(St=c(R,St);Pt<b.length;Pt++)pe=st(St,R,Pt,b[Pt],et),pe!==null&&(t&&pe.alternate!==null&&St.delete(pe.key===null?Pt:pe.key),O=m(pe,O,Pt),kt===null?_t=pe:kt.sibling=pe,kt=pe);return t&&St.forEach(function(ir){return n(R,ir)}),Yt&&Mr(R,Pt),_t}function dt(R,O,b,et){var _t=ht(b);if(typeof _t!="function")throw Error(r(150));if(b=_t.call(b),b==null)throw Error(r(151));for(var kt=_t=null,St=O,Pt=O=0,pe=null,Zt=b.next();St!==null&&!Zt.done;Pt++,Zt=b.next()){St.index>Pt?(pe=St,St=null):pe=St.sibling;var ir=V(R,St,Zt.value,et);if(ir===null){St===null&&(St=pe);break}t&&St&&ir.alternate===null&&n(R,St),O=m(ir,O,Pt),kt===null?_t=ir:kt.sibling=ir,kt=ir,St=pe}if(Zt.done)return a(R,St),Yt&&Mr(R,Pt),_t;if(St===null){for(;!Zt.done;Pt++,Zt=b.next())Zt=X(R,Zt.value,et),Zt!==null&&(O=m(Zt,O,Pt),kt===null?_t=Zt:kt.sibling=Zt,kt=Zt);return Yt&&Mr(R,Pt),_t}for(St=c(R,St);!Zt.done;Pt++,Zt=b.next())Zt=st(St,R,Pt,Zt.value,et),Zt!==null&&(t&&Zt.alternate!==null&&St.delete(Zt.key===null?Pt:Zt.key),O=m(Zt,O,Pt),kt===null?_t=Zt:kt.sibling=Zt,kt=Zt);return t&&St.forEach(function(og){return n(R,og)}),Yt&&Mr(R,Pt),_t}function re(R,O,b,et){if(typeof b=="object"&&b!==null&&b.type===Y&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case K:t:{for(var _t=b.key,kt=O;kt!==null;){if(kt.key===_t){if(_t=b.type,_t===Y){if(kt.tag===7){a(R,kt.sibling),O=d(kt,b.props.children),O.return=R,R=O;break t}}else if(kt.elementType===_t||typeof _t=="object"&&_t!==null&&_t.$$typeof===zt&&ch(_t)===kt.type){a(R,kt.sibling),O=d(kt,b.props),O.ref=bs(R,kt,b),O.return=R,R=O;break t}a(R,kt);break}else n(R,kt);kt=kt.sibling}b.type===Y?(O=Br(b.props.children,R.mode,et,b.key),O.return=R,R=O):(et=Cl(b.type,b.key,b.props,null,R.mode,et),et.ref=bs(R,O,b),et.return=R,R=et)}return x(R);case gt:t:{for(kt=b.key;O!==null;){if(O.key===kt)if(O.tag===4&&O.stateNode.containerInfo===b.containerInfo&&O.stateNode.implementation===b.implementation){a(R,O.sibling),O=d(O,b.children||[]),O.return=R,R=O;break t}else{a(R,O);break}else n(R,O);O=O.sibling}O=Uc(b,R.mode,et),O.return=R,R=O}return x(R);case zt:return kt=b._init,re(R,O,kt(b._payload),et)}if(ki(b))return ft(R,O,b,et);if(ht(b))return dt(R,O,b,et);rl(R,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,O!==null&&O.tag===6?(a(R,O.sibling),O=d(O,b),O.return=R,R=O):(a(R,O),O=Hc(b,R.mode,et),O.return=R,R=O),x(R)):a(R,O)}return re}var No=fh(!0),hh=fh(!1),ol=$i(null),sl=null,Oo=null,Xu=null;function Qu(){Xu=Oo=sl=null}function Ju(t){var n=ol.current;Kt(ol),t._currentValue=n}function tc(t,n,a){for(;t!==null;){var c=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,c!==null&&(c.childLanes|=n)):c!==null&&(c.childLanes&n)!==n&&(c.childLanes|=n),t===a)break;t=t.return}}function zo(t,n){sl=t,Xu=Oo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&n)!==0&&(be=!0),t.firstContext=null)}function an(t){var n=t._currentValue;if(Xu!==t)if(t={context:t,memoizedValue:n,next:null},Oo===null){if(sl===null)throw Error(r(308));Oo=t,sl.dependencies={lanes:0,firstContext:t}}else Oo=Oo.next=t;return n}var Ar=null;function ec(t){Ar===null?Ar=[t]:Ar.push(t)}function dh(t,n,a,c){var d=n.interleaved;return d===null?(a.next=a,ec(n)):(a.next=d.next,d.next=a),n.interleaved=a,fi(t,c)}function fi(t,n){t.lanes|=n;var a=t.alternate;for(a!==null&&(a.lanes|=n),a=t,t=t.return;t!==null;)t.childLanes|=n,a=t.alternate,a!==null&&(a.childLanes|=n),a=t,t=t.return;return a.tag===3?a.stateNode:null}var Ki=!1;function nc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ph(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function hi(t,n){return{eventTime:t,lane:n,tag:0,payload:null,callback:null,next:null}}function Yi(t,n,a){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(Ft&2)!==0){var d=c.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),c.pending=n,fi(t,a)}return d=c.interleaved,d===null?(n.next=n,ec(c)):(n.next=d.next,d.next=n),c.interleaved=n,fi(t,a)}function al(t,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194240)!==0)){var c=n.lanes;c&=t.pendingLanes,a|=c,n.lanes=a,pn(t,a)}}function mh(t,n){var a=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var d=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var x={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};m===null?d=m=x:m=m.next=x,a=a.next}while(a!==null);m===null?d=m=n:m=m.next=n}else d=m=n;a={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:c.shared,effects:c.effects},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=n:t.next=n,a.lastBaseUpdate=n}function ll(t,n,a,c){var d=t.updateQueue;Ki=!1;var m=d.firstBaseUpdate,x=d.lastBaseUpdate,P=d.shared.pending;if(P!==null){d.shared.pending=null;var A=P,B=A.next;A.next=null,x===null?m=B:x.next=B,x=A;var G=t.alternate;G!==null&&(G=G.updateQueue,P=G.lastBaseUpdate,P!==x&&(P===null?G.firstBaseUpdate=B:P.next=B,G.lastBaseUpdate=A))}if(m!==null){var X=d.baseState;x=0,G=B=A=null,P=m;do{var V=P.lane,st=P.eventTime;if((c&V)===V){G!==null&&(G=G.next={eventTime:st,lane:0,tag:P.tag,payload:P.payload,callback:P.callback,next:null});t:{var ft=t,dt=P;switch(V=n,st=a,dt.tag){case 1:if(ft=dt.payload,typeof ft=="function"){X=ft.call(st,X,V);break t}X=ft;break t;case 3:ft.flags=ft.flags&-65537|128;case 0:if(ft=dt.payload,V=typeof ft=="function"?ft.call(st,X,V):ft,V==null)break t;X=j({},X,V);break t;case 2:Ki=!0}}P.callback!==null&&P.lane!==0&&(t.flags|=64,V=d.effects,V===null?d.effects=[P]:V.push(P))}else st={eventTime:st,lane:V,tag:P.tag,payload:P.payload,callback:P.callback,next:null},G===null?(B=G=st,A=X):G=G.next=st,x|=V;if(P=P.next,P===null){if(P=d.shared.pending,P===null)break;V=P,P=V.next,V.next=null,d.lastBaseUpdate=V,d.shared.pending=null}}while(!0);if(G===null&&(A=X),d.baseState=A,d.firstBaseUpdate=B,d.lastBaseUpdate=G,n=d.shared.interleaved,n!==null){d=n;do x|=d.lane,d=d.next;while(d!==n)}else m===null&&(d.shared.lanes=0);zr|=x,t.lanes=x,t.memoizedState=X}}function _h(t,n,a){if(t=n.effects,n.effects=null,t!==null)for(n=0;n<t.length;n++){var c=t[n],d=c.callback;if(d!==null){if(c.callback=null,c=a,typeof d!="function")throw Error(r(191,d));d.call(c)}}}var Is={},Dn=$i(Is),Bs=$i(Is),Ds=$i(Is);function Nr(t){if(t===Is)throw Error(r(174));return t}function ic(t,n){switch(qt(Ds,n),qt(Bs,t),qt(Dn,Is),t=n.nodeType,t){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Kr(null,"");break;default:t=t===8?n.parentNode:n,n=t.namespaceURI||null,t=t.tagName,n=Kr(n,t)}Kt(Dn),qt(Dn,n)}function Ro(){Kt(Dn),Kt(Bs),Kt(Ds)}function gh(t){Nr(Ds.current);var n=Nr(Dn.current),a=Kr(n,t.type);n!==a&&(qt(Bs,t),qt(Dn,a))}function rc(t){Bs.current===t&&(Kt(Dn),Kt(Bs))}var te=$i(0);function ul(t){for(var n=t;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var oc=[];function sc(){for(var t=0;t<oc.length;t++)oc[t]._workInProgressVersionPrimary=null;oc.length=0}var cl=F.ReactCurrentDispatcher,ac=F.ReactCurrentBatchConfig,Or=0,ee=null,ce=null,he=null,fl=!1,Fs=!1,Zs=0,T_=0;function Se(){throw Error(r(321))}function lc(t,n){if(n===null)return!1;for(var a=0;a<n.length&&a<t.length;a++)if(!$e(t[a],n[a]))return!1;return!0}function uc(t,n,a,c,d,m){if(Or=m,ee=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,cl.current=t===null||t.memoizedState===null?N_:O_,t=a(c,d),Fs){m=0;do{if(Fs=!1,Zs=0,25<=m)throw Error(r(301));m+=1,he=ce=null,n.updateQueue=null,cl.current=z_,t=a(c,d)}while(Fs)}if(cl.current=pl,n=ce!==null&&ce.next!==null,Or=0,he=ce=ee=null,fl=!1,n)throw Error(r(300));return t}function cc(){var t=Zs!==0;return Zs=0,t}function Fn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return he===null?ee.memoizedState=he=t:he=he.next=t,he}function ln(){if(ce===null){var t=ee.alternate;t=t!==null?t.memoizedState:null}else t=ce.next;var n=he===null?ee.memoizedState:he.next;if(n!==null)he=n,ce=t;else{if(t===null)throw Error(r(310));ce=t,t={memoizedState:ce.memoizedState,baseState:ce.baseState,baseQueue:ce.baseQueue,queue:ce.queue,next:null},he===null?ee.memoizedState=he=t:he=he.next=t}return he}function Hs(t,n){return typeof n=="function"?n(t):n}function fc(t){var n=ln(),a=n.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var c=ce,d=c.baseQueue,m=a.pending;if(m!==null){if(d!==null){var x=d.next;d.next=m.next,m.next=x}c.baseQueue=d=m,a.pending=null}if(d!==null){m=d.next,c=c.baseState;var P=x=null,A=null,B=m;do{var G=B.lane;if((Or&G)===G)A!==null&&(A=A.next={lane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),c=B.hasEagerState?B.eagerState:t(c,B.action);else{var X={lane:G,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null};A===null?(P=A=X,x=c):A=A.next=X,ee.lanes|=G,zr|=G}B=B.next}while(B!==null&&B!==m);A===null?x=c:A.next=P,$e(c,n.memoizedState)||(be=!0),n.memoizedState=c,n.baseState=x,n.baseQueue=A,a.lastRenderedState=c}if(t=a.interleaved,t!==null){d=t;do m=d.lane,ee.lanes|=m,zr|=m,d=d.next;while(d!==t)}else d===null&&(a.lanes=0);return[n.memoizedState,a.dispatch]}function hc(t){var n=ln(),a=n.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var c=a.dispatch,d=a.pending,m=n.memoizedState;if(d!==null){a.pending=null;var x=d=d.next;do m=t(m,x.action),x=x.next;while(x!==d);$e(m,n.memoizedState)||(be=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),a.lastRenderedState=m}return[m,c]}function vh(){}function yh(t,n){var a=ee,c=ln(),d=n(),m=!$e(c.memoizedState,d);if(m&&(c.memoizedState=d,be=!0),c=c.queue,dc(kh.bind(null,a,c,t),[t]),c.getSnapshot!==n||m||he!==null&&he.memoizedState.tag&1){if(a.flags|=2048,Us(9,xh.bind(null,a,c,d,n),void 0,null),de===null)throw Error(r(349));(Or&30)!==0||wh(a,n,d)}return d}function wh(t,n,a){t.flags|=16384,t={getSnapshot:n,value:a},n=ee.updateQueue,n===null?(n={lastEffect:null,stores:null},ee.updateQueue=n,n.stores=[t]):(a=n.stores,a===null?n.stores=[t]:a.push(t))}function xh(t,n,a,c){n.value=a,n.getSnapshot=c,Sh(n)&&Eh(t)}function kh(t,n,a){return a(function(){Sh(n)&&Eh(t)})}function Sh(t){var n=t.getSnapshot;t=t.value;try{var a=n();return!$e(t,a)}catch{return!0}}function Eh(t){var n=fi(t,1);n!==null&&Sn(n,t,1,-1)}function Ph(t){var n=Fn();return typeof t=="function"&&(t=t()),n.memoizedState=n.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hs,lastRenderedState:t},n.queue=t,t=t.dispatch=A_.bind(null,ee,t),[n.memoizedState,t]}function Us(t,n,a,c){return t={tag:t,create:n,destroy:a,deps:c,next:null},n=ee.updateQueue,n===null?(n={lastEffect:null,stores:null},ee.updateQueue=n,n.lastEffect=t.next=t):(a=n.lastEffect,a===null?n.lastEffect=t.next=t:(c=a.next,a.next=t,t.next=c,n.lastEffect=t)),t}function Lh(){return ln().memoizedState}function hl(t,n,a,c){var d=Fn();ee.flags|=t,d.memoizedState=Us(1|n,a,void 0,c===void 0?null:c)}function dl(t,n,a,c){var d=ln();c=c===void 0?null:c;var m=void 0;if(ce!==null){var x=ce.memoizedState;if(m=x.destroy,c!==null&&lc(c,x.deps)){d.memoizedState=Us(n,a,m,c);return}}ee.flags|=t,d.memoizedState=Us(1|n,a,m,c)}function Th(t,n){return hl(8390656,8,t,n)}function dc(t,n){return dl(2048,8,t,n)}function Ch(t,n){return dl(4,2,t,n)}function Mh(t,n){return dl(4,4,t,n)}function Ah(t,n){if(typeof n=="function")return t=t(),n(t),function(){n(null)};if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function Nh(t,n,a){return a=a!=null?a.concat([t]):null,dl(4,4,Ah.bind(null,n,t),a)}function pc(){}function Oh(t,n){var a=ln();n=n===void 0?null:n;var c=a.memoizedState;return c!==null&&n!==null&&lc(n,c[1])?c[0]:(a.memoizedState=[t,n],t)}function zh(t,n){var a=ln();n=n===void 0?null:n;var c=a.memoizedState;return c!==null&&n!==null&&lc(n,c[1])?c[0]:(t=t(),a.memoizedState=[t,n],t)}function Rh(t,n,a){return(Or&21)===0?(t.baseState&&(t.baseState=!1,be=!0),t.memoizedState=a):($e(a,n)||(a=Ma(),ee.lanes|=a,zr|=a,t.baseState=!0),n)}function C_(t,n){var a=It;It=a!==0&&4>a?a:4,t(!0);var c=ac.transition;ac.transition={};try{t(!1),n()}finally{It=a,ac.transition=c}}function bh(){return ln().memoizedState}function M_(t,n,a){var c=tr(t);if(a={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null},Ih(t))Bh(n,a);else if(a=dh(t,n,a,c),a!==null){var d=Ae();Sn(a,t,c,d),Dh(a,n,c)}}function A_(t,n,a){var c=tr(t),d={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ih(t))Bh(n,d);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var x=n.lastRenderedState,P=m(x,a);if(d.hasEagerState=!0,d.eagerState=P,$e(P,x)){var A=n.interleaved;A===null?(d.next=d,ec(n)):(d.next=A.next,A.next=d),n.interleaved=d;return}}catch{}finally{}a=dh(t,n,d,c),a!==null&&(d=Ae(),Sn(a,t,c,d),Dh(a,n,c))}}function Ih(t){var n=t.alternate;return t===ee||n!==null&&n===ee}function Bh(t,n){Fs=fl=!0;var a=t.pending;a===null?n.next=n:(n.next=a.next,a.next=n),t.pending=n}function Dh(t,n,a){if((a&4194240)!==0){var c=n.lanes;c&=t.pendingLanes,a|=c,n.lanes=a,pn(t,a)}}var pl={readContext:an,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useInsertionEffect:Se,useLayoutEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useMutableSource:Se,useSyncExternalStore:Se,useId:Se,unstable_isNewReconciler:!1},N_={readContext:an,useCallback:function(t,n){return Fn().memoizedState=[t,n===void 0?null:n],t},useContext:an,useEffect:Th,useImperativeHandle:function(t,n,a){return a=a!=null?a.concat([t]):null,hl(4194308,4,Ah.bind(null,n,t),a)},useLayoutEffect:function(t,n){return hl(4194308,4,t,n)},useInsertionEffect:function(t,n){return hl(4,2,t,n)},useMemo:function(t,n){var a=Fn();return n=n===void 0?null:n,t=t(),a.memoizedState=[t,n],t},useReducer:function(t,n,a){var c=Fn();return n=a!==void 0?a(n):n,c.memoizedState=c.baseState=n,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},c.queue=t,t=t.dispatch=M_.bind(null,ee,t),[c.memoizedState,t]},useRef:function(t){var n=Fn();return t={current:t},n.memoizedState=t},useState:Ph,useDebugValue:pc,useDeferredValue:function(t){return Fn().memoizedState=t},useTransition:function(){var t=Ph(!1),n=t[0];return t=C_.bind(null,t[1]),Fn().memoizedState=t,[n,t]},useMutableSource:function(){},useSyncExternalStore:function(t,n,a){var c=ee,d=Fn();if(Yt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=n(),de===null)throw Error(r(349));(Or&30)!==0||wh(c,n,a)}d.memoizedState=a;var m={value:a,getSnapshot:n};return d.queue=m,Th(kh.bind(null,c,m,t),[t]),c.flags|=2048,Us(9,xh.bind(null,c,m,a,n),void 0,null),a},useId:function(){var t=Fn(),n=de.identifierPrefix;if(Yt){var a=ci,c=ui;a=(c&~(1<<32-Tt(c)-1)).toString(32)+a,n=":"+n+"R"+a,a=Zs++,0<a&&(n+="H"+a.toString(32)),n+=":"}else a=T_++,n=":"+n+"r"+a.toString(32)+":";return t.memoizedState=n},unstable_isNewReconciler:!1},O_={readContext:an,useCallback:Oh,useContext:an,useEffect:dc,useImperativeHandle:Nh,useInsertionEffect:Ch,useLayoutEffect:Mh,useMemo:zh,useReducer:fc,useRef:Lh,useState:function(){return fc(Hs)},useDebugValue:pc,useDeferredValue:function(t){var n=ln();return Rh(n,ce.memoizedState,t)},useTransition:function(){var t=fc(Hs)[0],n=ln().memoizedState;return[t,n]},useMutableSource:vh,useSyncExternalStore:yh,useId:bh,unstable_isNewReconciler:!1},z_={readContext:an,useCallback:Oh,useContext:an,useEffect:dc,useImperativeHandle:Nh,useInsertionEffect:Ch,useLayoutEffect:Mh,useMemo:zh,useReducer:hc,useRef:Lh,useState:function(){return hc(Hs)},useDebugValue:pc,useDeferredValue:function(t){var n=ln();return ce===null?n.memoizedState=t:Rh(n,ce.memoizedState,t)},useTransition:function(){var t=hc(Hs)[0],n=ln().memoizedState;return[t,n]},useMutableSource:vh,useSyncExternalStore:yh,useId:bh,unstable_isNewReconciler:!1};function wn(t,n){if(t&&t.defaultProps){n=j({},n),t=t.defaultProps;for(var a in t)n[a]===void 0&&(n[a]=t[a]);return n}return n}function mc(t,n,a,c){n=t.memoizedState,a=a(c,n),a=a==null?n:j({},n,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var ml={isMounted:function(t){return(t=t._reactInternals)?Mn(t)===t:!1},enqueueSetState:function(t,n,a){t=t._reactInternals;var c=Ae(),d=tr(t),m=hi(c,d);m.payload=n,a!=null&&(m.callback=a),n=Yi(t,m,d),n!==null&&(Sn(n,t,d,c),al(n,t,d))},enqueueReplaceState:function(t,n,a){t=t._reactInternals;var c=Ae(),d=tr(t),m=hi(c,d);m.tag=1,m.payload=n,a!=null&&(m.callback=a),n=Yi(t,m,d),n!==null&&(Sn(n,t,d,c),al(n,t,d))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var a=Ae(),c=tr(t),d=hi(a,c);d.tag=2,n!=null&&(d.callback=n),n=Yi(t,d,c),n!==null&&(Sn(n,t,c,a),al(n,t,c))}};function Fh(t,n,a,c,d,m,x){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(c,m,x):n.prototype&&n.prototype.isPureReactComponent?!Rn(a,c)||!Rn(d,m):!0}function Zh(t,n,a){var c=!1,d=qi,m=n.contextType;return typeof m=="object"&&m!==null?m=an(m):(d=Re(n)?Tr:ke.current,c=n.contextTypes,m=(c=c!=null)?To(t,d):qi),n=new n(a,m),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=ml,t.stateNode=n,n._reactInternals=t,c&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=d,t.__reactInternalMemoizedMaskedChildContext=m),n}function Hh(t,n,a,c){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,c),n.state!==t&&ml.enqueueReplaceState(n,n.state,null)}function _c(t,n,a,c){var d=t.stateNode;d.props=a,d.state=t.memoizedState,d.refs={},nc(t);var m=n.contextType;typeof m=="object"&&m!==null?d.context=an(m):(m=Re(n)?Tr:ke.current,d.context=To(t,m)),d.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(mc(t,n,m,a),d.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(n=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),n!==d.state&&ml.enqueueReplaceState(d,d.state,null),ll(t,a,d,c),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308)}function bo(t,n){try{var a="",c=n;do a+=pt(c),c=c.return;while(c);var d=a}catch(m){d=`
Error generating stack: `+m.message+`
`+m.stack}return{value:t,source:n,stack:d,digest:null}}function gc(t,n,a){return{value:t,source:null,stack:a??null,digest:n??null}}function vc(t,n){try{console.error(n.value)}catch(a){setTimeout(function(){throw a})}}var R_=typeof WeakMap=="function"?WeakMap:Map;function Uh(t,n,a){a=hi(-1,a),a.tag=3,a.payload={element:null};var c=n.value;return a.callback=function(){kl||(kl=!0,zc=c),vc(t,n)},a}function jh(t,n,a){a=hi(-1,a),a.tag=3;var c=t.type.getDerivedStateFromError;if(typeof c=="function"){var d=n.value;a.payload=function(){return c(d)},a.callback=function(){vc(t,n)}}var m=t.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(a.callback=function(){vc(t,n),typeof c!="function"&&(Qi===null?Qi=new Set([this]):Qi.add(this));var x=n.stack;this.componentDidCatch(n.value,{componentStack:x!==null?x:""})}),a}function Wh(t,n,a){var c=t.pingCache;if(c===null){c=t.pingCache=new R_;var d=new Set;c.set(n,d)}else d=c.get(n),d===void 0&&(d=new Set,c.set(n,d));d.has(a)||(d.add(a),t=G_.bind(null,t,n,a),n.then(t,t))}function Vh(t){do{var n;if((n=t.tag===13)&&(n=t.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return t;t=t.return}while(t!==null);return null}function $h(t,n,a,c,d){return(t.mode&1)===0?(t===n?t.flags|=65536:(t.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(n=hi(-1,1),n.tag=2,Yi(a,n,1))),a.lanes|=1),t):(t.flags|=65536,t.lanes=d,t)}var b_=F.ReactCurrentOwner,be=!1;function Me(t,n,a,c){n.child=t===null?hh(n,null,a,c):No(n,t.child,a,c)}function qh(t,n,a,c,d){a=a.render;var m=n.ref;return zo(n,d),c=uc(t,n,a,c,m,d),a=cc(),t!==null&&!be?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~d,di(t,n,d)):(Yt&&a&&$u(n),n.flags|=1,Me(t,n,c,d),n.child)}function Gh(t,n,a,c,d){if(t===null){var m=a.type;return typeof m=="function"&&!Zc(m)&&m.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(n.tag=15,n.type=m,Kh(t,n,m,c,d)):(t=Cl(a.type,null,c,n,n.mode,d),t.ref=n.ref,t.return=n,n.child=t)}if(m=t.child,(t.lanes&d)===0){var x=m.memoizedProps;if(a=a.compare,a=a!==null?a:Rn,a(x,c)&&t.ref===n.ref)return di(t,n,d)}return n.flags|=1,t=nr(m,c),t.ref=n.ref,t.return=n,n.child=t}function Kh(t,n,a,c,d){if(t!==null){var m=t.memoizedProps;if(Rn(m,c)&&t.ref===n.ref)if(be=!1,n.pendingProps=c=m,(t.lanes&d)!==0)(t.flags&131072)!==0&&(be=!0);else return n.lanes=t.lanes,di(t,n,d)}return yc(t,n,a,c,d)}function Yh(t,n,a){var c=n.pendingProps,d=c.children,m=t!==null?t.memoizedState:null;if(c.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},qt(Bo,Ye),Ye|=a;else{if((a&1073741824)===0)return t=m!==null?m.baseLanes|a:a,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:t,cachePool:null,transitions:null},n.updateQueue=null,qt(Bo,Ye),Ye|=t,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=m!==null?m.baseLanes:a,qt(Bo,Ye),Ye|=c}else m!==null?(c=m.baseLanes|a,n.memoizedState=null):c=a,qt(Bo,Ye),Ye|=c;return Me(t,n,d,a),n.child}function Xh(t,n){var a=n.ref;(t===null&&a!==null||t!==null&&t.ref!==a)&&(n.flags|=512,n.flags|=2097152)}function yc(t,n,a,c,d){var m=Re(a)?Tr:ke.current;return m=To(n,m),zo(n,d),a=uc(t,n,a,c,m,d),c=cc(),t!==null&&!be?(n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~d,di(t,n,d)):(Yt&&c&&$u(n),n.flags|=1,Me(t,n,a,d),n.child)}function Qh(t,n,a,c,d){if(Re(a)){var m=!0;Ja(n)}else m=!1;if(zo(n,d),n.stateNode===null)gl(t,n),Zh(n,a,c),_c(n,a,c,d),c=!0;else if(t===null){var x=n.stateNode,P=n.memoizedProps;x.props=P;var A=x.context,B=a.contextType;typeof B=="object"&&B!==null?B=an(B):(B=Re(a)?Tr:ke.current,B=To(n,B));var G=a.getDerivedStateFromProps,X=typeof G=="function"||typeof x.getSnapshotBeforeUpdate=="function";X||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(P!==c||A!==B)&&Hh(n,x,c,B),Ki=!1;var V=n.memoizedState;x.state=V,ll(n,c,x,d),A=n.memoizedState,P!==c||V!==A||ze.current||Ki?(typeof G=="function"&&(mc(n,a,G,c),A=n.memoizedState),(P=Ki||Fh(n,a,P,c,V,A,B))?(X||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(n.flags|=4194308)):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=c,n.memoizedState=A),x.props=c,x.state=A,x.context=B,c=P):(typeof x.componentDidMount=="function"&&(n.flags|=4194308),c=!1)}else{x=n.stateNode,ph(t,n),P=n.memoizedProps,B=n.type===n.elementType?P:wn(n.type,P),x.props=B,X=n.pendingProps,V=x.context,A=a.contextType,typeof A=="object"&&A!==null?A=an(A):(A=Re(a)?Tr:ke.current,A=To(n,A));var st=a.getDerivedStateFromProps;(G=typeof st=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(P!==X||V!==A)&&Hh(n,x,c,A),Ki=!1,V=n.memoizedState,x.state=V,ll(n,c,x,d);var ft=n.memoizedState;P!==X||V!==ft||ze.current||Ki?(typeof st=="function"&&(mc(n,a,st,c),ft=n.memoizedState),(B=Ki||Fh(n,a,B,c,V,ft,A)||!1)?(G||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(c,ft,A),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(c,ft,A)),typeof x.componentDidUpdate=="function"&&(n.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof x.componentDidUpdate!="function"||P===t.memoizedProps&&V===t.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||P===t.memoizedProps&&V===t.memoizedState||(n.flags|=1024),n.memoizedProps=c,n.memoizedState=ft),x.props=c,x.state=ft,x.context=A,c=B):(typeof x.componentDidUpdate!="function"||P===t.memoizedProps&&V===t.memoizedState||(n.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||P===t.memoizedProps&&V===t.memoizedState||(n.flags|=1024),c=!1)}return wc(t,n,a,c,m,d)}function wc(t,n,a,c,d,m){Xh(t,n);var x=(n.flags&128)!==0;if(!c&&!x)return d&&ih(n,a,!1),di(t,n,m);c=n.stateNode,b_.current=n;var P=x&&typeof a.getDerivedStateFromError!="function"?null:c.render();return n.flags|=1,t!==null&&x?(n.child=No(n,t.child,null,m),n.child=No(n,null,P,m)):Me(t,n,P,m),n.memoizedState=c.state,d&&ih(n,a,!0),n.child}function Jh(t){var n=t.stateNode;n.pendingContext?eh(t,n.pendingContext,n.pendingContext!==n.context):n.context&&eh(t,n.context,!1),ic(t,n.containerInfo)}function td(t,n,a,c,d){return Ao(),Yu(d),n.flags|=256,Me(t,n,a,c),n.child}var xc={dehydrated:null,treeContext:null,retryLane:0};function kc(t){return{baseLanes:t,cachePool:null,transitions:null}}function ed(t,n,a){var c=n.pendingProps,d=te.current,m=!1,x=(n.flags&128)!==0,P;if((P=x)||(P=t!==null&&t.memoizedState===null?!1:(d&2)!==0),P?(m=!0,n.flags&=-129):(t===null||t.memoizedState!==null)&&(d|=1),qt(te,d&1),t===null)return Ku(n),t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((n.mode&1)===0?n.lanes=1:t.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(x=c.children,t=c.fallback,m?(c=n.mode,m=n.child,x={mode:"hidden",children:x},(c&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=x):m=Ml(x,c,0,null),t=Br(t,c,a,null),m.return=n,t.return=n,m.sibling=t,n.child=m,n.child.memoizedState=kc(a),n.memoizedState=xc,t):Sc(n,x));if(d=t.memoizedState,d!==null&&(P=d.dehydrated,P!==null))return I_(t,n,x,c,P,d,a);if(m){m=c.fallback,x=n.mode,d=t.child,P=d.sibling;var A={mode:"hidden",children:c.children};return(x&1)===0&&n.child!==d?(c=n.child,c.childLanes=0,c.pendingProps=A,n.deletions=null):(c=nr(d,A),c.subtreeFlags=d.subtreeFlags&14680064),P!==null?m=nr(P,m):(m=Br(m,x,a,null),m.flags|=2),m.return=n,c.return=n,c.sibling=m,n.child=c,c=m,m=n.child,x=t.child.memoizedState,x=x===null?kc(a):{baseLanes:x.baseLanes|a,cachePool:null,transitions:x.transitions},m.memoizedState=x,m.childLanes=t.childLanes&~a,n.memoizedState=xc,c}return m=t.child,t=m.sibling,c=nr(m,{mode:"visible",children:c.children}),(n.mode&1)===0&&(c.lanes=a),c.return=n,c.sibling=null,t!==null&&(a=n.deletions,a===null?(n.deletions=[t],n.flags|=16):a.push(t)),n.child=c,n.memoizedState=null,c}function Sc(t,n){return n=Ml({mode:"visible",children:n},t.mode,0,null),n.return=t,t.child=n}function _l(t,n,a,c){return c!==null&&Yu(c),No(n,t.child,null,a),t=Sc(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function I_(t,n,a,c,d,m,x){if(a)return n.flags&256?(n.flags&=-257,c=gc(Error(r(422))),_l(t,n,x,c)):n.memoizedState!==null?(n.child=t.child,n.flags|=128,null):(m=c.fallback,d=n.mode,c=Ml({mode:"visible",children:c.children},d,0,null),m=Br(m,d,x,null),m.flags|=2,c.return=n,m.return=n,c.sibling=m,n.child=c,(n.mode&1)!==0&&No(n,t.child,null,x),n.child.memoizedState=kc(x),n.memoizedState=xc,m);if((n.mode&1)===0)return _l(t,n,x,null);if(d.data==="$!"){if(c=d.nextSibling&&d.nextSibling.dataset,c)var P=c.dgst;return c=P,m=Error(r(419)),c=gc(m,c,void 0),_l(t,n,x,c)}if(P=(x&t.childLanes)!==0,be||P){if(c=de,c!==null){switch(x&-x){case 4:d=2;break;case 16:d=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(c.suspendedLanes|x))!==0?0:d,d!==0&&d!==m.retryLane&&(m.retryLane=d,fi(t,d),Sn(c,t,d,-1))}return Fc(),c=gc(Error(r(421))),_l(t,n,x,c)}return d.data==="$?"?(n.flags|=128,n.child=t.child,n=K_.bind(null,t),d._reactRetry=n,null):(t=m.treeContext,Ke=Bn(d.nextSibling),Ge=n,Yt=!0,yn=null,t!==null&&(on[sn++]=ui,on[sn++]=ci,on[sn++]=Cr,ui=t.id,ci=t.overflow,Cr=n),n=Sc(n,c.children),n.flags|=4096,n)}function nd(t,n,a){t.lanes|=n;var c=t.alternate;c!==null&&(c.lanes|=n),tc(t.return,n,a)}function Ec(t,n,a,c,d){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:d}:(m.isBackwards=n,m.rendering=null,m.renderingStartTime=0,m.last=c,m.tail=a,m.tailMode=d)}function id(t,n,a){var c=n.pendingProps,d=c.revealOrder,m=c.tail;if(Me(t,n,c.children,a),c=te.current,(c&2)!==0)c=c&1|2,n.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&nd(t,a,n);else if(t.tag===19)nd(t,a,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break t;for(;t.sibling===null;){if(t.return===null||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}c&=1}if(qt(te,c),(n.mode&1)===0)n.memoizedState=null;else switch(d){case"forwards":for(a=n.child,d=null;a!==null;)t=a.alternate,t!==null&&ul(t)===null&&(d=a),a=a.sibling;a=d,a===null?(d=n.child,n.child=null):(d=a.sibling,a.sibling=null),Ec(n,!1,d,a,m);break;case"backwards":for(a=null,d=n.child,n.child=null;d!==null;){if(t=d.alternate,t!==null&&ul(t)===null){n.child=d;break}t=d.sibling,d.sibling=a,a=d,d=t}Ec(n,!0,a,null,m);break;case"together":Ec(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function gl(t,n){(n.mode&1)===0&&t!==null&&(t.alternate=null,n.alternate=null,n.flags|=2)}function di(t,n,a){if(t!==null&&(n.dependencies=t.dependencies),zr|=n.lanes,(a&n.childLanes)===0)return null;if(t!==null&&n.child!==t.child)throw Error(r(153));if(n.child!==null){for(t=n.child,a=nr(t,t.pendingProps),n.child=a,a.return=n;t.sibling!==null;)t=t.sibling,a=a.sibling=nr(t,t.pendingProps),a.return=n;a.sibling=null}return n.child}function B_(t,n,a){switch(n.tag){case 3:Jh(n),Ao();break;case 5:gh(n);break;case 1:Re(n.type)&&Ja(n);break;case 4:ic(n,n.stateNode.containerInfo);break;case 10:var c=n.type._context,d=n.memoizedProps.value;qt(ol,c._currentValue),c._currentValue=d;break;case 13:if(c=n.memoizedState,c!==null)return c.dehydrated!==null?(qt(te,te.current&1),n.flags|=128,null):(a&n.child.childLanes)!==0?ed(t,n,a):(qt(te,te.current&1),t=di(t,n,a),t!==null?t.sibling:null);qt(te,te.current&1);break;case 19:if(c=(a&n.childLanes)!==0,(t.flags&128)!==0){if(c)return id(t,n,a);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),qt(te,te.current),c)break;return null;case 22:case 23:return n.lanes=0,Yh(t,n,a)}return di(t,n,a)}var rd,Pc,od,sd;rd=function(t,n){for(var a=n.child;a!==null;){if(a.tag===5||a.tag===6)t.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Pc=function(){},od=function(t,n,a,c){var d=t.memoizedProps;if(d!==c){t=n.stateNode,Nr(Dn.current);var m=null;switch(a){case"input":d=Ko(t,d),c=Ko(t,c),m=[];break;case"select":d=j({},d,{value:void 0}),c=j({},c,{value:void 0}),m=[];break;case"textarea":d=qr(t,d),c=qr(t,c),m=[];break;default:typeof d.onClick!="function"&&typeof c.onClick=="function"&&(t.onclick=W)}es(a,c);var x;a=null;for(B in d)if(!c.hasOwnProperty(B)&&d.hasOwnProperty(B)&&d[B]!=null)if(B==="style"){var P=d[B];for(x in P)P.hasOwnProperty(x)&&(a||(a={}),a[x]="")}else B!=="dangerouslySetInnerHTML"&&B!=="children"&&B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&B!=="autoFocus"&&(f.hasOwnProperty(B)?m||(m=[]):(m=m||[]).push(B,null));for(B in c){var A=c[B];if(P=d!=null?d[B]:void 0,c.hasOwnProperty(B)&&A!==P&&(A!=null||P!=null))if(B==="style")if(P){for(x in P)!P.hasOwnProperty(x)||A&&A.hasOwnProperty(x)||(a||(a={}),a[x]="");for(x in A)A.hasOwnProperty(x)&&P[x]!==A[x]&&(a||(a={}),a[x]=A[x])}else a||(m||(m=[]),m.push(B,a)),a=A;else B==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,P=P?P.__html:void 0,A!=null&&P!==A&&(m=m||[]).push(B,A)):B==="children"?typeof A!="string"&&typeof A!="number"||(m=m||[]).push(B,""+A):B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&(f.hasOwnProperty(B)?(A!=null&&B==="onScroll"&&Wt("scroll",t),m||P===A||(m=[])):(m=m||[]).push(B,A))}a&&(m=m||[]).push("style",a);var B=m;(n.updateQueue=B)&&(n.flags|=4)}},sd=function(t,n,a,c){a!==c&&(n.flags|=4)};function js(t,n){if(!Yt)switch(t.tailMode){case"hidden":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function Ee(t){var n=t.alternate!==null&&t.alternate.child===t.child,a=0,c=0;if(n)for(var d=t.child;d!==null;)a|=d.lanes|d.childLanes,c|=d.subtreeFlags&14680064,c|=d.flags&14680064,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)a|=d.lanes|d.childLanes,c|=d.subtreeFlags,c|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=c,t.childLanes=a,n}function D_(t,n,a){var c=n.pendingProps;switch(qu(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ee(n),null;case 1:return Re(n.type)&&Qa(),Ee(n),null;case 3:return c=n.stateNode,Ro(),Kt(ze),Kt(ke),sc(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(t===null||t.child===null)&&(il(n)?n.flags|=4:t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,yn!==null&&(Ic(yn),yn=null))),Pc(t,n),Ee(n),null;case 5:rc(n);var d=Nr(Ds.current);if(a=n.type,t!==null&&n.stateNode!=null)od(t,n,a,c,d),t.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!c){if(n.stateNode===null)throw Error(r(166));return Ee(n),null}if(t=Nr(Dn.current),il(n)){c=n.stateNode,a=n.type;var m=n.memoizedProps;switch(c[rn]=n,c[Wi]=m,t=(n.mode&1)!==0,a){case"dialog":Wt("cancel",c),Wt("close",c);break;case"iframe":case"object":case"embed":Wt("load",c);break;case"video":case"audio":for(d=0;d<Hi.length;d++)Wt(Hi[d],c);break;case"source":Wt("error",c);break;case"img":case"image":case"link":Wt("error",c),Wt("load",c);break;case"details":Wt("toggle",c);break;case"input":Yo(c,m),Wt("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!m.multiple},Wt("invalid",c);break;case"textarea":Jo(c,m),Wt("invalid",c)}es(a,m),d=null;for(var x in m)if(m.hasOwnProperty(x)){var P=m[x];x==="children"?typeof P=="string"?c.textContent!==P&&(m.suppressHydrationWarning!==!0&&I(c.textContent,P,t),d=["children",P]):typeof P=="number"&&c.textContent!==""+P&&(m.suppressHydrationWarning!==!0&&I(c.textContent,P,t),d=["children",""+P]):f.hasOwnProperty(x)&&P!=null&&x==="onScroll"&&Wt("scroll",c)}switch(a){case"input":yi(c),lr(c,m,!0);break;case"textarea":yi(c),ma(c);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(c.onclick=W)}c=d,n.updateQueue=c,c!==null&&(n.flags|=4)}else{x=d.nodeType===9?d:d.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Gr(a)),t==="http://www.w3.org/1999/xhtml"?a==="script"?(t=x.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof c.is=="string"?t=x.createElement(a,{is:c.is}):(t=x.createElement(a),a==="select"&&(x=t,c.multiple?x.multiple=!0:c.size&&(x.size=c.size))):t=x.createElementNS(t,a),t[rn]=n,t[Wi]=c,rd(t,n,!1,!1),n.stateNode=t;t:{switch(x=$n(a,c),a){case"dialog":Wt("cancel",t),Wt("close",t),d=c;break;case"iframe":case"object":case"embed":Wt("load",t),d=c;break;case"video":case"audio":for(d=0;d<Hi.length;d++)Wt(Hi[d],t);d=c;break;case"source":Wt("error",t),d=c;break;case"img":case"image":case"link":Wt("error",t),Wt("load",t),d=c;break;case"details":Wt("toggle",t),d=c;break;case"input":Yo(t,c),d=Ko(t,c),Wt("invalid",t);break;case"option":d=c;break;case"select":t._wrapperState={wasMultiple:!!c.multiple},d=j({},c,{value:void 0}),Wt("invalid",t);break;case"textarea":Jo(t,c),d=qr(t,c),Wt("invalid",t);break;default:d=c}es(a,d),P=d;for(m in P)if(P.hasOwnProperty(m)){var A=P[m];m==="style"?Yr(t,A):m==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&_a(t,A)):m==="children"?typeof A=="string"?(a!=="textarea"||A!=="")&&Si(t,A):typeof A=="number"&&Si(t,""+A):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(f.hasOwnProperty(m)?A!=null&&m==="onScroll"&&Wt("scroll",t):A!=null&&tt(t,m,A,x))}switch(a){case"input":yi(t),lr(t,c,!1);break;case"textarea":yi(t),ma(t);break;case"option":c.value!=null&&t.setAttribute("value",""+At(c.value));break;case"select":t.multiple=!!c.multiple,m=c.value,m!=null?Cn(t,!!c.multiple,m,!1):c.defaultValue!=null&&Cn(t,!!c.multiple,c.defaultValue,!0);break;default:typeof d.onClick=="function"&&(t.onclick=W)}switch(a){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break t;case"img":c=!0;break t;default:c=!1}}c&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Ee(n),null;case 6:if(t&&n.stateNode!=null)sd(t,n,t.memoizedProps,c);else{if(typeof c!="string"&&n.stateNode===null)throw Error(r(166));if(a=Nr(Ds.current),Nr(Dn.current),il(n)){if(c=n.stateNode,a=n.memoizedProps,c[rn]=n,(m=c.nodeValue!==a)&&(t=Ge,t!==null))switch(t.tag){case 3:I(c.nodeValue,a,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&I(c.nodeValue,a,(t.mode&1)!==0)}m&&(n.flags|=4)}else c=(a.nodeType===9?a:a.ownerDocument).createTextNode(c),c[rn]=n,n.stateNode=c}return Ee(n),null;case 13:if(Kt(te),c=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Yt&&Ke!==null&&(n.mode&1)!==0&&(n.flags&128)===0)uh(),Ao(),n.flags|=98560,m=!1;else if(m=il(n),c!==null&&c.dehydrated!==null){if(t===null){if(!m)throw Error(r(318));if(m=n.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[rn]=n}else Ao(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ee(n),m=!1}else yn!==null&&(Ic(yn),yn=null),m=!0;if(!m)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=a,n):(c=c!==null,c!==(t!==null&&t.memoizedState!==null)&&c&&(n.child.flags|=8192,(n.mode&1)!==0&&(t===null||(te.current&1)!==0?fe===0&&(fe=3):Fc())),n.updateQueue!==null&&(n.flags|=4),Ee(n),null);case 4:return Ro(),Pc(t,n),t===null&&Ui(n.stateNode.containerInfo),Ee(n),null;case 10:return Ju(n.type._context),Ee(n),null;case 17:return Re(n.type)&&Qa(),Ee(n),null;case 19:if(Kt(te),m=n.memoizedState,m===null)return Ee(n),null;if(c=(n.flags&128)!==0,x=m.rendering,x===null)if(c)js(m,!1);else{if(fe!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(x=ul(t),x!==null){for(n.flags|=128,js(m,!1),c=x.updateQueue,c!==null&&(n.updateQueue=c,n.flags|=4),n.subtreeFlags=0,c=a,a=n.child;a!==null;)m=a,t=c,m.flags&=14680066,x=m.alternate,x===null?(m.childLanes=0,m.lanes=t,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=x.childLanes,m.lanes=x.lanes,m.child=x.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=x.memoizedProps,m.memoizedState=x.memoizedState,m.updateQueue=x.updateQueue,m.type=x.type,t=x.dependencies,m.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),a=a.sibling;return qt(te,te.current&1|2),n.child}t=t.sibling}m.tail!==null&&Qt()>Do&&(n.flags|=128,c=!0,js(m,!1),n.lanes=4194304)}else{if(!c)if(t=ul(x),t!==null){if(n.flags|=128,c=!0,a=t.updateQueue,a!==null&&(n.updateQueue=a,n.flags|=4),js(m,!0),m.tail===null&&m.tailMode==="hidden"&&!x.alternate&&!Yt)return Ee(n),null}else 2*Qt()-m.renderingStartTime>Do&&a!==1073741824&&(n.flags|=128,c=!0,js(m,!1),n.lanes=4194304);m.isBackwards?(x.sibling=n.child,n.child=x):(a=m.last,a!==null?a.sibling=x:n.child=x,m.last=x)}return m.tail!==null?(n=m.tail,m.rendering=n,m.tail=n.sibling,m.renderingStartTime=Qt(),n.sibling=null,a=te.current,qt(te,c?a&1|2:a&1),n):(Ee(n),null);case 22:case 23:return Dc(),c=n.memoizedState!==null,t!==null&&t.memoizedState!==null!==c&&(n.flags|=8192),c&&(n.mode&1)!==0?(Ye&1073741824)!==0&&(Ee(n),n.subtreeFlags&6&&(n.flags|=8192)):Ee(n),null;case 24:return null;case 25:return null}throw Error(r(156,n.tag))}function F_(t,n){switch(qu(n),n.tag){case 1:return Re(n.type)&&Qa(),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Ro(),Kt(ze),Kt(ke),sc(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 5:return rc(n),null;case 13:if(Kt(te),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(r(340));Ao()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return Kt(te),null;case 4:return Ro(),null;case 10:return Ju(n.type._context),null;case 22:case 23:return Dc(),null;case 24:return null;default:return null}}var vl=!1,Pe=!1,Z_=typeof WeakSet=="function"?WeakSet:Set,lt=null;function Io(t,n){var a=t.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(c){ie(t,n,c)}else a.current=null}function Lc(t,n,a){try{a()}catch(c){ie(t,n,c)}}var ad=!1;function H_(t,n){if(nt=yr,t=Ls(),Ts(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var d=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break t}var x=0,P=-1,A=-1,B=0,G=0,X=t,V=null;e:for(;;){for(var st;X!==a||d!==0&&X.nodeType!==3||(P=x+d),X!==m||c!==0&&X.nodeType!==3||(A=x+c),X.nodeType===3&&(x+=X.nodeValue.length),(st=X.firstChild)!==null;)V=X,X=st;for(;;){if(X===t)break e;if(V===a&&++B===d&&(P=x),V===m&&++G===c&&(A=x),(st=X.nextSibling)!==null)break;X=V,V=X.parentNode}X=st}a=P===-1||A===-1?null:{start:P,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(xt={focusedElem:t,selectionRange:a},yr=!1,lt=n;lt!==null;)if(n=lt,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,lt=t;else for(;lt!==null;){n=lt;try{var ft=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(ft!==null){var dt=ft.memoizedProps,re=ft.memoizedState,R=n.stateNode,O=R.getSnapshotBeforeUpdate(n.elementType===n.type?dt:wn(n.type,dt),re);R.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var b=n.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(et){ie(n,n.return,et)}if(t=n.sibling,t!==null){t.return=n.return,lt=t;break}lt=n.return}return ft=ad,ad=!1,ft}function Ws(t,n,a){var c=n.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var d=c=c.next;do{if((d.tag&t)===t){var m=d.destroy;d.destroy=void 0,m!==void 0&&Lc(n,a,m)}d=d.next}while(d!==c)}}function yl(t,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&t)===t){var c=a.create;a.destroy=c()}a=a.next}while(a!==n)}}function Tc(t){var n=t.ref;if(n!==null){var a=t.stateNode;switch(t.tag){case 5:t=a;break;default:t=a}typeof n=="function"?n(t):n.current=t}}function ld(t){var n=t.alternate;n!==null&&(t.alternate=null,ld(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&(delete n[rn],delete n[Wi],delete n[Vi],delete n[Uu],delete n[ju])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function ud(t){return t.tag===5||t.tag===3||t.tag===4}function cd(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||ud(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Cc(t,n,a){var c=t.tag;if(c===5||c===6)t=t.stateNode,n?a.nodeType===8?a.parentNode.insertBefore(t,n):a.insertBefore(t,n):(a.nodeType===8?(n=a.parentNode,n.insertBefore(t,a)):(n=a,n.appendChild(t)),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=W));else if(c!==4&&(t=t.child,t!==null))for(Cc(t,n,a),t=t.sibling;t!==null;)Cc(t,n,a),t=t.sibling}function Mc(t,n,a){var c=t.tag;if(c===5||c===6)t=t.stateNode,n?a.insertBefore(t,n):a.appendChild(t);else if(c!==4&&(t=t.child,t!==null))for(Mc(t,n,a),t=t.sibling;t!==null;)Mc(t,n,a),t=t.sibling}var _e=null,xn=!1;function Xi(t,n,a){for(a=a.child;a!==null;)fd(t,n,a),a=a.sibling}function fd(t,n,a){if(Ze&&typeof Ze.onCommitFiberUnmount=="function")try{Ze.onCommitFiberUnmount(dr,a)}catch{}switch(a.tag){case 5:Pe||Io(a,n);case 6:var c=_e,d=xn;_e=null,Xi(t,n,a),_e=c,xn=d,_e!==null&&(xn?(t=_e,a=a.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)):_e.removeChild(a.stateNode));break;case 18:_e!==null&&(xn?(t=_e,a=a.stateNode,t.nodeType===8?Rs(t.parentNode,a):t.nodeType===1&&Rs(t,a),je(t)):Rs(_e,a.stateNode));break;case 4:c=_e,d=xn,_e=a.stateNode.containerInfo,xn=!0,Xi(t,n,a),_e=c,xn=d;break;case 0:case 11:case 14:case 15:if(!Pe&&(c=a.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){d=c=c.next;do{var m=d,x=m.destroy;m=m.tag,x!==void 0&&((m&2)!==0||(m&4)!==0)&&Lc(a,n,x),d=d.next}while(d!==c)}Xi(t,n,a);break;case 1:if(!Pe&&(Io(a,n),c=a.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=a.memoizedProps,c.state=a.memoizedState,c.componentWillUnmount()}catch(P){ie(a,n,P)}Xi(t,n,a);break;case 21:Xi(t,n,a);break;case 22:a.mode&1?(Pe=(c=Pe)||a.memoizedState!==null,Xi(t,n,a),Pe=c):Xi(t,n,a);break;default:Xi(t,n,a)}}function hd(t){var n=t.updateQueue;if(n!==null){t.updateQueue=null;var a=t.stateNode;a===null&&(a=t.stateNode=new Z_),n.forEach(function(c){var d=Y_.bind(null,t,c);a.has(c)||(a.add(c),c.then(d,d))})}}function kn(t,n){var a=n.deletions;if(a!==null)for(var c=0;c<a.length;c++){var d=a[c];try{var m=t,x=n,P=x;t:for(;P!==null;){switch(P.tag){case 5:_e=P.stateNode,xn=!1;break t;case 3:_e=P.stateNode.containerInfo,xn=!0;break t;case 4:_e=P.stateNode.containerInfo,xn=!0;break t}P=P.return}if(_e===null)throw Error(r(160));fd(m,x,d),_e=null,xn=!1;var A=d.alternate;A!==null&&(A.return=null),d.return=null}catch(B){ie(d,n,B)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)dd(n,t),n=n.sibling}function dd(t,n){var a=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(kn(n,t),Zn(t),c&4){try{Ws(3,t,t.return),yl(3,t)}catch(dt){ie(t,t.return,dt)}try{Ws(5,t,t.return)}catch(dt){ie(t,t.return,dt)}}break;case 1:kn(n,t),Zn(t),c&512&&a!==null&&Io(a,a.return);break;case 5:if(kn(n,t),Zn(t),c&512&&a!==null&&Io(a,a.return),t.flags&32){var d=t.stateNode;try{Si(d,"")}catch(dt){ie(t,t.return,dt)}}if(c&4&&(d=t.stateNode,d!=null)){var m=t.memoizedProps,x=a!==null?a.memoizedProps:m,P=t.type,A=t.updateQueue;if(t.updateQueue=null,A!==null)try{P==="input"&&m.type==="radio"&&m.name!=null&&Xo(d,m),$n(P,x);var B=$n(P,m);for(x=0;x<A.length;x+=2){var G=A[x],X=A[x+1];G==="style"?Yr(d,X):G==="dangerouslySetInnerHTML"?_a(d,X):G==="children"?Si(d,X):tt(d,G,X,B)}switch(P){case"input":ar(d,m);break;case"textarea":pa(d,m);break;case"select":var V=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!m.multiple;var st=m.value;st!=null?Cn(d,!!m.multiple,st,!1):V!==!!m.multiple&&(m.defaultValue!=null?Cn(d,!!m.multiple,m.defaultValue,!0):Cn(d,!!m.multiple,m.multiple?[]:"",!1))}d[Wi]=m}catch(dt){ie(t,t.return,dt)}}break;case 6:if(kn(n,t),Zn(t),c&4){if(t.stateNode===null)throw Error(r(162));d=t.stateNode,m=t.memoizedProps;try{d.nodeValue=m}catch(dt){ie(t,t.return,dt)}}break;case 3:if(kn(n,t),Zn(t),c&4&&a!==null&&a.memoizedState.isDehydrated)try{je(n.containerInfo)}catch(dt){ie(t,t.return,dt)}break;case 4:kn(n,t),Zn(t);break;case 13:kn(n,t),Zn(t),d=t.child,d.flags&8192&&(m=d.memoizedState!==null,d.stateNode.isHidden=m,!m||d.alternate!==null&&d.alternate.memoizedState!==null||(Oc=Qt())),c&4&&hd(t);break;case 22:if(G=a!==null&&a.memoizedState!==null,t.mode&1?(Pe=(B=Pe)||G,kn(n,t),Pe=B):kn(n,t),Zn(t),c&8192){if(B=t.memoizedState!==null,(t.stateNode.isHidden=B)&&!G&&(t.mode&1)!==0)for(lt=t,G=t.child;G!==null;){for(X=lt=G;lt!==null;){switch(V=lt,st=V.child,V.tag){case 0:case 11:case 14:case 15:Ws(4,V,V.return);break;case 1:Io(V,V.return);var ft=V.stateNode;if(typeof ft.componentWillUnmount=="function"){c=V,a=V.return;try{n=c,ft.props=n.memoizedProps,ft.state=n.memoizedState,ft.componentWillUnmount()}catch(dt){ie(c,a,dt)}}break;case 5:Io(V,V.return);break;case 22:if(V.memoizedState!==null){_d(X);continue}}st!==null?(st.return=V,lt=st):_d(X)}G=G.sibling}t:for(G=null,X=t;;){if(X.tag===5){if(G===null){G=X;try{d=X.stateNode,B?(m=d.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(P=X.stateNode,A=X.memoizedProps.style,x=A!=null&&A.hasOwnProperty("display")?A.display:null,P.style.display=ts("display",x))}catch(dt){ie(t,t.return,dt)}}}else if(X.tag===6){if(G===null)try{X.stateNode.nodeValue=B?"":X.memoizedProps}catch(dt){ie(t,t.return,dt)}}else if((X.tag!==22&&X.tag!==23||X.memoizedState===null||X===t)&&X.child!==null){X.child.return=X,X=X.child;continue}if(X===t)break t;for(;X.sibling===null;){if(X.return===null||X.return===t)break t;G===X&&(G=null),X=X.return}G===X&&(G=null),X.sibling.return=X.return,X=X.sibling}}break;case 19:kn(n,t),Zn(t),c&4&&hd(t);break;case 21:break;default:kn(n,t),Zn(t)}}function Zn(t){var n=t.flags;if(n&2){try{t:{for(var a=t.return;a!==null;){if(ud(a)){var c=a;break t}a=a.return}throw Error(r(160))}switch(c.tag){case 5:var d=c.stateNode;c.flags&32&&(Si(d,""),c.flags&=-33);var m=cd(t);Mc(t,m,d);break;case 3:case 4:var x=c.stateNode.containerInfo,P=cd(t);Cc(t,P,x);break;default:throw Error(r(161))}}catch(A){ie(t,t.return,A)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function U_(t,n,a){lt=t,pd(t)}function pd(t,n,a){for(var c=(t.mode&1)!==0;lt!==null;){var d=lt,m=d.child;if(d.tag===22&&c){var x=d.memoizedState!==null||vl;if(!x){var P=d.alternate,A=P!==null&&P.memoizedState!==null||Pe;P=vl;var B=Pe;if(vl=x,(Pe=A)&&!B)for(lt=d;lt!==null;)x=lt,A=x.child,x.tag===22&&x.memoizedState!==null?gd(d):A!==null?(A.return=x,lt=A):gd(d);for(;m!==null;)lt=m,pd(m),m=m.sibling;lt=d,vl=P,Pe=B}md(t)}else(d.subtreeFlags&8772)!==0&&m!==null?(m.return=d,lt=m):md(t)}}function md(t){for(;lt!==null;){var n=lt;if((n.flags&8772)!==0){var a=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:Pe||yl(5,n);break;case 1:var c=n.stateNode;if(n.flags&4&&!Pe)if(a===null)c.componentDidMount();else{var d=n.elementType===n.type?a.memoizedProps:wn(n.type,a.memoizedProps);c.componentDidUpdate(d,a.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var m=n.updateQueue;m!==null&&_h(n,m,c);break;case 3:var x=n.updateQueue;if(x!==null){if(a=null,n.child!==null)switch(n.child.tag){case 5:a=n.child.stateNode;break;case 1:a=n.child.stateNode}_h(n,x,a)}break;case 5:var P=n.stateNode;if(a===null&&n.flags&4){a=P;var A=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&a.focus();break;case"img":A.src&&(a.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var B=n.alternate;if(B!==null){var G=B.memoizedState;if(G!==null){var X=G.dehydrated;X!==null&&je(X)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Pe||n.flags&512&&Tc(n)}catch(V){ie(n,n.return,V)}}if(n===t){lt=null;break}if(a=n.sibling,a!==null){a.return=n.return,lt=a;break}lt=n.return}}function _d(t){for(;lt!==null;){var n=lt;if(n===t){lt=null;break}var a=n.sibling;if(a!==null){a.return=n.return,lt=a;break}lt=n.return}}function gd(t){for(;lt!==null;){var n=lt;try{switch(n.tag){case 0:case 11:case 15:var a=n.return;try{yl(4,n)}catch(A){ie(n,a,A)}break;case 1:var c=n.stateNode;if(typeof c.componentDidMount=="function"){var d=n.return;try{c.componentDidMount()}catch(A){ie(n,d,A)}}var m=n.return;try{Tc(n)}catch(A){ie(n,m,A)}break;case 5:var x=n.return;try{Tc(n)}catch(A){ie(n,x,A)}}}catch(A){ie(n,n.return,A)}if(n===t){lt=null;break}var P=n.sibling;if(P!==null){P.return=n.return,lt=P;break}lt=n.return}}var j_=Math.ceil,wl=F.ReactCurrentDispatcher,Ac=F.ReactCurrentOwner,un=F.ReactCurrentBatchConfig,Ft=0,de=null,se=null,ge=0,Ye=0,Bo=$i(0),fe=0,Vs=null,zr=0,xl=0,Nc=0,$s=null,Ie=null,Oc=0,Do=1/0,pi=null,kl=!1,zc=null,Qi=null,Sl=!1,Ji=null,El=0,qs=0,Rc=null,Pl=-1,Ll=0;function Ae(){return(Ft&6)!==0?Qt():Pl!==-1?Pl:Pl=Qt()}function tr(t){return(t.mode&1)===0?1:(Ft&2)!==0&&ge!==0?ge&-ge:L_.transition!==null?(Ll===0&&(Ll=Ma()),Ll):(t=It,t!==0||(t=window.event,t=t===void 0?16:Rt(t.type)),t)}function Sn(t,n,a,c){if(50<qs)throw qs=0,Rc=null,Error(r(185));He(t,a,c),((Ft&2)===0||t!==de)&&(t===de&&((Ft&2)===0&&(xl|=a),fe===4&&er(t,ge)),Be(t,c),a===1&&Ft===0&&(n.mode&1)===0&&(Do=Qt()+500,tl&&Gi()))}function Be(t,n){var a=t.callbackNode;io(t,n);var c=$t(t,t===de?ge:0);if(c===0)a!==null&&ls(a),t.callbackNode=null,t.callbackPriority=0;else if(n=c&-c,t.callbackPriority!==n){if(a!=null&&ls(a),n===1)t.tag===0?P_(yd.bind(null,t)):rh(yd.bind(null,t)),xe(function(){(Ft&6)===0&&Gi()}),a=null;else{switch(Mi(c)){case 1:a=us;break;case 4:a=Ca;break;case 16:a=eo;break;case 536870912:a=Pi;break;default:a=eo}a=Td(a,vd.bind(null,t))}t.callbackPriority=n,t.callbackNode=a}}function vd(t,n){if(Pl=-1,Ll=0,(Ft&6)!==0)throw Error(r(327));var a=t.callbackNode;if(Fo()&&t.callbackNode!==a)return null;var c=$t(t,t===de?ge:0);if(c===0)return null;if((c&30)!==0||(c&t.expiredLanes)!==0||n)n=Tl(t,c);else{n=c;var d=Ft;Ft|=2;var m=xd();(de!==t||ge!==n)&&(pi=null,Do=Qt()+500,br(t,n));do try{$_();break}catch(P){wd(t,P)}while(!0);Qu(),wl.current=m,Ft=d,se!==null?n=0:(de=null,ge=0,n=fe)}if(n!==0){if(n===2&&(d=ye(t),d!==0&&(c=d,n=bc(t,d))),n===1)throw a=Vs,br(t,0),er(t,c),Be(t,Qt()),a;if(n===6)er(t,c);else{if(d=t.current.alternate,(c&30)===0&&!W_(d)&&(n=Tl(t,c),n===2&&(m=ye(t),m!==0&&(c=m,n=bc(t,m))),n===1))throw a=Vs,br(t,0),er(t,c),Be(t,Qt()),a;switch(t.finishedWork=d,t.finishedLanes=c,n){case 0:case 1:throw Error(r(345));case 2:Ir(t,Ie,pi);break;case 3:if(er(t,c),(c&130023424)===c&&(n=Oc+500-Qt(),10<n)){if($t(t,0)!==0)break;if(d=t.suspendedLanes,(d&c)!==c){Ae(),t.pingedLanes|=t.suspendedLanes&d;break}t.timeoutHandle=ue(Ir.bind(null,t,Ie,pi),n);break}Ir(t,Ie,pi);break;case 4:if(er(t,c),(c&4194240)===c)break;for(n=t.eventTimes,d=-1;0<c;){var x=31-Tt(c);m=1<<x,x=n[x],x>d&&(d=x),c&=~m}if(c=d,c=Qt()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*j_(c/1960))-c,10<c){t.timeoutHandle=ue(Ir.bind(null,t,Ie,pi),c);break}Ir(t,Ie,pi);break;case 5:Ir(t,Ie,pi);break;default:throw Error(r(329))}}}return Be(t,Qt()),t.callbackNode===a?vd.bind(null,t):null}function bc(t,n){var a=$s;return t.current.memoizedState.isDehydrated&&(br(t,n).flags|=256),t=Tl(t,n),t!==2&&(n=Ie,Ie=a,n!==null&&Ic(n)),t}function Ic(t){Ie===null?Ie=t:Ie.push.apply(Ie,t)}function W_(t){for(var n=t;;){if(n.flags&16384){var a=n.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var c=0;c<a.length;c++){var d=a[c],m=d.getSnapshot;d=d.value;try{if(!$e(m(),d))return!1}catch{return!1}}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function er(t,n){for(n&=~Nc,n&=~xl,t.suspendedLanes|=n,t.pingedLanes&=~n,t=t.expirationTimes;0<n;){var a=31-Tt(n),c=1<<a;t[a]=-1,n&=~c}}function yd(t){if((Ft&6)!==0)throw Error(r(327));Fo();var n=$t(t,0);if((n&1)===0)return Be(t,Qt()),null;var a=Tl(t,n);if(t.tag!==0&&a===2){var c=ye(t);c!==0&&(n=c,a=bc(t,c))}if(a===1)throw a=Vs,br(t,0),er(t,n),Be(t,Qt()),a;if(a===6)throw Error(r(345));return t.finishedWork=t.current.alternate,t.finishedLanes=n,Ir(t,Ie,pi),Be(t,Qt()),null}function Bc(t,n){var a=Ft;Ft|=1;try{return t(n)}finally{Ft=a,Ft===0&&(Do=Qt()+500,tl&&Gi())}}function Rr(t){Ji!==null&&Ji.tag===0&&(Ft&6)===0&&Fo();var n=Ft;Ft|=1;var a=un.transition,c=It;try{if(un.transition=null,It=1,t)return t()}finally{It=c,un.transition=a,Ft=n,(Ft&6)===0&&Gi()}}function Dc(){Ye=Bo.current,Kt(Bo)}function br(t,n){t.finishedWork=null,t.finishedLanes=0;var a=t.timeoutHandle;if(a!==-1&&(t.timeoutHandle=-1,oe(a)),se!==null)for(a=se.return;a!==null;){var c=a;switch(qu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Qa();break;case 3:Ro(),Kt(ze),Kt(ke),sc();break;case 5:rc(c);break;case 4:Ro();break;case 13:Kt(te);break;case 19:Kt(te);break;case 10:Ju(c.type._context);break;case 22:case 23:Dc()}a=a.return}if(de=t,se=t=nr(t.current,null),ge=Ye=n,fe=0,Vs=null,Nc=xl=zr=0,Ie=$s=null,Ar!==null){for(n=0;n<Ar.length;n++)if(a=Ar[n],c=a.interleaved,c!==null){a.interleaved=null;var d=c.next,m=a.pending;if(m!==null){var x=m.next;m.next=d,c.next=x}a.pending=c}Ar=null}return t}function wd(t,n){do{var a=se;try{if(Qu(),cl.current=pl,fl){for(var c=ee.memoizedState;c!==null;){var d=c.queue;d!==null&&(d.pending=null),c=c.next}fl=!1}if(Or=0,he=ce=ee=null,Fs=!1,Zs=0,Ac.current=null,a===null||a.return===null){fe=1,Vs=n,se=null;break}t:{var m=t,x=a.return,P=a,A=n;if(n=ge,P.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var B=A,G=P,X=G.tag;if((G.mode&1)===0&&(X===0||X===11||X===15)){var V=G.alternate;V?(G.updateQueue=V.updateQueue,G.memoizedState=V.memoizedState,G.lanes=V.lanes):(G.updateQueue=null,G.memoizedState=null)}var st=Vh(x);if(st!==null){st.flags&=-257,$h(st,x,P,m,n),st.mode&1&&Wh(m,B,n),n=st,A=B;var ft=n.updateQueue;if(ft===null){var dt=new Set;dt.add(A),n.updateQueue=dt}else ft.add(A);break t}else{if((n&1)===0){Wh(m,B,n),Fc();break t}A=Error(r(426))}}else if(Yt&&P.mode&1){var re=Vh(x);if(re!==null){(re.flags&65536)===0&&(re.flags|=256),$h(re,x,P,m,n),Yu(bo(A,P));break t}}m=A=bo(A,P),fe!==4&&(fe=2),$s===null?$s=[m]:$s.push(m),m=x;do{switch(m.tag){case 3:m.flags|=65536,n&=-n,m.lanes|=n;var R=Uh(m,A,n);mh(m,R);break t;case 1:P=A;var O=m.type,b=m.stateNode;if((m.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Qi===null||!Qi.has(b)))){m.flags|=65536,n&=-n,m.lanes|=n;var et=jh(m,P,n);mh(m,et);break t}}m=m.return}while(m!==null)}Sd(a)}catch(_t){n=_t,se===a&&a!==null&&(se=a=a.return);continue}break}while(!0)}function xd(){var t=wl.current;return wl.current=pl,t===null?pl:t}function Fc(){(fe===0||fe===3||fe===2)&&(fe=4),de===null||(zr&268435455)===0&&(xl&268435455)===0||er(de,ge)}function Tl(t,n){var a=Ft;Ft|=2;var c=xd();(de!==t||ge!==n)&&(pi=null,br(t,n));do try{V_();break}catch(d){wd(t,d)}while(!0);if(Qu(),Ft=a,wl.current=c,se!==null)throw Error(r(261));return de=null,ge=0,fe}function V_(){for(;se!==null;)kd(se)}function $_(){for(;se!==null&&!Lu();)kd(se)}function kd(t){var n=Ld(t.alternate,t,Ye);t.memoizedProps=t.pendingProps,n===null?Sd(t):se=n,Ac.current=null}function Sd(t){var n=t;do{var a=n.alternate;if(t=n.return,(n.flags&32768)===0){if(a=D_(a,n,Ye),a!==null){se=a;return}}else{if(a=F_(a,n),a!==null){a.flags&=32767,se=a;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{fe=6,se=null;return}}if(n=n.sibling,n!==null){se=n;return}se=n=t}while(n!==null);fe===0&&(fe=5)}function Ir(t,n,a){var c=It,d=un.transition;try{un.transition=null,It=1,q_(t,n,a,c)}finally{un.transition=d,It=c}return null}function q_(t,n,a,c){do Fo();while(Ji!==null);if((Ft&6)!==0)throw Error(r(327));a=t.finishedWork;var d=t.finishedLanes;if(a===null)return null;if(t.finishedWork=null,t.finishedLanes=0,a===t.current)throw Error(r(177));t.callbackNode=null,t.callbackPriority=0;var m=a.lanes|a.childLanes;if(ne(t,m),t===de&&(se=de=null,ge=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Sl||(Sl=!0,Td(eo,function(){return Fo(),null})),m=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||m){m=un.transition,un.transition=null;var x=It;It=1;var P=Ft;Ft|=4,Ac.current=null,H_(t,a),dd(a,t),en(xt),yr=!!nt,xt=nt=null,t.current=a,U_(a),to(),Ft=P,It=x,un.transition=m}else t.current=a;if(Sl&&(Sl=!1,Ji=t,El=d),m=t.pendingLanes,m===0&&(Qi=null),pr(a.stateNode),Be(t,Qt()),n!==null)for(c=t.onRecoverableError,a=0;a<n.length;a++)d=n[a],c(d.value,{componentStack:d.stack,digest:d.digest});if(kl)throw kl=!1,t=zc,zc=null,t;return(El&1)!==0&&t.tag!==0&&Fo(),m=t.pendingLanes,(m&1)!==0?t===Rc?qs++:(qs=0,Rc=t):qs=0,Gi(),null}function Fo(){if(Ji!==null){var t=Mi(El),n=un.transition,a=It;try{if(un.transition=null,It=16>t?16:t,Ji===null)var c=!1;else{if(t=Ji,Ji=null,El=0,(Ft&6)!==0)throw Error(r(331));var d=Ft;for(Ft|=4,lt=t.current;lt!==null;){var m=lt,x=m.child;if((lt.flags&16)!==0){var P=m.deletions;if(P!==null){for(var A=0;A<P.length;A++){var B=P[A];for(lt=B;lt!==null;){var G=lt;switch(G.tag){case 0:case 11:case 15:Ws(8,G,m)}var X=G.child;if(X!==null)X.return=G,lt=X;else for(;lt!==null;){G=lt;var V=G.sibling,st=G.return;if(ld(G),G===B){lt=null;break}if(V!==null){V.return=st,lt=V;break}lt=st}}}var ft=m.alternate;if(ft!==null){var dt=ft.child;if(dt!==null){ft.child=null;do{var re=dt.sibling;dt.sibling=null,dt=re}while(dt!==null)}}lt=m}}if((m.subtreeFlags&2064)!==0&&x!==null)x.return=m,lt=x;else t:for(;lt!==null;){if(m=lt,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:Ws(9,m,m.return)}var R=m.sibling;if(R!==null){R.return=m.return,lt=R;break t}lt=m.return}}var O=t.current;for(lt=O;lt!==null;){x=lt;var b=x.child;if((x.subtreeFlags&2064)!==0&&b!==null)b.return=x,lt=b;else t:for(x=O;lt!==null;){if(P=lt,(P.flags&2048)!==0)try{switch(P.tag){case 0:case 11:case 15:yl(9,P)}}catch(_t){ie(P,P.return,_t)}if(P===x){lt=null;break t}var et=P.sibling;if(et!==null){et.return=P.return,lt=et;break t}lt=P.return}}if(Ft=d,Gi(),Ze&&typeof Ze.onPostCommitFiberRoot=="function")try{Ze.onPostCommitFiberRoot(dr,t)}catch{}c=!0}return c}finally{It=a,un.transition=n}}return!1}function Ed(t,n,a){n=bo(a,n),n=Uh(t,n,1),t=Yi(t,n,1),n=Ae(),t!==null&&(He(t,1,n),Be(t,n))}function ie(t,n,a){if(t.tag===3)Ed(t,t,a);else for(;n!==null;){if(n.tag===3){Ed(n,t,a);break}else if(n.tag===1){var c=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Qi===null||!Qi.has(c))){t=bo(a,t),t=jh(n,t,1),n=Yi(n,t,1),t=Ae(),n!==null&&(He(n,1,t),Be(n,t));break}}n=n.return}}function G_(t,n,a){var c=t.pingCache;c!==null&&c.delete(n),n=Ae(),t.pingedLanes|=t.suspendedLanes&a,de===t&&(ge&a)===a&&(fe===4||fe===3&&(ge&130023424)===ge&&500>Qt()-Oc?br(t,0):Nc|=a),Be(t,n)}function Pd(t,n){n===0&&((t.mode&1)===0?n=1:(n=Ti,Ti<<=1,(Ti&130023424)===0&&(Ti=4194304)));var a=Ae();t=fi(t,n),t!==null&&(He(t,n,a),Be(t,a))}function K_(t){var n=t.memoizedState,a=0;n!==null&&(a=n.retryLane),Pd(t,a)}function Y_(t,n){var a=0;switch(t.tag){case 13:var c=t.stateNode,d=t.memoizedState;d!==null&&(a=d.retryLane);break;case 19:c=t.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(n),Pd(t,a)}var Ld;Ld=function(t,n,a){if(t!==null)if(t.memoizedProps!==n.pendingProps||ze.current)be=!0;else{if((t.lanes&a)===0&&(n.flags&128)===0)return be=!1,B_(t,n,a);be=(t.flags&131072)!==0}else be=!1,Yt&&(n.flags&1048576)!==0&&oh(n,nl,n.index);switch(n.lanes=0,n.tag){case 2:var c=n.type;gl(t,n),t=n.pendingProps;var d=To(n,ke.current);zo(n,a),d=uc(null,n,c,t,d,a);var m=cc();return n.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Re(c)?(m=!0,Ja(n)):m=!1,n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,nc(n),d.updater=ml,n.stateNode=d,d._reactInternals=n,_c(n,c,t,a),n=wc(null,n,c,!0,m,a)):(n.tag=0,Yt&&m&&$u(n),Me(null,n,d,a),n=n.child),n;case 16:c=n.elementType;t:{switch(gl(t,n),t=n.pendingProps,d=c._init,c=d(c._payload),n.type=c,d=n.tag=Q_(c),t=wn(c,t),d){case 0:n=yc(null,n,c,t,a);break t;case 1:n=Qh(null,n,c,t,a);break t;case 11:n=qh(null,n,c,t,a);break t;case 14:n=Gh(null,n,c,wn(c.type,t),a);break t}throw Error(r(306,c,""))}return n;case 0:return c=n.type,d=n.pendingProps,d=n.elementType===c?d:wn(c,d),yc(t,n,c,d,a);case 1:return c=n.type,d=n.pendingProps,d=n.elementType===c?d:wn(c,d),Qh(t,n,c,d,a);case 3:t:{if(Jh(n),t===null)throw Error(r(387));c=n.pendingProps,m=n.memoizedState,d=m.element,ph(t,n),ll(n,c,null,a);var x=n.memoizedState;if(c=x.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){d=bo(Error(r(423)),n),n=td(t,n,c,a,d);break t}else if(c!==d){d=bo(Error(r(424)),n),n=td(t,n,c,a,d);break t}else for(Ke=Bn(n.stateNode.containerInfo.firstChild),Ge=n,Yt=!0,yn=null,a=hh(n,null,c,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ao(),c===d){n=di(t,n,a);break t}Me(t,n,c,a)}n=n.child}return n;case 5:return gh(n),t===null&&Ku(n),c=n.type,d=n.pendingProps,m=t!==null?t.memoizedProps:null,x=d.children,Ct(c,d)?x=null:m!==null&&Ct(c,m)&&(n.flags|=32),Xh(t,n),Me(t,n,x,a),n.child;case 6:return t===null&&Ku(n),null;case 13:return ed(t,n,a);case 4:return ic(n,n.stateNode.containerInfo),c=n.pendingProps,t===null?n.child=No(n,null,c,a):Me(t,n,c,a),n.child;case 11:return c=n.type,d=n.pendingProps,d=n.elementType===c?d:wn(c,d),qh(t,n,c,d,a);case 7:return Me(t,n,n.pendingProps,a),n.child;case 8:return Me(t,n,n.pendingProps.children,a),n.child;case 12:return Me(t,n,n.pendingProps.children,a),n.child;case 10:t:{if(c=n.type._context,d=n.pendingProps,m=n.memoizedProps,x=d.value,qt(ol,c._currentValue),c._currentValue=x,m!==null)if($e(m.value,x)){if(m.children===d.children&&!ze.current){n=di(t,n,a);break t}}else for(m=n.child,m!==null&&(m.return=n);m!==null;){var P=m.dependencies;if(P!==null){x=m.child;for(var A=P.firstContext;A!==null;){if(A.context===c){if(m.tag===1){A=hi(-1,a&-a),A.tag=2;var B=m.updateQueue;if(B!==null){B=B.shared;var G=B.pending;G===null?A.next=A:(A.next=G.next,G.next=A),B.pending=A}}m.lanes|=a,A=m.alternate,A!==null&&(A.lanes|=a),tc(m.return,a,n),P.lanes|=a;break}A=A.next}}else if(m.tag===10)x=m.type===n.type?null:m.child;else if(m.tag===18){if(x=m.return,x===null)throw Error(r(341));x.lanes|=a,P=x.alternate,P!==null&&(P.lanes|=a),tc(x,a,n),x=m.sibling}else x=m.child;if(x!==null)x.return=m;else for(x=m;x!==null;){if(x===n){x=null;break}if(m=x.sibling,m!==null){m.return=x.return,x=m;break}x=x.return}m=x}Me(t,n,d.children,a),n=n.child}return n;case 9:return d=n.type,c=n.pendingProps.children,zo(n,a),d=an(d),c=c(d),n.flags|=1,Me(t,n,c,a),n.child;case 14:return c=n.type,d=wn(c,n.pendingProps),d=wn(c.type,d),Gh(t,n,c,d,a);case 15:return Kh(t,n,n.type,n.pendingProps,a);case 17:return c=n.type,d=n.pendingProps,d=n.elementType===c?d:wn(c,d),gl(t,n),n.tag=1,Re(c)?(t=!0,Ja(n)):t=!1,zo(n,a),Zh(n,c,d),_c(n,c,d,a),wc(null,n,c,!0,t,a);case 19:return id(t,n,a);case 22:return Yh(t,n,a)}throw Error(r(156,n.tag))};function Td(t,n){return Ta(t,n)}function X_(t,n,a,c){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cn(t,n,a,c){return new X_(t,n,a,c)}function Zc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Q_(t){if(typeof t=="function")return Zc(t)?1:0;if(t!=null){if(t=t.$$typeof,t===yt)return 11;if(t===Ut)return 14}return 2}function nr(t,n){var a=t.alternate;return a===null?(a=cn(t.tag,n,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=n,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&14680064,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,n=t.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a}function Cl(t,n,a,c,d,m){var x=2;if(c=t,typeof t=="function")Zc(t)&&(x=1);else if(typeof t=="string")x=5;else t:switch(t){case Y:return Br(a.children,d,m,n);case ct:x=8,d|=8;break;case ut:return t=cn(12,a,n,d|2),t.elementType=ut,t.lanes=m,t;case Mt:return t=cn(13,a,n,d),t.elementType=Mt,t.lanes=m,t;case Ot:return t=cn(19,a,n,d),t.elementType=Ot,t.lanes=m,t;case Dt:return Ml(a,d,m,n);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case it:x=10;break t;case q:x=9;break t;case yt:x=11;break t;case Ut:x=14;break t;case zt:x=16,c=null;break t}throw Error(r(130,t==null?t:typeof t,""))}return n=cn(x,a,n,d),n.elementType=t,n.type=c,n.lanes=m,n}function Br(t,n,a,c){return t=cn(7,t,c,n),t.lanes=a,t}function Ml(t,n,a,c){return t=cn(22,t,c,n),t.elementType=Dt,t.lanes=a,t.stateNode={isHidden:!1},t}function Hc(t,n,a){return t=cn(6,t,null,n),t.lanes=a,t}function Uc(t,n,a){return n=cn(4,t.children!==null?t.children:[],t.key,n),n.lanes=a,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function J_(t,n,a,c,d){this.tag=n,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ci(0),this.expirationTimes=Ci(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ci(0),this.identifierPrefix=c,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function jc(t,n,a,c,d,m,x,P,A){return t=new J_(t,n,a,P,A),n===1?(n=1,m===!0&&(n|=8)):n=0,m=cn(3,null,null,n),t.current=m,m.stateNode=t,m.memoizedState={element:c,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},nc(m),t}function tg(t,n,a){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gt,key:c==null?null:""+c,children:t,containerInfo:n,implementation:a}}function Cd(t){if(!t)return qi;t=t._reactInternals;t:{if(Mn(t)!==t||t.tag!==1)throw Error(r(170));var n=t;do{switch(n.tag){case 3:n=n.stateNode.context;break t;case 1:if(Re(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break t}}n=n.return}while(n!==null);throw Error(r(171))}if(t.tag===1){var a=t.type;if(Re(a))return nh(t,a,n)}return n}function Md(t,n,a,c,d,m,x,P,A){return t=jc(a,c,!0,t,d,m,x,P,A),t.context=Cd(null),a=t.current,c=Ae(),d=tr(a),m=hi(c,d),m.callback=n??null,Yi(a,m,d),t.current.lanes=d,He(t,d,c),Be(t,c),t}function Al(t,n,a,c){var d=n.current,m=Ae(),x=tr(d);return a=Cd(a),n.context===null?n.context=a:n.pendingContext=a,n=hi(m,x),n.payload={element:t},c=c===void 0?null:c,c!==null&&(n.callback=c),t=Yi(d,n,x),t!==null&&(Sn(t,d,x,m),al(t,d,x)),x}function Nl(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Ad(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<n?a:n}}function Wc(t,n){Ad(t,n),(t=t.alternate)&&Ad(t,n)}function eg(){return null}var Nd=typeof reportError=="function"?reportError:function(t){console.error(t)};function Vc(t){this._internalRoot=t}Ol.prototype.render=Vc.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(r(409));Al(t,n,null,null)},Ol.prototype.unmount=Vc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;Rr(function(){Al(null,t,null,null)}),n[Ht]=null}};function Ol(t){this._internalRoot=t}Ol.prototype.unstable_scheduleHydration=function(t){if(t){var n=so();t={blockedOn:null,target:t,priority:n};for(var a=0;a<le.length&&n!==0&&n<le[a].priority;a++);le.splice(a,0,t),a===0&&ao(t)}};function $c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function zl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Od(){}function ng(t,n,a,c,d){if(d){if(typeof c=="function"){var m=c;c=function(){var B=Nl(x);m.call(B)}}var x=Md(n,c,t,0,null,!1,!1,"",Od);return t._reactRootContainer=x,t[Ht]=x.current,Ui(t.nodeType===8?t.parentNode:t),Rr(),x}for(;d=t.lastChild;)t.removeChild(d);if(typeof c=="function"){var P=c;c=function(){var B=Nl(A);P.call(B)}}var A=jc(t,0,!1,null,null,!1,!1,"",Od);return t._reactRootContainer=A,t[Ht]=A.current,Ui(t.nodeType===8?t.parentNode:t),Rr(function(){Al(n,A,a,c)}),A}function Rl(t,n,a,c,d){var m=a._reactRootContainer;if(m){var x=m;if(typeof d=="function"){var P=d;d=function(){var A=Nl(x);P.call(A)}}Al(n,x,t,d)}else x=ng(a,n,t,d,c);return Nl(x)}ro=function(t){switch(t.tag){case 3:var n=t.stateNode;if(n.current.memoizedState.isDehydrated){var a=Lt(n.pendingLanes);a!==0&&(pn(n,a|1),Be(n,Qt()),(Ft&6)===0&&(Do=Qt()+500,Gi()))}break;case 13:Rr(function(){var c=fi(t,1);if(c!==null){var d=Ae();Sn(c,t,1,d)}}),Wc(t,1)}},Yn=function(t){if(t.tag===13){var n=fi(t,134217728);if(n!==null){var a=Ae();Sn(n,t,134217728,a)}Wc(t,134217728)}},oo=function(t){if(t.tag===13){var n=tr(t),a=fi(t,n);if(a!==null){var c=Ae();Sn(a,t,n,c)}Wc(t,n)}},so=function(){return It},mr=function(t,n){var a=It;try{return It=t,n()}finally{It=a}},Xr=function(t,n,a){switch(n){case"input":if(ar(t,a),n=a.name,a.type==="radio"&&n!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<a.length;n++){var c=a[n];if(c!==t&&c.form===t.form){var d=Po(c);if(!d)throw Error(r(90));wi(c),ar(c,d)}}}break;case"textarea":pa(t,a);break;case"select":n=a.value,n!=null&&Cn(t,!!a.multiple,n,!1)}},xa=Bc,ka=Rr;var ig={usingClientEntryPoint:!1,Events:[si,ai,Po,ya,wa,Bc]},Gs={findFiberByHostInstance:oi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rg={bundleType:Gs.bundleType,version:Gs.version,rendererPackageName:Gs.rendererPackageName,rendererConfig:Gs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:F.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Pa(t),t===null?null:t.stateNode},findFiberByHostInstance:Gs.findFiberByHostInstance||eg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bl.isDisabled&&bl.supportsFiber)try{dr=bl.inject(rg),Ze=bl}catch{}}return De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ig,De.createPortal=function(t,n){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$c(n))throw Error(r(200));return tg(t,n,null,a)},De.createRoot=function(t,n){if(!$c(t))throw Error(r(299));var a=!1,c="",d=Nd;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),n=jc(t,1,!1,null,null,a,!1,c,d),t[Ht]=n.current,Ui(t.nodeType===8?t.parentNode:t),new Vc(n)},De.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=Pa(n),t=t===null?null:t.stateNode,t},De.flushSync=function(t){return Rr(t)},De.hydrate=function(t,n,a){if(!zl(n))throw Error(r(200));return Rl(null,t,n,!0,a)},De.hydrateRoot=function(t,n,a){if(!$c(t))throw Error(r(405));var c=a!=null&&a.hydratedSources||null,d=!1,m="",x=Nd;if(a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onRecoverableError!==void 0&&(x=a.onRecoverableError)),n=Md(n,null,t,1,a??null,d,!1,m,x),t[Ht]=n.current,Ui(t),c)for(t=0;t<c.length;t++)a=c[t],d=a._getVersion,d=d(a._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[a,d]:n.mutableSourceEagerHydrationData.push(a,d);return new Ol(n)},De.render=function(t,n,a){if(!zl(n))throw Error(r(200));return Rl(null,t,n,!1,a)},De.unmountComponentAtNode=function(t){if(!zl(t))throw Error(r(40));return t._reactRootContainer?(Rr(function(){Rl(null,null,t,!1,function(){t._reactRootContainer=null,t[Ht]=null})}),!0):!1},De.unstable_batchedUpdates=Bc,De.unstable_renderSubtreeIntoContainer=function(t,n,a,c){if(!zl(a))throw Error(r(200));if(t==null||t._reactInternals===void 0)throw Error(r(38));return Rl(t,n,a,!1,c)},De.version="18.3.1-next-f1338f8080-20240426",De}var Zd;function tm(){if(Zd)return Kc.exports;Zd=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),Kc.exports=fg(),Kc.exports}var Hd;function hg(){if(Hd)return Il;Hd=1;var i=tm();return Il.createRoot=i.createRoot,Il.hydrateRoot=i.hydrateRoot,Il}var dg=hg();const Wn=Object.create(null);Wn.open="0";Wn.close="1";Wn.ping="2";Wn.pong="3";Wn.message="4";Wn.upgrade="5";Wn.noop="6";const Kl=Object.create(null);Object.keys(Wn).forEach(i=>{Kl[Wn[i]]=i});const mf={type:"error",data:"parser error"},em=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",nm=typeof ArrayBuffer=="function",im=i=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer,Df=({type:i,data:o},r,l)=>em&&o instanceof Blob?r?l(o):Ud(o,l):nm&&(o instanceof ArrayBuffer||im(o))?r?l(o):Ud(new Blob([o]),l):l(Wn[i]+(o||"")),Ud=(i,o)=>{const r=new FileReader;return r.onload=function(){const l=r.result.split(",")[1];o("b"+(l||""))},r.readAsDataURL(i)};function jd(i){return i instanceof Uint8Array?i:i instanceof ArrayBuffer?new Uint8Array(i):new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}let Qc;function pg(i,o){if(em&&i.data instanceof Blob)return i.data.arrayBuffer().then(jd).then(o);if(nm&&(i.data instanceof ArrayBuffer||im(i.data)))return o(jd(i.data));Df(i,!1,r=>{Qc||(Qc=new TextEncoder),o(Qc.encode(r))})}const Wd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let i=0;i<Wd.length;i++)Qs[Wd.charCodeAt(i)]=i;const mg=i=>{let o=i.length*.75,r=i.length,l,f=0,p,g,y,w;i[i.length-1]==="="&&(o--,i[i.length-2]==="="&&o--);const v=new ArrayBuffer(o),S=new Uint8Array(v);for(l=0;l<r;l+=4)p=Qs[i.charCodeAt(l)],g=Qs[i.charCodeAt(l+1)],y=Qs[i.charCodeAt(l+2)],w=Qs[i.charCodeAt(l+3)],S[f++]=p<<2|g>>4,S[f++]=(g&15)<<4|y>>2,S[f++]=(y&3)<<6|w&63;return v},_g=typeof ArrayBuffer=="function",Ff=(i,o)=>{if(typeof i!="string")return{type:"message",data:rm(i,o)};const r=i.charAt(0);return r==="b"?{type:"message",data:gg(i.substring(1),o)}:Kl[r]?i.length>1?{type:Kl[r],data:i.substring(1)}:{type:Kl[r]}:mf},gg=(i,o)=>{if(_g){const r=mg(i);return rm(r,o)}else return{base64:!0,data:i}},rm=(i,o)=>{switch(o){case"blob":return i instanceof Blob?i:new Blob([i]);case"arraybuffer":default:return i instanceof ArrayBuffer?i:i.buffer}},om="",vg=(i,o)=>{const r=i.length,l=new Array(r);let f=0;i.forEach((p,g)=>{Df(p,!1,y=>{l[g]=y,++f===r&&o(l.join(om))})})},yg=(i,o)=>{const r=i.split(om),l=[];for(let f=0;f<r.length;f++){const p=Ff(r[f],o);if(l.push(p),p.type==="error")break}return l};function wg(){return new TransformStream({transform(i,o){pg(i,r=>{const l=r.length;let f;if(l<126)f=new Uint8Array(1),new DataView(f.buffer).setUint8(0,l);else if(l<65536){f=new Uint8Array(3);const p=new DataView(f.buffer);p.setUint8(0,126),p.setUint16(1,l)}else{f=new Uint8Array(9);const p=new DataView(f.buffer);p.setUint8(0,127),p.setBigUint64(1,BigInt(l))}i.data&&typeof i.data!="string"&&(f[0]|=128),o.enqueue(f),o.enqueue(r)})}})}let Jc;function Bl(i){return i.reduce((o,r)=>o+r.length,0)}function Dl(i,o){if(i[0].length===o)return i.shift();const r=new Uint8Array(o);let l=0;for(let f=0;f<o;f++)r[f]=i[0][l++],l===i[0].length&&(i.shift(),l=0);return i.length&&l<i[0].length&&(i[0]=i[0].slice(l)),r}function xg(i,o){Jc||(Jc=new TextDecoder);const r=[];let l=0,f=-1,p=!1;return new TransformStream({transform(g,y){for(r.push(g);;){if(l===0){if(Bl(r)<1)break;const w=Dl(r,1);p=(w[0]&128)===128,f=w[0]&127,f<126?l=3:f===126?l=1:l=2}else if(l===1){if(Bl(r)<2)break;const w=Dl(r,2);f=new DataView(w.buffer,w.byteOffset,w.length).getUint16(0),l=3}else if(l===2){if(Bl(r)<8)break;const w=Dl(r,8),v=new DataView(w.buffer,w.byteOffset,w.length),S=v.getUint32(0);if(S>Math.pow(2,21)-1){y.enqueue(mf);break}f=S*Math.pow(2,32)+v.getUint32(4),l=3}else{if(Bl(r)<f)break;const w=Dl(r,f);y.enqueue(Ff(p?w:Jc.decode(w),o)),l=0}if(f===0||f>i){y.enqueue(mf);break}}}})}const sm=4;function ae(i){if(i)return kg(i)}function kg(i){for(var o in ae.prototype)i[o]=ae.prototype[o];return i}ae.prototype.on=ae.prototype.addEventListener=function(i,o){return this._callbacks=this._callbacks||{},(this._callbacks["$"+i]=this._callbacks["$"+i]||[]).push(o),this};ae.prototype.once=function(i,o){function r(){this.off(i,r),o.apply(this,arguments)}return r.fn=o,this.on(i,r),this};ae.prototype.off=ae.prototype.removeListener=ae.prototype.removeAllListeners=ae.prototype.removeEventListener=function(i,o){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+i];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+i],this;for(var l,f=0;f<r.length;f++)if(l=r[f],l===o||l.fn===o){r.splice(f,1);break}return r.length===0&&delete this._callbacks["$"+i],this};ae.prototype.emit=function(i){this._callbacks=this._callbacks||{};for(var o=new Array(arguments.length-1),r=this._callbacks["$"+i],l=1;l<arguments.length;l++)o[l-1]=arguments[l];if(r){r=r.slice(0);for(var l=0,f=r.length;l<f;++l)r[l].apply(this,o)}return this};ae.prototype.emitReserved=ae.prototype.emit;ae.prototype.listeners=function(i){return this._callbacks=this._callbacks||{},this._callbacks["$"+i]||[]};ae.prototype.hasListeners=function(i){return!!this.listeners(i).length};const mu=typeof Promise=="function"&&typeof Promise.resolve=="function"?o=>Promise.resolve().then(o):(o,r)=>r(o,0),fn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Sg="arraybuffer";function am(i,...o){return o.reduce((r,l)=>(i.hasOwnProperty(l)&&(r[l]=i[l]),r),{})}const Eg=fn.setTimeout,Pg=fn.clearTimeout;function _u(i,o){o.useNativeTimers?(i.setTimeoutFn=Eg.bind(fn),i.clearTimeoutFn=Pg.bind(fn)):(i.setTimeoutFn=fn.setTimeout.bind(fn),i.clearTimeoutFn=fn.clearTimeout.bind(fn))}const Lg=1.33;function Tg(i){return typeof i=="string"?Cg(i):Math.ceil((i.byteLength||i.size)*Lg)}function Cg(i){let o=0,r=0;for(let l=0,f=i.length;l<f;l++)o=i.charCodeAt(l),o<128?r+=1:o<2048?r+=2:o<55296||o>=57344?r+=3:(l++,r+=4);return r}function lm(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Mg(i){let o="";for(let r in i)i.hasOwnProperty(r)&&(o.length&&(o+="&"),o+=encodeURIComponent(r)+"="+encodeURIComponent(i[r]));return o}function Ag(i){let o={},r=i.split("&");for(let l=0,f=r.length;l<f;l++){let p=r[l].split("=");o[decodeURIComponent(p[0])]=decodeURIComponent(p[1])}return o}class Ng extends Error{constructor(o,r,l){super(o),this.description=r,this.context=l,this.type="TransportError"}}class Zf extends ae{constructor(o){super(),this.writable=!1,_u(this,o),this.opts=o,this.query=o.query,this.socket=o.socket,this.supportsBinary=!o.forceBase64}onError(o,r,l){return super.emitReserved("error",new Ng(o,r,l)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(o){this.readyState==="open"&&this.write(o)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(o){const r=Ff(o,this.socket.binaryType);this.onPacket(r)}onPacket(o){super.emitReserved("packet",o)}onClose(o){this.readyState="closed",super.emitReserved("close",o)}pause(o){}createUri(o,r={}){return o+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const o=this.opts.hostname;return o.indexOf(":")===-1?o:"["+o+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(o){const r=Mg(o);return r.length?"?"+r:""}}class Og extends Zf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(o){this.readyState="pausing";const r=()=>{this.readyState="paused",o()};if(this._polling||!this.writable){let l=0;this._polling&&(l++,this.once("pollComplete",function(){--l||r()})),this.writable||(l++,this.once("drain",function(){--l||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(o){const r=l=>{if(this.readyState==="opening"&&l.type==="open"&&this.onOpen(),l.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(l)};yg(o,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const o=()=>{this.write([{type:"close"}])};this.readyState==="open"?o():this.once("open",o)}write(o){this.writable=!1,vg(o,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const o=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=lm()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(o,r)}}let um=!1;try{um=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const zg=um;function Rg(){}class bg extends Og{constructor(o){if(super(o),typeof location<"u"){const r=location.protocol==="https:";let l=location.port;l||(l=r?"443":"80"),this.xd=typeof location<"u"&&o.hostname!==location.hostname||l!==o.port}}doWrite(o,r){const l=this.request({method:"POST",data:o});l.on("success",r),l.on("error",(f,p)=>{this.onError("xhr post error",f,p)})}doPoll(){const o=this.request();o.on("data",this.onData.bind(this)),o.on("error",(r,l)=>{this.onError("xhr poll error",r,l)}),this.pollXhr=o}}class Un extends ae{constructor(o,r,l){super(),this.createRequest=o,_u(this,l),this._opts=l,this._method=l.method||"GET",this._uri=r,this._data=l.data!==void 0?l.data:null,this._create()}_create(){var o;const r=am(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const l=this._xhr=this.createRequest(r);try{l.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){l.setDisableHeaderCheck&&l.setDisableHeaderCheck(!0);for(let f in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(f)&&l.setRequestHeader(f,this._opts.extraHeaders[f])}}catch{}if(this._method==="POST")try{l.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{l.setRequestHeader("Accept","*/*")}catch{}(o=this._opts.cookieJar)===null||o===void 0||o.addCookies(l),"withCredentials"in l&&(l.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(l.timeout=this._opts.requestTimeout),l.onreadystatechange=()=>{var f;l.readyState===3&&((f=this._opts.cookieJar)===null||f===void 0||f.parseCookies(l.getResponseHeader("set-cookie"))),l.readyState===4&&(l.status===200||l.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof l.status=="number"?l.status:0)},0))},l.send(this._data)}catch(f){this.setTimeoutFn(()=>{this._onError(f)},0);return}typeof document<"u"&&(this._index=Un.requestsCount++,Un.requests[this._index]=this)}_onError(o){this.emitReserved("error",o,this._xhr),this._cleanup(!0)}_cleanup(o){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Rg,o)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Un.requests[this._index],this._xhr=null}}_onLoad(){const o=this._xhr.responseText;o!==null&&(this.emitReserved("data",o),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Un.requestsCount=0;Un.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Vd);else if(typeof addEventListener=="function"){const i="onpagehide"in fn?"pagehide":"unload";addEventListener(i,Vd,!1)}}function Vd(){for(let i in Un.requests)Un.requests.hasOwnProperty(i)&&Un.requests[i].abort()}const Ig=(function(){const i=cm({xdomain:!1});return i&&i.responseType!==null})();class Bg extends bg{constructor(o){super(o);const r=o&&o.forceBase64;this.supportsBinary=Ig&&!r}request(o={}){return Object.assign(o,{xd:this.xd},this.opts),new Un(cm,this.uri(),o)}}function cm(i){const o=i.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!o||zg))return new XMLHttpRequest}catch{}if(!o)try{return new fn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const fm=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Dg extends Zf{get name(){return"websocket"}doOpen(){const o=this.uri(),r=this.opts.protocols,l=fm?{}:am(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(o,r,l)}catch(f){return this.emitReserved("error",f)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=o=>this.onClose({description:"websocket connection closed",context:o}),this.ws.onmessage=o=>this.onData(o.data),this.ws.onerror=o=>this.onError("websocket error",o)}write(o){this.writable=!1;for(let r=0;r<o.length;r++){const l=o[r],f=r===o.length-1;Df(l,this.supportsBinary,p=>{try{this.doWrite(l,p)}catch{}f&&mu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const o=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=lm()),this.supportsBinary||(r.b64=1),this.createUri(o,r)}}const tf=fn.WebSocket||fn.MozWebSocket;class Fg extends Dg{createSocket(o,r,l){return fm?new tf(o,r,l):r?new tf(o,r):new tf(o)}doWrite(o,r){this.ws.send(r)}}class Zg extends Zf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(o){return this.emitReserved("error",o)}this._transport.closed.then(()=>{this.onClose()}).catch(o=>{this.onError("webtransport error",o)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(o=>{const r=xg(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=o.readable.pipeThrough(r).getReader(),f=wg();f.readable.pipeTo(o.writable),this._writer=f.writable.getWriter();const p=()=>{l.read().then(({done:y,value:w})=>{y||(this.onPacket(w),p())}).catch(y=>{})};p();const g={type:"open"};this.query.sid&&(g.data=`{"sid":"${this.query.sid}"}`),this._writer.write(g).then(()=>this.onOpen())})})}write(o){this.writable=!1;for(let r=0;r<o.length;r++){const l=o[r],f=r===o.length-1;this._writer.write(l).then(()=>{f&&mu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var o;(o=this._transport)===null||o===void 0||o.close()}}const Hg={websocket:Fg,webtransport:Zg,polling:Bg},Ug=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,jg=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function _f(i){if(i.length>8e3)throw"URI too long";const o=i,r=i.indexOf("["),l=i.indexOf("]");r!=-1&&l!=-1&&(i=i.substring(0,r)+i.substring(r,l).replace(/:/g,";")+i.substring(l,i.length));let f=Ug.exec(i||""),p={},g=14;for(;g--;)p[jg[g]]=f[g]||"";return r!=-1&&l!=-1&&(p.source=o,p.host=p.host.substring(1,p.host.length-1).replace(/;/g,":"),p.authority=p.authority.replace("[","").replace("]","").replace(/;/g,":"),p.ipv6uri=!0),p.pathNames=Wg(p,p.path),p.queryKey=Vg(p,p.query),p}function Wg(i,o){const r=/\/{2,9}/g,l=o.replace(r,"/").split("/");return(o.slice(0,1)=="/"||o.length===0)&&l.splice(0,1),o.slice(-1)=="/"&&l.splice(l.length-1,1),l}function Vg(i,o){const r={};return o.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,f,p){f&&(r[f]=p)}),r}const gf=typeof addEventListener=="function"&&typeof removeEventListener=="function",Yl=[];gf&&addEventListener("offline",()=>{Yl.forEach(i=>i())},!1);class or extends ae{constructor(o,r){if(super(),this.binaryType=Sg,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,o&&typeof o=="object"&&(r=o,o=null),o){const l=_f(o);r.hostname=l.host,r.secure=l.protocol==="https"||l.protocol==="wss",r.port=l.port,l.query&&(r.query=l.query)}else r.host&&(r.hostname=_f(r.host).host);_u(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(l=>{const f=l.prototype.name;this.transports.push(f),this._transportsByName[f]=l}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Ag(this.opts.query)),gf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Yl.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(o){const r=Object.assign({},this.opts.query);r.EIO=sm,r.transport=o,this.id&&(r.sid=this.id);const l=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[o]);return new this._transportsByName[o](l)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const o=this.opts.rememberUpgrade&&or.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(o);r.open(),this.setTransport(r)}setTransport(o){this.transport&&this.transport.removeAllListeners(),this.transport=o,o.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",or.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(o){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",o),this.emitReserved("heartbeat"),o.type){case"open":this.onHandshake(JSON.parse(o.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=o.data,this._onError(r);break;case"message":this.emitReserved("data",o.data),this.emitReserved("message",o.data);break}}onHandshake(o){this.emitReserved("handshake",o),this.id=o.sid,this.transport.query.sid=o.sid,this._pingInterval=o.pingInterval,this._pingTimeout=o.pingTimeout,this._maxPayload=o.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const o=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+o,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},o),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const o=this._getWritablePackets();this.transport.send(o),this._prevBufferLen=o.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let l=0;l<this.writeBuffer.length;l++){const f=this.writeBuffer[l].data;if(f&&(r+=Tg(f)),l>0&&r>this._maxPayload)return this.writeBuffer.slice(0,l);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const o=Date.now()>this._pingTimeoutTime;return o&&(this._pingTimeoutTime=0,mu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),o}write(o,r,l){return this._sendPacket("message",o,r,l),this}send(o,r,l){return this._sendPacket("message",o,r,l),this}_sendPacket(o,r,l,f){if(typeof r=="function"&&(f=r,r=void 0),typeof l=="function"&&(f=l,l=null),this.readyState==="closing"||this.readyState==="closed")return;l=l||{},l.compress=l.compress!==!1;const p={type:o,data:r,options:l};this.emitReserved("packetCreate",p),this.writeBuffer.push(p),f&&this.once("flush",f),this.flush()}close(){const o=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),o()},l=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?l():o()}):this.upgrading?l():o()),this}_onError(o){if(or.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",o),this._onClose("transport error",o)}_onClose(o,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),gf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=Yl.indexOf(this._offlineEventListener);l!==-1&&Yl.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",o,r),this.writeBuffer=[],this._prevBufferLen=0}}}or.protocol=sm;class $g extends or{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let o=0;o<this._upgrades.length;o++)this._probe(this._upgrades[o])}_probe(o){let r=this.createTransport(o),l=!1;or.priorWebsocketSuccess=!1;const f=()=>{l||(r.send([{type:"ping",data:"probe"}]),r.once("packet",T=>{if(!l)if(T.type==="pong"&&T.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;or.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{l||this.readyState!=="closed"&&(S(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const C=new Error("probe error");C.transport=r.name,this.emitReserved("upgradeError",C)}}))};function p(){l||(l=!0,S(),r.close(),r=null)}const g=T=>{const C=new Error("probe error: "+T);C.transport=r.name,p(),this.emitReserved("upgradeError",C)};function y(){g("transport closed")}function w(){g("socket closed")}function v(T){r&&T.name!==r.name&&p()}const S=()=>{r.removeListener("open",f),r.removeListener("error",g),r.removeListener("close",y),this.off("close",w),this.off("upgrading",v)};r.once("open",f),r.once("error",g),r.once("close",y),this.once("close",w),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&o!=="webtransport"?this.setTimeoutFn(()=>{l||r.open()},200):r.open()}onHandshake(o){this._upgrades=this._filterUpgrades(o.upgrades),super.onHandshake(o)}_filterUpgrades(o){const r=[];for(let l=0;l<o.length;l++)~this.transports.indexOf(o[l])&&r.push(o[l]);return r}}let qg=class extends $g{constructor(o,r={}){const l=typeof o=="object"?o:r;(!l.transports||l.transports&&typeof l.transports[0]=="string")&&(l.transports=(l.transports||["polling","websocket","webtransport"]).map(f=>Hg[f]).filter(f=>!!f)),super(o,l)}};function Gg(i,o="",r){let l=i;r=r||typeof location<"u"&&location,i==null&&(i=r.protocol+"//"+r.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=r.protocol+i:i=r.host+i),/^(https?|wss?):\/\//.test(i)||(typeof r<"u"?i=r.protocol+"//"+i:i="https://"+i),l=_f(i)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const p=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+p+":"+l.port+o,l.href=l.protocol+"://"+p+(r&&r.port===l.port?"":":"+l.port),l}const Kg=typeof ArrayBuffer=="function",Yg=i=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(i):i.buffer instanceof ArrayBuffer,hm=Object.prototype.toString,Xg=typeof Blob=="function"||typeof Blob<"u"&&hm.call(Blob)==="[object BlobConstructor]",Qg=typeof File=="function"||typeof File<"u"&&hm.call(File)==="[object FileConstructor]";function Hf(i){return Kg&&(i instanceof ArrayBuffer||Yg(i))||Xg&&i instanceof Blob||Qg&&i instanceof File}function Xl(i,o){if(!i||typeof i!="object")return!1;if(Array.isArray(i)){for(let r=0,l=i.length;r<l;r++)if(Xl(i[r]))return!0;return!1}if(Hf(i))return!0;if(i.toJSON&&typeof i.toJSON=="function"&&arguments.length===1)return Xl(i.toJSON(),!0);for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&Xl(i[r]))return!0;return!1}function Jg(i){const o=[],r=i.data,l=i;return l.data=vf(r,o),l.attachments=o.length,{packet:l,buffers:o}}function vf(i,o){if(!i)return i;if(Hf(i)){const r={_placeholder:!0,num:o.length};return o.push(i),r}else if(Array.isArray(i)){const r=new Array(i.length);for(let l=0;l<i.length;l++)r[l]=vf(i[l],o);return r}else if(typeof i=="object"&&!(i instanceof Date)){const r={};for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=vf(i[l],o));return r}return i}function tv(i,o){return i.data=yf(i.data,o),delete i.attachments,i}function yf(i,o){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<o.length)return o[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let r=0;r<i.length;r++)i[r]=yf(i[r],o);else if(typeof i=="object")for(const r in i)Object.prototype.hasOwnProperty.call(i,r)&&(i[r]=yf(i[r],o));return i}const ev=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],nv=5;var Bt;(function(i){i[i.CONNECT=0]="CONNECT",i[i.DISCONNECT=1]="DISCONNECT",i[i.EVENT=2]="EVENT",i[i.ACK=3]="ACK",i[i.CONNECT_ERROR=4]="CONNECT_ERROR",i[i.BINARY_EVENT=5]="BINARY_EVENT",i[i.BINARY_ACK=6]="BINARY_ACK"})(Bt||(Bt={}));class iv{constructor(o){this.replacer=o}encode(o){return(o.type===Bt.EVENT||o.type===Bt.ACK)&&Xl(o)?this.encodeAsBinary({type:o.type===Bt.EVENT?Bt.BINARY_EVENT:Bt.BINARY_ACK,nsp:o.nsp,data:o.data,id:o.id}):[this.encodeAsString(o)]}encodeAsString(o){let r=""+o.type;return(o.type===Bt.BINARY_EVENT||o.type===Bt.BINARY_ACK)&&(r+=o.attachments+"-"),o.nsp&&o.nsp!=="/"&&(r+=o.nsp+","),o.id!=null&&(r+=o.id),o.data!=null&&(r+=JSON.stringify(o.data,this.replacer)),r}encodeAsBinary(o){const r=Jg(o),l=this.encodeAsString(r.packet),f=r.buffers;return f.unshift(l),f}}function $d(i){return Object.prototype.toString.call(i)==="[object Object]"}class Uf extends ae{constructor(o){super(),this.reviver=o}add(o){let r;if(typeof o=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(o);const l=r.type===Bt.BINARY_EVENT;l||r.type===Bt.BINARY_ACK?(r.type=l?Bt.EVENT:Bt.ACK,this.reconstructor=new rv(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Hf(o)||o.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(o),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+o)}decodeString(o){let r=0;const l={type:Number(o.charAt(0))};if(Bt[l.type]===void 0)throw new Error("unknown packet type "+l.type);if(l.type===Bt.BINARY_EVENT||l.type===Bt.BINARY_ACK){const p=r+1;for(;o.charAt(++r)!=="-"&&r!=o.length;);const g=o.substring(p,r);if(g!=Number(g)||o.charAt(r)!=="-")throw new Error("Illegal attachments");l.attachments=Number(g)}if(o.charAt(r+1)==="/"){const p=r+1;for(;++r&&!(o.charAt(r)===","||r===o.length););l.nsp=o.substring(p,r)}else l.nsp="/";const f=o.charAt(r+1);if(f!==""&&Number(f)==f){const p=r+1;for(;++r;){const g=o.charAt(r);if(g==null||Number(g)!=g){--r;break}if(r===o.length)break}l.id=Number(o.substring(p,r+1))}if(o.charAt(++r)){const p=this.tryParse(o.substr(r));if(Uf.isPayloadValid(l.type,p))l.data=p;else throw new Error("invalid payload")}return l}tryParse(o){try{return JSON.parse(o,this.reviver)}catch{return!1}}static isPayloadValid(o,r){switch(o){case Bt.CONNECT:return $d(r);case Bt.DISCONNECT:return r===void 0;case Bt.CONNECT_ERROR:return typeof r=="string"||$d(r);case Bt.EVENT:case Bt.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&ev.indexOf(r[0])===-1);case Bt.ACK:case Bt.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class rv{constructor(o){this.packet=o,this.buffers=[],this.reconPack=o}takeBinaryData(o){if(this.buffers.push(o),this.buffers.length===this.reconPack.attachments){const r=tv(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const ov=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Uf,Encoder:iv,get PacketType(){return Bt},protocol:nv},Symbol.toStringTag,{value:"Module"}));function En(i,o,r){return i.on(o,r),function(){i.off(o,r)}}const sv=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class dm extends ae{constructor(o,r,l){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=o,this.nsp=r,l&&l.auth&&(this.auth=l.auth),this._opts=Object.assign({},l),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const o=this.io;this.subs=[En(o,"open",this.onopen.bind(this)),En(o,"packet",this.onpacket.bind(this)),En(o,"error",this.onerror.bind(this)),En(o,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...o){return o.unshift("message"),this.emit.apply(this,o),this}emit(o,...r){var l,f,p;if(sv.hasOwnProperty(o))throw new Error('"'+o.toString()+'" is a reserved event name');if(r.unshift(o),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const g={type:Bt.EVENT,data:r};if(g.options={},g.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const S=this.ids++,T=r.pop();this._registerAckCallback(S,T),g.id=S}const y=(f=(l=this.io.engine)===null||l===void 0?void 0:l.transport)===null||f===void 0?void 0:f.writable,w=this.connected&&!(!((p=this.io.engine)===null||p===void 0)&&p._hasPingExpired());return this.flags.volatile&&!y||(w?(this.notifyOutgoingListeners(g),this.packet(g)):this.sendBuffer.push(g)),this.flags={},this}_registerAckCallback(o,r){var l;const f=(l=this.flags.timeout)!==null&&l!==void 0?l:this._opts.ackTimeout;if(f===void 0){this.acks[o]=r;return}const p=this.io.setTimeoutFn(()=>{delete this.acks[o];for(let y=0;y<this.sendBuffer.length;y++)this.sendBuffer[y].id===o&&this.sendBuffer.splice(y,1);r.call(this,new Error("operation has timed out"))},f),g=(...y)=>{this.io.clearTimeoutFn(p),r.apply(this,y)};g.withError=!0,this.acks[o]=g}emitWithAck(o,...r){return new Promise((l,f)=>{const p=(g,y)=>g?f(g):l(y);p.withError=!0,r.push(p),this.emit(o,...r)})}_addToQueue(o){let r;typeof o[o.length-1]=="function"&&(r=o.pop());const l={id:this._queueSeq++,tryCount:0,pending:!1,args:o,flags:Object.assign({fromQueue:!0},this.flags)};o.push((f,...p)=>l!==this._queue[0]?void 0:(f!==null?l.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(f)):(this._queue.shift(),r&&r(null,...p)),l.pending=!1,this._drainQueue())),this._queue.push(l),this._drainQueue()}_drainQueue(o=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!o||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(o){o.nsp=this.nsp,this.io._packet(o)}onopen(){typeof this.auth=="function"?this.auth(o=>{this._sendConnectPacket(o)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(o){this.packet({type:Bt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},o):o})}onerror(o){this.connected||this.emitReserved("connect_error",o)}onclose(o,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",o,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(o=>{if(!this.sendBuffer.some(l=>String(l.id)===o)){const l=this.acks[o];delete this.acks[o],l.withError&&l.call(this,new Error("socket has been disconnected"))}})}onpacket(o){if(o.nsp===this.nsp)switch(o.type){case Bt.CONNECT:o.data&&o.data.sid?this.onconnect(o.data.sid,o.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Bt.EVENT:case Bt.BINARY_EVENT:this.onevent(o);break;case Bt.ACK:case Bt.BINARY_ACK:this.onack(o);break;case Bt.DISCONNECT:this.ondisconnect();break;case Bt.CONNECT_ERROR:this.destroy();const l=new Error(o.data.message);l.data=o.data.data,this.emitReserved("connect_error",l);break}}onevent(o){const r=o.data||[];o.id!=null&&r.push(this.ack(o.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(o){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const l of r)l.apply(this,o)}super.emit.apply(this,o),this._pid&&o.length&&typeof o[o.length-1]=="string"&&(this._lastOffset=o[o.length-1])}ack(o){const r=this;let l=!1;return function(...f){l||(l=!0,r.packet({type:Bt.ACK,id:o,data:f}))}}onack(o){const r=this.acks[o.id];typeof r=="function"&&(delete this.acks[o.id],r.withError&&o.data.unshift(null),r.apply(this,o.data))}onconnect(o,r){this.id=o,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(o=>this.emitEvent(o)),this.receiveBuffer=[],this.sendBuffer.forEach(o=>{this.notifyOutgoingListeners(o),this.packet(o)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(o=>o()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Bt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(o){return this.flags.compress=o,this}get volatile(){return this.flags.volatile=!0,this}timeout(o){return this.flags.timeout=o,this}onAny(o){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(o),this}prependAny(o){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(o),this}offAny(o){if(!this._anyListeners)return this;if(o){const r=this._anyListeners;for(let l=0;l<r.length;l++)if(o===r[l])return r.splice(l,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(o){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(o),this}prependAnyOutgoing(o){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(o),this}offAnyOutgoing(o){if(!this._anyOutgoingListeners)return this;if(o){const r=this._anyOutgoingListeners;for(let l=0;l<r.length;l++)if(o===r[l])return r.splice(l,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(o){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const l of r)l.apply(this,o.data)}}}function qo(i){i=i||{},this.ms=i.min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}qo.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var o=Math.random(),r=Math.floor(o*this.jitter*i);i=(Math.floor(o*10)&1)==0?i-r:i+r}return Math.min(i,this.max)|0};qo.prototype.reset=function(){this.attempts=0};qo.prototype.setMin=function(i){this.ms=i};qo.prototype.setMax=function(i){this.max=i};qo.prototype.setJitter=function(i){this.jitter=i};class wf extends ae{constructor(o,r){var l;super(),this.nsps={},this.subs=[],o&&typeof o=="object"&&(r=o,o=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,_u(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((l=r.randomizationFactor)!==null&&l!==void 0?l:.5),this.backoff=new qo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=o;const f=r.parser||ov;this.encoder=new f.Encoder,this.decoder=new f.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(o){return arguments.length?(this._reconnection=!!o,o||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(o){return o===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=o,this)}reconnectionDelay(o){var r;return o===void 0?this._reconnectionDelay:(this._reconnectionDelay=o,(r=this.backoff)===null||r===void 0||r.setMin(o),this)}randomizationFactor(o){var r;return o===void 0?this._randomizationFactor:(this._randomizationFactor=o,(r=this.backoff)===null||r===void 0||r.setJitter(o),this)}reconnectionDelayMax(o){var r;return o===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=o,(r=this.backoff)===null||r===void 0||r.setMax(o),this)}timeout(o){return arguments.length?(this._timeout=o,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(o){if(~this._readyState.indexOf("open"))return this;this.engine=new qg(this.uri,this.opts);const r=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const f=En(r,"open",function(){l.onopen(),o&&o()}),p=y=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",y),o?o(y):this.maybeReconnectOnOpen()},g=En(r,"error",p);if(this._timeout!==!1){const y=this._timeout,w=this.setTimeoutFn(()=>{f(),p(new Error("timeout")),r.close()},y);this.opts.autoUnref&&w.unref(),this.subs.push(()=>{this.clearTimeoutFn(w)})}return this.subs.push(f),this.subs.push(g),this}connect(o){return this.open(o)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const o=this.engine;this.subs.push(En(o,"ping",this.onping.bind(this)),En(o,"data",this.ondata.bind(this)),En(o,"error",this.onerror.bind(this)),En(o,"close",this.onclose.bind(this)),En(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(o){try{this.decoder.add(o)}catch(r){this.onclose("parse error",r)}}ondecoded(o){mu(()=>{this.emitReserved("packet",o)},this.setTimeoutFn)}onerror(o){this.emitReserved("error",o)}socket(o,r){let l=this.nsps[o];return l?this._autoConnect&&!l.active&&l.connect():(l=new dm(this,o,r),this.nsps[o]=l),l}_destroy(o){const r=Object.keys(this.nsps);for(const l of r)if(this.nsps[l].active)return;this._close()}_packet(o){const r=this.encoder.encode(o);for(let l=0;l<r.length;l++)this.engine.write(r[l],o.options)}cleanup(){this.subs.forEach(o=>o()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(o,r){var l;this.cleanup(),(l=this.engine)===null||l===void 0||l.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",o,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const o=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const l=this.setTimeoutFn(()=>{o.skipReconnect||(this.emitReserved("reconnect_attempt",o.backoff.attempts),!o.skipReconnect&&o.open(f=>{f?(o._reconnecting=!1,o.reconnect(),this.emitReserved("reconnect_error",f)):o.onreconnect()}))},r);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}}onreconnect(){const o=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",o)}}const Ys={};function Ql(i,o){typeof i=="object"&&(o=i,i=void 0),o=o||{};const r=Gg(i,o.path||"/socket.io"),l=r.source,f=r.id,p=r.path,g=Ys[f]&&p in Ys[f].nsps,y=o.forceNew||o["force new connection"]||o.multiplex===!1||g;let w;return y?w=new wf(l,o):(Ys[f]||(Ys[f]=new wf(l,o)),w=Ys[f]),r.query&&!o.query&&(o.query=r.queryKey),w.socket(r.path,o)}Object.assign(Ql,{Manager:wf,Socket:dm,io:Ql,connect:Ql});function Go(i){let o=i.length;for(;--o>=0;)i[o]=0}const av=3,lv=258,pm=29,uv=256,cv=uv+1+pm,mm=30,fv=512,hv=new Array((cv+2)*2);Go(hv);const dv=new Array(mm*2);Go(dv);const pv=new Array(fv);Go(pv);const mv=new Array(lv-av+1);Go(mv);const _v=new Array(pm);Go(_v);const gv=new Array(mm);Go(gv);const vv=(i,o,r,l)=>{let f=i&65535|0,p=i>>>16&65535|0,g=0;for(;r!==0;){g=r>2e3?2e3:r,r-=g;do f=f+o[l++]|0,p=p+f|0;while(--g);f%=65521,p%=65521}return f|p<<16|0};var xf=vv;const yv=()=>{let i,o=[];for(var r=0;r<256;r++){i=r;for(var l=0;l<8;l++)i=i&1?3988292384^i>>>1:i>>>1;o[r]=i}return o},wv=new Uint32Array(yv()),xv=(i,o,r,l)=>{const f=wv,p=l+r;i^=-1;for(let g=l;g<p;g++)i=i>>>8^f[(i^o[g])&255];return i^-1};var Hn=xv,kf={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},_m={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const kv=(i,o)=>Object.prototype.hasOwnProperty.call(i,o);var Sv=function(i){const o=Array.prototype.slice.call(arguments,1);for(;o.length;){const r=o.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const l in r)kv(r,l)&&(i[l]=r[l])}}return i},Ev=i=>{let o=0;for(let l=0,f=i.length;l<f;l++)o+=i[l].length;const r=new Uint8Array(o);for(let l=0,f=0,p=i.length;l<p;l++){let g=i[l];r.set(g,f),f+=g.length}return r},gm={assign:Sv,flattenChunks:Ev};let vm=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{vm=!1}const oa=new Uint8Array(256);for(let i=0;i<256;i++)oa[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;oa[254]=oa[254]=1;var Pv=i=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(i);let o,r,l,f,p,g=i.length,y=0;for(f=0;f<g;f++)r=i.charCodeAt(f),(r&64512)===55296&&f+1<g&&(l=i.charCodeAt(f+1),(l&64512)===56320&&(r=65536+(r-55296<<10)+(l-56320),f++)),y+=r<128?1:r<2048?2:r<65536?3:4;for(o=new Uint8Array(y),p=0,f=0;p<y;f++)r=i.charCodeAt(f),(r&64512)===55296&&f+1<g&&(l=i.charCodeAt(f+1),(l&64512)===56320&&(r=65536+(r-55296<<10)+(l-56320),f++)),r<128?o[p++]=r:r<2048?(o[p++]=192|r>>>6,o[p++]=128|r&63):r<65536?(o[p++]=224|r>>>12,o[p++]=128|r>>>6&63,o[p++]=128|r&63):(o[p++]=240|r>>>18,o[p++]=128|r>>>12&63,o[p++]=128|r>>>6&63,o[p++]=128|r&63);return o};const Lv=(i,o)=>{if(o<65534&&i.subarray&&vm)return String.fromCharCode.apply(null,i.length===o?i:i.subarray(0,o));let r="";for(let l=0;l<o;l++)r+=String.fromCharCode(i[l]);return r};var Tv=(i,o)=>{const r=o||i.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(i.subarray(0,o));let l,f;const p=new Array(r*2);for(f=0,l=0;l<r;){let g=i[l++];if(g<128){p[f++]=g;continue}let y=oa[g];if(y>4){p[f++]=65533,l+=y-1;continue}for(g&=y===2?31:y===3?15:7;y>1&&l<r;)g=g<<6|i[l++]&63,y--;if(y>1){p[f++]=65533;continue}g<65536?p[f++]=g:(g-=65536,p[f++]=55296|g>>10&1023,p[f++]=56320|g&1023)}return Lv(p,f)},Cv=(i,o)=>{o=o||i.length,o>i.length&&(o=i.length);let r=o-1;for(;r>=0&&(i[r]&192)===128;)r--;return r<0||r===0?o:r+oa[i[r]]>o?r:o},Sf={string2buf:Pv,buf2string:Tv,utf8border:Cv};function Mv(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Av=Mv;const Fl=16209,Nv=16191;var Ov=function(o,r){let l,f,p,g,y,w,v,S,T,C,E,D,H,$,J,Q,tt,F,K,gt,Y,ct,ut,it;const q=o.state;l=o.next_in,ut=o.input,f=l+(o.avail_in-5),p=o.next_out,it=o.output,g=p-(r-o.avail_out),y=p+(o.avail_out-257),w=q.dmax,v=q.wsize,S=q.whave,T=q.wnext,C=q.window,E=q.hold,D=q.bits,H=q.lencode,$=q.distcode,J=(1<<q.lenbits)-1,Q=(1<<q.distbits)-1;t:do{D<15&&(E+=ut[l++]<<D,D+=8,E+=ut[l++]<<D,D+=8),tt=H[E&J];e:for(;;){if(F=tt>>>24,E>>>=F,D-=F,F=tt>>>16&255,F===0)it[p++]=tt&65535;else if(F&16){K=tt&65535,F&=15,F&&(D<F&&(E+=ut[l++]<<D,D+=8),K+=E&(1<<F)-1,E>>>=F,D-=F),D<15&&(E+=ut[l++]<<D,D+=8,E+=ut[l++]<<D,D+=8),tt=$[E&Q];n:for(;;){if(F=tt>>>24,E>>>=F,D-=F,F=tt>>>16&255,F&16){if(gt=tt&65535,F&=15,D<F&&(E+=ut[l++]<<D,D+=8,D<F&&(E+=ut[l++]<<D,D+=8)),gt+=E&(1<<F)-1,gt>w){o.msg="invalid distance too far back",q.mode=Fl;break t}if(E>>>=F,D-=F,F=p-g,gt>F){if(F=gt-F,F>S&&q.sane){o.msg="invalid distance too far back",q.mode=Fl;break t}if(Y=0,ct=C,T===0){if(Y+=v-F,F<K){K-=F;do it[p++]=C[Y++];while(--F);Y=p-gt,ct=it}}else if(T<F){if(Y+=v+T-F,F-=T,F<K){K-=F;do it[p++]=C[Y++];while(--F);if(Y=0,T<K){F=T,K-=F;do it[p++]=C[Y++];while(--F);Y=p-gt,ct=it}}}else if(Y+=T-F,F<K){K-=F;do it[p++]=C[Y++];while(--F);Y=p-gt,ct=it}for(;K>2;)it[p++]=ct[Y++],it[p++]=ct[Y++],it[p++]=ct[Y++],K-=3;K&&(it[p++]=ct[Y++],K>1&&(it[p++]=ct[Y++]))}else{Y=p-gt;do it[p++]=it[Y++],it[p++]=it[Y++],it[p++]=it[Y++],K-=3;while(K>2);K&&(it[p++]=it[Y++],K>1&&(it[p++]=it[Y++]))}}else if((F&64)===0){tt=$[(tt&65535)+(E&(1<<F)-1)];continue n}else{o.msg="invalid distance code",q.mode=Fl;break t}break}}else if((F&64)===0){tt=H[(tt&65535)+(E&(1<<F)-1)];continue e}else if(F&32){q.mode=Nv;break t}else{o.msg="invalid literal/length code",q.mode=Fl;break t}break}}while(l<f&&p<y);K=D>>3,l-=K,D-=K<<3,E&=(1<<D)-1,o.next_in=l,o.next_out=p,o.avail_in=l<f?5+(f-l):5-(l-f),o.avail_out=p<y?257+(y-p):257-(p-y),q.hold=E,q.bits=D};const Zo=15,qd=852,Gd=592,Kd=0,ef=1,Yd=2,zv=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Rv=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),bv=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Iv=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Bv=(i,o,r,l,f,p,g,y)=>{const w=y.bits;let v=0,S=0,T=0,C=0,E=0,D=0,H=0,$=0,J=0,Q=0,tt,F,K,gt,Y,ct=null,ut;const it=new Uint16Array(Zo+1),q=new Uint16Array(Zo+1);let yt=null,Mt,Ot,Ut;for(v=0;v<=Zo;v++)it[v]=0;for(S=0;S<l;S++)it[o[r+S]]++;for(E=w,C=Zo;C>=1&&it[C]===0;C--);if(E>C&&(E=C),C===0)return f[p++]=1<<24|64<<16|0,f[p++]=1<<24|64<<16|0,y.bits=1,0;for(T=1;T<C&&it[T]===0;T++);for(E<T&&(E=T),$=1,v=1;v<=Zo;v++)if($<<=1,$-=it[v],$<0)return-1;if($>0&&(i===Kd||C!==1))return-1;for(q[1]=0,v=1;v<Zo;v++)q[v+1]=q[v]+it[v];for(S=0;S<l;S++)o[r+S]!==0&&(g[q[o[r+S]]++]=S);if(i===Kd?(ct=yt=g,ut=20):i===ef?(ct=zv,yt=Rv,ut=257):(ct=bv,yt=Iv,ut=0),Q=0,S=0,v=T,Y=p,D=E,H=0,K=-1,J=1<<E,gt=J-1,i===ef&&J>qd||i===Yd&&J>Gd)return 1;for(;;){Mt=v-H,g[S]+1<ut?(Ot=0,Ut=g[S]):g[S]>=ut?(Ot=yt[g[S]-ut],Ut=ct[g[S]-ut]):(Ot=96,Ut=0),tt=1<<v-H,F=1<<D,T=F;do F-=tt,f[Y+(Q>>H)+F]=Mt<<24|Ot<<16|Ut|0;while(F!==0);for(tt=1<<v-1;Q&tt;)tt>>=1;if(tt!==0?(Q&=tt-1,Q+=tt):Q=0,S++,--it[v]===0){if(v===C)break;v=o[r+g[S]]}if(v>E&&(Q&gt)!==K){for(H===0&&(H=E),Y+=T,D=v-H,$=1<<D;D+H<C&&($-=it[D+H],!($<=0));)D++,$<<=1;if(J+=1<<D,i===ef&&J>qd||i===Yd&&J>Gd)return 1;K=Q&gt,f[K]=E<<24|D<<16|Y-p|0}}return Q!==0&&(f[Y+Q]=v-H<<24|64<<16|0),y.bits=E,0};var ra=Bv;const Dv=0,ym=1,wm=2,{Z_FINISH:Xd,Z_BLOCK:Fv,Z_TREES:Zl,Z_OK:Ur,Z_STREAM_END:Zv,Z_NEED_DICT:Hv,Z_STREAM_ERROR:hn,Z_DATA_ERROR:xm,Z_MEM_ERROR:km,Z_BUF_ERROR:Uv,Z_DEFLATED:Qd}=_m,gu=16180,Jd=16181,tp=16182,ep=16183,np=16184,ip=16185,rp=16186,op=16187,sp=16188,ap=16189,iu=16190,mi=16191,nf=16192,lp=16193,rf=16194,up=16195,cp=16196,fp=16197,hp=16198,Hl=16199,Ul=16200,dp=16201,pp=16202,mp=16203,_p=16204,gp=16205,of=16206,vp=16207,yp=16208,Xt=16209,Sm=16210,Em=16211,jv=852,Wv=592,Vv=15,$v=Vv,wp=i=>(i>>>24&255)+(i>>>8&65280)+((i&65280)<<8)+((i&255)<<24);function qv(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const $r=i=>{if(!i)return 1;const o=i.state;return!o||o.strm!==i||o.mode<gu||o.mode>Em?1:0},Pm=i=>{if($r(i))return hn;const o=i.state;return i.total_in=i.total_out=o.total=0,i.msg="",o.wrap&&(i.adler=o.wrap&1),o.mode=gu,o.last=0,o.havedict=0,o.flags=-1,o.dmax=32768,o.head=null,o.hold=0,o.bits=0,o.lencode=o.lendyn=new Int32Array(jv),o.distcode=o.distdyn=new Int32Array(Wv),o.sane=1,o.back=-1,Ur},Lm=i=>{if($r(i))return hn;const o=i.state;return o.wsize=0,o.whave=0,o.wnext=0,Pm(i)},Tm=(i,o)=>{let r;if($r(i))return hn;const l=i.state;return o<0?(r=0,o=-o):(r=(o>>4)+5,o<48&&(o&=15)),o&&(o<8||o>15)?hn:(l.window!==null&&l.wbits!==o&&(l.window=null),l.wrap=r,l.wbits=o,Lm(i))},Cm=(i,o)=>{if(!i)return hn;const r=new qv;i.state=r,r.strm=i,r.window=null,r.mode=gu;const l=Tm(i,o);return l!==Ur&&(i.state=null),l},Gv=i=>Cm(i,$v);let xp=!0,sf,af;const Kv=i=>{if(xp){sf=new Int32Array(512),af=new Int32Array(32);let o=0;for(;o<144;)i.lens[o++]=8;for(;o<256;)i.lens[o++]=9;for(;o<280;)i.lens[o++]=7;for(;o<288;)i.lens[o++]=8;for(ra(ym,i.lens,0,288,sf,0,i.work,{bits:9}),o=0;o<32;)i.lens[o++]=5;ra(wm,i.lens,0,32,af,0,i.work,{bits:5}),xp=!1}i.lencode=sf,i.lenbits=9,i.distcode=af,i.distbits=5},Mm=(i,o,r,l)=>{let f;const p=i.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new Uint8Array(p.wsize)),l>=p.wsize?(p.window.set(o.subarray(r-p.wsize,r),0),p.wnext=0,p.whave=p.wsize):(f=p.wsize-p.wnext,f>l&&(f=l),p.window.set(o.subarray(r-l,r-l+f),p.wnext),l-=f,l?(p.window.set(o.subarray(r-l,r),0),p.wnext=l,p.whave=p.wsize):(p.wnext+=f,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=f))),0},Yv=(i,o)=>{let r,l,f,p,g,y,w,v,S,T,C,E,D,H,$=0,J,Q,tt,F,K,gt,Y,ct;const ut=new Uint8Array(4);let it,q;const yt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if($r(i)||!i.output||!i.input&&i.avail_in!==0)return hn;r=i.state,r.mode===mi&&(r.mode=nf),g=i.next_out,f=i.output,w=i.avail_out,p=i.next_in,l=i.input,y=i.avail_in,v=r.hold,S=r.bits,T=y,C=w,ct=Ur;t:for(;;)switch(r.mode){case gu:if(r.wrap===0){r.mode=nf;break}for(;S<16;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}if(r.wrap&2&&v===35615){r.wbits===0&&(r.wbits=15),r.check=0,ut[0]=v&255,ut[1]=v>>>8&255,r.check=Hn(r.check,ut,2,0),v=0,S=0,r.mode=Jd;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((v&255)<<8)+(v>>8))%31){i.msg="incorrect header check",r.mode=Xt;break}if((v&15)!==Qd){i.msg="unknown compression method",r.mode=Xt;break}if(v>>>=4,S-=4,Y=(v&15)+8,r.wbits===0&&(r.wbits=Y),Y>15||Y>r.wbits){i.msg="invalid window size",r.mode=Xt;break}r.dmax=1<<r.wbits,r.flags=0,i.adler=r.check=1,r.mode=v&512?ap:mi,v=0,S=0;break;case Jd:for(;S<16;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}if(r.flags=v,(r.flags&255)!==Qd){i.msg="unknown compression method",r.mode=Xt;break}if(r.flags&57344){i.msg="unknown header flags set",r.mode=Xt;break}r.head&&(r.head.text=v>>8&1),r.flags&512&&r.wrap&4&&(ut[0]=v&255,ut[1]=v>>>8&255,r.check=Hn(r.check,ut,2,0)),v=0,S=0,r.mode=tp;case tp:for(;S<32;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}r.head&&(r.head.time=v),r.flags&512&&r.wrap&4&&(ut[0]=v&255,ut[1]=v>>>8&255,ut[2]=v>>>16&255,ut[3]=v>>>24&255,r.check=Hn(r.check,ut,4,0)),v=0,S=0,r.mode=ep;case ep:for(;S<16;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}r.head&&(r.head.xflags=v&255,r.head.os=v>>8),r.flags&512&&r.wrap&4&&(ut[0]=v&255,ut[1]=v>>>8&255,r.check=Hn(r.check,ut,2,0)),v=0,S=0,r.mode=np;case np:if(r.flags&1024){for(;S<16;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}r.length=v,r.head&&(r.head.extra_len=v),r.flags&512&&r.wrap&4&&(ut[0]=v&255,ut[1]=v>>>8&255,r.check=Hn(r.check,ut,2,0)),v=0,S=0}else r.head&&(r.head.extra=null);r.mode=ip;case ip:if(r.flags&1024&&(E=r.length,E>y&&(E=y),E&&(r.head&&(Y=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(l.subarray(p,p+E),Y)),r.flags&512&&r.wrap&4&&(r.check=Hn(r.check,l,E,p)),y-=E,p+=E,r.length-=E),r.length))break t;r.length=0,r.mode=rp;case rp:if(r.flags&2048){if(y===0)break t;E=0;do Y=l[p+E++],r.head&&Y&&r.length<65536&&(r.head.name+=String.fromCharCode(Y));while(Y&&E<y);if(r.flags&512&&r.wrap&4&&(r.check=Hn(r.check,l,E,p)),y-=E,p+=E,Y)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=op;case op:if(r.flags&4096){if(y===0)break t;E=0;do Y=l[p+E++],r.head&&Y&&r.length<65536&&(r.head.comment+=String.fromCharCode(Y));while(Y&&E<y);if(r.flags&512&&r.wrap&4&&(r.check=Hn(r.check,l,E,p)),y-=E,p+=E,Y)break t}else r.head&&(r.head.comment=null);r.mode=sp;case sp:if(r.flags&512){for(;S<16;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}if(r.wrap&4&&v!==(r.check&65535)){i.msg="header crc mismatch",r.mode=Xt;break}v=0,S=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),i.adler=r.check=0,r.mode=mi;break;case ap:for(;S<32;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}i.adler=r.check=wp(v),v=0,S=0,r.mode=iu;case iu:if(r.havedict===0)return i.next_out=g,i.avail_out=w,i.next_in=p,i.avail_in=y,r.hold=v,r.bits=S,Hv;i.adler=r.check=1,r.mode=mi;case mi:if(o===Fv||o===Zl)break t;case nf:if(r.last){v>>>=S&7,S-=S&7,r.mode=of;break}for(;S<3;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}switch(r.last=v&1,v>>>=1,S-=1,v&3){case 0:r.mode=lp;break;case 1:if(Kv(r),r.mode=Hl,o===Zl){v>>>=2,S-=2;break t}break;case 2:r.mode=cp;break;case 3:i.msg="invalid block type",r.mode=Xt}v>>>=2,S-=2;break;case lp:for(v>>>=S&7,S-=S&7;S<32;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}if((v&65535)!==(v>>>16^65535)){i.msg="invalid stored block lengths",r.mode=Xt;break}if(r.length=v&65535,v=0,S=0,r.mode=rf,o===Zl)break t;case rf:r.mode=up;case up:if(E=r.length,E){if(E>y&&(E=y),E>w&&(E=w),E===0)break t;f.set(l.subarray(p,p+E),g),y-=E,p+=E,w-=E,g+=E,r.length-=E;break}r.mode=mi;break;case cp:for(;S<14;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}if(r.nlen=(v&31)+257,v>>>=5,S-=5,r.ndist=(v&31)+1,v>>>=5,S-=5,r.ncode=(v&15)+4,v>>>=4,S-=4,r.nlen>286||r.ndist>30){i.msg="too many length or distance symbols",r.mode=Xt;break}r.have=0,r.mode=fp;case fp:for(;r.have<r.ncode;){for(;S<3;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}r.lens[yt[r.have++]]=v&7,v>>>=3,S-=3}for(;r.have<19;)r.lens[yt[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,it={bits:r.lenbits},ct=ra(Dv,r.lens,0,19,r.lencode,0,r.work,it),r.lenbits=it.bits,ct){i.msg="invalid code lengths set",r.mode=Xt;break}r.have=0,r.mode=hp;case hp:for(;r.have<r.nlen+r.ndist;){for(;$=r.lencode[v&(1<<r.lenbits)-1],J=$>>>24,Q=$>>>16&255,tt=$&65535,!(J<=S);){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}if(tt<16)v>>>=J,S-=J,r.lens[r.have++]=tt;else{if(tt===16){for(q=J+2;S<q;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}if(v>>>=J,S-=J,r.have===0){i.msg="invalid bit length repeat",r.mode=Xt;break}Y=r.lens[r.have-1],E=3+(v&3),v>>>=2,S-=2}else if(tt===17){for(q=J+3;S<q;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}v>>>=J,S-=J,Y=0,E=3+(v&7),v>>>=3,S-=3}else{for(q=J+7;S<q;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}v>>>=J,S-=J,Y=0,E=11+(v&127),v>>>=7,S-=7}if(r.have+E>r.nlen+r.ndist){i.msg="invalid bit length repeat",r.mode=Xt;break}for(;E--;)r.lens[r.have++]=Y}}if(r.mode===Xt)break;if(r.lens[256]===0){i.msg="invalid code -- missing end-of-block",r.mode=Xt;break}if(r.lenbits=9,it={bits:r.lenbits},ct=ra(ym,r.lens,0,r.nlen,r.lencode,0,r.work,it),r.lenbits=it.bits,ct){i.msg="invalid literal/lengths set",r.mode=Xt;break}if(r.distbits=6,r.distcode=r.distdyn,it={bits:r.distbits},ct=ra(wm,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,it),r.distbits=it.bits,ct){i.msg="invalid distances set",r.mode=Xt;break}if(r.mode=Hl,o===Zl)break t;case Hl:r.mode=Ul;case Ul:if(y>=6&&w>=258){i.next_out=g,i.avail_out=w,i.next_in=p,i.avail_in=y,r.hold=v,r.bits=S,Ov(i,C),g=i.next_out,f=i.output,w=i.avail_out,p=i.next_in,l=i.input,y=i.avail_in,v=r.hold,S=r.bits,r.mode===mi&&(r.back=-1);break}for(r.back=0;$=r.lencode[v&(1<<r.lenbits)-1],J=$>>>24,Q=$>>>16&255,tt=$&65535,!(J<=S);){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}if(Q&&(Q&240)===0){for(F=J,K=Q,gt=tt;$=r.lencode[gt+((v&(1<<F+K)-1)>>F)],J=$>>>24,Q=$>>>16&255,tt=$&65535,!(F+J<=S);){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}v>>>=F,S-=F,r.back+=F}if(v>>>=J,S-=J,r.back+=J,r.length=tt,Q===0){r.mode=gp;break}if(Q&32){r.back=-1,r.mode=mi;break}if(Q&64){i.msg="invalid literal/length code",r.mode=Xt;break}r.extra=Q&15,r.mode=dp;case dp:if(r.extra){for(q=r.extra;S<q;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}r.length+=v&(1<<r.extra)-1,v>>>=r.extra,S-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=pp;case pp:for(;$=r.distcode[v&(1<<r.distbits)-1],J=$>>>24,Q=$>>>16&255,tt=$&65535,!(J<=S);){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}if((Q&240)===0){for(F=J,K=Q,gt=tt;$=r.distcode[gt+((v&(1<<F+K)-1)>>F)],J=$>>>24,Q=$>>>16&255,tt=$&65535,!(F+J<=S);){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}v>>>=F,S-=F,r.back+=F}if(v>>>=J,S-=J,r.back+=J,Q&64){i.msg="invalid distance code",r.mode=Xt;break}r.offset=tt,r.extra=Q&15,r.mode=mp;case mp:if(r.extra){for(q=r.extra;S<q;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}r.offset+=v&(1<<r.extra)-1,v>>>=r.extra,S-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){i.msg="invalid distance too far back",r.mode=Xt;break}r.mode=_p;case _p:if(w===0)break t;if(E=C-w,r.offset>E){if(E=r.offset-E,E>r.whave&&r.sane){i.msg="invalid distance too far back",r.mode=Xt;break}E>r.wnext?(E-=r.wnext,D=r.wsize-E):D=r.wnext-E,E>r.length&&(E=r.length),H=r.window}else H=f,D=g-r.offset,E=r.length;E>w&&(E=w),w-=E,r.length-=E;do f[g++]=H[D++];while(--E);r.length===0&&(r.mode=Ul);break;case gp:if(w===0)break t;f[g++]=r.length,w--,r.mode=Ul;break;case of:if(r.wrap){for(;S<32;){if(y===0)break t;y--,v|=l[p++]<<S,S+=8}if(C-=w,i.total_out+=C,r.total+=C,r.wrap&4&&C&&(i.adler=r.check=r.flags?Hn(r.check,f,C,g-C):xf(r.check,f,C,g-C)),C=w,r.wrap&4&&(r.flags?v:wp(v))!==r.check){i.msg="incorrect data check",r.mode=Xt;break}v=0,S=0}r.mode=vp;case vp:if(r.wrap&&r.flags){for(;S<32;){if(y===0)break t;y--,v+=l[p++]<<S,S+=8}if(r.wrap&4&&v!==(r.total&4294967295)){i.msg="incorrect length check",r.mode=Xt;break}v=0,S=0}r.mode=yp;case yp:ct=Zv;break t;case Xt:ct=xm;break t;case Sm:return km;case Em:default:return hn}return i.next_out=g,i.avail_out=w,i.next_in=p,i.avail_in=y,r.hold=v,r.bits=S,(r.wsize||C!==i.avail_out&&r.mode<Xt&&(r.mode<of||o!==Xd))&&Mm(i,i.output,i.next_out,C-i.avail_out),T-=i.avail_in,C-=i.avail_out,i.total_in+=T,i.total_out+=C,r.total+=C,r.wrap&4&&C&&(i.adler=r.check=r.flags?Hn(r.check,f,C,i.next_out-C):xf(r.check,f,C,i.next_out-C)),i.data_type=r.bits+(r.last?64:0)+(r.mode===mi?128:0)+(r.mode===Hl||r.mode===rf?256:0),(T===0&&C===0||o===Xd)&&ct===Ur&&(ct=Uv),ct},Xv=i=>{if($r(i))return hn;let o=i.state;return o.window&&(o.window=null),i.state=null,Ur},Qv=(i,o)=>{if($r(i))return hn;const r=i.state;return(r.wrap&2)===0?hn:(r.head=o,o.done=!1,Ur)},Jv=(i,o)=>{const r=o.length;let l,f,p;return $r(i)||(l=i.state,l.wrap!==0&&l.mode!==iu)?hn:l.mode===iu&&(f=1,f=xf(f,o,r,0),f!==l.check)?xm:(p=Mm(i,o,r,r),p?(l.mode=Sm,km):(l.havedict=1,Ur))};var ty=Lm,ey=Tm,ny=Pm,iy=Gv,ry=Cm,oy=Yv,sy=Xv,ay=Qv,ly=Jv,uy="pako inflate (from Nodeca project)",gi={inflateReset:ty,inflateReset2:ey,inflateResetKeep:ny,inflateInit:iy,inflateInit2:ry,inflate:oy,inflateEnd:sy,inflateGetHeader:ay,inflateSetDictionary:ly,inflateInfo:uy};function cy(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var fy=cy;const Am=Object.prototype.toString,{Z_NO_FLUSH:hy,Z_FINISH:dy,Z_OK:sa,Z_STREAM_END:lf,Z_NEED_DICT:uf,Z_STREAM_ERROR:py,Z_DATA_ERROR:kp,Z_MEM_ERROR:my}=_m;function vu(i){this.options=gm.assign({chunkSize:1024*64,windowBits:15,to:""},i||{});const o=this.options;o.raw&&o.windowBits>=0&&o.windowBits<16&&(o.windowBits=-o.windowBits,o.windowBits===0&&(o.windowBits=-15)),o.windowBits>=0&&o.windowBits<16&&!(i&&i.windowBits)&&(o.windowBits+=32),o.windowBits>15&&o.windowBits<48&&(o.windowBits&15)===0&&(o.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Av,this.strm.avail_out=0;let r=gi.inflateInit2(this.strm,o.windowBits);if(r!==sa)throw new Error(kf[r]);if(this.header=new fy,gi.inflateGetHeader(this.strm,this.header),o.dictionary&&(typeof o.dictionary=="string"?o.dictionary=Sf.string2buf(o.dictionary):Am.call(o.dictionary)==="[object ArrayBuffer]"&&(o.dictionary=new Uint8Array(o.dictionary)),o.raw&&(r=gi.inflateSetDictionary(this.strm,o.dictionary),r!==sa)))throw new Error(kf[r])}vu.prototype.push=function(i,o){const r=this.strm,l=this.options.chunkSize,f=this.options.dictionary;let p,g,y;if(this.ended)return!1;for(o===~~o?g=o:g=o===!0?dy:hy,Am.call(i)==="[object ArrayBuffer]"?r.input=new Uint8Array(i):r.input=i,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(l),r.next_out=0,r.avail_out=l),p=gi.inflate(r,g),p===uf&&f&&(p=gi.inflateSetDictionary(r,f),p===sa?p=gi.inflate(r,g):p===kp&&(p=uf));r.avail_in>0&&p===lf&&r.state.wrap>0&&i[r.next_in]!==0;)gi.inflateReset(r),p=gi.inflate(r,g);switch(p){case py:case kp:case uf:case my:return this.onEnd(p),this.ended=!0,!1}if(y=r.avail_out,r.next_out&&(r.avail_out===0||p===lf))if(this.options.to==="string"){let w=Sf.utf8border(r.output,r.next_out),v=r.next_out-w,S=Sf.buf2string(r.output,w);r.next_out=v,r.avail_out=l-v,v&&r.output.set(r.output.subarray(w,w+v),0),this.onData(S)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(p===sa&&y===0)){if(p===lf)return p=gi.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};vu.prototype.onData=function(i){this.chunks.push(i)};vu.prototype.onEnd=function(i){i===sa&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=gm.flattenChunks(this.chunks)),this.chunks=[],this.err=i,this.msg=this.strm.msg};function _y(i,o){const r=new vu(o);if(r.push(i),r.err)throw r.msg||kf[r.err];return r.result}var gy=_y,vy={inflate:gy};const{inflate:yy}=vy;var Sp=yy;class wy{constructor(){this.fullGrid=null,this.shape=[0,0]}decode(o){return o.update_type==="full"?this.decodeFull(o):this.decodeDelta(o)}decodeFull(o){if(!o.data)throw new Error("Missing data for full update");const r=atob(o.data),l=new Uint8Array(r.length);for(let g=0;g<r.length;g++)l[g]=r.charCodeAt(g);let f;o.compressed&&o.compression==="zlib"?f=Sp(l):f=l,this.fullGrid=f,this.shape=o.shape;const p=new Float32Array(f.length);for(let g=0;g<f.length;g++){const y=f[g];p[g]=y===255?-1:y}return p}decodeDelta(o){if(!this.fullGrid){console.warn("No full grid available for delta update - skipping until full update arrives");const l=o.shape[0]*o.shape[1];return new Float32Array(l).fill(-1)}if(!o.chunks)throw new Error("Missing chunks for delta update");for(const l of o.chunks){const[f,p]=l.pos,[g,y]=l.size,w=atob(l.data),v=new Uint8Array(w.length);for(let E=0;E<w.length;E++)v[E]=w.charCodeAt(E);let S;o.compressed&&o.compression==="zlib"?S=Sp(v):S=v;const T=this.shape[1];let C=0;for(let E=0;E<g;E++)for(let D=0;D<y;D++){const H=(f+E)*T+(p+D),$=S[C++];$!==void 0&&(this.fullGrid[H]=$)}}const r=new Float32Array(this.fullGrid.length);for(let l=0;l<this.fullGrid.length;l++){const f=this.fullGrid[l];r[l]=f===255?-1:f}return r}getShape(){return this.shape}}class aa{constructor(...o){this.coords=o}static decode(o){return new aa(...o.c)}}let Ep=class Nm{constructor(o){this.coords=o}static decode(o){return new Nm(o.points)}};const Fr=class Fr{constructor(o,r,l,f){this.grid=o,this.origin=r,this.resolution=l,this.origin_theta=f,this.grid=o,this.origin=r,this.resolution=l,this.origin_theta=f}static decode(o){Fr.decoder||(Fr.decoder=new wy);const r=Fr.decoder.decode(o.grid),l=o.grid.shape,f=new xy(r,l);return new Fr(f,aa.decode(o.origin),o.resolution,o.origin_theta)}};Fr.decoder=null;let ru=Fr;class xy{constructor(o,r){this.data=o,this.shape=r}}class ky{constructor(o){this.dispatch=o,this.socket=Ql("ws://localhost:7779"),this.socket.on("costmap",r=>{const l=ru.decode(r);this.dispatch({type:"SET_COSTMAP",payload:l})}),this.socket.on("robot_pose",r=>{const l=aa.decode(r);this.dispatch({type:"SET_ROBOT_POSE",payload:l})}),this.socket.on("gps_location",r=>{this.dispatch({type:"SET_GPS_LOCATION",payload:r})}),this.socket.on("gps_travel_goal_points",r=>{this.dispatch({type:"SET_GPS_TRAVEL_GOAL_POINTS",payload:r})}),this.socket.on("path",r=>{const l=Ep.decode(r);this.dispatch({type:"SET_PATH",payload:l})}),this.socket.on("full_state",r=>{const l={};r.costmap!=null&&(l.costmap=ru.decode(r.costmap)),r.robot_pose!=null&&(l.robotPose=aa.decode(r.robot_pose)),r.gps_location!=null&&(l.gpsLocation=r.gps_location),r.path!=null&&(l.path=Ep.decode(r.path)),this.dispatch({type:"SET_FULL_STATE",payload:l})})}worldClick(o,r){this.socket.emit("click",[o,r])}startExplore(){this.socket.emit("start_explore")}stopExplore(){this.socket.emit("stop_explore")}sendMoveCommand(o,r){const l={linear:{x:o[0],y:o[1],z:o[2]},angular:{x:r[0],y:r[1],z:r[2]}};this.socket.emit("move_command",l)}sendGpsGoal(o){this.socket.emit("gps_goal",o)}stopMoveCommand(){const o={linear:{x:0,y:0,z:0},angular:{x:0,y:0,z:0}};this.socket.emit("move_command",o)}disconnect(){this.socket.disconnect()}}function jr({onClick:i,isActive:o,children:r}){return ot.jsx("button",{onClick:i,style:{backgroundColor:o?"#ff4444":"#4CAF50",color:"white",padding:"5px 10px",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"14px"},children:r})}function Sy({onStartExplore:i,onStopExplore:o}){const[r,l]=rt.useState(!1);return ot.jsx("div",{children:r?ot.jsx(jr,{onClick:()=>{o(),l(!1)},isActive:!0,children:"Stop Exploration"}):ot.jsx(jr,{onClick:()=>{i(),l(!0)},isActive:!1,children:"Start Exploration"})})}function Ey({onUseGps:i,onUseCostmap:o}){const[r,l]=rt.useState(!1);return ot.jsx("div",{children:r?ot.jsx(jr,{onClick:()=>{o(),l(!1)},isActive:!0,children:"Use Costmap"}):ot.jsx(jr,{onClick:()=>{i(),l(!0)},isActive:!1,children:"Use GPS"})})}const jl=.5,Wl=.8,Py=10,Pp=new Set(["w","a","s","d","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," ","Shift","Control"]);function Lp(i){if(!(i instanceof HTMLElement))return!1;const o=i.tagName;return o==="INPUT"||o==="TEXTAREA"||i.isContentEditable}function Ly(i){let o=0,r=0,l=0,f=0,p=1;return i.has("Shift")?p=2:i.has("Control")&&(p=.5),i.has(" ")?{linearX:0,linearY:0,angularY:0,angularZ:0}:(i.has("w")?o=jl*p:i.has("s")&&(o=-jl*p),i.has("a")?f=Wl*p:i.has("d")&&(f=-Wl*p),i.has("ArrowLeft")?r=jl*p:i.has("ArrowRight")&&(r=-jl*p),i.has("ArrowUp")?l=Wl*p:i.has("ArrowDown")&&(l=-Wl*p),{linearX:o,linearY:r,angularY:l,angularZ:f})}function Ty({onSendMoveCommand:i,onStopMoveCommand:o}){const[r,l]=rt.useState(!1),f=rt.useRef(new Set),p=rt.useRef(null),g=rt.useCallback(v=>{const S=v.key.length===1?v.key.toLowerCase():v.key;!Pp.has(S)||Lp(v.target)||(v.preventDefault(),v.stopPropagation(),f.current.add(S))},[]),y=rt.useCallback(v=>{const S=v.key.length===1?v.key.toLowerCase():v.key;!Pp.has(S)||Lp(v.target)||f.current.delete(S)},[]);rt.useEffect(()=>{if(f.current.clear(),!!r)return document.addEventListener("keydown",g),document.addEventListener("keyup",y),p.current=setInterval(()=>{const v=Ly(f.current);i([v.linearX,v.linearY,0],[0,v.angularY,v.angularZ])},1e3/Py),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",y),p.current&&(clearInterval(p.current),p.current=null),f.current.clear(),o()}},[r,g,y,i,o]);const w=()=>{r?(f.current.clear(),l(!1)):l(!0)};return rt.useEffect(()=>{const v=()=>{r&&(f.current.clear(),l(!1))},S=()=>{f.current.clear()};return window.addEventListener("blur",v),window.addEventListener("focus",S),()=>{window.removeEventListener("blur",v),window.removeEventListener("focus",S)}},[r]),ot.jsxs("div",{children:[r&&ot.jsxs("div",{style:{marginTop:10,fontSize:12,color:"#666"},children:[ot.jsx("div",{children:"Controls:"}),ot.jsx("div",{children:"W/S: Forward/Backward | A/D: Turn"}),ot.jsx("div",{children:"Arrows: Strafe/Pitch | Space: Stop"}),ot.jsx("div",{children:"Shift: Boost | Ctrl: Slow"})]}),ot.jsx(jr,{isActive:r,onClick:w,children:r?"Stop Keyboard Control":"Start Keyboard Control"})]})}function Jl(i,o){return i==null||o==null?NaN:i<o?-1:i>o?1:i>=o?0:NaN}function Cy(i,o){return i==null||o==null?NaN:o<i?-1:o>i?1:o>=i?0:NaN}function Om(i){let o,r,l;i.length!==2?(o=Jl,r=(y,w)=>Jl(i(y),w),l=(y,w)=>i(y)-w):(o=i===Jl||i===Cy?i:My,r=i,l=i);function f(y,w,v=0,S=y.length){if(v<S){if(o(w,w)!==0)return S;do{const T=v+S>>>1;r(y[T],w)<0?v=T+1:S=T}while(v<S)}return v}function p(y,w,v=0,S=y.length){if(v<S){if(o(w,w)!==0)return S;do{const T=v+S>>>1;r(y[T],w)<=0?v=T+1:S=T}while(v<S)}return v}function g(y,w,v=0,S=y.length){const T=f(y,w,v,S-1);return T>v&&l(y[T-1],w)>-l(y[T],w)?T-1:T}return{left:f,center:g,right:p}}function My(){return 0}function Ay(i){return i===null?NaN:+i}const Ny=Om(Jl),Oy=Ny.right;Om(Ay).center;const zy=Math.sqrt(50),Ry=Math.sqrt(10),by=Math.sqrt(2);function ou(i,o,r){const l=(o-i)/Math.max(0,r),f=Math.floor(Math.log10(l)),p=l/Math.pow(10,f),g=p>=zy?10:p>=Ry?5:p>=by?2:1;let y,w,v;return f<0?(v=Math.pow(10,-f)/g,y=Math.round(i*v),w=Math.round(o*v),y/v<i&&++y,w/v>o&&--w,v=-v):(v=Math.pow(10,f)*g,y=Math.round(i/v),w=Math.round(o/v),y*v<i&&++y,w*v>o&&--w),w<y&&.5<=r&&r<2?ou(i,o,r*2):[y,w,v]}function Iy(i,o,r){if(o=+o,i=+i,r=+r,!(r>0))return[];if(i===o)return[i];const l=o<i,[f,p,g]=l?ou(o,i,r):ou(i,o,r);if(!(p>=f))return[];const y=p-f+1,w=new Array(y);if(l)if(g<0)for(let v=0;v<y;++v)w[v]=(p-v)/-g;else for(let v=0;v<y;++v)w[v]=(p-v)*g;else if(g<0)for(let v=0;v<y;++v)w[v]=(f+v)/-g;else for(let v=0;v<y;++v)w[v]=(f+v)*g;return w}function Ef(i,o,r){return o=+o,i=+i,r=+r,ou(i,o,r)[2]}function By(i,o,r){o=+o,i=+i,r=+r;const l=o<i,f=l?Ef(o,i,r):Ef(i,o,r);return(l?-1:1)*(f<0?1/-f:f)}function Tp(i,o,r){i=+i,o=+o,r=(f=arguments.length)<2?(o=i,i=0,1):f<3?1:+r;for(var l=-1,f=Math.max(0,Math.ceil((o-i)/r))|0,p=new Array(f);++l<f;)p[l]=i+l*r;return p}function Dy(i){return i}var cf=1,ff=2,Pf=3,Js=4,Cp=1e-6;function Fy(i){return"translate("+i+",0)"}function Zy(i){return"translate(0,"+i+")"}function Hy(i){return o=>+i(o)}function Uy(i,o){return o=Math.max(0,i.bandwidth()-o*2)/2,i.round()&&(o=Math.round(o)),r=>+i(r)+o}function jy(){return!this.__axis}function zm(i,o){var r=[],l=null,f=null,p=6,g=6,y=3,w=typeof window<"u"&&window.devicePixelRatio>1?0:.5,v=i===cf||i===Js?-1:1,S=i===Js||i===ff?"x":"y",T=i===cf||i===Pf?Fy:Zy;function C(E){var D=l??(o.ticks?o.ticks.apply(o,r):o.domain()),H=f??(o.tickFormat?o.tickFormat.apply(o,r):Dy),$=Math.max(p,0)+y,J=o.range(),Q=+J[0]+w,tt=+J[J.length-1]+w,F=(o.bandwidth?Uy:Hy)(o.copy(),w),K=E.selection?E.selection():E,gt=K.selectAll(".domain").data([null]),Y=K.selectAll(".tick").data(D,o).order(),ct=Y.exit(),ut=Y.enter().append("g").attr("class","tick"),it=Y.select("line"),q=Y.select("text");gt=gt.merge(gt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Y=Y.merge(ut),it=it.merge(ut.append("line").attr("stroke","currentColor").attr(S+"2",v*p)),q=q.merge(ut.append("text").attr("fill","currentColor").attr(S,v*$).attr("dy",i===cf?"0em":i===Pf?"0.71em":"0.32em")),E!==K&&(gt=gt.transition(E),Y=Y.transition(E),it=it.transition(E),q=q.transition(E),ct=ct.transition(E).attr("opacity",Cp).attr("transform",function(yt){return isFinite(yt=F(yt))?T(yt+w):this.getAttribute("transform")}),ut.attr("opacity",Cp).attr("transform",function(yt){var Mt=this.parentNode.__axis;return T((Mt&&isFinite(Mt=Mt(yt))?Mt:F(yt))+w)})),ct.remove(),gt.attr("d",i===Js||i===ff?g?"M"+v*g+","+Q+"H"+w+"V"+tt+"H"+v*g:"M"+w+","+Q+"V"+tt:g?"M"+Q+","+v*g+"V"+w+"H"+tt+"V"+v*g:"M"+Q+","+w+"H"+tt),Y.attr("opacity",1).attr("transform",function(yt){return T(F(yt)+w)}),it.attr(S+"2",v*p),q.attr(S,v*$).text(H),K.filter(jy).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",i===ff?"start":i===Js?"end":"middle"),K.each(function(){this.__axis=F})}return C.scale=function(E){return arguments.length?(o=E,C):o},C.ticks=function(){return r=Array.from(arguments),C},C.tickArguments=function(E){return arguments.length?(r=E==null?[]:Array.from(E),C):r.slice()},C.tickValues=function(E){return arguments.length?(l=E==null?null:Array.from(E),C):l&&l.slice()},C.tickFormat=function(E){return arguments.length?(f=E,C):f},C.tickSize=function(E){return arguments.length?(p=g=+E,C):p},C.tickSizeInner=function(E){return arguments.length?(p=+E,C):p},C.tickSizeOuter=function(E){return arguments.length?(g=+E,C):g},C.tickPadding=function(E){return arguments.length?(y=+E,C):y},C.offset=function(E){return arguments.length?(w=+E,C):w},C}function Wy(i){return zm(Pf,i)}function Vy(i){return zm(Js,i)}var $y={value:()=>{}};function Rm(){for(var i=0,o=arguments.length,r={},l;i<o;++i){if(!(l=arguments[i]+"")||l in r||/[\s.]/.test(l))throw new Error("illegal type: "+l);r[l]=[]}return new tu(r)}function tu(i){this._=i}function qy(i,o){return i.trim().split(/^|\s+/).map(function(r){var l="",f=r.indexOf(".");if(f>=0&&(l=r.slice(f+1),r=r.slice(0,f)),r&&!o.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:l}})}tu.prototype=Rm.prototype={constructor:tu,on:function(i,o){var r=this._,l=qy(i+"",r),f,p=-1,g=l.length;if(arguments.length<2){for(;++p<g;)if((f=(i=l[p]).type)&&(f=Gy(r[f],i.name)))return f;return}if(o!=null&&typeof o!="function")throw new Error("invalid callback: "+o);for(;++p<g;)if(f=(i=l[p]).type)r[f]=Mp(r[f],i.name,o);else if(o==null)for(f in r)r[f]=Mp(r[f],i.name,null);return this},copy:function(){var i={},o=this._;for(var r in o)i[r]=o[r].slice();return new tu(i)},call:function(i,o){if((f=arguments.length-2)>0)for(var r=new Array(f),l=0,f,p;l<f;++l)r[l]=arguments[l+2];if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(p=this._[i],l=0,f=p.length;l<f;++l)p[l].value.apply(o,r)},apply:function(i,o,r){if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(var l=this._[i],f=0,p=l.length;f<p;++f)l[f].value.apply(o,r)}};function Gy(i,o){for(var r=0,l=i.length,f;r<l;++r)if((f=i[r]).name===o)return f.value}function Mp(i,o,r){for(var l=0,f=i.length;l<f;++l)if(i[l].name===o){i[l]=$y,i=i.slice(0,l).concat(i.slice(l+1));break}return r!=null&&i.push({name:o,value:r}),i}var Lf="http://www.w3.org/1999/xhtml";const Ap={svg:"http://www.w3.org/2000/svg",xhtml:Lf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function yu(i){var o=i+="",r=o.indexOf(":");return r>=0&&(o=i.slice(0,r))!=="xmlns"&&(i=i.slice(r+1)),Ap.hasOwnProperty(o)?{space:Ap[o],local:i}:i}function Ky(i){return function(){var o=this.ownerDocument,r=this.namespaceURI;return r===Lf&&o.documentElement.namespaceURI===Lf?o.createElement(i):o.createElementNS(r,i)}}function Yy(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function bm(i){var o=yu(i);return(o.local?Yy:Ky)(o)}function Xy(){}function jf(i){return i==null?Xy:function(){return this.querySelector(i)}}function Qy(i){typeof i!="function"&&(i=jf(i));for(var o=this._groups,r=o.length,l=new Array(r),f=0;f<r;++f)for(var p=o[f],g=p.length,y=l[f]=new Array(g),w,v,S=0;S<g;++S)(w=p[S])&&(v=i.call(w,w.__data__,S,p))&&("__data__"in w&&(v.__data__=w.__data__),y[S]=v);return new Xe(l,this._parents)}function Jy(i){return i==null?[]:Array.isArray(i)?i:Array.from(i)}function t0(){return[]}function Im(i){return i==null?t0:function(){return this.querySelectorAll(i)}}function e0(i){return function(){return Jy(i.apply(this,arguments))}}function n0(i){typeof i=="function"?i=e0(i):i=Im(i);for(var o=this._groups,r=o.length,l=[],f=[],p=0;p<r;++p)for(var g=o[p],y=g.length,w,v=0;v<y;++v)(w=g[v])&&(l.push(i.call(w,w.__data__,v,g)),f.push(w));return new Xe(l,f)}function Bm(i){return function(){return this.matches(i)}}function Dm(i){return function(o){return o.matches(i)}}var i0=Array.prototype.find;function r0(i){return function(){return i0.call(this.children,i)}}function o0(){return this.firstElementChild}function s0(i){return this.select(i==null?o0:r0(typeof i=="function"?i:Dm(i)))}var a0=Array.prototype.filter;function l0(){return Array.from(this.children)}function u0(i){return function(){return a0.call(this.children,i)}}function c0(i){return this.selectAll(i==null?l0:u0(typeof i=="function"?i:Dm(i)))}function f0(i){typeof i!="function"&&(i=Bm(i));for(var o=this._groups,r=o.length,l=new Array(r),f=0;f<r;++f)for(var p=o[f],g=p.length,y=l[f]=[],w,v=0;v<g;++v)(w=p[v])&&i.call(w,w.__data__,v,p)&&y.push(w);return new Xe(l,this._parents)}function Fm(i){return new Array(i.length)}function h0(){return new Xe(this._enter||this._groups.map(Fm),this._parents)}function su(i,o){this.ownerDocument=i.ownerDocument,this.namespaceURI=i.namespaceURI,this._next=null,this._parent=i,this.__data__=o}su.prototype={constructor:su,appendChild:function(i){return this._parent.insertBefore(i,this._next)},insertBefore:function(i,o){return this._parent.insertBefore(i,o)},querySelector:function(i){return this._parent.querySelector(i)},querySelectorAll:function(i){return this._parent.querySelectorAll(i)}};function d0(i){return function(){return i}}function p0(i,o,r,l,f,p){for(var g=0,y,w=o.length,v=p.length;g<v;++g)(y=o[g])?(y.__data__=p[g],l[g]=y):r[g]=new su(i,p[g]);for(;g<w;++g)(y=o[g])&&(f[g]=y)}function m0(i,o,r,l,f,p,g){var y,w,v=new Map,S=o.length,T=p.length,C=new Array(S),E;for(y=0;y<S;++y)(w=o[y])&&(C[y]=E=g.call(w,w.__data__,y,o)+"",v.has(E)?f[y]=w:v.set(E,w));for(y=0;y<T;++y)E=g.call(i,p[y],y,p)+"",(w=v.get(E))?(l[y]=w,w.__data__=p[y],v.delete(E)):r[y]=new su(i,p[y]);for(y=0;y<S;++y)(w=o[y])&&v.get(C[y])===w&&(f[y]=w)}function _0(i){return i.__data__}function g0(i,o){if(!arguments.length)return Array.from(this,_0);var r=o?m0:p0,l=this._parents,f=this._groups;typeof i!="function"&&(i=d0(i));for(var p=f.length,g=new Array(p),y=new Array(p),w=new Array(p),v=0;v<p;++v){var S=l[v],T=f[v],C=T.length,E=v0(i.call(S,S&&S.__data__,v,l)),D=E.length,H=y[v]=new Array(D),$=g[v]=new Array(D),J=w[v]=new Array(C);r(S,T,H,$,J,E,o);for(var Q=0,tt=0,F,K;Q<D;++Q)if(F=H[Q]){for(Q>=tt&&(tt=Q+1);!(K=$[tt])&&++tt<D;);F._next=K||null}}return g=new Xe(g,l),g._enter=y,g._exit=w,g}function v0(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function y0(){return new Xe(this._exit||this._groups.map(Fm),this._parents)}function w0(i,o,r){var l=this.enter(),f=this,p=this.exit();return typeof i=="function"?(l=i(l),l&&(l=l.selection())):l=l.append(i+""),o!=null&&(f=o(f),f&&(f=f.selection())),r==null?p.remove():r(p),l&&f?l.merge(f).order():f}function x0(i){for(var o=i.selection?i.selection():i,r=this._groups,l=o._groups,f=r.length,p=l.length,g=Math.min(f,p),y=new Array(f),w=0;w<g;++w)for(var v=r[w],S=l[w],T=v.length,C=y[w]=new Array(T),E,D=0;D<T;++D)(E=v[D]||S[D])&&(C[D]=E);for(;w<f;++w)y[w]=r[w];return new Xe(y,this._parents)}function k0(){for(var i=this._groups,o=-1,r=i.length;++o<r;)for(var l=i[o],f=l.length-1,p=l[f],g;--f>=0;)(g=l[f])&&(p&&g.compareDocumentPosition(p)^4&&p.parentNode.insertBefore(g,p),p=g);return this}function S0(i){i||(i=E0);function o(T,C){return T&&C?i(T.__data__,C.__data__):!T-!C}for(var r=this._groups,l=r.length,f=new Array(l),p=0;p<l;++p){for(var g=r[p],y=g.length,w=f[p]=new Array(y),v,S=0;S<y;++S)(v=g[S])&&(w[S]=v);w.sort(o)}return new Xe(f,this._parents).order()}function E0(i,o){return i<o?-1:i>o?1:i>=o?0:NaN}function P0(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this}function L0(){return Array.from(this)}function T0(){for(var i=this._groups,o=0,r=i.length;o<r;++o)for(var l=i[o],f=0,p=l.length;f<p;++f){var g=l[f];if(g)return g}return null}function C0(){let i=0;for(const o of this)++i;return i}function M0(){return!this.node()}function A0(i){for(var o=this._groups,r=0,l=o.length;r<l;++r)for(var f=o[r],p=0,g=f.length,y;p<g;++p)(y=f[p])&&i.call(y,y.__data__,p,f);return this}function N0(i){return function(){this.removeAttribute(i)}}function O0(i){return function(){this.removeAttributeNS(i.space,i.local)}}function z0(i,o){return function(){this.setAttribute(i,o)}}function R0(i,o){return function(){this.setAttributeNS(i.space,i.local,o)}}function b0(i,o){return function(){var r=o.apply(this,arguments);r==null?this.removeAttribute(i):this.setAttribute(i,r)}}function I0(i,o){return function(){var r=o.apply(this,arguments);r==null?this.removeAttributeNS(i.space,i.local):this.setAttributeNS(i.space,i.local,r)}}function B0(i,o){var r=yu(i);if(arguments.length<2){var l=this.node();return r.local?l.getAttributeNS(r.space,r.local):l.getAttribute(r)}return this.each((o==null?r.local?O0:N0:typeof o=="function"?r.local?I0:b0:r.local?R0:z0)(r,o))}function Zm(i){return i.ownerDocument&&i.ownerDocument.defaultView||i.document&&i||i.defaultView}function D0(i){return function(){this.style.removeProperty(i)}}function F0(i,o,r){return function(){this.style.setProperty(i,o,r)}}function Z0(i,o,r){return function(){var l=o.apply(this,arguments);l==null?this.style.removeProperty(i):this.style.setProperty(i,l,r)}}function H0(i,o,r){return arguments.length>1?this.each((o==null?D0:typeof o=="function"?Z0:F0)(i,o,r??"")):Wo(this.node(),i)}function Wo(i,o){return i.style.getPropertyValue(o)||Zm(i).getComputedStyle(i,null).getPropertyValue(o)}function U0(i){return function(){delete this[i]}}function j0(i,o){return function(){this[i]=o}}function W0(i,o){return function(){var r=o.apply(this,arguments);r==null?delete this[i]:this[i]=r}}function V0(i,o){return arguments.length>1?this.each((o==null?U0:typeof o=="function"?W0:j0)(i,o)):this.node()[i]}function Hm(i){return i.trim().split(/^|\s+/)}function Wf(i){return i.classList||new Um(i)}function Um(i){this._node=i,this._names=Hm(i.getAttribute("class")||"")}Um.prototype={add:function(i){var o=this._names.indexOf(i);o<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var o=this._names.indexOf(i);o>=0&&(this._names.splice(o,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};function jm(i,o){for(var r=Wf(i),l=-1,f=o.length;++l<f;)r.add(o[l])}function Wm(i,o){for(var r=Wf(i),l=-1,f=o.length;++l<f;)r.remove(o[l])}function $0(i){return function(){jm(this,i)}}function q0(i){return function(){Wm(this,i)}}function G0(i,o){return function(){(o.apply(this,arguments)?jm:Wm)(this,i)}}function K0(i,o){var r=Hm(i+"");if(arguments.length<2){for(var l=Wf(this.node()),f=-1,p=r.length;++f<p;)if(!l.contains(r[f]))return!1;return!0}return this.each((typeof o=="function"?G0:o?$0:q0)(r,o))}function Y0(){this.textContent=""}function X0(i){return function(){this.textContent=i}}function Q0(i){return function(){var o=i.apply(this,arguments);this.textContent=o??""}}function J0(i){return arguments.length?this.each(i==null?Y0:(typeof i=="function"?Q0:X0)(i)):this.node().textContent}function tw(){this.innerHTML=""}function ew(i){return function(){this.innerHTML=i}}function nw(i){return function(){var o=i.apply(this,arguments);this.innerHTML=o??""}}function iw(i){return arguments.length?this.each(i==null?tw:(typeof i=="function"?nw:ew)(i)):this.node().innerHTML}function rw(){this.nextSibling&&this.parentNode.appendChild(this)}function ow(){return this.each(rw)}function sw(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function aw(){return this.each(sw)}function lw(i){var o=typeof i=="function"?i:bm(i);return this.select(function(){return this.appendChild(o.apply(this,arguments))})}function uw(){return null}function cw(i,o){var r=typeof i=="function"?i:bm(i),l=o==null?uw:typeof o=="function"?o:jf(o);return this.select(function(){return this.insertBefore(r.apply(this,arguments),l.apply(this,arguments)||null)})}function fw(){var i=this.parentNode;i&&i.removeChild(this)}function hw(){return this.each(fw)}function dw(){var i=this.cloneNode(!1),o=this.parentNode;return o?o.insertBefore(i,this.nextSibling):i}function pw(){var i=this.cloneNode(!0),o=this.parentNode;return o?o.insertBefore(i,this.nextSibling):i}function mw(i){return this.select(i?pw:dw)}function _w(i){return arguments.length?this.property("__data__",i):this.node().__data__}function gw(i){return function(o){i.call(this,o,this.__data__)}}function vw(i){return i.trim().split(/^|\s+/).map(function(o){var r="",l=o.indexOf(".");return l>=0&&(r=o.slice(l+1),o=o.slice(0,l)),{type:o,name:r}})}function yw(i){return function(){var o=this.__on;if(o){for(var r=0,l=-1,f=o.length,p;r<f;++r)p=o[r],(!i.type||p.type===i.type)&&p.name===i.name?this.removeEventListener(p.type,p.listener,p.options):o[++l]=p;++l?o.length=l:delete this.__on}}}function ww(i,o,r){return function(){var l=this.__on,f,p=gw(o);if(l){for(var g=0,y=l.length;g<y;++g)if((f=l[g]).type===i.type&&f.name===i.name){this.removeEventListener(f.type,f.listener,f.options),this.addEventListener(f.type,f.listener=p,f.options=r),f.value=o;return}}this.addEventListener(i.type,p,r),f={type:i.type,name:i.name,value:o,listener:p,options:r},l?l.push(f):this.__on=[f]}}function xw(i,o,r){var l=vw(i+""),f,p=l.length,g;if(arguments.length<2){var y=this.node().__on;if(y){for(var w=0,v=y.length,S;w<v;++w)for(f=0,S=y[w];f<p;++f)if((g=l[f]).type===S.type&&g.name===S.name)return S.value}return}for(y=o?ww:yw,f=0;f<p;++f)this.each(y(l[f],o,r));return this}function Vm(i,o,r){var l=Zm(i),f=l.CustomEvent;typeof f=="function"?f=new f(o,r):(f=l.document.createEvent("Event"),r?(f.initEvent(o,r.bubbles,r.cancelable),f.detail=r.detail):f.initEvent(o,!1,!1)),i.dispatchEvent(f)}function kw(i,o){return function(){return Vm(this,i,o)}}function Sw(i,o){return function(){return Vm(this,i,o.apply(this,arguments))}}function Ew(i,o){return this.each((typeof o=="function"?Sw:kw)(i,o))}function*Pw(){for(var i=this._groups,o=0,r=i.length;o<r;++o)for(var l=i[o],f=0,p=l.length,g;f<p;++f)(g=l[f])&&(yield g)}var $m=[null];function Xe(i,o){this._groups=i,this._parents=o}function fa(){return new Xe([[document.documentElement]],$m)}function Lw(){return this}Xe.prototype=fa.prototype={constructor:Xe,select:Qy,selectAll:n0,selectChild:s0,selectChildren:c0,filter:f0,data:g0,enter:h0,exit:y0,join:w0,merge:x0,selection:Lw,order:k0,sort:S0,call:P0,nodes:L0,node:T0,size:C0,empty:M0,each:A0,attr:B0,style:H0,property:V0,classed:K0,text:J0,html:iw,raise:ow,lower:aw,append:lw,insert:cw,remove:hw,clone:mw,datum:_w,on:xw,dispatch:Ew,[Symbol.iterator]:Pw};function Ho(i){return typeof i=="string"?new Xe([[document.querySelector(i)]],[document.documentElement]):new Xe([[i]],$m)}function Vf(i,o,r){i.prototype=o.prototype=r,r.constructor=i}function qm(i,o){var r=Object.create(i.prototype);for(var l in o)r[l]=o[l];return r}function ha(){}var la=.7,au=1/la,jo="\\s*([+-]?\\d+)\\s*",ua="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tw=/^#([0-9a-f]{3,8})$/,Cw=new RegExp(`^rgb\\(${jo},${jo},${jo}\\)$`),Mw=new RegExp(`^rgb\\(${jn},${jn},${jn}\\)$`),Aw=new RegExp(`^rgba\\(${jo},${jo},${jo},${ua}\\)$`),Nw=new RegExp(`^rgba\\(${jn},${jn},${jn},${ua}\\)$`),Ow=new RegExp(`^hsl\\(${ua},${jn},${jn}\\)$`),zw=new RegExp(`^hsla\\(${ua},${jn},${jn},${ua}\\)$`),Np={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};Vf(ha,sr,{copy(i){return Object.assign(new this.constructor,this,i)},displayable(){return this.rgb().displayable()},hex:Op,formatHex:Op,formatHex8:Rw,formatHsl:bw,formatRgb:zp,toString:zp});function Op(){return this.rgb().formatHex()}function Rw(){return this.rgb().formatHex8()}function bw(){return Gm(this).formatHsl()}function zp(){return this.rgb().formatRgb()}function sr(i){var o,r;return i=(i+"").trim().toLowerCase(),(o=Tw.exec(i))?(r=o[1].length,o=parseInt(o[1],16),r===6?Rp(o):r===3?new Fe(o>>8&15|o>>4&240,o>>4&15|o&240,(o&15)<<4|o&15,1):r===8?Vl(o>>24&255,o>>16&255,o>>8&255,(o&255)/255):r===4?Vl(o>>12&15|o>>8&240,o>>8&15|o>>4&240,o>>4&15|o&240,((o&15)<<4|o&15)/255):null):(o=Cw.exec(i))?new Fe(o[1],o[2],o[3],1):(o=Mw.exec(i))?new Fe(o[1]*255/100,o[2]*255/100,o[3]*255/100,1):(o=Aw.exec(i))?Vl(o[1],o[2],o[3],o[4]):(o=Nw.exec(i))?Vl(o[1]*255/100,o[2]*255/100,o[3]*255/100,o[4]):(o=Ow.exec(i))?Bp(o[1],o[2]/100,o[3]/100,1):(o=zw.exec(i))?Bp(o[1],o[2]/100,o[3]/100,o[4]):Np.hasOwnProperty(i)?Rp(Np[i]):i==="transparent"?new Fe(NaN,NaN,NaN,0):null}function Rp(i){return new Fe(i>>16&255,i>>8&255,i&255,1)}function Vl(i,o,r,l){return l<=0&&(i=o=r=NaN),new Fe(i,o,r,l)}function Iw(i){return i instanceof ha||(i=sr(i)),i?(i=i.rgb(),new Fe(i.r,i.g,i.b,i.opacity)):new Fe}function Tf(i,o,r,l){return arguments.length===1?Iw(i):new Fe(i,o,r,l??1)}function Fe(i,o,r,l){this.r=+i,this.g=+o,this.b=+r,this.opacity=+l}Vf(Fe,Tf,qm(ha,{brighter(i){return i=i==null?au:Math.pow(au,i),new Fe(this.r*i,this.g*i,this.b*i,this.opacity)},darker(i){return i=i==null?la:Math.pow(la,i),new Fe(this.r*i,this.g*i,this.b*i,this.opacity)},rgb(){return this},clamp(){return new Fe(Hr(this.r),Hr(this.g),Hr(this.b),lu(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:bp,formatHex:bp,formatHex8:Bw,formatRgb:Ip,toString:Ip}));function bp(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}`}function Bw(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}${Zr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ip(){const i=lu(this.opacity);return`${i===1?"rgb(":"rgba("}${Hr(this.r)}, ${Hr(this.g)}, ${Hr(this.b)}${i===1?")":`, ${i})`}`}function lu(i){return isNaN(i)?1:Math.max(0,Math.min(1,i))}function Hr(i){return Math.max(0,Math.min(255,Math.round(i)||0))}function Zr(i){return i=Hr(i),(i<16?"0":"")+i.toString(16)}function Bp(i,o,r,l){return l<=0?i=o=r=NaN:r<=0||r>=1?i=o=NaN:o<=0&&(i=NaN),new Ln(i,o,r,l)}function Gm(i){if(i instanceof Ln)return new Ln(i.h,i.s,i.l,i.opacity);if(i instanceof ha||(i=sr(i)),!i)return new Ln;if(i instanceof Ln)return i;i=i.rgb();var o=i.r/255,r=i.g/255,l=i.b/255,f=Math.min(o,r,l),p=Math.max(o,r,l),g=NaN,y=p-f,w=(p+f)/2;return y?(o===p?g=(r-l)/y+(r<l)*6:r===p?g=(l-o)/y+2:g=(o-r)/y+4,y/=w<.5?p+f:2-p-f,g*=60):y=w>0&&w<1?0:g,new Ln(g,y,w,i.opacity)}function Km(i,o,r,l){return arguments.length===1?Gm(i):new Ln(i,o,r,l??1)}function Ln(i,o,r,l){this.h=+i,this.s=+o,this.l=+r,this.opacity=+l}Vf(Ln,Km,qm(ha,{brighter(i){return i=i==null?au:Math.pow(au,i),new Ln(this.h,this.s,this.l*i,this.opacity)},darker(i){return i=i==null?la:Math.pow(la,i),new Ln(this.h,this.s,this.l*i,this.opacity)},rgb(){var i=this.h%360+(this.h<0)*360,o=isNaN(i)||isNaN(this.s)?0:this.s,r=this.l,l=r+(r<.5?r:1-r)*o,f=2*r-l;return new Fe(hf(i>=240?i-240:i+120,f,l),hf(i,f,l),hf(i<120?i+240:i-120,f,l),this.opacity)},clamp(){return new Ln(Dp(this.h),$l(this.s),$l(this.l),lu(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 i=lu(this.opacity);return`${i===1?"hsl(":"hsla("}${Dp(this.h)}, ${$l(this.s)*100}%, ${$l(this.l)*100}%${i===1?")":`, ${i})`}`}}));function Dp(i){return i=(i||0)%360,i<0?i+360:i}function $l(i){return Math.max(0,Math.min(1,i||0))}function hf(i,o,r){return(i<60?o+(r-o)*i/60:i<180?r:i<240?o+(r-o)*(240-i)/60:o)*255}const $f=i=>()=>i;function Dw(i,o){return function(r){return i+r*o}}function Fw(i,o,r){return i=Math.pow(i,r),o=Math.pow(o,r)-i,r=1/r,function(l){return Math.pow(i+l*o,r)}}function Zw(i){return(i=+i)==1?Ym:function(o,r){return r-o?Fw(o,r,i):$f(isNaN(o)?r:o)}}function Ym(i,o){var r=o-i;return r?Dw(i,r):$f(isNaN(i)?o:i)}const uu=(function i(o){var r=Zw(o);function l(f,p){var g=r((f=Tf(f)).r,(p=Tf(p)).r),y=r(f.g,p.g),w=r(f.b,p.b),v=Ym(f.opacity,p.opacity);return function(S){return f.r=g(S),f.g=y(S),f.b=w(S),f.opacity=v(S),f+""}}return l.gamma=i,l})(1);function Hw(i,o){o||(o=[]);var r=i?Math.min(o.length,i.length):0,l=o.slice(),f;return function(p){for(f=0;f<r;++f)l[f]=i[f]*(1-p)+o[f]*p;return l}}function Uw(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}function jw(i,o){var r=o?o.length:0,l=i?Math.min(r,i.length):0,f=new Array(l),p=new Array(r),g;for(g=0;g<l;++g)f[g]=wu(i[g],o[g]);for(;g<r;++g)p[g]=o[g];return function(y){for(g=0;g<l;++g)p[g]=f[g](y);return p}}function Ww(i,o){var r=new Date;return i=+i,o=+o,function(l){return r.setTime(i*(1-l)+o*l),r}}function Pn(i,o){return i=+i,o=+o,function(r){return i*(1-r)+o*r}}function Vw(i,o){var r={},l={},f;(i===null||typeof i!="object")&&(i={}),(o===null||typeof o!="object")&&(o={});for(f in o)f in i?r[f]=wu(i[f],o[f]):l[f]=o[f];return function(p){for(f in r)l[f]=r[f](p);return l}}var Cf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,df=new RegExp(Cf.source,"g");function $w(i){return function(){return i}}function qw(i){return function(o){return i(o)+""}}function Xm(i,o){var r=Cf.lastIndex=df.lastIndex=0,l,f,p,g=-1,y=[],w=[];for(i=i+"",o=o+"";(l=Cf.exec(i))&&(f=df.exec(o));)(p=f.index)>r&&(p=o.slice(r,p),y[g]?y[g]+=p:y[++g]=p),(l=l[0])===(f=f[0])?y[g]?y[g]+=f:y[++g]=f:(y[++g]=null,w.push({i:g,x:Pn(l,f)})),r=df.lastIndex;return r<o.length&&(p=o.slice(r),y[g]?y[g]+=p:y[++g]=p),y.length<2?w[0]?qw(w[0].x):$w(o):(o=w.length,function(v){for(var S=0,T;S<o;++S)y[(T=w[S]).i]=T.x(v);return y.join("")})}function wu(i,o){var r=typeof o,l;return o==null||r==="boolean"?$f(o):(r==="number"?Pn:r==="string"?(l=sr(o))?(o=l,uu):Xm:o instanceof sr?uu:o instanceof Date?Ww:Uw(o)?Hw:Array.isArray(o)?jw:typeof o.valueOf!="function"&&typeof o.toString!="function"||isNaN(o)?Vw:Pn)(i,o)}function Qm(i,o){return i=+i,o=+o,function(r){return Math.round(i*(1-r)+o*r)}}var Fp=180/Math.PI,Mf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Jm(i,o,r,l,f,p){var g,y,w;return(g=Math.sqrt(i*i+o*o))&&(i/=g,o/=g),(w=i*r+o*l)&&(r-=i*w,l-=o*w),(y=Math.sqrt(r*r+l*l))&&(r/=y,l/=y,w/=y),i*l<o*r&&(i=-i,o=-o,w=-w,g=-g),{translateX:f,translateY:p,rotate:Math.atan2(o,i)*Fp,skewX:Math.atan(w)*Fp,scaleX:g,scaleY:y}}var ql;function Gw(i){const o=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(i+"");return o.isIdentity?Mf:Jm(o.a,o.b,o.c,o.d,o.e,o.f)}function Kw(i){return i==null||(ql||(ql=document.createElementNS("http://www.w3.org/2000/svg","g")),ql.setAttribute("transform",i),!(i=ql.transform.baseVal.consolidate()))?Mf:(i=i.matrix,Jm(i.a,i.b,i.c,i.d,i.e,i.f))}function t_(i,o,r,l){function f(v){return v.length?v.pop()+" ":""}function p(v,S,T,C,E,D){if(v!==T||S!==C){var H=E.push("translate(",null,o,null,r);D.push({i:H-4,x:Pn(v,T)},{i:H-2,x:Pn(S,C)})}else(T||C)&&E.push("translate("+T+o+C+r)}function g(v,S,T,C){v!==S?(v-S>180?S+=360:S-v>180&&(v+=360),C.push({i:T.push(f(T)+"rotate(",null,l)-2,x:Pn(v,S)})):S&&T.push(f(T)+"rotate("+S+l)}function y(v,S,T,C){v!==S?C.push({i:T.push(f(T)+"skewX(",null,l)-2,x:Pn(v,S)}):S&&T.push(f(T)+"skewX("+S+l)}function w(v,S,T,C,E,D){if(v!==T||S!==C){var H=E.push(f(E)+"scale(",null,",",null,")");D.push({i:H-4,x:Pn(v,T)},{i:H-2,x:Pn(S,C)})}else(T!==1||C!==1)&&E.push(f(E)+"scale("+T+","+C+")")}return function(v,S){var T=[],C=[];return v=i(v),S=i(S),p(v.translateX,v.translateY,S.translateX,S.translateY,T,C),g(v.rotate,S.rotate,T,C),y(v.skewX,S.skewX,T,C),w(v.scaleX,v.scaleY,S.scaleX,S.scaleY,T,C),v=S=null,function(E){for(var D=-1,H=C.length,$;++D<H;)T[($=C[D]).i]=$.x(E);return T.join("")}}}var Yw=t_(Gw,"px, ","px)","deg)"),Xw=t_(Kw,", ",")",")"),Vo=0,ta=0,Xs=0,e_=1e3,cu,ea,fu=0,Wr=0,xu=0,ca=typeof performance=="object"&&performance.now?performance:Date,n_=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(i){setTimeout(i,17)};function qf(){return Wr||(n_(Qw),Wr=ca.now()+xu)}function Qw(){Wr=0}function hu(){this._call=this._time=this._next=null}hu.prototype=i_.prototype={constructor:hu,restart:function(i,o,r){if(typeof i!="function")throw new TypeError("callback is not a function");r=(r==null?qf():+r)+(o==null?0:+o),!this._next&&ea!==this&&(ea?ea._next=this:cu=this,ea=this),this._call=i,this._time=r,Af()},stop:function(){this._call&&(this._call=null,this._time=1/0,Af())}};function i_(i,o,r){var l=new hu;return l.restart(i,o,r),l}function Jw(){qf(),++Vo;for(var i=cu,o;i;)(o=Wr-i._time)>=0&&i._call.call(void 0,o),i=i._next;--Vo}function Zp(){Wr=(fu=ca.now())+xu,Vo=ta=0;try{Jw()}finally{Vo=0,e1(),Wr=0}}function t1(){var i=ca.now(),o=i-fu;o>e_&&(xu-=o,fu=i)}function e1(){for(var i,o=cu,r,l=1/0;o;)o._call?(l>o._time&&(l=o._time),i=o,o=o._next):(r=o._next,o._next=null,o=i?i._next=r:cu=r);ea=i,Af(l)}function Af(i){if(!Vo){ta&&(ta=clearTimeout(ta));var o=i-Wr;o>24?(i<1/0&&(ta=setTimeout(Zp,i-ca.now()-xu)),Xs&&(Xs=clearInterval(Xs))):(Xs||(fu=ca.now(),Xs=setInterval(t1,e_)),Vo=1,n_(Zp))}}function Hp(i,o,r){var l=new hu;return o=o==null?0:+o,l.restart(f=>{l.stop(),i(f+o)},o,r),l}var n1=Rm("start","end","cancel","interrupt"),i1=[],r_=0,Up=1,Nf=2,eu=3,jp=4,Of=5,nu=6;function ku(i,o,r,l,f,p){var g=i.__transition;if(!g)i.__transition={};else if(r in g)return;r1(i,r,{name:o,index:l,group:f,on:n1,tween:i1,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:r_})}function Gf(i,o){var r=Tn(i,o);if(r.state>r_)throw new Error("too late; already scheduled");return r}function Vn(i,o){var r=Tn(i,o);if(r.state>eu)throw new Error("too late; already running");return r}function Tn(i,o){var r=i.__transition;if(!r||!(r=r[o]))throw new Error("transition not found");return r}function r1(i,o,r){var l=i.__transition,f;l[o]=r,r.timer=i_(p,0,r.time);function p(v){r.state=Up,r.timer.restart(g,r.delay,r.time),r.delay<=v&&g(v-r.delay)}function g(v){var S,T,C,E;if(r.state!==Up)return w();for(S in l)if(E=l[S],E.name===r.name){if(E.state===eu)return Hp(g);E.state===jp?(E.state=nu,E.timer.stop(),E.on.call("interrupt",i,i.__data__,E.index,E.group),delete l[S]):+S<o&&(E.state=nu,E.timer.stop(),E.on.call("cancel",i,i.__data__,E.index,E.group),delete l[S])}if(Hp(function(){r.state===eu&&(r.state=jp,r.timer.restart(y,r.delay,r.time),y(v))}),r.state=Nf,r.on.call("start",i,i.__data__,r.index,r.group),r.state===Nf){for(r.state=eu,f=new Array(C=r.tween.length),S=0,T=-1;S<C;++S)(E=r.tween[S].value.call(i,i.__data__,r.index,r.group))&&(f[++T]=E);f.length=T+1}}function y(v){for(var S=v<r.duration?r.ease.call(null,v/r.duration):(r.timer.restart(w),r.state=Of,1),T=-1,C=f.length;++T<C;)f[T].call(i,S);r.state===Of&&(r.on.call("end",i,i.__data__,r.index,r.group),w())}function w(){r.state=nu,r.timer.stop(),delete l[o];for(var v in l)return;delete i.__transition}}function o1(i,o){var r=i.__transition,l,f,p=!0,g;if(r){o=o==null?null:o+"";for(g in r){if((l=r[g]).name!==o){p=!1;continue}f=l.state>Nf&&l.state<Of,l.state=nu,l.timer.stop(),l.on.call(f?"interrupt":"cancel",i,i.__data__,l.index,l.group),delete r[g]}p&&delete i.__transition}}function s1(i){return this.each(function(){o1(this,i)})}function a1(i,o){var r,l;return function(){var f=Vn(this,i),p=f.tween;if(p!==r){l=r=p;for(var g=0,y=l.length;g<y;++g)if(l[g].name===o){l=l.slice(),l.splice(g,1);break}}f.tween=l}}function l1(i,o,r){var l,f;if(typeof r!="function")throw new Error;return function(){var p=Vn(this,i),g=p.tween;if(g!==l){f=(l=g).slice();for(var y={name:o,value:r},w=0,v=f.length;w<v;++w)if(f[w].name===o){f[w]=y;break}w===v&&f.push(y)}p.tween=f}}function u1(i,o){var r=this._id;if(i+="",arguments.length<2){for(var l=Tn(this.node(),r).tween,f=0,p=l.length,g;f<p;++f)if((g=l[f]).name===i)return g.value;return null}return this.each((o==null?a1:l1)(r,i,o))}function Kf(i,o,r){var l=i._id;return i.each(function(){var f=Vn(this,l);(f.value||(f.value={}))[o]=r.apply(this,arguments)}),function(f){return Tn(f,l).value[o]}}function o_(i,o){var r;return(typeof o=="number"?Pn:o instanceof sr?uu:(r=sr(o))?(o=r,uu):Xm)(i,o)}function c1(i){return function(){this.removeAttribute(i)}}function f1(i){return function(){this.removeAttributeNS(i.space,i.local)}}function h1(i,o,r){var l,f=r+"",p;return function(){var g=this.getAttribute(i);return g===f?null:g===l?p:p=o(l=g,r)}}function d1(i,o,r){var l,f=r+"",p;return function(){var g=this.getAttributeNS(i.space,i.local);return g===f?null:g===l?p:p=o(l=g,r)}}function p1(i,o,r){var l,f,p;return function(){var g,y=r(this),w;return y==null?void this.removeAttribute(i):(g=this.getAttribute(i),w=y+"",g===w?null:g===l&&w===f?p:(f=w,p=o(l=g,y)))}}function m1(i,o,r){var l,f,p;return function(){var g,y=r(this),w;return y==null?void this.removeAttributeNS(i.space,i.local):(g=this.getAttributeNS(i.space,i.local),w=y+"",g===w?null:g===l&&w===f?p:(f=w,p=o(l=g,y)))}}function _1(i,o){var r=yu(i),l=r==="transform"?Xw:o_;return this.attrTween(i,typeof o=="function"?(r.local?m1:p1)(r,l,Kf(this,"attr."+i,o)):o==null?(r.local?f1:c1)(r):(r.local?d1:h1)(r,l,o))}function g1(i,o){return function(r){this.setAttribute(i,o.call(this,r))}}function v1(i,o){return function(r){this.setAttributeNS(i.space,i.local,o.call(this,r))}}function y1(i,o){var r,l;function f(){var p=o.apply(this,arguments);return p!==l&&(r=(l=p)&&v1(i,p)),r}return f._value=o,f}function w1(i,o){var r,l;function f(){var p=o.apply(this,arguments);return p!==l&&(r=(l=p)&&g1(i,p)),r}return f._value=o,f}function x1(i,o){var r="attr."+i;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(o==null)return this.tween(r,null);if(typeof o!="function")throw new Error;var l=yu(i);return this.tween(r,(l.local?y1:w1)(l,o))}function k1(i,o){return function(){Gf(this,i).delay=+o.apply(this,arguments)}}function S1(i,o){return o=+o,function(){Gf(this,i).delay=o}}function E1(i){var o=this._id;return arguments.length?this.each((typeof i=="function"?k1:S1)(o,i)):Tn(this.node(),o).delay}function P1(i,o){return function(){Vn(this,i).duration=+o.apply(this,arguments)}}function L1(i,o){return o=+o,function(){Vn(this,i).duration=o}}function T1(i){var o=this._id;return arguments.length?this.each((typeof i=="function"?P1:L1)(o,i)):Tn(this.node(),o).duration}function C1(i,o){if(typeof o!="function")throw new Error;return function(){Vn(this,i).ease=o}}function M1(i){var o=this._id;return arguments.length?this.each(C1(o,i)):Tn(this.node(),o).ease}function A1(i,o){return function(){var r=o.apply(this,arguments);if(typeof r!="function")throw new Error;Vn(this,i).ease=r}}function N1(i){if(typeof i!="function")throw new Error;return this.each(A1(this._id,i))}function O1(i){typeof i!="function"&&(i=Bm(i));for(var o=this._groups,r=o.length,l=new Array(r),f=0;f<r;++f)for(var p=o[f],g=p.length,y=l[f]=[],w,v=0;v<g;++v)(w=p[v])&&i.call(w,w.__data__,v,p)&&y.push(w);return new vi(l,this._parents,this._name,this._id)}function z1(i){if(i._id!==this._id)throw new Error;for(var o=this._groups,r=i._groups,l=o.length,f=r.length,p=Math.min(l,f),g=new Array(l),y=0;y<p;++y)for(var w=o[y],v=r[y],S=w.length,T=g[y]=new Array(S),C,E=0;E<S;++E)(C=w[E]||v[E])&&(T[E]=C);for(;y<l;++y)g[y]=o[y];return new vi(g,this._parents,this._name,this._id)}function R1(i){return(i+"").trim().split(/^|\s+/).every(function(o){var r=o.indexOf(".");return r>=0&&(o=o.slice(0,r)),!o||o==="start"})}function b1(i,o,r){var l,f,p=R1(o)?Gf:Vn;return function(){var g=p(this,i),y=g.on;y!==l&&(f=(l=y).copy()).on(o,r),g.on=f}}function I1(i,o){var r=this._id;return arguments.length<2?Tn(this.node(),r).on.on(i):this.each(b1(r,i,o))}function B1(i){return function(){var o=this.parentNode;for(var r in this.__transition)if(+r!==i)return;o&&o.removeChild(this)}}function D1(){return this.on("end.remove",B1(this._id))}function F1(i){var o=this._name,r=this._id;typeof i!="function"&&(i=jf(i));for(var l=this._groups,f=l.length,p=new Array(f),g=0;g<f;++g)for(var y=l[g],w=y.length,v=p[g]=new Array(w),S,T,C=0;C<w;++C)(S=y[C])&&(T=i.call(S,S.__data__,C,y))&&("__data__"in S&&(T.__data__=S.__data__),v[C]=T,ku(v[C],o,r,C,v,Tn(S,r)));return new vi(p,this._parents,o,r)}function Z1(i){var o=this._name,r=this._id;typeof i!="function"&&(i=Im(i));for(var l=this._groups,f=l.length,p=[],g=[],y=0;y<f;++y)for(var w=l[y],v=w.length,S,T=0;T<v;++T)if(S=w[T]){for(var C=i.call(S,S.__data__,T,w),E,D=Tn(S,r),H=0,$=C.length;H<$;++H)(E=C[H])&&ku(E,o,r,H,C,D);p.push(C),g.push(S)}return new vi(p,g,o,r)}var H1=fa.prototype.constructor;function U1(){return new H1(this._groups,this._parents)}function j1(i,o){var r,l,f;return function(){var p=Wo(this,i),g=(this.style.removeProperty(i),Wo(this,i));return p===g?null:p===r&&g===l?f:f=o(r=p,l=g)}}function s_(i){return function(){this.style.removeProperty(i)}}function W1(i,o,r){var l,f=r+"",p;return function(){var g=Wo(this,i);return g===f?null:g===l?p:p=o(l=g,r)}}function V1(i,o,r){var l,f,p;return function(){var g=Wo(this,i),y=r(this),w=y+"";return y==null&&(w=y=(this.style.removeProperty(i),Wo(this,i))),g===w?null:g===l&&w===f?p:(f=w,p=o(l=g,y))}}function $1(i,o){var r,l,f,p="style."+o,g="end."+p,y;return function(){var w=Vn(this,i),v=w.on,S=w.value[p]==null?y||(y=s_(o)):void 0;(v!==r||f!==S)&&(l=(r=v).copy()).on(g,f=S),w.on=l}}function q1(i,o,r){var l=(i+="")=="transform"?Yw:o_;return o==null?this.styleTween(i,j1(i,l)).on("end.style."+i,s_(i)):typeof o=="function"?this.styleTween(i,V1(i,l,Kf(this,"style."+i,o))).each($1(this._id,i)):this.styleTween(i,W1(i,l,o),r).on("end.style."+i,null)}function G1(i,o,r){return function(l){this.style.setProperty(i,o.call(this,l),r)}}function K1(i,o,r){var l,f;function p(){var g=o.apply(this,arguments);return g!==f&&(l=(f=g)&&G1(i,g,r)),l}return p._value=o,p}function Y1(i,o,r){var l="style."+(i+="");if(arguments.length<2)return(l=this.tween(l))&&l._value;if(o==null)return this.tween(l,null);if(typeof o!="function")throw new Error;return this.tween(l,K1(i,o,r??""))}function X1(i){return function(){this.textContent=i}}function Q1(i){return function(){var o=i(this);this.textContent=o??""}}function J1(i){return this.tween("text",typeof i=="function"?Q1(Kf(this,"text",i)):X1(i==null?"":i+""))}function tx(i){return function(o){this.textContent=i.call(this,o)}}function ex(i){var o,r;function l(){var f=i.apply(this,arguments);return f!==r&&(o=(r=f)&&tx(f)),o}return l._value=i,l}function nx(i){var o="text";if(arguments.length<1)return(o=this.tween(o))&&o._value;if(i==null)return this.tween(o,null);if(typeof i!="function")throw new Error;return this.tween(o,ex(i))}function ix(){for(var i=this._name,o=this._id,r=a_(),l=this._groups,f=l.length,p=0;p<f;++p)for(var g=l[p],y=g.length,w,v=0;v<y;++v)if(w=g[v]){var S=Tn(w,o);ku(w,i,r,v,g,{time:S.time+S.delay+S.duration,delay:0,duration:S.duration,ease:S.ease})}return new vi(l,this._parents,i,r)}function rx(){var i,o,r=this,l=r._id,f=r.size();return new Promise(function(p,g){var y={value:g},w={value:function(){--f===0&&p()}};r.each(function(){var v=Vn(this,l),S=v.on;S!==i&&(o=(i=S).copy(),o._.cancel.push(y),o._.interrupt.push(y),o._.end.push(w)),v.on=o}),f===0&&p()})}var ox=0;function vi(i,o,r,l){this._groups=i,this._parents=o,this._name=r,this._id=l}function a_(){return++ox}var _i=fa.prototype;vi.prototype={constructor:vi,select:F1,selectAll:Z1,selectChild:_i.selectChild,selectChildren:_i.selectChildren,filter:O1,merge:z1,selection:U1,transition:ix,call:_i.call,nodes:_i.nodes,node:_i.node,size:_i.size,empty:_i.empty,each:_i.each,on:I1,attr:_1,attrTween:x1,style:q1,styleTween:Y1,text:J1,textTween:nx,remove:D1,tween:u1,delay:E1,duration:T1,ease:M1,easeVarying:N1,end:rx,[Symbol.iterator]:_i[Symbol.iterator]};function sx(i){return((i*=2)<=1?i*i*i:(i-=2)*i*i+2)/2}var ax={time:null,delay:0,duration:250,ease:sx};function lx(i,o){for(var r;!(r=i.__transition)||!(r=r[o]);)if(!(i=i.parentNode))throw new Error(`transition ${o} not found`);return r}function ux(i){var o,r;i instanceof vi?(o=i._id,i=i._name):(o=a_(),(r=ax).time=qf(),i=i==null?null:i+"");for(var l=this._groups,f=l.length,p=0;p<f;++p)for(var g=l[p],y=g.length,w,v=0;v<y;++v)(w=g[v])&&ku(w,i,o,v,g,r||lx(w,o));return new vi(l,this._parents,i,o)}fa.prototype.interrupt=s1;fa.prototype.transition=ux;const zf=Math.PI,Rf=2*zf,Dr=1e-6,cx=Rf-Dr;function l_(i){this._+=i[0];for(let o=1,r=i.length;o<r;++o)this._+=arguments[o]+i[o]}function fx(i){let o=Math.floor(i);if(!(o>=0))throw new Error(`invalid digits: ${i}`);if(o>15)return l_;const r=10**o;return function(l){this._+=l[0];for(let f=1,p=l.length;f<p;++f)this._+=Math.round(arguments[f]*r)/r+l[f]}}class hx{constructor(o){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=o==null?l_:fx(o)}moveTo(o,r){this._append`M${this._x0=this._x1=+o},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(o,r){this._append`L${this._x1=+o},${this._y1=+r}`}quadraticCurveTo(o,r,l,f){this._append`Q${+o},${+r},${this._x1=+l},${this._y1=+f}`}bezierCurveTo(o,r,l,f,p,g){this._append`C${+o},${+r},${+l},${+f},${this._x1=+p},${this._y1=+g}`}arcTo(o,r,l,f,p){if(o=+o,r=+r,l=+l,f=+f,p=+p,p<0)throw new Error(`negative radius: ${p}`);let g=this._x1,y=this._y1,w=l-o,v=f-r,S=g-o,T=y-r,C=S*S+T*T;if(this._x1===null)this._append`M${this._x1=o},${this._y1=r}`;else if(C>Dr)if(!(Math.abs(T*w-v*S)>Dr)||!p)this._append`L${this._x1=o},${this._y1=r}`;else{let E=l-g,D=f-y,H=w*w+v*v,$=E*E+D*D,J=Math.sqrt(H),Q=Math.sqrt(C),tt=p*Math.tan((zf-Math.acos((H+C-$)/(2*J*Q)))/2),F=tt/Q,K=tt/J;Math.abs(F-1)>Dr&&this._append`L${o+F*S},${r+F*T}`,this._append`A${p},${p},0,0,${+(T*E>S*D)},${this._x1=o+K*w},${this._y1=r+K*v}`}}arc(o,r,l,f,p,g){if(o=+o,r=+r,l=+l,g=!!g,l<0)throw new Error(`negative radius: ${l}`);let y=l*Math.cos(f),w=l*Math.sin(f),v=o+y,S=r+w,T=1^g,C=g?f-p:p-f;this._x1===null?this._append`M${v},${S}`:(Math.abs(this._x1-v)>Dr||Math.abs(this._y1-S)>Dr)&&this._append`L${v},${S}`,l&&(C<0&&(C=C%Rf+Rf),C>cx?this._append`A${l},${l},0,1,${T},${o-y},${r-w}A${l},${l},0,1,${T},${this._x1=v},${this._y1=S}`:C>Dr&&this._append`A${l},${l},0,${+(C>=zf)},${T},${this._x1=o+l*Math.cos(p)},${this._y1=r+l*Math.sin(p)}`)}rect(o,r,l,f){this._append`M${this._x0=this._x1=+o},${this._y0=this._y1=+r}h${l=+l}v${+f}h${-l}Z`}toString(){return this._}}function dx(i){return Math.abs(i=Math.round(i))>=1e21?i.toLocaleString("en").replace(/,/g,""):i.toString(10)}function du(i,o){if((r=(i=o?i.toExponential(o-1):i.toExponential()).indexOf("e"))<0)return null;var r,l=i.slice(0,r);return[l.length>1?l[0]+l.slice(2):l,+i.slice(r+1)]}function $o(i){return i=du(Math.abs(i)),i?i[1]:NaN}function px(i,o){return function(r,l){for(var f=r.length,p=[],g=0,y=i[0],w=0;f>0&&y>0&&(w+y+1>l&&(y=Math.max(1,l-w)),p.push(r.substring(f-=y,f+y)),!((w+=y+1)>l));)y=i[g=(g+1)%i.length];return p.reverse().join(o)}}function mx(i){return function(o){return o.replace(/[0-9]/g,function(r){return i[+r]})}}var _x=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pu(i){if(!(o=_x.exec(i)))throw new Error("invalid format: "+i);var o;return new Yf({fill:o[1],align:o[2],sign:o[3],symbol:o[4],zero:o[5],width:o[6],comma:o[7],precision:o[8]&&o[8].slice(1),trim:o[9],type:o[10]})}pu.prototype=Yf.prototype;function Yf(i){this.fill=i.fill===void 0?" ":i.fill+"",this.align=i.align===void 0?">":i.align+"",this.sign=i.sign===void 0?"-":i.sign+"",this.symbol=i.symbol===void 0?"":i.symbol+"",this.zero=!!i.zero,this.width=i.width===void 0?void 0:+i.width,this.comma=!!i.comma,this.precision=i.precision===void 0?void 0:+i.precision,this.trim=!!i.trim,this.type=i.type===void 0?"":i.type+""}Yf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function gx(i){t:for(var o=i.length,r=1,l=-1,f;r<o;++r)switch(i[r]){case".":l=f=r;break;case"0":l===0&&(l=r),f=r;break;default:if(!+i[r])break t;l>0&&(l=0);break}return l>0?i.slice(0,l)+i.slice(f+1):i}var u_;function vx(i,o){var r=du(i,o);if(!r)return i+"";var l=r[0],f=r[1],p=f-(u_=Math.max(-8,Math.min(8,Math.floor(f/3)))*3)+1,g=l.length;return p===g?l:p>g?l+new Array(p-g+1).join("0"):p>0?l.slice(0,p)+"."+l.slice(p):"0."+new Array(1-p).join("0")+du(i,Math.max(0,o+p-1))[0]}function Wp(i,o){var r=du(i,o);if(!r)return i+"";var l=r[0],f=r[1];return f<0?"0."+new Array(-f).join("0")+l:l.length>f+1?l.slice(0,f+1)+"."+l.slice(f+1):l+new Array(f-l.length+2).join("0")}const Vp={"%":(i,o)=>(i*100).toFixed(o),b:i=>Math.round(i).toString(2),c:i=>i+"",d:dx,e:(i,o)=>i.toExponential(o),f:(i,o)=>i.toFixed(o),g:(i,o)=>i.toPrecision(o),o:i=>Math.round(i).toString(8),p:(i,o)=>Wp(i*100,o),r:Wp,s:vx,X:i=>Math.round(i).toString(16).toUpperCase(),x:i=>Math.round(i).toString(16)};function $p(i){return i}var qp=Array.prototype.map,Gp=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function yx(i){var o=i.grouping===void 0||i.thousands===void 0?$p:px(qp.call(i.grouping,Number),i.thousands+""),r=i.currency===void 0?"":i.currency[0]+"",l=i.currency===void 0?"":i.currency[1]+"",f=i.decimal===void 0?".":i.decimal+"",p=i.numerals===void 0?$p:mx(qp.call(i.numerals,String)),g=i.percent===void 0?"%":i.percent+"",y=i.minus===void 0?"−":i.minus+"",w=i.nan===void 0?"NaN":i.nan+"";function v(T){T=pu(T);var C=T.fill,E=T.align,D=T.sign,H=T.symbol,$=T.zero,J=T.width,Q=T.comma,tt=T.precision,F=T.trim,K=T.type;K==="n"?(Q=!0,K="g"):Vp[K]||(tt===void 0&&(tt=12),F=!0,K="g"),($||C==="0"&&E==="=")&&($=!0,C="0",E="=");var gt=H==="$"?r:H==="#"&&/[boxX]/.test(K)?"0"+K.toLowerCase():"",Y=H==="$"?l:/[%p]/.test(K)?g:"",ct=Vp[K],ut=/[defgprs%]/.test(K);tt=tt===void 0?6:/[gprs]/.test(K)?Math.max(1,Math.min(21,tt)):Math.max(0,Math.min(20,tt));function it(q){var yt=gt,Mt=Y,Ot,Ut,zt;if(K==="c")Mt=ct(q)+Mt,q="";else{q=+q;var Dt=q<0||1/q<0;if(q=isNaN(q)?w:ct(Math.abs(q),tt),F&&(q=gx(q)),Dt&&+q==0&&D!=="+"&&(Dt=!1),yt=(Dt?D==="("?D:y:D==="-"||D==="("?"":D)+yt,Mt=(K==="s"?Gp[8+u_/3]:"")+Mt+(Dt&&D==="("?")":""),ut){for(Ot=-1,Ut=q.length;++Ot<Ut;)if(zt=q.charCodeAt(Ot),48>zt||zt>57){Mt=(zt===46?f+q.slice(Ot+1):q.slice(Ot))+Mt,q=q.slice(0,Ot);break}}}Q&&!$&&(q=o(q,1/0));var Z=yt.length+q.length+Mt.length,ht=Z<J?new Array(J-Z+1).join(C):"";switch(Q&&$&&(q=o(ht+q,ht.length?J-Mt.length:1/0),ht=""),E){case"<":q=yt+q+Mt+ht;break;case"=":q=yt+ht+q+Mt;break;case"^":q=ht.slice(0,Z=ht.length>>1)+yt+q+Mt+ht.slice(Z);break;default:q=ht+yt+q+Mt;break}return p(q)}return it.toString=function(){return T+""},it}function S(T,C){var E=v((T=pu(T),T.type="f",T)),D=Math.max(-8,Math.min(8,Math.floor($o(C)/3)))*3,H=Math.pow(10,-D),$=Gp[8+D/3];return function(J){return E(H*J)+$}}return{format:v,formatPrefix:S}}var Gl,c_,f_;wx({thousands:",",grouping:[3],currency:["$",""]});function wx(i){return Gl=yx(i),c_=Gl.format,f_=Gl.formatPrefix,Gl}function xx(i){return Math.max(0,-$o(Math.abs(i)))}function kx(i,o){return Math.max(0,Math.max(-8,Math.min(8,Math.floor($o(o)/3)))*3-$o(Math.abs(i)))}function Sx(i,o){return i=Math.abs(i),o=Math.abs(o)-i,Math.max(0,$o(o)-$o(i))+1}function Ex(i,o){switch(arguments.length){case 0:break;case 1:this.range(i);break;default:this.range(o).domain(i);break}return this}function Px(i,o){switch(arguments.length){case 0:break;case 1:{typeof i=="function"?this.interpolator(i):this.range(i);break}default:{this.domain(i),typeof o=="function"?this.interpolator(o):this.range(o);break}}return this}function Lx(i){return function(){return i}}function Tx(i){return+i}var Kp=[0,1];function rr(i){return i}function bf(i,o){return(o-=i=+i)?function(r){return(r-i)/o}:Lx(isNaN(o)?NaN:.5)}function Cx(i,o){var r;return i>o&&(r=i,i=o,o=r),function(l){return Math.max(i,Math.min(o,l))}}function Mx(i,o,r){var l=i[0],f=i[1],p=o[0],g=o[1];return f<l?(l=bf(f,l),p=r(g,p)):(l=bf(l,f),p=r(p,g)),function(y){return p(l(y))}}function Ax(i,o,r){var l=Math.min(i.length,o.length)-1,f=new Array(l),p=new Array(l),g=-1;for(i[l]<i[0]&&(i=i.slice().reverse(),o=o.slice().reverse());++g<l;)f[g]=bf(i[g],i[g+1]),p[g]=r(o[g],o[g+1]);return function(y){var w=Oy(i,y,1,l)-1;return p[w](f[w](y))}}function Nx(i,o){return o.domain(i.domain()).range(i.range()).interpolate(i.interpolate()).clamp(i.clamp()).unknown(i.unknown())}function Ox(){var i=Kp,o=Kp,r=wu,l,f,p,g=rr,y,w,v;function S(){var C=Math.min(i.length,o.length);return g!==rr&&(g=Cx(i[0],i[C-1])),y=C>2?Ax:Mx,w=v=null,T}function T(C){return C==null||isNaN(C=+C)?p:(w||(w=y(i.map(l),o,r)))(l(g(C)))}return T.invert=function(C){return g(f((v||(v=y(o,i.map(l),Pn)))(C)))},T.domain=function(C){return arguments.length?(i=Array.from(C,Tx),S()):i.slice()},T.range=function(C){return arguments.length?(o=Array.from(C),S()):o.slice()},T.rangeRound=function(C){return o=Array.from(C),r=Qm,S()},T.clamp=function(C){return arguments.length?(g=C?!0:rr,S()):g!==rr},T.interpolate=function(C){return arguments.length?(r=C,S()):r},T.unknown=function(C){return arguments.length?(p=C,T):p},function(C,E){return l=C,f=E,S()}}function zx(){return Ox()(rr,rr)}function Rx(i,o,r,l){var f=By(i,o,r),p;switch(l=pu(l??",f"),l.type){case"s":{var g=Math.max(Math.abs(i),Math.abs(o));return l.precision==null&&!isNaN(p=kx(f,g))&&(l.precision=p),f_(l,g)}case"":case"e":case"g":case"p":case"r":{l.precision==null&&!isNaN(p=Sx(f,Math.max(Math.abs(i),Math.abs(o))))&&(l.precision=p-(l.type==="e"));break}case"f":case"%":{l.precision==null&&!isNaN(p=xx(f))&&(l.precision=p-(l.type==="%")*2);break}}return c_(l)}function h_(i){var o=i.domain;return i.ticks=function(r){var l=o();return Iy(l[0],l[l.length-1],r??10)},i.tickFormat=function(r,l){var f=o();return Rx(f[0],f[f.length-1],r??10,l)},i.nice=function(r){r==null&&(r=10);var l=o(),f=0,p=l.length-1,g=l[f],y=l[p],w,v,S=10;for(y<g&&(v=g,g=y,y=v,v=f,f=p,p=v);S-- >0;){if(v=Ef(g,y,r),v===w)return l[f]=g,l[p]=y,o(l);if(v>0)g=Math.floor(g/v)*v,y=Math.ceil(y/v)*v;else if(v<0)g=Math.ceil(g*v)/v,y=Math.floor(y*v)/v;else break;w=v}return i},i}function Vr(){var i=zx();return i.copy=function(){return Nx(i,Vr())},Ex.apply(i,arguments),h_(i)}function bx(){var i=0,o=1,r,l,f,p,g=rr,y=!1,w;function v(T){return T==null||isNaN(T=+T)?w:g(f===0?.5:(T=(p(T)-r)*f,y?Math.max(0,Math.min(1,T)):T))}v.domain=function(T){return arguments.length?([i,o]=T,r=p(i=+i),l=p(o=+o),f=r===l?0:1/(l-r),v):[i,o]},v.clamp=function(T){return arguments.length?(y=!!T,v):y},v.interpolator=function(T){return arguments.length?(g=T,v):g};function S(T){return function(C){var E,D;return arguments.length?([E,D]=C,g=T(E,D),v):[g(0),g(1)]}}return v.range=S(wu),v.rangeRound=S(Qm),v.unknown=function(T){return arguments.length?(w=T,v):w},function(T){return p=T,r=T(i),l=T(o),f=r===l?0:1/(l-r),v}}function Ix(i,o){return o.domain(i.domain()).interpolator(i.interpolator()).clamp(i.clamp()).unknown(i.unknown())}function d_(){var i=h_(bx()(rr));return i.copy=function(){return Ix(i,d_())},Px.apply(i,arguments)}function Bx(i){return i=Math.max(0,Math.min(1,i)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+i*(1172.33-i*(10793.56-i*(33300.12-i*(38394.49-i*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+i*(557.33+i*(1225.33-i*(3574.96-i*(1073.77+i*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+i*(3211.1-i*(15327.97-i*(27814-i*(22569.18-i*6838.66)))))))+")"}function Uo(i){return function(){return i}}function Dx(i){let o=3;return i.digits=function(r){if(!arguments.length)return o;if(r==null)o=null;else{const l=Math.floor(r);if(!(l>=0))throw new RangeError(`invalid digits: ${r}`);o=l}return i},()=>new hx(o)}function Fx(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function p_(i){this._context=i}p_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,o){switch(i=+i,o=+o,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,o):this._context.moveTo(i,o);break;case 1:this._point=2;default:this._context.lineTo(i,o);break}}};function Zx(i){return new p_(i)}function Hx(i){return i[0]}function Ux(i){return i[1]}function jx(i,o){var r=Uo(!0),l=null,f=Zx,p=null,g=Dx(y);i=typeof i=="function"?i:i===void 0?Hx:Uo(i),o=typeof o=="function"?o:o===void 0?Ux:Uo(o);function y(w){var v,S=(w=Fx(w)).length,T,C=!1,E;for(l==null&&(p=f(E=g())),v=0;v<=S;++v)!(v<S&&r(T=w[v],v,w))===C&&((C=!C)?p.lineStart():p.lineEnd()),C&&p.point(+i(T,v,w),+o(T,v,w));if(E)return p=null,E+""||null}return y.x=function(w){return arguments.length?(i=typeof w=="function"?w:Uo(+w),y):i},y.y=function(w){return arguments.length?(o=typeof w=="function"?w:Uo(+w),y):o},y.defined=function(w){return arguments.length?(r=typeof w=="function"?w:Uo(!!w),y):r},y.curve=function(w){return arguments.length?(f=w,l!=null&&(p=f(l)),y):f},y.context=function(w){return arguments.length?(w==null?l=p=null:p=f(l=w),y):l},y}function na(i,o,r){this.k=i,this.x=o,this.y=r}na.prototype={constructor:na,scale:function(i){return i===1?this:new na(this.k*i,this.x,this.y)},translate:function(i,o){return i===0&o===0?this:new na(this.k,this.x+this.k*i,this.y+this.k*o)},apply:function(i){return[i[0]*this.k+this.x,i[1]*this.k+this.y]},applyX:function(i){return i*this.k+this.x},applyY:function(i){return i*this.k+this.y},invert:function(i){return[(i[0]-this.x)/this.k,(i[1]-this.y)/this.k]},invertX:function(i){return(i-this.x)/this.k},invertY:function(i){return(i-this.y)/this.k},rescaleX:function(i){return i.copy().domain(i.range().map(this.invertX,this).map(i.invert,i))},rescaleY:function(i){return i.copy().domain(i.range().map(this.invertY,this).map(i.invert,i))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};na.prototype;const m_=rt.memo(({width:i,height:o,origin:r,resolution:l,rows:f,cols:p})=>{const g=r.coords[0],y=r.coords[1],w=g+p*l,v=y+f*l,S=Vr().domain([g,w]).range([0,i]),T=Vr().domain([y,v]).range([o,0]),C=1/l,E=rt.useMemo(()=>{const J=[];for(const Q of Tp(Math.ceil(g/C)*C,w,C))J.push(ot.jsx("line",{x1:S(Q),y1:0,x2:S(Q),y2:o,stroke:"#000",strokeWidth:.5,opacity:.25},`v-${Q}`));for(const Q of Tp(Math.ceil(y/C)*C,v,C))J.push(ot.jsx("line",{x1:0,y1:T(Q),x2:i,y2:T(Q),stroke:"#000",strokeWidth:.5,opacity:.25},`h-${Q}`));return J},[g,y,w,v,C,S,T,i,o]),D=rt.useRef(null),H=rt.useRef(null);rt.useEffect(()=>{if(D.current){const J=Wy(S).ticks(7);Ho(D.current).call(J),Ho(D.current).selectAll("line,path").attr("stroke","#ffffff").attr("stroke-width",1),Ho(D.current).selectAll("text").attr("fill","#ffffff")}if(H.current){const J=Vy(T).ticks(7);Ho(H.current).call(J),Ho(H.current).selectAll("line,path").attr("stroke","#ffffff").attr("stroke-width",1),Ho(H.current).selectAll("text").attr("fill","#ffffff")}},[S,T]);const $=g<=0&&0<=w&&y<=0&&0<=v;return ot.jsxs(ot.Fragment,{children:[ot.jsx("g",{className:"grid",children:E}),ot.jsx("g",{ref:D,transform:`translate(0, ${o})`}),ot.jsx("g",{ref:H,transform:"translate(0, 0)"}),$&&ot.jsxs("g",{className:"origin-marker",transform:`translate(${S(0)}, ${T(0)})`,children:[ot.jsx("circle",{r:8,fill:"none",stroke:"#00e676",strokeWidth:1,opacity:.5}),ot.jsx("circle",{r:4,fill:"#00e676",opacity:.9,children:ot.jsx("title",{children:"World Origin (0,0)"})})]})]})});m_.displayName="GridLayer";const __=rt.memo(({costmap:i,width:o,height:r})=>{const l=rt.useRef(null),{grid:f,origin:p,resolution:g}=i,y=Math.max(1,f.shape[0]||1),w=Math.max(1,f.shape[1]||1),v={left:60,bottom:40},S=Math.max(1,o-v.left),T=Math.max(1,r-v.bottom),C=Math.max(0,Math.min(S/w,T/y)),E=Math.max(0,w*C),D=Math.max(0,y*C),H=v.left+(S-E)/2,$=(T-D)/2,J=rt.useMemo(()=>{const Q=new Uint8ClampedArray(768),F=d_(K=>{if(K===0)return"black";if(K<0)return"#2d2136";if(K>.95)return"#000000";const gt=Bx(K*2-1),Y=Km(gt);return Y.s*=.75,Y.toString()}).domain([-1,100]);for(let K=0;K<256;K++){const Y=F(K===255?-1:K),ct=sr(Y);if(ct){const ut=ct;Q[K*3]=ut.r,Q[K*3+1]=ut.g,Q[K*3+2]=ut.b}else Q[K*3]=0,Q[K*3+1]=0,Q[K*3+2]=0}return Q},[]);return rt.useEffect(()=>{const Q=l.current;if(!Q)return;const tt=y*w;f.data.length!==tt&&console.warn(`Grid data length mismatch: expected ${tt}, got ${f.data.length} (rows=${y}, cols=${w})`),Q.width=w,Q.height=y;const F=Q.getContext("2d");if(!F)return;const K=F.createImageData(w,y),gt=f.data,Y=K.data;for(let ct=0;ct<gt.length&&ct<y*w;ct++){const ut=Math.floor(ct/w),it=ct%w,yt=(y-1-ut)*w+it;if(yt<0||yt>=gt.length)continue;const Mt=gt[ct],Ot=Mt===-1?255:Math.min(254,Math.max(0,Mt)),Ut=yt*4;if(Ut<0||Ut+3>=Y.length)continue;const zt=Ot*3;Y[Ut]=J[zt],Y[Ut+1]=J[zt+1],Y[Ut+2]=J[zt+2],Y[Ut+3]=255}F.putImageData(K,0,0)},[f.data,w,y,J]),ot.jsxs("g",{transform:`translate(${H}, ${$})`,children:[ot.jsx("foreignObject",{width:E,height:D,children:ot.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:ot.jsx("canvas",{ref:l,style:{width:"100%",height:"100%",objectFit:"contain",backgroundColor:"black"}})})}),ot.jsx(m_,{width:E,height:D,origin:p,resolution:g,rows:y,cols:w})]})});__.displayName="CostmapLayer";const g_=rt.memo(({path:i,worldToPx:o})=>{const r=rt.useMemo(()=>i.coords.map(([p,g])=>o(p,g)),[i.coords,o]),l=rt.useMemo(()=>jx()(r),[r]),f=rt.useMemo(()=>`path-gradient-${Date.now()}`,[]);return i.coords.length<2?null:ot.jsxs(ot.Fragment,{children:[ot.jsx("defs",{children:ot.jsxs("linearGradient",{id:f,gradientUnits:"userSpaceOnUse",x1:r[0][0],y1:r[0][1],x2:r[r.length-1][0],y2:r[r.length-1][1],children:[ot.jsx("stop",{offset:"0%",stopColor:"#ff3333"}),ot.jsx("stop",{offset:"100%",stopColor:"#ff3333"})]})}),ot.jsx("path",{d:l??"",fill:"none",stroke:`url(#${f})`,strokeWidth:5,strokeLinecap:"round",opacity:.9})]})});g_.displayName="PathLayer";const v_=rt.memo(({vector:i,label:o,worldToPx:r})=>{const[l,f]=r(i.coords[0],i.coords[1]),p=`${o} (${i.coords[0].toFixed(2)}, ${i.coords[1].toFixed(2)})`;return ot.jsxs(ot.Fragment,{children:[ot.jsxs("g",{className:"vector-marker",transform:`translate(${l}, ${f})`,children:[ot.jsx("circle",{r:10,fill:"none",stroke:"red",strokeWidth:1,opacity:.9}),ot.jsx("circle",{r:6,fill:"red"})]}),ot.jsxs("g",{children:[ot.jsx("rect",{x:l+24,y:f+14,width:p.length*7,height:18,fill:"black",stroke:"black",opacity:.75}),ot.jsx("text",{x:l+25,y:f+25,fontSize:"1em",fill:"white",children:p})]})]})});v_.displayName="VectorLayer";const Wx=({costmap:i,robotPose:o,path:r})=>{const l=rt.useRef(null),[f,p]=rt.useState({width:800,height:600}),{width:g,height:y}=f;rt.useEffect(()=>{var T;if(!((T=l.current)!=null&&T.parentElement))return;const v=()=>{var E,D;const C=(D=(E=l.current)==null?void 0:E.parentElement)==null?void 0:D.getBoundingClientRect();C&&p({width:C.width,height:C.height})};v();const S=new ResizeObserver(v);return S.observe(l.current.parentElement),()=>{S.disconnect()}},[]);const{worldToPx:w}=rt.useMemo(()=>{if(!i)return{worldToPx:void 0};const{grid:{shape:v},origin:S,resolution:T}=i,C=v[0],E=v[1],D={left:60,bottom:40},H=g-D.left,$=y-D.bottom,J=Math.min(H/E,$/C),Q=E*J,tt=C*J,F=D.left+(H-Q)/2,K=($-tt)/2,gt=Vr().domain([S.coords[0],S.coords[0]+E*T]).range([F,F+Q]),Y=Vr().domain([S.coords[1],S.coords[1]+C*T]).range([K+tt,K]);return{worldToPx:(ut,it)=>[gt(ut),Y(it)]}},[i,g,y]);return ot.jsx("div",{className:"visualizer-container",style:{width:"100%",height:"100%"},children:ot.jsxs("svg",{ref:l,width:"100%",height:"100%",viewBox:`0 0 ${g} ${y}`,preserveAspectRatio:"xMidYMid meet",style:{backgroundColor:"black",pointerEvents:"none"},children:[i&&ot.jsx(__,{costmap:i,width:g,height:y}),r&&w&&ot.jsx(g_,{path:r,worldToPx:w}),o&&w&&ot.jsx(v_,{vector:o,label:"robot",worldToPx:w})]})})},Vx=rt.memo(Wx),$x=({data:i,onWorldClick:o})=>{const r=rt.useRef(null),l=rt.useRef(0),f=150,p=rt.useCallback(g=>{if(!i.costmap||!r.current)return;g.stopPropagation();const y=Date.now();if(y-l.current<f){console.log("Click throttled");return}l.current=y;const w=r.current.querySelector("svg");if(!w)return;const v=w.getBoundingClientRect(),S=g.clientX-v.left,T=g.clientY-v.top,C=i.costmap,{grid:{shape:E},origin:D,resolution:H}=C,$=E[0],J=E[1],Q=v.width,tt=v.height,F={left:60,bottom:40},K=Q-F.left,gt=tt-F.bottom,Y=Math.min(K/J,gt/$),ct=J*Y,ut=$*Y,it=F.left+(K-ct)/2,q=(gt-ut)/2,yt=Vr().domain([D.coords[0],D.coords[0]+J*H]).range([it,it+ct]),Mt=Vr().domain([D.coords[1],D.coords[1]+$*H]).range([q+ut,q]),Ot=yt.invert(S),Ut=Mt.invert(T);o(Ot,Ut)},[i.costmap,o]);return ot.jsx("div",{ref:r,style:{width:"100%",height:"100%"},onClick:p,children:ot.jsx(Vx,{costmap:i.costmap,robotPose:i.robotPose,path:i.path})})};function y_(i,o){const r=rt.useRef(o);rt.useEffect(function(){o!==r.current&&i.attributionControl!=null&&(r.current!=null&&i.attributionControl.removeAttribution(r.current),o!=null&&i.attributionControl.addAttribution(o)),r.current=o},[i,o])}var qx=tm();const Gx=1;function Kx(i){return Object.freeze({__version:Gx,map:i})}function Yx(i,o){return Object.freeze({...i,...o})}const w_=rt.createContext(null),x_=w_.Provider;function Xf(){const i=rt.useContext(w_);if(i==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return i}function Xx(i){function o(r,l){const{instance:f,context:p}=i(r).current;return rt.useImperativeHandle(l,()=>f),r.children==null?null:pf.createElement(x_,{value:p},r.children)}return rt.forwardRef(o)}function Qx(i){function o(r,l){const[f,p]=rt.useState(!1),{instance:g}=i(r,p).current;rt.useImperativeHandle(l,()=>g),rt.useEffect(function(){f&&g.update()},[g,f,r.children]);const y=g._contentNode;return y?qx.createPortal(r.children,y):null}return rt.forwardRef(o)}function Jx(i){function o(r,l){const{instance:f}=i(r).current;return rt.useImperativeHandle(l,()=>f),null}return rt.forwardRef(o)}function k_(i,o){const r=rt.useRef();rt.useEffect(function(){return o!=null&&i.instance.on(o),r.current=o,function(){r.current!=null&&i.instance.off(r.current),r.current=null}},[i,o])}function Qf(i,o){const r=i.pane??o.pane;return r?{...i,pane:r}:i}function tk(i,o){return function(l,f){const p=Xf(),g=i(Qf(l,p),p);return y_(p.map,l.attribution),k_(g.current,l.eventHandlers),o(g.current,p,l,f),g}}var ia={exports:{}};/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/var ek=ia.exports,Yp;function nk(){return Yp||(Yp=1,(function(i,o){(function(r,l){l(o)})(ek,(function(r){var l="1.9.4";function f(e){var s,u,h,_;for(u=1,h=arguments.length;u<h;u++){_=arguments[u];for(s in _)e[s]=_[s]}return e}var p=Object.create||(function(){function e(){}return function(s){return e.prototype=s,new e}})();function g(e,s){var u=Array.prototype.slice;if(e.bind)return e.bind.apply(e,u.call(arguments,1));var h=u.call(arguments,2);return function(){return e.apply(s,h.length?h.concat(u.call(arguments)):arguments)}}var y=0;function w(e){return"_leaflet_id"in e||(e._leaflet_id=++y),e._leaflet_id}function v(e,s,u){var h,_,k,M;return M=function(){h=!1,_&&(k.apply(u,_),_=!1)},k=function(){h?_=arguments:(e.apply(u,arguments),setTimeout(M,s),h=!0)},k}function S(e,s,u){var h=s[1],_=s[0],k=h-_;return e===h&&u?e:((e-_)%k+k)%k+_}function T(){return!1}function C(e,s){if(s===!1)return e;var u=Math.pow(10,s===void 0?6:s);return Math.round(e*u)/u}function E(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function D(e){return E(e).split(/\s+/)}function H(e,s){Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?p(e.options):{});for(var u in s)e.options[u]=s[u];return e.options}function $(e,s,u){var h=[];for(var _ in e)h.push(encodeURIComponent(u?_.toUpperCase():_)+"="+encodeURIComponent(e[_]));return(!s||s.indexOf("?")===-1?"?":"&")+h.join("&")}var J=/\{ *([\w_ -]+) *\}/g;function Q(e,s){return e.replace(J,function(u,h){var _=s[h];if(_===void 0)throw new Error("No value provided for variable "+u);return typeof _=="function"&&(_=_(s)),_})}var tt=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function F(e,s){for(var u=0;u<e.length;u++)if(e[u]===s)return u;return-1}var K="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function gt(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var Y=0;function ct(e){var s=+new Date,u=Math.max(0,16-(s-Y));return Y=s+u,window.setTimeout(e,u)}var ut=window.requestAnimationFrame||gt("RequestAnimationFrame")||ct,it=window.cancelAnimationFrame||gt("CancelAnimationFrame")||gt("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function q(e,s,u){if(u&&ut===ct)e.call(s);else return ut.call(window,g(e,s))}function yt(e){e&&it.call(window,e)}var Mt={__proto__:null,extend:f,create:p,bind:g,get lastId(){return y},stamp:w,throttle:v,wrapNum:S,falseFn:T,formatNum:C,trim:E,splitWords:D,setOptions:H,getParamString:$,template:Q,isArray:tt,indexOf:F,emptyImageUrl:K,requestFn:ut,cancelFn:it,requestAnimFrame:q,cancelAnimFrame:yt};function Ot(){}Ot.extend=function(e){var s=function(){H(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},u=s.__super__=this.prototype,h=p(u);h.constructor=s,s.prototype=h;for(var _ in this)Object.prototype.hasOwnProperty.call(this,_)&&_!=="prototype"&&_!=="__super__"&&(s[_]=this[_]);return e.statics&&f(s,e.statics),e.includes&&(Ut(e.includes),f.apply(null,[h].concat(e.includes))),f(h,e),delete h.statics,delete h.includes,h.options&&(h.options=u.options?p(u.options):{},f(h.options,e.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){u.callInitHooks&&u.callInitHooks.call(this),this._initHooksCalled=!0;for(var k=0,M=h._initHooks.length;k<M;k++)h._initHooks[k].call(this)}},s},Ot.include=function(e){var s=this.prototype.options;return f(this.prototype,e),e.options&&(this.prototype.options=s,this.mergeOptions(e.options)),this},Ot.mergeOptions=function(e){return f(this.prototype.options,e),this},Ot.addInitHook=function(e){var s=Array.prototype.slice.call(arguments,1),u=typeof e=="function"?e:function(){this[e].apply(this,s)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(u),this};function Ut(e){if(!(typeof L>"u"||!L||!L.Mixin)){e=tt(e)?e:[e];for(var s=0;s<e.length;s++)e[s]===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)}}var zt={on:function(e,s,u){if(typeof e=="object")for(var h in e)this._on(h,e[h],s);else{e=D(e);for(var _=0,k=e.length;_<k;_++)this._on(e[_],s,u)}return this},off:function(e,s,u){if(!arguments.length)delete this._events;else if(typeof e=="object")for(var h in e)this._off(h,e[h],s);else{e=D(e);for(var _=arguments.length===1,k=0,M=e.length;k<M;k++)_?this._off(e[k]):this._off(e[k],s,u)}return this},_on:function(e,s,u,h){if(typeof s!="function"){console.warn("wrong listener type: "+typeof s);return}if(this._listens(e,s,u)===!1){u===this&&(u=void 0);var _={fn:s,ctx:u};h&&(_.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(_)}},_off:function(e,s,u){var h,_,k;if(this._events&&(h=this._events[e],!!h)){if(arguments.length===1){if(this._firingCount)for(_=0,k=h.length;_<k;_++)h[_].fn=T;delete this._events[e];return}if(typeof s!="function"){console.warn("wrong listener type: "+typeof s);return}var M=this._listens(e,s,u);if(M!==!1){var z=h[M];this._firingCount&&(z.fn=T,this._events[e]=h=h.slice()),h.splice(M,1)}}},fire:function(e,s,u){if(!this.listens(e,u))return this;var h=f({},s,{type:e,target:this,sourceTarget:s&&s.sourceTarget||this});if(this._events){var _=this._events[e];if(_){this._firingCount=this._firingCount+1||1;for(var k=0,M=_.length;k<M;k++){var z=_[k],I=z.fn;z.once&&this.off(e,I,z.ctx),I.call(z.ctx||this,h)}this._firingCount--}}return u&&this._propagateEvent(h),this},listens:function(e,s,u,h){typeof e!="string"&&console.warn('"string" type argument expected');var _=s;typeof s!="function"&&(h=!!s,_=void 0,u=void 0);var k=this._events&&this._events[e];if(k&&k.length&&this._listens(e,_,u)!==!1)return!0;if(h){for(var M in this._eventParents)if(this._eventParents[M].listens(e,s,u,h))return!0}return!1},_listens:function(e,s,u){if(!this._events)return!1;var h=this._events[e]||[];if(!s)return!!h.length;u===this&&(u=void 0);for(var _=0,k=h.length;_<k;_++)if(h[_].fn===s&&h[_].ctx===u)return _;return!1},once:function(e,s,u){if(typeof e=="object")for(var h in e)this._on(h,e[h],s,!0);else{e=D(e);for(var _=0,k=e.length;_<k;_++)this._on(e[_],s,u,!0)}return this},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[w(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[w(e)],this},_propagateEvent:function(e){for(var s in this._eventParents)this._eventParents[s].fire(e.type,f({layer:e.target,propagatedFrom:e.target},e),!0)}};zt.addEventListener=zt.on,zt.removeEventListener=zt.clearAllEventListeners=zt.off,zt.addOneTimeEventListener=zt.once,zt.fireEvent=zt.fire,zt.hasEventListeners=zt.listens;var Dt=Ot.extend(zt);function Z(e,s,u){this.x=u?Math.round(e):e,this.y=u?Math.round(s):s}var ht=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};Z.prototype={clone:function(){return new Z(this.x,this.y)},add:function(e){return this.clone()._add(j(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(j(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new Z(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new Z(this.x/e.x,this.y/e.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=ht(this.x),this.y=ht(this.y),this},distanceTo:function(e){e=j(e);var s=e.x-this.x,u=e.y-this.y;return Math.sqrt(s*s+u*u)},equals:function(e){return e=j(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=j(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+C(this.x)+", "+C(this.y)+")"}};function j(e,s,u){return e instanceof Z?e:tt(e)?new Z(e[0],e[1]):e==null?e:typeof e=="object"&&"x"in e&&"y"in e?new Z(e.x,e.y):new Z(e,s,u)}function N(e,s){if(e)for(var u=s?[e,s]:e,h=0,_=u.length;h<_;h++)this.extend(u[h])}N.prototype={extend:function(e){var s,u;if(!e)return this;if(e instanceof Z||typeof e[0]=="number"||"x"in e)s=u=j(e);else if(e=U(e),s=e.min,u=e.max,!s||!u)return this;return!this.min&&!this.max?(this.min=s.clone(),this.max=u.clone()):(this.min.x=Math.min(s.x,this.min.x),this.max.x=Math.max(u.x,this.max.x),this.min.y=Math.min(s.y,this.min.y),this.max.y=Math.max(u.y,this.max.y)),this},getCenter:function(e){return j((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},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(e){var s,u;return typeof e[0]=="number"||e instanceof Z?e=j(e):e=U(e),e instanceof N?(s=e.min,u=e.max):s=u=e,s.x>=this.min.x&&u.x<=this.max.x&&s.y>=this.min.y&&u.y<=this.max.y},intersects:function(e){e=U(e);var s=this.min,u=this.max,h=e.min,_=e.max,k=_.x>=s.x&&h.x<=u.x,M=_.y>=s.y&&h.y<=u.y;return k&&M},overlaps:function(e){e=U(e);var s=this.min,u=this.max,h=e.min,_=e.max,k=_.x>s.x&&h.x<u.x,M=_.y>s.y&&h.y<u.y;return k&&M},isValid:function(){return!!(this.min&&this.max)},pad:function(e){var s=this.min,u=this.max,h=Math.abs(s.x-u.x)*e,_=Math.abs(s.y-u.y)*e;return U(j(s.x-h,s.y-_),j(u.x+h,u.y+_))},equals:function(e){return e?(e=U(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight())):!1}};function U(e,s){return!e||e instanceof N?e:new N(e,s)}function wt(e,s){if(e)for(var u=s?[e,s]:e,h=0,_=u.length;h<_;h++)this.extend(u[h])}wt.prototype={extend:function(e){var s=this._southWest,u=this._northEast,h,_;if(e instanceof pt)h=e,_=e;else if(e instanceof wt){if(h=e._southWest,_=e._northEast,!h||!_)return this}else return e?this.extend(at(e)||vt(e)):this;return!s&&!u?(this._southWest=new pt(h.lat,h.lng),this._northEast=new pt(_.lat,_.lng)):(s.lat=Math.min(h.lat,s.lat),s.lng=Math.min(h.lng,s.lng),u.lat=Math.max(_.lat,u.lat),u.lng=Math.max(_.lng,u.lng)),this},pad:function(e){var s=this._southWest,u=this._northEast,h=Math.abs(s.lat-u.lat)*e,_=Math.abs(s.lng-u.lng)*e;return new wt(new pt(s.lat-h,s.lng-_),new pt(u.lat+h,u.lng+_))},getCenter:function(){return new pt((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 pt(this.getNorth(),this.getWest())},getSouthEast:function(){return new pt(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(e){typeof e[0]=="number"||e instanceof pt||"lat"in e?e=at(e):e=vt(e);var s=this._southWest,u=this._northEast,h,_;return e instanceof wt?(h=e.getSouthWest(),_=e.getNorthEast()):h=_=e,h.lat>=s.lat&&_.lat<=u.lat&&h.lng>=s.lng&&_.lng<=u.lng},intersects:function(e){e=vt(e);var s=this._southWest,u=this._northEast,h=e.getSouthWest(),_=e.getNorthEast(),k=_.lat>=s.lat&&h.lat<=u.lat,M=_.lng>=s.lng&&h.lng<=u.lng;return k&&M},overlaps:function(e){e=vt(e);var s=this._southWest,u=this._northEast,h=e.getSouthWest(),_=e.getNorthEast(),k=_.lat>s.lat&&h.lat<u.lat,M=_.lng>s.lng&&h.lng<u.lng;return k&&M},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,s){return e?(e=vt(e),this._southWest.equals(e.getSouthWest(),s)&&this._northEast.equals(e.getNorthEast(),s)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function vt(e,s){return e instanceof wt?e:new wt(e,s)}function pt(e,s,u){if(isNaN(e)||isNaN(s))throw new Error("Invalid LatLng object: ("+e+", "+s+")");this.lat=+e,this.lng=+s,u!==void 0&&(this.alt=+u)}pt.prototype={equals:function(e,s){if(!e)return!1;e=at(e);var u=Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng));return u<=(s===void 0?1e-9:s)},toString:function(e){return"LatLng("+C(this.lat,e)+", "+C(this.lng,e)+")"},distanceTo:function(e){return At.distance(this,at(e))},wrap:function(){return At.wrapLatLng(this)},toBounds:function(e){var s=180*e/40075017,u=s/Math.cos(Math.PI/180*this.lat);return vt([this.lat-s,this.lng-u],[this.lat+s,this.lng+u])},clone:function(){return new pt(this.lat,this.lng,this.alt)}};function at(e,s,u){return e instanceof pt?e:tt(e)&&typeof e[0]!="object"?e.length===3?new pt(e[0],e[1],e[2]):e.length===2?new pt(e[0],e[1]):null:e==null?e:typeof e=="object"&&"lat"in e?new pt(e.lat,"lng"in e?e.lng:e.lon,e.alt):s===void 0?null:new pt(e,s,u)}var bt={latLngToPoint:function(e,s){var u=this.projection.project(e),h=this.scale(s);return this.transformation._transform(u,h)},pointToLatLng:function(e,s){var u=this.scale(s),h=this.transformation.untransform(e,u);return this.projection.unproject(h)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var s=this.projection.bounds,u=this.scale(e),h=this.transformation.transform(s.min,u),_=this.transformation.transform(s.max,u);return new N(h,_)},infinite:!1,wrapLatLng:function(e){var s=this.wrapLng?S(e.lng,this.wrapLng,!0):e.lng,u=this.wrapLat?S(e.lat,this.wrapLat,!0):e.lat,h=e.alt;return new pt(u,s,h)},wrapLatLngBounds:function(e){var s=e.getCenter(),u=this.wrapLatLng(s),h=s.lat-u.lat,_=s.lng-u.lng;if(h===0&&_===0)return e;var k=e.getSouthWest(),M=e.getNorthEast(),z=new pt(k.lat-h,k.lng-_),I=new pt(M.lat-h,M.lng-_);return new wt(z,I)}},At=f({},bt,{wrapLng:[-180,180],R:6371e3,distance:function(e,s){var u=Math.PI/180,h=e.lat*u,_=s.lat*u,k=Math.sin((s.lat-e.lat)*u/2),M=Math.sin((s.lng-e.lng)*u/2),z=k*k+Math.cos(h)*Math.cos(_)*M*M,I=2*Math.atan2(Math.sqrt(z),Math.sqrt(1-z));return this.R*I}}),Vt=6378137,me={R:Vt,MAX_LATITUDE:85.0511287798,project:function(e){var s=Math.PI/180,u=this.MAX_LATITUDE,h=Math.max(Math.min(u,e.lat),-u),_=Math.sin(h*s);return new Z(this.R*e.lng*s,this.R*Math.log((1+_)/(1-_))/2)},unproject:function(e){var s=180/Math.PI;return new pt((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*s,e.x*s/this.R)},bounds:(function(){var e=Vt*Math.PI;return new N([-e,-e],[e,e])})()};function yi(e,s,u,h){if(tt(e)){this._a=e[0],this._b=e[1],this._c=e[2],this._d=e[3];return}this._a=e,this._b=s,this._c=u,this._d=h}yi.prototype={transform:function(e,s){return this._transform(e.clone(),s)},_transform:function(e,s){return s=s||1,e.x=s*(this._a*e.x+this._b),e.y=s*(this._c*e.y+this._d),e},untransform:function(e,s){return s=s||1,new Z((e.x/s-this._b)/this._a,(e.y/s-this._d)/this._c)}};function wi(e,s,u,h){return new yi(e,s,u,h)}var xi=f({},At,{code:"EPSG:3857",projection:me,transformation:(function(){var e=.5/(Math.PI*me.R);return wi(e,.5,-e,.5)})()}),Ko=f({},xi,{code:"EPSG:900913"});function Yo(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Xo(e,s){var u="",h,_,k,M,z,I;for(h=0,k=e.length;h<k;h++){for(z=e[h],_=0,M=z.length;_<M;_++)I=z[_],u+=(_?"L":"M")+I.x+" "+I.y;u+=s?mt.svg?"z":"x":""}return u||"M0 0"}var ar=document.documentElement.style,lr="ActiveXObject"in window,Qo=lr&&!document.addEventListener,ki="msLaunchUri"in navigator&&!("documentMode"in document),Cn=ve("webkit"),qr=ve("android"),Jo=ve("android 2")||ve("android 3"),pa=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ma=qr&&ve("Google")&&pa<537&&!("AudioNode"in window),Gr=!!window.opera,Kr=!ki&&ve("chrome"),ur=ve("gecko")&&!Cn&&!Gr&&!lr,_a=!Kr&&ve("safari"),Si=ve("phantom"),Ei="OTransition"in ar,Su=navigator.platform.indexOf("Win")===0,ts=lr&&"transition"in ar,Yr="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Jo,ga="MozPerspective"in ar,es=!window.L_DISABLE_3D&&(ts||Yr||ga)&&!Ei&&!Si,$n=typeof orientation<"u"||ve("mobile"),ns=$n&&Cn,is=$n&&Yr,Xr=!window.PointerEvent&&window.MSPointerEvent,qn=!!(window.PointerEvent||Xr),Gn="ontouchstart"in window||!!window.TouchEvent,va=!window.L_NO_TOUCH&&(Gn||qn),ya=$n&&Gr,wa=$n&&ur,xa=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,ka=(function(){var e=!1;try{var s=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",T,s),window.removeEventListener("testPassiveEventSupport",T,s)}catch{}return e})(),rs=(function(){return!!document.createElement("canvas").getContext})(),Qr=!!(document.createElementNS&&Yo("svg").createSVGRect),cr=!!Qr&&(function(){var e=document.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),os=!Qr&&(function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var s=e.firstChild;return s.style.behavior="url(#default#VML)",s&&typeof s.adj=="object"}catch{return!1}})(),fr=navigator.platform.indexOf("Mac")===0,Eu=navigator.platform.indexOf("Linux")===0;function ve(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var mt={ie:lr,ielt9:Qo,edge:ki,webkit:Cn,android:qr,android23:Jo,androidStock:ma,opera:Gr,chrome:Kr,gecko:ur,safari:_a,phantom:Si,opera12:Ei,win:Su,ie3d:ts,webkit3d:Yr,gecko3d:ga,any3d:es,mobile:$n,mobileWebkit:ns,mobileWebkit3d:is,msPointer:Xr,pointer:qn,touch:va,touchNative:Gn,mobileOpera:ya,mobileGecko:wa,retina:xa,passiveEvents:ka,canvas:rs,svg:Qr,vml:os,inlineSvg:cr,mac:fr,linux:Eu},hr=mt.msPointer?"MSPointerDown":"pointerdown",Jr=mt.msPointer?"MSPointerMove":"pointermove",Sa=mt.msPointer?"MSPointerUp":"pointerup",Ea=mt.msPointer?"MSPointerCancel":"pointercancel",ss={touchstart:hr,touchmove:Jr,touchend:Sa,touchcancel:Ea},Mn={touchstart:Qt,touchmove:to,touchend:to,touchcancel:to},Kn={},as=!1;function Pu(e,s,u){return s==="touchstart"&&Lu(),Mn[s]?(u=Mn[s].bind(this,u),e.addEventListener(ss[s],u,!1),u):(console.warn("wrong event specified:",s),T)}function Pa(e,s,u){if(!ss[s]){console.warn("wrong event specified:",s);return}e.removeEventListener(ss[s],u,!1)}function La(e){Kn[e.pointerId]=e}function Ta(e){Kn[e.pointerId]&&(Kn[e.pointerId]=e)}function ls(e){delete Kn[e.pointerId]}function Lu(){as||(document.addEventListener(hr,La,!0),document.addEventListener(Jr,Ta,!0),document.addEventListener(Sa,ls,!0),document.addEventListener(Ea,ls,!0),as=!0)}function to(e,s){if(s.pointerType!==(s.MSPOINTER_TYPE_MOUSE||"mouse")){s.touches=[];for(var u in Kn)s.touches.push(Kn[u]);s.changedTouches=[s],e(s)}}function Qt(e,s){s.MSPOINTER_TYPE_TOUCH&&s.pointerType===s.MSPOINTER_TYPE_TOUCH&&Jt(s),to(e,s)}function Tu(e){var s={},u,h;for(h in e)u=e[h],s[h]=u&&u.bind?u.bind(e):u;return e=s,s.type="dblclick",s.detail=2,s.isTrusted=!1,s._simulated=!0,s}var us=200;function Ca(e,s){e.addEventListener("dblclick",s);var u=0,h;function _(k){if(k.detail!==1){h=k.detail;return}if(!(k.pointerType==="mouse"||k.sourceCapabilities&&!k.sourceCapabilities.firesTouchEvents)){var M=Qn(k);if(!(M.some(function(I){return I instanceof HTMLLabelElement&&I.attributes.for})&&!M.some(function(I){return I instanceof HTMLInputElement||I instanceof HTMLSelectElement}))){var z=Date.now();z-u<=us?(h++,h===2&&s(Tu(k))):h=1,u=z}}}return e.addEventListener("click",_),{dblclick:s,simDblclick:_}}function eo(e,s){e.removeEventListener("dblclick",s.dblclick),e.removeEventListener("click",s.simDblclick)}var cs=Ci(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Pi=Ci(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),dr=Pi==="webkitTransition"||Pi==="OTransition"?Pi+"End":"transitionend";function Ze(e){return typeof e=="string"?document.getElementById(e):e}function pr(e,s){var u=e.style[s]||e.currentStyle&&e.currentStyle[s];if((!u||u==="auto")&&document.defaultView){var h=document.defaultView.getComputedStyle(e,null);u=h?h[s]:null}return u==="auto"?null:u}function Tt(e,s,u){var h=document.createElement(e);return h.className=s||"",u&&u.appendChild(h),h}function Gt(e){var s=e.parentNode;s&&s.removeChild(e)}function no(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function Li(e){var s=e.parentNode;s&&s.lastChild!==e&&s.appendChild(e)}function dn(e){var s=e.parentNode;s&&s.firstChild!==e&&s.insertBefore(e,s.firstChild)}function Ti(e,s){if(e.classList!==void 0)return e.classList.contains(s);var u=io(e);return u.length>0&&new RegExp("(^|\\s)"+s+"(\\s|$)").test(u)}function Lt(e,s){if(e.classList!==void 0)for(var u=D(s),h=0,_=u.length;h<_;h++)e.classList.add(u[h]);else if(!Ti(e,s)){var k=io(e);fs(e,(k?k+" ":"")+s)}}function $t(e,s){e.classList!==void 0?e.classList.remove(s):fs(e,E((" "+io(e)+" ").replace(" "+s+" "," ")))}function fs(e,s){e.className.baseVal===void 0?e.className=s:e.className.baseVal=s}function io(e){return e.correspondingElement&&(e=e.correspondingElement),e.className.baseVal===void 0?e.className:e.className.baseVal}function ye(e,s){"opacity"in e.style?e.style.opacity=s:"filter"in e.style&&Ma(e,s)}function Ma(e,s){var u=!1,h="DXImageTransform.Microsoft.Alpha";try{u=e.filters.item(h)}catch{if(s===1)return}s=Math.round(s*100),u?(u.Enabled=s!==100,u.Opacity=s):e.style.filter+=" progid:"+h+"(opacity="+s+")"}function Ci(e){for(var s=document.documentElement.style,u=0;u<e.length;u++)if(e[u]in s)return e[u];return!1}function He(e,s,u){var h=s||new Z(0,0);e.style[cs]=(mt.ie3d?"translate("+h.x+"px,"+h.y+"px)":"translate3d("+h.x+"px,"+h.y+"px,0)")+(u?" scale("+u+")":"")}function ne(e,s){e._leaflet_pos=s,mt.any3d?He(e,s):(e.style.left=s.x+"px",e.style.top=s.y+"px")}function pn(e){return e._leaflet_pos||new Z(0,0)}var It,Mi,ro;if("onselectstart"in document)It=function(){Et(window,"selectstart",Jt)},Mi=function(){jt(window,"selectstart",Jt)};else{var Yn=Ci(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);It=function(){if(Yn){var e=document.documentElement.style;ro=e[Yn],e[Yn]="none"}},Mi=function(){Yn&&(document.documentElement.style[Yn]=ro,ro=void 0)}}function oo(){Et(window,"dragstart",Jt)}function so(){jt(window,"dragstart",Jt)}var mr,_r;function Ai(e){for(;e.tabIndex===-1;)e=e.parentNode;e.style&&(Ue(),mr=e,_r=e.style.outlineStyle,e.style.outlineStyle="none",Et(window,"keydown",Ue))}function Ue(){mr&&(mr.style.outlineStyle=_r,mr=void 0,_r=void 0,jt(window,"keydown",Ue))}function mn(e){do e=e.parentNode;while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function Qe(e){var s=e.getBoundingClientRect();return{x:s.width/e.offsetWidth||1,y:s.height/e.offsetHeight||1,boundingClientRect:s}}var gr={__proto__:null,TRANSFORM:cs,TRANSITION:Pi,TRANSITION_END:dr,get:Ze,getStyle:pr,create:Tt,remove:Gt,empty:no,toFront:Li,toBack:dn,hasClass:Ti,addClass:Lt,removeClass:$t,setClass:fs,getClass:io,setOpacity:ye,testProp:Ci,setTransform:He,setPosition:ne,getPosition:pn,get disableTextSelection(){return It},get enableTextSelection(){return Mi},disableImageDrag:oo,enableImageDrag:so,preventOutline:Ai,restoreOutline:Ue,getSizedParentNode:mn,getScale:Qe};function Et(e,s,u,h){if(s&&typeof s=="object")for(var _ in s)ds(e,_,s[_],u);else{s=D(s);for(var k=0,M=s.length;k<M;k++)ds(e,s[k],u,h)}return this}var le="_leaflet_events";function jt(e,s,u,h){if(arguments.length===1)hs(e),delete e[le];else if(s&&typeof s=="object")for(var _ in s)ao(e,_,s[_],u);else if(s=D(s),arguments.length===2)hs(e,function(z){return F(s,z)!==-1});else for(var k=0,M=s.length;k<M;k++)ao(e,s[k],u,h);return this}function hs(e,s){for(var u in e[le]){var h=u.split(/\d/)[0];(!s||s(h))&&ao(e,h,null,null,u)}}var Xn={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ds(e,s,u,h){var _=s+w(u)+(h?"_"+w(h):"");if(e[le]&&e[le][_])return this;var k=function(z){return u.call(h||e,z||window.event)},M=k;!mt.touchNative&&mt.pointer&&s.indexOf("touch")===0?k=Pu(e,s,k):mt.touch&&s==="dblclick"?k=Ca(e,k):"addEventListener"in e?s==="touchstart"||s==="touchmove"||s==="wheel"||s==="mousewheel"?e.addEventListener(Xn[s]||s,k,mt.passiveEvents?{passive:!1}:!1):s==="mouseenter"||s==="mouseleave"?(k=function(z){z=z||window.event,wr(e,z)&&M(z)},e.addEventListener(Xn[s],k,!1)):e.addEventListener(s,M,!1):e.attachEvent("on"+s,k),e[le]=e[le]||{},e[le][_]=k}function ao(e,s,u,h,_){_=_||s+w(u)+(h?"_"+w(h):"");var k=e[le]&&e[le][_];if(!k)return this;!mt.touchNative&&mt.pointer&&s.indexOf("touch")===0?Pa(e,s,k):mt.touch&&s==="dblclick"?eo(e,k):"removeEventListener"in e?e.removeEventListener(Xn[s]||s,k,!1):e.detachEvent("on"+s,k),e[le][_]=null}function Je(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function lo(e){return ds(e,"wheel",Je),this}function vr(e){return Et(e,"mousedown touchstart dblclick contextmenu",Je),e._leaflet_disable_click=!0,this}function Jt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function je(e){return Jt(e),Je(e),this}function Qn(e){if(e.composedPath)return e.composedPath();for(var s=[],u=e.target;u;)s.push(u),u=u.parentNode;return s}function yr(e,s){if(!s)return new Z(e.clientX,e.clientY);var u=Qe(s),h=u.boundingClientRect;return new Z((e.clientX-h.left)/u.x-s.clientLeft,(e.clientY-h.top)/u.y-s.clientTop)}var Cu=mt.linux&&mt.chrome?window.devicePixelRatio:mt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Aa(e){return mt.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/Cu:e.deltaY&&e.deltaMode===1?-e.deltaY*20:e.deltaY&&e.deltaMode===2?-e.deltaY*60:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?-e.detail*20:e.detail?e.detail/-32765*60:0}function wr(e,s){var u=s.relatedTarget;if(!u)return!0;try{for(;u&&u!==e;)u=u.parentNode}catch{return!1}return u!==e}var uo={__proto__:null,on:Et,off:jt,stopPropagation:Je,disableScrollPropagation:lo,disableClickPropagation:vr,preventDefault:Jt,stop:je,getPropagationPath:Qn,getMousePosition:yr,getWheelDelta:Aa,isExternalTarget:wr,addListener:Et,removeListener:jt},co=Dt.extend({run:function(e,s,u,h){this.stop(),this._el=e,this._inProgress=!0,this._duration=u||.25,this._easeOutPower=1/Math.max(h||.5,.2),this._startPos=pn(e),this._offset=s.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=q(this._animate,this),this._step()},_step:function(e){var s=+new Date-this._startTime,u=this._duration*1e3;s<u?this._runFrame(this._easeOut(s/u),e):(this._runFrame(1),this._complete())},_runFrame:function(e,s){var u=this._startPos.add(this._offset.multiplyBy(e));s&&u._round(),ne(this._el,u),this.fire("step")},_complete:function(){yt(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),Rt=Dt.extend({options:{crs:xi,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(e,s){s=H(this,s),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=g(this._onResize,this),this._initEvents(),s.maxBounds&&this.setMaxBounds(s.maxBounds),s.zoom!==void 0&&(this._zoom=this._limitZoom(s.zoom)),s.center&&s.zoom!==void 0&&this.setView(at(s.center),s.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Pi&&mt.any3d&&!mt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Et(this._proxy,dr,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,s,u){if(s=s===void 0?this._zoom:this._limitZoom(s),e=this._limitCenter(at(e),s,this.options.maxBounds),u=u||{},this._stop(),this._loaded&&!u.reset&&u!==!0){u.animate!==void 0&&(u.zoom=f({animate:u.animate},u.zoom),u.pan=f({animate:u.animate,duration:u.duration},u.pan));var h=this._zoom!==s?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,s,u.zoom):this._tryAnimatedPan(e,u.pan);if(h)return clearTimeout(this._sizeTimer),this}return this._resetView(e,s,u.pan&&u.pan.noMoveStart),this},setZoom:function(e,s){return this._loaded?this.setView(this.getCenter(),e,{zoom:s}):(this._zoom=e,this)},zoomIn:function(e,s){return e=e||(mt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,s)},zoomOut:function(e,s){return e=e||(mt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,s)},setZoomAround:function(e,s,u){var h=this.getZoomScale(s),_=this.getSize().divideBy(2),k=e instanceof Z?e:this.latLngToContainerPoint(e),M=k.subtract(_).multiplyBy(1-1/h),z=this.containerPointToLatLng(_.add(M));return this.setView(z,s,{zoom:u})},_getBoundsCenterZoom:function(e,s){s=s||{},e=e.getBounds?e.getBounds():vt(e);var u=j(s.paddingTopLeft||s.padding||[0,0]),h=j(s.paddingBottomRight||s.padding||[0,0]),_=this.getBoundsZoom(e,!1,u.add(h));if(_=typeof s.maxZoom=="number"?Math.min(s.maxZoom,_):_,_===1/0)return{center:e.getCenter(),zoom:_};var k=h.subtract(u).divideBy(2),M=this.project(e.getSouthWest(),_),z=this.project(e.getNorthEast(),_),I=this.unproject(M.add(z).divideBy(2).add(k),_);return{center:I,zoom:_}},fitBounds:function(e,s){if(e=vt(e),!e.isValid())throw new Error("Bounds are not valid.");var u=this._getBoundsCenterZoom(e,s);return this.setView(u.center,u.zoom,s)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,s){return this.setView(e,this._zoom,{pan:s})},panBy:function(e,s){if(e=j(e).round(),s=s||{},!e.x&&!e.y)return this.fire("moveend");if(s.animate!==!0&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new co,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),s.noMoveStart||this.fire("movestart"),s.animate!==!1){Lt(this._mapPane,"leaflet-pan-anim");var u=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,u,s.duration||.25,s.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,s,u){if(u=u||{},u.animate===!1||!mt.any3d)return this.setView(e,s,u);this._stop();var h=this.project(this.getCenter()),_=this.project(e),k=this.getSize(),M=this._zoom;e=at(e),s=s===void 0?M:s;var z=Math.max(k.x,k.y),I=z*this.getZoomScale(M,s),W=_.distanceTo(h)||1,nt=1.42,xt=nt*nt;function Ct(Ht){var Vi=Ht?-1:1,Uu=Ht?I:z,ju=I*I-z*z+Vi*xt*xt*W*W,oi=2*Uu*xt*W,si=ju/oi,ai=Math.sqrt(si*si+1)-si,Po=ai<1e-9?-18:Math.log(ai);return Po}function ue(Ht){return(Math.exp(Ht)-Math.exp(-Ht))/2}function oe(Ht){return(Math.exp(Ht)+Math.exp(-Ht))/2}function Ce(Ht){return ue(Ht)/oe(Ht)}var xe=Ct(0);function ji(Ht){return z*(oe(xe)/oe(xe+nt*Ht))}function Rs(Ht){return z*(oe(xe)*Ce(xe+nt*Ht)-ue(xe))/xt}function Bn(Ht){return 1-Math.pow(1-Ht,1.5)}var Xa=Date.now(),ri=(Ct(1)-xe)/nt,rn=u.duration?1e3*u.duration:1e3*ri*.8;function Wi(){var Ht=(Date.now()-Xa)/rn,Vi=Bn(Ht)*ri;Ht<=1?(this._flyToFrame=q(Wi,this),this._move(this.unproject(h.add(_.subtract(h).multiplyBy(Rs(Vi)/W)),M),this.getScaleZoom(z/ji(Vi),M),{flyTo:!0})):this._move(e,s)._moveEnd(!0)}return this._moveStart(!0,u.noMoveStart),Wi.call(this),this},flyToBounds:function(e,s){var u=this._getBoundsCenterZoom(e,s);return this.flyTo(u.center,u.zoom,s)},setMaxBounds:function(e){return e=vt(e),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),e.isValid()?(this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(e){var s=this.options.minZoom;return this.options.minZoom=e,this._loaded&&s!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var s=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&s!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,s){this._enforcingBounds=!0;var u=this.getCenter(),h=this._limitCenter(u,this._zoom,vt(e));return u.equals(h)||this.panTo(h,s),this._enforcingBounds=!1,this},panInside:function(e,s){s=s||{};var u=j(s.paddingTopLeft||s.padding||[0,0]),h=j(s.paddingBottomRight||s.padding||[0,0]),_=this.project(this.getCenter()),k=this.project(e),M=this.getPixelBounds(),z=U([M.min.add(u),M.max.subtract(h)]),I=z.getSize();if(!z.contains(k)){this._enforcingBounds=!0;var W=k.subtract(z.getCenter()),nt=z.extend(k).getSize().subtract(I);_.x+=W.x<0?-nt.x:nt.x,_.y+=W.y<0?-nt.y:nt.y,this.panTo(this.unproject(_),s),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=f({animate:!1,pan:!0},e===!0?{animate:!0}:e);var s=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var u=this.getSize(),h=s.divideBy(2).round(),_=u.divideBy(2).round(),k=h.subtract(_);return!k.x&&!k.y?this:(e.animate&&e.pan?this.panBy(k):(e.pan&&this._rawPanBy(k),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(g(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:s,newSize:u}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=f({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var s=g(this._handleGeolocationResponse,this),u=g(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(s,u,e):navigator.geolocation.getCurrentPosition(s,u,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var s=e.code,u=e.message||(s===1?"permission denied":s===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:s,message:"Geolocation error: "+u+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var s=e.coords.latitude,u=e.coords.longitude,h=new pt(s,u),_=h.toBounds(e.coords.accuracy*2),k=this._locateOptions;if(k.setView){var M=this.getBoundsZoom(_);this.setView(h,k.maxZoom?Math.min(M,k.maxZoom):M)}var z={latlng:h,bounds:_,timestamp:e.timestamp};for(var I in e.coords)typeof e.coords[I]=="number"&&(z[I]=e.coords[I]);this.fire("locationfound",z)}},addHandler:function(e,s){if(!s)return this;var u=this[e]=new s(this);return this._handlers.push(u),this.options[e]&&u.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{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Gt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(yt(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var e;for(e in this._layers)this._layers[e].remove();for(e in this._panes)Gt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,s){var u="leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),h=Tt("div",u,s||this._mapPane);return e&&(this._panes[e]=h),h},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds(),s=this.unproject(e.getBottomLeft()),u=this.unproject(e.getTopRight());return new wt(s,u)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,s,u){e=vt(e),u=j(u||[0,0]);var h=this.getZoom()||0,_=this.getMinZoom(),k=this.getMaxZoom(),M=e.getNorthWest(),z=e.getSouthEast(),I=this.getSize().subtract(u),W=U(this.project(z,h),this.project(M,h)).getSize(),nt=mt.any3d?this.options.zoomSnap:1,xt=I.x/W.x,Ct=I.y/W.y,ue=s?Math.max(xt,Ct):Math.min(xt,Ct);return h=this.getScaleZoom(ue,h),nt&&(h=Math.round(h/(nt/100))*(nt/100),h=s?Math.ceil(h/nt)*nt:Math.floor(h/nt)*nt),Math.max(_,Math.min(k,h))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,s){var u=this._getTopLeftPoint(e,s);return new N(u,u.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(e===void 0?this.getZoom():e)},getPane:function(e){return typeof e=="string"?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,s){var u=this.options.crs;return s=s===void 0?this._zoom:s,u.scale(e)/u.scale(s)},getScaleZoom:function(e,s){var u=this.options.crs;s=s===void 0?this._zoom:s;var h=u.zoom(e*u.scale(s));return isNaN(h)?1/0:h},project:function(e,s){return s=s===void 0?this._zoom:s,this.options.crs.latLngToPoint(at(e),s)},unproject:function(e,s){return s=s===void 0?this._zoom:s,this.options.crs.pointToLatLng(j(e),s)},layerPointToLatLng:function(e){var s=j(e).add(this.getPixelOrigin());return this.unproject(s)},latLngToLayerPoint:function(e){var s=this.project(at(e))._round();return s._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(at(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(vt(e))},distance:function(e,s){return this.options.crs.distance(at(e),at(s))},containerPointToLayerPoint:function(e){return j(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return j(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var s=this.containerPointToLayerPoint(j(e));return this.layerPointToLatLng(s)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(at(e)))},mouseEventToContainerPoint:function(e){return yr(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var s=this._container=Ze(e);if(s){if(s._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Et(s,"scroll",this._onScroll,this),this._containerId=w(s)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&mt.any3d,Lt(e,"leaflet-container"+(mt.touch?" leaflet-touch":"")+(mt.retina?" leaflet-retina":"")+(mt.ielt9?" leaflet-oldie":"")+(mt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var s=pr(e,"position");s!=="absolute"&&s!=="relative"&&s!=="fixed"&&s!=="sticky"&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ne(this._mapPane,new Z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Lt(e.markerPane,"leaflet-zoom-hide"),Lt(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,s,u){ne(this._mapPane,new Z(0,0));var h=!this._loaded;this._loaded=!0,s=this._limitZoom(s),this.fire("viewprereset");var _=this._zoom!==s;this._moveStart(_,u)._move(e,s)._moveEnd(_),this.fire("viewreset"),h&&this.fire("load")},_moveStart:function(e,s){return e&&this.fire("zoomstart"),s||this.fire("movestart"),this},_move:function(e,s,u,h){s===void 0&&(s=this._zoom);var _=this._zoom!==s;return this._zoom=s,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),h?u&&u.pinch&&this.fire("zoom",u):((_||u&&u.pinch)&&this.fire("zoom",u),this.fire("move",u)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return yt(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){ne(this._mapPane,this._getMapPanePos().subtract(e))},_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(e){this._targets={},this._targets[w(this._container)]=this;var s=e?jt:Et;s(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&s(window,"resize",this._onResize,this),mt.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){yt(this._resizeRequest),this._resizeRequest=q(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,s){for(var u=[],h,_=s==="mouseout"||s==="mouseover",k=e.target||e.srcElement,M=!1;k;){if(h=this._targets[w(k)],h&&(s==="click"||s==="preclick")&&this._draggableMoved(h)){M=!0;break}if(h&&h.listens(s,!0)&&(_&&!wr(k,e)||(u.push(h),_))||k===this._container)break;k=k.parentNode}return!u.length&&!M&&!_&&this.listens(s,!0)&&(u=[this]),u},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var s=e.target||e.srcElement;if(!(!this._loaded||s._leaflet_disable_events||e.type==="click"&&this._isClickDisabled(s))){var u=e.type;u==="mousedown"&&Ai(s),this._fireDOMEvent(e,u)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,s,u){if(e.type==="click"){var h=f({},e);h.type="preclick",this._fireDOMEvent(h,h.type,u)}var _=this._findEventTargets(e,s);if(u){for(var k=[],M=0;M<u.length;M++)u[M].listens(s,!0)&&k.push(u[M]);_=k.concat(_)}if(_.length){s==="contextmenu"&&Jt(e);var z=_[0],I={originalEvent:e};if(e.type!=="keypress"&&e.type!=="keydown"&&e.type!=="keyup"){var W=z.getLatLng&&(!z._radius||z._radius<=10);I.containerPoint=W?this.latLngToContainerPoint(z.getLatLng()):this.mouseEventToContainerPoint(e),I.layerPoint=this.containerPointToLayerPoint(I.containerPoint),I.latlng=W?z.getLatLng():this.layerPointToLatLng(I.layerPoint)}for(M=0;M<_.length;M++)if(_[M].fire(s,I,!0),I.originalEvent._stopped||_[M].options.bubblingMouseEvents===!1&&F(this._mouseEvents,s)!==-1)return}},_draggableMoved:function(e){return e=e.dragging&&e.dragging.enabled()?e:this,e.dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,s=this._handlers.length;e<s;e++)this._handlers[e].disable()},whenReady:function(e,s){return this._loaded?e.call(s||this,{target:this}):this.on("load",e,s),this},_getMapPanePos:function(){return pn(this._mapPane)||new Z(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,s){var u=e&&s!==void 0?this._getNewPixelOrigin(e,s):this.getPixelOrigin();return u.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,s){var u=this.getSize()._divideBy(2);return this.project(e,s)._subtract(u)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,s,u){var h=this._getNewPixelOrigin(u,s);return this.project(e,s)._subtract(h)},_latLngBoundsToNewLayerBounds:function(e,s,u){var h=this._getNewPixelOrigin(u,s);return U([this.project(e.getSouthWest(),s)._subtract(h),this.project(e.getNorthWest(),s)._subtract(h),this.project(e.getSouthEast(),s)._subtract(h),this.project(e.getNorthEast(),s)._subtract(h)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,s,u){if(!u)return e;var h=this.project(e,s),_=this.getSize().divideBy(2),k=new N(h.subtract(_),h.add(_)),M=this._getBoundsOffset(k,u,s);return Math.abs(M.x)<=1&&Math.abs(M.y)<=1?e:this.unproject(h.add(M),s)},_limitOffset:function(e,s){if(!s)return e;var u=this.getPixelBounds(),h=new N(u.min.add(e),u.max.add(e));return e.add(this._getBoundsOffset(h,s))},_getBoundsOffset:function(e,s,u){var h=U(this.project(s.getNorthEast(),u),this.project(s.getSouthWest(),u)),_=h.min.subtract(e.min),k=h.max.subtract(e.max),M=this._rebound(_.x,-k.x),z=this._rebound(_.y,-k.y);return new Z(M,z)},_rebound:function(e,s){return e+s>0?Math.round(e-s)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(s))},_limitZoom:function(e){var s=this.getMinZoom(),u=this.getMaxZoom(),h=mt.any3d?this.options.zoomSnap:1;return h&&(e=Math.round(e/h)*h),Math.max(s,Math.min(u,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){$t(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,s){var u=this._getCenterOffset(e)._trunc();return(s&&s.animate)!==!0&&!this.getSize().contains(u)?!1:(this.panBy(u,s),!0)},_createAnimProxy:function(){var e=this._proxy=Tt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",function(s){var u=cs,h=this._proxy.style[u];He(this._proxy,this.project(s.center,s.zoom),this.getZoomScale(s.zoom,1)),h===this._proxy.style[u]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Gt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),s=this.getZoom();He(this._proxy,this.project(e,s),this.getZoomScale(s,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,s,u){if(this._animatingZoom)return!0;if(u=u||{},!this._zoomAnimated||u.animate===!1||this._nothingToAnimate()||Math.abs(s-this._zoom)>this.options.zoomAnimationThreshold)return!1;var h=this.getZoomScale(s),_=this._getCenterOffset(e)._divideBy(1-1/h);return u.animate!==!0&&!this.getSize().contains(_)?!1:(q(function(){this._moveStart(!0,u.noMoveStart||!1)._animateZoom(e,s,!0)},this),!0)},_animateZoom:function(e,s,u,h){this._mapPane&&(u&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=s,Lt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:s,noUpdate:h}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(g(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&$t(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))}});function An(e,s){return new Rt(e,s)}var Le=Ot.extend({options:{position:"topright"},initialize:function(e){H(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var s=this._map;return s&&s.removeControl(this),this.options.position=e,s&&s.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var s=this._container=this.onAdd(e),u=this.getPosition(),h=e._controlCorners[u];return Lt(s,"leaflet-control"),u.indexOf("bottom")!==-1?h.insertBefore(s,h.firstChild):h.appendChild(s),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Gt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),Nn=function(e){return new Le(e)};Rt.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},s="leaflet-",u=this._controlContainer=Tt("div",s+"control-container",this._container);function h(_,k){var M=s+_+" "+s+k;e[_+k]=Tt("div",M,u)}h("top","left"),h("top","right"),h("bottom","left"),h("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)Gt(this._controlCorners[e]);Gt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ps=Le.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,s,u,h){return u<h?-1:h<u?1:0}},initialize:function(e,s,u){H(this,u),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var h in e)this._addLayer(e[h],h);for(h in s)this._addLayer(s[h],h,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var s=0;s<this._layers.length;s++)this._layers[s].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return Le.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,s){return this._addLayer(e,s),this._map?this._update():this},addOverlay:function(e,s){return this._addLayer(e,s,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var s=this._getLayer(w(e));return s&&this._layers.splice(this._layers.indexOf(s),1),this._map?this._update():this},expand:function(){Lt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(Lt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):$t(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return $t(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",s=this._container=Tt("div",e),u=this.options.collapsed;s.setAttribute("aria-haspopup",!0),vr(s),lo(s);var h=this._section=Tt("section",e+"-list");u&&(this._map.on("click",this.collapse,this),Et(s,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var _=this._layersLink=Tt("a",e+"-toggle",s);_.href="#",_.title="Layers",_.setAttribute("role","button"),Et(_,{keydown:function(k){k.keyCode===13&&this._expandSafely()},click:function(k){Jt(k),this._expandSafely()}},this),u||this.expand(),this._baseLayersList=Tt("div",e+"-base",h),this._separator=Tt("div",e+"-separator",h),this._overlaysList=Tt("div",e+"-overlays",h),s.appendChild(h)},_getLayer:function(e){for(var s=0;s<this._layers.length;s++)if(this._layers[s]&&w(this._layers[s].layer)===e)return this._layers[s]},_addLayer:function(e,s,u){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:s,overlay:u}),this.options.sortLayers&&this._layers.sort(g(function(h,_){return this.options.sortFunction(h.layer,_.layer,h.name,_.name)},this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;no(this._baseLayersList),no(this._overlaysList),this._layerControlInputs=[];var e,s,u,h,_=0;for(u=0;u<this._layers.length;u++)h=this._layers[u],this._addItem(h),s=s||h.overlay,e=e||!h.overlay,_+=h.overlay?0:1;return this.options.hideSingleBase&&(e=e&&_>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=s&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var s=this._getLayer(w(e.target)),u=s.overlay?e.type==="add"?"overlayadd":"overlayremove":e.type==="add"?"baselayerchange":null;u&&this._map.fire(u,s)},_createRadioElement:function(e,s){var u='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(s?' checked="checked"':"")+"/>",h=document.createElement("div");return h.innerHTML=u,h.firstChild},_addItem:function(e){var s=document.createElement("label"),u=this._map.hasLayer(e.layer),h;e.overlay?(h=document.createElement("input"),h.type="checkbox",h.className="leaflet-control-layers-selector",h.defaultChecked=u):h=this._createRadioElement("leaflet-base-layers_"+w(this),u),this._layerControlInputs.push(h),h.layerId=w(e.layer),Et(h,"click",this._onInputClick,this);var _=document.createElement("span");_.innerHTML=" "+e.name;var k=document.createElement("span");s.appendChild(k),k.appendChild(h),k.appendChild(_);var M=e.overlay?this._overlaysList:this._baseLayersList;return M.appendChild(s),this._checkDisabledLayers(),s},_onInputClick:function(){if(!this._preventClick){var e=this._layerControlInputs,s,u,h=[],_=[];this._handlingClick=!0;for(var k=e.length-1;k>=0;k--)s=e[k],u=this._getLayer(s.layerId).layer,s.checked?h.push(u):s.checked||_.push(u);for(k=0;k<_.length;k++)this._map.hasLayer(_[k])&&this._map.removeLayer(_[k]);for(k=0;k<h.length;k++)this._map.hasLayer(h[k])||this._map.addLayer(h[k]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e=this._layerControlInputs,s,u,h=this._map.getZoom(),_=e.length-1;_>=0;_--)s=e[_],u=this._getLayer(s.layerId).layer,s.disabled=u.options.minZoom!==void 0&&h<u.options.minZoom||u.options.maxZoom!==void 0&&h>u.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,Et(e,"click",Jt),this.expand();var s=this;setTimeout(function(){jt(e,"click",Jt),s._preventClick=!1})}}),fo=function(e,s,u){return new ps(e,s,u)},Ni=Le.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var s="leaflet-control-zoom",u=Tt("div",s+" leaflet-bar"),h=this.options;return this._zoomInButton=this._createButton(h.zoomInText,h.zoomInTitle,s+"-in",u,this._zoomIn),this._zoomOutButton=this._createButton(h.zoomOutText,h.zoomOutTitle,s+"-out",u,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),u},onRemove:function(e){e.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(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,s,u,h,_){var k=Tt("a",u,h);return k.innerHTML=e,k.href="#",k.title=s,k.setAttribute("role","button"),k.setAttribute("aria-label",s),vr(k),Et(k,"click",je),Et(k,"click",_,this),Et(k,"click",this._refocusOnMap,this),k},_updateDisabled:function(){var e=this._map,s="leaflet-disabled";$t(this._zoomInButton,s),$t(this._zoomOutButton,s),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(Lt(this._zoomOutButton,s),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(Lt(this._zoomInButton,s),this._zoomInButton.setAttribute("aria-disabled","true"))}});Rt.mergeOptions({zoomControl:!0}),Rt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ni,this.addControl(this.zoomControl))});var Na=function(e){return new Ni(e)},we=Le.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var s="leaflet-control-scale",u=Tt("div",s),h=this.options;return this._addScales(h,s+"-line",u),e.on(h.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),u},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,s,u){e.metric&&(this._mScale=Tt("div",s,u)),e.imperial&&(this._iScale=Tt("div",s,u))},_update:function(){var e=this._map,s=e.getSize().y/2,u=e.distance(e.containerPointToLatLng([0,s]),e.containerPointToLatLng([this.options.maxWidth,s]));this._updateScales(u)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var s=this._getRoundNum(e),u=s<1e3?s+" m":s/1e3+" km";this._updateScale(this._mScale,u,s/e)},_updateImperial:function(e){var s=e*3.2808399,u,h,_;s>5280?(u=s/5280,h=this._getRoundNum(u),this._updateScale(this._iScale,h+" mi",h/u)):(_=this._getRoundNum(s),this._updateScale(this._iScale,_+" ft",_/s))},_updateScale:function(e,s,u){e.style.width=Math.round(this.options.maxWidth*u)+"px",e.innerHTML=s},_getRoundNum:function(e){var s=Math.pow(10,(Math.floor(e)+"").length-1),u=e/s;return u=u>=10?10:u>=5?5:u>=3?3:u>=2?2:1,s*u}}),Oi=function(e){return new we(e)},ms='<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>',Jn=Le.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(mt.inlineSvg?ms+" ":"")+"Leaflet</a>"},initialize:function(e){H(this,e),this._attributions={}},onAdd:function(e){e.attributionControl=this,this._container=Tt("div","leaflet-control-attribution"),vr(this._container);for(var s in e._layers)e._layers[s].getAttribution&&this.addAttribution(e._layers[s].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var s in this._attributions)this._attributions[s]&&e.push(s);var u=[];this.options.prefix&&u.push(this.options.prefix),e.length&&u.push(e.join(", ")),this._container.innerHTML=u.join(' <span aria-hidden="true">|</span> ')}}});Rt.mergeOptions({attributionControl:!0}),Rt.addInitHook(function(){this.options.attributionControl&&new Jn().addTo(this)});var Mu=function(e){return new Jn(e)};Le.Layers=ps,Le.Zoom=Ni,Le.Scale=we,Le.Attribution=Jn,Nn.layers=fo,Nn.zoom=Na,Nn.scale=Oi,Nn.attribution=Mu;var Ne=Ot.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ne.addTo=function(e,s){return e.addHandler(s,this),this};var _s={Events:zt},zi=mt.touch?"touchstart mousedown":"mousedown",We=Dt.extend({options:{clickTolerance:3},initialize:function(e,s,u,h){H(this,h),this._element=e,this._dragStartTarget=s||e,this._preventOutline=u},enable:function(){this._enabled||(Et(this._dragStartTarget,zi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(We._dragging===this&&this.finishDrag(!0),jt(this._dragStartTarget,zi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!Ti(this._element,"leaflet-zoom-anim"))){if(e.touches&&e.touches.length!==1){We._dragging===this&&this.finishDrag();return}if(!(We._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches)&&(We._dragging=this,this._preventOutline&&Ai(this._element),oo(),It(),!this._moving)){this.fire("down");var s=e.touches?e.touches[0]:e,u=mn(this._element);this._startPoint=new Z(s.clientX,s.clientY),this._startPos=pn(this._element),this._parentScale=Qe(u);var h=e.type==="mousedown";Et(document,h?"mousemove":"touchmove",this._onMove,this),Et(document,h?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var s=e.touches&&e.touches.length===1?e.touches[0]:e,u=new Z(s.clientX,s.clientY)._subtract(this._startPoint);!u.x&&!u.y||Math.abs(u.x)+Math.abs(u.y)<this.options.clickTolerance||(u.x/=this._parentScale.x,u.y/=this._parentScale.y,Jt(e),this._moved||(this.fire("dragstart"),this._moved=!0,Lt(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Lt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(u),this._moving=!0,this._lastEvent=e,this._updatePosition())}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),ne(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){$t(document.body,"leaflet-dragging"),this._lastTarget&&($t(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),jt(document,"mousemove touchmove",this._onMove,this),jt(document,"mouseup touchend touchcancel",this._onUp,this),so(),Mi();var s=this._moved&&this._moving;this._moving=!1,We._dragging=!1,s&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});function gs(e,s,u){var h,_=[1,4,2,8],k,M,z,I,W,nt,xt,Ct;for(k=0,nt=e.length;k<nt;k++)e[k]._code=ti(e[k],s);for(z=0;z<4;z++){for(xt=_[z],h=[],k=0,nt=e.length,M=nt-1;k<nt;M=k++)I=e[k],W=e[M],I._code&xt?W._code&xt||(Ct=po(W,I,xt,s,u),Ct._code=ti(Ct,s),h.push(Ct)):(W._code&xt&&(Ct=po(W,I,xt,s,u),Ct._code=ti(Ct,s),h.push(Ct)),h.push(I));e=h}return e}function Oa(e,s){var u,h,_,k,M,z,I,W,nt;if(!e||e.length===0)throw new Error("latlngs not passed");Oe(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var xt=at([0,0]),Ct=vt(e),ue=Ct.getNorthWest().distanceTo(Ct.getSouthWest())*Ct.getNorthEast().distanceTo(Ct.getNorthWest());ue<1700&&(xt=vs(e));var oe=e.length,Ce=[];for(u=0;u<oe;u++){var xe=at(e[u]);Ce.push(s.project(at([xe.lat-xt.lat,xe.lng-xt.lng])))}for(z=I=W=0,u=0,h=oe-1;u<oe;h=u++)_=Ce[u],k=Ce[h],M=_.y*k.x-k.y*_.x,I+=(_.x+k.x)*M,W+=(_.y+k.y)*M,z+=M*3;z===0?nt=Ce[0]:nt=[I/z,W/z];var ji=s.unproject(j(nt));return at([ji.lat+xt.lat,ji.lng+xt.lng])}function vs(e){for(var s=0,u=0,h=0,_=0;_<e.length;_++){var k=at(e[_]);s+=k.lat,u+=k.lng,h++}return at([s/h,u/h])}var Au={__proto__:null,clipPolygon:gs,polygonCenter:Oa,centroid:vs};function ho(e,s){if(!s||!e.length)return e.slice();var u=s*s;return e=zu(e,u),e=Ou(e,u),e}function za(e,s,u){return Math.sqrt(ei(e,s,u,!0))}function Nu(e,s,u){return ei(e,s,u)}function Ou(e,s){var u=e.length,h=typeof Uint8Array<"u"?Uint8Array:Array,_=new h(u);_[0]=_[u-1]=1,ys(e,_,s,0,u-1);var k,M=[];for(k=0;k<u;k++)_[k]&&M.push(e[k]);return M}function ys(e,s,u,h,_){var k=0,M,z,I;for(z=h+1;z<=_-1;z++)I=ei(e[z],e[h],e[_],!0),I>k&&(M=z,k=I);k>u&&(s[M]=1,ys(e,s,u,h,M),ys(e,s,u,M,_))}function zu(e,s){for(var u=[e[0]],h=1,_=0,k=e.length;h<k;h++)Ru(e[h],e[_])>s&&(u.push(e[h]),_=h);return _<k-1&&u.push(e[k-1]),u}var ws;function Ra(e,s,u,h,_){var k=h?ws:ti(e,u),M=ti(s,u),z,I,W;for(ws=M;;){if(!(k|M))return[e,s];if(k&M)return!1;z=k||M,I=po(e,s,z,u,_),W=ti(I,u),z===k?(e=I,k=W):(s=I,M=W)}}function po(e,s,u,h,_){var k=s.x-e.x,M=s.y-e.y,z=h.min,I=h.max,W,nt;return u&8?(W=e.x+k*(I.y-e.y)/M,nt=I.y):u&4?(W=e.x+k*(z.y-e.y)/M,nt=z.y):u&2?(W=I.x,nt=e.y+M*(I.x-e.x)/k):u&1&&(W=z.x,nt=e.y+M*(z.x-e.x)/k),new Z(W,nt,_)}function ti(e,s){var u=0;return e.x<s.min.x?u|=1:e.x>s.max.x&&(u|=2),e.y<s.min.y?u|=4:e.y>s.max.y&&(u|=8),u}function Ru(e,s){var u=s.x-e.x,h=s.y-e.y;return u*u+h*h}function ei(e,s,u,h){var _=s.x,k=s.y,M=u.x-_,z=u.y-k,I=M*M+z*z,W;return I>0&&(W=((e.x-_)*M+(e.y-k)*z)/I,W>1?(_=u.x,k=u.y):W>0&&(_+=M*W,k+=z*W)),M=e.x-_,z=e.y-k,h?M*M+z*z:new Z(_,k)}function Oe(e){return!tt(e[0])||typeof e[0][0]!="object"&&typeof e[0][0]<"u"}function ba(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Oe(e)}function Ia(e,s){var u,h,_,k,M,z,I,W;if(!e||e.length===0)throw new Error("latlngs not passed");Oe(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var nt=at([0,0]),xt=vt(e),Ct=xt.getNorthWest().distanceTo(xt.getSouthWest())*xt.getNorthEast().distanceTo(xt.getNorthWest());Ct<1700&&(nt=vs(e));var ue=e.length,oe=[];for(u=0;u<ue;u++){var Ce=at(e[u]);oe.push(s.project(at([Ce.lat-nt.lat,Ce.lng-nt.lng])))}for(u=0,h=0;u<ue-1;u++)h+=oe[u].distanceTo(oe[u+1])/2;if(h===0)W=oe[0];else for(u=0,k=0;u<ue-1;u++)if(M=oe[u],z=oe[u+1],_=M.distanceTo(z),k+=_,k>h){I=(k-h)/_,W=[z.x-I*(z.x-M.x),z.y-I*(z.y-M.y)];break}var xe=s.unproject(j(W));return at([xe.lat+nt.lat,xe.lng+nt.lng])}var Ba={__proto__:null,simplify:ho,pointToSegmentDistance:za,closestPointOnSegment:Nu,clipSegment:Ra,_getEdgeIntersection:po,_getBitCode:ti,_sqClosestPointOnSegment:ei,isFlat:Oe,_flat:ba,polylineCenter:Ia},xs={project:function(e){return new Z(e.lng,e.lat)},unproject:function(e){return new pt(e.y,e.x)},bounds:new N([-180,-90],[180,90])},ks={R:6378137,R_MINOR:6356752314245179e-9,bounds:new N([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(e){var s=Math.PI/180,u=this.R,h=e.lat*s,_=this.R_MINOR/u,k=Math.sqrt(1-_*_),M=k*Math.sin(h),z=Math.tan(Math.PI/4-h/2)/Math.pow((1-M)/(1+M),k/2);return h=-u*Math.log(Math.max(z,1e-10)),new Z(e.lng*s*u,h)},unproject:function(e){for(var s=180/Math.PI,u=this.R,h=this.R_MINOR/u,_=Math.sqrt(1-h*h),k=Math.exp(-e.y/u),M=Math.PI/2-2*Math.atan(k),z=0,I=.1,W;z<15&&Math.abs(I)>1e-7;z++)W=_*Math.sin(M),W=Math.pow((1-W)/(1+W),_/2),I=Math.PI/2-2*Math.atan(k*W)-M,M+=I;return new pt(M*s,e.x*s/u)}},bu={__proto__:null,LonLat:xs,Mercator:ks,SphericalMercator:me},Iu=f({},At,{code:"EPSG:3395",projection:ks,transformation:(function(){var e=.5/(Math.PI*ks.R);return wi(e,.5,-e,.5)})()}),Da=f({},At,{code:"EPSG:4326",projection:xs,transformation:wi(1/180,1,-1/180,.5)}),Bu=f({},bt,{projection:xs,transformation:wi(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,s){var u=s.lng-e.lng,h=s.lat-e.lat;return Math.sqrt(u*u+h*h)},infinite:!0});bt.Earth=At,bt.EPSG3395=Iu,bt.EPSG3857=xi,bt.EPSG900913=Ko,bt.EPSG4326=Da,bt.Simple=Bu;var Ve=Dt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[w(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[w(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var s=e.target;if(s.hasLayer(this)){if(this._map=s,this._zoomAnimated=s._zoomAnimated,this.getEvents){var u=this.getEvents();s.on(u,this),this.once("remove",function(){s.off(u,this)},this)}this.onAdd(s),this.fire("add"),s.fire("layeradd",{layer:this})}}});Rt.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var s=w(e);return this._layers[s]?this:(this._layers[s]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e),this)},removeLayer:function(e){var s=w(e);return this._layers[s]?(this._loaded&&e.onRemove(this),delete this._layers[s],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return w(e)in this._layers},eachLayer:function(e,s){for(var u in this._layers)e.call(s,this._layers[u]);return this},_addLayers:function(e){e=e?tt(e)?e:[e]:[];for(var s=0,u=e.length;s<u;s++)this.addLayer(e[s])},_addZoomLimit:function(e){(!isNaN(e.options.maxZoom)||!isNaN(e.options.minZoom))&&(this._zoomBoundLayers[w(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var s=w(e);this._zoomBoundLayers[s]&&(delete this._zoomBoundLayers[s],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,s=-1/0,u=this._getZoomSpan();for(var h in this._zoomBoundLayers){var _=this._zoomBoundLayers[h].options;e=_.minZoom===void 0?e:Math.min(e,_.minZoom),s=_.maxZoom===void 0?s:Math.max(s,_.maxZoom)}this._layersMaxZoom=s===-1/0?void 0:s,this._layersMinZoom=e===1/0?void 0:e,u!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var On=Ve.extend({initialize:function(e,s){H(this,s),this._layers={};var u,h;if(e)for(u=0,h=e.length;u<h;u++)this.addLayer(e[u])},addLayer:function(e){var s=this.getLayerId(e);return this._layers[s]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var s=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[s]&&this._map.removeLayer(this._layers[s]),delete this._layers[s],this},hasLayer:function(e){var s=typeof e=="number"?e:this.getLayerId(e);return s in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var s=Array.prototype.slice.call(arguments,1),u,h;for(u in this._layers)h=this._layers[u],h[e]&&h[e].apply(h,s);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,s){for(var u in this._layers)e.call(s,this._layers[u]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return w(e)}}),xr=function(e,s){return new On(e,s)},_n=On.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),On.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),On.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new wt;for(var s in this._layers){var u=this._layers[s];e.extend(u.getBounds?u.getBounds():u.getLatLng())}return e}}),Fa=function(e,s){return new _n(e,s)},ni=Ot.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){H(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,s){var u=this._getIconUrl(e);if(!u){if(e==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var h=this._createImg(u,s&&s.tagName==="IMG"?s:null);return this._setIconStyles(h,e),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),h},_setIconStyles:function(e,s){var u=this.options,h=u[s+"Size"];typeof h=="number"&&(h=[h,h]);var _=j(h),k=j(s==="shadow"&&u.shadowAnchor||u.iconAnchor||_&&_.divideBy(2,!0));e.className="leaflet-marker-"+s+" "+(u.className||""),k&&(e.style.marginLeft=-k.x+"px",e.style.marginTop=-k.y+"px"),_&&(e.style.width=_.x+"px",e.style.height=_.y+"px")},_createImg:function(e,s){return s=s||document.createElement("img"),s.src=e,s},_getIconUrl:function(e){return mt.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function Za(e){return new ni(e)}var Ri=ni.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(e){return typeof Ri.imagePath!="string"&&(Ri.imagePath=this._detectIconPath()),(this.options.imagePath||Ri.imagePath)+ni.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var s=function(u,h,_){var k=h.exec(u);return k&&k[_]};return e=s(e,/^url\((['"])?(.+)\1\)$/,2),e&&s(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=Tt("div","leaflet-default-icon-path",document.body),s=pr(e,"background-image")||pr(e,"backgroundImage");if(document.body.removeChild(e),s=this._stripUrl(s),s)return s;var u=document.querySelector('link[href$="leaflet.css"]');return u?u.href.substring(0,u.href.length-11-1):""}}),Ss=Ne.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new We(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Lt(e,"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&&$t(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var s=this._marker,u=s._map,h=this._marker.options.autoPanSpeed,_=this._marker.options.autoPanPadding,k=pn(s._icon),M=u.getPixelBounds(),z=u.getPixelOrigin(),I=U(M.min._subtract(z).add(_),M.max._subtract(z).subtract(_));if(!I.contains(k)){var W=j((Math.max(I.max.x,k.x)-I.max.x)/(M.max.x-I.max.x)-(Math.min(I.min.x,k.x)-I.min.x)/(M.min.x-I.min.x),(Math.max(I.max.y,k.y)-I.max.y)/(M.max.y-I.max.y)-(Math.min(I.min.y,k.y)-I.min.y)/(M.min.y-I.min.y)).multiplyBy(h);u.panBy(W,{animate:!1}),this._draggable._newPos._add(W),this._draggable._startPos._add(W),ne(s._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=q(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(yt(this._panRequest),this._panRequest=q(this._adjustPan.bind(this,e)))},_onDrag:function(e){var s=this._marker,u=s._shadow,h=pn(s._icon),_=s._map.layerPointToLatLng(h);u&&ne(u,h),s._latlng=_,e.latlng=_,e.oldLatLng=this._oldLatLng,s.fire("move",e).fire("drag",e)},_onDragEnd:function(e){yt(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),gn=Ve.extend({options:{icon:new Ri,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(e,s){H(this,s),this._latlng=at(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.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(e){var s=this._latlng;return this._latlng=at(e),this.update(),this.fire("move",{oldLatLng:s,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,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 e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,s="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),u=e.icon.createIcon(this._icon),h=!1;u!==this._icon&&(this._icon&&this._removeIcon(),h=!0,e.title&&(u.title=e.title),u.tagName==="IMG"&&(u.alt=e.alt||"")),Lt(u,s),e.keyboard&&(u.tabIndex="0",u.setAttribute("role","button")),this._icon=u,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Et(u,"focus",this._panOnFocus,this);var _=e.icon.createShadow(this._shadow),k=!1;_!==this._shadow&&(this._removeShadow(),k=!0),_&&(Lt(_,s),_.alt=""),this._shadow=_,e.opacity<1&&this._updateOpacity(),h&&this.getPane().appendChild(this._icon),this._initInteraction(),_&&k&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&jt(this._icon,"focus",this._panOnFocus,this),Gt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Gt(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&ne(this._icon,e),this._shadow&&ne(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var s=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(s)},_initInteraction:function(){if(this.options.interactive&&(Lt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ss)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ss(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&ye(this._icon,e),this._shadow&&ye(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var s=this.options.icon.options,u=s.iconSize?j(s.iconSize):j(0,0),h=s.iconAnchor?j(s.iconAnchor):j(0,0);e.panInside(this._latlng,{paddingTopLeft:h,paddingBottomRight:u.subtract(h)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Du(e,s){return new gn(e,s)}var zn=Ve.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(e){this._renderer=e.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(e){return H(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"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)}}),mo=zn.extend({options:{fill:!0,radius:10},initialize:function(e,s){H(this,s),this._latlng=at(e),this._radius=this.options.radius},setLatLng:function(e){var s=this._latlng;return this._latlng=at(e),this.redraw(),this.fire("move",{oldLatLng:s,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var s=e&&e.radius||this._radius;return zn.prototype.setStyle.call(this,e),this.setRadius(s),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,s=this._radiusY||e,u=this._clickTolerance(),h=[e+u,s+u];this._pxBounds=new N(this._point.subtract(h),this._point.add(h))},_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(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Ha(e,s){return new mo(e,s)}var _o=mo.extend({initialize:function(e,s,u){if(typeof s=="number"&&(s=f({},u,{radius:s})),H(this,s),this._latlng=at(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new wt(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:zn.prototype.setStyle,_project:function(){var e=this._latlng.lng,s=this._latlng.lat,u=this._map,h=u.options.crs;if(h.distance===At.distance){var _=Math.PI/180,k=this._mRadius/At.R/_,M=u.project([s+k,e]),z=u.project([s-k,e]),I=M.add(z).divideBy(2),W=u.unproject(I).lat,nt=Math.acos((Math.cos(k*_)-Math.sin(s*_)*Math.sin(W*_))/(Math.cos(s*_)*Math.cos(W*_)))/_;(isNaN(nt)||nt===0)&&(nt=k/Math.cos(Math.PI/180*s)),this._point=I.subtract(u.getPixelOrigin()),this._radius=isNaN(nt)?0:I.x-u.project([W,e-nt]).x,this._radiusY=I.y-M.y}else{var xt=h.unproject(h.project(this._latlng).subtract([this._mRadius,0]));this._point=u.latLngToLayerPoint(this._latlng),this._radius=this._point.x-u.latLngToLayerPoint(xt).x}this._updateBounds()}});function kr(e,s,u){return new _o(e,s,u)}var Te=zn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,s){H(this,s),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var s=1/0,u=null,h=ei,_,k,M=0,z=this._parts.length;M<z;M++)for(var I=this._parts[M],W=1,nt=I.length;W<nt;W++){_=I[W-1],k=I[W];var xt=h(e,_,k,!0);xt<s&&(s=xt,u=h(e,_,k))}return u&&(u.distance=Math.sqrt(s)),u},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ia(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(e,s){return s=s||this._defaultShape(),e=at(e),s.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new wt,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return Oe(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var s=[],u=Oe(e),h=0,_=e.length;h<_;h++)u?(s[h]=at(e[h]),this._bounds.extend(s[h])):s[h]=this._convertLatLngs(e[h]);return s},_project:function(){var e=new N;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),s=new Z(e,e);this._rawPxBounds&&(this._pxBounds=new N([this._rawPxBounds.min.subtract(s),this._rawPxBounds.max.add(s)]))},_projectLatlngs:function(e,s,u){var h=e[0]instanceof pt,_=e.length,k,M;if(h){for(M=[],k=0;k<_;k++)M[k]=this._map.latLngToLayerPoint(e[k]),u.extend(M[k]);s.push(M)}else for(k=0;k<_;k++)this._projectLatlngs(e[k],s,u)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}var s=this._parts,u,h,_,k,M,z,I;for(u=0,_=0,k=this._rings.length;u<k;u++)for(I=this._rings[u],h=0,M=I.length;h<M-1;h++)z=Ra(I[h],I[h+1],e,h,!0),z&&(s[_]=s[_]||[],s[_].push(z[0]),(z[1]!==I[h+1]||h===M-2)&&(s[_].push(z[1]),_++))}},_simplifyPoints:function(){for(var e=this._parts,s=this.options.smoothFactor,u=0,h=e.length;u<h;u++)e[u]=ho(e[u],s)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,s){var u,h,_,k,M,z,I=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(u=0,k=this._parts.length;u<k;u++)for(z=this._parts[u],h=0,M=z.length,_=M-1;h<M;_=h++)if(!(!s&&h===0)&&za(e,z[_],z[h])<=I)return!0;return!1}});function Fu(e,s){return new Te(e,s)}Te._flat=ba;var vn=Te.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 Oa(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(e){var s=Te.prototype._convertLatLngs.call(this,e),u=s.length;return u>=2&&s[0]instanceof pt&&s[0].equals(s[u-1])&&s.pop(),s},_setLatLngs:function(e){Te.prototype._setLatLngs.call(this,e),Oe(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Oe(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,s=this.options.weight,u=new Z(s,s);if(e=new N(e.min.subtract(u),e.max.add(u)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}for(var h=0,_=this._rings.length,k;h<_;h++)k=gs(this._rings[h],e,!0),k.length&&this._parts.push(k)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var s=!1,u,h,_,k,M,z,I,W;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(k=0,I=this._parts.length;k<I;k++)for(u=this._parts[k],M=0,W=u.length,z=W-1;M<W;z=M++)h=u[M],_=u[z],h.y>e.y!=_.y>e.y&&e.x<(_.x-h.x)*(e.y-h.y)/(_.y-h.y)+h.x&&(s=!s);return s||Te.prototype._containsPoint.call(this,e,!0)}});function Zu(e,s){return new vn(e,s)}var tn=_n.extend({initialize:function(e,s){H(this,s),this._layers={},e&&this.addData(e)},addData:function(e){var s=tt(e)?e:e.features,u,h,_;if(s){for(u=0,h=s.length;u<h;u++)_=s[u],(_.geometries||_.geometry||_.features||_.coordinates)&&this.addData(_);return this}var k=this.options;if(k.filter&&!k.filter(e))return this;var M=bi(e,k);return M?(M.feature=xo(e),M.defaultOptions=M.options,this.resetStyle(M),k.onEachFeature&&k.onEachFeature(e,M),this.addLayer(M)):this},resetStyle:function(e){return e===void 0?this.eachLayer(this.resetStyle,this):(e.options=f({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer(function(s){this._setLayerStyle(s,e)},this)},_setLayerStyle:function(e,s){e.setStyle&&(typeof s=="function"&&(s=s(e.feature)),e.setStyle(s))}});function bi(e,s){var u=e.type==="Feature"?e.geometry:e,h=u?u.coordinates:null,_=[],k=s&&s.pointToLayer,M=s&&s.coordsToLatLng||vo,z,I,W,nt;if(!h&&!u)return null;switch(u.type){case"Point":return z=M(h),go(k,e,z,s);case"MultiPoint":for(W=0,nt=h.length;W<nt;W++)z=M(h[W]),_.push(go(k,e,z,s));return new _n(_);case"LineString":case"MultiLineString":return I=Sr(h,u.type==="LineString"?0:1,M),new Te(I,s);case"Polygon":case"MultiPolygon":return I=Sr(h,u.type==="Polygon"?1:2,M),new vn(I,s);case"GeometryCollection":for(W=0,nt=u.geometries.length;W<nt;W++){var xt=bi({geometry:u.geometries[W],type:"Feature",properties:e.properties},s);xt&&_.push(xt)}return new _n(_);case"FeatureCollection":for(W=0,nt=u.features.length;W<nt;W++){var Ct=bi(u.features[W],s);Ct&&_.push(Ct)}return new _n(_);default:throw new Error("Invalid GeoJSON object.")}}function go(e,s,u,h){return e?e(s,u):new gn(u,h&&h.markersInheritOptions&&h)}function vo(e){return new pt(e[1],e[0],e[2])}function Sr(e,s,u){for(var h=[],_=0,k=e.length,M;_<k;_++)M=s?Sr(e[_],s-1,u):(u||vo)(e[_]),h.push(M);return h}function yo(e,s){return e=at(e),e.alt!==void 0?[C(e.lng,s),C(e.lat,s),C(e.alt,s)]:[C(e.lng,s),C(e.lat,s)]}function wo(e,s,u,h){for(var _=[],k=0,M=e.length;k<M;k++)_.push(s?wo(e[k],Oe(e[k])?0:s-1,u,h):yo(e[k],h));return!s&&u&&_.length>0&&_.push(_[0].slice()),_}function Ii(e,s){return e.feature?f({},e.feature,{geometry:s}):xo(s)}function xo(e){return e.type==="Feature"||e.type==="FeatureCollection"?e:{type:"Feature",properties:{},geometry:e}}var Es={toGeoJSON:function(e){return Ii(this,{type:"Point",coordinates:yo(this.getLatLng(),e)})}};gn.include(Es),_o.include(Es),mo.include(Es),Te.include({toGeoJSON:function(e){var s=!Oe(this._latlngs),u=wo(this._latlngs,s?1:0,!1,e);return Ii(this,{type:(s?"Multi":"")+"LineString",coordinates:u})}}),vn.include({toGeoJSON:function(e){var s=!Oe(this._latlngs),u=s&&!Oe(this._latlngs[0]),h=wo(this._latlngs,u?2:s?1:0,!0,e);return s||(h=[h]),Ii(this,{type:(u?"Multi":"")+"Polygon",coordinates:h})}}),On.include({toMultiPoint:function(e){var s=[];return this.eachLayer(function(u){s.push(u.toGeoJSON(e).geometry.coordinates)}),Ii(this,{type:"MultiPoint",coordinates:s})},toGeoJSON:function(e){var s=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(s==="MultiPoint")return this.toMultiPoint(e);var u=s==="GeometryCollection",h=[];return this.eachLayer(function(_){if(_.toGeoJSON){var k=_.toGeoJSON(e);if(u)h.push(k.geometry);else{var M=xo(k);M.type==="FeatureCollection"?h.push.apply(h,M.features):h.push(M)}}}),u?Ii(this,{geometries:h,type:"GeometryCollection"}):{type:"FeatureCollection",features:h}}});function Ua(e,s){return new tn(e,s)}var $e=Ua,Rn=Ve.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,s,u){this._url=e,this._bounds=vt(s),H(this,u)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Lt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Gt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&Li(this._image),this},bringToBack:function(){return this._map&&dn(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=vt(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e=this._url.tagName==="IMG",s=this._image=e?this._url:Tt("img");if(Lt(s,"leaflet-image-layer"),this._zoomAnimated&&Lt(s,"leaflet-zoom-animated"),this.options.className&&Lt(s,this.options.className),s.onselectstart=T,s.onmousemove=T,s.onload=g(this.fire,this,"load"),s.onerror=g(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(s.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=s.src;return}s.src=this._url,s.alt=this.options.alt},_animateZoom:function(e){var s=this._map.getZoomScale(e.zoom),u=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;He(this._image,u,s)},_reset:function(){var e=this._image,s=new N(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),u=s.getSize();ne(e,s.min),e.style.width=u.x+"px",e.style.height=u.y+"px"},_updateOpacity:function(){ye(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),ja=function(e,s,u){return new Rn(e,s,u)},Ps=Rn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e=this._url.tagName==="VIDEO",s=this._image=e?this._url:Tt("video");if(Lt(s,"leaflet-image-layer"),this._zoomAnimated&&Lt(s,"leaflet-zoom-animated"),this.options.className&&Lt(s,this.options.className),s.onselectstart=T,s.onmousemove=T,s.onloadeddata=g(this.fire,this,"load"),e){for(var u=s.getElementsByTagName("source"),h=[],_=0;_<u.length;_++)h.push(u[_].src);this._url=u.length>0?h:[s.src];return}tt(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(s.style,"objectFit")&&(s.style.objectFit="fill"),s.autoplay=!!this.options.autoplay,s.loop=!!this.options.loop,s.muted=!!this.options.muted,s.playsInline=!!this.options.playsInline;for(var k=0;k<this._url.length;k++){var M=Tt("source");M.src=this._url[k],s.appendChild(M)}}});function Wa(e,s,u){return new Ps(e,s,u)}var Ls=Rn.extend({_initImage:function(){var e=this._image=this._url;Lt(e,"leaflet-image-layer"),this._zoomAnimated&&Lt(e,"leaflet-zoom-animated"),this.options.className&&Lt(e,this.options.className),e.onselectstart=T,e.onmousemove=T}});function Ts(e,s,u){return new Ls(e,s,u)}var en=Ve.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(e,s){e&&(e instanceof pt||tt(e))?(this._latlng=at(e),H(this,s)):(H(this,e),this._source=s),this.options.content&&(this._content=this.options.content)},openOn:function(e){return e=arguments.length?e:this._source._map,e.hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&ye(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&ye(this._container,1),this.bringToFront(),this.options.interactive&&(Lt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(ye(this._container,0),this._removeTimeout=setTimeout(g(Gt,void 0,this._container),200)):Gt(this._container),this.options.interactive&&($t(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=at(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,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 e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Li(this._container),this},bringToBack:function(){return this._map&&dn(this._container),this},_prepareOpen:function(e){var s=this._source;if(!s._map)return!1;if(s instanceof _n){s=null;var u=this._source._layers;for(var h in u)if(u[h]._map){s=u[h];break}if(!s)return!1;this._source=s}if(!e)if(s.getCenter)e=s.getCenter();else if(s.getLatLng)e=s.getLatLng();else if(s.getBounds)e=s.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,s=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof s=="string")e.innerHTML=s;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(s)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),s=j(this.options.offset),u=this._getAnchor();this._zoomAnimated?ne(this._container,e.add(u)):s=s.add(e).add(u);var h=this._containerBottom=-s.y,_=this._containerLeft=-Math.round(this._containerWidth/2)+s.x;this._container.style.bottom=h+"px",this._container.style.left=_+"px"}},_getAnchor:function(){return[0,0]}});Rt.include({_initOverlay:function(e,s,u,h){var _=s;return _ instanceof e||(_=new e(h).setContent(s)),u&&_.setLatLng(u),_}}),Ve.include({_initOverlay:function(e,s,u,h){var _=u;return _ instanceof e?(H(_,h),_._source=this):(_=s&&!h?s:new e(h,this),_.setContent(u)),_}});var ko=en.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(e){return e=arguments.length?e:this._source._map,!e.hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,en.prototype.openOn.call(this,e)},onAdd:function(e){en.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof zn||this._source.on("preclick",Je))},onRemove:function(e){en.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof zn||this._source.off("preclick",Je))},getEvents:function(){var e=en.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",s=this._container=Tt("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),u=this._wrapper=Tt("div",e+"-content-wrapper",s);if(this._contentNode=Tt("div",e+"-content",u),vr(s),lo(this._contentNode),Et(s,"contextmenu",Je),this._tipContainer=Tt("div",e+"-tip-container",s),this._tip=Tt("div",e+"-tip",this._tipContainer),this.options.closeButton){var h=this._closeButton=Tt("a",e+"-close-button",s);h.setAttribute("role","button"),h.setAttribute("aria-label","Close popup"),h.href="#close",h.innerHTML='<span aria-hidden="true">&#215;</span>',Et(h,"click",function(_){Jt(_),this.close()},this)}},_updateLayout:function(){var e=this._contentNode,s=e.style;s.width="",s.whiteSpace="nowrap";var u=e.offsetWidth;u=Math.min(u,this.options.maxWidth),u=Math.max(u,this.options.minWidth),s.width=u+1+"px",s.whiteSpace="",s.height="";var h=e.offsetHeight,_=this.options.maxHeight,k="leaflet-popup-scrolled";_&&h>_?(s.height=_+"px",Lt(e,k)):$t(e,k),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var s=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),u=this._getAnchor();ne(this._container,s.add(u))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var e=this._map,s=parseInt(pr(this._container,"marginBottom"),10)||0,u=this._container.offsetHeight+s,h=this._containerWidth,_=new Z(this._containerLeft,-u-this._containerBottom);_._add(pn(this._container));var k=e.layerPointToContainerPoint(_),M=j(this.options.autoPanPadding),z=j(this.options.autoPanPaddingTopLeft||M),I=j(this.options.autoPanPaddingBottomRight||M),W=e.getSize(),nt=0,xt=0;k.x+h+I.x>W.x&&(nt=k.x+h-W.x+I.x),k.x-nt-z.x<0&&(nt=k.x-z.x),k.y+u+I.y>W.y&&(xt=k.y+u-W.y+I.y),k.y-xt-z.y<0&&(xt=k.y-z.y),(nt||xt)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([nt,xt]))}},_getAnchor:function(){return j(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Bi=function(e,s){return new ko(e,s)};Rt.mergeOptions({closePopupOnClick:!0}),Rt.include({openPopup:function(e,s,u){return this._initOverlay(ko,e,s,u).openOn(this),this},closePopup:function(e){return e=arguments.length?e:this._popup,e&&e.close(),this}}),Ve.include({bindPopup:function(e,s){return this._popup=this._initOverlay(ko,this._popup,e,s),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(e){return this._popup&&(this instanceof _n||(this._popup._source=this),this._popup._prepareOpen(e||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():!1},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(!(!this._popup||!this._map)){je(e);var s=e.layer||e.target;if(this._popup._source===s&&!(s instanceof zn)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng);return}this._popup._source=s,this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){e.originalEvent.keyCode===13&&this._openPopup(e)}});var Di=en.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){en.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){en.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=en.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip",s=e+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Tt("div",s),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+w(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var s,u,h=this._map,_=this._container,k=h.latLngToContainerPoint(h.getCenter()),M=h.layerPointToContainerPoint(e),z=this.options.direction,I=_.offsetWidth,W=_.offsetHeight,nt=j(this.options.offset),xt=this._getAnchor();z==="top"?(s=I/2,u=W):z==="bottom"?(s=I/2,u=0):z==="center"?(s=I/2,u=W/2):z==="right"?(s=0,u=W/2):z==="left"?(s=I,u=W/2):M.x<k.x?(z="right",s=0,u=W/2):(z="left",s=I+(nt.x+xt.x)*2,u=W/2),e=e.subtract(j(s,u,!0)).add(nt).add(xt),$t(_,"leaflet-tooltip-right"),$t(_,"leaflet-tooltip-left"),$t(_,"leaflet-tooltip-top"),$t(_,"leaflet-tooltip-bottom"),Lt(_,"leaflet-tooltip-"+z),ne(_,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&ye(this._container,e)},_animateZoom:function(e){var s=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(s)},_getAnchor:function(){return j(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Er=function(e,s){return new Di(e,s)};Rt.include({openTooltip:function(e,s,u){return this._initOverlay(Di,e,s,u).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),Ve.include({bindTooltip:function(e,s){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Di,this._tooltip,e,s),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(e){if(!(!e&&this._tooltipHandlersAdded)){var s=e?"off":"on",u={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?u.add=this._openTooltip:(u.mouseover=this._openTooltip,u.mouseout=this.closeTooltip,u.click=this._openTooltip,this._map?this._addFocusListeners():u.add=this._addFocusListeners),this._tooltip.options.sticky&&(u.mousemove=this._moveTooltip),this[s](u),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&(this instanceof _n||(this._tooltip._source=this),this._tooltip._prepareOpen(e)&&(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(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(e){var s=typeof e.getElement=="function"&&e.getElement();s&&(Et(s,"focus",function(){this._tooltip._source=e,this.openTooltip()},this),Et(s,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){var s=typeof e.getElement=="function"&&e.getElement();s&&s.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(e){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var s=this;this._map.once("moveend",function(){s._openOnceFlag=!1,s._openTooltip(e)});return}this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)}},_moveTooltip:function(e){var s=e.latlng,u,h;this._tooltip.options.sticky&&e.originalEvent&&(u=this._map.mouseEventToContainerPoint(e.originalEvent),h=this._map.containerPointToLayerPoint(u),s=this._map.layerPointToLatLng(h)),this._tooltip.setLatLng(s)}});var So=ni.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var s=e&&e.tagName==="DIV"?e:document.createElement("div"),u=this.options;if(u.html instanceof Element?(no(s),s.appendChild(u.html)):s.innerHTML=u.html!==!1?u.html:"",u.bgPos){var h=j(u.bgPos);s.style.backgroundPosition=-h.x+"px "+-h.y+"px"}return this._setIconStyles(s,"icon"),s},createShadow:function(){return null}});function Va(e){return new So(e)}ni.Default=Ri;var bn=Ve.extend({options:{tileSize:256,opacity:1,updateWhenIdle:mt.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(e){H(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),Gt(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Li(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(dn(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=v(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof Z?e:new Z(e,e)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var s=this.getPane().children,u=-e(-1/0,1/0),h=0,_=s.length,k;h<_;h++)k=s[h].style.zIndex,s[h]!==this._container&&k&&(u=e(u,+k));isFinite(u)&&(this.options.zIndex=u+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!mt.ielt9){ye(this._container,this.options.opacity);var e=+new Date,s=!1,u=!1;for(var h in this._tiles){var _=this._tiles[h];if(!(!_.current||!_.loaded)){var k=Math.min(1,(e-_.loaded)/200);ye(_.el,k),k<1?s=!0:(_.active?u=!0:this._onOpaqueTile(_),_.active=!0)}}u&&!this._noPrune&&this._pruneTiles(),s&&(yt(this._fadeFrame),this._fadeFrame=q(this._updateOpacity,this))}},_onOpaqueTile:T,_initContainer:function(){this._container||(this._container=Tt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,s=this.options.maxZoom;if(e!==void 0){for(var u in this._levels)u=Number(u),this._levels[u].el.children.length||u===e?(this._levels[u].el.style.zIndex=s-Math.abs(e-u),this._onUpdateLevel(u)):(Gt(this._levels[u].el),this._removeTilesAtZoom(u),this._onRemoveLevel(u),delete this._levels[u]);var h=this._levels[e],_=this._map;return h||(h=this._levels[e]={},h.el=Tt("div","leaflet-tile-container leaflet-zoom-animated",this._container),h.el.style.zIndex=s,h.origin=_.project(_.unproject(_.getPixelOrigin()),e).round(),h.zoom=e,this._setZoomTransform(h,_.getCenter(),_.getZoom()),T(h.el.offsetWidth),this._onCreateLevel(h)),this._level=h,h}},_onUpdateLevel:T,_onRemoveLevel:T,_onCreateLevel:T,_pruneTiles:function(){if(this._map){var e,s,u=this._map.getZoom();if(u>this.options.maxZoom||u<this.options.minZoom){this._removeAllTiles();return}for(e in this._tiles)s=this._tiles[e],s.retain=s.current;for(e in this._tiles)if(s=this._tiles[e],s.current&&!s.active){var h=s.coords;this._retainParent(h.x,h.y,h.z,h.z-5)||this._retainChildren(h.x,h.y,h.z,h.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}},_removeTilesAtZoom:function(e){for(var s in this._tiles)this._tiles[s].coords.z===e&&this._removeTile(s)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)Gt(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,s,u,h){var _=Math.floor(e/2),k=Math.floor(s/2),M=u-1,z=new Z(+_,+k);z.z=+M;var I=this._tileCoordsToKey(z),W=this._tiles[I];return W&&W.active?(W.retain=!0,!0):(W&&W.loaded&&(W.retain=!0),M>h?this._retainParent(_,k,M,h):!1)},_retainChildren:function(e,s,u,h){for(var _=2*e;_<2*e+2;_++)for(var k=2*s;k<2*s+2;k++){var M=new Z(_,k);M.z=u+1;var z=this._tileCoordsToKey(M),I=this._tiles[z];if(I&&I.active){I.retain=!0;continue}else I&&I.loaded&&(I.retain=!0);u+1<h&&this._retainChildren(_,k,u+1,h)}},_resetView:function(e){var s=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),s,s)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var s=this.options;return s.minNativeZoom!==void 0&&e<s.minNativeZoom?s.minNativeZoom:s.maxNativeZoom!==void 0&&s.maxNativeZoom<e?s.maxNativeZoom:e},_setView:function(e,s,u,h){var _=Math.round(s);this.options.maxZoom!==void 0&&_>this.options.maxZoom||this.options.minZoom!==void 0&&_<this.options.minZoom?_=void 0:_=this._clampZoom(_);var k=this.options.updateWhenZooming&&_!==this._tileZoom;(!h||k)&&(this._tileZoom=_,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),_!==void 0&&this._update(e),u||this._pruneTiles(),this._noPrune=!!u),this._setZoomTransforms(e,s)},_setZoomTransforms:function(e,s){for(var u in this._levels)this._setZoomTransform(this._levels[u],e,s)},_setZoomTransform:function(e,s,u){var h=this._map.getZoomScale(u,e.zoom),_=e.origin.multiplyBy(h).subtract(this._map._getNewPixelOrigin(s,u)).round();mt.any3d?He(e.el,_,h):ne(e.el,_)},_resetGrid:function(){var e=this._map,s=e.options.crs,u=this._tileSize=this.getTileSize(),h=this._tileZoom,_=this._map.getPixelWorldBounds(this._tileZoom);_&&(this._globalTileRange=this._pxBoundsToTileRange(_)),this._wrapX=s.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,s.wrapLng[0]],h).x/u.x),Math.ceil(e.project([0,s.wrapLng[1]],h).x/u.y)],this._wrapY=s.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([s.wrapLat[0],0],h).y/u.x),Math.ceil(e.project([s.wrapLat[1],0],h).y/u.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(e){var s=this._map,u=s._animatingZoom?Math.max(s._animateToZoom,s.getZoom()):s.getZoom(),h=s.getZoomScale(u,this._tileZoom),_=s.project(e,this._tileZoom).floor(),k=s.getSize().divideBy(h*2);return new N(_.subtract(k),_.add(k))},_update:function(e){var s=this._map;if(s){var u=this._clampZoom(s.getZoom());if(e===void 0&&(e=s.getCenter()),this._tileZoom!==void 0){var h=this._getTiledPixelBounds(e),_=this._pxBoundsToTileRange(h),k=_.getCenter(),M=[],z=this.options.keepBuffer,I=new N(_.getBottomLeft().subtract([z,-z]),_.getTopRight().add([z,-z]));if(!(isFinite(_.min.x)&&isFinite(_.min.y)&&isFinite(_.max.x)&&isFinite(_.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var W in this._tiles){var nt=this._tiles[W].coords;(nt.z!==this._tileZoom||!I.contains(new Z(nt.x,nt.y)))&&(this._tiles[W].current=!1)}if(Math.abs(u-this._tileZoom)>1){this._setView(e,u);return}for(var xt=_.min.y;xt<=_.max.y;xt++)for(var Ct=_.min.x;Ct<=_.max.x;Ct++){var ue=new Z(Ct,xt);if(ue.z=this._tileZoom,!!this._isValidTile(ue)){var oe=this._tiles[this._tileCoordsToKey(ue)];oe?oe.current=!0:M.push(ue)}}if(M.sort(function(xe,ji){return xe.distanceTo(k)-ji.distanceTo(k)}),M.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ce=document.createDocumentFragment();for(Ct=0;Ct<M.length;Ct++)this._addTile(M[Ct],Ce);this._level.el.appendChild(Ce)}}}},_isValidTile:function(e){var s=this._map.options.crs;if(!s.infinite){var u=this._globalTileRange;if(!s.wrapLng&&(e.x<u.min.x||e.x>u.max.x)||!s.wrapLat&&(e.y<u.min.y||e.y>u.max.y))return!1}if(!this.options.bounds)return!0;var h=this._tileCoordsToBounds(e);return vt(this.options.bounds).overlaps(h)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var s=this._map,u=this.getTileSize(),h=e.scaleBy(u),_=h.add(u),k=s.unproject(h,e.z),M=s.unproject(_,e.z);return[k,M]},_tileCoordsToBounds:function(e){var s=this._tileCoordsToNwSe(e),u=new wt(s[0],s[1]);return this.options.noWrap||(u=this._map.wrapLatLngBounds(u)),u},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var s=e.split(":"),u=new Z(+s[0],+s[1]);return u.z=+s[2],u},_removeTile:function(e){var s=this._tiles[e];s&&(Gt(s.el),delete this._tiles[e],this.fire("tileunload",{tile:s.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){Lt(e,"leaflet-tile");var s=this.getTileSize();e.style.width=s.x+"px",e.style.height=s.y+"px",e.onselectstart=T,e.onmousemove=T,mt.ielt9&&this.options.opacity<1&&ye(e,this.options.opacity)},_addTile:function(e,s){var u=this._getTilePos(e),h=this._tileCoordsToKey(e),_=this.createTile(this._wrapCoords(e),g(this._tileReady,this,e));this._initTile(_),this.createTile.length<2&&q(g(this._tileReady,this,e,null,_)),ne(_,u),this._tiles[h]={el:_,coords:e,current:!0},s.appendChild(_),this.fire("tileloadstart",{tile:_,coords:e})},_tileReady:function(e,s,u){s&&this.fire("tileerror",{error:s,tile:u,coords:e});var h=this._tileCoordsToKey(e);u=this._tiles[h],u&&(u.loaded=+new Date,this._map._fadeAnimated?(ye(u.el,0),yt(this._fadeFrame),this._fadeFrame=q(this._updateOpacity,this)):(u.active=!0,this._pruneTiles()),s||(Lt(u.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:u.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),mt.ielt9||!this._map._fadeAnimated?q(this._pruneTiles,this):setTimeout(g(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var s=new Z(this._wrapX?S(e.x,this._wrapX):e.x,this._wrapY?S(e.y,this._wrapY):e.y);return s.z=e.z,s},_pxBoundsToTileRange:function(e){var s=this.getTileSize();return new N(e.min.unscaleBy(s).floor(),e.max.unscaleBy(s).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Fi(e){return new bn(e)}var In=bn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,s){this._url=e,s=H(this,s),s.detectRetina&&mt.retina&&s.maxZoom>0?(s.tileSize=Math.floor(s.tileSize/2),s.zoomReverse?(s.zoomOffset--,s.minZoom=Math.min(s.maxZoom,s.minZoom+1)):(s.zoomOffset++,s.maxZoom=Math.max(s.minZoom,s.maxZoom-1)),s.minZoom=Math.max(0,s.minZoom)):s.zoomReverse?s.minZoom=Math.min(s.maxZoom,s.minZoom):s.maxZoom=Math.max(s.minZoom,s.maxZoom),typeof s.subdomains=="string"&&(s.subdomains=s.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,s){return this._url===e&&s===void 0&&(s=!0),this._url=e,s||this.redraw(),this},createTile:function(e,s){var u=document.createElement("img");return Et(u,"load",g(this._tileOnLoad,this,s,u)),Et(u,"error",g(this._tileOnError,this,s,u)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(u.referrerPolicy=this.options.referrerPolicy),u.alt="",u.src=this.getTileUrl(e),u},getTileUrl:function(e){var s={r:mt.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var u=this._globalTileRange.max.y-e.y;this.options.tms&&(s.y=u),s["-y"]=u}return Q(this._url,f(s,this.options))},_tileOnLoad:function(e,s){mt.ielt9?setTimeout(g(e,this,null,s),0):e(null,s)},_tileOnError:function(e,s,u){var h=this.options.errorTileUrl;h&&s.getAttribute("src")!==h&&(s.src=h),e(u,s)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,s=this.options.maxZoom,u=this.options.zoomReverse,h=this.options.zoomOffset;return u&&(e=s-e),e+h},_getSubdomain:function(e){var s=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[s]},_abortLoading:function(){var e,s;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&(s=this._tiles[e].el,s.onload=T,s.onerror=T,!s.complete)){s.src=K;var u=this._tiles[e].coords;Gt(s),delete this._tiles[e],this.fire("tileabort",{tile:s,coords:u})}},_removeTile:function(e){var s=this._tiles[e];if(s)return s.el.setAttribute("src",K),bn.prototype._removeTile.call(this,e)},_tileReady:function(e,s,u){if(!(!this._map||u&&u.getAttribute("src")===K))return bn.prototype._tileReady.call(this,e,s,u)}});function Cs(e,s){return new In(e,s)}var Pr=In.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,s){this._url=e;var u=f({},this.defaultWmsParams);for(var h in s)h in this.options||(u[h]=s[h]);s=H(this,s);var _=s.detectRetina&&mt.retina?2:1,k=this.getTileSize();u.width=k.x*_,u.height=k.y*_,this.wmsParams=u},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var s=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[s]=this._crs.code,In.prototype.onAdd.call(this,e)},getTileUrl:function(e){var s=this._tileCoordsToNwSe(e),u=this._crs,h=U(u.project(s[0]),u.project(s[1])),_=h.min,k=h.max,M=(this._wmsVersion>=1.3&&this._crs===Da?[_.y,_.x,k.y,k.x]:[_.x,_.y,k.x,k.y]).join(","),z=In.prototype.getTileUrl.call(this,e);return z+$(this.wmsParams,z,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+M},setParams:function(e,s){return f(this.wmsParams,e),s||this.redraw(),this}});function $a(e,s){return new Pr(e,s)}In.WMS=Pr,Cs.wms=$a;var nn=Ve.extend({options:{padding:.1},initialize:function(e){H(this,e),w(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Lt(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 e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,s){var u=this._map.getZoomScale(s,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),_=this._map.project(this._center,s),k=h.multiplyBy(-u).add(_).subtract(this._map._getNewPixelOrigin(e,s));mt.any3d?He(this._container,k,u):ne(this._container,k)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var e in this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,s=this._map.getSize(),u=this._map.containerPointToLayerPoint(s.multiplyBy(-e)).round();this._bounds=new N(u,u.add(s.multiplyBy(1+e*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Ms=nn.extend({options:{tolerance:0},getEvents:function(){var e=nn.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){nn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Et(e,"mousemove",this._onMouseMove,this),Et(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Et(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){yt(this._redrawRequest),delete this._ctx,Gt(this._container),jt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var e;this._redrawBounds=null;for(var s in this._layers)e=this._layers[s],e._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){nn.prototype._update.call(this);var e=this._bounds,s=this._container,u=e.getSize(),h=mt.retina?2:1;ne(s,e.min),s.width=h*u.x,s.height=h*u.y,s.style.width=u.x+"px",s.style.height=u.y+"px",mt.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){nn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[w(e)]=e;var s=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=s),this._drawLast=s,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var s=e._order,u=s.next,h=s.prev;u?u.prev=h:this._drawLast=h,h?h.next=u:this._drawFirst=u,delete e._order,delete this._layers[w(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if(typeof e.options.dashArray=="string"){var s=e.options.dashArray.split(/[, ]+/),u=[],h,_;for(_=0;_<s.length;_++){if(h=Number(s[_]),isNaN(h))return;u.push(h)}e.options._dashArray=u}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||q(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var s=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new N,this._redrawBounds.extend(e._pxBounds.min.subtract([s,s])),this._redrawBounds.extend(e._pxBounds.max.add([s,s]))}},_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 e=this._redrawBounds;if(e){var s=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,s.x,s.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 e,s=this._redrawBounds;if(this._ctx.save(),s){var u=s.getSize();this._ctx.beginPath(),this._ctx.rect(s.min.x,s.min.y,u.x,u.y),this._ctx.clip()}this._drawing=!0;for(var h=this._drawFirst;h;h=h.next)e=h.layer,(!s||e._pxBounds&&e._pxBounds.intersects(s))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,s){if(this._drawing){var u,h,_,k,M=e._parts,z=M.length,I=this._ctx;if(z){for(I.beginPath(),u=0;u<z;u++){for(h=0,_=M[u].length;h<_;h++)k=M[u][h],I[h?"lineTo":"moveTo"](k.x,k.y);s&&I.closePath()}this._fillStroke(I,e)}}},_updateCircle:function(e){if(!(!this._drawing||e._empty())){var s=e._point,u=this._ctx,h=Math.max(Math.round(e._radius),1),_=(Math.max(Math.round(e._radiusY),1)||h)/h;_!==1&&(u.save(),u.scale(1,_)),u.beginPath(),u.arc(s.x,s.y/_,h,0,Math.PI*2,!1),_!==1&&u.restore(),this._fillStroke(u,e)}},_fillStroke:function(e,s){var u=s.options;u.fill&&(e.globalAlpha=u.fillOpacity,e.fillStyle=u.fillColor||u.color,e.fill(u.fillRule||"evenodd")),u.stroke&&u.weight!==0&&(e.setLineDash&&e.setLineDash(s.options&&s.options._dashArray||[]),e.globalAlpha=u.opacity,e.lineWidth=u.weight,e.strokeStyle=u.color,e.lineCap=u.lineCap,e.lineJoin=u.lineJoin,e.stroke())},_onClick:function(e){for(var s=this._map.mouseEventToLayerPoint(e),u,h,_=this._drawFirst;_;_=_.next)u=_.layer,u.options.interactive&&u._containsPoint(s)&&(!(e.type==="click"||e.type==="preclick")||!this._map._draggableMoved(u))&&(h=u);this._fireEvent(h?[h]:!1,e)},_onMouseMove:function(e){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var s=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,s)}},_handleMouseOut:function(e){var s=this._hoveredLayer;s&&($t(this._container,"leaflet-interactive"),this._fireEvent([s],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,s){if(!this._mouseHoverThrottled){for(var u,h,_=this._drawFirst;_;_=_.next)u=_.layer,u.options.interactive&&u._containsPoint(s)&&(h=u);h!==this._hoveredLayer&&(this._handleMouseOut(e),h&&(Lt(this._container,"leaflet-interactive"),this._fireEvent([h],e,"mouseover"),this._hoveredLayer=h)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,e),this._mouseHoverThrottled=!0,setTimeout(g(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(e,s,u){this._map._fireDOMEvent(s,u||s.type,e)},_bringToFront:function(e){var s=e._order;if(s){var u=s.next,h=s.prev;if(u)u.prev=h;else return;h?h.next=u:u&&(this._drawFirst=u),s.prev=this._drawLast,this._drawLast.next=s,s.next=null,this._drawLast=s,this._requestRedraw(e)}},_bringToBack:function(e){var s=e._order;if(s){var u=s.next,h=s.prev;if(h)h.next=u;else return;u?u.prev=h:h&&(this._drawLast=h),s.prev=null,s.next=this._drawFirst,this._drawFirst.prev=s,this._drawFirst=s,this._requestRedraw(e)}}});function As(e){return mt.canvas?new Ms(e):null}var Zi=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch{}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),qa={_initContainer:function(){this._container=Tt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(nn.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var s=e._container=Zi("shape");Lt(s,"leaflet-vml-shape "+(this.options.className||"")),s.coordsize="1 1",e._path=Zi("path"),s.appendChild(e._path),this._updateStyle(e),this._layers[w(e)]=e},_addPath:function(e){var s=e._container;this._container.appendChild(s),e.options.interactive&&e.addInteractiveTarget(s)},_removePath:function(e){var s=e._container;Gt(s),e.removeInteractiveTarget(s),delete this._layers[w(e)]},_updateStyle:function(e){var s=e._stroke,u=e._fill,h=e.options,_=e._container;_.stroked=!!h.stroke,_.filled=!!h.fill,h.stroke?(s||(s=e._stroke=Zi("stroke")),_.appendChild(s),s.weight=h.weight+"px",s.color=h.color,s.opacity=h.opacity,h.dashArray?s.dashStyle=tt(h.dashArray)?h.dashArray.join(" "):h.dashArray.replace(/( *, *)/g," "):s.dashStyle="",s.endcap=h.lineCap.replace("butt","flat"),s.joinstyle=h.lineJoin):s&&(_.removeChild(s),e._stroke=null),h.fill?(u||(u=e._fill=Zi("fill")),_.appendChild(u),u.color=h.fillColor||h.color,u.opacity=h.fillOpacity):u&&(_.removeChild(u),e._fill=null)},_updateCircle:function(e){var s=e._point.round(),u=Math.round(e._radius),h=Math.round(e._radiusY||u);this._setPath(e,e._empty()?"M0 0":"AL "+s.x+","+s.y+" "+u+","+h+" 0,"+65535*360)},_setPath:function(e,s){e._path.v=s},_bringToFront:function(e){Li(e._container)},_bringToBack:function(e){dn(e._container)}},qe=mt.vml?Zi:Yo,ii=nn.extend({_initContainer:function(){this._container=qe("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=qe("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Gt(this._container),jt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){nn.prototype._update.call(this);var e=this._bounds,s=e.getSize(),u=this._container;(!this._svgSize||!this._svgSize.equals(s))&&(this._svgSize=s,u.setAttribute("width",s.x),u.setAttribute("height",s.y)),ne(u,e.min),u.setAttribute("viewBox",[e.min.x,e.min.y,s.x,s.y].join(" ")),this.fire("update")}},_initPath:function(e){var s=e._path=qe("path");e.options.className&&Lt(s,e.options.className),e.options.interactive&&Lt(s,"leaflet-interactive"),this._updateStyle(e),this._layers[w(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){Gt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[w(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var s=e._path,u=e.options;s&&(u.stroke?(s.setAttribute("stroke",u.color),s.setAttribute("stroke-opacity",u.opacity),s.setAttribute("stroke-width",u.weight),s.setAttribute("stroke-linecap",u.lineCap),s.setAttribute("stroke-linejoin",u.lineJoin),u.dashArray?s.setAttribute("stroke-dasharray",u.dashArray):s.removeAttribute("stroke-dasharray"),u.dashOffset?s.setAttribute("stroke-dashoffset",u.dashOffset):s.removeAttribute("stroke-dashoffset")):s.setAttribute("stroke","none"),u.fill?(s.setAttribute("fill",u.fillColor||u.color),s.setAttribute("fill-opacity",u.fillOpacity),s.setAttribute("fill-rule",u.fillRule||"evenodd")):s.setAttribute("fill","none"))},_updatePoly:function(e,s){this._setPath(e,Xo(e._parts,s))},_updateCircle:function(e){var s=e._point,u=Math.max(Math.round(e._radius),1),h=Math.max(Math.round(e._radiusY),1)||u,_="a"+u+","+h+" 0 1,0 ",k=e._empty()?"M0 0":"M"+(s.x-u)+","+s.y+_+u*2+",0 "+_+-u*2+",0 ";this._setPath(e,k)},_setPath:function(e,s){e._path.setAttribute("d",s)},_bringToFront:function(e){Li(e._path)},_bringToBack:function(e){dn(e._path)}});mt.vml&&ii.include(qa);function Eo(e){return mt.svg||mt.vml?new ii(e):null}Rt.include({getRenderer:function(e){var s=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return s||(s=this._renderer=this._createRenderer()),this.hasLayer(s)||this.addLayer(s),s},_getPaneRenderer:function(e){if(e==="overlayPane"||e===void 0)return!1;var s=this._paneRenderers[e];return s===void 0&&(s=this._createRenderer({pane:e}),this._paneRenderers[e]=s),s},_createRenderer:function(e){return this.options.preferCanvas&&As(e)||Eo(e)}});var Ga=vn.extend({initialize:function(e,s){vn.prototype.initialize.call(this,this._boundsToLatLngs(e),s)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return e=vt(e),[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function Hu(e,s){return new Ga(e,s)}ii.create=qe,ii.pointsToPath=Xo,tn.geometryToLayer=bi,tn.coordsToLatLng=vo,tn.coordsToLatLngs=Sr,tn.latLngToCoords=yo,tn.latLngsToCoords=wo,tn.getFeature=Ii,tn.asFeature=xo,Rt.mergeOptions({boxZoom:!0});var Hi=Ne.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Et(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){jt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Gt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||e.which!==1&&e.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),It(),oo(),this._startPoint=this._map.mouseEventToContainerPoint(e),Et(document,{contextmenu:je,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=Tt("div","leaflet-zoom-box",this._container),Lt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var s=new N(this._point,this._startPoint),u=s.getSize();ne(this._box,s.min),this._box.style.width=u.x+"px",this._box.style.height=u.y+"px"},_finish:function(){this._moved&&(Gt(this._box),$t(this._container,"leaflet-crosshair")),Mi(),so(),jt(document,{contextmenu:je,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if(!(e.which!==1&&e.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(g(this._resetState,this),0);var s=new wt(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(s).fire("boxzoomend",{boxZoomBounds:s})}},_onKeyDown:function(e){e.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Rt.addInitHook("addHandler","boxZoom",Hi),Rt.mergeOptions({doubleClickZoom:!0});var Ka=Ne.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var s=this._map,u=s.getZoom(),h=s.options.zoomDelta,_=e.originalEvent.shiftKey?u-h:u+h;s.options.doubleClickZoom==="center"?s.setZoom(_):s.setZoomAround(e.containerPoint,_)}});Rt.addInitHook("addHandler","doubleClickZoom",Ka),Rt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ns=Ne.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new We(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}Lt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){$t(this._map._container,"leaflet-grab"),$t(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 e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var s=vt(this._map.options.maxBounds);this._offsetLimit=U(this._map.latLngToContainerPoint(s.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(s.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var s=this._lastTime=+new Date,u=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(u),this._times.push(s),this._prunePositions(s)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),s=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=s.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,s){return e-(e-s)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var e=this._draggable._newPos.subtract(this._draggable._startPos),s=this._offsetLimit;e.x<s.min.x&&(e.x=this._viscousLimit(e.x,s.min.x)),e.y<s.min.y&&(e.y=this._viscousLimit(e.y,s.min.y)),e.x>s.max.x&&(e.x=this._viscousLimit(e.x,s.max.x)),e.y>s.max.y&&(e.y=this._viscousLimit(e.y,s.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,s=Math.round(e/2),u=this._initialWorldOffset,h=this._draggable._newPos.x,_=(h-s+u)%e+s-u,k=(h+s+u)%e-s-u,M=Math.abs(_+u)<Math.abs(k+u)?_:k;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=M},_onDragEnd:function(e){var s=this._map,u=s.options,h=!u.inertia||e.noInertia||this._times.length<2;if(s.fire("dragend",e),h)s.fire("moveend");else{this._prunePositions(+new Date);var _=this._lastPos.subtract(this._positions[0]),k=(this._lastTime-this._times[0])/1e3,M=u.easeLinearity,z=_.multiplyBy(M/k),I=z.distanceTo([0,0]),W=Math.min(u.inertiaMaxSpeed,I),nt=z.multiplyBy(W/I),xt=W/(u.inertiaDeceleration*M),Ct=nt.multiplyBy(-xt/2).round();!Ct.x&&!Ct.y?s.fire("moveend"):(Ct=s._limitOffset(Ct,s.options.maxBounds),q(function(){s.panBy(Ct,{duration:xt,easeLinearity:M,noMoveStart:!0,animate:!0})}))}}});Rt.addInitHook("addHandler","dragging",Ns),Rt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Os=Ne.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),Et(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),jt(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 e=document.body,s=document.documentElement,u=e.scrollTop||s.scrollTop,h=e.scrollLeft||s.scrollLeft;this._map._container.focus(),window.scrollTo(h,u)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var s=this._panKeys={},u=this.keyCodes,h,_;for(h=0,_=u.left.length;h<_;h++)s[u.left[h]]=[-1*e,0];for(h=0,_=u.right.length;h<_;h++)s[u.right[h]]=[e,0];for(h=0,_=u.down.length;h<_;h++)s[u.down[h]]=[0,e];for(h=0,_=u.up.length;h<_;h++)s[u.up[h]]=[0,-1*e]},_setZoomDelta:function(e){var s=this._zoomKeys={},u=this.keyCodes,h,_;for(h=0,_=u.zoomIn.length;h<_;h++)s[u.zoomIn[h]]=e;for(h=0,_=u.zoomOut.length;h<_;h++)s[u.zoomOut[h]]=-e},_addHooks:function(){Et(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){jt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var s=e.keyCode,u=this._map,h;if(s in this._panKeys){if(!u._panAnim||!u._panAnim._inProgress)if(h=this._panKeys[s],e.shiftKey&&(h=j(h).multiplyBy(3)),u.options.maxBounds&&(h=u._limitOffset(j(h),u.options.maxBounds)),u.options.worldCopyJump){var _=u.wrapLatLng(u.unproject(u.project(u.getCenter()).add(h)));u.panTo(_)}else u.panBy(h)}else if(s in this._zoomKeys)u.setZoom(u.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[s]);else if(s===27&&u._popup&&u._popup.options.closeOnEscapeKey)u.closePopup();else return;je(e)}}});Rt.addInitHook("addHandler","keyboard",Os),Rt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Wt=Ne.extend({addHooks:function(){Et(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){jt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var s=Aa(e),u=this._map.options.wheelDebounceTime;this._delta+=s,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var h=Math.max(u-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(g(this._performZoom,this),h),je(e)},_performZoom:function(){var e=this._map,s=e.getZoom(),u=this._map.options.zoomSnap||0;e._stop();var h=this._delta/(this._map.options.wheelPxPerZoomLevel*4),_=4*Math.log(2/(1+Math.exp(-Math.abs(h))))/Math.LN2,k=u?Math.ceil(_/u)*u:_,M=e._limitZoom(s+(this._delta>0?k:-k))-s;this._delta=0,this._startTime=null,M&&(e.options.scrollWheelZoom==="center"?e.setZoom(s+M):e.setZoomAround(this._lastMousePos,s+M))}});Rt.addInitHook("addHandler","scrollWheelZoom",Wt);var zs=600;Rt.mergeOptions({tapHold:mt.touchNative&&mt.safari&&mt.mobile,tapTolerance:15});var Lr=Ne.extend({addHooks:function(){Et(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){jt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),e.touches.length===1){var s=e.touches[0];this._startPos=this._newPos=new Z(s.clientX,s.clientY),this._holdTimeout=setTimeout(g(function(){this._cancel(),this._isTapValid()&&(Et(document,"touchend",Jt),Et(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",s))},this),zs),Et(document,"touchend touchcancel contextmenu",this._cancel,this),Et(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){jt(document,"touchend",Jt),jt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),jt(document,"touchend touchcancel contextmenu",this._cancel,this),jt(document,"touchmove",this._onMove,this)},_onMove:function(e){var s=e.touches[0];this._newPos=new Z(s.clientX,s.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,s){var u=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:s.screenX,screenY:s.screenY,clientX:s.clientX,clientY:s.clientY});u._simulated=!0,s.target.dispatchEvent(u)}});Rt.addInitHook("addHandler","tapHold",Lr),Rt.mergeOptions({touchZoom:mt.touch,bounceAtZoomLimits:!0});var Ui=Ne.extend({addHooks:function(){Lt(this._map._container,"leaflet-touch-zoom"),Et(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){$t(this._map._container,"leaflet-touch-zoom"),jt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var s=this._map;if(!(!e.touches||e.touches.length!==2||s._animatingZoom||this._zooming)){var u=s.mouseEventToContainerPoint(e.touches[0]),h=s.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=s.getSize()._divideBy(2),this._startLatLng=s.containerPointToLatLng(this._centerPoint),s.options.touchZoom!=="center"&&(this._pinchStartLatLng=s.containerPointToLatLng(u.add(h)._divideBy(2))),this._startDist=u.distanceTo(h),this._startZoom=s.getZoom(),this._moved=!1,this._zooming=!0,s._stop(),Et(document,"touchmove",this._onTouchMove,this),Et(document,"touchend touchcancel",this._onTouchEnd,this),Jt(e)}},_onTouchMove:function(e){if(!(!e.touches||e.touches.length!==2||!this._zooming)){var s=this._map,u=s.mouseEventToContainerPoint(e.touches[0]),h=s.mouseEventToContainerPoint(e.touches[1]),_=u.distanceTo(h)/this._startDist;if(this._zoom=s.getScaleZoom(_,this._startZoom),!s.options.bounceAtZoomLimits&&(this._zoom<s.getMinZoom()&&_<1||this._zoom>s.getMaxZoom()&&_>1)&&(this._zoom=s._limitZoom(this._zoom)),s.options.touchZoom==="center"){if(this._center=this._startLatLng,_===1)return}else{var k=u._add(h)._divideBy(2)._subtract(this._centerPoint);if(_===1&&k.x===0&&k.y===0)return;this._center=s.unproject(s.project(this._pinchStartLatLng,this._zoom).subtract(k),this._zoom)}this._moved||(s._moveStart(!0,!1),this._moved=!0),yt(this._animRequest);var M=g(s._move,s,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=q(M,this,!0),Jt(e)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,yt(this._animRequest),jt(document,"touchmove",this._onTouchMove,this),jt(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))}});Rt.addInitHook("addHandler","touchZoom",Ui),Rt.BoxZoom=Hi,Rt.DoubleClickZoom=Ka,Rt.Drag=Ns,Rt.Keyboard=Os,Rt.ScrollWheelZoom=Wt,Rt.TapHold=Lr,Rt.TouchZoom=Ui,r.Bounds=N,r.Browser=mt,r.CRS=bt,r.Canvas=Ms,r.Circle=_o,r.CircleMarker=mo,r.Class=Ot,r.Control=Le,r.DivIcon=So,r.DivOverlay=en,r.DomEvent=uo,r.DomUtil=gr,r.Draggable=We,r.Evented=Dt,r.FeatureGroup=_n,r.GeoJSON=tn,r.GridLayer=bn,r.Handler=Ne,r.Icon=ni,r.ImageOverlay=Rn,r.LatLng=pt,r.LatLngBounds=wt,r.Layer=Ve,r.LayerGroup=On,r.LineUtil=Ba,r.Map=Rt,r.Marker=gn,r.Mixin=_s,r.Path=zn,r.Point=Z,r.PolyUtil=Au,r.Polygon=vn,r.Polyline=Te,r.Popup=ko,r.PosAnimation=co,r.Projection=bu,r.Rectangle=Ga,r.Renderer=nn,r.SVG=ii,r.SVGOverlay=Ls,r.TileLayer=In,r.Tooltip=Di,r.Transformation=yi,r.Util=Mt,r.VideoOverlay=Ps,r.bind=g,r.bounds=U,r.canvas=As,r.circle=kr,r.circleMarker=Ha,r.control=Nn,r.divIcon=Va,r.extend=f,r.featureGroup=Fa,r.geoJSON=Ua,r.geoJson=$e,r.gridLayer=Fi,r.icon=Za,r.imageOverlay=ja,r.latLng=at,r.latLngBounds=vt,r.layerGroup=xr,r.map=An,r.marker=Du,r.point=j,r.polygon=Zu,r.polyline=Fu,r.popup=Bi,r.rectangle=Hu,r.setOptions=H,r.stamp=w,r.svg=Eo,r.svgOverlay=Ts,r.tileLayer=Cs,r.tooltip=Er,r.transformation=wi,r.version=l,r.videoOverlay=Wa;var Ya=window.L;r.noConflict=function(){return window.L=Ya,this},window.L=r}))})(ia,ia.exports)),ia.exports}var da=nk();const S_=Jp(da);function Jf(i,o,r){return Object.freeze({instance:i,context:o,container:r})}function th(i,o){return o==null?function(l,f){const p=rt.useRef();return p.current||(p.current=i(l,f)),p}:function(l,f){const p=rt.useRef();p.current||(p.current=i(l,f));const g=rt.useRef(l),{instance:y}=p.current;return rt.useEffect(function(){g.current!==l&&(o(y,l,g.current),g.current=l)},[y,l,f]),p}}function ik(i,o){rt.useEffect(function(){return(o.layerContainer??o.map).addLayer(i.instance),function(){var p;(p=o.layerContainer)==null||p.removeLayer(i.instance),o.map.removeLayer(i.instance)}},[o,i])}function E_(i){return function(r){const l=Xf(),f=i(Qf(r,l),l);return y_(l.map,r.attribution),k_(f.current,r.eventHandlers),ik(f.current,l),f}}function rk(i,o){const r=th(i,o),l=E_(r);return Xx(l)}function ok(i,o){const r=th(i),l=tk(r,o);return Qx(l)}function sk(i,o){const r=th(i,o),l=E_(r);return Jx(l)}function ak(i,o,r){const{opacity:l,zIndex:f}=o;l!=null&&l!==r.opacity&&i.setOpacity(l),f!=null&&f!==r.zIndex&&i.setZIndex(f)}function lk(){return Xf().map}function uk(i){const o=lk();return rt.useEffect(function(){return o.on(i),function(){o.off(i)}},[o,i]),o}function If(){return If=Object.assign||function(i){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(i[l]=r[l])}return i},If.apply(this,arguments)}function ck({bounds:i,boundsOptions:o,center:r,children:l,className:f,id:p,placeholder:g,style:y,whenReady:w,zoom:v,...S},T){const[C]=rt.useState({className:f,id:p,style:y}),[E,D]=rt.useState(null);rt.useImperativeHandle(T,()=>(E==null?void 0:E.map)??null,[E]);const H=rt.useCallback(J=>{if(J!==null&&E===null){const Q=new da.Map(J,S);r!=null&&v!=null?Q.setView(r,v):i!=null&&Q.fitBounds(i,o),w!=null&&Q.whenReady(w),D(Kx(Q))}},[]);rt.useEffect(()=>()=>{E==null||E.map.remove()},[E]);const $=E?pf.createElement(x_,{value:E},l):g??null;return pf.createElement("div",If({},C,{ref:H}),$)}const fk=rt.forwardRef(ck),Xp=rk(function({position:o,...r},l){const f=new da.Marker(o,r);return Jf(f,Yx(l,{overlayContainer:f}))},function(o,r,l){r.position!==l.position&&o.setLatLng(r.position),r.icon!=null&&r.icon!==l.icon&&o.setIcon(r.icon),r.zIndexOffset!=null&&r.zIndexOffset!==l.zIndexOffset&&o.setZIndexOffset(r.zIndexOffset),r.opacity!=null&&r.opacity!==l.opacity&&o.setOpacity(r.opacity),o.dragging!=null&&r.draggable!==l.draggable&&(r.draggable===!0?o.dragging.enable():o.dragging.disable())}),hk=ok(function(o,r){const l=new da.Popup(o,r.overlayContainer);return Jf(l,r)},function(o,r,{position:l},f){rt.useEffect(function(){const{instance:g}=o;function y(v){v.popup===g&&(g.update(),f(!0))}function w(v){v.popup===g&&f(!1)}return r.map.on({popupopen:y,popupclose:w}),r.overlayContainer==null?(l!=null&&g.setLatLng(l),g.openOn(r.map)):r.overlayContainer.bindPopup(g),function(){var S;r.map.off({popupopen:y,popupclose:w}),(S=r.overlayContainer)==null||S.unbindPopup(),r.map.removeLayer(g)}},[o,r,f,l])}),dk=sk(function({url:o,...r},l){const f=new da.TileLayer(o,Qf(r,l));return Jf(f,l)},function(o,r,l){ak(o,r,l);const{url:f}=r;f!=null&&f!==l.url&&o.setUrl(f)}),pk=S_.icon({iconUrl:"https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png",shadowUrl:"https://unpkg.com/leaflet@1.9.4/dist/images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41]});S_.Marker.prototype.options.icon=pk;function mk({onMapClick:i}){return uk({click:o=>{i(o.latlng.lat,o.latlng.lng)}}),null}const _k=({gpsLocation:i,gpsTravelGoalPoints:o,onGpsGoal:r})=>{if(!i)return ot.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"18px",color:"#666"},children:"GPS location not received yet."});const l=[i.lat,i.lon];return ot.jsxs("div",{style:{width:"100%",height:"100%",position:"relative"},children:[ot.jsx("style",{children:gk}),ot.jsxs(fk,{center:l,zoom:14,style:{width:"100%",height:"100%"},children:[ot.jsx(dk,{attribution:"",url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),ot.jsx(mk,{onMapClick:(f,p)=>{r({lat:f,lon:p})}}),ot.jsx(Xp,{position:l,children:ot.jsx(hk,{children:"Current GPS Location"})}),o!==null&&o.map(f=>ot.jsx(Xp,{position:[f.lat,f.lon]},`${f.lat}_${f.lon}}`))]})]})},gk=`
.leaflet-control-container {
display: none;
}
.leaflet-container {
width: 100%;
height: 100%;
position: relative;
}
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
position: absolute;
left: 0;
top: 0;
}
.leaflet-container {
overflow: hidden;
-webkit-tap-highlight-color: transparent;
background: #ddd;
outline: 0;
font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
}
.leaflet-tile {
filter: inherit;
visibility: hidden;
}
.leaflet-tile-loaded {
visibility: inherit;
}
.leaflet-zoom-box {
width: 0;
height: 0;
-moz-box-sizing: border-box;
box-sizing: border-box;
z-index: 800;
}
.leaflet-control {
position: relative;
z-index: 800;
pointer-events: visiblePainted;
pointer-events: auto;
}
.leaflet-top,
.leaflet-bottom {
position: absolute;
z-index: 1000;
pointer-events: none;
}
.leaflet-top {
top: 0;
}
.leaflet-right {
right: 0;
}
.leaflet-bottom {
bottom: 0;
}
.leaflet-left {
left: 0;
}
`;function vk(i,o){switch(o.type){case"SET_COSTMAP":return{...i,costmap:o.payload};case"SET_ROBOT_POSE":return{...i,robotPose:o.payload};case"SET_GPS_LOCATION":return{...i,gpsLocation:o.payload};case"SET_GPS_TRAVEL_GOAL_POINTS":return{...i,gpsTravelGoalPoints:o.payload};case"SET_PATH":return{...i,path:o.payload};case"SET_FULL_STATE":return{...i,...o.payload};default:return i}}const yk={costmap:null,robotPose:null,gpsLocation:null,gpsTravelGoalPoints:null,path:null};function wk(){const[i,o]=rt.useReducer(vk,yk),[r,l]=rt.useState(!1),f=rt.useRef(null);rt.useEffect(()=>(f.current=new ky(o),()=>{f.current&&f.current.disconnect()}),[]);const p=rt.useCallback((E,D)=>{var H;(H=f.current)==null||H.worldClick(E,D)},[]),g=rt.useCallback(()=>{var E;(E=f.current)==null||E.startExplore()},[]),y=rt.useCallback(()=>{var E;(E=f.current)==null||E.stopExplore()},[]),w=rt.useCallback(E=>{var D;(D=f.current)==null||D.sendGpsGoal(E)},[]),v=rt.useCallback((E,D)=>{var H;(H=f.current)==null||H.sendMoveCommand(E,D)},[]),S=rt.useCallback(()=>{var E;(E=f.current)==null||E.stopMoveCommand()},[]),T=rt.useCallback(()=>{var E;(E=f.current)==null||E.worldClick(0,0)},[]),C=rt.useCallback(()=>{var E;i.robotPose&&((E=f.current)==null||E.worldClick(i.robotPose.coords[0],i.robotPose.coords[1]))},[i.robotPose]);return ot.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[r?ot.jsx(_k,{gpsLocation:i.gpsLocation,gpsTravelGoalPoints:i.gpsTravelGoalPoints,onGpsGoal:w}):ot.jsx($x,{data:i,onWorldClick:p}),ot.jsxs("div",{style:{position:"absolute",bottom:0,left:0,display:"flex",width:"100%",padding:5,gap:5,alignItems:"flex-end"},children:[ot.jsx(Ey,{onUseGps:()=>l(!0),onUseCostmap:()=>l(!1)}),ot.jsx(Sy,{onStartExplore:g,onStopExplore:y}),ot.jsx(jr,{onClick:T,isActive:!1,children:"Go Home"}),ot.jsx(jr,{onClick:C,isActive:!1,children:"Stop"}),ot.jsx(Ty,{onSendMoveCommand:v,onStopMoveCommand:S})]})]})}const Qp=document.getElementById("root");Qp?dg.createRoot(Qp).render(ot.jsx(rt.StrictMode,{children:ot.jsx(wk,{})})):console.error("Root element not found");
</script>
</head>
<body>
<div id="root"></div>
</body>
</html>