smarter-charts 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21329,6 +21329,7 @@ class go {
21329
21329
  return gr.put(
21330
21330
  this.buildURL(t.host, "/wateringSchedule", void 0, r),
21331
21331
  {
21332
+ source: e.source,
21332
21333
  refStructureName: e.refStructureName,
21333
21334
  companyName: e.companyName,
21334
21335
  fieldName: e.fieldName,
@@ -53,7 +53,7 @@ Expected function or array of functions, received type ${typeof o}.`),Sr)}functi
53
53
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const e=new this(t);return r.forEach(a=>e.set(a)),e}static accessor(t){const e=(this[Ok]=this[Ok]={accessors:{}}).accessors,a=this.prototype;function i(n){const s=Md(n);e[s]||(uO(a,n),e[s]=!0)}return F.isArray(t)?t.forEach(i):i(t),this}};ko.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),F.reduceDescriptors(ko.prototype,({value:o},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>o,set(e){this[r]=e}}}),F.freezeMethods(ko);function Fu(o,t){const r=this||jd,e=t||r,a=ko.from(e.headers);let i=e.data;return F.forEach(o,function(s){i=s.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function Lk(o){return!!(o&&o.__CANCEL__)}function Es(o,t,r){Rt.call(this,o??"canceled",Rt.ERR_CANCELED,t,r),this.name="CanceledError"}F.inherits(Es,Rt,{__CANCEL__:!0});function Nk(o,t,r){const e=r.config.validateStatus;!r.status||!e||e(r.status)?o(r):t(new Rt("Request failed with status code "+r.status,[Rt.ERR_BAD_REQUEST,Rt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function hO(o){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return t&&t[1]||""}function vO(o,t){o=o||10;const r=new Array(o),e=new Array(o);let a=0,i=0,n;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),b=e[i];n||(n=d),r[a]=l,e[a]=d;let c=i,m=0;for(;c!==a;)m+=r[c++],c=c%o;if(a=(a+1)%o,a===i&&(i=(i+1)%o),d-n<t)return;const p=b&&d-b;return p?Math.round(m*1e3/p):void 0}}function xO(o,t){let r=0,e=1e3/t,a,i;const n=(d,b=Date.now())=>{r=b,a=null,i&&(clearTimeout(i),i=null),o.apply(null,d)};return[(...d)=>{const b=Date.now(),c=b-r;c>=e?n(d,b):(a=d,i||(i=setTimeout(()=>{i=null,n(a)},e-c)))},()=>a&&n(a)]}const Em=(o,t,r=3)=>{let e=0;const a=vO(50,250);return xO(i=>{const n=i.loaded,s=i.lengthComputable?i.total:void 0,l=n-e,d=a(l),b=n<=s;e=n;const c={loaded:n,total:s,progress:s?n/s:void 0,bytes:l,rate:d||void 0,estimated:d&&s&&b?(s-n)/d:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};o(c)},r)},Ik=(o,t)=>{const r=o!=null;return[e=>t[0]({lengthComputable:r,total:o,loaded:e}),t[1]]},Bk=o=>(...t)=>F.asap(()=>o(...t)),wO=oo.hasStandardBrowserEnv?((o,t)=>r=>(r=new URL(r,oo.origin),o.protocol===r.protocol&&o.host===r.host&&(t||o.port===r.port)))(new URL(oo.origin),oo.navigator&&/(msie|trident)/i.test(oo.navigator.userAgent)):()=>!0,yO=oo.hasStandardBrowserEnv?{write(o,t,r,e,a,i){const n=[o+"="+encodeURIComponent(t)];F.isNumber(r)&&n.push("expires="+new Date(r).toGMTString()),F.isString(e)&&n.push("path="+e),F.isString(a)&&n.push("domain="+a),i===!0&&n.push("secure"),document.cookie=n.join("; ")},read(o){const t=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kO(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function zO(o,t){return t?o.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):o}function Pk(o,t,r){let e=!kO(t);return o&&(e||r==!1)?zO(o,t):t}const Fk=o=>o instanceof ko?{...o}:o;function gn(o,t){t=t||{};const r={};function e(d,b,c,m){return F.isPlainObject(d)&&F.isPlainObject(b)?F.merge.call({caseless:m},d,b):F.isPlainObject(b)?F.merge({},b):F.isArray(b)?b.slice():b}function a(d,b,c,m){if(F.isUndefined(b)){if(!F.isUndefined(d))return e(void 0,d,c,m)}else return e(d,b,c,m)}function i(d,b){if(!F.isUndefined(b))return e(void 0,b)}function n(d,b){if(F.isUndefined(b)){if(!F.isUndefined(d))return e(void 0,d)}else return e(void 0,b)}function s(d,b,c){if(c in t)return e(d,b);if(c in o)return e(void 0,d)}const l={url:i,method:i,data:i,baseURL:n,transformRequest:n,transformResponse:n,paramsSerializer:n,timeout:n,timeoutMessage:n,withCredentials:n,withXSRFToken:n,adapter:n,responseType:n,xsrfCookieName:n,xsrfHeaderName:n,onUploadProgress:n,onDownloadProgress:n,decompress:n,maxContentLength:n,maxBodyLength:n,beforeRedirect:n,transport:n,httpAgent:n,httpsAgent:n,cancelToken:n,socketPath:n,responseEncoding:n,validateStatus:s,headers:(d,b,c)=>a(Fk(d),Fk(b),c,!0)};return F.forEach(Object.keys(Object.assign({},o,t)),function(b){const c=l[b]||a,m=c(o[b],t[b],b);F.isUndefined(m)&&c!==s||(r[b]=m)}),r}const Hk=o=>{const t=gn({},o);let{data:r,withXSRFToken:e,xsrfHeaderName:a,xsrfCookieName:i,headers:n,auth:s}=t;t.headers=n=ko.from(n),t.url=Mk(Pk(t.baseURL,t.url,t.allowAbsoluteUrls),o.params,o.paramsSerializer),s&&n.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(F.isFormData(r)){if(oo.hasStandardBrowserEnv||oo.hasStandardBrowserWebWorkerEnv)n.setContentType(void 0);else if((l=n.getContentType())!==!1){const[d,...b]=l?l.split(";").map(c=>c.trim()).filter(Boolean):[];n.setContentType([d||"multipart/form-data",...b].join("; "))}}if(oo.hasStandardBrowserEnv&&(e&&F.isFunction(e)&&(e=e(t)),e||e!==!1&&wO(t.url))){const d=a&&i&&yO.read(i);d&&n.set(a,d)}return t},_O=typeof XMLHttpRequest<"u"&&function(o){return new Promise(function(r,e){const a=Hk(o);let i=a.data;const n=ko.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:d}=a,b,c,m,p,g;function f(){p&&p(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(b),a.signal&&a.signal.removeEventListener("abort",b)}let u=new XMLHttpRequest;u.open(a.method.toUpperCase(),a.url,!0),u.timeout=a.timeout;function h(){if(!u)return;const x=ko.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:o,request:u};Nk(function(k){r(k),f()},function(k){e(k),f()},w),u=null}"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(h)},u.onabort=function(){u&&(e(new Rt("Request aborted",Rt.ECONNABORTED,o,u)),u=null)},u.onerror=function(){e(new Rt("Network Error",Rt.ERR_NETWORK,o,u)),u=null},u.ontimeout=function(){let y=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const w=a.transitional||Dk;a.timeoutErrorMessage&&(y=a.timeoutErrorMessage),e(new Rt(y,w.clarifyTimeoutError?Rt.ETIMEDOUT:Rt.ECONNABORTED,o,u)),u=null},i===void 0&&n.setContentType(null),"setRequestHeader"in u&&F.forEach(n.toJSON(),function(y,w){u.setRequestHeader(w,y)}),F.isUndefined(a.withCredentials)||(u.withCredentials=!!a.withCredentials),s&&s!=="json"&&(u.responseType=a.responseType),d&&([m,g]=Em(d,!0),u.addEventListener("progress",m)),l&&u.upload&&([c,p]=Em(l),u.upload.addEventListener("progress",c),u.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(b=x=>{u&&(e(!x||x.type?new Es(null,o,u):x),u.abort(),u=null)},a.cancelToken&&a.cancelToken.subscribe(b),a.signal&&(a.signal.aborted?b():a.signal.addEventListener("abort",b)));const v=hO(a.url);if(v&&oo.protocols.indexOf(v)===-1){e(new Rt("Unsupported protocol "+v+":",Rt.ERR_BAD_REQUEST,o));return}u.send(i||null)})},AO=(o,t)=>{const{length:r}=o=o?o.filter(Boolean):[];if(t||r){let e=new AbortController,a;const i=function(d){if(!a){a=!0,s();const b=d instanceof Error?d:this.reason;e.abort(b instanceof Rt?b:new Es(b instanceof Error?b.message:b))}};let n=t&&setTimeout(()=>{n=null,i(new Rt(`timeout ${t} of ms exceeded`,Rt.ETIMEDOUT))},t);const s=()=>{o&&(n&&clearTimeout(n),n=null,o.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),o=null)};o.forEach(d=>d.addEventListener("abort",i));const{signal:l}=e;return l.unsubscribe=()=>F.asap(s),l}},SO=function*(o,t){let r=o.byteLength;if(r<t){yield o;return}let e=0,a;for(;e<r;)a=e+t,yield o.slice(e,a),e=a},EO=async function*(o,t){for await(const r of CO(o))yield*SO(r,t)},CO=async function*(o){if(o[Symbol.asyncIterator]){yield*o;return}const t=o.getReader();try{for(;;){const{done:r,value:e}=await t.read();if(r)break;yield e}}finally{await t.cancel()}},Yk=(o,t,r,e)=>{const a=EO(o,t);let i=0,n,s=l=>{n||(n=!0,e&&e(l))};return new ReadableStream({async pull(l){try{const{done:d,value:b}=await a.next();if(d){s(),l.close();return}let c=b.byteLength;if(r){let m=i+=c;r(m)}l.enqueue(new Uint8Array(b))}catch(d){throw s(d),d}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},Cm=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",$k=Cm&&typeof ReadableStream=="function",jO=Cm&&(typeof TextEncoder=="function"?(o=>t=>o.encode(t))(new TextEncoder):async o=>new Uint8Array(await new Response(o).arrayBuffer())),Gk=(o,...t)=>{try{return!!o(...t)}catch{return!1}},MO=$k&&Gk(()=>{let o=!1;const t=new Request(oo.origin,{body:new ReadableStream,method:"POST",get duplex(){return o=!0,"half"}}).headers.has("Content-Type");return o&&!t}),Wk=64*1024,Hu=$k&&Gk(()=>F.isReadableStream(new Response("").body)),jm={stream:Hu&&(o=>o.body)};Cm&&(o=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!jm[t]&&(jm[t]=F.isFunction(o[t])?r=>r[t]():(r,e)=>{throw new Rt(`Response type '${t}' is not supported`,Rt.ERR_NOT_SUPPORT,e)})})})(new Response);const TO=async o=>{if(o==null)return 0;if(F.isBlob(o))return o.size;if(F.isSpecCompliantForm(o))return(await new Request(oo.origin,{method:"POST",body:o}).arrayBuffer()).byteLength;if(F.isArrayBufferView(o)||F.isArrayBuffer(o))return o.byteLength;if(F.isURLSearchParams(o)&&(o=o+""),F.isString(o))return(await jO(o)).byteLength},DO=async(o,t)=>{const r=F.toFiniteNumber(o.getContentLength());return r??TO(t)},Yu={http:QR,xhr:_O,fetch:Cm&&(async o=>{let{url:t,method:r,data:e,signal:a,cancelToken:i,timeout:n,onDownloadProgress:s,onUploadProgress:l,responseType:d,headers:b,withCredentials:c="same-origin",fetchOptions:m}=Hk(o);d=d?(d+"").toLowerCase():"text";let p=AO([a,i&&i.toAbortSignal()],n),g;const f=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let u;try{if(l&&MO&&r!=="get"&&r!=="head"&&(u=await DO(b,e))!==0){let w=new Request(t,{method:"POST",body:e,duplex:"half"}),z;if(F.isFormData(e)&&(z=w.headers.get("content-type"))&&b.setContentType(z),w.body){const[k,_]=Ik(u,Em(Bk(l)));e=Yk(w.body,Wk,k,_)}}F.isString(c)||(c=c?"include":"omit");const h="credentials"in Request.prototype;g=new Request(t,{...m,signal:p,method:r.toUpperCase(),headers:b.normalize().toJSON(),body:e,duplex:"half",credentials:h?c:void 0});let v=await fetch(g,m);const x=Hu&&(d==="stream"||d==="response");if(Hu&&(s||x&&f)){const w={};["status","statusText","headers"].forEach(A=>{w[A]=v[A]});const z=F.toFiniteNumber(v.headers.get("content-length")),[k,_]=s&&Ik(z,Em(Bk(s),!0))||[];v=new Response(Yk(v.body,Wk,k,()=>{_&&_(),f&&f()}),w)}d=d||"text";let y=await jm[F.findKey(jm,d)||"text"](v,o);return!x&&f&&f(),await new Promise((w,z)=>{Nk(w,z,{data:y,headers:ko.from(v.headers),status:v.status,statusText:v.statusText,config:o,request:g})})}catch(h){throw f&&f(),h&&h.name==="TypeError"&&/Load failed|fetch/i.test(h.message)?Object.assign(new Rt("Network Error",Rt.ERR_NETWORK,o,g),{cause:h.cause||h}):Rt.from(h,h&&h.code,o,g)}})};F.forEach(Yu,(o,t)=>{if(o){try{Object.defineProperty(o,"name",{value:t})}catch{}Object.defineProperty(o,"adapterName",{value:t})}});const Vk=o=>`- ${o}`,RO=o=>F.isFunction(o)||o===null||o===!1,Xk={getAdapter:o=>{o=F.isArray(o)?o:[o];const{length:t}=o;let r,e;const a={};for(let i=0;i<t;i++){r=o[i];let n;if(e=r,!RO(r)&&(e=Yu[(n=String(r)).toLowerCase()],e===void 0))throw new Rt(`Unknown adapter '${n}'`);if(e)break;a[n||"#"+i]=e}if(!e){const i=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let n=t?i.length>1?`since :
54
54
  `+i.map(Vk).join(`
55
55
  `):" "+Vk(i[0]):"as no adapter specified";throw new Rt("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return e},adapters:Yu};function $u(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new Es(null,o)}function qk(o){return $u(o),o.headers=ko.from(o.headers),o.data=Fu.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),Xk.getAdapter(o.adapter||jd.adapter)(o).then(function(e){return $u(o),e.data=Fu.call(o,o.transformResponse,e),e.headers=ko.from(e.headers),e},function(e){return Lk(e)||($u(o),e&&e.response&&(e.response.data=Fu.call(o,o.transformResponse,e.response),e.response.headers=ko.from(e.response.headers))),Promise.reject(e)})}const Uk="1.10.0",Mm={};["object","boolean","number","function","string","symbol"].forEach((o,t)=>{Mm[o]=function(e){return typeof e===o||"a"+(t<1?"n ":" ")+o}});const Kk={};Mm.transitional=function(t,r,e){function a(i,n){return"[Axios v"+Uk+"] Transitional option '"+i+"'"+n+(e?". "+e:"")}return(i,n,s)=>{if(t===!1)throw new Rt(a(n," has been removed"+(r?" in "+r:"")),Rt.ERR_DEPRECATED);return r&&!Kk[n]&&(Kk[n]=!0,console.warn(a(n," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,n,s):!0}},Mm.spelling=function(t){return(r,e)=>(console.warn(`${e} is likely a misspelling of ${t}`),!0)};function OO(o,t,r){if(typeof o!="object")throw new Rt("options must be an object",Rt.ERR_BAD_OPTION_VALUE);const e=Object.keys(o);let a=e.length;for(;a-- >0;){const i=e[a],n=t[i];if(n){const s=o[i],l=s===void 0||n(s,i,o);if(l!==!0)throw new Rt("option "+i+" must be "+l,Rt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Rt("Unknown option "+i,Rt.ERR_BAD_OPTION)}}const Tm={assertOptions:OO,validators:Mm},Qe=Tm.validators;let fn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Tk,response:new Tk}}async request(t,r){try{return await this._request(t,r)}catch(e){if(e instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{e.stack?i&&!String(e.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(e.stack+=`
56
- `+i):e.stack=i}catch{}}throw e}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=gn(this.defaults,r);const{transitional:e,paramsSerializer:a,headers:i}=r;e!==void 0&&Tm.assertOptions(e,{silentJSONParsing:Qe.transitional(Qe.boolean),forcedJSONParsing:Qe.transitional(Qe.boolean),clarifyTimeoutError:Qe.transitional(Qe.boolean)},!1),a!=null&&(F.isFunction(a)?r.paramsSerializer={serialize:a}:Tm.assertOptions(a,{encode:Qe.function,serialize:Qe.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Tm.assertOptions(r,{baseUrl:Qe.spelling("baseURL"),withXsrfToken:Qe.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let n=i&&F.merge(i.common,i[r.method]);i&&F.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),r.headers=ko.concat(n,i);const s=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(r)===!1||(l=l&&f.synchronous,s.unshift(f.fulfilled,f.rejected))});const d=[];this.interceptors.response.forEach(function(f){d.push(f.fulfilled,f.rejected)});let b,c=0,m;if(!l){const g=[qk.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,d),m=g.length,b=Promise.resolve(r);c<m;)b=b.then(g[c++],g[c++]);return b}m=s.length;let p=r;for(c=0;c<m;){const g=s[c++],f=s[c++];try{p=g(p)}catch(u){f.call(this,u);break}}try{b=qk.call(this,p)}catch(g){return Promise.reject(g)}for(c=0,m=d.length;c<m;)b=b.then(d[c++],d[c++]);return b}getUri(t){t=gn(this.defaults,t);const r=Pk(t.baseURL,t.url,t.allowAbsoluteUrls);return Mk(r,t.params,t.paramsSerializer)}};F.forEach(["delete","get","head","options"],function(t){fn.prototype[t]=function(r,e){return this.request(gn(e||{},{method:t,url:r,data:(e||{}).data}))}}),F.forEach(["post","put","patch"],function(t){function r(e){return function(i,n,s){return this.request(gn(s||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}fn.prototype[t]=r(),fn.prototype[t+"Form"]=r(!0)});let LO=class c_{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const e=this;this.promise.then(a=>{if(!e._listeners)return;let i=e._listeners.length;for(;i-- >0;)e._listeners[i](a);e._listeners=null}),this.promise.then=a=>{let i;const n=new Promise(s=>{e.subscribe(s),i=s}).then(a);return n.cancel=function(){e.unsubscribe(i)},n},t(function(i,n,s){e.reason||(e.reason=new Es(i,n,s),r(e.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=e=>{t.abort(e)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new c_(function(a){t=a}),cancel:t}}};function NO(o){return function(r){return o.apply(null,r)}}function IO(o){return F.isObject(o)&&o.isAxiosError===!0}const Gu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Gu).forEach(([o,t])=>{Gu[t]=o});function Zk(o){const t=new fn(o),r=fk(fn.prototype.request,t);return F.extend(r,fn.prototype,t,{allOwnKeys:!0}),F.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return Zk(gn(o,a))},r}const pr=Zk(jd);pr.Axios=fn,pr.CanceledError=Es,pr.CancelToken=LO,pr.isCancel=Lk,pr.VERSION=Uk,pr.toFormData=Am,pr.AxiosError=Rt,pr.Cancel=pr.CanceledError,pr.all=function(t){return Promise.all(t)},pr.spread=NO,pr.isAxiosError=IO,pr.mergeConfig=gn,pr.AxiosHeaders=ko,pr.formToJSON=o=>Rk(F.isHTMLForm(o)?new FormData(o):o),pr.getAdapter=Xk.getAdapter,pr.HttpStatusCode=Gu,pr.default=pr;const{Axios:tQ,AxiosError:rQ,CanceledError:oQ,isCancel:eQ,CancelToken:aQ,VERSION:iQ,all:nQ,Cancel:sQ,isAxiosError:lQ,spread:dQ,toFormData:bQ,AxiosHeaders:cQ,HttpStatusCode:mQ,formToJSON:pQ,getAdapter:gQ,mergeConfig:fQ}=pr,Dm=(o,t)=>o.reduce((r,e)=>{var a;return(r[a=t(e)]||(r[a]=[])).push(e),r},{}),Jk=o=>o.reduce((t,r)=>t+r)/o.length,BO=(o,t)=>t.split(".").reduce((r,e)=>r&&r[e]!==void 0?r[e]:null,o);class eo{async getChartData(t,r,e,a,i){const n=await this.getAPI(t,"/fieldCharts",r,e,a);return n?BO(n,i):null}async getAPI(t,r,e,a,i){return pr.get(this.buildURL(t.host,r,e,i),{params:a,headers:{Authorization:"Bearer "+t.token}}).then(n=>n.data?n.data:null).catch(n=>{throw console.error(`Error response: ${n}`),console.error(`Error on communication service: ${n.message}`),new Error(n.message)})}async getFieldInfo(t,r,e,a){return await this.getAPI(t,"/fields",r,e,a)}async getWateringSchedule(t,r,e,a){return await this.getAPI(t,"/wateringSchedule",r,e,a)}async updateEvent(t,r,e,a){return pr.put(this.buildURL(t.host,"/wateringSchedule",void 0,r),{refStructureName:e.refStructureName,companyName:e.companyName,fieldName:e.fieldName,sectorName:e.sectorName,plantRow:e.plantRow,...a},{headers:{Authorization:"Bearer "+t.token}}).then(i=>(console.log(`Success response: ${i.data}`),i.data?i.data:null)).catch(i=>{throw console.error(`Error response: ${i}`),console.error(`Error on communication service: ${i.message}`),new Error(i.message)})}async setOptimalStateByTimestamp(t,r,e,a){return pr.put(this.buildURL(t.host,"/fields",e,r),{},{params:{timestamp:a},headers:{Authorization:"Bearer "+t.token}}).then(i=>(console.log(`Success response: ${i.data}`),i.data?i.data:null)).catch(i=>{throw console.error(`Error response: ${i}`),console.error(`Error on communication service: ${i.message}`),new Error(i.message)})}buildURL(t,r,e,a){let i="";return e&&(i="/"+e.refStructureName+"/"+e.companyName+"/"+e.fieldName+"/"+e.sectorName+"/"+e.plantRow),t+r+i+"/"+a}}function Rm(o,t){return o==null||t==null?NaN:o<t?-1:o>t?1:o>=t?0:NaN}function PO(o,t){return o==null||t==null?NaN:t<o?-1:t>o?1:t>=o?0:NaN}function Qk(o){let t,r,e;o.length!==2?(t=Rm,r=(s,l)=>Rm(o(s),l),e=(s,l)=>o(s)-l):(t=o===Rm||o===PO?o:FO,r=o,e=o);function a(s,l,d=0,b=s.length){if(d<b){if(t(l,l)!==0)return b;do{const c=d+b>>>1;r(s[c],l)<0?d=c+1:b=c}while(d<b)}return d}function i(s,l,d=0,b=s.length){if(d<b){if(t(l,l)!==0)return b;do{const c=d+b>>>1;r(s[c],l)<=0?d=c+1:b=c}while(d<b)}return d}function n(s,l,d=0,b=s.length){const c=a(s,l,d,b-1);return c>d&&e(s[c-1],l)>-e(s[c],l)?c-1:c}return{left:a,center:n,right:i}}function FO(){return 0}function HO(o){return o===null?NaN:+o}const YO=Qk(Rm).right;Qk(HO).center;function $O(o,t){let r=0;for(let e of o)e!=null&&(e=+e)>=e&&++r;return r}function GO(o,t){let r,e;if(t===void 0)for(const a of o)a!=null&&(r===void 0?a>=a&&(r=e=a):(r>a&&(r=a),e<a&&(e=a)));else{let a=-1;for(let i of o)(i=t(i,++a,o))!=null&&(r===void 0?i>=i&&(r=e=i):(r>i&&(r=i),e<i&&(e=i)))}return[r,e]}class Cs{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const r=this._partials;let e=0;for(let a=0;a<this._n&&a<32;a++){const i=r[a],n=t+i,s=Math.abs(t)<Math.abs(i)?t-(n-i):i-(n-t);s&&(r[e++]=s),t=n}return r[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let r=this._n,e,a,i,n=0;if(r>0){for(n=t[--r];r>0&&(e=n,a=t[--r],n=e+a,i=a-(n-e),!i););r>0&&(i<0&&t[r-1]<0||i>0&&t[r-1]>0)&&(a=i*2,e=n+a,a==e-n&&(n=e))}return n}}const WO=Math.sqrt(50),VO=Math.sqrt(10),XO=Math.sqrt(2);function Om(o,t,r){const e=(t-o)/Math.max(0,r),a=Math.floor(Math.log10(e)),i=e/Math.pow(10,a),n=i>=WO?10:i>=VO?5:i>=XO?2:1;let s,l,d;return a<0?(d=Math.pow(10,-a)/n,s=Math.round(o*d),l=Math.round(t*d),s/d<o&&++s,l/d>t&&--l,d=-d):(d=Math.pow(10,a)*n,s=Math.round(o/d),l=Math.round(t/d),s*d<o&&++s,l*d>t&&--l),l<s&&.5<=r&&r<2?Om(o,t,r*2):[s,l,d]}function t2(o,t,r){if(t=+t,o=+o,r=+r,!(r>0))return[];if(o===t)return[o];const e=t<o,[a,i,n]=e?Om(t,o,r):Om(o,t,r);if(!(i>=a))return[];const s=i-a+1,l=new Array(s);if(e)if(n<0)for(let d=0;d<s;++d)l[d]=(i-d)/-n;else for(let d=0;d<s;++d)l[d]=(i-d)*n;else if(n<0)for(let d=0;d<s;++d)l[d]=(a+d)/-n;else for(let d=0;d<s;++d)l[d]=(a+d)*n;return l}function Lm(o,t,r){return t=+t,o=+o,r=+r,Om(o,t,r)[2]}function qO(o,t,r){t=+t,o=+o,r=+r;const e=t<o,a=e?Lm(t,o,r):Lm(o,t,r);return(e?-1:1)*(a<0?1/-a:a)}function UO(o,t,r){let e;for(;;){const a=Lm(o,t,r);if(a===e||a===0||!isFinite(a))return[o,t];a>0?(o=Math.floor(o/a)*a,t=Math.ceil(t/a)*a):a<0&&(o=Math.ceil(o*a)/a,t=Math.floor(t*a)/a),e=a}}function KO(o){return Math.max(1,Math.ceil(Math.log($O(o))/Math.LN2)+1)}function*ZO(o){for(const t of o)yield*t}function JO(o){return Array.from(ZO(o))}function r2(o,t,r){o=+o,t=+t,r=(a=arguments.length)<2?(t=o,o=0,1):a<3?1:+r;for(var e=-1,a=Math.max(0,Math.ceil((t-o)/r))|0,i=new Array(a);++e<a;)i[e]=o+e*r;return i}function QO(o){return o}var Wu=1,Vu=2,Xu=3,Td=4,o2=1e-6;function tL(o){return"translate("+o+",0)"}function rL(o){return"translate(0,"+o+")"}function oL(o){return t=>+o(t)}function eL(o,t){return t=Math.max(0,o.bandwidth()-t*2)/2,o.round()&&(t=Math.round(t)),r=>+o(r)+t}function aL(){return!this.__axis}function e2(o,t){var r=[],e=null,a=null,i=6,n=6,s=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,d=o===Wu||o===Td?-1:1,b=o===Td||o===Vu?"x":"y",c=o===Wu||o===Xu?tL:rL;function m(p){var g=e??(t.ticks?t.ticks.apply(t,r):t.domain()),f=a??(t.tickFormat?t.tickFormat.apply(t,r):QO),u=Math.max(i,0)+s,h=t.range(),v=+h[0]+l,x=+h[h.length-1]+l,y=(t.bandwidth?eL:oL)(t.copy(),l),w=p.selection?p.selection():p,z=w.selectAll(".domain").data([null]),k=w.selectAll(".tick").data(g,t).order(),_=k.exit(),A=k.enter().append("g").attr("class","tick"),E=k.select("line"),S=k.select("text");z=z.merge(z.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(A),E=E.merge(A.append("line").attr("stroke","currentColor").attr(b+"2",d*i)),S=S.merge(A.append("text").attr("fill","currentColor").attr(b,d*u).attr("dy",o===Wu?"0em":o===Xu?"0.71em":"0.32em")),p!==w&&(z=z.transition(p),k=k.transition(p),E=E.transition(p),S=S.transition(p),_=_.transition(p).attr("opacity",o2).attr("transform",function(C){return isFinite(C=y(C))?c(C+l):this.getAttribute("transform")}),A.attr("opacity",o2).attr("transform",function(C){var D=this.parentNode.__axis;return c((D&&isFinite(D=D(C))?D:y(C))+l)})),_.remove(),z.attr("d",o===Td||o===Vu?n?"M"+d*n+","+v+"H"+l+"V"+x+"H"+d*n:"M"+l+","+v+"V"+x:n?"M"+v+","+d*n+"V"+l+"H"+x+"V"+d*n:"M"+v+","+l+"H"+x),k.attr("opacity",1).attr("transform",function(C){return c(y(C)+l)}),E.attr(b+"2",d*i),S.attr(b,d*u).text(f),w.filter(aL).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",o===Vu?"start":o===Td?"end":"middle"),w.each(function(){this.__axis=y})}return m.scale=function(p){return arguments.length?(t=p,m):t},m.ticks=function(){return r=Array.from(arguments),m},m.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),m):r.slice()},m.tickValues=function(p){return arguments.length?(e=p==null?null:Array.from(p),m):e&&e.slice()},m.tickFormat=function(p){return arguments.length?(a=p,m):a},m.tickSize=function(p){return arguments.length?(i=n=+p,m):i},m.tickSizeInner=function(p){return arguments.length?(i=+p,m):i},m.tickSizeOuter=function(p){return arguments.length?(n=+p,m):n},m.tickPadding=function(p){return arguments.length?(s=+p,m):s},m.offset=function(p){return arguments.length?(l=+p,m):l},m}function a2(o){return e2(Xu,o)}function i2(o){return e2(Td,o)}var iL={value:()=>{}};function n2(){for(var o=0,t=arguments.length,r={},e;o<t;++o){if(!(e=arguments[o]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new Nm(r)}function Nm(o){this._=o}function nL(o,t){return o.trim().split(/^|\s+/).map(function(r){var e="",a=r.indexOf(".");if(a>=0&&(e=r.slice(a+1),r=r.slice(0,a)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:e}})}Nm.prototype=n2.prototype={constructor:Nm,on:function(o,t){var r=this._,e=nL(o+"",r),a,i=-1,n=e.length;if(arguments.length<2){for(;++i<n;)if((a=(o=e[i]).type)&&(a=sL(r[a],o.name)))return a;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<n;)if(a=(o=e[i]).type)r[a]=s2(r[a],o.name,t);else if(t==null)for(a in r)r[a]=s2(r[a],o.name,null);return this},copy:function(){var o={},t=this._;for(var r in t)o[r]=t[r].slice();return new Nm(o)},call:function(o,t){if((a=arguments.length-2)>0)for(var r=new Array(a),e=0,a,i;e<a;++e)r[e]=arguments[e+2];if(!this._.hasOwnProperty(o))throw new Error("unknown type: "+o);for(i=this._[o],e=0,a=i.length;e<a;++e)i[e].value.apply(t,r)},apply:function(o,t,r){if(!this._.hasOwnProperty(o))throw new Error("unknown type: "+o);for(var e=this._[o],a=0,i=e.length;a<i;++a)e[a].value.apply(t,r)}};function sL(o,t){for(var r=0,e=o.length,a;r<e;++r)if((a=o[r]).name===t)return a.value}function s2(o,t,r){for(var e=0,a=o.length;e<a;++e)if(o[e].name===t){o[e]=iL,o=o.slice(0,e).concat(o.slice(e+1));break}return r!=null&&o.push({name:t,value:r}),o}var qu="http://www.w3.org/1999/xhtml";const l2={svg:"http://www.w3.org/2000/svg",xhtml:qu,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Im(o){var t=o+="",r=t.indexOf(":");return r>=0&&(t=o.slice(0,r))!=="xmlns"&&(o=o.slice(r+1)),l2.hasOwnProperty(t)?{space:l2[t],local:o}:o}function lL(o){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===qu&&t.documentElement.namespaceURI===qu?t.createElement(o):t.createElementNS(r,o)}}function dL(o){return function(){return this.ownerDocument.createElementNS(o.space,o.local)}}function Uu(o){var t=Im(o);return(t.local?dL:lL)(t)}function bL(){}function Ku(o){return o==null?bL:function(){return this.querySelector(o)}}function cL(o){typeof o!="function"&&(o=Ku(o));for(var t=this._groups,r=t.length,e=new Array(r),a=0;a<r;++a)for(var i=t[a],n=i.length,s=e[a]=new Array(n),l,d,b=0;b<n;++b)(l=i[b])&&(d=o.call(l,l.__data__,b,i))&&("__data__"in l&&(d.__data__=l.__data__),s[b]=d);return new Yo(e,this._parents)}function mL(o){return o==null?[]:Array.isArray(o)?o:Array.from(o)}function pL(){return[]}function d2(o){return o==null?pL:function(){return this.querySelectorAll(o)}}function gL(o){return function(){return mL(o.apply(this,arguments))}}function fL(o){typeof o=="function"?o=gL(o):o=d2(o);for(var t=this._groups,r=t.length,e=[],a=[],i=0;i<r;++i)for(var n=t[i],s=n.length,l,d=0;d<s;++d)(l=n[d])&&(e.push(o.call(l,l.__data__,d,n)),a.push(l));return new Yo(e,a)}function b2(o){return function(){return this.matches(o)}}function c2(o){return function(t){return t.matches(o)}}var uL=Array.prototype.find;function hL(o){return function(){return uL.call(this.children,o)}}function vL(){return this.firstElementChild}function xL(o){return this.select(o==null?vL:hL(typeof o=="function"?o:c2(o)))}var wL=Array.prototype.filter;function yL(){return Array.from(this.children)}function kL(o){return function(){return wL.call(this.children,o)}}function zL(o){return this.selectAll(o==null?yL:kL(typeof o=="function"?o:c2(o)))}function _L(o){typeof o!="function"&&(o=b2(o));for(var t=this._groups,r=t.length,e=new Array(r),a=0;a<r;++a)for(var i=t[a],n=i.length,s=e[a]=[],l,d=0;d<n;++d)(l=i[d])&&o.call(l,l.__data__,d,i)&&s.push(l);return new Yo(e,this._parents)}function m2(o){return new Array(o.length)}function AL(){return new Yo(this._enter||this._groups.map(m2),this._parents)}function Bm(o,t){this.ownerDocument=o.ownerDocument,this.namespaceURI=o.namespaceURI,this._next=null,this._parent=o,this.__data__=t}Bm.prototype={constructor:Bm,appendChild:function(o){return this._parent.insertBefore(o,this._next)},insertBefore:function(o,t){return this._parent.insertBefore(o,t)},querySelector:function(o){return this._parent.querySelector(o)},querySelectorAll:function(o){return this._parent.querySelectorAll(o)}};function SL(o){return function(){return o}}function EL(o,t,r,e,a,i){for(var n=0,s,l=t.length,d=i.length;n<d;++n)(s=t[n])?(s.__data__=i[n],e[n]=s):r[n]=new Bm(o,i[n]);for(;n<l;++n)(s=t[n])&&(a[n]=s)}function CL(o,t,r,e,a,i,n){var s,l,d=new Map,b=t.length,c=i.length,m=new Array(b),p;for(s=0;s<b;++s)(l=t[s])&&(m[s]=p=n.call(l,l.__data__,s,t)+"",d.has(p)?a[s]=l:d.set(p,l));for(s=0;s<c;++s)p=n.call(o,i[s],s,i)+"",(l=d.get(p))?(e[s]=l,l.__data__=i[s],d.delete(p)):r[s]=new Bm(o,i[s]);for(s=0;s<b;++s)(l=t[s])&&d.get(m[s])===l&&(a[s]=l)}function jL(o){return o.__data__}function ML(o,t){if(!arguments.length)return Array.from(this,jL);var r=t?CL:EL,e=this._parents,a=this._groups;typeof o!="function"&&(o=SL(o));for(var i=a.length,n=new Array(i),s=new Array(i),l=new Array(i),d=0;d<i;++d){var b=e[d],c=a[d],m=c.length,p=TL(o.call(b,b&&b.__data__,d,e)),g=p.length,f=s[d]=new Array(g),u=n[d]=new Array(g),h=l[d]=new Array(m);r(b,c,f,u,h,p,t);for(var v=0,x=0,y,w;v<g;++v)if(y=f[v]){for(v>=x&&(x=v+1);!(w=u[x])&&++x<g;);y._next=w||null}}return n=new Yo(n,e),n._enter=s,n._exit=l,n}function TL(o){return typeof o=="object"&&"length"in o?o:Array.from(o)}function DL(){return new Yo(this._exit||this._groups.map(m2),this._parents)}function RL(o,t,r){var e=this.enter(),a=this,i=this.exit();return typeof o=="function"?(e=o(e),e&&(e=e.selection())):e=e.append(o+""),t!=null&&(a=t(a),a&&(a=a.selection())),r==null?i.remove():r(i),e&&a?e.merge(a).order():a}function OL(o){for(var t=o.selection?o.selection():o,r=this._groups,e=t._groups,a=r.length,i=e.length,n=Math.min(a,i),s=new Array(a),l=0;l<n;++l)for(var d=r[l],b=e[l],c=d.length,m=s[l]=new Array(c),p,g=0;g<c;++g)(p=d[g]||b[g])&&(m[g]=p);for(;l<a;++l)s[l]=r[l];return new Yo(s,this._parents)}function LL(){for(var o=this._groups,t=-1,r=o.length;++t<r;)for(var e=o[t],a=e.length-1,i=e[a],n;--a>=0;)(n=e[a])&&(i&&n.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(n,i),i=n);return this}function NL(o){o||(o=IL);function t(c,m){return c&&m?o(c.__data__,m.__data__):!c-!m}for(var r=this._groups,e=r.length,a=new Array(e),i=0;i<e;++i){for(var n=r[i],s=n.length,l=a[i]=new Array(s),d,b=0;b<s;++b)(d=n[b])&&(l[b]=d);l.sort(t)}return new Yo(a,this._parents).order()}function IL(o,t){return o<t?-1:o>t?1:o>=t?0:NaN}function BL(){var o=arguments[0];return arguments[0]=this,o.apply(null,arguments),this}function PL(){return Array.from(this)}function FL(){for(var o=this._groups,t=0,r=o.length;t<r;++t)for(var e=o[t],a=0,i=e.length;a<i;++a){var n=e[a];if(n)return n}return null}function HL(){let o=0;for(const t of this)++o;return o}function YL(){return!this.node()}function $L(o){for(var t=this._groups,r=0,e=t.length;r<e;++r)for(var a=t[r],i=0,n=a.length,s;i<n;++i)(s=a[i])&&o.call(s,s.__data__,i,a);return this}function GL(o){return function(){this.removeAttribute(o)}}function WL(o){return function(){this.removeAttributeNS(o.space,o.local)}}function VL(o,t){return function(){this.setAttribute(o,t)}}function XL(o,t){return function(){this.setAttributeNS(o.space,o.local,t)}}function qL(o,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(o):this.setAttribute(o,r)}}function UL(o,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(o.space,o.local):this.setAttributeNS(o.space,o.local,r)}}function KL(o,t){var r=Im(o);if(arguments.length<2){var e=this.node();return r.local?e.getAttributeNS(r.space,r.local):e.getAttribute(r)}return this.each((t==null?r.local?WL:GL:typeof t=="function"?r.local?UL:qL:r.local?XL:VL)(r,t))}function p2(o){return o.ownerDocument&&o.ownerDocument.defaultView||o.document&&o||o.defaultView}function ZL(o){return function(){this.style.removeProperty(o)}}function JL(o,t,r){return function(){this.style.setProperty(o,t,r)}}function QL(o,t,r){return function(){var e=t.apply(this,arguments);e==null?this.style.removeProperty(o):this.style.setProperty(o,e,r)}}function tN(o,t,r){return arguments.length>1?this.each((t==null?ZL:typeof t=="function"?QL:JL)(o,t,r??"")):js(this.node(),o)}function js(o,t){return o.style.getPropertyValue(t)||p2(o).getComputedStyle(o,null).getPropertyValue(t)}function rN(o){return function(){delete this[o]}}function oN(o,t){return function(){this[o]=t}}function eN(o,t){return function(){var r=t.apply(this,arguments);r==null?delete this[o]:this[o]=r}}function aN(o,t){return arguments.length>1?this.each((t==null?rN:typeof t=="function"?eN:oN)(o,t)):this.node()[o]}function g2(o){return o.trim().split(/^|\s+/)}function Zu(o){return o.classList||new f2(o)}function f2(o){this._node=o,this._names=g2(o.getAttribute("class")||"")}f2.prototype={add:function(o){var t=this._names.indexOf(o);t<0&&(this._names.push(o),this._node.setAttribute("class",this._names.join(" ")))},remove:function(o){var t=this._names.indexOf(o);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(o){return this._names.indexOf(o)>=0}};function u2(o,t){for(var r=Zu(o),e=-1,a=t.length;++e<a;)r.add(t[e])}function h2(o,t){for(var r=Zu(o),e=-1,a=t.length;++e<a;)r.remove(t[e])}function iN(o){return function(){u2(this,o)}}function nN(o){return function(){h2(this,o)}}function sN(o,t){return function(){(t.apply(this,arguments)?u2:h2)(this,o)}}function lN(o,t){var r=g2(o+"");if(arguments.length<2){for(var e=Zu(this.node()),a=-1,i=r.length;++a<i;)if(!e.contains(r[a]))return!1;return!0}return this.each((typeof t=="function"?sN:t?iN:nN)(r,t))}function dN(){this.textContent=""}function bN(o){return function(){this.textContent=o}}function cN(o){return function(){var t=o.apply(this,arguments);this.textContent=t??""}}function mN(o){return arguments.length?this.each(o==null?dN:(typeof o=="function"?cN:bN)(o)):this.node().textContent}function pN(){this.innerHTML=""}function gN(o){return function(){this.innerHTML=o}}function fN(o){return function(){var t=o.apply(this,arguments);this.innerHTML=t??""}}function uN(o){return arguments.length?this.each(o==null?pN:(typeof o=="function"?fN:gN)(o)):this.node().innerHTML}function hN(){this.nextSibling&&this.parentNode.appendChild(this)}function vN(){return this.each(hN)}function xN(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wN(){return this.each(xN)}function yN(o){var t=typeof o=="function"?o:Uu(o);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function kN(){return null}function zN(o,t){var r=typeof o=="function"?o:Uu(o),e=t==null?kN:typeof t=="function"?t:Ku(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),e.apply(this,arguments)||null)})}function _N(){var o=this.parentNode;o&&o.removeChild(this)}function AN(){return this.each(_N)}function SN(){var o=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(o,this.nextSibling):o}function EN(){var o=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(o,this.nextSibling):o}function CN(o){return this.select(o?EN:SN)}function jN(o){return arguments.length?this.property("__data__",o):this.node().__data__}function MN(o){return function(t){o.call(this,t,this.__data__)}}function TN(o){return o.trim().split(/^|\s+/).map(function(t){var r="",e=t.indexOf(".");return e>=0&&(r=t.slice(e+1),t=t.slice(0,e)),{type:t,name:r}})}function DN(o){return function(){var t=this.__on;if(t){for(var r=0,e=-1,a=t.length,i;r<a;++r)i=t[r],(!o.type||i.type===o.type)&&i.name===o.name?this.removeEventListener(i.type,i.listener,i.options):t[++e]=i;++e?t.length=e:delete this.__on}}}function RN(o,t,r){return function(){var e=this.__on,a,i=MN(t);if(e){for(var n=0,s=e.length;n<s;++n)if((a=e[n]).type===o.type&&a.name===o.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=i,a.options=r),a.value=t;return}}this.addEventListener(o.type,i,r),a={type:o.type,name:o.name,value:t,listener:i,options:r},e?e.push(a):this.__on=[a]}}function ON(o,t,r){var e=TN(o+""),a,i=e.length,n;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,d=s.length,b;l<d;++l)for(a=0,b=s[l];a<i;++a)if((n=e[a]).type===b.type&&n.name===b.name)return b.value}return}for(s=t?RN:DN,a=0;a<i;++a)this.each(s(e[a],t,r));return this}function v2(o,t,r){var e=p2(o),a=e.CustomEvent;typeof a=="function"?a=new a(t,r):(a=e.document.createEvent("Event"),r?(a.initEvent(t,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(t,!1,!1)),o.dispatchEvent(a)}function LN(o,t){return function(){return v2(this,o,t)}}function NN(o,t){return function(){return v2(this,o,t.apply(this,arguments))}}function IN(o,t){return this.each((typeof t=="function"?NN:LN)(o,t))}function*BN(){for(var o=this._groups,t=0,r=o.length;t<r;++t)for(var e=o[t],a=0,i=e.length,n;a<i;++a)(n=e[a])&&(yield n)}var x2=[null];function Yo(o,t){this._groups=o,this._parents=t}function Dd(){return new Yo([[document.documentElement]],x2)}function PN(){return this}Yo.prototype=Dd.prototype={constructor:Yo,select:cL,selectAll:fL,selectChild:xL,selectChildren:zL,filter:_L,data:ML,enter:AL,exit:DL,join:RL,merge:OL,selection:PN,order:LL,sort:NL,call:BL,nodes:PL,node:FL,size:HL,empty:YL,each:$L,attr:KL,style:tN,property:aN,classed:lN,text:mN,html:uN,raise:vN,lower:wN,append:yN,insert:zN,remove:AN,clone:CN,datum:jN,on:ON,dispatch:IN,[Symbol.iterator]:BN};function FN(o){return typeof o=="string"?new Yo([[document.querySelector(o)]],[document.documentElement]):new Yo([[o]],x2)}function w2(o){return FN(Uu(o).call(document.documentElement))}function Ju(o,t,r){o.prototype=t.prototype=r,r.constructor=o}function y2(o,t){var r=Object.create(o.prototype);for(var e in t)r[e]=t[e];return r}function Rd(){}var Od=.7,Pm=1/Od,Ms="\\s*([+-]?\\d+)\\s*",Ld="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ta="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",HN=/^#([0-9a-f]{3,8})$/,YN=new RegExp(`^rgb\\(${Ms},${Ms},${Ms}\\)$`),$N=new RegExp(`^rgb\\(${ta},${ta},${ta}\\)$`),GN=new RegExp(`^rgba\\(${Ms},${Ms},${Ms},${Ld}\\)$`),WN=new RegExp(`^rgba\\(${ta},${ta},${ta},${Ld}\\)$`),VN=new RegExp(`^hsl\\(${Ld},${ta},${ta}\\)$`),XN=new RegExp(`^hsla\\(${Ld},${ta},${ta},${Ld}\\)$`),k2={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};Ju(Rd,zo,{copy(o){return Object.assign(new this.constructor,this,o)},displayable(){return this.rgb().displayable()},hex:z2,formatHex:z2,formatHex8:qN,formatHsl:UN,formatRgb:_2,toString:_2});function z2(){return this.rgb().formatHex()}function qN(){return this.rgb().formatHex8()}function UN(){return j2(this).formatHsl()}function _2(){return this.rgb().formatRgb()}function zo(o){var t,r;return o=(o+"").trim().toLowerCase(),(t=HN.exec(o))?(r=t[1].length,t=parseInt(t[1],16),r===6?A2(t):r===3?new _o(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Fm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Fm(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=YN.exec(o))?new _o(t[1],t[2],t[3],1):(t=$N.exec(o))?new _o(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=GN.exec(o))?Fm(t[1],t[2],t[3],t[4]):(t=WN.exec(o))?Fm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VN.exec(o))?C2(t[1],t[2]/100,t[3]/100,1):(t=XN.exec(o))?C2(t[1],t[2]/100,t[3]/100,t[4]):k2.hasOwnProperty(o)?A2(k2[o]):o==="transparent"?new _o(NaN,NaN,NaN,0):null}function A2(o){return new _o(o>>16&255,o>>8&255,o&255,1)}function Fm(o,t,r,e){return e<=0&&(o=t=r=NaN),new _o(o,t,r,e)}function KN(o){return o instanceof Rd||(o=zo(o)),o?(o=o.rgb(),new _o(o.r,o.g,o.b,o.opacity)):new _o}function Hm(o,t,r,e){return arguments.length===1?KN(o):new _o(o,t,r,e??1)}function _o(o,t,r,e){this.r=+o,this.g=+t,this.b=+r,this.opacity=+e}Ju(_o,Hm,y2(Rd,{brighter(o){return o=o==null?Pm:Math.pow(Pm,o),new _o(this.r*o,this.g*o,this.b*o,this.opacity)},darker(o){return o=o==null?Od:Math.pow(Od,o),new _o(this.r*o,this.g*o,this.b*o,this.opacity)},rgb(){return this},clamp(){return new _o(un(this.r),un(this.g),un(this.b),Ym(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:S2,formatHex:S2,formatHex8:ZN,formatRgb:E2,toString:E2}));function S2(){return`#${hn(this.r)}${hn(this.g)}${hn(this.b)}`}function ZN(){return`#${hn(this.r)}${hn(this.g)}${hn(this.b)}${hn((isNaN(this.opacity)?1:this.opacity)*255)}`}function E2(){const o=Ym(this.opacity);return`${o===1?"rgb(":"rgba("}${un(this.r)}, ${un(this.g)}, ${un(this.b)}${o===1?")":`, ${o})`}`}function Ym(o){return isNaN(o)?1:Math.max(0,Math.min(1,o))}function un(o){return Math.max(0,Math.min(255,Math.round(o)||0))}function hn(o){return o=un(o),(o<16?"0":"")+o.toString(16)}function C2(o,t,r,e){return e<=0?o=t=r=NaN:r<=0||r>=1?o=t=NaN:t<=0&&(o=NaN),new Me(o,t,r,e)}function j2(o){if(o instanceof Me)return new Me(o.h,o.s,o.l,o.opacity);if(o instanceof Rd||(o=zo(o)),!o)return new Me;if(o instanceof Me)return o;o=o.rgb();var t=o.r/255,r=o.g/255,e=o.b/255,a=Math.min(t,r,e),i=Math.max(t,r,e),n=NaN,s=i-a,l=(i+a)/2;return s?(t===i?n=(r-e)/s+(r<e)*6:r===i?n=(e-t)/s+2:n=(t-r)/s+4,s/=l<.5?i+a:2-i-a,n*=60):s=l>0&&l<1?0:n,new Me(n,s,l,o.opacity)}function JN(o,t,r,e){return arguments.length===1?j2(o):new Me(o,t,r,e??1)}function Me(o,t,r,e){this.h=+o,this.s=+t,this.l=+r,this.opacity=+e}Ju(Me,JN,y2(Rd,{brighter(o){return o=o==null?Pm:Math.pow(Pm,o),new Me(this.h,this.s,this.l*o,this.opacity)},darker(o){return o=o==null?Od:Math.pow(Od,o),new Me(this.h,this.s,this.l*o,this.opacity)},rgb(){var o=this.h%360+(this.h<0)*360,t=isNaN(o)||isNaN(this.s)?0:this.s,r=this.l,e=r+(r<.5?r:1-r)*t,a=2*r-e;return new _o(Qu(o>=240?o-240:o+120,a,e),Qu(o,a,e),Qu(o<120?o+240:o-120,a,e),this.opacity)},clamp(){return new Me(M2(this.h),$m(this.s),$m(this.l),Ym(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 o=Ym(this.opacity);return`${o===1?"hsl(":"hsla("}${M2(this.h)}, ${$m(this.s)*100}%, ${$m(this.l)*100}%${o===1?")":`, ${o})`}`}}));function M2(o){return o=(o||0)%360,o<0?o+360:o}function $m(o){return Math.max(0,Math.min(1,o||0))}function Qu(o,t,r){return(o<60?t+(r-t)*o/60:o<180?r:o<240?t+(r-t)*(240-o)/60:t)*255}function QN(o,t,r,e,a){var i=o*o,n=i*o;return((1-3*o+3*i-n)*t+(4-6*i+3*n)*r+(1+3*o+3*i-3*n)*e+n*a)/6}function tI(o){var t=o.length-1;return function(r){var e=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),a=o[e],i=o[e+1],n=e>0?o[e-1]:2*a-i,s=e<t-1?o[e+2]:2*i-a;return QN((r-e/t)*t,n,a,i,s)}}const th=o=>()=>o;function rI(o,t){return function(r){return o+r*t}}function oI(o,t,r){return o=Math.pow(o,r),t=Math.pow(t,r)-o,r=1/r,function(e){return Math.pow(o+e*t,r)}}function eI(o){return(o=+o)==1?T2:function(t,r){return r-t?oI(t,r,o):th(isNaN(t)?r:t)}}function T2(o,t){var r=t-o;return r?rI(o,r):th(isNaN(o)?t:o)}const Gm=function o(t){var r=eI(t);function e(a,i){var n=r((a=Hm(a)).r,(i=Hm(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),d=T2(a.opacity,i.opacity);return function(b){return a.r=n(b),a.g=s(b),a.b=l(b),a.opacity=d(b),a+""}}return e.gamma=o,e}(1);function aI(o){return function(t){var r=t.length,e=new Array(r),a=new Array(r),i=new Array(r),n,s;for(n=0;n<r;++n)s=Hm(t[n]),e[n]=s.r||0,a[n]=s.g||0,i[n]=s.b||0;return e=o(e),a=o(a),i=o(i),s.opacity=1,function(l){return s.r=e(l),s.g=a(l),s.b=i(l),s+""}}}var iI=aI(tI);function nI(o,t){t||(t=[]);var r=o?Math.min(t.length,o.length):0,e=t.slice(),a;return function(i){for(a=0;a<r;++a)e[a]=o[a]*(1-i)+t[a]*i;return e}}function sI(o){return ArrayBuffer.isView(o)&&!(o instanceof DataView)}function lI(o,t){var r=t?t.length:0,e=o?Math.min(r,o.length):0,a=new Array(e),i=new Array(r),n;for(n=0;n<e;++n)a[n]=eh(o[n],t[n]);for(;n<r;++n)i[n]=t[n];return function(s){for(n=0;n<e;++n)i[n]=a[n](s);return i}}function dI(o,t){var r=new Date;return o=+o,t=+t,function(e){return r.setTime(o*(1-e)+t*e),r}}function Te(o,t){return o=+o,t=+t,function(r){return o*(1-r)+t*r}}function bI(o,t){var r={},e={},a;(o===null||typeof o!="object")&&(o={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in o?r[a]=eh(o[a],t[a]):e[a]=t[a];return function(i){for(a in r)e[a]=r[a](i);return e}}var rh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oh=new RegExp(rh.source,"g");function cI(o){return function(){return o}}function mI(o){return function(t){return o(t)+""}}function D2(o,t){var r=rh.lastIndex=oh.lastIndex=0,e,a,i,n=-1,s=[],l=[];for(o=o+"",t=t+"";(e=rh.exec(o))&&(a=oh.exec(t));)(i=a.index)>r&&(i=t.slice(r,i),s[n]?s[n]+=i:s[++n]=i),(e=e[0])===(a=a[0])?s[n]?s[n]+=a:s[++n]=a:(s[++n]=null,l.push({i:n,x:Te(e,a)})),r=oh.lastIndex;return r<t.length&&(i=t.slice(r),s[n]?s[n]+=i:s[++n]=i),s.length<2?l[0]?mI(l[0].x):cI(t):(t=l.length,function(d){for(var b=0,c;b<t;++b)s[(c=l[b]).i]=c.x(d);return s.join("")})}function eh(o,t){var r=typeof t,e;return t==null||r==="boolean"?th(t):(r==="number"?Te:r==="string"?(e=zo(t))?(t=e,Gm):D2:t instanceof zo?Gm:t instanceof Date?dI:sI(t)?nI:Array.isArray(t)?lI:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?bI:Te)(o,t)}function pI(o,t){return o=+o,t=+t,function(r){return Math.round(o*(1-r)+t*r)}}var R2=180/Math.PI,ah={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function O2(o,t,r,e,a,i){var n,s,l;return(n=Math.sqrt(o*o+t*t))&&(o/=n,t/=n),(l=o*r+t*e)&&(r-=o*l,e-=t*l),(s=Math.sqrt(r*r+e*e))&&(r/=s,e/=s,l/=s),o*e<t*r&&(o=-o,t=-t,l=-l,n=-n),{translateX:a,translateY:i,rotate:Math.atan2(t,o)*R2,skewX:Math.atan(l)*R2,scaleX:n,scaleY:s}}var Wm;function gI(o){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(o+"");return t.isIdentity?ah:O2(t.a,t.b,t.c,t.d,t.e,t.f)}function fI(o){return o==null||(Wm||(Wm=document.createElementNS("http://www.w3.org/2000/svg","g")),Wm.setAttribute("transform",o),!(o=Wm.transform.baseVal.consolidate()))?ah:(o=o.matrix,O2(o.a,o.b,o.c,o.d,o.e,o.f))}function L2(o,t,r,e){function a(d){return d.length?d.pop()+" ":""}function i(d,b,c,m,p,g){if(d!==c||b!==m){var f=p.push("translate(",null,t,null,r);g.push({i:f-4,x:Te(d,c)},{i:f-2,x:Te(b,m)})}else(c||m)&&p.push("translate("+c+t+m+r)}function n(d,b,c,m){d!==b?(d-b>180?b+=360:b-d>180&&(d+=360),m.push({i:c.push(a(c)+"rotate(",null,e)-2,x:Te(d,b)})):b&&c.push(a(c)+"rotate("+b+e)}function s(d,b,c,m){d!==b?m.push({i:c.push(a(c)+"skewX(",null,e)-2,x:Te(d,b)}):b&&c.push(a(c)+"skewX("+b+e)}function l(d,b,c,m,p,g){if(d!==c||b!==m){var f=p.push(a(p)+"scale(",null,",",null,")");g.push({i:f-4,x:Te(d,c)},{i:f-2,x:Te(b,m)})}else(c!==1||m!==1)&&p.push(a(p)+"scale("+c+","+m+")")}return function(d,b){var c=[],m=[];return d=o(d),b=o(b),i(d.translateX,d.translateY,b.translateX,b.translateY,c,m),n(d.rotate,b.rotate,c,m),s(d.skewX,b.skewX,c,m),l(d.scaleX,d.scaleY,b.scaleX,b.scaleY,c,m),d=b=null,function(p){for(var g=-1,f=m.length,u;++g<f;)c[(u=m[g]).i]=u.x(p);return c.join("")}}}var uI=L2(gI,"px, ","px)","deg)"),hI=L2(fI,", ",")",")"),Ts=0,Nd=0,Id=0,N2=1e3,Vm,Bd,Xm=0,vn=0,qm=0,Pd=typeof performance=="object"&&performance.now?performance:Date,I2=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(o){setTimeout(o,17)};function ih(){return vn||(I2(vI),vn=Pd.now()+qm)}function vI(){vn=0}function Um(){this._call=this._time=this._next=null}Um.prototype=B2.prototype={constructor:Um,restart:function(o,t,r){if(typeof o!="function")throw new TypeError("callback is not a function");r=(r==null?ih():+r)+(t==null?0:+t),!this._next&&Bd!==this&&(Bd?Bd._next=this:Vm=this,Bd=this),this._call=o,this._time=r,nh()},stop:function(){this._call&&(this._call=null,this._time=1/0,nh())}};function B2(o,t,r){var e=new Um;return e.restart(o,t,r),e}function xI(){ih(),++Ts;for(var o=Vm,t;o;)(t=vn-o._time)>=0&&o._call.call(void 0,t),o=o._next;--Ts}function P2(){vn=(Xm=Pd.now())+qm,Ts=Nd=0;try{xI()}finally{Ts=0,yI(),vn=0}}function wI(){var o=Pd.now(),t=o-Xm;t>N2&&(qm-=t,Xm=o)}function yI(){for(var o,t=Vm,r,e=1/0;t;)t._call?(e>t._time&&(e=t._time),o=t,t=t._next):(r=t._next,t._next=null,t=o?o._next=r:Vm=r);Bd=o,nh(e)}function nh(o){if(!Ts){Nd&&(Nd=clearTimeout(Nd));var t=o-vn;t>24?(o<1/0&&(Nd=setTimeout(P2,o-Pd.now()-qm)),Id&&(Id=clearInterval(Id))):(Id||(Xm=Pd.now(),Id=setInterval(wI,N2)),Ts=1,I2(P2))}}function F2(o,t,r){var e=new Um;return t=t==null?0:+t,e.restart(a=>{e.stop(),o(a+t)},t,r),e}var kI=n2("start","end","cancel","interrupt"),zI=[],H2=0,Y2=1,sh=2,Km=3,$2=4,lh=5,Zm=6;function Jm(o,t,r,e,a,i){var n=o.__transition;if(!n)o.__transition={};else if(r in n)return;_I(o,r,{name:t,index:e,group:a,on:kI,tween:zI,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:H2})}function dh(o,t){var r=De(o,t);if(r.state>H2)throw new Error("too late; already scheduled");return r}function ra(o,t){var r=De(o,t);if(r.state>Km)throw new Error("too late; already running");return r}function De(o,t){var r=o.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function _I(o,t,r){var e=o.__transition,a;e[t]=r,r.timer=B2(i,0,r.time);function i(d){r.state=Y2,r.timer.restart(n,r.delay,r.time),r.delay<=d&&n(d-r.delay)}function n(d){var b,c,m,p;if(r.state!==Y2)return l();for(b in e)if(p=e[b],p.name===r.name){if(p.state===Km)return F2(n);p.state===$2?(p.state=Zm,p.timer.stop(),p.on.call("interrupt",o,o.__data__,p.index,p.group),delete e[b]):+b<t&&(p.state=Zm,p.timer.stop(),p.on.call("cancel",o,o.__data__,p.index,p.group),delete e[b])}if(F2(function(){r.state===Km&&(r.state=$2,r.timer.restart(s,r.delay,r.time),s(d))}),r.state=sh,r.on.call("start",o,o.__data__,r.index,r.group),r.state===sh){for(r.state=Km,a=new Array(m=r.tween.length),b=0,c=-1;b<m;++b)(p=r.tween[b].value.call(o,o.__data__,r.index,r.group))&&(a[++c]=p);a.length=c+1}}function s(d){for(var b=d<r.duration?r.ease.call(null,d/r.duration):(r.timer.restart(l),r.state=lh,1),c=-1,m=a.length;++c<m;)a[c].call(o,b);r.state===lh&&(r.on.call("end",o,o.__data__,r.index,r.group),l())}function l(){r.state=Zm,r.timer.stop(),delete e[t];for(var d in e)return;delete o.__transition}}function AI(o,t){var r=o.__transition,e,a,i=!0,n;if(r){t=t==null?null:t+"";for(n in r){if((e=r[n]).name!==t){i=!1;continue}a=e.state>sh&&e.state<lh,e.state=Zm,e.timer.stop(),e.on.call(a?"interrupt":"cancel",o,o.__data__,e.index,e.group),delete r[n]}i&&delete o.__transition}}function SI(o){return this.each(function(){AI(this,o)})}function EI(o,t){var r,e;return function(){var a=ra(this,o),i=a.tween;if(i!==r){e=r=i;for(var n=0,s=e.length;n<s;++n)if(e[n].name===t){e=e.slice(),e.splice(n,1);break}}a.tween=e}}function CI(o,t,r){var e,a;if(typeof r!="function")throw new Error;return function(){var i=ra(this,o),n=i.tween;if(n!==e){a=(e=n).slice();for(var s={name:t,value:r},l=0,d=a.length;l<d;++l)if(a[l].name===t){a[l]=s;break}l===d&&a.push(s)}i.tween=a}}function jI(o,t){var r=this._id;if(o+="",arguments.length<2){for(var e=De(this.node(),r).tween,a=0,i=e.length,n;a<i;++a)if((n=e[a]).name===o)return n.value;return null}return this.each((t==null?EI:CI)(r,o,t))}function bh(o,t,r){var e=o._id;return o.each(function(){var a=ra(this,e);(a.value||(a.value={}))[t]=r.apply(this,arguments)}),function(a){return De(a,e).value[t]}}function G2(o,t){var r;return(typeof t=="number"?Te:t instanceof zo?Gm:(r=zo(t))?(t=r,Gm):D2)(o,t)}function MI(o){return function(){this.removeAttribute(o)}}function TI(o){return function(){this.removeAttributeNS(o.space,o.local)}}function DI(o,t,r){var e,a=r+"",i;return function(){var n=this.getAttribute(o);return n===a?null:n===e?i:i=t(e=n,r)}}function RI(o,t,r){var e,a=r+"",i;return function(){var n=this.getAttributeNS(o.space,o.local);return n===a?null:n===e?i:i=t(e=n,r)}}function OI(o,t,r){var e,a,i;return function(){var n,s=r(this),l;return s==null?void this.removeAttribute(o):(n=this.getAttribute(o),l=s+"",n===l?null:n===e&&l===a?i:(a=l,i=t(e=n,s)))}}function LI(o,t,r){var e,a,i;return function(){var n,s=r(this),l;return s==null?void this.removeAttributeNS(o.space,o.local):(n=this.getAttributeNS(o.space,o.local),l=s+"",n===l?null:n===e&&l===a?i:(a=l,i=t(e=n,s)))}}function NI(o,t){var r=Im(o),e=r==="transform"?hI:G2;return this.attrTween(o,typeof t=="function"?(r.local?LI:OI)(r,e,bh(this,"attr."+o,t)):t==null?(r.local?TI:MI)(r):(r.local?RI:DI)(r,e,t))}function II(o,t){return function(r){this.setAttribute(o,t.call(this,r))}}function BI(o,t){return function(r){this.setAttributeNS(o.space,o.local,t.call(this,r))}}function PI(o,t){var r,e;function a(){var i=t.apply(this,arguments);return i!==e&&(r=(e=i)&&BI(o,i)),r}return a._value=t,a}function FI(o,t){var r,e;function a(){var i=t.apply(this,arguments);return i!==e&&(r=(e=i)&&II(o,i)),r}return a._value=t,a}function HI(o,t){var r="attr."+o;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var e=Im(o);return this.tween(r,(e.local?PI:FI)(e,t))}function YI(o,t){return function(){dh(this,o).delay=+t.apply(this,arguments)}}function $I(o,t){return t=+t,function(){dh(this,o).delay=t}}function GI(o){var t=this._id;return arguments.length?this.each((typeof o=="function"?YI:$I)(t,o)):De(this.node(),t).delay}function WI(o,t){return function(){ra(this,o).duration=+t.apply(this,arguments)}}function VI(o,t){return t=+t,function(){ra(this,o).duration=t}}function XI(o){var t=this._id;return arguments.length?this.each((typeof o=="function"?WI:VI)(t,o)):De(this.node(),t).duration}function qI(o,t){if(typeof t!="function")throw new Error;return function(){ra(this,o).ease=t}}function UI(o){var t=this._id;return arguments.length?this.each(qI(t,o)):De(this.node(),t).ease}function KI(o,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;ra(this,o).ease=r}}function ZI(o){if(typeof o!="function")throw new Error;return this.each(KI(this._id,o))}function JI(o){typeof o!="function"&&(o=b2(o));for(var t=this._groups,r=t.length,e=new Array(r),a=0;a<r;++a)for(var i=t[a],n=i.length,s=e[a]=[],l,d=0;d<n;++d)(l=i[d])&&o.call(l,l.__data__,d,i)&&s.push(l);return new Ca(e,this._parents,this._name,this._id)}function QI(o){if(o._id!==this._id)throw new Error;for(var t=this._groups,r=o._groups,e=t.length,a=r.length,i=Math.min(e,a),n=new Array(e),s=0;s<i;++s)for(var l=t[s],d=r[s],b=l.length,c=n[s]=new Array(b),m,p=0;p<b;++p)(m=l[p]||d[p])&&(c[p]=m);for(;s<e;++s)n[s]=t[s];return new Ca(n,this._parents,this._name,this._id)}function tB(o){return(o+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function rB(o,t,r){var e,a,i=tB(t)?dh:ra;return function(){var n=i(this,o),s=n.on;s!==e&&(a=(e=s).copy()).on(t,r),n.on=a}}function oB(o,t){var r=this._id;return arguments.length<2?De(this.node(),r).on.on(o):this.each(rB(r,o,t))}function eB(o){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==o)return;t&&t.removeChild(this)}}function aB(){return this.on("end.remove",eB(this._id))}function iB(o){var t=this._name,r=this._id;typeof o!="function"&&(o=Ku(o));for(var e=this._groups,a=e.length,i=new Array(a),n=0;n<a;++n)for(var s=e[n],l=s.length,d=i[n]=new Array(l),b,c,m=0;m<l;++m)(b=s[m])&&(c=o.call(b,b.__data__,m,s))&&("__data__"in b&&(c.__data__=b.__data__),d[m]=c,Jm(d[m],t,r,m,d,De(b,r)));return new Ca(i,this._parents,t,r)}function nB(o){var t=this._name,r=this._id;typeof o!="function"&&(o=d2(o));for(var e=this._groups,a=e.length,i=[],n=[],s=0;s<a;++s)for(var l=e[s],d=l.length,b,c=0;c<d;++c)if(b=l[c]){for(var m=o.call(b,b.__data__,c,l),p,g=De(b,r),f=0,u=m.length;f<u;++f)(p=m[f])&&Jm(p,t,r,f,m,g);i.push(m),n.push(b)}return new Ca(i,n,t,r)}var sB=Dd.prototype.constructor;function lB(){return new sB(this._groups,this._parents)}function dB(o,t){var r,e,a;return function(){var i=js(this,o),n=(this.style.removeProperty(o),js(this,o));return i===n?null:i===r&&n===e?a:a=t(r=i,e=n)}}function W2(o){return function(){this.style.removeProperty(o)}}function bB(o,t,r){var e,a=r+"",i;return function(){var n=js(this,o);return n===a?null:n===e?i:i=t(e=n,r)}}function cB(o,t,r){var e,a,i;return function(){var n=js(this,o),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(o),js(this,o))),n===l?null:n===e&&l===a?i:(a=l,i=t(e=n,s))}}function mB(o,t){var r,e,a,i="style."+t,n="end."+i,s;return function(){var l=ra(this,o),d=l.on,b=l.value[i]==null?s||(s=W2(t)):void 0;(d!==r||a!==b)&&(e=(r=d).copy()).on(n,a=b),l.on=e}}function pB(o,t,r){var e=(o+="")=="transform"?uI:G2;return t==null?this.styleTween(o,dB(o,e)).on("end.style."+o,W2(o)):typeof t=="function"?this.styleTween(o,cB(o,e,bh(this,"style."+o,t))).each(mB(this._id,o)):this.styleTween(o,bB(o,e,t),r).on("end.style."+o,null)}function gB(o,t,r){return function(e){this.style.setProperty(o,t.call(this,e),r)}}function fB(o,t,r){var e,a;function i(){var n=t.apply(this,arguments);return n!==a&&(e=(a=n)&&gB(o,n,r)),e}return i._value=t,i}function uB(o,t,r){var e="style."+(o+="");if(arguments.length<2)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,fB(o,t,r??""))}function hB(o){return function(){this.textContent=o}}function vB(o){return function(){var t=o(this);this.textContent=t??""}}function xB(o){return this.tween("text",typeof o=="function"?vB(bh(this,"text",o)):hB(o==null?"":o+""))}function wB(o){return function(t){this.textContent=o.call(this,t)}}function yB(o){var t,r;function e(){var a=o.apply(this,arguments);return a!==r&&(t=(r=a)&&wB(a)),t}return e._value=o,e}function kB(o){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(o==null)return this.tween(t,null);if(typeof o!="function")throw new Error;return this.tween(t,yB(o))}function zB(){for(var o=this._name,t=this._id,r=V2(),e=this._groups,a=e.length,i=0;i<a;++i)for(var n=e[i],s=n.length,l,d=0;d<s;++d)if(l=n[d]){var b=De(l,t);Jm(l,o,r,d,n,{time:b.time+b.delay+b.duration,delay:0,duration:b.duration,ease:b.ease})}return new Ca(e,this._parents,o,r)}function _B(){var o,t,r=this,e=r._id,a=r.size();return new Promise(function(i,n){var s={value:n},l={value:function(){--a===0&&i()}};r.each(function(){var d=ra(this,e),b=d.on;b!==o&&(t=(o=b).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),d.on=t}),a===0&&i()})}var AB=0;function Ca(o,t,r,e){this._groups=o,this._parents=t,this._name=r,this._id=e}function V2(){return++AB}var ja=Dd.prototype;Ca.prototype={constructor:Ca,select:iB,selectAll:nB,selectChild:ja.selectChild,selectChildren:ja.selectChildren,filter:JI,merge:QI,selection:lB,transition:zB,call:ja.call,nodes:ja.nodes,node:ja.node,size:ja.size,empty:ja.empty,each:ja.each,on:oB,attr:NI,attrTween:HI,style:pB,styleTween:uB,text:xB,textTween:kB,remove:aB,tween:jI,delay:GI,duration:XI,ease:UI,easeVarying:ZI,end:_B,[Symbol.iterator]:ja[Symbol.iterator]};function SB(o){return((o*=2)<=1?o*o*o:(o-=2)*o*o+2)/2}var EB={time:null,delay:0,duration:250,ease:SB};function CB(o,t){for(var r;!(r=o.__transition)||!(r=r[t]);)if(!(o=o.parentNode))throw new Error(`transition ${t} not found`);return r}function jB(o){var t,r;o instanceof Ca?(t=o._id,o=o._name):(t=V2(),(r=EB).time=ih(),o=o==null?null:o+"");for(var e=this._groups,a=e.length,i=0;i<a;++i)for(var n=e[i],s=n.length,l,d=0;d<s;++d)(l=n[d])&&Jm(l,o,t,d,n,r||CB(l,t));return new Ca(e,this._parents,o,t)}Dd.prototype.interrupt=SI,Dd.prototype.transition=jB;var MB=Array.prototype,TB=MB.slice;function DB(o,t){return o-t}function RB(o){for(var t=0,r=o.length,e=o[r-1][1]*o[0][0]-o[r-1][0]*o[0][1];++t<r;)e+=o[t-1][1]*o[t][0]-o[t-1][0]*o[t][1];return e}const X2=o=>()=>o;function OB(o,t){for(var r=-1,e=t.length,a;++r<e;)if(a=LB(o,t[r]))return a;return 0}function LB(o,t){for(var r=t[0],e=t[1],a=-1,i=0,n=o.length,s=n-1;i<n;s=i++){var l=o[i],d=l[0],b=l[1],c=o[s],m=c[0],p=c[1];if(NB(l,c,t))return 0;b>e!=p>e&&r<(m-d)*(e-b)/(p-b)+d&&(a=-a)}return a}function NB(o,t,r){var e;return IB(o,t,r)&&BB(o[e=+(o[0]===t[0])],r[e],t[e])}function IB(o,t,r){return(t[0]-o[0])*(r[1]-o[1])===(r[0]-o[0])*(t[1]-o[1])}function BB(o,t,r){return o<=t&&t<=r||r<=t&&t<=o}function PB(){}var Ma=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function q2(){var o=1,t=1,r=KO,e=l;function a(d){var b=r(d);if(Array.isArray(b))b=b.slice().sort(DB);else{const c=GO(d,FB);for(b=t2(...UO(c[0],c[1],b),b);b[b.length-1]>=c[1];)b.pop();for(;b[1]<c[0];)b.shift()}return b.map(c=>i(d,c))}function i(d,b){const c=b==null?NaN:+b;if(isNaN(c))throw new Error(`invalid value: ${b}`);var m=[],p=[];return n(d,c,function(g){e(g,d,c),RB(g)>0?m.push([g]):p.push(g)}),p.forEach(function(g){for(var f=0,u=m.length,h;f<u;++f)if(OB((h=m[f])[0],g)!==-1){h.push(g);return}}),{type:"MultiPolygon",value:b,coordinates:m}}function n(d,b,c){var m=new Array,p=new Array,g,f,u,h,v,x;for(g=f=-1,h=xn(d[0],b),Ma[h<<1].forEach(y);++g<o-1;)u=h,h=xn(d[g+1],b),Ma[u|h<<1].forEach(y);for(Ma[h<<0].forEach(y);++f<t-1;){for(g=-1,h=xn(d[f*o+o],b),v=xn(d[f*o],b),Ma[h<<1|v<<2].forEach(y);++g<o-1;)u=h,h=xn(d[f*o+o+g+1],b),x=v,v=xn(d[f*o+g+1],b),Ma[u|h<<1|v<<2|x<<3].forEach(y);Ma[h|v<<3].forEach(y)}for(g=-1,v=d[f*o]>=b,Ma[v<<2].forEach(y);++g<o-1;)x=v,v=xn(d[f*o+g+1],b),Ma[v<<2|x<<3].forEach(y);Ma[v<<3].forEach(y);function y(w){var z=[w[0][0]+g,w[0][1]+f],k=[w[1][0]+g,w[1][1]+f],_=s(z),A=s(k),E,S;(E=p[_])?(S=m[A])?(delete p[E.end],delete m[S.start],E===S?(E.ring.push(k),c(E.ring)):m[E.start]=p[S.end]={start:E.start,end:S.end,ring:E.ring.concat(S.ring)}):(delete p[E.end],E.ring.push(k),p[E.end=A]=E):(E=m[A])?(S=p[_])?(delete m[E.start],delete p[S.end],E===S?(E.ring.push(k),c(E.ring)):m[S.start]=p[E.end]={start:S.start,end:E.end,ring:S.ring.concat(E.ring)}):(delete m[E.start],E.ring.unshift(z),m[E.start=_]=E):m[_]=p[A]={start:_,end:A,ring:[z,k]}}}function s(d){return d[0]*2+d[1]*(o+1)*4}function l(d,b,c){d.forEach(function(m){var p=m[0],g=m[1],f=p|0,u=g|0,h=ch(b[u*o+f]);p>0&&p<o&&f===p&&(m[0]=U2(p,ch(b[u*o+f-1]),h,c)),g>0&&g<t&&u===g&&(m[1]=U2(g,ch(b[(u-1)*o+f]),h,c))})}return a.contour=i,a.size=function(d){if(!arguments.length)return[o,t];var b=Math.floor(d[0]),c=Math.floor(d[1]);if(!(b>=0&&c>=0))throw new Error("invalid size");return o=b,t=c,a},a.thresholds=function(d){return arguments.length?(r=typeof d=="function"?d:Array.isArray(d)?X2(TB.call(d)):X2(d),a):r},a.smooth=function(d){return arguments.length?(e=d?l:PB,a):e===l},a}function FB(o){return isFinite(o)?o:NaN}function xn(o,t){return o==null?!1:+o>=t}function ch(o){return o==null||isNaN(o=+o)?-1/0:o}function U2(o,t,r,e){const a=e-t,i=r-t,n=isFinite(a)||isFinite(i)?a/i:Math.sign(a)/Math.sign(i);return isNaN(n)?o:o+n-.5}function HB(o){return Math.abs(o=Math.round(o))>=1e21?o.toLocaleString("en").replace(/,/g,""):o.toString(10)}function Qm(o,t){if((r=(o=t?o.toExponential(t-1):o.toExponential()).indexOf("e"))<0)return null;var r,e=o.slice(0,r);return[e.length>1?e[0]+e.slice(2):e,+o.slice(r+1)]}function Ds(o){return o=Qm(Math.abs(o)),o?o[1]:NaN}function YB(o,t){return function(r,e){for(var a=r.length,i=[],n=0,s=o[0],l=0;a>0&&s>0&&(l+s+1>e&&(s=Math.max(1,e-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>e));)s=o[n=(n+1)%o.length];return i.reverse().join(t)}}function $B(o){return function(t){return t.replace(/[0-9]/g,function(r){return o[+r]})}}var GB=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tp(o){if(!(t=GB.exec(o)))throw new Error("invalid format: "+o);var t;return new mh({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}tp.prototype=mh.prototype;function mh(o){this.fill=o.fill===void 0?" ":o.fill+"",this.align=o.align===void 0?">":o.align+"",this.sign=o.sign===void 0?"-":o.sign+"",this.symbol=o.symbol===void 0?"":o.symbol+"",this.zero=!!o.zero,this.width=o.width===void 0?void 0:+o.width,this.comma=!!o.comma,this.precision=o.precision===void 0?void 0:+o.precision,this.trim=!!o.trim,this.type=o.type===void 0?"":o.type+""}mh.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 WB(o){t:for(var t=o.length,r=1,e=-1,a;r<t;++r)switch(o[r]){case".":e=a=r;break;case"0":e===0&&(e=r),a=r;break;default:if(!+o[r])break t;e>0&&(e=0);break}return e>0?o.slice(0,e)+o.slice(a+1):o}var K2;function VB(o,t){var r=Qm(o,t);if(!r)return o+"";var e=r[0],a=r[1],i=a-(K2=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,n=e.length;return i===n?e:i>n?e+new Array(i-n+1).join("0"):i>0?e.slice(0,i)+"."+e.slice(i):"0."+new Array(1-i).join("0")+Qm(o,Math.max(0,t+i-1))[0]}function Z2(o,t){var r=Qm(o,t);if(!r)return o+"";var e=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+e:e.length>a+1?e.slice(0,a+1)+"."+e.slice(a+1):e+new Array(a-e.length+2).join("0")}const J2={"%":(o,t)=>(o*100).toFixed(t),b:o=>Math.round(o).toString(2),c:o=>o+"",d:HB,e:(o,t)=>o.toExponential(t),f:(o,t)=>o.toFixed(t),g:(o,t)=>o.toPrecision(t),o:o=>Math.round(o).toString(8),p:(o,t)=>Z2(o*100,t),r:Z2,s:VB,X:o=>Math.round(o).toString(16).toUpperCase(),x:o=>Math.round(o).toString(16)};function Q2(o){return o}var t6=Array.prototype.map,r6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function XB(o){var t=o.grouping===void 0||o.thousands===void 0?Q2:YB(t6.call(o.grouping,Number),o.thousands+""),r=o.currency===void 0?"":o.currency[0]+"",e=o.currency===void 0?"":o.currency[1]+"",a=o.decimal===void 0?".":o.decimal+"",i=o.numerals===void 0?Q2:$B(t6.call(o.numerals,String)),n=o.percent===void 0?"%":o.percent+"",s=o.minus===void 0?"−":o.minus+"",l=o.nan===void 0?"NaN":o.nan+"";function d(c){c=tp(c);var m=c.fill,p=c.align,g=c.sign,f=c.symbol,u=c.zero,h=c.width,v=c.comma,x=c.precision,y=c.trim,w=c.type;w==="n"?(v=!0,w="g"):J2[w]||(x===void 0&&(x=12),y=!0,w="g"),(u||m==="0"&&p==="=")&&(u=!0,m="0",p="=");var z=f==="$"?r:f==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",k=f==="$"?e:/[%p]/.test(w)?n:"",_=J2[w],A=/[defgprs%]/.test(w);x=x===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function E(S){var C=z,D=k,N,I,L;if(w==="c")D=_(S)+D,S="";else{S=+S;var T=S<0||1/S<0;if(S=isNaN(S)?l:_(Math.abs(S),x),y&&(S=WB(S)),T&&+S==0&&g!=="+"&&(T=!1),C=(T?g==="("?g:s:g==="-"||g==="("?"":g)+C,D=(w==="s"?r6[8+K2/3]:"")+D+(T&&g==="("?")":""),A){for(N=-1,I=S.length;++N<I;)if(L=S.charCodeAt(N),48>L||L>57){D=(L===46?a+S.slice(N+1):S.slice(N))+D,S=S.slice(0,N);break}}}v&&!u&&(S=t(S,1/0));var P=C.length+S.length+D.length,W=P<h?new Array(h-P+1).join(m):"";switch(v&&u&&(S=t(W+S,W.length?h-D.length:1/0),W=""),p){case"<":S=C+S+D+W;break;case"=":S=C+W+S+D;break;case"^":S=W.slice(0,P=W.length>>1)+C+S+D+W.slice(P);break;default:S=W+C+S+D;break}return i(S)}return E.toString=function(){return c+""},E}function b(c,m){var p=d((c=tp(c),c.type="f",c)),g=Math.max(-8,Math.min(8,Math.floor(Ds(m)/3)))*3,f=Math.pow(10,-g),u=r6[8+g/3];return function(h){return p(f*h)+u}}return{format:d,formatPrefix:b}}var rp,o6,e6;qB({thousands:",",grouping:[3],currency:["$",""]});function qB(o){return rp=XB(o),o6=rp.format,e6=rp.formatPrefix,rp}function UB(o){return Math.max(0,-Ds(Math.abs(o)))}function KB(o,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ds(t)/3)))*3-Ds(Math.abs(o)))}function ZB(o,t){return o=Math.abs(o),t=Math.abs(t)-o,Math.max(0,Ds(t)-Ds(o))+1}var Rs=1e-6,ph=Math.PI,JB=ph*2,QB=180/ph,tP=ph/180,Os=Math.abs,rP=Math.cos,oP=Math.sin,gh=Math.sqrt;function ae(){}function op(o,t){o&&i6.hasOwnProperty(o.type)&&i6[o.type](o,t)}var a6={Feature:function(o,t){op(o.geometry,t)},FeatureCollection:function(o,t){for(var r=o.features,e=-1,a=r.length;++e<a;)op(r[e].geometry,t)}},i6={Sphere:function(o,t){t.sphere()},Point:function(o,t){o=o.coordinates,t.point(o[0],o[1],o[2])},MultiPoint:function(o,t){for(var r=o.coordinates,e=-1,a=r.length;++e<a;)o=r[e],t.point(o[0],o[1],o[2])},LineString:function(o,t){fh(o.coordinates,t,0)},MultiLineString:function(o,t){for(var r=o.coordinates,e=-1,a=r.length;++e<a;)fh(r[e],t,0)},Polygon:function(o,t){n6(o.coordinates,t)},MultiPolygon:function(o,t){for(var r=o.coordinates,e=-1,a=r.length;++e<a;)n6(r[e],t)},GeometryCollection:function(o,t){for(var r=o.geometries,e=-1,a=r.length;++e<a;)op(r[e],t)}};function fh(o,t,r){var e=-1,a=o.length-r,i;for(t.lineStart();++e<a;)i=o[e],t.point(i[0],i[1],i[2]);t.lineEnd()}function n6(o,t){var r=-1,e=o.length;for(t.polygonStart();++r<e;)fh(o[r],t,1);t.polygonEnd()}function Ls(o,t){o&&a6.hasOwnProperty(o.type)?a6[o.type](o,t):op(o,t)}function eP(){var o=[],t;return{point:function(r,e,a){t.push([r,e,a])},lineStart:function(){o.push(t=[])},lineEnd:ae,rejoin:function(){o.length>1&&o.push(o.pop().concat(o.shift()))},result:function(){var r=o;return o=[],t=null,r}}}function aP(o,t){return Os(o[0]-t[0])<Rs&&Os(o[1]-t[1])<Rs}function ep(o,t,r,e){this.x=o,this.z=t,this.o=r,this.e=e,this.v=!1,this.n=this.p=null}function iP(o,t,r,e,a){var i=[],n=[],s,l;if(o.forEach(function(g){if(!((f=g.length-1)<=0)){var f,u=g[0],h=g[f],v;if(aP(u,h)){if(!u[2]&&!h[2]){for(a.lineStart(),s=0;s<f;++s)a.point((u=g[s])[0],u[1]);a.lineEnd();return}h[0]+=2*Rs}i.push(v=new ep(u,g,null,!0)),n.push(v.o=new ep(u,null,v,!1)),i.push(v=new ep(h,g,null,!1)),n.push(v.o=new ep(h,null,v,!0))}}),!!i.length){for(n.sort(t),s6(i),s6(n),s=0,l=n.length;s<l;++s)n[s].e=r=!r;for(var d=i[0],b,c;;){for(var m=d,p=!0;m.v;)if((m=m.n)===d)return;b=m.z,a.lineStart();do{if(m.v=m.o.v=!0,m.e){if(p)for(s=0,l=b.length;s<l;++s)a.point((c=b[s])[0],c[1]);else e(m.x,m.n.x,1,a);m=m.n}else{if(p)for(b=m.p.z,s=b.length-1;s>=0;--s)a.point((c=b[s])[0],c[1]);else e(m.x,m.p.x,-1,a);m=m.p}m=m.o,b=m.z,p=!p}while(!m.v);a.lineEnd()}}}function s6(o){if(t=o.length){for(var t,r=0,e=o[0],a;++r<t;)e.n=a=o[r],a.p=e,e=a;e.n=a=o[0],a.p=e}}function nP(o,t,r,e,a,i){var n=o[0],s=o[1],l=t[0],d=t[1],b=0,c=1,m=l-n,p=d-s,g;if(g=r-n,!(!m&&g>0)){if(g/=m,m<0){if(g<b)return;g<c&&(c=g)}else if(m>0){if(g>c)return;g>b&&(b=g)}if(g=a-n,!(!m&&g<0)){if(g/=m,m<0){if(g>c)return;g>b&&(b=g)}else if(m>0){if(g<b)return;g<c&&(c=g)}if(g=e-s,!(!p&&g>0)){if(g/=p,p<0){if(g<b)return;g<c&&(c=g)}else if(p>0){if(g>c)return;g>b&&(b=g)}if(g=i-s,!(!p&&g<0)){if(g/=p,p<0){if(g>c)return;g>b&&(b=g)}else if(p>0){if(g<b)return;g<c&&(c=g)}return b>0&&(o[0]=n+b*m,o[1]=s+b*p),c<1&&(t[0]=n+c*m,t[1]=s+c*p),!0}}}}}var Fd=1e9,ap=-Fd;function sP(o,t,r,e){function a(d,b){return o<=d&&d<=r&&t<=b&&b<=e}function i(d,b,c,m){var p=0,g=0;if(d==null||(p=n(d,c))!==(g=n(b,c))||l(d,b)<0^c>0)do m.point(p===0||p===3?o:r,p>1?e:t);while((p=(p+c+4)%4)!==g);else m.point(b[0],b[1])}function n(d,b){return Os(d[0]-o)<Rs?b>0?0:3:Os(d[0]-r)<Rs?b>0?2:1:Os(d[1]-t)<Rs?b>0?1:0:b>0?3:2}function s(d,b){return l(d.x,b.x)}function l(d,b){var c=n(d,1),m=n(b,1);return c!==m?c-m:c===0?b[1]-d[1]:c===1?d[0]-b[0]:c===2?d[1]-b[1]:b[0]-d[0]}return function(d){var b=d,c=eP(),m,p,g,f,u,h,v,x,y,w,z,k={point:_,lineStart:C,lineEnd:D,polygonStart:E,polygonEnd:S};function _(I,L){a(I,L)&&b.point(I,L)}function A(){for(var I=0,L=0,T=p.length;L<T;++L)for(var P=p[L],W=1,ot=P.length,et=P[0],mt,ht,dt=et[0],_t=et[1];W<ot;++W)mt=dt,ht=_t,et=P[W],dt=et[0],_t=et[1],ht<=e?_t>e&&(dt-mt)*(e-ht)>(_t-ht)*(o-mt)&&++I:_t<=e&&(dt-mt)*(e-ht)<(_t-ht)*(o-mt)&&--I;return I}function E(){b=c,m=[],p=[],z=!0}function S(){var I=A(),L=z&&I,T=(m=JO(m)).length;(L||T)&&(d.polygonStart(),L&&(d.lineStart(),i(null,null,1,d),d.lineEnd()),T&&iP(m,s,I,i,d),d.polygonEnd()),b=d,m=p=g=null}function C(){k.point=N,p&&p.push(g=[]),w=!0,y=!1,v=x=NaN}function D(){m&&(N(f,u),h&&y&&c.rejoin(),m.push(c.result())),k.point=_,y&&b.lineEnd()}function N(I,L){var T=a(I,L);if(p&&g.push([I,L]),w)f=I,u=L,h=T,w=!1,T&&(b.lineStart(),b.point(I,L));else if(T&&y)b.point(I,L);else{var P=[v=Math.max(ap,Math.min(Fd,v)),x=Math.max(ap,Math.min(Fd,x))],W=[I=Math.max(ap,Math.min(Fd,I)),L=Math.max(ap,Math.min(Fd,L))];nP(P,W,o,t,r,e)?(y||(b.lineStart(),b.point(P[0],P[1])),b.point(W[0],W[1]),T||b.lineEnd(),z=!1):T&&(b.lineStart(),b.point(I,L),z=!1)}v=I,x=L,y=T}return k}}const uh=o=>o;var hh=new Cs,vh=new Cs,l6,d6,xh,wh,Ta={point:ae,lineStart:ae,lineEnd:ae,polygonStart:function(){Ta.lineStart=lP,Ta.lineEnd=bP},polygonEnd:function(){Ta.lineStart=Ta.lineEnd=Ta.point=ae,hh.add(Os(vh)),vh=new Cs},result:function(){var o=hh/2;return hh=new Cs,o}};function lP(){Ta.point=dP}function dP(o,t){Ta.point=b6,l6=xh=o,d6=wh=t}function b6(o,t){vh.add(wh*o-xh*t),xh=o,wh=t}function bP(){b6(l6,d6)}var Ns=1/0,ip=Ns,Hd=-Ns,np=Hd,sp={point:cP,lineStart:ae,lineEnd:ae,polygonStart:ae,polygonEnd:ae,result:function(){var o=[[Ns,ip],[Hd,np]];return Hd=np=-(ip=Ns=1/0),o}};function cP(o,t){o<Ns&&(Ns=o),o>Hd&&(Hd=o),t<ip&&(ip=t),t>np&&(np=t)}var yh=0,kh=0,Yd=0,lp=0,dp=0,Is=0,zh=0,_h=0,$d=0,c6,m6,oa,ea,ie={point:wn,lineStart:p6,lineEnd:g6,polygonStart:function(){ie.lineStart=gP,ie.lineEnd=fP},polygonEnd:function(){ie.point=wn,ie.lineStart=p6,ie.lineEnd=g6},result:function(){var o=$d?[zh/$d,_h/$d]:Is?[lp/Is,dp/Is]:Yd?[yh/Yd,kh/Yd]:[NaN,NaN];return yh=kh=Yd=lp=dp=Is=zh=_h=$d=0,o}};function wn(o,t){yh+=o,kh+=t,++Yd}function p6(){ie.point=mP}function mP(o,t){ie.point=pP,wn(oa=o,ea=t)}function pP(o,t){var r=o-oa,e=t-ea,a=gh(r*r+e*e);lp+=a*(oa+o)/2,dp+=a*(ea+t)/2,Is+=a,wn(oa=o,ea=t)}function g6(){ie.point=wn}function gP(){ie.point=uP}function fP(){f6(c6,m6)}function uP(o,t){ie.point=f6,wn(c6=oa=o,m6=ea=t)}function f6(o,t){var r=o-oa,e=t-ea,a=gh(r*r+e*e);lp+=a*(oa+o)/2,dp+=a*(ea+t)/2,Is+=a,a=ea*o-oa*t,zh+=a*(oa+o),_h+=a*(ea+t),$d+=a*3,wn(oa=o,ea=t)}function u6(o){this._context=o}u6.prototype={_radius:4.5,pointRadius:function(o){return this._radius=o,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(o,t){switch(this._point){case 0:{this._context.moveTo(o,t),this._point=1;break}case 1:{this._context.lineTo(o,t);break}default:{this._context.moveTo(o+this._radius,t),this._context.arc(o,t,this._radius,0,JB);break}}},result:ae};var Ah=new Cs,Sh,h6,v6,Gd,Wd,Vd={point:ae,lineStart:function(){Vd.point=hP},lineEnd:function(){Sh&&x6(h6,v6),Vd.point=ae},polygonStart:function(){Sh=!0},polygonEnd:function(){Sh=null},result:function(){var o=+Ah;return Ah=new Cs,o}};function hP(o,t){Vd.point=x6,h6=Gd=o,v6=Wd=t}function x6(o,t){Gd-=o,Wd-=t,Ah.add(gh(Gd*Gd+Wd*Wd)),Gd=o,Wd=t}let w6,bp,y6,k6;class z6{constructor(t){this._append=t==null?_6:vP(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(t,r){switch(this._point){case 0:{this._append`M${t},${r}`,this._point=1;break}case 1:{this._append`L${t},${r}`;break}default:{if(this._append`M${t},${r}`,this._radius!==y6||this._append!==bp){const e=this._radius,a=this._;this._="",this._append`m0,${e}a${e},${e} 0 1,1 0,${-2*e}a${e},${e} 0 1,1 0,${2*e}z`,y6=e,bp=this._append,k6=this._,this._=a}this._+=k6;break}}}result(){const t=this._;return this._="",t.length?t:null}}function _6(o){let t=1;this._+=o[0];for(const r=o.length;t<r;++t)this._+=arguments[t]+o[t]}function vP(o){const t=Math.floor(o);if(!(t>=0))throw new RangeError(`invalid digits: ${o}`);if(t>15)return _6;if(t!==w6){const r=10**t;w6=t,bp=function(a){let i=1;this._+=a[0];for(const n=a.length;i<n;++i)this._+=Math.round(arguments[i]*r)/r+a[i]}}return bp}function A6(o,t){let r=3,e=4.5,a,i;function n(s){return s&&(typeof e=="function"&&i.pointRadius(+e.apply(this,arguments)),Ls(s,a(i))),i.result()}return n.area=function(s){return Ls(s,a(Ta)),Ta.result()},n.measure=function(s){return Ls(s,a(Vd)),Vd.result()},n.bounds=function(s){return Ls(s,a(sp)),sp.result()},n.centroid=function(s){return Ls(s,a(ie)),ie.result()},n.projection=function(s){return arguments.length?(a=s==null?(o=null,uh):(o=s).stream,n):o},n.context=function(s){return arguments.length?(i=s==null?(t=null,new z6(r)):new u6(t=s),typeof e!="function"&&i.pointRadius(e),n):t},n.pointRadius=function(s){return arguments.length?(e=typeof s=="function"?s:(i.pointRadius(+s),+s),n):e},n.digits=function(s){if(!arguments.length)return r;if(s==null)r=null;else{const l=Math.floor(s);if(!(l>=0))throw new RangeError(`invalid digits: ${s}`);r=l}return t===null&&(i=new z6(r)),n},n.projection(o).digits(r).context(t)}function xP(o){return function(t){var r=new Eh;for(var e in o)r[e]=o[e];return r.stream=t,r}}function Eh(){}Eh.prototype={constructor:Eh,point:function(o,t){this.stream.point(o,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Ch(o,t,r){var e=o.clipExtent&&o.clipExtent();return o.scale(150).translate([0,0]),e!=null&&o.clipExtent(null),Ls(r,o.stream(sp)),t(sp.result()),e!=null&&o.clipExtent(e),o}function S6(o,t,r){return Ch(o,function(e){var a=t[1][0]-t[0][0],i=t[1][1]-t[0][1],n=Math.min(a/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),s=+t[0][0]+(a-n*(e[1][0]+e[0][0]))/2,l=+t[0][1]+(i-n*(e[1][1]+e[0][1]))/2;o.scale(150*n).translate([s,l])},r)}function wP(o,t,r){return S6(o,[[0,0],t],r)}function yP(o,t,r){return Ch(o,function(e){var a=+t,i=a/(e[1][0]-e[0][0]),n=(a-i*(e[1][0]+e[0][0]))/2,s=-i*e[0][1];o.scale(150*i).translate([n,s])},r)}function kP(o,t,r){return Ch(o,function(e){var a=+t,i=a/(e[1][1]-e[0][1]),n=-i*e[0][0],s=(a-i*(e[1][1]+e[0][1]))/2;o.scale(150*i).translate([n,s])},r)}function E6(){var o=1,t=0,r=0,e=1,a=1,i=0,n,s,l=null,d,b,c,m=1,p=1,g=xP({point:function(y,w){var z=x([y,w]);this.stream.point(z[0],z[1])}}),f=uh,u,h;function v(){return m=o*e,p=o*a,u=h=null,x}function x(y){var w=y[0]*m,z=y[1]*p;if(i){var k=z*n-w*s;w=w*n+z*s,z=k}return[w+t,z+r]}return x.invert=function(y){var w=y[0]-t,z=y[1]-r;if(i){var k=z*n+w*s;w=w*n-z*s,z=k}return[w/m,z/p]},x.stream=function(y){return u&&h===y?u:u=g(f(h=y))},x.postclip=function(y){return arguments.length?(f=y,l=d=b=c=null,v()):f},x.clipExtent=function(y){return arguments.length?(f=y==null?(l=d=b=c=null,uh):sP(l=+y[0][0],d=+y[0][1],b=+y[1][0],c=+y[1][1]),v()):l==null?null:[[l,d],[b,c]]},x.scale=function(y){return arguments.length?(o=+y,v()):o},x.translate=function(y){return arguments.length?(t=+y[0],r=+y[1],v()):[t,r]},x.angle=function(y){return arguments.length?(i=y%360*tP,s=oP(i),n=rP(i),v()):i*QB},x.reflectX=function(y){return arguments.length?(e=y?-1:1,v()):e<0},x.reflectY=function(y){return arguments.length?(a=y?-1:1,v()):a<0},x.fitExtent=function(y,w){return S6(x,y,w)},x.fitSize=function(y,w){return wP(x,y,w)},x.fitWidth=function(y,w){return yP(x,y,w)},x.fitHeight=function(y,w){return kP(x,y,w)},x}function zP(o,t){switch(arguments.length){case 0:break;case 1:this.range(o);break;default:this.range(t).domain(o);break}return this}function _P(o){return function(){return o}}function AP(o){return+o}var C6=[0,1];function Bs(o){return o}function jh(o,t){return(t-=o=+o)?function(r){return(r-o)/t}:_P(isNaN(t)?NaN:.5)}function SP(o,t){var r;return o>t&&(r=o,o=t,t=r),function(e){return Math.max(o,Math.min(t,e))}}function EP(o,t,r){var e=o[0],a=o[1],i=t[0],n=t[1];return a<e?(e=jh(a,e),i=r(n,i)):(e=jh(e,a),i=r(i,n)),function(s){return i(e(s))}}function CP(o,t,r){var e=Math.min(o.length,t.length)-1,a=new Array(e),i=new Array(e),n=-1;for(o[e]<o[0]&&(o=o.slice().reverse(),t=t.slice().reverse());++n<e;)a[n]=jh(o[n],o[n+1]),i[n]=r(t[n],t[n+1]);return function(s){var l=YO(o,s,1,e)-1;return i[l](a[l](s))}}function jP(o,t){return t.domain(o.domain()).range(o.range()).interpolate(o.interpolate()).clamp(o.clamp()).unknown(o.unknown())}function MP(){var o=C6,t=C6,r=eh,e,a,i,n=Bs,s,l,d;function b(){var m=Math.min(o.length,t.length);return n!==Bs&&(n=SP(o[0],o[m-1])),s=m>2?CP:EP,l=d=null,c}function c(m){return m==null||isNaN(m=+m)?i:(l||(l=s(o.map(e),t,r)))(e(n(m)))}return c.invert=function(m){return n(a((d||(d=s(t,o.map(e),Te)))(m)))},c.domain=function(m){return arguments.length?(o=Array.from(m,AP),b()):o.slice()},c.range=function(m){return arguments.length?(t=Array.from(m),b()):t.slice()},c.rangeRound=function(m){return t=Array.from(m),r=pI,b()},c.clamp=function(m){return arguments.length?(n=m?!0:Bs,b()):n!==Bs},c.interpolate=function(m){return arguments.length?(r=m,b()):r},c.unknown=function(m){return arguments.length?(i=m,c):i},function(m,p){return e=m,a=p,b()}}function TP(){return MP()(Bs,Bs)}function DP(o,t,r,e){var a=qO(o,t,r),i;switch(e=tp(e??",f"),e.type){case"s":{var n=Math.max(Math.abs(o),Math.abs(t));return e.precision==null&&!isNaN(i=KB(a,n))&&(e.precision=i),e6(e,n)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(i=ZB(a,Math.max(Math.abs(o),Math.abs(t))))&&(e.precision=i-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(i=UB(a))&&(e.precision=i-(e.type==="%")*2);break}}return o6(e)}function RP(o){var t=o.domain;return o.ticks=function(r){var e=t();return t2(e[0],e[e.length-1],r??10)},o.tickFormat=function(r,e){var a=t();return DP(a[0],a[a.length-1],r??10,e)},o.nice=function(r){r==null&&(r=10);var e=t(),a=0,i=e.length-1,n=e[a],s=e[i],l,d,b=10;for(s<n&&(d=n,n=s,s=d,d=a,a=i,i=d);b-- >0;){if(d=Lm(n,s,r),d===l)return e[a]=n,e[i]=s,t(e);if(d>0)n=Math.floor(n/d)*d,s=Math.ceil(s/d)*d;else if(d<0)n=Math.ceil(n*d)/d,s=Math.floor(s*d)/d;else break;l=d}return o},o}function Xd(){var o=TP();return o.copy=function(){return jP(o,Xd())},zP.apply(o,arguments),RP(o)}function OP(o){for(var t=o.length/6|0,r=new Array(t),e=0;e<t;)r[e]="#"+o.slice(e*6,++e*6);return r}const LP=o=>iI(o[o.length-1]);var NP=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(OP);const Ao=LP(NP);function qd(o,t,r){this.k=o,this.x=t,this.y=r}qd.prototype={constructor:qd,scale:function(o){return o===1?this:new qd(this.k*o,this.x,this.y)},translate:function(o,t){return o===0&t===0?this:new qd(this.k,this.x+this.k*o,this.y+this.k*t)},apply:function(o){return[o[0]*this.k+this.x,o[1]*this.k+this.y]},applyX:function(o){return o*this.k+this.x},applyY:function(o){return o*this.k+this.y},invert:function(o){return[(o[0]-this.x)/this.k,(o[1]-this.y)/this.k]},invertX:function(o){return(o-this.x)/this.k},invertY:function(o){return(o-this.y)/this.k},rescaleX:function(o){return o.copy().domain(o.range().map(this.invertX,this).map(o.invert,o))},rescaleY:function(o){return o.copy().domain(o.range().map(this.invertY,this).map(o.invert,o))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},qd.prototype;class Mh{constructor(t,r,e,a,i,n){this.label=t,this.data=r,this.fill=e,this.pointRadius=a,this.tension=i,this.colorFunction=n}getDataSet(){return{label:this.label,data:this.data.map(t=>JSON.parse(t)),fill:this.fill,borderColor:this.colorFunction(this.label),backgroundColor:this.colorFunction(this.label),tension:this.tension,pointRadius:this.pointRadius}}}const IP=`@charset "UTF-8";/*!
56
+ `+i):e.stack=i}catch{}}throw e}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=gn(this.defaults,r);const{transitional:e,paramsSerializer:a,headers:i}=r;e!==void 0&&Tm.assertOptions(e,{silentJSONParsing:Qe.transitional(Qe.boolean),forcedJSONParsing:Qe.transitional(Qe.boolean),clarifyTimeoutError:Qe.transitional(Qe.boolean)},!1),a!=null&&(F.isFunction(a)?r.paramsSerializer={serialize:a}:Tm.assertOptions(a,{encode:Qe.function,serialize:Qe.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Tm.assertOptions(r,{baseUrl:Qe.spelling("baseURL"),withXsrfToken:Qe.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let n=i&&F.merge(i.common,i[r.method]);i&&F.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),r.headers=ko.concat(n,i);const s=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(r)===!1||(l=l&&f.synchronous,s.unshift(f.fulfilled,f.rejected))});const d=[];this.interceptors.response.forEach(function(f){d.push(f.fulfilled,f.rejected)});let b,c=0,m;if(!l){const g=[qk.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,d),m=g.length,b=Promise.resolve(r);c<m;)b=b.then(g[c++],g[c++]);return b}m=s.length;let p=r;for(c=0;c<m;){const g=s[c++],f=s[c++];try{p=g(p)}catch(u){f.call(this,u);break}}try{b=qk.call(this,p)}catch(g){return Promise.reject(g)}for(c=0,m=d.length;c<m;)b=b.then(d[c++],d[c++]);return b}getUri(t){t=gn(this.defaults,t);const r=Pk(t.baseURL,t.url,t.allowAbsoluteUrls);return Mk(r,t.params,t.paramsSerializer)}};F.forEach(["delete","get","head","options"],function(t){fn.prototype[t]=function(r,e){return this.request(gn(e||{},{method:t,url:r,data:(e||{}).data}))}}),F.forEach(["post","put","patch"],function(t){function r(e){return function(i,n,s){return this.request(gn(s||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}fn.prototype[t]=r(),fn.prototype[t+"Form"]=r(!0)});let LO=class c_{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const e=this;this.promise.then(a=>{if(!e._listeners)return;let i=e._listeners.length;for(;i-- >0;)e._listeners[i](a);e._listeners=null}),this.promise.then=a=>{let i;const n=new Promise(s=>{e.subscribe(s),i=s}).then(a);return n.cancel=function(){e.unsubscribe(i)},n},t(function(i,n,s){e.reason||(e.reason=new Es(i,n,s),r(e.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=e=>{t.abort(e)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new c_(function(a){t=a}),cancel:t}}};function NO(o){return function(r){return o.apply(null,r)}}function IO(o){return F.isObject(o)&&o.isAxiosError===!0}const Gu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Gu).forEach(([o,t])=>{Gu[t]=o});function Zk(o){const t=new fn(o),r=fk(fn.prototype.request,t);return F.extend(r,fn.prototype,t,{allOwnKeys:!0}),F.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return Zk(gn(o,a))},r}const pr=Zk(jd);pr.Axios=fn,pr.CanceledError=Es,pr.CancelToken=LO,pr.isCancel=Lk,pr.VERSION=Uk,pr.toFormData=Am,pr.AxiosError=Rt,pr.Cancel=pr.CanceledError,pr.all=function(t){return Promise.all(t)},pr.spread=NO,pr.isAxiosError=IO,pr.mergeConfig=gn,pr.AxiosHeaders=ko,pr.formToJSON=o=>Rk(F.isHTMLForm(o)?new FormData(o):o),pr.getAdapter=Xk.getAdapter,pr.HttpStatusCode=Gu,pr.default=pr;const{Axios:tQ,AxiosError:rQ,CanceledError:oQ,isCancel:eQ,CancelToken:aQ,VERSION:iQ,all:nQ,Cancel:sQ,isAxiosError:lQ,spread:dQ,toFormData:bQ,AxiosHeaders:cQ,HttpStatusCode:mQ,formToJSON:pQ,getAdapter:gQ,mergeConfig:fQ}=pr,Dm=(o,t)=>o.reduce((r,e)=>{var a;return(r[a=t(e)]||(r[a]=[])).push(e),r},{}),Jk=o=>o.reduce((t,r)=>t+r)/o.length,BO=(o,t)=>t.split(".").reduce((r,e)=>r&&r[e]!==void 0?r[e]:null,o);class eo{async getChartData(t,r,e,a,i){const n=await this.getAPI(t,"/fieldCharts",r,e,a);return n?BO(n,i):null}async getAPI(t,r,e,a,i){return pr.get(this.buildURL(t.host,r,e,i),{params:a,headers:{Authorization:"Bearer "+t.token}}).then(n=>n.data?n.data:null).catch(n=>{throw console.error(`Error response: ${n}`),console.error(`Error on communication service: ${n.message}`),new Error(n.message)})}async getFieldInfo(t,r,e,a){return await this.getAPI(t,"/fields",r,e,a)}async getWateringSchedule(t,r,e,a){return await this.getAPI(t,"/wateringSchedule",r,e,a)}async updateEvent(t,r,e,a){return pr.put(this.buildURL(t.host,"/wateringSchedule",void 0,r),{source:e.source,refStructureName:e.refStructureName,companyName:e.companyName,fieldName:e.fieldName,sectorName:e.sectorName,plantRow:e.plantRow,...a},{headers:{Authorization:"Bearer "+t.token}}).then(i=>(console.log(`Success response: ${i.data}`),i.data?i.data:null)).catch(i=>{throw console.error(`Error response: ${i}`),console.error(`Error on communication service: ${i.message}`),new Error(i.message)})}async setOptimalStateByTimestamp(t,r,e,a){return pr.put(this.buildURL(t.host,"/fields",e,r),{},{params:{timestamp:a},headers:{Authorization:"Bearer "+t.token}}).then(i=>(console.log(`Success response: ${i.data}`),i.data?i.data:null)).catch(i=>{throw console.error(`Error response: ${i}`),console.error(`Error on communication service: ${i.message}`),new Error(i.message)})}buildURL(t,r,e,a){let i="";return e&&(i="/"+e.refStructureName+"/"+e.companyName+"/"+e.fieldName+"/"+e.sectorName+"/"+e.plantRow),t+r+i+"/"+a}}function Rm(o,t){return o==null||t==null?NaN:o<t?-1:o>t?1:o>=t?0:NaN}function PO(o,t){return o==null||t==null?NaN:t<o?-1:t>o?1:t>=o?0:NaN}function Qk(o){let t,r,e;o.length!==2?(t=Rm,r=(s,l)=>Rm(o(s),l),e=(s,l)=>o(s)-l):(t=o===Rm||o===PO?o:FO,r=o,e=o);function a(s,l,d=0,b=s.length){if(d<b){if(t(l,l)!==0)return b;do{const c=d+b>>>1;r(s[c],l)<0?d=c+1:b=c}while(d<b)}return d}function i(s,l,d=0,b=s.length){if(d<b){if(t(l,l)!==0)return b;do{const c=d+b>>>1;r(s[c],l)<=0?d=c+1:b=c}while(d<b)}return d}function n(s,l,d=0,b=s.length){const c=a(s,l,d,b-1);return c>d&&e(s[c-1],l)>-e(s[c],l)?c-1:c}return{left:a,center:n,right:i}}function FO(){return 0}function HO(o){return o===null?NaN:+o}const YO=Qk(Rm).right;Qk(HO).center;function $O(o,t){let r=0;for(let e of o)e!=null&&(e=+e)>=e&&++r;return r}function GO(o,t){let r,e;if(t===void 0)for(const a of o)a!=null&&(r===void 0?a>=a&&(r=e=a):(r>a&&(r=a),e<a&&(e=a)));else{let a=-1;for(let i of o)(i=t(i,++a,o))!=null&&(r===void 0?i>=i&&(r=e=i):(r>i&&(r=i),e<i&&(e=i)))}return[r,e]}class Cs{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const r=this._partials;let e=0;for(let a=0;a<this._n&&a<32;a++){const i=r[a],n=t+i,s=Math.abs(t)<Math.abs(i)?t-(n-i):i-(n-t);s&&(r[e++]=s),t=n}return r[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let r=this._n,e,a,i,n=0;if(r>0){for(n=t[--r];r>0&&(e=n,a=t[--r],n=e+a,i=a-(n-e),!i););r>0&&(i<0&&t[r-1]<0||i>0&&t[r-1]>0)&&(a=i*2,e=n+a,a==e-n&&(n=e))}return n}}const WO=Math.sqrt(50),VO=Math.sqrt(10),XO=Math.sqrt(2);function Om(o,t,r){const e=(t-o)/Math.max(0,r),a=Math.floor(Math.log10(e)),i=e/Math.pow(10,a),n=i>=WO?10:i>=VO?5:i>=XO?2:1;let s,l,d;return a<0?(d=Math.pow(10,-a)/n,s=Math.round(o*d),l=Math.round(t*d),s/d<o&&++s,l/d>t&&--l,d=-d):(d=Math.pow(10,a)*n,s=Math.round(o/d),l=Math.round(t/d),s*d<o&&++s,l*d>t&&--l),l<s&&.5<=r&&r<2?Om(o,t,r*2):[s,l,d]}function t2(o,t,r){if(t=+t,o=+o,r=+r,!(r>0))return[];if(o===t)return[o];const e=t<o,[a,i,n]=e?Om(t,o,r):Om(o,t,r);if(!(i>=a))return[];const s=i-a+1,l=new Array(s);if(e)if(n<0)for(let d=0;d<s;++d)l[d]=(i-d)/-n;else for(let d=0;d<s;++d)l[d]=(i-d)*n;else if(n<0)for(let d=0;d<s;++d)l[d]=(a+d)/-n;else for(let d=0;d<s;++d)l[d]=(a+d)*n;return l}function Lm(o,t,r){return t=+t,o=+o,r=+r,Om(o,t,r)[2]}function qO(o,t,r){t=+t,o=+o,r=+r;const e=t<o,a=e?Lm(t,o,r):Lm(o,t,r);return(e?-1:1)*(a<0?1/-a:a)}function UO(o,t,r){let e;for(;;){const a=Lm(o,t,r);if(a===e||a===0||!isFinite(a))return[o,t];a>0?(o=Math.floor(o/a)*a,t=Math.ceil(t/a)*a):a<0&&(o=Math.ceil(o*a)/a,t=Math.floor(t*a)/a),e=a}}function KO(o){return Math.max(1,Math.ceil(Math.log($O(o))/Math.LN2)+1)}function*ZO(o){for(const t of o)yield*t}function JO(o){return Array.from(ZO(o))}function r2(o,t,r){o=+o,t=+t,r=(a=arguments.length)<2?(t=o,o=0,1):a<3?1:+r;for(var e=-1,a=Math.max(0,Math.ceil((t-o)/r))|0,i=new Array(a);++e<a;)i[e]=o+e*r;return i}function QO(o){return o}var Wu=1,Vu=2,Xu=3,Td=4,o2=1e-6;function tL(o){return"translate("+o+",0)"}function rL(o){return"translate(0,"+o+")"}function oL(o){return t=>+o(t)}function eL(o,t){return t=Math.max(0,o.bandwidth()-t*2)/2,o.round()&&(t=Math.round(t)),r=>+o(r)+t}function aL(){return!this.__axis}function e2(o,t){var r=[],e=null,a=null,i=6,n=6,s=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,d=o===Wu||o===Td?-1:1,b=o===Td||o===Vu?"x":"y",c=o===Wu||o===Xu?tL:rL;function m(p){var g=e??(t.ticks?t.ticks.apply(t,r):t.domain()),f=a??(t.tickFormat?t.tickFormat.apply(t,r):QO),u=Math.max(i,0)+s,h=t.range(),v=+h[0]+l,x=+h[h.length-1]+l,y=(t.bandwidth?eL:oL)(t.copy(),l),w=p.selection?p.selection():p,z=w.selectAll(".domain").data([null]),k=w.selectAll(".tick").data(g,t).order(),_=k.exit(),A=k.enter().append("g").attr("class","tick"),E=k.select("line"),S=k.select("text");z=z.merge(z.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(A),E=E.merge(A.append("line").attr("stroke","currentColor").attr(b+"2",d*i)),S=S.merge(A.append("text").attr("fill","currentColor").attr(b,d*u).attr("dy",o===Wu?"0em":o===Xu?"0.71em":"0.32em")),p!==w&&(z=z.transition(p),k=k.transition(p),E=E.transition(p),S=S.transition(p),_=_.transition(p).attr("opacity",o2).attr("transform",function(C){return isFinite(C=y(C))?c(C+l):this.getAttribute("transform")}),A.attr("opacity",o2).attr("transform",function(C){var D=this.parentNode.__axis;return c((D&&isFinite(D=D(C))?D:y(C))+l)})),_.remove(),z.attr("d",o===Td||o===Vu?n?"M"+d*n+","+v+"H"+l+"V"+x+"H"+d*n:"M"+l+","+v+"V"+x:n?"M"+v+","+d*n+"V"+l+"H"+x+"V"+d*n:"M"+v+","+l+"H"+x),k.attr("opacity",1).attr("transform",function(C){return c(y(C)+l)}),E.attr(b+"2",d*i),S.attr(b,d*u).text(f),w.filter(aL).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",o===Vu?"start":o===Td?"end":"middle"),w.each(function(){this.__axis=y})}return m.scale=function(p){return arguments.length?(t=p,m):t},m.ticks=function(){return r=Array.from(arguments),m},m.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),m):r.slice()},m.tickValues=function(p){return arguments.length?(e=p==null?null:Array.from(p),m):e&&e.slice()},m.tickFormat=function(p){return arguments.length?(a=p,m):a},m.tickSize=function(p){return arguments.length?(i=n=+p,m):i},m.tickSizeInner=function(p){return arguments.length?(i=+p,m):i},m.tickSizeOuter=function(p){return arguments.length?(n=+p,m):n},m.tickPadding=function(p){return arguments.length?(s=+p,m):s},m.offset=function(p){return arguments.length?(l=+p,m):l},m}function a2(o){return e2(Xu,o)}function i2(o){return e2(Td,o)}var iL={value:()=>{}};function n2(){for(var o=0,t=arguments.length,r={},e;o<t;++o){if(!(e=arguments[o]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new Nm(r)}function Nm(o){this._=o}function nL(o,t){return o.trim().split(/^|\s+/).map(function(r){var e="",a=r.indexOf(".");if(a>=0&&(e=r.slice(a+1),r=r.slice(0,a)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:e}})}Nm.prototype=n2.prototype={constructor:Nm,on:function(o,t){var r=this._,e=nL(o+"",r),a,i=-1,n=e.length;if(arguments.length<2){for(;++i<n;)if((a=(o=e[i]).type)&&(a=sL(r[a],o.name)))return a;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<n;)if(a=(o=e[i]).type)r[a]=s2(r[a],o.name,t);else if(t==null)for(a in r)r[a]=s2(r[a],o.name,null);return this},copy:function(){var o={},t=this._;for(var r in t)o[r]=t[r].slice();return new Nm(o)},call:function(o,t){if((a=arguments.length-2)>0)for(var r=new Array(a),e=0,a,i;e<a;++e)r[e]=arguments[e+2];if(!this._.hasOwnProperty(o))throw new Error("unknown type: "+o);for(i=this._[o],e=0,a=i.length;e<a;++e)i[e].value.apply(t,r)},apply:function(o,t,r){if(!this._.hasOwnProperty(o))throw new Error("unknown type: "+o);for(var e=this._[o],a=0,i=e.length;a<i;++a)e[a].value.apply(t,r)}};function sL(o,t){for(var r=0,e=o.length,a;r<e;++r)if((a=o[r]).name===t)return a.value}function s2(o,t,r){for(var e=0,a=o.length;e<a;++e)if(o[e].name===t){o[e]=iL,o=o.slice(0,e).concat(o.slice(e+1));break}return r!=null&&o.push({name:t,value:r}),o}var qu="http://www.w3.org/1999/xhtml";const l2={svg:"http://www.w3.org/2000/svg",xhtml:qu,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Im(o){var t=o+="",r=t.indexOf(":");return r>=0&&(t=o.slice(0,r))!=="xmlns"&&(o=o.slice(r+1)),l2.hasOwnProperty(t)?{space:l2[t],local:o}:o}function lL(o){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===qu&&t.documentElement.namespaceURI===qu?t.createElement(o):t.createElementNS(r,o)}}function dL(o){return function(){return this.ownerDocument.createElementNS(o.space,o.local)}}function Uu(o){var t=Im(o);return(t.local?dL:lL)(t)}function bL(){}function Ku(o){return o==null?bL:function(){return this.querySelector(o)}}function cL(o){typeof o!="function"&&(o=Ku(o));for(var t=this._groups,r=t.length,e=new Array(r),a=0;a<r;++a)for(var i=t[a],n=i.length,s=e[a]=new Array(n),l,d,b=0;b<n;++b)(l=i[b])&&(d=o.call(l,l.__data__,b,i))&&("__data__"in l&&(d.__data__=l.__data__),s[b]=d);return new Yo(e,this._parents)}function mL(o){return o==null?[]:Array.isArray(o)?o:Array.from(o)}function pL(){return[]}function d2(o){return o==null?pL:function(){return this.querySelectorAll(o)}}function gL(o){return function(){return mL(o.apply(this,arguments))}}function fL(o){typeof o=="function"?o=gL(o):o=d2(o);for(var t=this._groups,r=t.length,e=[],a=[],i=0;i<r;++i)for(var n=t[i],s=n.length,l,d=0;d<s;++d)(l=n[d])&&(e.push(o.call(l,l.__data__,d,n)),a.push(l));return new Yo(e,a)}function b2(o){return function(){return this.matches(o)}}function c2(o){return function(t){return t.matches(o)}}var uL=Array.prototype.find;function hL(o){return function(){return uL.call(this.children,o)}}function vL(){return this.firstElementChild}function xL(o){return this.select(o==null?vL:hL(typeof o=="function"?o:c2(o)))}var wL=Array.prototype.filter;function yL(){return Array.from(this.children)}function kL(o){return function(){return wL.call(this.children,o)}}function zL(o){return this.selectAll(o==null?yL:kL(typeof o=="function"?o:c2(o)))}function _L(o){typeof o!="function"&&(o=b2(o));for(var t=this._groups,r=t.length,e=new Array(r),a=0;a<r;++a)for(var i=t[a],n=i.length,s=e[a]=[],l,d=0;d<n;++d)(l=i[d])&&o.call(l,l.__data__,d,i)&&s.push(l);return new Yo(e,this._parents)}function m2(o){return new Array(o.length)}function AL(){return new Yo(this._enter||this._groups.map(m2),this._parents)}function Bm(o,t){this.ownerDocument=o.ownerDocument,this.namespaceURI=o.namespaceURI,this._next=null,this._parent=o,this.__data__=t}Bm.prototype={constructor:Bm,appendChild:function(o){return this._parent.insertBefore(o,this._next)},insertBefore:function(o,t){return this._parent.insertBefore(o,t)},querySelector:function(o){return this._parent.querySelector(o)},querySelectorAll:function(o){return this._parent.querySelectorAll(o)}};function SL(o){return function(){return o}}function EL(o,t,r,e,a,i){for(var n=0,s,l=t.length,d=i.length;n<d;++n)(s=t[n])?(s.__data__=i[n],e[n]=s):r[n]=new Bm(o,i[n]);for(;n<l;++n)(s=t[n])&&(a[n]=s)}function CL(o,t,r,e,a,i,n){var s,l,d=new Map,b=t.length,c=i.length,m=new Array(b),p;for(s=0;s<b;++s)(l=t[s])&&(m[s]=p=n.call(l,l.__data__,s,t)+"",d.has(p)?a[s]=l:d.set(p,l));for(s=0;s<c;++s)p=n.call(o,i[s],s,i)+"",(l=d.get(p))?(e[s]=l,l.__data__=i[s],d.delete(p)):r[s]=new Bm(o,i[s]);for(s=0;s<b;++s)(l=t[s])&&d.get(m[s])===l&&(a[s]=l)}function jL(o){return o.__data__}function ML(o,t){if(!arguments.length)return Array.from(this,jL);var r=t?CL:EL,e=this._parents,a=this._groups;typeof o!="function"&&(o=SL(o));for(var i=a.length,n=new Array(i),s=new Array(i),l=new Array(i),d=0;d<i;++d){var b=e[d],c=a[d],m=c.length,p=TL(o.call(b,b&&b.__data__,d,e)),g=p.length,f=s[d]=new Array(g),u=n[d]=new Array(g),h=l[d]=new Array(m);r(b,c,f,u,h,p,t);for(var v=0,x=0,y,w;v<g;++v)if(y=f[v]){for(v>=x&&(x=v+1);!(w=u[x])&&++x<g;);y._next=w||null}}return n=new Yo(n,e),n._enter=s,n._exit=l,n}function TL(o){return typeof o=="object"&&"length"in o?o:Array.from(o)}function DL(){return new Yo(this._exit||this._groups.map(m2),this._parents)}function RL(o,t,r){var e=this.enter(),a=this,i=this.exit();return typeof o=="function"?(e=o(e),e&&(e=e.selection())):e=e.append(o+""),t!=null&&(a=t(a),a&&(a=a.selection())),r==null?i.remove():r(i),e&&a?e.merge(a).order():a}function OL(o){for(var t=o.selection?o.selection():o,r=this._groups,e=t._groups,a=r.length,i=e.length,n=Math.min(a,i),s=new Array(a),l=0;l<n;++l)for(var d=r[l],b=e[l],c=d.length,m=s[l]=new Array(c),p,g=0;g<c;++g)(p=d[g]||b[g])&&(m[g]=p);for(;l<a;++l)s[l]=r[l];return new Yo(s,this._parents)}function LL(){for(var o=this._groups,t=-1,r=o.length;++t<r;)for(var e=o[t],a=e.length-1,i=e[a],n;--a>=0;)(n=e[a])&&(i&&n.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(n,i),i=n);return this}function NL(o){o||(o=IL);function t(c,m){return c&&m?o(c.__data__,m.__data__):!c-!m}for(var r=this._groups,e=r.length,a=new Array(e),i=0;i<e;++i){for(var n=r[i],s=n.length,l=a[i]=new Array(s),d,b=0;b<s;++b)(d=n[b])&&(l[b]=d);l.sort(t)}return new Yo(a,this._parents).order()}function IL(o,t){return o<t?-1:o>t?1:o>=t?0:NaN}function BL(){var o=arguments[0];return arguments[0]=this,o.apply(null,arguments),this}function PL(){return Array.from(this)}function FL(){for(var o=this._groups,t=0,r=o.length;t<r;++t)for(var e=o[t],a=0,i=e.length;a<i;++a){var n=e[a];if(n)return n}return null}function HL(){let o=0;for(const t of this)++o;return o}function YL(){return!this.node()}function $L(o){for(var t=this._groups,r=0,e=t.length;r<e;++r)for(var a=t[r],i=0,n=a.length,s;i<n;++i)(s=a[i])&&o.call(s,s.__data__,i,a);return this}function GL(o){return function(){this.removeAttribute(o)}}function WL(o){return function(){this.removeAttributeNS(o.space,o.local)}}function VL(o,t){return function(){this.setAttribute(o,t)}}function XL(o,t){return function(){this.setAttributeNS(o.space,o.local,t)}}function qL(o,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(o):this.setAttribute(o,r)}}function UL(o,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(o.space,o.local):this.setAttributeNS(o.space,o.local,r)}}function KL(o,t){var r=Im(o);if(arguments.length<2){var e=this.node();return r.local?e.getAttributeNS(r.space,r.local):e.getAttribute(r)}return this.each((t==null?r.local?WL:GL:typeof t=="function"?r.local?UL:qL:r.local?XL:VL)(r,t))}function p2(o){return o.ownerDocument&&o.ownerDocument.defaultView||o.document&&o||o.defaultView}function ZL(o){return function(){this.style.removeProperty(o)}}function JL(o,t,r){return function(){this.style.setProperty(o,t,r)}}function QL(o,t,r){return function(){var e=t.apply(this,arguments);e==null?this.style.removeProperty(o):this.style.setProperty(o,e,r)}}function tN(o,t,r){return arguments.length>1?this.each((t==null?ZL:typeof t=="function"?QL:JL)(o,t,r??"")):js(this.node(),o)}function js(o,t){return o.style.getPropertyValue(t)||p2(o).getComputedStyle(o,null).getPropertyValue(t)}function rN(o){return function(){delete this[o]}}function oN(o,t){return function(){this[o]=t}}function eN(o,t){return function(){var r=t.apply(this,arguments);r==null?delete this[o]:this[o]=r}}function aN(o,t){return arguments.length>1?this.each((t==null?rN:typeof t=="function"?eN:oN)(o,t)):this.node()[o]}function g2(o){return o.trim().split(/^|\s+/)}function Zu(o){return o.classList||new f2(o)}function f2(o){this._node=o,this._names=g2(o.getAttribute("class")||"")}f2.prototype={add:function(o){var t=this._names.indexOf(o);t<0&&(this._names.push(o),this._node.setAttribute("class",this._names.join(" ")))},remove:function(o){var t=this._names.indexOf(o);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(o){return this._names.indexOf(o)>=0}};function u2(o,t){for(var r=Zu(o),e=-1,a=t.length;++e<a;)r.add(t[e])}function h2(o,t){for(var r=Zu(o),e=-1,a=t.length;++e<a;)r.remove(t[e])}function iN(o){return function(){u2(this,o)}}function nN(o){return function(){h2(this,o)}}function sN(o,t){return function(){(t.apply(this,arguments)?u2:h2)(this,o)}}function lN(o,t){var r=g2(o+"");if(arguments.length<2){for(var e=Zu(this.node()),a=-1,i=r.length;++a<i;)if(!e.contains(r[a]))return!1;return!0}return this.each((typeof t=="function"?sN:t?iN:nN)(r,t))}function dN(){this.textContent=""}function bN(o){return function(){this.textContent=o}}function cN(o){return function(){var t=o.apply(this,arguments);this.textContent=t??""}}function mN(o){return arguments.length?this.each(o==null?dN:(typeof o=="function"?cN:bN)(o)):this.node().textContent}function pN(){this.innerHTML=""}function gN(o){return function(){this.innerHTML=o}}function fN(o){return function(){var t=o.apply(this,arguments);this.innerHTML=t??""}}function uN(o){return arguments.length?this.each(o==null?pN:(typeof o=="function"?fN:gN)(o)):this.node().innerHTML}function hN(){this.nextSibling&&this.parentNode.appendChild(this)}function vN(){return this.each(hN)}function xN(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wN(){return this.each(xN)}function yN(o){var t=typeof o=="function"?o:Uu(o);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function kN(){return null}function zN(o,t){var r=typeof o=="function"?o:Uu(o),e=t==null?kN:typeof t=="function"?t:Ku(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),e.apply(this,arguments)||null)})}function _N(){var o=this.parentNode;o&&o.removeChild(this)}function AN(){return this.each(_N)}function SN(){var o=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(o,this.nextSibling):o}function EN(){var o=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(o,this.nextSibling):o}function CN(o){return this.select(o?EN:SN)}function jN(o){return arguments.length?this.property("__data__",o):this.node().__data__}function MN(o){return function(t){o.call(this,t,this.__data__)}}function TN(o){return o.trim().split(/^|\s+/).map(function(t){var r="",e=t.indexOf(".");return e>=0&&(r=t.slice(e+1),t=t.slice(0,e)),{type:t,name:r}})}function DN(o){return function(){var t=this.__on;if(t){for(var r=0,e=-1,a=t.length,i;r<a;++r)i=t[r],(!o.type||i.type===o.type)&&i.name===o.name?this.removeEventListener(i.type,i.listener,i.options):t[++e]=i;++e?t.length=e:delete this.__on}}}function RN(o,t,r){return function(){var e=this.__on,a,i=MN(t);if(e){for(var n=0,s=e.length;n<s;++n)if((a=e[n]).type===o.type&&a.name===o.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=i,a.options=r),a.value=t;return}}this.addEventListener(o.type,i,r),a={type:o.type,name:o.name,value:t,listener:i,options:r},e?e.push(a):this.__on=[a]}}function ON(o,t,r){var e=TN(o+""),a,i=e.length,n;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,d=s.length,b;l<d;++l)for(a=0,b=s[l];a<i;++a)if((n=e[a]).type===b.type&&n.name===b.name)return b.value}return}for(s=t?RN:DN,a=0;a<i;++a)this.each(s(e[a],t,r));return this}function v2(o,t,r){var e=p2(o),a=e.CustomEvent;typeof a=="function"?a=new a(t,r):(a=e.document.createEvent("Event"),r?(a.initEvent(t,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(t,!1,!1)),o.dispatchEvent(a)}function LN(o,t){return function(){return v2(this,o,t)}}function NN(o,t){return function(){return v2(this,o,t.apply(this,arguments))}}function IN(o,t){return this.each((typeof t=="function"?NN:LN)(o,t))}function*BN(){for(var o=this._groups,t=0,r=o.length;t<r;++t)for(var e=o[t],a=0,i=e.length,n;a<i;++a)(n=e[a])&&(yield n)}var x2=[null];function Yo(o,t){this._groups=o,this._parents=t}function Dd(){return new Yo([[document.documentElement]],x2)}function PN(){return this}Yo.prototype=Dd.prototype={constructor:Yo,select:cL,selectAll:fL,selectChild:xL,selectChildren:zL,filter:_L,data:ML,enter:AL,exit:DL,join:RL,merge:OL,selection:PN,order:LL,sort:NL,call:BL,nodes:PL,node:FL,size:HL,empty:YL,each:$L,attr:KL,style:tN,property:aN,classed:lN,text:mN,html:uN,raise:vN,lower:wN,append:yN,insert:zN,remove:AN,clone:CN,datum:jN,on:ON,dispatch:IN,[Symbol.iterator]:BN};function FN(o){return typeof o=="string"?new Yo([[document.querySelector(o)]],[document.documentElement]):new Yo([[o]],x2)}function w2(o){return FN(Uu(o).call(document.documentElement))}function Ju(o,t,r){o.prototype=t.prototype=r,r.constructor=o}function y2(o,t){var r=Object.create(o.prototype);for(var e in t)r[e]=t[e];return r}function Rd(){}var Od=.7,Pm=1/Od,Ms="\\s*([+-]?\\d+)\\s*",Ld="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ta="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",HN=/^#([0-9a-f]{3,8})$/,YN=new RegExp(`^rgb\\(${Ms},${Ms},${Ms}\\)$`),$N=new RegExp(`^rgb\\(${ta},${ta},${ta}\\)$`),GN=new RegExp(`^rgba\\(${Ms},${Ms},${Ms},${Ld}\\)$`),WN=new RegExp(`^rgba\\(${ta},${ta},${ta},${Ld}\\)$`),VN=new RegExp(`^hsl\\(${Ld},${ta},${ta}\\)$`),XN=new RegExp(`^hsla\\(${Ld},${ta},${ta},${Ld}\\)$`),k2={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};Ju(Rd,zo,{copy(o){return Object.assign(new this.constructor,this,o)},displayable(){return this.rgb().displayable()},hex:z2,formatHex:z2,formatHex8:qN,formatHsl:UN,formatRgb:_2,toString:_2});function z2(){return this.rgb().formatHex()}function qN(){return this.rgb().formatHex8()}function UN(){return j2(this).formatHsl()}function _2(){return this.rgb().formatRgb()}function zo(o){var t,r;return o=(o+"").trim().toLowerCase(),(t=HN.exec(o))?(r=t[1].length,t=parseInt(t[1],16),r===6?A2(t):r===3?new _o(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Fm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Fm(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=YN.exec(o))?new _o(t[1],t[2],t[3],1):(t=$N.exec(o))?new _o(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=GN.exec(o))?Fm(t[1],t[2],t[3],t[4]):(t=WN.exec(o))?Fm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VN.exec(o))?C2(t[1],t[2]/100,t[3]/100,1):(t=XN.exec(o))?C2(t[1],t[2]/100,t[3]/100,t[4]):k2.hasOwnProperty(o)?A2(k2[o]):o==="transparent"?new _o(NaN,NaN,NaN,0):null}function A2(o){return new _o(o>>16&255,o>>8&255,o&255,1)}function Fm(o,t,r,e){return e<=0&&(o=t=r=NaN),new _o(o,t,r,e)}function KN(o){return o instanceof Rd||(o=zo(o)),o?(o=o.rgb(),new _o(o.r,o.g,o.b,o.opacity)):new _o}function Hm(o,t,r,e){return arguments.length===1?KN(o):new _o(o,t,r,e??1)}function _o(o,t,r,e){this.r=+o,this.g=+t,this.b=+r,this.opacity=+e}Ju(_o,Hm,y2(Rd,{brighter(o){return o=o==null?Pm:Math.pow(Pm,o),new _o(this.r*o,this.g*o,this.b*o,this.opacity)},darker(o){return o=o==null?Od:Math.pow(Od,o),new _o(this.r*o,this.g*o,this.b*o,this.opacity)},rgb(){return this},clamp(){return new _o(un(this.r),un(this.g),un(this.b),Ym(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:S2,formatHex:S2,formatHex8:ZN,formatRgb:E2,toString:E2}));function S2(){return`#${hn(this.r)}${hn(this.g)}${hn(this.b)}`}function ZN(){return`#${hn(this.r)}${hn(this.g)}${hn(this.b)}${hn((isNaN(this.opacity)?1:this.opacity)*255)}`}function E2(){const o=Ym(this.opacity);return`${o===1?"rgb(":"rgba("}${un(this.r)}, ${un(this.g)}, ${un(this.b)}${o===1?")":`, ${o})`}`}function Ym(o){return isNaN(o)?1:Math.max(0,Math.min(1,o))}function un(o){return Math.max(0,Math.min(255,Math.round(o)||0))}function hn(o){return o=un(o),(o<16?"0":"")+o.toString(16)}function C2(o,t,r,e){return e<=0?o=t=r=NaN:r<=0||r>=1?o=t=NaN:t<=0&&(o=NaN),new Me(o,t,r,e)}function j2(o){if(o instanceof Me)return new Me(o.h,o.s,o.l,o.opacity);if(o instanceof Rd||(o=zo(o)),!o)return new Me;if(o instanceof Me)return o;o=o.rgb();var t=o.r/255,r=o.g/255,e=o.b/255,a=Math.min(t,r,e),i=Math.max(t,r,e),n=NaN,s=i-a,l=(i+a)/2;return s?(t===i?n=(r-e)/s+(r<e)*6:r===i?n=(e-t)/s+2:n=(t-r)/s+4,s/=l<.5?i+a:2-i-a,n*=60):s=l>0&&l<1?0:n,new Me(n,s,l,o.opacity)}function JN(o,t,r,e){return arguments.length===1?j2(o):new Me(o,t,r,e??1)}function Me(o,t,r,e){this.h=+o,this.s=+t,this.l=+r,this.opacity=+e}Ju(Me,JN,y2(Rd,{brighter(o){return o=o==null?Pm:Math.pow(Pm,o),new Me(this.h,this.s,this.l*o,this.opacity)},darker(o){return o=o==null?Od:Math.pow(Od,o),new Me(this.h,this.s,this.l*o,this.opacity)},rgb(){var o=this.h%360+(this.h<0)*360,t=isNaN(o)||isNaN(this.s)?0:this.s,r=this.l,e=r+(r<.5?r:1-r)*t,a=2*r-e;return new _o(Qu(o>=240?o-240:o+120,a,e),Qu(o,a,e),Qu(o<120?o+240:o-120,a,e),this.opacity)},clamp(){return new Me(M2(this.h),$m(this.s),$m(this.l),Ym(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 o=Ym(this.opacity);return`${o===1?"hsl(":"hsla("}${M2(this.h)}, ${$m(this.s)*100}%, ${$m(this.l)*100}%${o===1?")":`, ${o})`}`}}));function M2(o){return o=(o||0)%360,o<0?o+360:o}function $m(o){return Math.max(0,Math.min(1,o||0))}function Qu(o,t,r){return(o<60?t+(r-t)*o/60:o<180?r:o<240?t+(r-t)*(240-o)/60:t)*255}function QN(o,t,r,e,a){var i=o*o,n=i*o;return((1-3*o+3*i-n)*t+(4-6*i+3*n)*r+(1+3*o+3*i-3*n)*e+n*a)/6}function tI(o){var t=o.length-1;return function(r){var e=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),a=o[e],i=o[e+1],n=e>0?o[e-1]:2*a-i,s=e<t-1?o[e+2]:2*i-a;return QN((r-e/t)*t,n,a,i,s)}}const th=o=>()=>o;function rI(o,t){return function(r){return o+r*t}}function oI(o,t,r){return o=Math.pow(o,r),t=Math.pow(t,r)-o,r=1/r,function(e){return Math.pow(o+e*t,r)}}function eI(o){return(o=+o)==1?T2:function(t,r){return r-t?oI(t,r,o):th(isNaN(t)?r:t)}}function T2(o,t){var r=t-o;return r?rI(o,r):th(isNaN(o)?t:o)}const Gm=function o(t){var r=eI(t);function e(a,i){var n=r((a=Hm(a)).r,(i=Hm(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),d=T2(a.opacity,i.opacity);return function(b){return a.r=n(b),a.g=s(b),a.b=l(b),a.opacity=d(b),a+""}}return e.gamma=o,e}(1);function aI(o){return function(t){var r=t.length,e=new Array(r),a=new Array(r),i=new Array(r),n,s;for(n=0;n<r;++n)s=Hm(t[n]),e[n]=s.r||0,a[n]=s.g||0,i[n]=s.b||0;return e=o(e),a=o(a),i=o(i),s.opacity=1,function(l){return s.r=e(l),s.g=a(l),s.b=i(l),s+""}}}var iI=aI(tI);function nI(o,t){t||(t=[]);var r=o?Math.min(t.length,o.length):0,e=t.slice(),a;return function(i){for(a=0;a<r;++a)e[a]=o[a]*(1-i)+t[a]*i;return e}}function sI(o){return ArrayBuffer.isView(o)&&!(o instanceof DataView)}function lI(o,t){var r=t?t.length:0,e=o?Math.min(r,o.length):0,a=new Array(e),i=new Array(r),n;for(n=0;n<e;++n)a[n]=eh(o[n],t[n]);for(;n<r;++n)i[n]=t[n];return function(s){for(n=0;n<e;++n)i[n]=a[n](s);return i}}function dI(o,t){var r=new Date;return o=+o,t=+t,function(e){return r.setTime(o*(1-e)+t*e),r}}function Te(o,t){return o=+o,t=+t,function(r){return o*(1-r)+t*r}}function bI(o,t){var r={},e={},a;(o===null||typeof o!="object")&&(o={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in o?r[a]=eh(o[a],t[a]):e[a]=t[a];return function(i){for(a in r)e[a]=r[a](i);return e}}var rh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oh=new RegExp(rh.source,"g");function cI(o){return function(){return o}}function mI(o){return function(t){return o(t)+""}}function D2(o,t){var r=rh.lastIndex=oh.lastIndex=0,e,a,i,n=-1,s=[],l=[];for(o=o+"",t=t+"";(e=rh.exec(o))&&(a=oh.exec(t));)(i=a.index)>r&&(i=t.slice(r,i),s[n]?s[n]+=i:s[++n]=i),(e=e[0])===(a=a[0])?s[n]?s[n]+=a:s[++n]=a:(s[++n]=null,l.push({i:n,x:Te(e,a)})),r=oh.lastIndex;return r<t.length&&(i=t.slice(r),s[n]?s[n]+=i:s[++n]=i),s.length<2?l[0]?mI(l[0].x):cI(t):(t=l.length,function(d){for(var b=0,c;b<t;++b)s[(c=l[b]).i]=c.x(d);return s.join("")})}function eh(o,t){var r=typeof t,e;return t==null||r==="boolean"?th(t):(r==="number"?Te:r==="string"?(e=zo(t))?(t=e,Gm):D2:t instanceof zo?Gm:t instanceof Date?dI:sI(t)?nI:Array.isArray(t)?lI:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?bI:Te)(o,t)}function pI(o,t){return o=+o,t=+t,function(r){return Math.round(o*(1-r)+t*r)}}var R2=180/Math.PI,ah={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function O2(o,t,r,e,a,i){var n,s,l;return(n=Math.sqrt(o*o+t*t))&&(o/=n,t/=n),(l=o*r+t*e)&&(r-=o*l,e-=t*l),(s=Math.sqrt(r*r+e*e))&&(r/=s,e/=s,l/=s),o*e<t*r&&(o=-o,t=-t,l=-l,n=-n),{translateX:a,translateY:i,rotate:Math.atan2(t,o)*R2,skewX:Math.atan(l)*R2,scaleX:n,scaleY:s}}var Wm;function gI(o){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(o+"");return t.isIdentity?ah:O2(t.a,t.b,t.c,t.d,t.e,t.f)}function fI(o){return o==null||(Wm||(Wm=document.createElementNS("http://www.w3.org/2000/svg","g")),Wm.setAttribute("transform",o),!(o=Wm.transform.baseVal.consolidate()))?ah:(o=o.matrix,O2(o.a,o.b,o.c,o.d,o.e,o.f))}function L2(o,t,r,e){function a(d){return d.length?d.pop()+" ":""}function i(d,b,c,m,p,g){if(d!==c||b!==m){var f=p.push("translate(",null,t,null,r);g.push({i:f-4,x:Te(d,c)},{i:f-2,x:Te(b,m)})}else(c||m)&&p.push("translate("+c+t+m+r)}function n(d,b,c,m){d!==b?(d-b>180?b+=360:b-d>180&&(d+=360),m.push({i:c.push(a(c)+"rotate(",null,e)-2,x:Te(d,b)})):b&&c.push(a(c)+"rotate("+b+e)}function s(d,b,c,m){d!==b?m.push({i:c.push(a(c)+"skewX(",null,e)-2,x:Te(d,b)}):b&&c.push(a(c)+"skewX("+b+e)}function l(d,b,c,m,p,g){if(d!==c||b!==m){var f=p.push(a(p)+"scale(",null,",",null,")");g.push({i:f-4,x:Te(d,c)},{i:f-2,x:Te(b,m)})}else(c!==1||m!==1)&&p.push(a(p)+"scale("+c+","+m+")")}return function(d,b){var c=[],m=[];return d=o(d),b=o(b),i(d.translateX,d.translateY,b.translateX,b.translateY,c,m),n(d.rotate,b.rotate,c,m),s(d.skewX,b.skewX,c,m),l(d.scaleX,d.scaleY,b.scaleX,b.scaleY,c,m),d=b=null,function(p){for(var g=-1,f=m.length,u;++g<f;)c[(u=m[g]).i]=u.x(p);return c.join("")}}}var uI=L2(gI,"px, ","px)","deg)"),hI=L2(fI,", ",")",")"),Ts=0,Nd=0,Id=0,N2=1e3,Vm,Bd,Xm=0,vn=0,qm=0,Pd=typeof performance=="object"&&performance.now?performance:Date,I2=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(o){setTimeout(o,17)};function ih(){return vn||(I2(vI),vn=Pd.now()+qm)}function vI(){vn=0}function Um(){this._call=this._time=this._next=null}Um.prototype=B2.prototype={constructor:Um,restart:function(o,t,r){if(typeof o!="function")throw new TypeError("callback is not a function");r=(r==null?ih():+r)+(t==null?0:+t),!this._next&&Bd!==this&&(Bd?Bd._next=this:Vm=this,Bd=this),this._call=o,this._time=r,nh()},stop:function(){this._call&&(this._call=null,this._time=1/0,nh())}};function B2(o,t,r){var e=new Um;return e.restart(o,t,r),e}function xI(){ih(),++Ts;for(var o=Vm,t;o;)(t=vn-o._time)>=0&&o._call.call(void 0,t),o=o._next;--Ts}function P2(){vn=(Xm=Pd.now())+qm,Ts=Nd=0;try{xI()}finally{Ts=0,yI(),vn=0}}function wI(){var o=Pd.now(),t=o-Xm;t>N2&&(qm-=t,Xm=o)}function yI(){for(var o,t=Vm,r,e=1/0;t;)t._call?(e>t._time&&(e=t._time),o=t,t=t._next):(r=t._next,t._next=null,t=o?o._next=r:Vm=r);Bd=o,nh(e)}function nh(o){if(!Ts){Nd&&(Nd=clearTimeout(Nd));var t=o-vn;t>24?(o<1/0&&(Nd=setTimeout(P2,o-Pd.now()-qm)),Id&&(Id=clearInterval(Id))):(Id||(Xm=Pd.now(),Id=setInterval(wI,N2)),Ts=1,I2(P2))}}function F2(o,t,r){var e=new Um;return t=t==null?0:+t,e.restart(a=>{e.stop(),o(a+t)},t,r),e}var kI=n2("start","end","cancel","interrupt"),zI=[],H2=0,Y2=1,sh=2,Km=3,$2=4,lh=5,Zm=6;function Jm(o,t,r,e,a,i){var n=o.__transition;if(!n)o.__transition={};else if(r in n)return;_I(o,r,{name:t,index:e,group:a,on:kI,tween:zI,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:H2})}function dh(o,t){var r=De(o,t);if(r.state>H2)throw new Error("too late; already scheduled");return r}function ra(o,t){var r=De(o,t);if(r.state>Km)throw new Error("too late; already running");return r}function De(o,t){var r=o.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function _I(o,t,r){var e=o.__transition,a;e[t]=r,r.timer=B2(i,0,r.time);function i(d){r.state=Y2,r.timer.restart(n,r.delay,r.time),r.delay<=d&&n(d-r.delay)}function n(d){var b,c,m,p;if(r.state!==Y2)return l();for(b in e)if(p=e[b],p.name===r.name){if(p.state===Km)return F2(n);p.state===$2?(p.state=Zm,p.timer.stop(),p.on.call("interrupt",o,o.__data__,p.index,p.group),delete e[b]):+b<t&&(p.state=Zm,p.timer.stop(),p.on.call("cancel",o,o.__data__,p.index,p.group),delete e[b])}if(F2(function(){r.state===Km&&(r.state=$2,r.timer.restart(s,r.delay,r.time),s(d))}),r.state=sh,r.on.call("start",o,o.__data__,r.index,r.group),r.state===sh){for(r.state=Km,a=new Array(m=r.tween.length),b=0,c=-1;b<m;++b)(p=r.tween[b].value.call(o,o.__data__,r.index,r.group))&&(a[++c]=p);a.length=c+1}}function s(d){for(var b=d<r.duration?r.ease.call(null,d/r.duration):(r.timer.restart(l),r.state=lh,1),c=-1,m=a.length;++c<m;)a[c].call(o,b);r.state===lh&&(r.on.call("end",o,o.__data__,r.index,r.group),l())}function l(){r.state=Zm,r.timer.stop(),delete e[t];for(var d in e)return;delete o.__transition}}function AI(o,t){var r=o.__transition,e,a,i=!0,n;if(r){t=t==null?null:t+"";for(n in r){if((e=r[n]).name!==t){i=!1;continue}a=e.state>sh&&e.state<lh,e.state=Zm,e.timer.stop(),e.on.call(a?"interrupt":"cancel",o,o.__data__,e.index,e.group),delete r[n]}i&&delete o.__transition}}function SI(o){return this.each(function(){AI(this,o)})}function EI(o,t){var r,e;return function(){var a=ra(this,o),i=a.tween;if(i!==r){e=r=i;for(var n=0,s=e.length;n<s;++n)if(e[n].name===t){e=e.slice(),e.splice(n,1);break}}a.tween=e}}function CI(o,t,r){var e,a;if(typeof r!="function")throw new Error;return function(){var i=ra(this,o),n=i.tween;if(n!==e){a=(e=n).slice();for(var s={name:t,value:r},l=0,d=a.length;l<d;++l)if(a[l].name===t){a[l]=s;break}l===d&&a.push(s)}i.tween=a}}function jI(o,t){var r=this._id;if(o+="",arguments.length<2){for(var e=De(this.node(),r).tween,a=0,i=e.length,n;a<i;++a)if((n=e[a]).name===o)return n.value;return null}return this.each((t==null?EI:CI)(r,o,t))}function bh(o,t,r){var e=o._id;return o.each(function(){var a=ra(this,e);(a.value||(a.value={}))[t]=r.apply(this,arguments)}),function(a){return De(a,e).value[t]}}function G2(o,t){var r;return(typeof t=="number"?Te:t instanceof zo?Gm:(r=zo(t))?(t=r,Gm):D2)(o,t)}function MI(o){return function(){this.removeAttribute(o)}}function TI(o){return function(){this.removeAttributeNS(o.space,o.local)}}function DI(o,t,r){var e,a=r+"",i;return function(){var n=this.getAttribute(o);return n===a?null:n===e?i:i=t(e=n,r)}}function RI(o,t,r){var e,a=r+"",i;return function(){var n=this.getAttributeNS(o.space,o.local);return n===a?null:n===e?i:i=t(e=n,r)}}function OI(o,t,r){var e,a,i;return function(){var n,s=r(this),l;return s==null?void this.removeAttribute(o):(n=this.getAttribute(o),l=s+"",n===l?null:n===e&&l===a?i:(a=l,i=t(e=n,s)))}}function LI(o,t,r){var e,a,i;return function(){var n,s=r(this),l;return s==null?void this.removeAttributeNS(o.space,o.local):(n=this.getAttributeNS(o.space,o.local),l=s+"",n===l?null:n===e&&l===a?i:(a=l,i=t(e=n,s)))}}function NI(o,t){var r=Im(o),e=r==="transform"?hI:G2;return this.attrTween(o,typeof t=="function"?(r.local?LI:OI)(r,e,bh(this,"attr."+o,t)):t==null?(r.local?TI:MI)(r):(r.local?RI:DI)(r,e,t))}function II(o,t){return function(r){this.setAttribute(o,t.call(this,r))}}function BI(o,t){return function(r){this.setAttributeNS(o.space,o.local,t.call(this,r))}}function PI(o,t){var r,e;function a(){var i=t.apply(this,arguments);return i!==e&&(r=(e=i)&&BI(o,i)),r}return a._value=t,a}function FI(o,t){var r,e;function a(){var i=t.apply(this,arguments);return i!==e&&(r=(e=i)&&II(o,i)),r}return a._value=t,a}function HI(o,t){var r="attr."+o;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var e=Im(o);return this.tween(r,(e.local?PI:FI)(e,t))}function YI(o,t){return function(){dh(this,o).delay=+t.apply(this,arguments)}}function $I(o,t){return t=+t,function(){dh(this,o).delay=t}}function GI(o){var t=this._id;return arguments.length?this.each((typeof o=="function"?YI:$I)(t,o)):De(this.node(),t).delay}function WI(o,t){return function(){ra(this,o).duration=+t.apply(this,arguments)}}function VI(o,t){return t=+t,function(){ra(this,o).duration=t}}function XI(o){var t=this._id;return arguments.length?this.each((typeof o=="function"?WI:VI)(t,o)):De(this.node(),t).duration}function qI(o,t){if(typeof t!="function")throw new Error;return function(){ra(this,o).ease=t}}function UI(o){var t=this._id;return arguments.length?this.each(qI(t,o)):De(this.node(),t).ease}function KI(o,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;ra(this,o).ease=r}}function ZI(o){if(typeof o!="function")throw new Error;return this.each(KI(this._id,o))}function JI(o){typeof o!="function"&&(o=b2(o));for(var t=this._groups,r=t.length,e=new Array(r),a=0;a<r;++a)for(var i=t[a],n=i.length,s=e[a]=[],l,d=0;d<n;++d)(l=i[d])&&o.call(l,l.__data__,d,i)&&s.push(l);return new Ca(e,this._parents,this._name,this._id)}function QI(o){if(o._id!==this._id)throw new Error;for(var t=this._groups,r=o._groups,e=t.length,a=r.length,i=Math.min(e,a),n=new Array(e),s=0;s<i;++s)for(var l=t[s],d=r[s],b=l.length,c=n[s]=new Array(b),m,p=0;p<b;++p)(m=l[p]||d[p])&&(c[p]=m);for(;s<e;++s)n[s]=t[s];return new Ca(n,this._parents,this._name,this._id)}function tB(o){return(o+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function rB(o,t,r){var e,a,i=tB(t)?dh:ra;return function(){var n=i(this,o),s=n.on;s!==e&&(a=(e=s).copy()).on(t,r),n.on=a}}function oB(o,t){var r=this._id;return arguments.length<2?De(this.node(),r).on.on(o):this.each(rB(r,o,t))}function eB(o){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==o)return;t&&t.removeChild(this)}}function aB(){return this.on("end.remove",eB(this._id))}function iB(o){var t=this._name,r=this._id;typeof o!="function"&&(o=Ku(o));for(var e=this._groups,a=e.length,i=new Array(a),n=0;n<a;++n)for(var s=e[n],l=s.length,d=i[n]=new Array(l),b,c,m=0;m<l;++m)(b=s[m])&&(c=o.call(b,b.__data__,m,s))&&("__data__"in b&&(c.__data__=b.__data__),d[m]=c,Jm(d[m],t,r,m,d,De(b,r)));return new Ca(i,this._parents,t,r)}function nB(o){var t=this._name,r=this._id;typeof o!="function"&&(o=d2(o));for(var e=this._groups,a=e.length,i=[],n=[],s=0;s<a;++s)for(var l=e[s],d=l.length,b,c=0;c<d;++c)if(b=l[c]){for(var m=o.call(b,b.__data__,c,l),p,g=De(b,r),f=0,u=m.length;f<u;++f)(p=m[f])&&Jm(p,t,r,f,m,g);i.push(m),n.push(b)}return new Ca(i,n,t,r)}var sB=Dd.prototype.constructor;function lB(){return new sB(this._groups,this._parents)}function dB(o,t){var r,e,a;return function(){var i=js(this,o),n=(this.style.removeProperty(o),js(this,o));return i===n?null:i===r&&n===e?a:a=t(r=i,e=n)}}function W2(o){return function(){this.style.removeProperty(o)}}function bB(o,t,r){var e,a=r+"",i;return function(){var n=js(this,o);return n===a?null:n===e?i:i=t(e=n,r)}}function cB(o,t,r){var e,a,i;return function(){var n=js(this,o),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(o),js(this,o))),n===l?null:n===e&&l===a?i:(a=l,i=t(e=n,s))}}function mB(o,t){var r,e,a,i="style."+t,n="end."+i,s;return function(){var l=ra(this,o),d=l.on,b=l.value[i]==null?s||(s=W2(t)):void 0;(d!==r||a!==b)&&(e=(r=d).copy()).on(n,a=b),l.on=e}}function pB(o,t,r){var e=(o+="")=="transform"?uI:G2;return t==null?this.styleTween(o,dB(o,e)).on("end.style."+o,W2(o)):typeof t=="function"?this.styleTween(o,cB(o,e,bh(this,"style."+o,t))).each(mB(this._id,o)):this.styleTween(o,bB(o,e,t),r).on("end.style."+o,null)}function gB(o,t,r){return function(e){this.style.setProperty(o,t.call(this,e),r)}}function fB(o,t,r){var e,a;function i(){var n=t.apply(this,arguments);return n!==a&&(e=(a=n)&&gB(o,n,r)),e}return i._value=t,i}function uB(o,t,r){var e="style."+(o+="");if(arguments.length<2)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,fB(o,t,r??""))}function hB(o){return function(){this.textContent=o}}function vB(o){return function(){var t=o(this);this.textContent=t??""}}function xB(o){return this.tween("text",typeof o=="function"?vB(bh(this,"text",o)):hB(o==null?"":o+""))}function wB(o){return function(t){this.textContent=o.call(this,t)}}function yB(o){var t,r;function e(){var a=o.apply(this,arguments);return a!==r&&(t=(r=a)&&wB(a)),t}return e._value=o,e}function kB(o){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(o==null)return this.tween(t,null);if(typeof o!="function")throw new Error;return this.tween(t,yB(o))}function zB(){for(var o=this._name,t=this._id,r=V2(),e=this._groups,a=e.length,i=0;i<a;++i)for(var n=e[i],s=n.length,l,d=0;d<s;++d)if(l=n[d]){var b=De(l,t);Jm(l,o,r,d,n,{time:b.time+b.delay+b.duration,delay:0,duration:b.duration,ease:b.ease})}return new Ca(e,this._parents,o,r)}function _B(){var o,t,r=this,e=r._id,a=r.size();return new Promise(function(i,n){var s={value:n},l={value:function(){--a===0&&i()}};r.each(function(){var d=ra(this,e),b=d.on;b!==o&&(t=(o=b).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),d.on=t}),a===0&&i()})}var AB=0;function Ca(o,t,r,e){this._groups=o,this._parents=t,this._name=r,this._id=e}function V2(){return++AB}var ja=Dd.prototype;Ca.prototype={constructor:Ca,select:iB,selectAll:nB,selectChild:ja.selectChild,selectChildren:ja.selectChildren,filter:JI,merge:QI,selection:lB,transition:zB,call:ja.call,nodes:ja.nodes,node:ja.node,size:ja.size,empty:ja.empty,each:ja.each,on:oB,attr:NI,attrTween:HI,style:pB,styleTween:uB,text:xB,textTween:kB,remove:aB,tween:jI,delay:GI,duration:XI,ease:UI,easeVarying:ZI,end:_B,[Symbol.iterator]:ja[Symbol.iterator]};function SB(o){return((o*=2)<=1?o*o*o:(o-=2)*o*o+2)/2}var EB={time:null,delay:0,duration:250,ease:SB};function CB(o,t){for(var r;!(r=o.__transition)||!(r=r[t]);)if(!(o=o.parentNode))throw new Error(`transition ${t} not found`);return r}function jB(o){var t,r;o instanceof Ca?(t=o._id,o=o._name):(t=V2(),(r=EB).time=ih(),o=o==null?null:o+"");for(var e=this._groups,a=e.length,i=0;i<a;++i)for(var n=e[i],s=n.length,l,d=0;d<s;++d)(l=n[d])&&Jm(l,o,t,d,n,r||CB(l,t));return new Ca(e,this._parents,o,t)}Dd.prototype.interrupt=SI,Dd.prototype.transition=jB;var MB=Array.prototype,TB=MB.slice;function DB(o,t){return o-t}function RB(o){for(var t=0,r=o.length,e=o[r-1][1]*o[0][0]-o[r-1][0]*o[0][1];++t<r;)e+=o[t-1][1]*o[t][0]-o[t-1][0]*o[t][1];return e}const X2=o=>()=>o;function OB(o,t){for(var r=-1,e=t.length,a;++r<e;)if(a=LB(o,t[r]))return a;return 0}function LB(o,t){for(var r=t[0],e=t[1],a=-1,i=0,n=o.length,s=n-1;i<n;s=i++){var l=o[i],d=l[0],b=l[1],c=o[s],m=c[0],p=c[1];if(NB(l,c,t))return 0;b>e!=p>e&&r<(m-d)*(e-b)/(p-b)+d&&(a=-a)}return a}function NB(o,t,r){var e;return IB(o,t,r)&&BB(o[e=+(o[0]===t[0])],r[e],t[e])}function IB(o,t,r){return(t[0]-o[0])*(r[1]-o[1])===(r[0]-o[0])*(t[1]-o[1])}function BB(o,t,r){return o<=t&&t<=r||r<=t&&t<=o}function PB(){}var Ma=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function q2(){var o=1,t=1,r=KO,e=l;function a(d){var b=r(d);if(Array.isArray(b))b=b.slice().sort(DB);else{const c=GO(d,FB);for(b=t2(...UO(c[0],c[1],b),b);b[b.length-1]>=c[1];)b.pop();for(;b[1]<c[0];)b.shift()}return b.map(c=>i(d,c))}function i(d,b){const c=b==null?NaN:+b;if(isNaN(c))throw new Error(`invalid value: ${b}`);var m=[],p=[];return n(d,c,function(g){e(g,d,c),RB(g)>0?m.push([g]):p.push(g)}),p.forEach(function(g){for(var f=0,u=m.length,h;f<u;++f)if(OB((h=m[f])[0],g)!==-1){h.push(g);return}}),{type:"MultiPolygon",value:b,coordinates:m}}function n(d,b,c){var m=new Array,p=new Array,g,f,u,h,v,x;for(g=f=-1,h=xn(d[0],b),Ma[h<<1].forEach(y);++g<o-1;)u=h,h=xn(d[g+1],b),Ma[u|h<<1].forEach(y);for(Ma[h<<0].forEach(y);++f<t-1;){for(g=-1,h=xn(d[f*o+o],b),v=xn(d[f*o],b),Ma[h<<1|v<<2].forEach(y);++g<o-1;)u=h,h=xn(d[f*o+o+g+1],b),x=v,v=xn(d[f*o+g+1],b),Ma[u|h<<1|v<<2|x<<3].forEach(y);Ma[h|v<<3].forEach(y)}for(g=-1,v=d[f*o]>=b,Ma[v<<2].forEach(y);++g<o-1;)x=v,v=xn(d[f*o+g+1],b),Ma[v<<2|x<<3].forEach(y);Ma[v<<3].forEach(y);function y(w){var z=[w[0][0]+g,w[0][1]+f],k=[w[1][0]+g,w[1][1]+f],_=s(z),A=s(k),E,S;(E=p[_])?(S=m[A])?(delete p[E.end],delete m[S.start],E===S?(E.ring.push(k),c(E.ring)):m[E.start]=p[S.end]={start:E.start,end:S.end,ring:E.ring.concat(S.ring)}):(delete p[E.end],E.ring.push(k),p[E.end=A]=E):(E=m[A])?(S=p[_])?(delete m[E.start],delete p[S.end],E===S?(E.ring.push(k),c(E.ring)):m[S.start]=p[E.end]={start:S.start,end:E.end,ring:S.ring.concat(E.ring)}):(delete m[E.start],E.ring.unshift(z),m[E.start=_]=E):m[_]=p[A]={start:_,end:A,ring:[z,k]}}}function s(d){return d[0]*2+d[1]*(o+1)*4}function l(d,b,c){d.forEach(function(m){var p=m[0],g=m[1],f=p|0,u=g|0,h=ch(b[u*o+f]);p>0&&p<o&&f===p&&(m[0]=U2(p,ch(b[u*o+f-1]),h,c)),g>0&&g<t&&u===g&&(m[1]=U2(g,ch(b[(u-1)*o+f]),h,c))})}return a.contour=i,a.size=function(d){if(!arguments.length)return[o,t];var b=Math.floor(d[0]),c=Math.floor(d[1]);if(!(b>=0&&c>=0))throw new Error("invalid size");return o=b,t=c,a},a.thresholds=function(d){return arguments.length?(r=typeof d=="function"?d:Array.isArray(d)?X2(TB.call(d)):X2(d),a):r},a.smooth=function(d){return arguments.length?(e=d?l:PB,a):e===l},a}function FB(o){return isFinite(o)?o:NaN}function xn(o,t){return o==null?!1:+o>=t}function ch(o){return o==null||isNaN(o=+o)?-1/0:o}function U2(o,t,r,e){const a=e-t,i=r-t,n=isFinite(a)||isFinite(i)?a/i:Math.sign(a)/Math.sign(i);return isNaN(n)?o:o+n-.5}function HB(o){return Math.abs(o=Math.round(o))>=1e21?o.toLocaleString("en").replace(/,/g,""):o.toString(10)}function Qm(o,t){if((r=(o=t?o.toExponential(t-1):o.toExponential()).indexOf("e"))<0)return null;var r,e=o.slice(0,r);return[e.length>1?e[0]+e.slice(2):e,+o.slice(r+1)]}function Ds(o){return o=Qm(Math.abs(o)),o?o[1]:NaN}function YB(o,t){return function(r,e){for(var a=r.length,i=[],n=0,s=o[0],l=0;a>0&&s>0&&(l+s+1>e&&(s=Math.max(1,e-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>e));)s=o[n=(n+1)%o.length];return i.reverse().join(t)}}function $B(o){return function(t){return t.replace(/[0-9]/g,function(r){return o[+r]})}}var GB=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tp(o){if(!(t=GB.exec(o)))throw new Error("invalid format: "+o);var t;return new mh({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}tp.prototype=mh.prototype;function mh(o){this.fill=o.fill===void 0?" ":o.fill+"",this.align=o.align===void 0?">":o.align+"",this.sign=o.sign===void 0?"-":o.sign+"",this.symbol=o.symbol===void 0?"":o.symbol+"",this.zero=!!o.zero,this.width=o.width===void 0?void 0:+o.width,this.comma=!!o.comma,this.precision=o.precision===void 0?void 0:+o.precision,this.trim=!!o.trim,this.type=o.type===void 0?"":o.type+""}mh.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 WB(o){t:for(var t=o.length,r=1,e=-1,a;r<t;++r)switch(o[r]){case".":e=a=r;break;case"0":e===0&&(e=r),a=r;break;default:if(!+o[r])break t;e>0&&(e=0);break}return e>0?o.slice(0,e)+o.slice(a+1):o}var K2;function VB(o,t){var r=Qm(o,t);if(!r)return o+"";var e=r[0],a=r[1],i=a-(K2=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,n=e.length;return i===n?e:i>n?e+new Array(i-n+1).join("0"):i>0?e.slice(0,i)+"."+e.slice(i):"0."+new Array(1-i).join("0")+Qm(o,Math.max(0,t+i-1))[0]}function Z2(o,t){var r=Qm(o,t);if(!r)return o+"";var e=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+e:e.length>a+1?e.slice(0,a+1)+"."+e.slice(a+1):e+new Array(a-e.length+2).join("0")}const J2={"%":(o,t)=>(o*100).toFixed(t),b:o=>Math.round(o).toString(2),c:o=>o+"",d:HB,e:(o,t)=>o.toExponential(t),f:(o,t)=>o.toFixed(t),g:(o,t)=>o.toPrecision(t),o:o=>Math.round(o).toString(8),p:(o,t)=>Z2(o*100,t),r:Z2,s:VB,X:o=>Math.round(o).toString(16).toUpperCase(),x:o=>Math.round(o).toString(16)};function Q2(o){return o}var t6=Array.prototype.map,r6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function XB(o){var t=o.grouping===void 0||o.thousands===void 0?Q2:YB(t6.call(o.grouping,Number),o.thousands+""),r=o.currency===void 0?"":o.currency[0]+"",e=o.currency===void 0?"":o.currency[1]+"",a=o.decimal===void 0?".":o.decimal+"",i=o.numerals===void 0?Q2:$B(t6.call(o.numerals,String)),n=o.percent===void 0?"%":o.percent+"",s=o.minus===void 0?"−":o.minus+"",l=o.nan===void 0?"NaN":o.nan+"";function d(c){c=tp(c);var m=c.fill,p=c.align,g=c.sign,f=c.symbol,u=c.zero,h=c.width,v=c.comma,x=c.precision,y=c.trim,w=c.type;w==="n"?(v=!0,w="g"):J2[w]||(x===void 0&&(x=12),y=!0,w="g"),(u||m==="0"&&p==="=")&&(u=!0,m="0",p="=");var z=f==="$"?r:f==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",k=f==="$"?e:/[%p]/.test(w)?n:"",_=J2[w],A=/[defgprs%]/.test(w);x=x===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function E(S){var C=z,D=k,N,I,L;if(w==="c")D=_(S)+D,S="";else{S=+S;var T=S<0||1/S<0;if(S=isNaN(S)?l:_(Math.abs(S),x),y&&(S=WB(S)),T&&+S==0&&g!=="+"&&(T=!1),C=(T?g==="("?g:s:g==="-"||g==="("?"":g)+C,D=(w==="s"?r6[8+K2/3]:"")+D+(T&&g==="("?")":""),A){for(N=-1,I=S.length;++N<I;)if(L=S.charCodeAt(N),48>L||L>57){D=(L===46?a+S.slice(N+1):S.slice(N))+D,S=S.slice(0,N);break}}}v&&!u&&(S=t(S,1/0));var P=C.length+S.length+D.length,W=P<h?new Array(h-P+1).join(m):"";switch(v&&u&&(S=t(W+S,W.length?h-D.length:1/0),W=""),p){case"<":S=C+S+D+W;break;case"=":S=C+W+S+D;break;case"^":S=W.slice(0,P=W.length>>1)+C+S+D+W.slice(P);break;default:S=W+C+S+D;break}return i(S)}return E.toString=function(){return c+""},E}function b(c,m){var p=d((c=tp(c),c.type="f",c)),g=Math.max(-8,Math.min(8,Math.floor(Ds(m)/3)))*3,f=Math.pow(10,-g),u=r6[8+g/3];return function(h){return p(f*h)+u}}return{format:d,formatPrefix:b}}var rp,o6,e6;qB({thousands:",",grouping:[3],currency:["$",""]});function qB(o){return rp=XB(o),o6=rp.format,e6=rp.formatPrefix,rp}function UB(o){return Math.max(0,-Ds(Math.abs(o)))}function KB(o,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ds(t)/3)))*3-Ds(Math.abs(o)))}function ZB(o,t){return o=Math.abs(o),t=Math.abs(t)-o,Math.max(0,Ds(t)-Ds(o))+1}var Rs=1e-6,ph=Math.PI,JB=ph*2,QB=180/ph,tP=ph/180,Os=Math.abs,rP=Math.cos,oP=Math.sin,gh=Math.sqrt;function ae(){}function op(o,t){o&&i6.hasOwnProperty(o.type)&&i6[o.type](o,t)}var a6={Feature:function(o,t){op(o.geometry,t)},FeatureCollection:function(o,t){for(var r=o.features,e=-1,a=r.length;++e<a;)op(r[e].geometry,t)}},i6={Sphere:function(o,t){t.sphere()},Point:function(o,t){o=o.coordinates,t.point(o[0],o[1],o[2])},MultiPoint:function(o,t){for(var r=o.coordinates,e=-1,a=r.length;++e<a;)o=r[e],t.point(o[0],o[1],o[2])},LineString:function(o,t){fh(o.coordinates,t,0)},MultiLineString:function(o,t){for(var r=o.coordinates,e=-1,a=r.length;++e<a;)fh(r[e],t,0)},Polygon:function(o,t){n6(o.coordinates,t)},MultiPolygon:function(o,t){for(var r=o.coordinates,e=-1,a=r.length;++e<a;)n6(r[e],t)},GeometryCollection:function(o,t){for(var r=o.geometries,e=-1,a=r.length;++e<a;)op(r[e],t)}};function fh(o,t,r){var e=-1,a=o.length-r,i;for(t.lineStart();++e<a;)i=o[e],t.point(i[0],i[1],i[2]);t.lineEnd()}function n6(o,t){var r=-1,e=o.length;for(t.polygonStart();++r<e;)fh(o[r],t,1);t.polygonEnd()}function Ls(o,t){o&&a6.hasOwnProperty(o.type)?a6[o.type](o,t):op(o,t)}function eP(){var o=[],t;return{point:function(r,e,a){t.push([r,e,a])},lineStart:function(){o.push(t=[])},lineEnd:ae,rejoin:function(){o.length>1&&o.push(o.pop().concat(o.shift()))},result:function(){var r=o;return o=[],t=null,r}}}function aP(o,t){return Os(o[0]-t[0])<Rs&&Os(o[1]-t[1])<Rs}function ep(o,t,r,e){this.x=o,this.z=t,this.o=r,this.e=e,this.v=!1,this.n=this.p=null}function iP(o,t,r,e,a){var i=[],n=[],s,l;if(o.forEach(function(g){if(!((f=g.length-1)<=0)){var f,u=g[0],h=g[f],v;if(aP(u,h)){if(!u[2]&&!h[2]){for(a.lineStart(),s=0;s<f;++s)a.point((u=g[s])[0],u[1]);a.lineEnd();return}h[0]+=2*Rs}i.push(v=new ep(u,g,null,!0)),n.push(v.o=new ep(u,null,v,!1)),i.push(v=new ep(h,g,null,!1)),n.push(v.o=new ep(h,null,v,!0))}}),!!i.length){for(n.sort(t),s6(i),s6(n),s=0,l=n.length;s<l;++s)n[s].e=r=!r;for(var d=i[0],b,c;;){for(var m=d,p=!0;m.v;)if((m=m.n)===d)return;b=m.z,a.lineStart();do{if(m.v=m.o.v=!0,m.e){if(p)for(s=0,l=b.length;s<l;++s)a.point((c=b[s])[0],c[1]);else e(m.x,m.n.x,1,a);m=m.n}else{if(p)for(b=m.p.z,s=b.length-1;s>=0;--s)a.point((c=b[s])[0],c[1]);else e(m.x,m.p.x,-1,a);m=m.p}m=m.o,b=m.z,p=!p}while(!m.v);a.lineEnd()}}}function s6(o){if(t=o.length){for(var t,r=0,e=o[0],a;++r<t;)e.n=a=o[r],a.p=e,e=a;e.n=a=o[0],a.p=e}}function nP(o,t,r,e,a,i){var n=o[0],s=o[1],l=t[0],d=t[1],b=0,c=1,m=l-n,p=d-s,g;if(g=r-n,!(!m&&g>0)){if(g/=m,m<0){if(g<b)return;g<c&&(c=g)}else if(m>0){if(g>c)return;g>b&&(b=g)}if(g=a-n,!(!m&&g<0)){if(g/=m,m<0){if(g>c)return;g>b&&(b=g)}else if(m>0){if(g<b)return;g<c&&(c=g)}if(g=e-s,!(!p&&g>0)){if(g/=p,p<0){if(g<b)return;g<c&&(c=g)}else if(p>0){if(g>c)return;g>b&&(b=g)}if(g=i-s,!(!p&&g<0)){if(g/=p,p<0){if(g>c)return;g>b&&(b=g)}else if(p>0){if(g<b)return;g<c&&(c=g)}return b>0&&(o[0]=n+b*m,o[1]=s+b*p),c<1&&(t[0]=n+c*m,t[1]=s+c*p),!0}}}}}var Fd=1e9,ap=-Fd;function sP(o,t,r,e){function a(d,b){return o<=d&&d<=r&&t<=b&&b<=e}function i(d,b,c,m){var p=0,g=0;if(d==null||(p=n(d,c))!==(g=n(b,c))||l(d,b)<0^c>0)do m.point(p===0||p===3?o:r,p>1?e:t);while((p=(p+c+4)%4)!==g);else m.point(b[0],b[1])}function n(d,b){return Os(d[0]-o)<Rs?b>0?0:3:Os(d[0]-r)<Rs?b>0?2:1:Os(d[1]-t)<Rs?b>0?1:0:b>0?3:2}function s(d,b){return l(d.x,b.x)}function l(d,b){var c=n(d,1),m=n(b,1);return c!==m?c-m:c===0?b[1]-d[1]:c===1?d[0]-b[0]:c===2?d[1]-b[1]:b[0]-d[0]}return function(d){var b=d,c=eP(),m,p,g,f,u,h,v,x,y,w,z,k={point:_,lineStart:C,lineEnd:D,polygonStart:E,polygonEnd:S};function _(I,L){a(I,L)&&b.point(I,L)}function A(){for(var I=0,L=0,T=p.length;L<T;++L)for(var P=p[L],W=1,ot=P.length,et=P[0],mt,ht,dt=et[0],_t=et[1];W<ot;++W)mt=dt,ht=_t,et=P[W],dt=et[0],_t=et[1],ht<=e?_t>e&&(dt-mt)*(e-ht)>(_t-ht)*(o-mt)&&++I:_t<=e&&(dt-mt)*(e-ht)<(_t-ht)*(o-mt)&&--I;return I}function E(){b=c,m=[],p=[],z=!0}function S(){var I=A(),L=z&&I,T=(m=JO(m)).length;(L||T)&&(d.polygonStart(),L&&(d.lineStart(),i(null,null,1,d),d.lineEnd()),T&&iP(m,s,I,i,d),d.polygonEnd()),b=d,m=p=g=null}function C(){k.point=N,p&&p.push(g=[]),w=!0,y=!1,v=x=NaN}function D(){m&&(N(f,u),h&&y&&c.rejoin(),m.push(c.result())),k.point=_,y&&b.lineEnd()}function N(I,L){var T=a(I,L);if(p&&g.push([I,L]),w)f=I,u=L,h=T,w=!1,T&&(b.lineStart(),b.point(I,L));else if(T&&y)b.point(I,L);else{var P=[v=Math.max(ap,Math.min(Fd,v)),x=Math.max(ap,Math.min(Fd,x))],W=[I=Math.max(ap,Math.min(Fd,I)),L=Math.max(ap,Math.min(Fd,L))];nP(P,W,o,t,r,e)?(y||(b.lineStart(),b.point(P[0],P[1])),b.point(W[0],W[1]),T||b.lineEnd(),z=!1):T&&(b.lineStart(),b.point(I,L),z=!1)}v=I,x=L,y=T}return k}}const uh=o=>o;var hh=new Cs,vh=new Cs,l6,d6,xh,wh,Ta={point:ae,lineStart:ae,lineEnd:ae,polygonStart:function(){Ta.lineStart=lP,Ta.lineEnd=bP},polygonEnd:function(){Ta.lineStart=Ta.lineEnd=Ta.point=ae,hh.add(Os(vh)),vh=new Cs},result:function(){var o=hh/2;return hh=new Cs,o}};function lP(){Ta.point=dP}function dP(o,t){Ta.point=b6,l6=xh=o,d6=wh=t}function b6(o,t){vh.add(wh*o-xh*t),xh=o,wh=t}function bP(){b6(l6,d6)}var Ns=1/0,ip=Ns,Hd=-Ns,np=Hd,sp={point:cP,lineStart:ae,lineEnd:ae,polygonStart:ae,polygonEnd:ae,result:function(){var o=[[Ns,ip],[Hd,np]];return Hd=np=-(ip=Ns=1/0),o}};function cP(o,t){o<Ns&&(Ns=o),o>Hd&&(Hd=o),t<ip&&(ip=t),t>np&&(np=t)}var yh=0,kh=0,Yd=0,lp=0,dp=0,Is=0,zh=0,_h=0,$d=0,c6,m6,oa,ea,ie={point:wn,lineStart:p6,lineEnd:g6,polygonStart:function(){ie.lineStart=gP,ie.lineEnd=fP},polygonEnd:function(){ie.point=wn,ie.lineStart=p6,ie.lineEnd=g6},result:function(){var o=$d?[zh/$d,_h/$d]:Is?[lp/Is,dp/Is]:Yd?[yh/Yd,kh/Yd]:[NaN,NaN];return yh=kh=Yd=lp=dp=Is=zh=_h=$d=0,o}};function wn(o,t){yh+=o,kh+=t,++Yd}function p6(){ie.point=mP}function mP(o,t){ie.point=pP,wn(oa=o,ea=t)}function pP(o,t){var r=o-oa,e=t-ea,a=gh(r*r+e*e);lp+=a*(oa+o)/2,dp+=a*(ea+t)/2,Is+=a,wn(oa=o,ea=t)}function g6(){ie.point=wn}function gP(){ie.point=uP}function fP(){f6(c6,m6)}function uP(o,t){ie.point=f6,wn(c6=oa=o,m6=ea=t)}function f6(o,t){var r=o-oa,e=t-ea,a=gh(r*r+e*e);lp+=a*(oa+o)/2,dp+=a*(ea+t)/2,Is+=a,a=ea*o-oa*t,zh+=a*(oa+o),_h+=a*(ea+t),$d+=a*3,wn(oa=o,ea=t)}function u6(o){this._context=o}u6.prototype={_radius:4.5,pointRadius:function(o){return this._radius=o,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(o,t){switch(this._point){case 0:{this._context.moveTo(o,t),this._point=1;break}case 1:{this._context.lineTo(o,t);break}default:{this._context.moveTo(o+this._radius,t),this._context.arc(o,t,this._radius,0,JB);break}}},result:ae};var Ah=new Cs,Sh,h6,v6,Gd,Wd,Vd={point:ae,lineStart:function(){Vd.point=hP},lineEnd:function(){Sh&&x6(h6,v6),Vd.point=ae},polygonStart:function(){Sh=!0},polygonEnd:function(){Sh=null},result:function(){var o=+Ah;return Ah=new Cs,o}};function hP(o,t){Vd.point=x6,h6=Gd=o,v6=Wd=t}function x6(o,t){Gd-=o,Wd-=t,Ah.add(gh(Gd*Gd+Wd*Wd)),Gd=o,Wd=t}let w6,bp,y6,k6;class z6{constructor(t){this._append=t==null?_6:vP(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(t,r){switch(this._point){case 0:{this._append`M${t},${r}`,this._point=1;break}case 1:{this._append`L${t},${r}`;break}default:{if(this._append`M${t},${r}`,this._radius!==y6||this._append!==bp){const e=this._radius,a=this._;this._="",this._append`m0,${e}a${e},${e} 0 1,1 0,${-2*e}a${e},${e} 0 1,1 0,${2*e}z`,y6=e,bp=this._append,k6=this._,this._=a}this._+=k6;break}}}result(){const t=this._;return this._="",t.length?t:null}}function _6(o){let t=1;this._+=o[0];for(const r=o.length;t<r;++t)this._+=arguments[t]+o[t]}function vP(o){const t=Math.floor(o);if(!(t>=0))throw new RangeError(`invalid digits: ${o}`);if(t>15)return _6;if(t!==w6){const r=10**t;w6=t,bp=function(a){let i=1;this._+=a[0];for(const n=a.length;i<n;++i)this._+=Math.round(arguments[i]*r)/r+a[i]}}return bp}function A6(o,t){let r=3,e=4.5,a,i;function n(s){return s&&(typeof e=="function"&&i.pointRadius(+e.apply(this,arguments)),Ls(s,a(i))),i.result()}return n.area=function(s){return Ls(s,a(Ta)),Ta.result()},n.measure=function(s){return Ls(s,a(Vd)),Vd.result()},n.bounds=function(s){return Ls(s,a(sp)),sp.result()},n.centroid=function(s){return Ls(s,a(ie)),ie.result()},n.projection=function(s){return arguments.length?(a=s==null?(o=null,uh):(o=s).stream,n):o},n.context=function(s){return arguments.length?(i=s==null?(t=null,new z6(r)):new u6(t=s),typeof e!="function"&&i.pointRadius(e),n):t},n.pointRadius=function(s){return arguments.length?(e=typeof s=="function"?s:(i.pointRadius(+s),+s),n):e},n.digits=function(s){if(!arguments.length)return r;if(s==null)r=null;else{const l=Math.floor(s);if(!(l>=0))throw new RangeError(`invalid digits: ${s}`);r=l}return t===null&&(i=new z6(r)),n},n.projection(o).digits(r).context(t)}function xP(o){return function(t){var r=new Eh;for(var e in o)r[e]=o[e];return r.stream=t,r}}function Eh(){}Eh.prototype={constructor:Eh,point:function(o,t){this.stream.point(o,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Ch(o,t,r){var e=o.clipExtent&&o.clipExtent();return o.scale(150).translate([0,0]),e!=null&&o.clipExtent(null),Ls(r,o.stream(sp)),t(sp.result()),e!=null&&o.clipExtent(e),o}function S6(o,t,r){return Ch(o,function(e){var a=t[1][0]-t[0][0],i=t[1][1]-t[0][1],n=Math.min(a/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),s=+t[0][0]+(a-n*(e[1][0]+e[0][0]))/2,l=+t[0][1]+(i-n*(e[1][1]+e[0][1]))/2;o.scale(150*n).translate([s,l])},r)}function wP(o,t,r){return S6(o,[[0,0],t],r)}function yP(o,t,r){return Ch(o,function(e){var a=+t,i=a/(e[1][0]-e[0][0]),n=(a-i*(e[1][0]+e[0][0]))/2,s=-i*e[0][1];o.scale(150*i).translate([n,s])},r)}function kP(o,t,r){return Ch(o,function(e){var a=+t,i=a/(e[1][1]-e[0][1]),n=-i*e[0][0],s=(a-i*(e[1][1]+e[0][1]))/2;o.scale(150*i).translate([n,s])},r)}function E6(){var o=1,t=0,r=0,e=1,a=1,i=0,n,s,l=null,d,b,c,m=1,p=1,g=xP({point:function(y,w){var z=x([y,w]);this.stream.point(z[0],z[1])}}),f=uh,u,h;function v(){return m=o*e,p=o*a,u=h=null,x}function x(y){var w=y[0]*m,z=y[1]*p;if(i){var k=z*n-w*s;w=w*n+z*s,z=k}return[w+t,z+r]}return x.invert=function(y){var w=y[0]-t,z=y[1]-r;if(i){var k=z*n+w*s;w=w*n-z*s,z=k}return[w/m,z/p]},x.stream=function(y){return u&&h===y?u:u=g(f(h=y))},x.postclip=function(y){return arguments.length?(f=y,l=d=b=c=null,v()):f},x.clipExtent=function(y){return arguments.length?(f=y==null?(l=d=b=c=null,uh):sP(l=+y[0][0],d=+y[0][1],b=+y[1][0],c=+y[1][1]),v()):l==null?null:[[l,d],[b,c]]},x.scale=function(y){return arguments.length?(o=+y,v()):o},x.translate=function(y){return arguments.length?(t=+y[0],r=+y[1],v()):[t,r]},x.angle=function(y){return arguments.length?(i=y%360*tP,s=oP(i),n=rP(i),v()):i*QB},x.reflectX=function(y){return arguments.length?(e=y?-1:1,v()):e<0},x.reflectY=function(y){return arguments.length?(a=y?-1:1,v()):a<0},x.fitExtent=function(y,w){return S6(x,y,w)},x.fitSize=function(y,w){return wP(x,y,w)},x.fitWidth=function(y,w){return yP(x,y,w)},x.fitHeight=function(y,w){return kP(x,y,w)},x}function zP(o,t){switch(arguments.length){case 0:break;case 1:this.range(o);break;default:this.range(t).domain(o);break}return this}function _P(o){return function(){return o}}function AP(o){return+o}var C6=[0,1];function Bs(o){return o}function jh(o,t){return(t-=o=+o)?function(r){return(r-o)/t}:_P(isNaN(t)?NaN:.5)}function SP(o,t){var r;return o>t&&(r=o,o=t,t=r),function(e){return Math.max(o,Math.min(t,e))}}function EP(o,t,r){var e=o[0],a=o[1],i=t[0],n=t[1];return a<e?(e=jh(a,e),i=r(n,i)):(e=jh(e,a),i=r(i,n)),function(s){return i(e(s))}}function CP(o,t,r){var e=Math.min(o.length,t.length)-1,a=new Array(e),i=new Array(e),n=-1;for(o[e]<o[0]&&(o=o.slice().reverse(),t=t.slice().reverse());++n<e;)a[n]=jh(o[n],o[n+1]),i[n]=r(t[n],t[n+1]);return function(s){var l=YO(o,s,1,e)-1;return i[l](a[l](s))}}function jP(o,t){return t.domain(o.domain()).range(o.range()).interpolate(o.interpolate()).clamp(o.clamp()).unknown(o.unknown())}function MP(){var o=C6,t=C6,r=eh,e,a,i,n=Bs,s,l,d;function b(){var m=Math.min(o.length,t.length);return n!==Bs&&(n=SP(o[0],o[m-1])),s=m>2?CP:EP,l=d=null,c}function c(m){return m==null||isNaN(m=+m)?i:(l||(l=s(o.map(e),t,r)))(e(n(m)))}return c.invert=function(m){return n(a((d||(d=s(t,o.map(e),Te)))(m)))},c.domain=function(m){return arguments.length?(o=Array.from(m,AP),b()):o.slice()},c.range=function(m){return arguments.length?(t=Array.from(m),b()):t.slice()},c.rangeRound=function(m){return t=Array.from(m),r=pI,b()},c.clamp=function(m){return arguments.length?(n=m?!0:Bs,b()):n!==Bs},c.interpolate=function(m){return arguments.length?(r=m,b()):r},c.unknown=function(m){return arguments.length?(i=m,c):i},function(m,p){return e=m,a=p,b()}}function TP(){return MP()(Bs,Bs)}function DP(o,t,r,e){var a=qO(o,t,r),i;switch(e=tp(e??",f"),e.type){case"s":{var n=Math.max(Math.abs(o),Math.abs(t));return e.precision==null&&!isNaN(i=KB(a,n))&&(e.precision=i),e6(e,n)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(i=ZB(a,Math.max(Math.abs(o),Math.abs(t))))&&(e.precision=i-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(i=UB(a))&&(e.precision=i-(e.type==="%")*2);break}}return o6(e)}function RP(o){var t=o.domain;return o.ticks=function(r){var e=t();return t2(e[0],e[e.length-1],r??10)},o.tickFormat=function(r,e){var a=t();return DP(a[0],a[a.length-1],r??10,e)},o.nice=function(r){r==null&&(r=10);var e=t(),a=0,i=e.length-1,n=e[a],s=e[i],l,d,b=10;for(s<n&&(d=n,n=s,s=d,d=a,a=i,i=d);b-- >0;){if(d=Lm(n,s,r),d===l)return e[a]=n,e[i]=s,t(e);if(d>0)n=Math.floor(n/d)*d,s=Math.ceil(s/d)*d;else if(d<0)n=Math.ceil(n*d)/d,s=Math.floor(s*d)/d;else break;l=d}return o},o}function Xd(){var o=TP();return o.copy=function(){return jP(o,Xd())},zP.apply(o,arguments),RP(o)}function OP(o){for(var t=o.length/6|0,r=new Array(t),e=0;e<t;)r[e]="#"+o.slice(e*6,++e*6);return r}const LP=o=>iI(o[o.length-1]);var NP=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(OP);const Ao=LP(NP);function qd(o,t,r){this.k=o,this.x=t,this.y=r}qd.prototype={constructor:qd,scale:function(o){return o===1?this:new qd(this.k*o,this.x,this.y)},translate:function(o,t){return o===0&t===0?this:new qd(this.k,this.x+this.k*o,this.y+this.k*t)},apply:function(o){return[o[0]*this.k+this.x,o[1]*this.k+this.y]},applyX:function(o){return o*this.k+this.x},applyY:function(o){return o*this.k+this.y},invert:function(o){return[(o[0]-this.x)/this.k,(o[1]-this.y)/this.k]},invertX:function(o){return(o-this.x)/this.k},invertY:function(o){return(o-this.y)/this.k},rescaleX:function(o){return o.copy().domain(o.range().map(this.invertX,this).map(o.invert,o))},rescaleY:function(o){return o.copy().domain(o.range().map(this.invertY,this).map(o.invert,o))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},qd.prototype;class Mh{constructor(t,r,e,a,i,n){this.label=t,this.data=r,this.fill=e,this.pointRadius=a,this.tension=i,this.colorFunction=n}getDataSet(){return{label:this.label,data:this.data.map(t=>JSON.parse(t)),fill:this.fill,borderColor:this.colorFunction(this.label),backgroundColor:this.colorFunction(this.label),tension:this.tension,pointRadius:this.pointRadius}}}const IP=`@charset "UTF-8";/*!
57
57
  * Bootstrap v5.3.7 (https://getbootstrap.com/)
58
58
  * Copyright 2011-2025 The Bootstrap Authors
59
59
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smarter-charts",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {