plotly.js
Version:
The open source javascript graphing library that powers plotly
50 lines • 1.41 MB
JavaScript
/**
* plotly.js (geo - minified) v4.1.2
* Copyright 2012-2026, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
(
function(root, factory) {
if (typeof module === "object" && module.exports) {
module.exports = factory();
} else {
root.moduleName = factory();
}
} (typeof self !== "undefined" ? self : this, () => {
"use strict";var Plotly=(()=>{var EY=Object.create;var K2=Object.defineProperty,LY=Object.defineProperties,qY=Object.getOwnPropertyDescriptor,PY=Object.getOwnPropertyDescriptors,RY=Object.getOwnPropertyNames,Td=Object.getOwnPropertySymbols,zY=Object.getPrototypeOf,My=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable;var D_=(e,r,t)=>r in e?K2(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,da=(e,r)=>{for(var t in r||(r={}))My.call(r,t)&&D_(e,t,r[t]);if(Td)for(var t of Td(r))F_.call(r,t)&&D_(e,t,r[t]);return e},Ba=(e,r)=>LY(e,PY(r));var E_=(e,r)=>{var t={};for(var a in e)My.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&Td)for(var a of Td(e))r.indexOf(a)<0&&F_.call(e,a)&&(t[a]=e[a]);return t};var Ia=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var le=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Ha=(e,r)=>{for(var t in r)K2(e,t,{get:r[t],enumerable:!0})},L_=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of RY(r))!My.call(e,n)&&n!==t&&K2(e,n,{get:()=>r[n],enumerable:!(a=qY(r,n))||a.enumerable});return e};var q_=(e,r,t)=>(t=e!=null?EY(zY(e)):{},L_(r||!e||!e.__esModule?K2(t,"default",{value:e,enumerable:!0}):t,e)),Tr=e=>L_(K2({},"__esModule",{value:!0}),e);var P_=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{l(t.next(s))}catch(u){n(u)}},o=s=>{try{l(t.throw(s))}catch(u){n(u)}},l=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,o);l((t=t.apply(e,r)).next())});var Q2=le(R_=>{"use strict";R_.version="4.1.2"});var N_=le((z_,kd)=>{(function(r,t,a){t[r]=t[r]||a(),typeof kd!="undefined"&&kd.exports&&(kd.exports=t[r])})("Promise",typeof window!="undefined"?window:z_,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,x,_,M){return Object.defineProperty(C,x,{value:_,writable:!0,configurable:M!==!1})}}catch(b){r=function(x,_,M){return x[_]=M,x}}a=(function(){var C,x,_;function M(T,A){this.fn=T,this.self=A,this.next=void 0}return{add:function(A,E){_=new M(A,E),x?x.next=_:C=_,x=_,_=void 0},drain:function(){var A=C;for(C=x=t=void 0;A;)A.fn.call(A.self),A=A.next}}})();function o(b,C){a.add(b,C),t||(t=i(a.drain))}function l(b){var C,x=typeof b;return b!=null&&(x=="object"||x=="function")&&(C=b.then),typeof C=="function"?C:!1}function s(){for(var b=0;b<this.chain.length;b++)u(this,this.state===1?this.chain[b].success:this.chain[b].failure,this.chain[b]);this.chain.length=0}function u(b,C,x){var _,M;try{C===!1?x.reject(b.msg):(C===!0?_=b.msg:_=C.call(void 0,b.msg),_===x.promise?x.reject(TypeError("Promise-chain cycle")):(M=l(_))?M.call(_,x.resolve,x.reject):x.resolve(_))}catch(T){x.reject(T)}}function f(b){var C,x=this;if(!x.triggered){x.triggered=!0,x.def&&(x=x.def);try{(C=l(b))?o(function(){var _=new d(x);try{C.call(b,function(){f.apply(_,arguments)},function(){c.apply(_,arguments)})}catch(M){c.call(_,M)}}):(x.msg=b,x.state=1,x.chain.length>0&&o(s,x))}catch(_){c.call(new d(x),_)}}}function c(b){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=b,C.state=2,C.chain.length>0&&o(s,C))}function h(b,C,x,_){for(var M=0;M<C.length;M++)(function(A){b.resolve(C[A]).then(function(P){x(A,P)},_)})(M)}function d(b){this.def=b,this.triggered=!1}function m(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var C=new m(this);this.then=function(_,M){var T={success:typeof _=="function"?_:!0,failure:typeof M=="function"?M:!1};return T.promise=new this.constructor(function(E,P){if(typeof E!="function"||typeof P!="function")throw TypeError("Not a function");T.resolve=E,T.reject=P}),C.chain.push(T),C.state!==0&&o(s,C),T.promise},this.catch=function(_){return this.then(void 0,_)};try{b.call(void 0,function(_){f.call(C,_)},function(_){c.call(C,_)})}catch(x){c.call(C,x)}}var y=r({},"constructor",p,!1);return p.prototype=y,r(y,"__NPO__",0,!1),r(p,"resolve",function(C){var x=this;return C&&typeof C=="object"&&C.__NPO__===1?C:new x(function(M,T){if(typeof M!="function"||typeof T!="function")throw TypeError("Not a function");M(C)})}),r(p,"reject",function(C){return new this(function(_,M){if(typeof _!="function"||typeof M!="function")throw TypeError("Not a function");M(C)})}),r(p,"all",function(C){var x=this;return n.call(C)!="[object Array]"?x.reject(TypeError("Not an array")):C.length===0?x.resolve([]):new x(function(M,T){if(typeof M!="function"||typeof T!="function")throw TypeError("Not a function");var A=C.length,E=Array(A),P=0;h(x,C,function(B,X){E[B]=X,++P===A&&M(E)},T)})}),r(p,"race",function(C){var x=this;return n.call(C)!="[object Array]"?x.reject(TypeError("Not an array")):new x(function(M,T){if(typeof M!="function"||typeof T!="function")throw TypeError("Not a function");h(x,C,function(E,P){M(P)},T)})}),p})});var Ft=le((Kye,Cd)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(g){for(var w=g.length,S=new Array(w);w--;)S[w]=g[w];return S}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,S){s.call(this,g,w,S+"")},u.setProperty=function(g,w,S){f.call(this,g,w+"",S)}}e.ascending=c;function c(v,g){return v<g?-1:v>g?1:v>=g?0:NaN}e.descending=function(v,g){return g<v?-1:g>v?1:g>=v?0:NaN},e.min=function(v,g){var w=-1,S=v.length,F,L;if(arguments.length===1){for(;++w<S;)if((L=v[w])!=null&&L>=L){F=L;break}for(;++w<S;)(L=v[w])!=null&&F>L&&(F=L)}else{for(;++w<S;)if((L=g.call(v,v[w],w))!=null&&L>=L){F=L;break}for(;++w<S;)(L=g.call(v,v[w],w))!=null&&F>L&&(F=L)}return F},e.max=function(v,g){var w=-1,S=v.length,F,L;if(arguments.length===1){for(;++w<S;)if((L=v[w])!=null&&L>=L){F=L;break}for(;++w<S;)(L=v[w])!=null&&L>F&&(F=L)}else{for(;++w<S;)if((L=g.call(v,v[w],w))!=null&&L>=L){F=L;break}for(;++w<S;)(L=g.call(v,v[w],w))!=null&&L>F&&(F=L)}return F},e.extent=function(v,g){var w=-1,S=v.length,F,L,Y;if(arguments.length===1){for(;++w<S;)if((L=v[w])!=null&&L>=L){F=Y=L;break}for(;++w<S;)(L=v[w])!=null&&(F>L&&(F=L),Y<L&&(Y=L))}else{for(;++w<S;)if((L=g.call(v,v[w],w))!=null&&L>=L){F=Y=L;break}for(;++w<S;)(L=g.call(v,v[w],w))!=null&&(F>L&&(F=L),Y<L&&(Y=L))}return[F,Y]};function h(v){return v===null?NaN:+v}function d(v){return!isNaN(v)}e.sum=function(v,g){var w=0,S=v.length,F,L=-1;if(arguments.length===1)for(;++L<S;)d(F=+v[L])&&(w+=F);else for(;++L<S;)d(F=+g.call(v,v[L],L))&&(w+=F);return w},e.mean=function(v,g){var w=0,S=v.length,F,L=-1,Y=S;if(arguments.length===1)for(;++L<S;)d(F=h(v[L]))?w+=F:--Y;else for(;++L<S;)d(F=h(g.call(v,v[L],L)))?w+=F:--Y;if(Y)return w/Y},e.quantile=function(v,g){var w=(v.length-1)*g+1,S=Math.floor(w),F=+v[S-1],L=w-S;return L?F+L*(v[S]-F):F},e.median=function(v,g){var w=[],S=v.length,F,L=-1;if(arguments.length===1)for(;++L<S;)d(F=h(v[L]))&&w.push(F);else for(;++L<S;)d(F=h(g.call(v,v[L],L)))&&w.push(F);if(w.length)return e.quantile(w.sort(c),.5)},e.variance=function(v,g){var w=v.length,S=0,F,L,Y=0,N=-1,Z=0;if(arguments.length===1)for(;++N<w;)d(F=h(v[N]))&&(L=F-S,S+=L/++Z,Y+=L*(F-S));else for(;++N<w;)d(F=h(g.call(v,v[N],N)))&&(L=F-S,S+=L/++Z,Y+=L*(F-S));if(Z>1)return Y/(Z-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function m(v){return{left:function(g,w,S,F){for(arguments.length<3&&(S=0),arguments.length<4&&(F=g.length);S<F;){var L=S+F>>>1;v(g[L],w)<0?S=L+1:F=L}return S},right:function(g,w,S,F){for(arguments.length<3&&(S=0),arguments.length<4&&(F=g.length);S<F;){var L=S+F>>>1;v(g[L],w)>0?F=L:S=L+1}return S}}}var p=m(c);e.bisectLeft=p.left,e.bisect=e.bisectRight=p.right,e.bisector=function(v){return m(v.length===1?function(g,w){return c(v(g),w)}:v)},e.shuffle=function(v,g,w){(S=arguments.length)<3&&(w=v.length,S<2&&(g=0));for(var S=w-g,F,L;S;)L=Math.random()*S--|0,F=v[S+g],v[S+g]=v[L+g],v[L+g]=F;return v},e.permute=function(v,g){for(var w=g.length,S=new Array(w);w--;)S[w]=v[g[w]];return S},e.pairs=function(v){for(var g=0,w=v.length-1,S,F=v[0],L=new Array(w<0?0:w);g<w;)L[g]=[S=F,F=v[++g]];return L},e.transpose=function(v){if(!(L=v.length))return[];for(var g=-1,w=e.min(v,y),S=new Array(w);++g<w;)for(var F=-1,L,Y=S[g]=new Array(L);++F<L;)Y[F]=v[F][g];return S};function y(v){return v.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(v){var g=[];for(var w in v)g.push(w);return g},e.values=function(v){var g=[];for(var w in v)g.push(v[w]);return g},e.entries=function(v){var g=[];for(var w in v)g.push({key:w,value:v[w]});return g},e.merge=function(v){for(var g=v.length,w,S=-1,F=0,L,Y;++S<g;)F+=v[S].length;for(L=new Array(F);--g>=0;)for(Y=v[g],w=Y.length;--w>=0;)L[--F]=Y[w];return L};var b=Math.abs;e.range=function(v,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=v,v=0)),(g-v)/w===1/0)throw new Error("infinite range");var S=[],F=C(b(w)),L=-1,Y;if(v*=F,g*=F,w*=F,w<0)for(;(Y=v+w*++L)>g;)S.push(Y/F);else for(;(Y=v+w*++L)<g;)S.push(Y/F);return S};function C(v){for(var g=1;v*g%1;)g*=10;return g}function x(v,g){for(var w in g)Object.defineProperty(v.prototype,w,{value:g[w],enumerable:!1})}e.map=function(v,g){var w=new _;if(v instanceof _)v.forEach(function(N,Z){w.set(N,Z)});else if(Array.isArray(v)){var S=-1,F=v.length,L;if(arguments.length===1)for(;++S<F;)w.set(S,v[S]);else for(;++S<F;)w.set(g.call(v,L=v[S],S),L)}else for(var Y in v)w.set(Y,v[Y]);return w};function _(){this._=Object.create(null)}var M="__proto__",T="\0";x(_,{has:P,get:function(v){return this._[A(v)]},set:function(v,g){return this._[A(v)]=g},remove:z,keys:B,values:function(){var v=[];for(var g in this._)v.push(this._[g]);return v},entries:function(){var v=[];for(var g in this._)v.push({key:E(g),value:this._[g]});return v},size:X,empty:I,forEach:function(v){for(var g in this._)v.call(this,E(g),this._[g])}});function A(v){return(v+="")===M||v[0]===T?T+v:v}function E(v){return(v+="")[0]===T?v.slice(1):v}function P(v){return A(v)in this._}function z(v){return(v=A(v))in this._&&delete this._[v]}function B(){var v=[];for(var g in this._)v.push(E(g));return v}function X(){var v=0;for(var g in this._)++v;return v}function I(){for(var v in this._)return!1;return!0}e.nest=function(){var v={},g=[],w=[],S,F;function L(N,Z,ae){if(ae>=g.length)return F?F.call(v,Z):S?Z.sort(S):Z;for(var ne=-1,ge=Z.length,ye=g[ae++],qe,Ye,be,Ce=new _,Fe;++ne<ge;)(Fe=Ce.get(qe=ye(Ye=Z[ne])))?Fe.push(Ye):Ce.set(qe,[Ye]);return N?(Ye=N(),be=function(Ge,Ve){Ye.set(Ge,L(N,Ve,ae))}):(Ye={},be=function(Ge,Ve){Ye[Ge]=L(N,Ve,ae)}),Ce.forEach(be),Ye}function Y(N,Z){if(Z>=g.length)return N;var ae=[],ne=w[Z++];return N.forEach(function(ge,ye){ae.push({key:ge,values:Y(ye,Z)})}),ne?ae.sort(function(ge,ye){return ne(ge.key,ye.key)}):ae}return v.map=function(N,Z){return L(Z,N,0)},v.entries=function(N){return Y(L(e.map,N,0),0)},v.key=function(N){return g.push(N),v},v.sortKeys=function(N){return w[g.length-1]=N,v},v.sortValues=function(N){return S=N,v},v.rollup=function(N){return F=N,v},v},e.set=function(v){var g=new V;if(v)for(var w=0,S=v.length;w<S;++w)g.add(v[w]);return g};function V(){this._=Object.create(null)}x(V,{has:P,add:function(v){return this._[A(v+="")]=!0,v},remove:z,values:B,size:X,empty:I,forEach:function(v){for(var g in this._)v.call(this,E(g))}}),e.behavior={};function H(v){return v}e.rebind=function(v,g){for(var w=1,S=arguments.length,F;++w<S;)v[F=arguments[w]]=Q(v,g,g[F]);return v};function Q(v,g,w){return function(){var S=w.apply(g,arguments);return S===g?v:S}}function oe(v,g){if(g in v)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var w=0,S=re.length;w<S;++w){var F=re[w]+g;if(F in v)return F}}var re=["webkit","ms","moz","Moz","o","O"];function te(){}e.dispatch=function(){for(var v=new ie,g=-1,w=arguments.length;++g<w;)v[arguments[g]]=ce(v);return v};function ie(){}ie.prototype.on=function(v,g){var w=v.indexOf("."),S="";if(w>=0&&(S=v.slice(w+1),v=v.slice(0,w)),v)return arguments.length<2?this[v].on(S):this[v].on(S,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(S,null);return this}};function ce(v){var g=[],w=new _;function S(){for(var F=g,L=-1,Y=F.length,N;++L<Y;)(N=F[L].on)&&N.apply(this,arguments);return v}return S.on=function(F,L){var Y=w.get(F),N;return arguments.length<2?Y&&Y.on:(Y&&(Y.on=null,g=g.slice(0,N=g.indexOf(Y)).concat(g.slice(N+1)),w.remove(F)),L&&g.push(w.set(F,{on:L})),v)},S}e.event=null;function Me(){e.event.preventDefault()}function De(){for(var v=e.event,g;g=v.sourceEvent;)v=g;return v}function Ie(v){for(var g=new ie,w=0,S=arguments.length;++w<S;)g[arguments[w]]=ce(g);return g.of=function(F,L){return function(Y){try{var N=Y.sourceEvent=e.event;Y.target=v,e.event=Y,g[Y.type].apply(F,L)}finally{e.event=N}}},g}e.requote=function(v){return v.replace(Ue,"\\$&")};var Ue=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ke={}.__proto__?function(v,g){v.__proto__=g}:function(v,g){for(var w in g)v[w]=g[w]};function je(v){return ke(v,K),v}var W=function(v,g){return g.querySelector(v)},ee=function(v,g){return g.querySelectorAll(v)},me=function(v,g){var w=v.matches||v[oe(v,"matchesSelector")];return me=function(S,F){return w.call(S,F)},me(v,g)};typeof Sizzle=="function"&&(W=function(v,g){return Sizzle(v,g)[0]||null},ee=Sizzle,me=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var K=e.selection.prototype=[];K.select=function(v){var g=[],w,S,F,L;v=J(v);for(var Y=-1,N=this.length;++Y<N;){g.push(w=[]),w.parentNode=(F=this[Y]).parentNode;for(var Z=-1,ae=F.length;++Z<ae;)(L=F[Z])?(w.push(S=v.call(L,L.__data__,Z,Y)),S&&"__data__"in L&&(S.__data__=L.__data__)):w.push(null)}return je(g)};function J(v){return typeof v=="function"?v:function(){return W(v,this)}}K.selectAll=function(v){var g=[],w,S;v=ue(v);for(var F=-1,L=this.length;++F<L;)for(var Y=this[F],N=-1,Z=Y.length;++N<Z;)(S=Y[N])&&(g.push(w=t(v.call(S,S.__data__,N,F))),w.parentNode=S);return je(g)};function ue(v){return typeof v=="function"?v:function(){return ee(v,this)}}var _e="http://www.w3.org/1999/xhtml",Ne={svg:"http://www.w3.org/2000/svg",xhtml:_e,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};e.ns={prefix:Ne,qualify:function(v){var g=v.indexOf(":"),w=v;return g>=0&&(w=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),Ne.hasOwnProperty(w)?{space:Ne[w],local:v}:v}},K.attr=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node();return v=e.ns.qualify(v),v.local?w.getAttributeNS(v.space,v.local):w.getAttribute(v)}for(g in v)this.each(Je(g,v[g]));return this}return this.each(Je(v,g))};function Je(v,g){v=e.ns.qualify(v);function w(){this.removeAttribute(v)}function S(){this.removeAttributeNS(v.space,v.local)}function F(){this.setAttribute(v,g)}function L(){this.setAttributeNS(v.space,v.local,g)}function Y(){var Z=g.apply(this,arguments);Z==null?this.removeAttribute(v):this.setAttribute(v,Z)}function N(){var Z=g.apply(this,arguments);Z==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,Z)}return g==null?v.local?S:w:typeof g=="function"?v.local?N:Y:v.local?L:F}function ar(v){return v.trim().replace(/\s+/g," ")}K.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node(),S=(v=fr(v)).length,F=-1;if(g=w.classList){for(;++F<S;)if(!g.contains(v[F]))return!1}else for(g=w.getAttribute("class");++F<S;)if(!tr(v[F]).test(g))return!1;return!0}for(g in v)this.each(Re(g,v[g]));return this}return this.each(Re(v,g))};function tr(v){return new RegExp("(?:^|\\s+)"+e.requote(v)+"(?:\\s+|$)","g")}function fr(v){return(v+"").trim().split(/^|\s+/)}function Re(v,g){v=fr(v).map(sr);var w=v.length;function S(){for(var L=-1;++L<w;)v[L](this,g)}function F(){for(var L=-1,Y=g.apply(this,arguments);++L<w;)v[L](this,Y)}return typeof g=="function"?F:S}function sr(v){var g=tr(v);return function(w,S){if(F=w.classList)return S?F.add(v):F.remove(v);var F=w.getAttribute("class")||"";S?(g.lastIndex=0,g.test(F)||w.setAttribute("class",ar(F+" "+v))):w.setAttribute("class",ar(F.replace(g," ")))}}K.style=function(v,g,w){var S=arguments.length;if(S<3){if(typeof v!="string"){S<2&&(g="");for(w in v)this.each(hr(w,v[w],g));return this}if(S<2){var F=this.node();return i(F).getComputedStyle(F,null).getPropertyValue(v)}w=""}return this.each(hr(v,g,w))};function hr(v,g,w){function S(){this.style.removeProperty(v)}function F(){this.style.setProperty(v,g,w)}function L(){var Y=g.apply(this,arguments);Y==null?this.style.removeProperty(v):this.style.setProperty(v,Y,w)}return g==null?S:typeof g=="function"?L:F}K.property=function(v,g){if(arguments.length<2){if(typeof v=="string")return this.node()[v];for(g in v)this.each(dr(g,v[g]));return this}return this.each(dr(v,g))};function dr(v,g){function w(){delete this[v]}function S(){this[v]=g}function F(){var L=g.apply(this,arguments);L==null?delete this[v]:this[v]=L}return g==null?w:typeof g=="function"?F:S}K.text=function(v){return arguments.length?this.each(typeof v=="function"?function(){var g=v.apply(this,arguments);this.textContent=g==null?"":g}:v==null?function(){this.textContent=""}:function(){this.textContent=v}):this.node().textContent},K.html=function(v){return arguments.length?this.each(typeof v=="function"?function(){var g=v.apply(this,arguments);this.innerHTML=g==null?"":g}:v==null?function(){this.innerHTML=""}:function(){this.innerHTML=v}):this.node().innerHTML},K.append=function(v){return v=Ze(v),this.select(function(){return this.appendChild(v.apply(this,arguments))})};function Ze(v){function g(){var S=this.ownerDocument,F=this.namespaceURI;return F===_e&&S.documentElement.namespaceURI===_e?S.createElement(v):S.createElementNS(F,v)}function w(){return this.ownerDocument.createElementNS(v.space,v.local)}return typeof v=="function"?v:(v=e.ns.qualify(v)).local?w:g}K.insert=function(v,g){return v=Ze(v),g=J(g),this.select(function(){return this.insertBefore(v.apply(this,arguments),g.apply(this,arguments)||null)})},K.remove=function(){return this.each(cr)};function cr(){var v=this.parentNode;v&&v.removeChild(this)}K.data=function(v,g){var w=-1,S=this.length,F,L;if(!arguments.length){for(v=new Array(S=(F=this[0]).length);++w<S;)(L=F[w])&&(v[w]=L.__data__);return v}function Y(ne,ge){var ye,qe=ne.length,Ye=ge.length,be=Math.min(qe,Ye),Ce=new Array(Ye),Fe=new Array(Ye),Ge=new Array(qe),Ve,Le;if(g){var wr=new _,Yr=new Array(qe),Zr;for(ye=-1;++ye<qe;)(Ve=ne[ye])&&(wr.has(Zr=g.call(Ve,Ve.__data__,ye))?Ge[ye]=Ve:wr.set(Zr,Ve),Yr[ye]=Zr);for(ye=-1;++ye<Ye;)(Ve=wr.get(Zr=g.call(ge,Le=ge[ye],ye)))?Ve!==!0&&(Ce[ye]=Ve,Ve.__data__=Le):Fe[ye]=Lr(Le),wr.set(Zr,!0);for(ye=-1;++ye<qe;)ye in Yr&&wr.get(Yr[ye])!==!0&&(Ge[ye]=ne[ye])}else{for(ye=-1;++ye<be;)Ve=ne[ye],Le=ge[ye],Ve?(Ve.__data__=Le,Ce[ye]=Ve):Fe[ye]=Lr(Le);for(;ye<Ye;++ye)Fe[ye]=Lr(ge[ye]);for(;ye<qe;++ye)Ge[ye]=ne[ye]}Fe.update=Ce,Fe.parentNode=Ce.parentNode=Ge.parentNode=ne.parentNode,N.push(Fe),Z.push(Ce),ae.push(Ge)}var N=Br([]),Z=je([]),ae=je([]);if(typeof v=="function")for(;++w<S;)Y(F=this[w],v.call(F,F.parentNode.__data__,w));else for(;++w<S;)Y(F=this[w],v);return Z.enter=function(){return N},Z.exit=function(){return ae},Z};function Lr(v){return{__data__:v}}K.datum=function(v){return arguments.length?this.property("__data__",v):this.property("__data__")},K.filter=function(v){var g=[],w,S,F;typeof v!="function"&&(v=Te(v));for(var L=0,Y=this.length;L<Y;L++){g.push(w=[]),w.parentNode=(S=this[L]).parentNode;for(var N=0,Z=S.length;N<Z;N++)(F=S[N])&&v.call(F,F.__data__,N,L)&&w.push(F)}return je(g)};function Te(v){return function(){return me(this,v)}}K.order=function(){for(var v=-1,g=this.length;++v<g;)for(var w=this[v],S=w.length-1,F=w[S],L;--S>=0;)(L=w[S])&&(F&&F!==L.nextSibling&&F.parentNode.insertBefore(L,F),F=L);return this},K.sort=function(v){v=Oe.apply(this,arguments);for(var g=-1,w=this.length;++g<w;)this[g].sort(v);return this.order()};function Oe(v){return arguments.length||(v=c),function(g,w){return g&&w?v(g.__data__,w.__data__):!g-!w}}K.each=function(v){return Ar(this,function(g,w,S){v.call(g,g.__data__,w,S)})};function Ar(v,g){for(var w=0,S=v.length;w<S;w++)for(var F=v[w],L=0,Y=F.length,N;L<Y;L++)(N=F[L])&&g(N,L,w);return v}K.call=function(v){var g=t(arguments);return v.apply(g[0]=this,g),this},K.empty=function(){return!this.node()},K.node=function(){for(var v=0,g=this.length;v<g;v++)for(var w=this[v],S=0,F=w.length;S<F;S++){var L=w[S];if(L)return L}return null},K.size=function(){var v=0;return Ar(this,function(){++v}),v};function Br(v){return ke(v,Qe),v}var Qe=[];e.selection.enter=Br,e.selection.enter.prototype=Qe,Qe.append=K.append,Qe.empty=K.empty,Qe.node=K.node,Qe.call=K.call,Qe.size=K.size,Qe.select=function(v){for(var g=[],w,S,F,L,Y,N=-1,Z=this.length;++N<Z;){F=(L=this[N]).update,g.push(w=[]),w.parentNode=L.parentNode;for(var ae=-1,ne=L.length;++ae<ne;)(Y=L[ae])?(w.push(F[ae]=S=v.call(L.parentNode,Y.__data__,ae,N)),S.__data__=Y.__data__):w.push(null)}return je(g)},Qe.insert=function(v,g){return arguments.length<2&&(g=Be(this)),K.insert.call(this,v,g)};function Be(v){var g,w;return function(S,F,L){var Y=v[L].update,N=Y.length,Z;for(L!=w&&(w=L,g=0),F>=g&&(g=F+1);!(Z=Y[g])&&++g<N;);return Z}}e.select=function(v){var g;return typeof v=="string"?(g=[W(v,a)],g.parentNode=a.documentElement):(g=[v],g.parentNode=n(v)),je([g])},e.selectAll=function(v){var g;return typeof v=="string"?(g=t(ee(v,a)),g.parentNode=a.documentElement):(g=t(v),g.parentNode=null),je([g])},K.on=function(v,g,w){var S=arguments.length;if(S<3){if(typeof v!="string"){S<2&&(g=!1);for(w in v)this.each(Xe(w,v[w],g));return this}if(S<2)return(S=this.node()["__on"+v])&&S._;w=!1}return this.each(Xe(v,g,w))};function Xe(v,g,w){var S="__on"+v,F=v.indexOf("."),L=Cr;F>0&&(v=v.slice(0,F));var Y=yr.get(v);Y&&(v=Y,L=pr);function N(){var ne=this[S];ne&&(this.removeEventListener(v,ne,ne.$),delete this[S])}function Z(){var ne=L(g,t(arguments));N.call(this),this.addEventListener(v,this[S]=ne,ne.$=w),ne._=g}function ae(){var ne=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),ge;for(var ye in this)if(ge=ye.match(ne)){var qe=this[ye];this.removeEventListener(ge[1],qe,qe.$),delete this[ye]}}return F?g?Z:N:g?te:ae}var yr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&yr.forEach(function(v){"on"+v in a&&yr.remove(v)});function Cr(v,g){return function(w){var S=e.event;e.event=w,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=S}}}function pr(v,g){var w=Cr(v,g);return function(S){var F=this,L=S.relatedTarget;(!L||L!==F&&!(L.compareDocumentPosition(F)&8))&&w.call(F,S)}}var xr,Rr=0;function Er(v){var g=".dragsuppress-"+ ++Rr,w="click"+g,S=e.select(i(v)).on("touchmove"+g,Me).on("dragstart"+g,Me).on("selectstart"+g,Me);if(xr==null&&(xr="onselectstart"in v?!1:oe(v.style,"userSelect")),xr){var F=n(v).style,L=F[xr];F[xr]="none"}return function(Y){if(S.on(g,null),xr&&(F[xr]=L),Y){var N=function(){S.on(w,null)};S.on(w,function(){Me(),N()},!0),setTimeout(N,0)}}}e.mouse=function(v){return rr(v,De())};var Or=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function rr(v,g){g.changedTouches&&(g=g.changedTouches[0]);var w=v.ownerSVGElement||v;if(w.createSVGPoint){var S=w.createSVGPoint();if(Or<0){var F=i(v);if(F.scrollX||F.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=w[0][0].getScreenCTM();Or=!(L.f||L.e),w.remove()}}return Or?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(v.getScreenCTM().inverse()),[S.x,S.y]}var Y=v.getBoundingClientRect();return[g.clientX-Y.left-v.clientLeft,g.clientY-Y.top-v.clientTop]}e.touch=function(v,g,w){if(arguments.length<3&&(w=g,g=De().changedTouches),g){for(var S=0,F=g.length,L;S<F;++S)if((L=g[S]).identifier===w)return rr(v,L)}},e.behavior.drag=function(){var v=Ie(F,"drag","dragstart","dragend"),g=null,w=L(te,e.mouse,i,"mousemove","mouseup"),S=L(Sr,e.touch,H,"touchmove","touchend");function F(){this.on("mousedown.drag",w).on("touchstart.drag",S)}function L(Y,N,Z,ae,ne){return function(){var ge=this,ye=e.event.target.correspondingElement||e.event.target,qe=ge.parentNode,Ye=v.of(ge,arguments),be=0,Ce=Y(),Fe=".drag"+(Ce==null?"":"-"+Ce),Ge,Ve=e.select(Z(ye)).on(ae+Fe,Yr).on(ne+Fe,Zr),Le=Er(ye),wr=N(qe,Ce);g?(Ge=g.apply(ge,arguments),Ge=[Ge.x-wr[0],Ge.y-wr[1]]):Ge=[0,0],Ye({type:"dragstart"});function Yr(){var Xr=N(qe,Ce),tt,at;Xr&&(tt=Xr[0]-wr[0],at=Xr[1]-wr[1],be|=tt|at,wr=Xr,Ye({type:"drag",x:Xr[0]+Ge[0],y:Xr[1]+Ge[1],dx:tt,dy:at}))}function Zr(){N(qe,Ce)&&(Ve.on(ae+Fe,null).on(ne+Fe,null),Le(be),Ye({type:"dragend"}))}}}return F.origin=function(Y){return arguments.length?(g=Y,F):g},e.rebind(F,v,"on")};function Sr(){return e.event.changedTouches[0].identifier}e.touches=function(v,g){return arguments.length<2&&(g=De().touches),g?t(g).map(function(w){var S=rr(v,w);return S.identifier=w.identifier,S}):[]};var vr=1e-6,jr=vr*vr,Qr=Math.PI,qr=2*Qr,Wr=qr-vr,Ae=Qr/2,Pe=Qr/180,ur=180/Qr;function gr(v){return v>0?1:v<0?-1:0}function It(v,g,w){return(g[0]-v[0])*(w[1]-v[1])-(g[1]-v[1])*(w[0]-v[0])}function Yt(v){return v>1?0:v<-1?Qr:Math.acos(v)}function ia(v){return v>1?Ae:v<-1?-Ae:Math.asin(v)}function Ta(v){return((v=Math.exp(v))-1/v)/2}function Ht(v){return((v=Math.exp(v))+1/v)/2}function Zt(v){return((v=Math.exp(2*v))-1)/(v+1)}function ma(v){return(v=Math.sin(v/2))*v}var ra=Math.SQRT2,xn=2,on=4;e.interpolateZoom=function(v,g){var w=v[0],S=v[1],F=v[2],L=g[0],Y=g[1],N=g[2],Z=L-w,ae=Y-S,ne=Z*Z+ae*ae,ge,ye;if(ne<jr)ye=Math.log(N/F)/ra,ge=function(Ge){return[w+Ge*Z,S+Ge*ae,F*Math.exp(ra*Ge*ye)]};else{var qe=Math.sqrt(ne),Ye=(N*N-F*F+on*ne)/(2*F*xn*qe),be=(N*N-F*F-on*ne)/(2*N*xn*qe),Ce=Math.log(Math.sqrt(Ye*Ye+1)-Ye),Fe=Math.log(Math.sqrt(be*be+1)-be);ye=(Fe-Ce)/ra,ge=function(Ge){var Ve=Ge*ye,Le=Ht(Ce),wr=F/(xn*qe)*(Le*Zt(ra*Ve+Ce)-Ta(Ce));return[w+wr*Z,S+wr*ae,F*Le/Ht(ra*Ve+Ce)]}}return ge.duration=ye*1e3,ge},e.behavior.zoom=function(){var v={x:0,y:0,k:1},g,w,S,F=[960,500],L=Wn,Y=250,N=0,Z="mousedown.zoom",ae="mousemove.zoom",ne="mouseup.zoom",ge,ye="touchstart.zoom",qe,Ye=Ie(Ve,"zoomstart","zoom","zoomend"),be,Ce,Fe,Ge;ua||(ua="onwheel"in a?(Jr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Jr=function(){return e.event.wheelDelta},"mousewheel"):(Jr=function(){return-e.event.detail},"MozMousePixelScroll"));function Ve(Ir){Ir.on(Z,bt).on(ua+".zoom",sn).on("dblclick.zoom",ca).on(ye,ta)}Ve.event=function(Ir){Ir.each(function(){var kt=Ye.of(this,arguments),Ct=v;qn?e.select(this).transition().each("start.zoom",function(){v=this.__chart__||{x:0,y:0,k:1},at(kt)}).tween("zoom:zoom",function(){var aa=F[0],Za=F[1],Mn=w?w[0]:aa/2,Jn=w?w[1]:Za/2,pi=e.interpolateZoom([(Mn-v.x)/v.k,(Jn-v.y)/v.k,aa/v.k],[(Mn-Ct.x)/Ct.k,(Jn-Ct.y)/Ct.k,aa/Ct.k]);return function(qi){var mi=pi(qi),Wi=aa/mi[2];this.__chart__=v={x:Mn-mi[0]*Wi,y:Jn-mi[1]*Wi,k:Wi},Tt(kt)}}).each("interrupt.zoom",function(){it(kt)}).each("end.zoom",function(){it(kt)}):(this.__chart__=v,at(kt),Tt(kt),it(kt))})},Ve.translate=function(Ir){return arguments.length?(v={x:+Ir[0],y:+Ir[1],k:v.k},tt(),Ve):[v.x,v.y]},Ve.scale=function(Ir){return arguments.length?(v={x:v.x,y:v.y,k:null},Yr(+Ir),tt(),Ve):v.k},Ve.scaleExtent=function(Ir){return arguments.length?(L=Ir==null?Wn:[+Ir[0],+Ir[1]],Ve):L},Ve.center=function(Ir){return arguments.length?(S=Ir&&[+Ir[0],+Ir[1]],Ve):S},Ve.size=function(Ir){return arguments.length?(F=Ir&&[+Ir[0],+Ir[1]],Ve):F},Ve.duration=function(Ir){return arguments.length?(Y=+Ir,Ve):Y},Ve.x=function(Ir){return arguments.length?(Ce=Ir,be=Ir.copy(),v={x:0,y:0,k:1},Ve):Ce},Ve.y=function(Ir){return arguments.length?(Ge=Ir,Fe=Ir.copy(),v={x:0,y:0,k:1},Ve):Ge};function Le(Ir){return[(Ir[0]-v.x)/v.k,(Ir[1]-v.y)/v.k]}function wr(Ir){return[Ir[0]*v.k+v.x,Ir[1]*v.k+v.y]}function Yr(Ir){v.k=Math.max(L[0],Math.min(L[1],Ir))}function Zr(Ir,kt){kt=wr(kt),v.x+=Ir[0]-kt[0],v.y+=Ir[1]-kt[1]}function Xr(Ir,kt,Ct,aa){Ir.__chart__={x:v.x,y:v.y,k:v.k},Yr(Math.pow(2,aa)),Zr(w=kt,Ct),Ir=e.select(Ir),Y>0&&(Ir=Ir.transition().duration(Y)),Ir.call(Ve.event)}function tt(){Ce&&Ce.domain(be.range().map(function(Ir){return(Ir-v.x)/v.k}).map(be.invert)),Ge&&Ge.domain(Fe.range().map(function(Ir){return(Ir-v.y)/v.k}).map(Fe.invert))}function at(Ir){N++||Ir({type:"zoomstart"})}function Tt(Ir){tt(),Ir({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function it(Ir){--N||(Ir({type:"zoomend"}),w=null)}function bt(){var Ir=this,kt=Ye.of(Ir,arguments),Ct=0,aa=e.select(i(Ir)).on(ae,Jn).on(ne,pi),Za=Le(e.mouse(Ir)),Mn=Er(Ir);yt.call(Ir),at(kt);function Jn(){Ct=1,Zr(e.mouse(Ir),Za),Tt(kt)}function pi(){aa.on(ae,null).on(ne,null),Mn(Ct),it(kt)}}function ta(){var Ir=this,kt=Ye.of(Ir,arguments),Ct={},aa=0,Za,Mn=".zoom-"+e.event.changedTouches[0].identifier,Jn="touchmove"+Mn,pi="touchend"+Mn,qi=[],mi=e.select(Ir),Wi=Er(Ir);Zi(),at(kt),mi.on(Z,null).on(ye,Zi);function ni(){var ql=e.touches(Ir);return Za=v.k,ql.forEach(function(Kn){Kn.identifier in Ct&&(Ct[Kn.identifier]=Le(Kn))}),ql}function Zi(){var ql=e.event.target;e.select(ql).on(Jn,Ff).on(pi,FY),qi.push(ql);for(var Kn=e.event.changedTouches,Oo=0,As=Kn.length;Oo<As;++Oo)Ct[Kn[Oo].identifier]=null;var Uo=ni(),c1=Date.now();if(Uo.length===1){if(c1-qe<500){var Ef=Uo[0];Xr(Ir,Ef,Ct[Ef.identifier],Math.floor(Math.log(v.k)/Math.LN2)+1),Me()}qe=c1}else if(Uo.length>1){var Ef=Uo[0],f0=Uo[1],Md=Ef[0]-f0[0],S_=Ef[1]-f0[1];aa=Md*Md+S_*S_}}function Ff(){var ql=e.touches(Ir),Kn,Oo,As,Uo;yt.call(Ir);for(var c1=0,Ef=ql.length;c1<Ef;++c1,Uo=null)if(As=ql[c1],Uo=Ct[As.identifier]){if(Oo)break;Kn=As,Oo=Uo}if(Uo){var f0=(f0=As[0]-Kn[0])*f0+(f0=As[1]-Kn[1])*f0,Md=aa&&Math.sqrt(f0/aa);Kn=[(Kn[0]+As[0])/2,(Kn[1]+As[1])/2],Oo=[(Oo[0]+Uo[0])/2,(Oo[1]+Uo[1])/2],Yr(Md*Za)}qe=null,Zr(Kn,Oo),Tt(kt)}function FY(){if(e.event.touches.length){for(var ql=e.event.changedTouches,Kn=0,Oo=ql.length;Kn<Oo;++Kn)delete Ct[ql[Kn].identifier];for(var As in Ct)return void ni()}e.selectAll(qi).on(Mn,null),mi.on(Z,bt).on(ye,ta),Wi(),it(kt)}}function sn(){var Ir=Ye.of(this,arguments);ge?clearTimeout(ge):(yt.call(this),g=Le(w=S||e.mouse(this)),at(Ir)),ge=setTimeout(function(){ge=null,it(Ir)},50),Me(),Yr(Math.pow(2,Jr()*.002)*v.k),Zr(w,g),Tt(Ir)}function ca(){var Ir=e.mouse(this),kt=Math.log(v.k)/Math.LN2;Xr(this,Ir,Le(Ir),e.event.shiftKey?Math.ceil(kt)-1:Math.floor(kt)+1)}return e.rebind(Ve,Ye,"on")};var Wn=[0,1/0],Jr,ua;e.color=zt;function zt(){}zt.prototype.toString=function(){return this.rgb()+""},e.hsl=ga;function ga(v,g,w){return this instanceof ga?(this.h=+v,this.s=+g,void(this.l=+w)):arguments.length<2?v instanceof ga?new ga(v.h,v.s,v.l):ns(""+v,is,ga):new ga(v,g,w)}var ba=ga.prototype=new zt;ba.brighter=function(v){return v=Math.pow(.7,arguments.length?v:1),new ga(this.h,this.s,this.l/v)},ba.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new ga(this.h,this.s,v*this.l)},ba.rgb=function(){return _a(this.h,this.s,this.l)};function _a(v,g,w){var S,F;v=isNaN(v)?0:(v%=360)<0?v+360:v,g=isNaN(g)||g<0?0:g>1?1:g,w=w<0?0:w>1?1:w,F=w<=.5?w*(1+g):w+g-w*g,S=2*w-F;function L(N){return N>360?N-=360:N<0&&(N+=360),N<60?S+(F-S)*N/60:N<180?F:N<240?S+(F-S)*(240-N)/60:S}function Y(N){return Math.round(L(N)*255)}return new rn(Y(v+120),Y(v),Y(v-120))}e.hcl=Vt;function Vt(v,g,w){return this instanceof Vt?(this.h=+v,this.c=+g,void(this.l=+w)):arguments.length<2?v instanceof Vt?new Vt(v.h,v.c,v.l):v instanceof ya?as(v.l,v.a,v.b):as((v=Ks((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new Vt(v,g,w)}var Na=Vt.prototype=new zt;Na.brighter=function(v){return new Vt(this.h,this.c,Math.min(100,this.l+na*(arguments.length?v:1)))},Na.darker=function(v){return new Vt(this.h,this.c,Math.max(0,this.l-na*(arguments.length?v:1)))},Na.rgb=function(){return wn(this.h,this.c,this.l).rgb()};function wn(v,g,w){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new ya(w,Math.cos(v*=Pe)*g,Math.sin(v)*g)}e.lab=ya;function ya(v,g,w){return this instanceof ya?(this.l=+v,this.a=+g,void(this.b=+w)):arguments.length<2?v instanceof ya?new ya(v.l,v.a,v.b):v instanceof Vt?wn(v.h,v.c,v.l):Ks((v=rn(v)).r,v.g,v.b):new ya(v,g,w)}var na=18,Ea=.95047,Da=1,Eo=1.08883,Bi=ya.prototype=new zt;Bi.brighter=function(v){return new ya(Math.min(100,this.l+na*(arguments.length?v:1)),this.a,this.b)},Bi.darker=function(v){return new ya(Math.max(0,this.l-na*(arguments.length?v:1)),this.a,this.b)},Bi.rgb=function(){return $s(this.l,this.a,this.b)};function $s(v,g,w){var S=(v+16)/116,F=S+g/500,L=S-w/200;return F=vl(F)*Ea,S=vl(S)*Da,L=vl(L)*Eo,new rn(hl(3.2404542*F-1.5371385*S-.4985314*L),hl(-.969266*F+1.8760108*S+.041556*L),hl(.0556434*F-.2040259*S+1.0572252*L))}function as(v,g,w){return v>0?new Vt(Math.atan2(w,g)*ur,Math.sqrt(g*g+w*w),v):new Vt(NaN,NaN,v)}function vl(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function Js(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function hl(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=rn;function rn(v,g,w){return this instanceof rn?(this.r=~~v,this.g=~~g,void(this.b=~~w)):arguments.length<2?v instanceof rn?new rn(v.r,v.g,v.b):ns(""+v,rn,_a):new rn(v,g,w)}function Ii(v){return new rn(v>>16,v>>8&255,v&255)}function dl(v){return Ii(v)+""}var Hi=rn.prototype=new zt;Hi.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,w=this.g,S=this.b,F=30;return!g&&!w&&!S?new rn(F,F,F):(g&&g<F&&(g=F),w&&w<F&&(w=F),S&&S<F&&(S=F),new rn(Math.min(255,g/v),Math.min(255,w/v),Math.min(255,S/v)))},Hi.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new rn(v*this.r,v*this.g,v*this.b)},Hi.hsl=function(){return is(this.r,this.g,this.b)},Hi.toString=function(){return"#"+Si(this.r)+Si(this.g)+Si(this.b)};function Si(v){return v<16?"0"+Math.max(0,v).toString(16):Math.min(255,v).toString(16)}function ns(v,g,w){var S=0,F=0,L=0,Y,N,Z;if(Y=/([a-z]+)\((.*)\)/.exec(v=v.toLowerCase()),Y)switch(N=Y[2].split(","),Y[1]){case"hsl":return w(parseFloat(N[0]),parseFloat(N[1])/100,parseFloat(N[2])/100);case"rgb":return g(Qs(N[0]),Qs(N[1]),Qs(N[2]))}return(Z=ot.get(v))?g(Z.r,Z.g,Z.b):(v!=null&&v.charAt(0)==="#"&&!isNaN(Z=parseInt(v.slice(1),16))&&(v.length===4?(S=(Z&3840)>>4,S=S>>4|S,F=Z&240,F=F>>4|F,L=Z&15,L=L<<4|L):v.length===7&&(S=(Z&16711680)>>16,F=(Z&65280)>>8,L=Z&255)),g(S,F,L))}function is(v,g,w){var S=Math.min(v/=255,g/=255,w/=255),F=Math.max(v,g,w),L=F-S,Y,N,Z=(F+S)/2;return L?(N=Z<.5?L/(F+S):L/(2-F-S),v==F?Y=(g-w)/L+(g<w?6:0):g==F?Y=(w-v)/L+2:Y=(v-g)/L+4,Y*=60):(Y=NaN,N=Z>0&&Z<1?0:Y),new ga(Y,N,Z)}function Ks(v,g,w){v=os(v),g=os(g),w=os(w);var S=Js((.4124564*v+.3575761*g+.1804375*w)/Ea),F=Js((.2126729*v+.7151522*g+.072175*w)/Da),L=Js((.0193339*v+.119192*g+.9503041*w)/Eo);return ya(116*F-16,500*(S-F),200*(F-L))}function os(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function Qs(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var ot=e.map({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});ot.forEach(function(v,g){ot.set(v,Ii(g))});function st(v){return typeof v=="function"?v:function(){return v}}e.functor=st,e.xhr=Gt(H);function Gt(v){return function(g,w,S){return arguments.length===2&&typeof w=="function"&&(S=w,w=null),Ur(g,w,v,S)}}function Ur(v,g,w,S){var F={},L=e.dispatch("beforesend","progress","load","error"),Y={},N=new XMLHttpRequest,Z=null;self.XDomainRequest&&!("withCredentials"in N)&&/^(http(s)?:)?\/\//.test(v)&&(N=new XDomainRequest),"onload"in N?N.onload=N.onerror=ae:N.onreadystatechange=function(){N.readyState>3&&ae()};function ae(){var ne=N.status,ge;if(!ne&&oa(N)||ne>=200&&ne<300||ne===304){try{ge=w.call(F,N)}catch(ye){L.error.call(F,ye);return}L.load.call(F,ge)}else L.error.call(F,N)}return N.onprogress=function(ne){var ge=e.event;e.event=ne;try{L.progress.call(F,N)}finally{e.event=ge}},F.header=function(ne,ge){return ne=(ne+"").toLowerCase(),arguments.length<2?Y[ne]:(ge==null?delete Y[ne]:Y[ne]=ge+"",F)},F.mimeType=function(ne){return arguments.length?(g=ne==null?null:ne+"",F):g},F.responseType=function(ne){return arguments.length?(Z=ne,F):Z},F.response=function(ne){return w=ne,F},["get","post"].forEach(function(ne){F[ne]=function(){return F.send.apply(F,[ne].concat(t(arguments)))}}),F.send=function(ne,ge,ye){if(arguments.length===2&&typeof ge=="function"&&(ye=ge,ge=null),N.open(ne,v,!0),g!=null&&!("accept"in Y)&&(Y.accept=g+",*/*"),N.setRequestHeader)for(var qe in Y)N.setRequestHeader(qe,Y[qe]);return g!=null&&N.overrideMimeType&&N.overrideMimeType(g),Z!=null&&(N.responseType=Z),ye!=null&&F.on("error",ye).on("load",function(Ye){ye(null,Ye)}),L.beforesend.call(F,N),N.send(ge==null?null:ge),F},F.abort=function(){return N.abort(),F},e.rebind(F,L,"on"),S==null?F:F.get(gn(S))}function gn(v){return v.length===1?function(g,w){v(g==null?w:null)}:v}function oa(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var w=new RegExp('["'+v+`
]`),S=v.charCodeAt(0);function F(ae,ne,ge){arguments.length<3&&(ge=ne,ne=null);var ye=Ur(ae,g,ne==null?L:Y(ne),ge);return ye.row=function(qe){return arguments.length?ye.response((ne=qe)==null?L:Y(qe)):ne},ye}function L(ae){return F.parse(ae.responseText)}function Y(ae){return function(ne){return F.parse(ne.responseText,ae)}}F.parse=function(ae,ne){var ge;return F.parseRows(ae,function(ye,qe){if(ge)return ge(ye,qe-1);var Ye=function(be){for(var Ce={},Fe=ye.length,Ge=0;Ge<Fe;++Ge)Ce[ye[Ge]]=be[Ge];return Ce};ge=ne?function(be,Ce){return ne(Ye(be),Ce)}:Ye})},F.parseRows=function(ae,ne){var ge={},ye={},qe=[],Ye=ae.length,be=0,Ce=0,Fe,Ge;function Ve(){if(be>=Ye)return ye;if(Ge)return Ge=!1,ge;var wr=be;if(ae.charCodeAt(wr)===34){for(var Yr=wr;Yr++<Ye;)if(ae.charCodeAt(Yr)===34){if(ae.charCodeAt(Yr+1)!==34)break;++Yr}be=Yr+2;var Zr=ae.charCodeAt(Yr+1);return Zr===13?(Ge=!0,ae.charCodeAt(Yr+2)===10&&++be):Zr===10&&(Ge=!0),ae.slice(wr+1,Yr).replace(/""/g,'"')}for(;be<Ye;){var Zr=ae.charCodeAt(be++),Xr=1;if(Zr===10)Ge=!0;else if(Zr===13)Ge=!0,ae.charCodeAt(be)===10&&(++be,++Xr);else if(Zr!==S)continue;return ae.slice(wr,be-Xr)}return ae.slice(wr)}for(;(Fe=Ve())!==ye;){for(var Le=[];Fe!==ge&&Fe!==ye;)Le.push(Fe),Fe=Ve();ne&&(Le=ne(Le,Ce++))==null||qe.push(Le)}return qe},F.format=function(ae){if(Array.isArray(ae[0]))return F.formatRows(ae);var ne=new V,ge=[];return ae.forEach(function(ye){for(var qe in ye)ne.has(qe)||ge.push(ne.add(qe))}),[ge.map(Z).join(v)].concat(ae.map(function(ye){return ge.map(function(qe){return Z(ye[qe])}).join(v)})).join(`
`)},F.formatRows=function(ae){return ae.map(N).join(`
`)};function N(ae){return ae.map(Z).join(v)}function Z(ae){return w.test(ae)?'"'+ae.replace(/\"/g,'""')+'"':ae}return F},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Ga,Xa,Un,pl,ls=this[oe(this,"requestAnimationFrame")]||function(v){setTimeout(v,17)};e.timer=function(){ss.apply(this,arguments)};function ss(v,g,w){var S=arguments.length;S<2&&(g=0),S<3&&(w=Date.now());var F=w+g,L={c:v,t:F,n:null};return Xa?Xa.n=L:Ga=L,Xa=L,Un||(pl=clearTimeout(pl),Un=1,ls(Oi)),L}function Oi(){var v=Lo(),g=ml()-v;g>24?(isFinite(g)&&(clearTimeout(pl),pl=setTimeout(Oi,g)),Un=0):(Un=1,ls(Oi))}e.timer.flush=function(){Lo(),ml()};function Lo(){for(var v=Date.now(),g=Ga;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function ml(){for(var v,g=Ga,w=1/0;g;)g.c?(g.t<w&&(w=g.t),g=(v=g).n):g=v?v.n=g.n:Ga=g.n;return Xa=v,w}e.round=function(v,g){return g?Math.round(v*(g=Math.pow(10,g)))/g:Math.round(v)},e.geom={};function us(v){return v[0]}function eu(v){return v[1]}e.geom.hull=function(v){var g=us,w=eu;if(arguments.length)return S(v);function S(F){if(F.length<3)return[];var L=st(g),Y=st(w),N,Z=F.length,ae=[],ne=[];for(N=0;N<Z;N++)ae.push([+L.call(this,F[N],N),+Y.call(this,F[N],N),N]);for(ae.sort(Uc),N=0;N<Z;N++)ne.push([ae[N][0],-ae[N][1]]);var ge=of(ae),ye=of(ne),qe=ye[0]===ge[0],Ye=ye[ye.length-1]===ge[ge.length-1],be=[];for(N=ge.length-1;N>=0;--N)be.push(F[ae[ge[N]][2]]);for(N=+qe;N<ye.length-Ye;++N)be.push(F[ae[ye[N]][2]]);return be}return S.x=function(F){return arguments.length?(g=F,S):g},S.y=function(F){return arguments.length?(w=F,S):w},S};function of(v){for(var g=v.length,w=[0,1],S=2,F=2;F<g;F++){for(;S>1&&It(v[w[S-2]],v[w[S-1]],v[F])<=0;)--S;w[S++]=F}return w.slice(0,S)}function Uc(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return ke(v,ru),v};var ru=e.geom.polygon.prototype=[];ru.area=function(){for(var v=-1,g=this.length,w,S=this[g-1],F=0;++v<g;)w=S,S=this[v],F+=w[1]*S[0]-w[0]*S[1];return F*.5},ru.centroid=function(v){var g=-1,w=this.length,S=0,F=0,L,Y=this[w-1],N;for(arguments.length||(v=-1/(6*this.area()));++g<w;)L=Y,Y=this[g],N=L[0]*Y[1]-Y[0]*L[1],S+=(L[0]+Y[0])*N,F+=(L[1]+Y[1])*N;return[S*v,F*v]},ru.clip=function(v){for(var g,w=gl(v),S=-1,F=this.length-gl(this),L,Y,N=this[F-1],Z,ae,ne;++S<F;){for(g=v.slice(),v.length=0,Z=this[S],ae=g[(Y=g.length-w)-1],L=-1;++L<Y;)ne=g[L],tu(ne,N,Z)?(tu(ae,N,Z)||v.push(au(ae,ne,N,Z)),v.push(ne)):tu(ae,N,Z)&&v.push(au(ae,ne,N,Z)),ae=ne;w&&v.push(v[0]),N=Z}return v};function tu(v,g,w){return(w[0]-g[0])*(v[1]-g[1])<(w[1]-g[1])*(v[0]-g[0])}function au(v,g,w,S){var F=v[0],L=w[0],Y=g[0]-F,N=S[0]-L,Z=v[1],ae=w[1],ne=g[1]-Z,ge=S[1]-ae,ye=(N*(Z-ae)-ge*(F-L))/(ge*Y-N*ne);return[F+ye*Y,Z+ye*ne]}function gl(v){var g=v[0],w=v[v.length-1];return!(g[0]-w[0]||g[1]-w[1])}var qo,Po,oo,lf=[],ju,fs,sf=[];function Gc(){xl(this),this.edge=this.site=this.circle=null}function nu(v){var g=lf.pop()||new Gc;return g.site=v,g}function lo(v){zo(v),oo.remove(v),lf.push(v),xl(v)}function iu(v){var g=v.circle,w=g.x,S=g.cy,F={x:w,y:S},L=v.P,Y=v.N,N=[v];lo(v);for(var Z=L;Z.circle&&b(w-Z.circle.x)<vr&&b(S-Z.circle.cy)<vr;)L=Z.P,N.unshift(Z),lo(Z),Z=L;N.unshift(Z),zo(Z);for(var ae=Y;ae.circle&&b(w-ae.circle.x)<vr&&b(S-ae.circle.cy)<vr;)Y=ae.N,N.push(ae),lo(ae),ae=Y;N.push(ae),zo(ae);var ne=N.length,ge;for(ge=1;ge<ne;++ge)ae=N[ge],Z=N[ge-1],uo(ae.edge,Z.site,ae.site,F);Z=N[0],ae=N[ne-1],ae.edge=vs(Z.site,ae.site,null,F),Ro(Z),Ro(ae)}function Yc(v){for(var g=v.x,w=v.y,S,F,L,Y,N=oo._;N;)if(L=ou(N,w)-g,L>vr)N=N.L;else if(Y=g-B2(N,w),Y>vr){if(!N.R){S=N;break}N=N.R}else{L>-vr?(S=N.P,F=N):Y>-vr?(S=N,F=N.N):S=F=N;break}var Z=nu(v);if(oo.insert(S,Z),!(!S&&!F)){if(S===F){zo(S),F=nu(S.site),oo.insert(Z,F),Z.edge=F.edge=vs(S.site,Z.site),Ro(S),Ro(F);return}if(!F){Z.edge=vs(S.site,Z.site);return}zo(S),zo(F);var ae=S.site,ne=ae.x,ge=ae.y,ye=v.x-ne,qe=v.y-ge,Ye=F.site,be=Ye.x-ne,Ce=Ye.y-ge,Fe=2*(ye*Ce-qe*be),Ge=ye*ye+qe*qe,Ve=be*be+Ce*Ce,Le={x:(Ce*Ge-qe*Ve)/Fe+ne,y:(ye*Ve-be*Ge)/Fe+ge};uo(F.edge,ae,Ye,Le),Z.edge=vs(ae,v,null,Le),F.edge=vs(v,Ye,null,Le),Ro(S),Ro(F)}}function ou(v,g){var w=v.site,S=w.x,F=w.y,L=F-g;if(!L)return S;var Y=v.P;if(!Y)return-1/0;w=Y.site;var N=w.x,Z=w.y,ae=Z-g;if(!ae)return N;var ne=N-S,ge=1/L-1/ae,ye=ne/ae;return ge?(-ye+Math.sqrt(ye*ye-2*ge*(ne*ne/(-2*ae)-Z+ae/2+F-L/2)))/ge+S:(S+N)/2}function B2(v,g){var w=v.N;if(w)return ou(w,g);var S=v.site;return S.y===g?S.x:1/0}function yl(v){this.site=v,this.edges=[]}yl.prototype.prepare=function(){for(var v=this.edges,g=v.length,w;g--;)w=v[g].edge,(!w.b||!w.a)&&v.splice(g,1);return v.sort(cs),v.length};function uf(v){for(var g=v[0][0],w=v[1][0],S=v[0][1],F=v[1][1],L,Y,N,Z,ae=Po,ne=ae.length,ge,ye,qe,Ye,be,Ce;ne--;)if(ge=ae[ne],!(!ge||!ge.prepare()))for(qe=ge.edges,Ye=qe.length,ye=0;ye<Ye;)Ce=qe[ye].end(),N=Ce.x,Z=Ce.y,be=qe[++ye%Ye].start(),L=be.x,Y=be.y,(b(N-L)>vr||b(Z-Y)>vr)&&(qe.splice(ye,0,new bl(H2(ge.site,Ce,b(N-g)<vr&&F-Z>vr?{x:g,y:b(L-g)<vr?Y:F}:b(Z-F)<vr&&w-N>vr?{x:b(Y-F)<vr?L:w,y:F}:b(N-w)<vr&&Z-S>vr?{x:w,y:b(L-w)<vr?Y:S}:b(Z-S)<vr&&N-g>vr?{x:b(Y-S)<vr?L:g,y:S}:null),ge.site,null)),++Ye)}function cs(v,g){return g.angle-v.angle}function Vc(){xl(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ro(v){var g=v.P,w=v.N;if(!(!g||!w)){var S=g.site,F=v.site,L=w.site;if(S!==L){var Y=F.x,N=F.y,Z=S.x-Y,ae=S.y-N,ne=L.x-Y,Ce=L.y-N,ge=2*(Z*Ce-ae*ne);if(!(ge>=-jr)){var ye=Z*Z+ae*ae,qe=ne*ne+Ce*Ce,Ye=(Ce*ye-ae*qe)/ge,be=(Z*qe-ne*ye)/ge,Ce=be+N,Fe=sf.pop()||new Vc;Fe.arc=v,Fe.site=F,Fe.x=Ye+Y,Fe.y=Ce+Math.sqrt(Ye*Ye+be*be),Fe.cy=Ce,v.circle=Fe;for(var Ge=null,Ve=fs._;Ve;)if(Fe.y<Ve.y||Fe.y===Ve.y&&Fe.x<=Ve.x)if(Ve.L)Ve=Ve.L;else{Ge=Ve.P;break}else if(Ve.R)Ve=Ve.R;else{Ge=Ve;break}fs.insert(Ge,Fe),Ge||(ju=Fe)}}}}function zo(v){var g=v.circle;g&&(g.P||(ju=g.N),fs.remove(g),sf.push(g),xl(g),v.circle=null)}function ff(v,g,w,S){return function(F){var L=F.a,Y=F.b,N=L.x,Z=L.y,ae=Y.x,ne=Y.y,ge=0,ye=1,qe=ae-N,Ye=ne-Z,be;if(be=v-N,!(!qe&&be>0)){if(be/=qe,qe<0){if(be<ge)return;be<ye&&(ye=be)}else if(qe>0){if(be>ye)return;be>ge&&(ge=be)}if(be=w-N,!(!qe&&be<0)){if(be/=qe,qe<0){if(be>ye)return;be>ge&&(ge=be)}else if(qe>0){if(be<ge)return;be<ye&&(ye=be)}if(be=g-Z,!(!Ye&&be>0)){if(be/=Ye,Ye<0){if(be<ge)return;be<ye&&(ye=be)}else if(Ye>0){if(be>ye)return;be>ge&&(ge=be)}if(be=S-Z,!(!Ye&&be<0)){if(be/=Ye,Ye<0){if(be>ye)return;be>ge&&(ge=be)}else if(Ye>0){if(be<ge)return;be<ye&&(ye=be)}return ge>0&&(F.a={x:N+ge*qe,y:Z+ge*Ye}),ye<1&&(F.b={x:N+ye*qe,y:Z+ye*Ye}),F}}}}}}function Ui(v){for(var g=qo,w=ff(v[0][0],v[0][1],v[1][0],v[1][1]),S=g.length,F;S--;)F=g[S],(!I2(F,v)||!w(F)||b(F.a.x-F.b.x)<vr&&b(F.a.y-F.b.y)<vr)&&(F.a=F.b=null,g.splice(S,1))}function I2(v,g){var w=v.b;if(w)return!0;var S=v.a,F=g[0][0],L=g[1][0],Y=g[0][1],N=g[1][1],Z=v.l,ae=v.r,ne=Z.x,ge=Z.y,ye=ae.x,qe=ae.y,Ye=(ne+ye)/2,be=(ge+qe)/2,Ce,Fe;if(qe===ge){if(Ye<F||Ye>=L)return;if(ne>ye){if(!S)S={x:Ye,y:Y};else if(S.y>=N)return;w={x:Ye,y:N}}else{if(!S)S={x:Ye,y:N};else if(S.y<Y)return;w={x:Ye,y:Y}}}else if(Ce=(ne-ye)/(qe-ge),Fe=be-Ce*Ye,Ce<-1||Ce>1)if(ne>ye){if(!S)S={x:(Y-Fe)/Ce,y:Y};else if(S.y>=N)return;w={x:(N-Fe)/Ce,y:N}}else{if(!S)S={x:(N-Fe)/Ce,y:N};else if(S.y<Y)return;w={x:(Y-Fe)/Ce,y:Y}}else if(ge<qe){if(!S)S={x:F,y:Ce*F+Fe};else if(S.x>=L)return;w={x:L,y:Ce*L+Fe}}else{if(!S)S={x:L,y:Ce*L+Fe};else if(S.x<F)return;w={x:F,y:Ce*F+Fe}}return v.a=S,v.b=w,!0}function so(v,g){this.l=v,this.r=g,this.a=this.b=null}function vs(v,g,w,S){var F=new so(v,g);return qo.push(F),w&&uo(F,v,g,w),S&&uo(F,g,v,S),Po[v.i].edges.push(new bl(F,v,g)),Po[g.i].edges.push(new bl(F,g,v)),F}function H2(v,g,w){var S=new so(v,null);return S.a=g,S.b=w,qo.push(S),S}function uo(v,g,w,S){!v.a&&!v.b?(v.a=S,v.l=g,v.r=w):v.l===w?v.b=S:v.a=S}function bl(v,g,w){var S=v.a,F=v.b;this.edge=v,this.site=g,this.angle=w?Math.atan2(w.y-g.y,w.x-g.x):v.l===g?Math.atan2(F.x-S.x,S.y-F.y):Math.atan2(S.x-F.x,F.y-S.y)}bl.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function _l(){this._=null}function xl(v){v.U=v.C=v.L=v.R=v.P=v.N=null}_l.prototype={insert:function(v,g){var w,S,F;if(v){if(g.P=v,g.N=v.N,v.N&&(v.N.P=g),v.N=g,v.R){for(v=v.R;v.L;)v=v.L;v.L=g}else v.R=g;w=v}else this._?(v=Wu(this._),g.P=null,g.N=v,v.P=v.L=g,w=v):(g.P=g.N=null,this._=g,w=null);for(g.L=g.R=null,g.U=w,g.C=!0,v=g;w&&w.C;)S=w.U,w===S.L?(F=S.R,F&&F.C?(w.C=F.C=!1,S.C=!0,v=S):(v===w.R&&(No(this,w),v=w,w=v.U),w.C=!1,S.C=!0,lu(this,S))):(F=S.L,F&&F.C?(w.C=F.C=!1,S.C=!0,v=S):(v===w.L&&(lu(this,w),v=w,w=v.U),w.C=!1,S.C=!0,No(this,S))),w=v.U;this._.C=!1},remove:function(v){v.N&&(v.N.P=v.P),v.P&&(v.P.N=v.N),v.N=v.P=null;var g=v.U,w,S=v.L,F=v.R,L,Y;if(S?F?L=Wu(F):L=S:L=F,g?g.L===v?g.L=L:g.R=L:this._=L,S&&F?(Y=L.C,L.C=v.C,L.L=S,S.U=L,L!==F?(g=L.U,L.U=v.U,v=L.R,g.L=v,L.R=F,F.U=L):(L.U=g,g=L,v=L.R)):(Y=v.C,v=L),v&&(v.U=g),!Y){if(v&&v.C){v.C=!1;return}do{if(v===this._)break;if(v===g.L){if(w=g.R,w.C&&(w.C=!1,g.C=!0,No(this,g),w=g.R),w.L&&w.L.C||w.R&&w.R.C){(!w.R||!w.R.C)&&(w.L.C=!1,w.C=!0,lu(this,w),w=g.R),w.C=g.C,g.C=w.R.C=!1,No(this,g),v=this._;break}}else if(w=g.L,w.C&&(w.C=!1,g.C=!0,lu(this,g),w=g.L),w.L&&w.L.C||w.R&&w.R.C){(!w.L||!w.L.C)&&(w.R.C=!1,w.C=!0,No(this,w),w=g.L),w.C=g.C,g.C=w.L.C=!1,lu(this,g),v=this._;break}w.C=!0,v=g,g=g.U}while(!v.C);v&&(v.C=!1)}}};function No(v,g){var w=g,S=g.R,F=w.U;F?F.L===w?F.L=S:F.R=S:v._=S,S.U=F,w.U=S,w.R=S.L,w.R&&(w.R.U=w),S.L=w}function lu(v,g){var w=g,S=g.L,F=w.U;F?F.L===w?F.L=S:F.R=S:v._=S,S.U=F,w.U=S,w.L=S.R,w.L&&(w.L.U=w),S.R=w}function Wu(v){for(;v.L;)v=v.L;return v}function su(v,g){var w=v.sort(uu).pop(),S,F,L;for(qo=[],Po=new Array(v.length),oo=new _l,fs=new _l;;)if(L=ju,w&&(!L||w.y<L.y||w.y===L.y&&w.x<L.x))(w.x!==S||w.y!==F)&&(Po[w.i]=new yl(w),Yc(w),S=w.x,F=w.y),w=v.pop();else if(L)iu(L.arc);else break;g&&(Ui(g),uf(g));var Y={cells:Po,edges:qo};return oo=fs=qo=Po=null,Y}function uu(v,g){return g.y-v.y||g.x-v.x}e.geom.voronoi=function(v){var g=us,w=eu,S=g,F=w,L=wl;if(v)return Y(v);function Y(Z){var ae=new Array(Z.length),ne=L[0][0],ge=L[0][1],ye=L[1][0],qe=L[1][1];return su(N(Z),L).cells.forEach(function(Ye,be){var Ce=Ye.edges,Fe=Ye.site,Ge=ae[be]=Ce.length?Ce.map(function(Ve){var Le=Ve.start();return[Le.x,Le.y]}):Fe.x>=ne&&Fe.x<=ye&&Fe.y>=ge&&Fe.y<=qe?[[ne,qe],[ye,qe],[ye,ge],[ne,ge]]:[];Ge.point=Z[be]}),ae}function N(Z){return Z.map(function(ae,ne){return{x:Math.round(S(ae,ne)/vr)*vr,y:Math.round(F(ae,ne)/vr)*vr,i:ne}})}return Y.links=function(Z){return su(N(Z)).edges.filter(function(ae){return ae.l&&ae.r}).map(function(ae){return{source:Z[ae.l.i],target:Z[ae.r.i]}})},Y.triangles=function(Z){var ae=[];return su(N(Z)).cells.forEach(function(ne,ge){for(var ye=ne.site,qe=ne.edges.sort(cs),Ye=-1,be=qe.length,Ce,Fe,Ge=qe[be-1].edge,Ve=Ge.l===ye?Ge.r:Ge.l;++Ye<be;)Ce=Ge,Fe=Ve,Ge=qe[Ye].edge,Ve=Ge.l===ye?Ge.r:Ge.l,ge<Fe.i&&ge<Ve.i&&hs(ye,Fe,Ve)<0&&ae.push([Z[ge],Z[Fe.i],Z[Ve.i]])}),ae},Y.x=function(Z){return arguments.length?(S=st(g=Z),Y):g},Y.y=function(Z){return arguments.length?(F=st(w=Z),Y):w},Y.clipExtent=function(Z){return arguments.length?(L=Z==null?wl:Z,Y):L===wl?null:L},Y.size=function(Z){return arguments.length?Y.clipExtent(Z&&[[0,0],Z]):L===wl?null:L&&L[1]},Y};var wl=[[-1e6,-1e6],[1e6,1e6]];function hs(v,g,w){return(v.x-w.x)*(g.y-v.y)-(v.x-g.x)*(w.y-v.y)}e.geom.delaunay=function(v){return e.geom.voronoi().triangles(v)},e.geom.quadtree=function(v,g,w,S,F){var L=us,Y=eu,N;if(N=arguments.length)return L=ds,Y=Zu,N===3&&(F=w,S=g,w=g=0),Z(v);function Z(ae){var ne,ge=st(L),ye=st(Y),qe,Ye,be,Ce,Fe,Ge,Ve,Le;if(g!=null)Fe=g,Ge=w,Ve=S,Le=F;else if(Ve=Le=-(Fe=Ge=1/0),qe=[],Ye=[],Ce=ae.length,N)for(be=0;be<Ce;++be)ne=ae[be],ne.x<Fe&&(Fe=ne.x),ne.y<Ge&&(Ge=ne.y),ne.x>Ve&&(Ve=ne.x),ne.y>Le&&(Le=ne.y),qe.push(ne.x),Ye.push(ne.y);else for(be=0;be<Ce;++be){var wr=+ge(ne=ae[be],be),Yr=+ye(ne,be);wr<Fe&&(Fe=wr),Yr<Ge&&(Ge=Yr),wr>Ve&&(Ve=wr),Yr>Le&&(Le=Yr),qe.push(wr),Ye.push(Yr)}var Zr=Ve-Fe,Xr=Le-Ge;Zr>Xr?Le=Ge+Zr:Ve=Fe+Xr;function tt(it,bt,ta,sn,ca,Ir,kt,Ct){if(!(isNaN(ta)||isNaN(sn)))if(it.leaf){var aa=it.x,Za=it.y;if(aa!=null)if(b(aa-ta)+b(Za-sn)<.01)at(it,bt,ta,sn,ca,Ir,kt,Ct);else{var Mn=it.point;it.x=it.y=it.point=null,at(it,Mn,aa,Za,ca,Ir,kt,Ct),at(it,bt,ta,sn,ca,Ir,kt,Ct)}else it.x=ta,it.y=sn,it.point=bt}else at(it,bt,ta,sn,ca,Ir,kt,Ct)}function at(it,bt,ta,sn,ca,Ir,kt,Ct){var aa=(ca+kt)*.5,Za=(Ir+Ct)*.5,Mn=ta>=aa,Jn=sn>=Za,pi=Jn<<1|Mn;it.leaf=!1,it=it.nodes[pi]||(it.nodes[pi]=$u()),Mn?ca=aa:kt=aa,Jn?Ir=Za:Ct=Za,tt(it,bt,ta,sn,ca,Ir,kt,Ct)}var Tt=$u();if(Tt.add=function(it){tt(Tt,it,+ge(it,++be),+ye(it,be),Fe,Ge,Ve,Le)},Tt.visit=function(it){Di(it,Tt,Fe,Ge,Ve,Le)},Tt.find=function(it){return Ju(Tt,it[0],it[1],Fe,Ge,Ve,Le)},be=-1,g==null){for(;++be<Ce;)tt(Tt,ae[be],qe[be],Ye[be],Fe,Ge,Ve,Le);--be}else ae.forEach(Tt.add);return qe=Ye=ae=ne=null,Tt}return Z.x=function(ae){return arguments.length?(L=ae,Z):L},Z.y=function(ae){return arguments.length?(Y=ae,Z):Y},Z.extent=function(ae){return arguments.length?(ae==null?g=w=S=F=null:(g=+ae[0][0],w=+ae[0][1],S=+ae[1][0],F=+ae[1][1]),Z):g==null?null:[[g,w],[S,F]]},Z.size=function(ae){return arguments.length?(ae==null?g=w=S=F=null:(g=w=0,S=+ae[0],F=+ae[1]),Z):g==null?null:[S-g,F-w]},Z};function ds(v){return v.x}function Zu(v){return v.y}function $u(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Di(v,g,w,S,F,L){if(!v(g,w,S,F,L)){var Y=(w+F)*.5,N=(S+L)*.5,Z=g.nodes;Z[0]&&Di(v,Z[0],w,S,Y,N),Z[1]&&Di(v,Z[1],Y,S,F,N),Z[2]&&Di(v,Z[2],w,N,Y,L),Z[3]&&Di(v,Z[3],Y,N,F,L)}}function Ju(v,g,w,S,F,L,Y){var N=1/0,Z;return(function ae(ne,ge,ye,qe,Ye){if(!(ge>L||ye>Y||qe<S||Ye<F)){if(be=ne.point){var be,Ce=g-ne.x,Fe=w-ne.y,Ge=Ce*Ce+Fe*Fe;if(Ge<N){var Ve=Math.sqrt(N=Ge);S=g-Ve,F=w-Ve,L=g+Ve,Y=w+Ve,Z=be}}for(var Le=ne.nodes,wr=(ge+qe)*.5,Yr=(ye+Ye)*.5,Zr=g>=wr,Xr=w>=Yr,tt=Xr<<1|Zr,at=tt+4;tt<at;++tt)if(ne=Le[tt&3])switch(tt&3){case 0:ae(ne,ge,ye,wr,Yr);break;case 1:ae(ne,wr,ye,qe,Yr);break;case 2:ae(ne,ge,Yr,wr,Ye);break;case 3:ae(ne,wr,Yr,qe,Ye);break}}})(v,S,F,L,Y),Z}e.interpolateRgb=Ku;function Ku(v,g){v=e.rgb(v),g=e.rgb(g);var w=v.r,S=v.g,F=v.b,L=g.r-w,Y=g.g-S,N=g.b-F;return function(Z){return"#"+Si(Math.round(w+L*Z))+Si(Math.round(S+Y*Z))+Si(Math.round(F+N*Z))}}e.interpolateObject=ti;function ti(v,g){var w={},S={},F;for(F in v)F in g?w[F]=Al(v[F],g[F]):S[F]=v[F];for(F in g)F in v||(S[F]=g[F]);return function(L){for(F in w)S[F]=w[F](L);return S}}e.interpolateNumber=yn;function yn(v,g){return v=+v,g=+g,function(w){return v*(1-w)+g*w}}e.interpolateString=Gn;function Gn(v,g){var w=fo.lastIndex=fu.lastIndex=0,S,F,L,Y=-1,N=[],Z=[];for(v=v+"",g=g+"";(S=fo.exec(v))&&(F=fu.exec(g));)(L=F.index)>w&&(L=g.slice(w,L),N[Y]?N[Y]+=L:N[++Y]=L),(S=S[0])===(F=F[0])?N[Y]?N[Y]+=F:N[++Y]=F:(N[++Y]=null,Z.push({i:Y,x:yn(S,F)})),w=fu.lastIndex;return w<g.length&&(L=g.slice(w),N[Y]?N[Y]+=L:N[++Y]=L),N.length<2?Z[0]?(g=Z[0].x,function(ae){return g(ae)+""}):function(){return g}:(g=Z.length,function(ae){for(var ne=0,ge;ne<g;++ne)N[(ge=Z[ne]).i]=ge.x(ae);return N.join("")})}var fo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fu=new RegExp(fo.source,"g");e.interpolate=Al;function Al(v,g){for(var w=e.interpolators.length,S;--w>=0&&!(S=e.interpolators[w](v,g)););return S}e.interpolators=[function(v,g){var w=typeof g;return(w==="string"?ot.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?Ku:Gn:g instanceof zt?Ku:Array.isArray(g)?ps:w==="object"&&isNaN(g)?ti:yn)(v,g)}],e.interpolateArray=ps;function ps(v,g){var w=[],S=[],F=v.length,L=g.length,Y=Math.min(v.length,g.length),N;for(N=0;N<Y;++N)w.push(Al(v[N],g[N]));for(;N<F;++N)S[N]=v[N];for(;N<L;++N)S[N]=g[N];return function(Z){for(N=0;N<Y;++N)S[N]=w[N](Z);return S}}var cf=function(){return H},Xc=e.map({linear:cf,poly:Wc,quad:function(){return df},cubic:function(){return pf},sin:function(){return cu},exp:function(){return vu},circle:function(){return Gi},elastic:Qu,back:hu,bounce:function(){return e0}}),O2=e.map({in:H,out:vf,"in-out":hf,"out-in":function(v){return hf(vf(v))}});e.ease=function(v){var g=v.indexOf("-"),w=g>=0?v.slice(0,g):v,S=g>=0?v.slice(g+1):"in";return w=Xc.get(w)||cf,S=O2.get(S)||H,U2(S(w.apply(null,r.call(arguments,1))))};function U2(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function vf(v){return function(g){return 1-v(1-g)}}function hf(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function df(v){return v*v}function pf(v){return v*v*v}function jc(v){if(v<=0)return 0;if(v>=1)return 1;var g=v*v,w=g*v;return 4*(v<.5?w:3*(v-g)+w-.75)}function Wc(v){return function(g){return Math.pow(g,v)}}function cu(v){return 1-Math.cos(v*Ae)}function vu(v){return Math.pow(2,10*(v-1))}function Gi(v){return 1-Math.sqrt(1-v*v)}function Qu(v,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/qr*Math.asin(1/v):(v=1,w=g/4),function(S){return 1+v*Math.pow(2,-10*S)*Math.sin((S-w)*qr/g)}}function hu(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function e0(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=Zc;function Zc(v,g){v=e.hcl(v),g=e.hcl(g);var w=v.h,S=v.c,F=v.l,L=g.h-w,Y=g.c-S,N=g.l-F;return isNaN(Y)&&(Y=0,S=isNaN(S)?g.c:S),isNaN(L)?(L=0,w=isNaN(w)?g.h:w):L>180?L-=360:L<-180&&(L+=360),function(Z){return wn(w+L*Z,S+Y*Z,F+N*Z)+""}}e.interpolateHsl=mf;function mf(v,g){v=e.hsl(v),g=e.hsl(g);var w=v.h,S=v.s,F=v.l,L=g.h-w,Y=g.s-S,N=g.l-F;return isNaN(Y)&&(Y=0,S=isNaN(S)?g.s:S),isNaN(L)?(L=0,w=isNaN(w)?g.h:w):L>180?L-=360:L<-180&&(L+=360),function(Z){return _a(w+L*Z,S+Y*Z,F+N*Z)+""}}e.interpolateLab=G2;function G2(v,g){v=e.lab(v),g=e.lab(g);var w=v.l,S=v.a,F=v.b,L=g.l-w,Y=g.a-S,N=g.b-F;return function(Z){return $s(w+L*Z,S+Y*Z,F+N*Z)+""}}e.interpolateRound=Bo;function Bo(v,g){return g-=v,function(w){return Math.round(v+g*w)}}e.transform=function(v){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var S=g.transform.baseVal.consolidate()}return new r0(S?S.matrix:gf)})(v)};function r0(v){var g=[v.a,v.b],w=[v.c,v.d],S=du(g),F=ms(g,w),L=du(pu(w,g,-F))||0;g[0]*w[1]<w[0]*g[1]&&(g[0]*=-1,g[1]*=-1,S*=-1,F*=-1),this.rotate=(S?Math.atan2(g[1],g[0]):Math.atan2(-w[0],w[1]))*ur,this.translate=[v.e,v.f],this.scale=[S,L],this.skew=L?Math.atan2(F,L)*ur:0}r0.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function ms(v,g){return v[0]*g[0]+v[1]*g[1]}function du(v){var g=Math.sqrt(ms(v,v));return g&&(v[0]/=g,v[1]/=g),g}function pu(v,g,w){return v[0]+=w*g[0],v[1]+=w*g[1],v}var gf={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=t0;function Io(v){return v.length?v.pop()+",":""}function $c(v,g,w,S){if(v[0]!==g[0]||v[1]!==g[1]){var F=w.push("translate(",null,",",null,")");S.push({i:F-4,x:yn(v[0],g[0])},{i:F-2,x:yn(v[1],g[1])})}else(g[0]||g[1])&&w.push("translate("+g+")")}function yf(v,g,w,S){v!==g?(v-g>180?g+=360:g-v>180&&(v+=360),S.push({i:w.push(Io(w)+"rotate(",null,")")-2,x:yn(v,g)})):g&&w.push(Io(w)+"rotate("+g+")")}function Jc(v,g,w,S){v!==g?S.push({i:w.push(Io(w)+"skewX(",null,")")-2,x:yn(v,g)}):g&&w.push(Io(w)+"skewX("+g+")")}function bf(v,g,w,S){if(v[0]!==g[0]||v[1]!==g[1]){var F=w.push(Io(w)+"scale(",null,",",null,")");S.push({i:F-4,x:yn(v[0],g[0])},{i:F-2,x:yn(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(Io(w)+"scale("+g+")")}function t0(v,g){var w=[],S=[];return v=e.transform(v),g=e.transform(g),$c(v.translate,g.translate,w,S),yf(v.rotate,g.rotate,w,S),Jc(v.skew,g.skew,w,S),bf(v.scale,g.scale,w,S),v=g=null,function(F){for(var L=-1,Y=S.length,N;++L<Y;)w[(N=S[L]).i]=N.x(F);return w.join("")}}function _f(v,g){return g=(g-=v=+v)||1/g,function(w){return(w-v)/g}}function xf(v,g){return g=(g-=v=+v)||1/g,function(w){return Math.max(0,Math.min(1,(w-v)/g))}}e.layout={},e.layout.bundle=function(){return function(v){for(var g=[],w=-1,S=v.length;++w<S;)g.push(Y2(v[w]));return g}};function Y2(v){for(var g=v.source,w=v.target,S=Yi(g,w),F=[g];g!==S;)g=g.parent,F.push(g);for(var L=F.length;w!==S;)F.splice(L,0,w),w=w.parent;return F}function wf(v){for(var g=[],w=v.parent;w!=null;)g.push(v),v=w,w=w.parent;return g.push(v),g}function Yi(v,g){if(v===g)return v;for(var w=wf(v),S=wf(g),F=w.pop(),L=S.pop(),Y=null;F===L;)Y=F,F=w.pop(),L=S.pop();return Y}e.layout.chord=function(){var v={},g,w,S,F,L=0,Y,N,Z;function ae(){var ge={},ye=[],qe=e.range(F),Ye=[],be,Ce,Fe,Ge,Ve;for(g=[],w=[],be=0,Ge=-1;++Ge<F;){for(Ce=0,Ve=-1;++Ve<F;)Ce+=S[Ge][Ve];ye.push(Ce),Ye.push(e.range(F)),be+=Ce}for(Y&&qe.sort(function(Tt,it){return Y(ye[Tt],ye[it])}),N&&Ye.forEach(function(Tt,it){Tt.sort(function(bt,ta){return N(S[it][bt],S[it][ta])})}),be=(qr-L*F)/be,Ce=0,Ge=-1;++Ge<F;){for(Fe=Ce,Ve=-1;++Ve<F;){var Le=qe[Ge],wr=Ye[Le][Ve],Yr=S[Le][wr],Zr=Ce,Xr=Ce+=Yr*be;ge[Le+"-"+wr]={index:Le,subindex:wr,startAngle:Zr,endAngle:Xr,value:Yr}}w[Le]={index:Le,startAngle:Fe,endAngle:Ce,value:ye[Le]},Ce+=L}for(Ge=-1;++Ge<F;)for(Ve=Ge-1;++Ve<F;){var tt=ge[Ge+"-"+Ve],at=ge[Ve+"-"+Ge];(tt.value||at.value)&&g.push(tt.value<at.value?{source:at,target:tt}:{source:tt,target:at})}Z&&ne()}function ne(){g.sort(function(ge,ye){return Z((ge.source.value+ge.target.value)/2,(ye.source.value+ye.target.value)/2)})}return v.matrix=function(ge){return arguments.length?(F=(S=ge)&&S.length,g=w=null,v):S},v.padding=function(ge){return arguments.length?(L=ge,g=w=null,v):L},v.sortGroups=function(ge){return arguments.length?(Y=ge,g=w=null,v):Y},v.sortSubgroups=function(ge){return arguments.length?(N=ge,g=null,v):N},v.sortChords=function(ge){return arguments.length?(Z=ge,g&&ne(),v):Z},v.chords=function(){return g||ae(),g},v.groups=function(){return w||ae(),w},v},e.layout.force=function(){var v={},g=e.dispatch("start","tick","end"),w,S=[1,1],F,L,Y=.9,N=Qc,Z=V2,ae=-30,ne=X2,ge=.1,ye=.64,qe=[],Ye=[],be,Ce,Fe;function Ge(Le){return function(wr,Yr,Zr,Xr){if(wr.point!==Le){var tt=wr.cx-Le.x,at=wr.cy-Le.y,Tt=Xr-Yr,it=tt*tt+at*at;if(Tt*Tt/ye<it){if(it<ne){var bt=wr.charge/it;Le.px-=tt*bt,Le.py-=at*bt}return!0}if(wr.point&&it&&it<ne){var bt=wr.pointCharge/it;Le.px-=tt*bt,Le.py-=at*bt}}return!wr.charge}}v.tick=function(){if((L*=.99)<.005)return w=null,g.end({type:"end",alpha:L=0}),!0;var Le=qe.length,wr=Ye.length,Yr,Zr,Xr,tt,at,Tt,it,bt,ta;for(Zr=0;Zr<wr;++Zr)Xr=Ye[Zr],tt=Xr.source,at=Xr.target,bt=at.x-tt.x,ta=at.y-tt.y,(Tt=bt*bt+ta*ta)&&(Tt=L*Ce[Zr]*((Tt=Math.sqrt(Tt))-be[Zr])/Tt,bt*=Tt,ta*=Tt,at.x-=bt*(it=tt.weight+at.weight?tt.weight/(tt.weight+at.weight):.5),at.y-=ta*it,tt.x+=bt*(it=1-it),tt.y+=ta*it);if((it=L*ge)&&(bt=S[0]/2,ta=S[1]/2,Zr=-1,it))for(;++Zr<Le;)Xr=qe[Zr],Xr.x+=(bt-Xr.x)*it,Xr.y+=(ta-Xr.y)*it;if(ae)for(Ml(Yr=e.geom.quadtree(qe),L,Fe),Zr=-1;++Zr<Le;)(Xr=qe[Zr]).fixed||Yr.visit(Ge(Xr));for(Zr=-1;++Zr<Le;)Xr=qe[Zr],Xr.fixed?(Xr.x=Xr.px,Xr.y=Xr.py):(Xr.x-=(Xr.px-(Xr.px=Xr.x))*Y,Xr.y-=(Xr.py-(Xr.py=Xr.y))*Y);g.tick({type:"tick",alpha:L})},v.nodes=function(Le){return arguments.length?(qe=Le,v):qe},v.links=function(Le){return arguments.length?(Ye=Le,v):Ye},v.size=function(Le){return arguments.length?(S=Le,v):S},v.linkDistance=function(Le){return arguments.length?(N=typeof Le=="function"?Le:+Le,v):N},v.distance=v.linkDistance,v.linkStrength=function(Le){return arguments.length?(Z=typeof Le=="function"?Le:+Le,v):Z},v.friction=function(Le){return arguments.length?(Y=+Le,v):Y},v.charge=function(Le){return arguments.length?(ae=typeof Le=="function"?Le:+Le,v):ae},v.chargeDistance=function(Le){return arguments.length?(ne=Le*Le,v):Math.sqrt(ne)},v.gravity=function(Le){return arguments.length?(ge=+Le,v):ge},v.theta=function(Le){return arguments.length?(ye=Le*Le,v):Math.sqrt(ye)},v.alpha=function(Le){return arguments.length?(Le=+Le,L?Le>0?L=Le:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:L=0})):Le>0&&(g.start({type:"start",alpha:L=Le}),w=ss(v.tick)),v):L},v.start=function(){var Le,wr=qe.length,Yr=Ye.length,Zr=S[0],Xr=S[1],tt,at;for(Le=0;Le<wr;++Le)(at=qe[Le]).index=Le,at.weight=0;for(Le=0;Le<Yr;++Le)at=Ye[Le],typeof at.source=="number"&&(at.source=qe[at.source]),typeof at.target=="number"&&(at.target=qe[at.target]),++at.source.weight,++at.target.weight;for(Le=0;Le<wr;++Le)at=qe[Le],isNaN(at.x)&&(at.x=Tt("x",Zr)),isNaN(at.y)&&(at.y=Tt("y",Xr)),isNaN(at.px)&&(at.px=at.x),isNaN(at.py)&&(at.py=at.y);if(be=[],typeof N=="function")for(Le=0;Le<Yr;++Le)be[Le]=+N.call(this,Ye[Le],Le);else for(Le=0;Le<Yr;++Le)be[Le]=N;if(Ce=[],typeof Z=="function")for(Le=0;Le<Yr;++Le)Ce[Le]=+Z.call(this,Ye[Le],Le);else for(Le=0;Le<Yr;++Le)Ce[Le]=Z;if(Fe=[],typeof ae=="function")for(Le=0;Le<wr;++Le)Fe[Le]=+ae.call(this,qe[Le],Le);else for(Le=0;Le<wr;++Le)Fe[Le]=ae;function Tt(it,bt){if(!tt){for(tt=new Array(wr),ca=0;ca<wr;++ca)tt[ca]=[];for(ca=0;ca<Yr;++ca){var ta=Ye[ca];tt[ta.source.index].push(ta.target),tt[ta.target.index].push(ta.source)}}for(var sn=tt[Le],ca=-1,Ir=sn.length,kt;++ca<Ir;)if(!isNaN(kt=sn[ca][it]))return kt;return Math.random()*bt}return v.resume()},v.resume=function(){return v.alpha(.1)},v.stop=function(){return v.alpha(0)},v.drag=function(){if(F||(F=e.behavior.drag().origin(H).on("dragstart.force",Af).on("drag.force",Ve).on("dragend.force",gs)),!arguments.length)return F;this.on("mouseover.force",Mf).on("mouseout.force",Kc).call(F)};function Ve(Le){Le.px=e.event.x,Le.py=e.event.y,v.resume()}return e.rebind(v,g,"on")};function Af(v){v.fixed|=2}function gs(v){v.fixed&=-7}function Mf(v){v.fixed|=4,v.px=v.x,v.py=v.y}function Kc(v){v.fixed&=-5}function Ml(v,g,w){var S=0,F=0;if(v.charge=0,!v.leaf)for(var L=v.nodes,Y=L.length,N=-1,Z;++N<Y;)Z=L[N],Z!=null&&(Ml(Z,g,w),v.charge+=Z.charge,S+=Z.charge*Z.cx,F+=Z.charge*Z.cy);if(v.point){v.leaf||(v.point.x+=Math.random()-.5,v.point.y+=Math.random()-.5);var ae=g*w[v.point.index];v.charge+=v.pointCharge=ae,S+=ae*v.point.x,F+=ae*v.point.y}v.cx=S/v.charge,v.cy=F/v.charge}var Qc=20,V2=1,X2=1/0;e.layout.hierarchy=function(){var v=e1,g=j2,w=ys;function S(F){var L=[F],Y=[],N;for(F.depth=0;(N=L.pop())!=null;)if(Y.push(N),(ae=g.call(S,N,N.depth))&&(Z=ae.length)){for(var Z,ae,ne;--Z>=0;)L.push(ne=ae[Z]),ne.parent=N,ne.depth=N.depth+1;w&&(N.value=0),N.children=ae}else w&&(N.value=+w.call(S,N,N.depth)||0),delete N.children;return ai(F,function(ge){var ye,qe;v&&(ye=ge.children)&&ye.sort(v),w&&(qe=ge.parent)&&(qe.value+=ge.value)}),Y}return S.sort=function(F){return arguments.length?(v=F,S):v},S.children=function(F){return arguments.length?(g=F,S):g},S.value=function(F){return arguments.length?(w=F,S):w},S.revalue=function(F){return w&&(Vi(F,function(L){L.children&&(L.value=0)}),ai(F,function(L){var Y;L.children||(L.value=+w.call(S,L,L.depth)||0),(Y=L.parent)&&(Y.value+=L.value)})),F},S};function co(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=hi,v}function Vi(v,g){for(var w=[v];(v=w.pop())!=null;)if(g(v),(F=v.children)&&(S=F.length))for(var S,F;--S>=0;)w.push(F[S])}function ai(v,g){for(var w=[v],S=[];(v=w.pop())!=null;)if(S.push(v),(Y=v.children)&&(L=Y.length))for(var F=-1,L,Y;++F<L;)w.push(Y[F]);for(;(v=S.pop())!=null;)g(v)}function j2(v){return v.children}function ys(v){return v.value}function e1(v,g){return g.value-v.value}function hi(v){return e.merge(v.map(function(g){return(g.children||[]).map(function(w){return{source:g,target:w}})}))}e.layout.partition=function(){var v=e.layout.hierarchy(),g=[1,1];function w(L,Y,N,Z){var ae=L.children;if(L.x=Y,L.y=L.depth*Z,L.dx=N,L.dy=Z,ae&&(ge=ae.length)){var ne=-1,ge,ye,qe;for(N=L.value?N/L.value:0;++ne<ge;)w(ye=ae[ne],Y,qe=ye.value*N,Z),Y+=qe}}function S(L){var Y=L.children,N=0;if(Y&&(ae=Y.length))for(var Z=-1,ae;++Z<ae;)N=Math.max(N,S(Y[Z]));return 1+N}function F(L,Y){var N=v.call(this,L,Y);return w(N[0],0,g[0],g[1]/S(N[0])),N}return F.size=function(L){return arguments.length?(g=L,F):g},co(F,v)},e.layout.pie=function(){var v=Number,g=r1,w=0,S=qr,F=0;function L(Y){var N=Y.length,Z=Y.map(function(Ge,Ve){return+v.call(L,Ge,Ve)}),ae=+(typeof w=="function"?w.apply(this,arguments):w),ne=(typeof S=="function"?S.apply(this,arguments):S)-ae,ge=Math.min(Math.abs(ne)/N,+(typeof F=="function"?F.apply(this,arguments):F)),ye=ge*(ne<0?-1:1),qe=e.sum(Z),Ye=qe?(ne-N*ye)/qe:0,be=e.range(N),Ce=[],Fe;return g!=null&&be.sort(g===r1?function(Ge,Ve){return Z[Ve]-Z[Ge]}:function(Ge,Ve){return g(Y[Ge],Y[Ve])}),be.forEach(function(Ge){Ce[Ge]={data:Y[Ge],value:Fe=Z[Ge],startAngle:ae,endAngle:ae+=Fe*Ye+ye,padAngle:ge}}),Ce}return L.value=function(Y){return arguments.length?(v=Y,L):v},L.sort=function(Y){return arguments.length?(g=Y,L):g},L.startAngle=function(Y){return arguments.length?(w=Y,L):w},L.endAngle=function(Y){return arguments.length?(S=Y,L):S},L.padAngle=function(Y){return arguments.length?(F=Y,L):F},L};var r1={};e.layout.stack=function(){var v=H,g=n0,w=yu,S=a1,F=t1,L=mu;function Y(N,Z){if(!(Ye=N.length))return N;var ae=N.map(function(Ge,Ve){return v.call(Y,Ge,Ve)}),ne=ae.map(function(Ge){return Ge.map(function(Ve,Le){return[F.call(Y,Ve,Le),L.call(Y,Ve,Le)]})}),ge=g.call(Y,ne,Z);ae=e.permute(ae,ge),ne=e.permute(ne,ge);var ye=w.call(Y,ne,Z),qe=ae[0].length,Ye,be,Ce,Fe;for(Ce=0;Ce<qe;++Ce)for(S.call(Y,ae[0][Ce],Fe=ye[Ce],ne[0][Ce][1]),be=1;be<Ye;++be)S.call(Y,ae[be][Ce],Fe+=ne[be-1][Ce][1],ne[be][Ce][1]);return N}return Y.values=function(N){return arguments.length?(v=N,Y):v},Y.order=function(N){return arguments.length?(g=typeof N=="function"?N:a0.get(N)||n0,Y):g},Y.offset=function(N){return arguments.length?(w=typeof N=="function"?N:gu.get(N)||yu,Y):w},Y.x=function(N){return arguments.length?(F=N,Y):F},Y.y=function(N){return arguments.length?(L=N,Y):L},Y.out=function(N){return arguments.length?(S=N,Y):S},Y};function t1(v){return v.x}function mu(v){return v.y}function a1(v,g,w){v.y0=g,v.y=w}var a0=e.map({"inside-out":function(v){var g=v.length,w,S,F=v.map(W2),L=v.map(bu),Y=e.range(g).sort(function(ge,ye){return F[ge]-F[ye]}),N=0,Z=0,ae=[],ne=[];for(w=0;w<g;++w)S=Y[w],N<Z?(N+=L[S],ae.push(S)):(Z+=L[S],ne.push(S));return ne.reverse().concat(ae)},reverse:function(v){return e.range(v.length).reverse()},default:n0}),gu=e.map({silhouette:function(v){var g=v.length,w=v[0].length,S=[],F=0,L,Y,N,Z=[];for(Y=0;Y<w;++Y){for(L=0,N=0;L<g;L++)N+=v[L][Y][1];N>F&&(F=N),S.push(N)}for(Y=0;Y<w;++Y)Z[Y]=(F-S[Y])/2;return Z},wiggle:function(v){var g=v.length,w=v[0],S=w.length,F,L,Y,N,Z,ae,ne,ge,ye,qe=[];for(qe[0]=ge=ye=0,L=1;L<S;++L){for(F=0,N=0;F<g;++F)N+=v[F][L][1];for(F=0,Z=0,ne=w[L][0]-w[L-1][0];F<g;++F){for(Y=0,ae=(v[F][L][1]-v[F][L-1][1])/(2*ne);Y<F;++Y)ae+=(v[Y][L][1]-v[Y][L-1][1])/ne;Z+=ae*v[F][L][1]}qe[L]=ge-=N?Z/N*ne:0,ge<ye&&(ye=ge)}for(L=0;L<S;++L)qe[L]-=ye;return qe},expand:function(v){var g=v.length,w=v[0].length,S=1/g,F,L,Y,N=[];for(L=0;L<w;++L){for(F=0,Y=0;F<g;F++)Y+=v[F][L][1];if(Y)for(F=0;F<g;F++)v[F][L][1]/=Y;else for(F=0;F<g;F++)v[F][L][1]=S}for(L=0;L<w;++L)N[L]=0;return N},zero:yu});function n0(v){return e.range(v.length)}function yu(v){for(var g=-1,w=v[0].length,S=[];++g<w;)S[g]=0;return S}function W2(v){for(var g=1,w=0,S=v[0][1],F,L=v.length;g<L;++g)(F=v[g][1])>S&&(w=g,S=F);return w}function bu(v){return v.reduce(Tl,0)}function Tl(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,w=bs,S=_u;function F(L,ye){for(var N=[],Z=L.map(g,this),ae=w.call(this,Z,ye),ne=S.call(this,ae,Z,ye),ge,ye=-1,qe=Z.length,Ye=ne.length-1,be=v?1:1/qe,Ce;++ye<Ye;)ge=N[ye]=[],ge.dx=ne[ye+1]-(ge.x=ne[ye]),ge.y=0;if(Ye>0)for(ye=-1;++ye<qe;)Ce=Z[ye],Ce>=ae[0]&&Ce<=ae[1]&&(ge=N[e.bisect(ne,Ce,1,Ye)-1],ge.y+=be,ge.push(L[ye]));return N}return F.value=function(L){return arguments.length?(g=L,F):g},F.range=function(L){return arguments.length?(w=st(L),F):w},F.bins=function(L){return arguments.length?(S=typeof L=="number"?function(Y){return kl(Y,L)}:st(L),F):S},F.frequency=function(L){return arguments.length?(v=!!L,F):v},F};function _u(v,g){return kl(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function kl(v,g){for(var w=-1,S=+v[0],F=(v[1]-S)/g,L=[];++w<=g;)L[w]=F*w+S;return L}function bs(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(i0),g=0,w=[1,1],S;function F(L,Y){var N=v.call(this,L,Y),Z=N[0],ae=w[0],ne=w[1],ge=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(Z.x=Z.y=0,ai(Z,function(qe){qe.r=+ge(qe.value)}),ai(Z,i1),g){var ye=g*(S?1:Math.max(2*Z.r/ae,2*Z.r/ne))/2;ai(Z,function(qe){qe.r+=ye}),ai(Z,i1),ai(Z,function(qe){qe.r-=ye})}return l0(Z,ae/2,ne/2,S?1:1/Math.max(2*Z.r/ae,2*Z.r/ne)),N}return F.size=function(L){return arguments.length?(w=L,F):w},F.radius=function(L){return arguments.length?(S=L==null||typeof L=="function"?L:+L,F):S},F.padding=function(L){return arguments.length?(g=+L,F):g},co(F,v)};function i0(v,g){return v.value-g.value}function xu(v,g){var w=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=w,w._pack_prev=g}function n1(v,g){v._pack_next=g,g._pack_prev=v}function o0(v,g){var w=g.x-v.x,S=g.y-v.y,F=v.r+g.r;return .999*F*F>w*w+S*S}function i1(v){if(!(g=v.children)||!(ye=g.length))return;var g,w=1/0,S=-1/0,F=1/0,L=-1/0,Y,N,Z,ae,ne,ge,ye;function qe(Le){w=Math.min(Le.x-Le.r,w),S=Math.max(Le.x+Le.r,S),F=Math.min(Le.y-Le.r,F),L=Math.max(Le.y+Le.r,L)}if(g.forEach(o1),Y=g[0],Y.x=-Y.r,Y.y=0,qe(Y),ye>1&&(N=g[1],N.x=N.r,N.y=0,qe(N),ye>2))for(Z=g[2],ln(Y,N,Z),qe(Z),xu(Y,Z),Y._pack_prev=Z,xu(Z,N),N=Y._pack_next,ae=3;ae<ye;ae++){ln(Y,N,Z=g[ae]);var Ye=0,be=1,Ce=1;for(ne=N._pack_next;ne!==N;ne=ne._pack_next,be++)if(o0(ne,Z)){Ye=1;break}if(Ye==1)for(ge=Y._pack_prev;ge!==ne._pack_prev&&!o0(ge,Z);ge=ge._pack_prev,Ce++);Ye?(be<Ce||be==Ce&&N.r<Y.r?n1(Y,N=ne):n1(Y=ge,N),ae--):(xu(Y,Z),N=Z,qe(Z))}var Fe=(w+S)/2,Ge=(F+L)/2,Ve=0;for(ae=0;ae<ye;ae++)Z=g[ae],Z.x-=Fe,Z.y-=Ge,Ve=Math.max(Ve,Z.r+Math.sqrt(Z.x*Z.x+Z.y*Z.y));v.r=Ve,g.forEach(Tf)}function o1(v){v._pack_next=v._pack_prev=v}function Tf(v){delete v._pack_next,delete v._pack_prev}function l0(v,g,w,S){var F=v.children;if(v.x=g+=S*v.x,v.y=w+=S*v.y,v.r*=S,F)for(var L=-1,Y=F.length;++L<Y;)l0(F[L],g,w,S)}function ln(v,g,w){var S=v.r+w.r,F=g.x-v.x,L=g.y-v.y;if(S&&(F||L)){var Y=g.r+w.r,N=F*F+L*L;Y*=Y,S*=S;var Z=.5+(S-Y)/(2*N),ae=Math.sqrt(Math.max(0,2*Y*(S+N)-(S-=N)*S-Y*Y))/(2*N);w.x=v.x+Z*F+ae*L,w.y=v.y+Z*L-ae*F}else w.x=v.x+S,w.y=v.y}e.layout.tree=function(){var v=e.layout.hierarchy().sort(null).value(null),g=Fi,w=[1,1],S=null;function F(ne,ge){var ye=v.call(this,ne,ge),qe=ye[0],Ye=L(qe);if(ai(Ye,Y),Ye.parent.m=-Ye.z,Vi(Ye,N),S)Vi(qe,ae);else{var be=qe,Ce=qe,Fe=qe;Vi(qe,function(wr){wr.x<be.x&&(be=wr),wr.x>Ce.x&&(Ce=wr),wr.depth>Fe.depth&&(Fe=wr)});var Ge=g(be,Ce)/2-be.x,Ve=w[0]/(Ce.x+g(Ce,be)/2+Ge),Le=w[1]/(Fe.depth||1);Vi(qe,function(wr){wr.x=(wr.x+Ge)*Ve,wr.y=wr.depth*Le})}return ye}function L(ne){for(var ge={A:null,children:[ne]},ye=[ge],qe;(qe=ye.pop())!=null;)for(var Ye=qe.children,be,Ce=0,Fe=Ye.length;Ce<Fe;++Ce)ye.push((Ye[Ce]=be={_:Ye[Ce],parent:qe,children:(be=Ye[Ce].children)&&be.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Ce}).a=be);return ge.children[0]}function Y(ne){var ge=ne.children,ye=ne.parent.children,qe=ne.i?ye[ne.i-1]:null;if(ge.length){kf(ne);var Ye=(ge[0].z+ge[ge.length-1].z)/2;qe?(ne.z=qe.z+g(ne._,qe._),ne.m=ne.z-Ye):ne.z=Ye}else qe&&(ne.z=qe.z+g(ne._,qe._));ne.parent.A=Z(ne,qe,ne.parent.A||ye[0])}function N(ne){ne._.x=ne.z+ne.parent.m,ne.m+=ne.parent.m}function Z(ne,ge,ye){if(ge){for(var qe=ne,Ye=ne,be=ge,Ce=qe.parent.children[0],Fe=qe.m,Ge=Ye.m,Ve=be.m,Le=Ce.m,wr;be=s0(be),qe=_s(qe),be&&qe;)Ce=_s(Ce),Ye=s0(Ye),Ye.a=ne,wr=be.z+Ve-qe.z-Fe+g(be._,qe._),wr>0&&(wu(O(be,ne,ye),ne,wr),Fe+=wr,Ge+=wr),Ve+=be.m,Fe+=qe.m,Le+=Ce.m,Ge+=Ye.m;be&&!s0(Ye)&&(Ye.t=be,Ye.m+=Ve-Ge),qe&&!_s(Ce)&&(Ce.t=qe,Ce.m+=Fe-Le,ye=ne)}return ye}function ae(ne){ne.x*=w[0],ne.y=ne.depth*w[1]}return F.separation=function(ne){return arguments.length?(g=ne,F):g},F.size=function(ne){return arguments.length?(S=(w=ne)==null?ae:null,F):S?null:w},F.nodeSize=function(ne){return arguments.length?(S=(w=ne)==null?null:ae,F):S?w:null},co(F,v)};function Fi(v,g){return v.parent==g.parent?1:2}function _s(v){var g=v.children;return g.length?g[0]:v.t}function s0(v){var g=v.children,w;return(w=g.length)?g[w-1]:v.t}function wu(v,g,w){var S=w/(g.i-v.i);g.c-=S,g.s+=w,v.c+=S,g.z+=w,g.m+=w}function kf(v){for(var g=0,w=0,S=v.children,F=S.length,L;--F>=0;)L=S[F],L.z+=g,L.m+=g,g+=L.s+(w+=L.c)}function O(v,g,w){return v.a.parent===g.parent?v.a:w}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),g=Fi,w=[1,1],S=!1;function F(L,Y){var N=v.call(this,L,Y),Z=N[0],ae,ne=0;ai(Z,function(be){var Ce=be.children;Ce&&Ce.length?(be.x=he(Ce),be.y=$(Ce)):(be.x=ae?ne+=g(be,ae):0,be.y=0,ae=be)});var ge=se(Z),ye=we(Z),qe=ge.x-g(ge,ye)/2,Ye=ye.x+g(ye,ge)/2;return ai(Z,S?function(be){be.x=(be.x-Z.x)*w[0],be.y=(Z.y-be.y)*w[1]}:function(be){be.x=(be.x-qe)/(Ye-qe)*w[0],be.y=(1-(Z.y?be.y/Z.y:1))*w[1]}),N}return F.separation=function(L){return arguments.length?(g=L,F):g},F.size=function(L){return arguments.length?(S=(w=L)==null,F):S?null:w},F.nodeSize=function(L){return arguments.length?(S=(w=L)!=null,F):S?w:null},co(F,v)};function $(v){return 1+e.max(v,function(g){return g.y})}function he(v){return v.reduce(function(g,w){return g+w.x},0)/v.length}function se(v){var g=v.children;return g&&g.length?se(g[0]):v}function we(v){var g=v.children,w;return g&&(w=g.length)?we(g[w-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,w=[1,1],S=null,F=He,L=!1,Y,N="squarify",Z=.5*(1+Math.sqrt(5));function ae(be,Ce){for(var Fe=-1,Ge=be.length,Ve,Le;++Fe<Ge;)Le=(Ve=be[Fe]).value*(Ce<0?0:Ce),Ve.area=isNaN(Le)||Le<=0?0:Le}function ne(be){var Ce=be.children;if(Ce&&Ce.length){var Fe=F(be),Ge=[],Ve=Ce.slice(),Le,wr=1/0,Yr,Zr=N==="slice"?Fe.dx:N==="dice"?Fe.dy:N==="slice-dice"?be.depth&1?Fe.dy:Fe.dx:Math.min(Fe.dx,Fe.dy),Xr;for(ae(Ve,Fe.dx*Fe.dy/be.value),Ge.area=0;(Xr=Ve.length)>0;)Ge.push(Le=Ve[Xr-1]),Ge.area+=Le.area,N!=="squarify"||(Yr=ye(Ge,Zr))<=wr?(Ve.pop(),wr=Yr):(Ge.area-=Ge.pop().area,qe(Ge,Zr,Fe,!1),Zr=Math.min(Fe.dx,Fe.dy),Ge.length=Ge.area=0,wr=1/0);Ge.length&&(qe(Ge,Zr,Fe,!0),Ge.length=Ge.area=0),Ce.forEach(ne)}}function ge(be){var Ce=be.children;if(Ce&&Ce.length){var Fe=F(be),Ge=Ce.slice(),Ve,Le=[];for(ae(Ge,Fe.dx*Fe.dy/be.value),Le.area=0;Ve=Ge.pop();)Le.push(Ve),Le.area+=Ve.area,Ve.z!=null&&(qe(Le,Ve.z?Fe.dx:Fe.dy,Fe,!Ge.length),Le.length=Le.area=0);Ce.forEach(ge)}}function ye(be,Ce){for(var Fe=be.area,Ge,Ve=0,Le=1/0,wr=-1,Yr=be.length;++wr<Yr;)(Ge=be[wr].area)&&(Ge<Le&&(Le=Ge),Ge>Ve&&(Ve=Ge));return Fe*=Fe,Ce*=Ce,Fe?Math.max(Ce*Ve*Z/Fe,Fe/(Ce*Le*Z)):1/0}function qe(be,Ce,Fe,Ge){var Ve=-1,Le=be.length,wr=Fe.x,Yr=Fe.y,Zr=Ce?g(be.area/Ce):0,Xr;if(Ce==Fe.dx){for((Ge||Zr>Fe.dy)&&(Zr=Fe.dy);++Ve<Le;)Xr=be[Ve],Xr.x=wr,Xr.y=Yr,Xr.dy=Zr,wr+=Xr.dx=Math.min(Fe.x+Fe.dx-wr,Zr?g(Xr.area/Zr):0);Xr.z=!0,Xr.dx+=Fe.x+Fe.dx-wr,Fe.y+=Zr,Fe.dy-=Zr}else{for((Ge||Zr>Fe.dx)&&(Zr=Fe.dx);++Ve<Le;)Xr=be[Ve],Xr.x=wr,Xr.y=Yr,Xr.dx=Zr,Yr+=Xr.dy=Math.min(Fe.y+Fe.dy-Yr,Zr?g(Xr.area/Zr):0);Xr.z=!1,Xr.dy+=Fe.y+Fe.dy-Yr,Fe.x+=Zr,Fe.dx-=Zr}}function Ye(be){var Ce=Y||v(be),Fe=Ce[0];return Fe.x=Fe.y=0,Fe.value?(Fe.dx=w[0],Fe.dy=w[1]):Fe.dx=Fe.dy=0,Y&&v.revalue(Fe),ae([Fe],Fe.dx*Fe.dy/Fe.value),(Y?ge:ne)(Fe),L&&(Y=Ce),Ce}return Ye.size=function(be){return arguments.length?(w=be,Ye):w},Ye.padding=function(be){if(!arguments.length)return S;function Ce(Ve){var Le=be.call(Ye,Ve,Ve.depth);return Le==null?He(Ve):We(Ve,typeof Le=="number"?[Le,Le,Le,Le]:Le)}function Fe(Ve){return We(Ve,be)}var Ge;return F=(S=be)==null?He:(Ge=typeof be)=="function"?Ce:(Ge==="number"&&(be=[be,be,be,be]),Fe),Ye},Ye.round=function(be){return arguments.length?(g=be?Math.round:Number,Ye):g!=Number},Ye.sticky=function(be){return arguments.length?(L=be,Y=null,Ye):L},Ye.ratio=function(be){return arguments.length?(Z=be,Ye):Z},Ye.mode=function(be){return arguments.length?(N=be+"",Ye):N},co(Ye,v)};function He(v){return{x:v.x,y:v.y,dx:v.dx,dy:v.dy}}function We(v,g){var w=v.x+g[3],S=v.y+g[0],F=v.dx-g[1]-g[3],L=v.dy-g[0]-g[2];return F<0&&(w+=F/2,F=0),L<0&&(S+=L/2,L=0),{x:w,y:S,dx:F,dy:L}}e.random={normal:function(v,g){var w=arguments.length;return w<2&&(g=1),w<1&&(v=0),function(){var S,F,L;do S=Math.random()*2-1,F=Math.random()*2-1,L=S*S+F*F;while(!L||L>1);return v+g*S*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var g=e.random.irwinHall(v);return function(){return g()/v}},irwinHall:function(v){return function(){for(var g=0,w=0;w<v;w++)g+=Math.random();return g}}},e.scale={};function er(v){var g=v[0],w=v[v.length-1];return g<w?[g,w]:[w,g]}function nr(v){return v.rangeExtent?v.rangeExtent():er(v.range())}function br(v,g,w,S){var F=w(v[0],v[1]),L=S(g[0],g[1]);return function(Y){return L(F(Y))}}function $e(v,g){var w=0,S=v.length-1,F=v[w],L=v[S],Y;return L<F&&(Y=w,w=S,S=Y,Y=F,F=L,L=Y),v[w]=g.floor(F),v[S]=g.ceil(L),v}function lr(v){return v?{floor:function(g){return Math.floor(g/v)*v},ceil:function(g){return Math.ceil(g/v)*v}}:ir}var ir={floor:H,ceil:H};function Mr(v,g,w,S){var F=[],L=[],Y=0,N=Math.min(v.length,g.length)-1;for(v[N]<v[0]&&(v=v.slice().reverse(),g=g.slice().reverse());++Y<=N;)F.push(w(v[Y-1],v[Y])),L.push(S(g[Y-1],g[Y]));return function(Z){var ae=e.bisect(v,Z,1,N)-1;return L[ae](F[ae](Z))}}e.scale.linear=function(){return Fr([0,1],[0,1],Al,!1)};function Fr(v,g,w,S){var F,L;function Y(){var Z=Math.min(v.length,g.length)>2?Mr:br,ae=S?xf:_f;return F=Z(v,g,ae,w),L=Z(g,v,ae,Al),N}function N(Z){return F(Z)}return N.invert=function(Z){return L(Z)},N.domain=function(Z){return arguments.length?(v=Z.map(Number),Y()):v},N.range=function(Z){return arguments.length?(g=Z,Y()):g},N.rangeRound=function(Z){return N.range(Z).interpolate(Bo)},N.clamp=function(Z){return arguments.length?(S=Z,Y()):S},N.interpolate=function(Z){return arguments.length?(w=Z,Y()):w},N.ticks=function(Z){return ft(v,Z)},N.tickFormat=function(Z,ae){return d3_scale_linearTickFormat(v,Z,ae)},N.nice=function(Z){return rt(v,Z),Y()},N.copy=function(){return Fr(v,g,w,S)},Y()}function lt(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function rt(v,g){return $e(v,lr(ut(v,g)[2])),$e(v,lr(ut(v,g)[2])),v}function ut(v,g){g==null&&(g=10);var w=er(v),S=w[1]-w[0],F=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),L=g/S*F;return L<=.15?F*=10:L<=.35?F*=5:L<=.75&&(F*=2),w[0]=Math.ceil(w[0]/F)*F,w[1]=Math.floor(w[1]/F)*F+F*.5,w[2]=F,w}function ft(v,g){return e.range.apply(e,ut(v,g))}var Pr={s:1,g:1,p:1,r:1,e:1};function Gr(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function vt(v,g){var w=Gr(g[2]);return v in Pr?Math.abs(w-Gr(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):w-(v==="%")*2}e.scale.log=function(){return xt(e.scale.linear().domain([0,1]),10,!0,[1,10])};function xt(v,g,w,S){function F(N){return(w?Math.log(N<0?0:N):-Math.log(N>0?0:-N))/Math.log(g)}function L(N){return w?Math.pow(g,N):-Math.pow(g,-N)}function Y(N){return v(F(N))}return Y.invert=function(N){return L(v.invert(N))},Y.domain=function(N){return arguments.length?(w=N[0]>=0,v.domain((S=N.map(Number)).map(F)),Y):S},Y.base=function(N){return arguments.length?(g=+N,v.domain(S.map(F)),Y):g},Y.nice=function(){var N=$e(S.map(F),w?Math:Xt);return v.domain(N),S=N.map(L),Y},Y.ticks=function(){var N=er(S),Z=[],ae=N[0],ne=N[1],ge=Math.floor(F(ae)),ye=Math.ceil(F(ne)),qe=g%1?2:g;if(isFinite(ye-ge)){if(w){for(;ge<ye;ge++)for(var Ye=1;Ye<qe;Ye++)Z.push(L(ge)*Ye);Z.push(L(ge))}else for(Z.push(L(ge));ge++<ye;)for(var Ye=qe-1;Ye>0;Ye--)Z.push(L(ge)*Ye);for(ge=0;Z[ge]<ae;ge++);for(ye=Z.length;Z[ye-1]>ne;ye--);Z=Z.slice(ge,ye)}return Z},Y.copy=function(){return xt(v.copy(),g,w,S)},lt(Y,v)}var Xt={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return la(e.scale.linear(),1,[0,1])};function la(v,g,w){var S=$t(g),F=$t(1/g);function L(Y){return v(S(Y))}return L.invert=function(Y){return F(v.invert(Y))},L.domain=function(Y){return arguments.length?(v.domain((w=Y.map(Number)).map(S)),L):w},L.ticks=function(Y){return ft(w,Y)},L.tickFormat=function(Y,N){return d3_scale_linearTickFormat(w,Y,N)},L.nice=function(Y){return L.domain(rt(w,Y))},L.exponent=function(Y){return arguments.length?(S=$t(g=Y),F=$t(1/g),v.domain(w.map(S)),L):g},L.copy=function(){return la(v.copy(),g,w)},lt(L,v)}function $t(v){return function(g){return g<0?-Math.pow(-g,v):Math.pow(g,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return xa([],{t:"range",a:[[]]})};function xa(v,g){var w,S,F;function L(N){return S[((w.get(N)||(g.t==="range"?w.set(N,v.push(N)):NaN))-1)%S.length]}function Y(N,Z){return e.range(v.length).map(function(ae){return N+Z*ae})}return L.domain=function(N){if(!arguments.length)return v;v=[],w=new _;for(var Z=-1,ae=N.length,ne;++Z<ae;)w.has(ne=N[Z])||w.set(ne,v.push(ne));return L[g.t].apply(L,g.a)},L.range=function(N){return arguments.length?(S=N,F=0,g={t:"range",a:arguments},L):S},L.rangePoints=function(N,Z){arguments.length<2&&(Z=0);var ae=N[0],ne=N[1],ge=v.length<2?(ae=(ae+ne)/2,0):(ne-ae)/(v.length-1+Z);return S=Y(ae+ge*Z/2,ge),F=0,g={t:"rangePoints",a:arguments},L},L.rangeRoundPoints=function(N,Z){arguments.length<2&&(Z=0);var ae=N[0],ne=N[1],ge=v.length<2?(ae=ne=Math.round((ae+ne)/2),0):(ne-ae)/(v.length-1+Z)|0;return S=Y(ae+Math.round(ge*Z/2+(ne-ae-(v.length-1+Z)*ge)/2),ge),F=0,g={t:"rangeRoundPoints",a:arguments},L},L.rangeBands=function(N,Z,ae){arguments.length<2&&(Z=0),arguments.length<3&&(ae=Z);var ne=N[1]<N[0],ge=N[ne-0],ye=N[1-ne],qe=(ye-ge)/(v.length-Z+2*ae);return S=Y(ge+qe*ae,qe),ne&&S.reverse(),F=qe*(1-Z),g={t:"rangeBands",a:arguments},L},L.rangeRoundBands=function(N,Z,ae){arguments.length<2&&(Z=0),arguments.length<3&&(ae=Z);var ne=N[1]<N[0],ge=N[ne-0],ye=N[1-ne],qe=Math.floor((ye-ge)/(v.length-Z+2*ae));return S=Y(ge+Math.round((ye-ge-(v.length-Z)*qe)/2),qe),ne&&S.reverse(),F=Math.round(qe*(1-Z)),g={t:"rangeRoundBands",a:arguments},L},L.rangeBand=function(){return F},L.rangeExtent=function(){return er(g.a[0])},L.copy=function(){return xa(v,g)},L.domain(v)}e.scale.category10=function(){return e.scale.ordinal().range(Lt)},e.scale.category20=function(){return e.scale.ordinal().range(An)},e.scale.category20b=function(){return e.scale.ordinal().range(ja)},e.scale.category20c=function(){return e.scale.ordinal().range(wa)};var Lt=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(dl),An=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(dl),ja=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(dl),wa=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(dl);e.scale.quantile=function(){return Vr([],[])};function Vr(v,g){var w;function S(){var L=0,Y=g.length;for(w=[];++L<Y;)w[L-1]=e.quantile(v,L/Y);return F}function F(L){if(!isNaN(L=+L))return g[e.bisect(w,L)]}return F.domain=function(L){return arguments.length?(v=L.map(h).filter(d).sort(c),S()):v},F.range=function(L){return arguments.length?(g=L,S()):g},F.quantiles=function(){return w},F.invertExtent=function(L){return L=g.indexOf(L),L<0?[NaN,NaN]:[L>0?w[L-1]:v[0],L<w.length?w[L]:v[v.length-1]]},F.copy=function(){return Vr(v,g)},S()}e.scale.quantize=function(){return jt(0,1,[0,1])};function jt(v,g,w){var S,F;function L(N){return w[Math.max(0,Math.min(F,Math.floor(S*(N-v))))]}function Y(){return S=w.length/(g-v),F=w.length-1,L}return L.domain=function(N){return arguments.length?(v=+N[0],g=+N[N.length-1],Y()):[v,g]},L.range=function(N){return arguments.length?(w=N,Y()):w},L.invertExtent=function(N){return N=w.indexOf(N),N=N<0?NaN:N/S+v,[N,N+1/S]},L.copy=function(){return jt(v,g,w)},Y()}e.scale.threshold=function(){return tn([.5],[0,1])};function tn(v,g){function w(S){if(S<=S)return g[e.bisect(v,S)]}return w.domain=function(S){return arguments.length?(v=S,w):v},w.range=function(S){return arguments.length?(g=S,w):g},w.invertExtent=function(S){return S=g.indexOf(S),[v[S-1],v[S]]},w.copy=function(){return tn(v,g)},w}e.scale.identity=function(){return Ln([0,1])};function Ln(v){function g(w){return+w}return g.invert=g,g.domain=g.range=function(w){return arguments.length?(v=w.map(g),g):v},g.ticks=function(w){return ft(v,w)},g.tickFormat=function(w,S){return d3_scale_linearTickFormat(v,w,S)},g.copy=function(){return Ln(v)},g}e.svg={};function di(){return 0}e.svg.arc=function(){var v=Xi,g=Cl,w=di,S=vo,F=Ei,L=Sl,Y=xs;function N(){var ae=Math.max(0,+v.apply(this,arguments)),ne=Math.max(0,+g.apply(this,arguments)),ge=F.apply(this,arguments)-Ae,ye=L.apply(this,arguments)-Ae,qe=Math.abs(ye-ge),Ye=ge>ye?0:1;if(ne<ae&&(be=ne,ne=ae,ae=be),qe>=Wr)return Z(ne,Ye)+(ae?Z(ae,1-Ye):"")+"Z";var be,Ce,Fe,Ge,Ve=0,Le=0,wr,Yr,Zr,Xr,tt,at,Tt,it,bt=[];if((Ge=(+Y.apply(this,arguments)||0)/2)&&(Fe=S===vo?Math.sqrt(ae*ae+ne*ne):+S.apply(this,arguments),Ye||(Le*=-1),ne&&(Le=ia(Fe/ne*Math.sin(Ge))),ae&&(Ve=ia(Fe/ae*Math.sin(Ge)))),ne){wr=ne*Math.cos(ge+Le),Yr=ne*Math.sin(ge+Le),Zr=ne*Math.cos(ye-Le),Xr=ne*Math.sin(ye-Le);var ta=Math.abs(ye-ge-2*Le)<=Qr?0:1;if(Le&&u0(wr,Yr,Zr,Xr)===Ye^ta){var sn=(ge+ye)/2;wr=ne*Math.cos(sn),Yr=ne*Math.sin(sn),Zr=Xr=null}}else wr=Yr=0;if(ae){tt=ae*Math.cos(ye-Ve),at=ae*Math.sin(ye-Ve),Tt=ae*Math.cos(ge+Ve),it=ae*Math.sin(ge+Ve);var ca=Math.abs(ge-ye+2*Ve)<=Qr?0:1;if(Ve&&u0(tt,at,Tt,it)===1-Ye^ca){var Ir=(ge+ye)/2;tt=ae*Math.cos(Ir),at=ae*Math.sin(Ir),Tt=it=null}}else tt=at=0;if(qe>vr&&(be=Math.min(Math.abs(ne-ae)/2,+w.apply(this,arguments)))>.001){Ce=ae<ne^Ye?0:1;var kt=be,Ct=be;if(qe<Qr){var aa=Tt==null?[tt,at]:Zr==null?[wr,Yr]:au([wr,Yr],[Tt,it],[Zr,Xr],[tt,at]),Za=wr-aa[0],Mn=Yr-aa[1],Jn=Zr-aa[0],pi=Xr-aa[1],qi=1/Math.sin(Math.acos((Za*Jn+Mn*pi)/(Math.sqrt(Za*Za+Mn*Mn)*Math.sqrt(Jn*Jn+pi*pi)))/2),mi=Math.sqrt(aa[0]*aa[0]+aa[1]*aa[1]);Ct=Math.min(be,(ae-mi)/(qi-1)),kt=Math.min(be,(ne-mi)/(qi+1))}if(Zr!=null){var Wi=l1(Tt==null?[tt,at]:[Tt,it],[wr,Yr],ne,kt,Ye),ni=l1([Zr,Xr],[tt,at],ne,kt,Ye);be===kt?bt.push("M",Wi[0],"A",kt,",",kt," 0 0,",Ce," ",Wi[1],"A",ne,",",ne," 0 ",1-Ye^u0(Wi[1][0],Wi[1][1],ni[1][0],ni[1][1]),",",Ye," ",ni[1],"A",kt,",",kt," 0 0,",Ce," ",ni[0]):bt.push("M",Wi[0],"A",kt,",",kt," 0 1,",Ce," ",ni[0])}else bt.push("M",wr,",",Yr);if(Tt!=null){var Zi=l1([wr,Yr],[Tt,it],ae,-Ct,Ye),Ff=l1([tt,at],Zr==null?[wr,Yr]:[Zr,Xr],ae,-Ct,Ye);be===Ct?bt.push("L",Ff[0],"A",Ct,",",Ct," 0 0,",Ce," ",Ff[1],"A",ae,",",ae," 0 ",Ye^u0(Ff[1][0],Ff[1][1],Zi[1][0],Zi[1][1]),",",1-Ye," ",Zi[1],"A",Ct,",",Ct," 0 0,",Ce," ",Zi[0]):bt.push("L",Ff[0],"A",Ct,",",Ct," 0 0,",Ce," ",Zi[0])}else bt.push("L",tt,",",at)}else bt.push("M",wr,",",Yr),Zr!=null&&bt.push("A",ne,",",ne," 0 ",ta,",",Ye," ",Zr,",",Xr),bt.push("L",tt,",",at),Tt!=null&&bt.push("A",ae,",",ae," 0 ",ca,",",1-Ye," ",Tt,",",it);return bt.push("Z"),bt.join("")}function Z(ae,ne){return"M0,"+ae+"A"+ae+","+ae+" 0 1,"+ne+" 0,"+-ae+"A"+ae+","+ae+" 0 1,"+ne+" 0,"+ae}return N.innerRadius=function(ae){return arguments.length?(v=st(ae),N):v},N.outerRadius=function(ae){return arguments.length?(g=st(ae),N):g},N.cornerRadius=function(ae){return arguments.length?(w=st(ae),N):w},N.padRadius=function(ae){return arguments.length?(S=ae==vo?vo:st(ae),N):S},N.startAngle=function(ae){return arguments.length?(F=st(ae),N):F},N.endAngle=function(ae){return arguments.length?(L=st(ae),N):L},N.padAngle=function(ae){return arguments.length?(Y=st(ae),N):Y},N.centroid=function(){var ae=(+v.apply(this,arguments)+ +g.apply(this,arguments))/2,ne=(+F.apply(this,arguments)+ +L.apply(this,arguments))/2-Ae;return[Math.cos(ne)*ae,Math.sin(ne)*ae]},N};var vo="auto";function Xi(v){return v.innerRadius}function Cl(v){return v.outerRadius}function Ei(v){return v.startAngle}function Sl(v){return v.endAngle}function xs(v){return v&&v.padAngle}function u0(v,g,w,S){return(v-w)*g-(g-S)*v>0?0:1}function l1(v,g,w,S,F){var L=v[0]-g[0],Y=v[1]-g[1],N=(F?S:-S)/Math.sqrt(L*L+Y*Y),Z=N*Y,ae=-N*L,ne=v[0]+Z,ge=v[1]+ae,ye=g[0]+Z,qe=g[1]+ae,Ye=(ne+ye)/2,be=(ge+qe)/2,Ce=ye-ne,Fe=qe-ge,Ge=Ce*Ce+Fe*Fe,Ve=w-S,Le=ne*qe-ye*ge,wr=(Fe<0?-1:1)*Math.sqrt(Math.max(0,Ve*Ve*Ge-Le*Le)),Yr=(Le*Fe-Ce*wr)/Ge,Zr=(-Le*Ce-Fe*wr)/Ge,Xr=(Le*Fe+Ce*wr)/Ge,tt=(-Le*Ce+Fe*wr)/Ge,at=Yr-Ye,Tt=Zr-be,it=Xr-Ye,bt=tt-be;return at*at+Tt*Tt>it*it+bt*bt&&(Yr=Xr,Zr=tt),[[Yr-Z,Zr-ae],[Yr*w/Ve,Zr*w/Ve]]}function s1(){return!0}function gd(v){var g=us,w=eu,S=s1,F=ho,L=F.key,Y=.7;function N(Z){var ae=[],ne=[],ge=-1,ye=Z.length,qe,Ye=st(g),be=st(w);function Ce(){ae.push("M",F(v(ne),Y))}for(;++ge<ye;)S.call(this,qe=Z[ge],ge)?ne.push([+Ye.call(this,qe,ge),+be.call(this,qe,ge)]):ne.length&&(Ce(),ne=[]);return ne.length&&Ce(),ae.length?ae.join(""):null}return N.x=function(Z){return arguments.length?(g=Z,N):g},N.y=function(Z){return arguments.length?(w=Z,N):w},N.defined=function(Z){return arguments.length?(S=Z,N):S},N.interpolate=function(Z){return arguments.length?(typeof Z=="function"?L=F=Z:L=(F=Cf.get(Z)||ho).key,N):L},N.tension=function(Z){return arguments.length?(Y=Z,N):Y},N}e.svg.line=function(){return gd(H)};var Cf=e.map({linear:ho,"linear-closed":yd,step:bd,"step-before":u1,"step-after":Z2,basis:Ad,"basis-open":$2,"basis-closed":Ay,bundle:J2,cardinal:wd,"cardinal-open":_d,"cardinal-closed":xd,monotone:ve});Cf.forEach(function(v,g){g.key=v,g.closed=/-closed$/.test(v)});function ho(v){return v.length>1?v.join("L"):v+"Z"}function yd(v){return v.join("L")+"Z"}function bd(v){for(var g=0,w=v.length,S=v[0],F=[S[0],",",S[1]];++g<w;)F.push("H",(S[0]+(S=v[g])[0])/2,"V",S[1]);return w>1&&F.push("H",S[0]),F.join("")}function u1(v){for(var g=0,w=v.length,S=v[0],F=[S[0],",",S[1]];++g<w;)F.push("V",(S=v[g])[1],"H",S[0]);return F.join("")}function Z2(v){for(var g=0,w=v.length,S=v[0],F=[S[0],",",S[1]];++g<w;)F.push("H",(S=v[g])[0],"V",S[1]);return F.join("")}function _d(v,g){return v.length<4?ho(v):v[1]+f1(v.slice(1,-1),Sf(v,g))}function xd(v,g){return v.length<3?yd(v):v[0]+f1((v.push(v[0]),v),Sf([v[v.length-2]].concat(v,[v[1]]),g))}function wd(v,g){return v.length<3?ho(v):v[0]+f1(v,Sf(v,g))}function f1(v,g){if(g.length<1||v.length!=g.length&&v.length!=g.length+2)return ho(v);var w=v.length!=g.length,S="",F=v[0],L=v[1],Y=g[0],N=Y,Z=1;if(w&&(S+="Q"+(L[0]-Y[0]*2/3)+","+(L[1]-Y[1]*2/3)+","+L[0]+","+L[1],F=v[1],Z=2),g.length>1){N=g[1],L=v[Z],Z++,S+="C"+(F[0]+Y[0])+","+(F[1]+Y[1])+","+(L[0]-N[0])+","+(L[1]-N[1])+","+L[0]+","+L[1];for(var ae=2;ae<g.length;ae++,Z++)L=v[Z],N=g[ae],S+="S"+(L[0]-N[0])+","+(L[1]-N[1])+","+L[0]+","+L[1]}if(w){var ne=v[Z];S+="Q"+(L[0]+N[0]*2/3)+","+(L[1]+N[1]*2/3)+","+ne[0]+","+ne[1]}return S}function Sf(v,g){for(var w=[],S=(1-g)/2,F,L=v[0],Y=v[1],N=1,Z=v.length;++N<Z;)F=L,L=Y,Y=v[N],w.push([S*(Y[0]-F[0]),S*(Y[1]-F[1])]);return w}function Ad(v){if(v.length<3)return ho(v);var g=1,w=v.length,S=v[0],F=S[0],L=S[1],Y=[F,F,F,(S=v[1])[0]],N=[L,L,L,S[1]],Z=[F,",",L,"L",ji(q,Y),",",ji(q,N)];for(v.push(v[w-1]);++g<=w;)S=v[g],Y.shift(),Y.push(S[0]),N.shift(),N.push(S[1]),R(Z,Y,N);return v.pop(),Z.push("L",S),Z.join("")}function $2(v){if(v.length<4)return ho(v);for(var g=[],w=-1,S=v.length,F,L=[0],Y=[0];++w<3;)F=v[w],L.push(F[0]),Y.push(F[1]);for(g.push(ji(q,L)+","+ji(q,Y)),--w;++w<S;)F=v[w],L.shift(),L.push(F[0]),Y.shift(),Y.push(F[1]),R(g,L,Y);return g.join("")}function Ay(v){for(var g,w=-1,S=v.length,F=S+4,L,Y=[],N=[];++w<4;)L=v[w%S],Y.push(L[0]),N.push(L[1]);for(g=[ji(q,Y),",",ji(q,N)],--w;++w<F;)L=v[w%S],Y.shift(),Y.push(L[0]),N.shift(),N.push(L[1]),R(g,Y,N);return g.join("")}function J2(v,g){var w=v.length-1;if(w)for(var S=v[0][0],F=v[0][1],L=v[w][0]-S,Y=v[w][1]-F,N=-1,Z,ae;++N<=w;)Z=v[N],ae=N/w,Z[0]=g*Z[0]+(1-g)*(S+ae*L),Z[1]=g*Z[1]+(1-g)*(F+ae*Y);return Ad(v)}function ji(v,g){return v[0]*g[0]+v[1]*g[1]+v[2]*g[2]+v[3]*g[3]}var k=[0,2/3,1/3,0],D=[0,1/3,2/3,0],q=[0,1/6,2/3,1/6];function R(v,g,w){v.push("C",ji(k,g),",",ji(k,w),",",ji(D,g),",",ji(D,w),",",ji(q,g),",",ji(q,w))}function G(v,g){return(g[1]-v[1])/(g[0]-v[0])}function U(v){for(var g=0,w=v.length-1,S=[],F=v[0],L=v[1],Y=S[0]=G(F,L);++g<w;)S[g]=(Y+(Y=G(F=L,L=v[g+1])))/2;return S[g]=Y,S}function j(v){for(var g=[],w,S,F,L,Y=U(v),N=-1,Z=v.length-1;++N<Z;)w=G(v[N],v[N+1]),b(w)<vr?Y[N]=Y[N+1]=0:(S=Y[N]/w,F=Y[N+1]/w,L=S*S+F*F,L>9&&(L=w*3/Math.sqrt(L),Y[N]=L*S,Y[N+1]=L*F));for(N=-1;++N<=Z;)L=(v[Math.min(Z,N+1)][0]-v[Math.max(0,N-1)][0])/(6*(1+Y[N]*Y[N])),g.push([L||0,Y[N]*L||0]);return g}function ve(v){return v.length<3?ho(v):v[0]+f1(v,j(v))}e.svg.line.radial=function(){var v=gd(de);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function de(v){for(var g,w=-1,S=v.length,F,L;++w<S;)g=v[w],F=g[0],L=g[1]-Ae,g[0]=F*Math.cos(L),g[1]=F*Math.sin(L);return v}function fe(v){var g=us,w=us,S=0,F=eu,L=s1,Y=ho,N=Y.key,Z=Y,ae="L",ne=.7;function ge(ye){var qe=[],Ye=[],be=[],Ce=-1,Fe=ye.length,Ge,Ve=st(g),Le=st(S),wr=g===w?function(){return Zr}:st(w),Yr=S===F?function(){return Xr}:st(F),Zr,Xr;function tt(){qe.push("M",Y(v(be),ne),ae,Z(v(Ye.reverse()),ne),"Z")}for(;++Ce<Fe;)L.call(this,Ge=ye[Ce],Ce)?(Ye.push([Zr=+Ve.call(this,Ge,Ce),Xr=+Le.call(this,Ge,Ce)]),be.push([+wr.call(this,Ge,Ce),+Yr.call(this,Ge,Ce)])):Ye.length&&(tt(),Ye=[],be=[]);return Ye.length&&tt(),qe.length?qe.join(""):null}return ge.x=function(ye){return arguments.length?(g=w=ye,ge):w},ge.x0=function(ye){return arguments.length?(g=ye,ge):g},ge.x1=function(ye){return arguments.length?(w=ye,ge):w},ge.y=function(ye){return arguments.length?(S=F=ye,ge):F},ge.y0=function(ye){return arguments.length?(S=ye,ge):S},ge.y1=function(ye){return arguments.length?(F=ye,ge):F},ge.defined=function(ye){return arguments.length?(L=ye,ge):L},ge.interpolate=function(ye){return arguments.length?(typeof ye=="function"?N=Y=ye:N=(Y=Cf.get(ye)||ho).key,Z=Y.reverse||Y,ae=Y.closed?"M":"L",ge):N},ge.tension=function(ye){return arguments.length?(ne=ye,ge):ne},ge}u1.reverse=Z2,Z2.reverse=u1,e.svg.area=function(){return fe(H)},e.svg.area.radial=function(){var v=fe(de);return v.radius=v.x,delete v.x,v.innerRadius=v.x0,delete v.x0,v.outerRadius=v.x1,delete v.x1,v.angle=v.y,delete v.y,v.startAngle=v.y0,delete v.y0,v.endAngle=v.y1,delete v.y1,v};function pe(v){return v.source}function xe(v){return v.target}e.svg.chord=function(){var v=pe,g=xe,w=Se,S=Ei,F=Sl;function L(ne,ge){var ye=Y(this,v,ne,ge),qe=Y(this,g,ne,ge);return"M"+ye.p0+Z(ye.r,ye.p1,ye.a1-ye.a0)+(N(ye,qe)?ae(ye.r,ye.p1,ye.r,ye.p0):ae(ye.r,ye.p1,qe.r,qe.p0)+Z(qe.r,qe.p1,qe.a1-qe.a0)+ae(qe.r,qe.p1,ye.r,ye.p0))+"Z"}function Y(ne,ge,ye,qe){var Ye=ge.call(ne,ye,qe),be=w.call(ne,Ye,qe),Ce=S.call(ne,Ye,qe)-Ae,Fe=F.call(ne,Ye,qe)-Ae;return{r:be,a0:Ce,a1:Fe,p0:[be*Math.cos(Ce),be*Math.sin(Ce)],p1:[be*Math.cos(Fe),be*Math.sin(Fe)]}}function N(ne,ge){return ne.a0==ge.a0&&ne.a1==ge.a1}function Z(ne,ge,ye){return"A"+ne+","+ne+" 0 "+ +(ye>Qr)+",1 "+ge}function ae(ne,ge,ye,qe){return"Q 0,0 "+qe}return L.radius=function(ne){return arguments.length?(w=st(ne),L):w},L.source=function(ne){return arguments.length?(v=st(ne),L):v},L.target=function(ne){return arguments.length?(g=st(ne),L):g},L.startAngle=function(ne){return arguments.length?(S=st(ne),L):S},L.endAngle=function(ne){return arguments.length?(F=st(ne),L):F},L};function Se(v){return v.radius}e.svg.diagonal=function(){var v=pe,g=xe,w=ze;function S(F,L){var Y=v.call(this,F,L),N=g.call(this,F,L),Z=(Y.y+N.y)/2,ae=[Y,{x:Y.x,y:Z},{x:N.x,y:Z},N];return ae=ae.map(w),"M"+ae[0]+"C"+ae[1]+" "+ae[2]+" "+ae[3]}return S.source=function(F){return arguments.length?(v=st(F),S):v},S.target=function(F){return arguments.length?(g=st(F),S):g},S.projection=function(F){return arguments.length?(w=F,S):w},S};function ze(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=ze,w=v.projection;return v.projection=function(S){return arguments.length?w(Ke(g=S)):g},v};function Ke(v){return function(){var g=v.apply(this,arguments),w=g[0],S=g[1]-Ae;return[w*Math.cos(S),w*Math.sin(S)]}}e.svg.symbol=function(){var v=kr,g=or;function w(S,F){return(ct.get(v.call(this,S,F))||Kr)(g.call(this,S,F))}return w.type=function(S){return arguments.length?(v=st(S),w):v},w.size=function(S){return arguments.length?(g=st(S),w):g},w};function or(){return 64}function kr(){return"circle"}function Kr(v){var g=Math.sqrt(v/Qr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var ct=e.map({circle:Kr,cross:function(v){var g=Math.sqrt(v/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(v){var g=Math.sqrt(v/(2*pt)),w=g*pt;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(v){var g=Math.sqrt(v)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(v){var g=Math.sqrt(v/ht),w=g*ht/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/ht),w=g*ht/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=ct.keys();var ht=Math.sqrt(3),pt=Math.tan(30*Pe);K.transition=function(v){for(var g=qn||++Wa,w=Zn(v),S=[],F,L,Y=Li||{time:Date.now(),ease:jc,delay:0,duration:250},N=-1,Z=this.length;++N<Z;){S.push(F=[]);for(var ae=this[N],ne=-1,ge=ae.length;++ne<ge;)(L=ae[ne])&&$n(L,ne,w,g,Y),F.push(L)}return Fa(S,w,g)},K.interrupt=function(v){return this.each(v==null?yt:fa(Zn(v)))};var yt=fa(Zn());function fa(v){return function(){var g,w,S;(g=this[v])&&(S=g[w=g.active])&&(S.timer.c=null,S.timer.t=NaN,--g.count?delete g[w]:delete this[v],g.active+=.5,S.event&&S.event.interrupt.call(this,this.__data__,S.index))}}function Fa(v,g,w){return ke(v,Ot),v.namespace=g,v.id=w,v}var Ot=[],Wa=0,qn,Li;Ot.call=K.call,Ot.empty=K.empty,Ot.node=K.node,Ot.size=K.size,e.transition=function(v,g){return v&&v.transition?qn?v.transition(g):v:e.selection().transition(v)},e.transition.prototype=Ot,Ot.select=function(v){var g=this.id,w=this.namespace,S=[],F,L,Y;v=J(v);for(var N=-1,Z=this.length;++N<Z;){S.push(F=[]);for(var ae=this[N],ne=-1,ge=ae.length;++ne<ge;)(Y=ae[ne])&&(L=v.call(Y,Y.__data__,ne,N))?("__data__"in Y&&(L.__data__=Y.__data__),$n(L,ne,w,g,Y[w][g]),F.push(L)):F.push(null)}return Fa(S,w,g)},Ot.selectAll=function(v){var g=this.id,w=this.namespace,S=[],F,L,Y,N,Z;v=ue(v);for(var ae=-1,ne=this.length;++ae<ne;)for(var ge=this[ae],ye=-1,qe=ge.length;++ye<qe;)if(Y=ge[ye]){Z=Y[w][g],L=v.call(Y,Y.__data__,ye,ae),S.push(F=[]);for(var Ye=-1,be=L.length;++Ye<be;)(N=L[Ye])&&$n(N,Ye,w,g,Z),F.push(N)}return Fa(S,w,g)},Ot.filter=function(v){var g=[],w,S,F;typeof v!="function"&&(v=Te(v));for(var L=0,Y=this.length;L<Y;L++){g.push(w=[]);for(var S=this[L],N=0,Z=S.length;N<Z;N++)(F=S[N])&&v.call(F,F.__data__,N,L)&&w.push(F)}return Fa(g,this.namespace,this.id)},Ot.tween=function(v,g){var w=this.id,S=this.namespace;return arguments.length<2?this.node()[S][w].tween.get(v):Ar(this,g==null?function(F){F[S][w].tween.remove(v)}:function(F){F[S][w].tween.set(v,g)})};function Dl(v,g,w,S){var F=v.id,L=v.namespace;return Ar(v,typeof w=="function"?function(Y,N,Z){Y[L][F].tween.set(g,S(w.call(Y,Y.__data__,N,Z)))}:(w=S(w),function(Y){Y[L][F].tween.set(g,w)}))}Ot.attr=function(v,g){if(arguments.length<2){for(g in v)this.attr(g,v[g]);return this}var w=v=="transform"?t0:Al,S=e.ns.qualify(v);function F(){this.removeAttribute(S)}function L(){this.removeAttributeNS(S.space,S.local)}function Y(Z){return Z==null?F:(Z+="",function(){var ae=this.getAttribute(S),ne;return ae!==Z&&(ne=w(ae,Z),function(ge){this.setAttribute(S,ne(ge))})})}function N(Z){return Z==null?L:(Z+="",function(){var ae=this.getAttributeNS(S.space,S.local),ne;return ae!==Z&&(ne=w(ae,Z),function(ge){this.setAttributeNS(S.space,S.local,ne(ge))})})}return Dl(this,"attr."+v,g,S.local?N:Y)},Ot.attrTween=function(v,g){var w=e.ns.qualify(v);function S(L,Y){var N=g.call(this,L,Y,this.getAttribute(w));return N&&function(Z){this.setAttribute(w,N(Z))}}function F(L,Y){var N=g.call(this,L,Y,this.getAttributeNS(w.space,w.local));return N&&function(Z){this.setAttributeNS(w.space,w.local,N(Z))}}return this.tween("attr."+v,w.local?F:S)},Ot.style=function(v,g,w){var S=arguments.length;if(S<3){if(typeof v!="string"){S<2&&(g="");for(w in v)this.style(w,v[w],g);return this}w=""}function F(){this.style.removeProperty(v)}function L(Y){return Y==null?F:(Y+="",function(){var N=i(this).getComputedStyle(this,null).getPropertyValue(v),Z;return N!==Y&&(Z=Al(N,Y),function(ae){this.style.setProperty(v,Z(ae),w)})})}return Dl(this,"style."+v,g,L)},Ot.styleTween=function(v,g,w){arguments.length<3&&(w="");function S(F,L){var Y=g.call(this,F,L,i(this).getComputedStyle(this,null).getPropertyValue(v));return Y&&function(N){this.style.setProperty(v,Y(N),w)}}return this.tween("style."+v,S)},Ot.text=function(v){return Dl(this,"text",v,Au)};function Au(v){return v==null&&(v=""),function(){this.textContent=v}}Ot.remove=function(){var v=this.namespace;return this.each("end.transition",function(){var g;this[v].count<2&&(g=this.parentNode)&&g.removeChild(this)})},Ot.ease=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].ease:(typeof v!="function"&&(v=e.ease.apply(e,arguments)),Ar(this,function(S){S[w][g].ease=v}))},Ot.delay=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].delay:Ar(this,typeof v=="function"?function(S,F,L){S[w][g].delay=+v.call(S,S.__data__,F,L)}:(v=+v,function(S){S[w][g].delay=v}))},Ot.duration=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].duration:Ar(this,typeof v=="function"?function(S,F,L){S[w][g].duration=Math.max(1,v.call(S,S.__data__,F,L))}:(v=Math.max(1,v),function(S){S[w][g].duration=v}))},Ot.each=function(v,g){var w=this.id,S=this.namespace;if(arguments.length<2){var F=Li,L=qn;try{qn=w,Ar(this,function(Y,N,Z){Li=Y[S][w],v.call(Y,Y.__data__,N,Z)})}finally{Li=F,qn=L}}else Ar(this,function(Y){var N=Y[S][w];(N.event||(N.event=e.dispatch("start","end","interrupt"))).on(v,g)});return this},Ot.transition=function(){for(var v=this.id,g=++Wa,w=this.namespace,S=[],F,L,Y,N,Z=0,ae=this.length;Z<ae;Z++){S.push(F=[]);for(var L=this[Z],ne=0,ge=L.length;ne<ge;ne++)(Y=L[ne])&&(N=Y[w][v],$n(Y,ne,w,g,{time:N.time,ease:N.ease,delay:N.delay+N.duration,duration:N.duration})),F.push(Y)}return Fa(S,w,g)};function Zn(v){return v==null?"__transition__":"__transition_"+v+"__"}function $n(v,g,w,S,F){var L=v[w]||(v[w]={active:0,count:0}),Y=L[S],N,Z,ae,ne,ge;function ye(be){var Ce=Y.delay;if(Z.t=Ce+N,Ce<=be)return qe(be-Ce);Z.c=qe}function qe(be){var Ce=L.active,Fe=L[Ce];Fe&&(Fe.timer.c=null,Fe.timer.t=NaN,--L.count,delete L[Ce],Fe.event&&Fe.event.interrupt.call(v,v.__data__,Fe.index));for(var Ge in L)if(+Ge<S){var Ve=L[Ge];Ve.timer.c=null,Ve.timer.t=NaN,--L.count,delete L[Ge]}Z.c=Ye,ss(function(){return Z.c&&Ye(be||1)&&(Z.c=null,Z.t=NaN),1},0,N),L.active=S,Y.event&&Y.event.start.call(v,v.__data__,g),ge=[],Y.tween.forEach(function(Le,wr){(wr=wr.call(v,v.__data__,g))&&ge.push(wr)}),ne=Y.ease,ae=Y.duration}function Ye(be){for(var Ce=be/ae,Fe=ne(Ce),Ge=ge.length;Ge>0;)ge[--Ge].call(v,Fe);if(Ce>=1)return Y.event&&Y.event.end.call(v,v.__data__,g),--L.count?delete L[S]:delete v[w],1}Y||(N=F.time,Z=ss(ye,0,N),Y=L[S]={tween:new _,time:N,timer:Z,delay:F.delay,duration:F.duration,ease:F.ease,index:g},F=null,++L.count)}e.svg.axis=function(){var v=e.scale.linear(),g=po,w=6,S=6,F=3,L=[10],Y=null,N;function Z(ae){ae.each(function(){var ne=e.select(this),ge=this.__chart__||v,ye=this.__chart__=v.copy(),qe=Y==null?ye.ticks?ye.ticks.apply(ye,L):ye.domain():Y,Ye=N==null?ye.tickFormat?ye.tickFormat.apply(ye,L):H:N,be=ne.selectAll(".tick").data(qe,ye),Ce=be.enter().insert("g",".domain").attr("class","tick").style("opacity",vr),Fe=e.transition(be.exit()).style("opacity",vr).remove(),Ge=e.transition(be.order()).style("opacity",1),Ve=Math.max(w,0)+F,Le,wr=nr(ye),Yr=ne.selectAll(".domain").data([0]),Zr=(Yr.enter().append("path").attr("class","domain"),e.transition(Yr));Ce.append("line"),Ce.append("text");var Xr=Ce.select("line"),tt=Ge.select("line"),at=be.select("text").text(Ye),Tt=Ce.select("text"),it=Ge.select("text"),bt=g==="top"||g==="left"?-1:1,ta,sn,ca,Ir;if(g==="bottom"||g==="top"?(Le=El,ta="x",ca="y",sn="x2",Ir="y2",at.attr("dy",bt<0?"0em":".71em").style("text-anchor","middle"),Zr.attr("d","M"+wr[0]+","+bt*S+"V0H"+wr[1]+"V"+bt*S)):(Le=Ll,ta="y",ca="x",sn="y2",Ir="x2",at.attr("dy",".32em").style("text-anchor",bt<0?"end":"start"),Zr.attr("d","M"+bt*S+","+wr[0]+"H0V"+wr[1]+"H"+bt*S)),Xr.attr(Ir,bt*w),Tt.attr(ca,bt*Ve),tt.attr(sn,0).attr(Ir,bt*w),it.attr(ta,0).attr(ca,bt*Ve),ye.rangeBand){var kt=ye,Ct=kt.rangeBand()/2;ge=ye=function(aa){return kt(aa)+Ct}}else ge.rangeBand?ge=ye:Fe.call(Le,ye,ge);Ce.call(Le,ge,ye),Ge.call(Le,ye,ye)})}return Z.scale=function(ae){return arguments.length?(v=ae,Z):v},Z.orient=function(ae){return arguments.length?(g=ae in Fl?ae+"":po,Z):g},Z.ticks=function(){return arguments.length?(L=t(arguments),Z):L},Z.tickValues=function(ae){return arguments.length?(Y=ae,Z):Y},Z.tickFormat=function(ae){return arguments.length?(N=ae,Z):N},Z.tickSize=function(ae){var ne=arguments.length;return ne?(w=+ae,S=+arguments[ne-1],Z):w},Z.innerTickSize=function(ae){return arguments.length?(w=+ae,Z):w},Z.outerTickSize=function(ae){return arguments.length?(S=+ae,Z):S},Z.tickPadding=function(ae){return arguments.length?(F=+ae,Z):F},Z.tickSubdivide=function(){return arguments.length&&Z},Z};var po="bottom",Fl={top:1,right:1,bottom:1,left:1};function El(v,g,w){v.attr("transform",function(S){var F=g(S);return"translate("+(isFinite(F)?F:w(S))+",0)"})}function Ll(v,g,w){v.attr("transform",function(S){var F=g(S);return"translate(0,"+(isFinite(F)?F:w(S))+")"})}e.svg.brush=function(){var v=Ie(ne,"brushstart","brush","brushend"),g=null,w=null,S=[0,0],F=[0,0],L,Y,N=!0,Z=!0,ae=Ho[0];function ne(be){be.each(function(){var Ce=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ye).on("touchstart.brush",Ye),Fe=Ce.selectAll(".background").data([0]);Fe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ce.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ge=Ce.selectAll(".resize").data(ae,H);Ge.exit().remove(),Ge.enter().append("g").attr("class",function(Yr){return"resize "+Yr}).style("cursor",function(Yr){return ws[Yr]}).append("rect").attr("x",function(Yr){return/[ew]$/.test(Yr)?-3:null}).attr("y",function(Yr){return/^[ns]/.test(Yr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ge.style("display",ne.empty()?"none":null);var Ve=e.transition(Ce),Le=e.transition(Fe),wr;g&&(wr=nr(g),Le.attr("x",wr[0]).attr("width",wr[1]-wr[0]),ye(Ve)),w&&(wr=nr(w),Le.attr("y",wr[0]).attr("height",wr[1]-wr[0]),qe(Ve)),ge(Ve)})}ne.event=function(be){be.each(function(){var Ce=v.of(this,arguments),Fe={x:S,y:F,i:L,j:Y},Ge=this.__chart__||Fe;this.__chart__=Fe,qn?e.select(this).transition().each("start.brush",function(){L=Ge.i,Y=Ge.j,S=Ge.x,F=Ge.y,Ce({type:"brushstart"})}).tween("brush:brush",function(){var Ve=ps(S,Fe.x),Le=ps(F,Fe.y);return L=Y=null,function(wr){S=Fe.x=Ve(wr),F=Fe.y=Le(wr),Ce({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=Fe.i,Y=Fe.j,Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"})}):(Ce({type:"brushstart"}),Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"}))})};function ge(be){be.selectAll(".resize").attr("transform",function(Ce){return"translate("+S[+/e$/.test(Ce)]+","+F[+/^s/.test(Ce)]+")"})}function ye(be){be.select(".extent").attr("x",S[0]),be.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function qe(be){be.select(".extent").attr("y",F[0]),be.selectAll(".extent,.e>rect,.w>rect").attr("height",F[1]-F[0])}function Ye(){var be=this,Ce=e.select(e.event.target),Fe=v.of(be,arguments),Ge=e.select(be),Ve=Ce.datum(),Le=!/^(n|s)$/.test(Ve)&&g,wr=!/^(e|w)$/.test(Ve)&&w,Yr=Ce.classed("extent"),Zr=Er(be),Xr,tt=e.mouse(be),at,Tt=e.select(i(be)).on("keydown.brush",ta).on("keyup.brush",sn);if(e.event.changedTouches?Tt.on("touchmove.brush",ca).on("touchend.brush",kt):Tt.on("mousemove.brush",ca).on("mouseup.brush",kt),Ge.interrupt().selectAll("*").interrupt(),Yr)tt[0]=S[0]-tt[0],tt[1]=F[0]-tt[1];else if(Ve){var it=+/w$/.test(Ve),bt=+/^n/.test(Ve);at=[S[1-it]-tt[0],F[1-bt]-tt[1]],tt[0]=S[it],tt[1]=F[bt]}else e.event.altKey&&(Xr=tt.slice());Ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ce.style("cursor")),Fe({type:"brushstart"}),ca();function ta(){e.event.keyCode==32&&(Yr||(Xr=null,tt[0]-=S[1],tt[1]-=F[1],Yr=2),Me())}function sn(){e.event.keyCode==32&&Yr==2&&(tt[0]+=S[1],tt[1]+=F[1],Yr=0,Me())}function ca(){var Ct=e.mouse(be),aa=!1;at&&(Ct[0]+=at[0],Ct[1]+=at[1]),Yr||(e.event.altKey?(Xr||(Xr=[(S[0]+S[1])/2,(F[0]+F[1])/2]),tt[0]=S[+(Ct[0]<Xr[0])],tt[1]=F[+(Ct[1]<Xr[1])]):Xr=null),Le&&Ir(Ct,g,0)&&(ye(Ge),aa=!0),wr&&Ir(Ct,w,1)&&(qe(Ge),aa=!0),aa&&(ge(Ge),Fe({type:"brush",mode:Yr?"move":"resize"}))}function Ir(Ct,aa,Za){var Mn=nr(aa),Jn=Mn[0],pi=Mn[1],qi=tt[Za],mi=Za?F:S,Wi=mi[1]-mi[0],ni,Zi;if(Yr&&(Jn-=qi,pi-=Wi+qi),ni=(Za?Z:N)?Math.max(Jn,Math.min(pi,Ct[Za])):Ct[Za],Yr?Zi=(ni+=qi)+Wi:(Xr&&(qi=Math.max(Jn,Math.min(pi,2*Xr[Za]-ni))),qi<ni?(Zi=ni,ni=qi):Zi=qi),mi[0]!=ni||mi[1]!=Zi)return Za?Y=null:L=null,mi[0]=ni,mi[1]=Zi,!0}function kt(){ca(),Ge.style("pointer-events","all").selectAll(".resize").style("display",ne.empty()?"none":null),e.select("body").style("cursor",null),Tt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),Zr(),Fe({type:"brushend"})}}return ne.x=function(be){return arguments.length?(g=be,ae=Ho[!g<<1|!w],ne):g},ne.y=function(be){return arguments.length?(w=be,ae=Ho[!g<<1|!w],ne):w},ne.clamp=function(be){return arguments.length?(g&&w?(N=!!be[0],Z=!!be[1]):g?N=!!be:w&&(Z=!!be),ne):g&&w?[N,Z]:g?N:w?Z:null},ne.extent=function(be){var Ce,Fe,Ge,Ve,Le;return arguments.length?(g&&(Ce=be[0],Fe=be[1],w&&(Ce=Ce[0],Fe=Fe[0]),L=[Ce,Fe],g.invert&&(Ce=g(Ce),Fe=g(Fe)),Fe<Ce&&(Le=Ce,Ce=Fe,Fe=Le),(Ce!=S[0]||Fe!=S[1])&&(S=[Ce,Fe])),w&&(Ge=be[0],Ve=be[1],g&&(Ge=Ge[1],Ve=Ve[1]),Y=[Ge,Ve],w.invert&&(Ge=w(Ge),Ve=w(Ve)),Ve<Ge&&(Le=Ge,Ge=Ve,Ve=Le),(Ge!=F[0]||Ve!=F[1])&&(F=[Ge,Ve])),ne):(g&&(L?(Ce=L[0],Fe=L[1]):(Ce=S[0],Fe=S[1],g.invert&&(Ce=g.invert(Ce),Fe=g.invert(Fe)),Fe<Ce&&(Le=Ce,Ce=Fe,Fe=Le))),w&&(Y?(Ge=Y[0],Ve=Y[1]):(Ge=F[0],Ve=F[1],w.invert&&(Ge=w.invert(Ge),Ve=w.invert(Ve)),Ve<Ge&&(Le=Ge,Ge=Ve,Ve=Le))),g&&w?[[Ce,Ge],[Fe,Ve]]:g?[Ce,Fe]:w&&[Ge,Ve])},ne.clear=function(){return ne.empty()||(S=[0,0],F=[0,0],L=Y=null),ne},ne.empty=function(){return!!g&&S[0]==S[1]||!!w&&F[0]==F[1]},e.rebind(ne,v,"on")};var ws={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ho=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=Gt(function(v){return v.responseText}),e.json=function(v,g){return Ur(v,"application/json",Mu,g)};function Mu(v){return JSON.parse(v.responseText)}e.html=function(v,g){return Ur(v,"text/html",Df,g)};function Df(v){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(v.responseText)}e.xml=Gt(function(v){return v.responseXML}),typeof Cd=="object"&&Cd.exports?Cd.exports=e:this.d3=e}).apply(self)});var Ty=le((Sd,B_)=>{(function(e,r){typeof Sd=="object"&&typeof B_!="undefined"?r(Sd):(e=e||self,r(e.d3=e.d3||{}))})(Sd,function(e){"use strict";var r=new Date,t=new Date;function a(Te,Oe,Ar,Br){function Qe(Be){return Te(Be=arguments.length===0?new Date:new Date(+Be)),Be}return Qe.floor=function(Be){return Te(Be=new Date(+Be)),Be},Qe.ceil=function(Be){return Te(Be=new Date(Be-1)),Oe(Be,1),Te(Be),Be},Qe.round=function(Be){var Xe=Qe(Be),yr=Qe.ceil(Be);return Be-Xe<yr-Be?Xe:yr},Qe.offset=function(Be,Xe){return Oe(Be=new Date(+Be),Xe==null?1:Math.floor(Xe)),Be},Qe.range=function(Be,Xe,yr){var Cr=[],pr;if(Be=Qe.ceil(Be),yr=yr==null?1:Math.floor(yr),!(Be<Xe)||!(yr>0))return Cr;do Cr.push(pr=new Date(+Be)),Oe(Be,yr),Te(Be);while(pr<Be&&Be<Xe);return Cr},Qe.filter=function(Be){return a(function(Xe){if(Xe>=Xe)for(;Te(Xe),!Be(Xe);)Xe.setTime(Xe-1)},function(Xe,yr){if(Xe>=Xe)if(yr<0)for(;++yr<=0;)for(;Oe(Xe,-1),!Be(Xe););else for(;--yr>=0;)for(;Oe(Xe,1),!Be(Xe););})},Ar&&(Qe.count=function(Be,Xe){return r.setTime(+Be),t.setTime(+Xe),Te(r),Te(t),Math.floor(Ar(r,t))},Qe.every=function(Be){return Be=Math.floor(Be),!isFinite(Be)||!(Be>0)?null:Be>1?Qe.filter(Br?function(Xe){return Br(Xe)%Be===0}:function(Xe){return Qe.count(0,Xe)%Be===0}):Qe}),Qe}var n=a(function(){},function(Te,Oe){Te.setTime(+Te+Oe)},function(Te,Oe){return Oe-Te});n.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?a(function(Oe){Oe.setTime(Math.floor(Oe/Te)*Te)},function(Oe,Ar){Oe.setTime(+Oe+Ar*Te)},function(Oe,Ar){return(Ar-Oe)/Te}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(Te){Te.setTime(Te-Te.getMilliseconds())},function(Te,Oe){Te.setTime(+Te+Oe*o)},function(Te,Oe){return(Oe-Te)/o},function(Te){return Te.getUTCSeconds()}),h=c.range,d=a(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o)},function(Te,Oe){Te.setTime(+Te+Oe*l)},function(Te,Oe){return(Oe-Te)/l},function(Te){return Te.getMinutes()}),m=d.range,p=a(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o-Te.getMinutes()*l)},function(Te,Oe){Te.setTime(+Te+Oe*s)},function(Te,Oe){return(Oe-Te)/s},function(Te){return Te.getHours()}),y=p.range,b=a(function(Te){Te.setHours(0,0,0,0)},function(Te,Oe){Te.setDate(Te.getDate()+Oe)},function(Te,Oe){return(Oe-Te-(Oe.getTimezoneOffset()-Te.getTimezoneOffset())*l)/u},function(Te){return Te.getDate()-1}),C=b.range;function x(Te){return a(function(Oe){Oe.setDate(Oe.getDate()-(Oe.getDay()+7-Te)%7),Oe.setHours(0,0,0,0)},function(Oe,Ar){Oe.setDate(Oe.getDate()+Ar*7)},function(Oe,Ar){return(Ar-Oe-(Ar.getTimezoneOffset()-Oe.getTimezoneOffset())*l)/f})}var _=x(0),M=x(1),T=x(2),A=x(3),E=x(4),P=x(5),z=x(6),B=_.range,X=M.range,I=T.range,V=A.range,H=E.range,Q=P.range,oe=z.range,re=a(function(Te){Te.setDate(1),Te.setHours(0,0,0,0)},function(Te,Oe){Te.setMonth(Te.getMonth()+Oe)},function(Te,Oe){return Oe.getMonth()-Te.getMonth()+(Oe.getFullYear()-Te.getFullYear())*12},function(Te){return Te.getMonth()}),te=re.range,ie=a(function(Te){Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Oe){Te.setFullYear(Te.getFullYear()+Oe)},function(Te,Oe){return Oe.getFullYear()-Te.getFullYear()},function(Te){return Te.getFullYear()});ie.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:a(function(Oe){Oe.setFullYear(Math.floor(Oe.getFullYear()/Te)*Te),Oe.setMonth(0,1),Oe.setHours(0,0,0,0)},function(Oe,Ar){Oe.setFullYear(Oe.getFullYear()+Ar*Te)})};var ce=ie.range,Me=a(function(Te){Te.setUTCSeconds(0,0)},function(Te,Oe){Te.setTime(+Te+Oe*l)},function(Te,Oe){return(Oe-Te)/l},function(Te){return Te.getUTCMinutes()}),De=Me.range,Ie=a(function(Te){Te.setUTCMinutes(0,0,0)},function(Te,Oe){Te.setTime(+Te+Oe*s)},function(Te,Oe){return(Oe-Te)/s},function(Te){return Te.getUTCHours()}),Ue=Ie.range,ke=a(function(Te){Te.setUTCHours(0,0,0,0)},function(Te,Oe){Te.setUTCDate(Te.getUTCDate()+Oe)},function(Te,Oe){return(Oe-Te)/u},function(Te){return Te.getUTCDate()-1}),je=ke.range;function W(Te){return a(function(Oe){Oe.setUTCDate(Oe.getUTCDate()-(Oe.getUTCDay()+7-Te)%7),Oe.setUTCHours(0,0,0,0)},function(Oe,Ar){Oe.setUTCDate(Oe.getUTCDate()+Ar*7)},function(Oe,Ar){return(Ar-Oe)/f})}var ee=W(0),me=W(1),K=W(2),J=W(3),ue=W(4),_e=W(5),Ne=W(6),Je=ee.range,ar=me.range,tr=K.range,fr=J.range,Re=ue.range,sr=_e.range,hr=Ne.range,dr=a(function(Te){Te.setUTCDate(1),Te.setUTCHours(0,0,0,0)},function(Te,Oe){Te.setUTCMonth(Te.getUTCMonth()+Oe)},function(Te,Oe){return Oe.getUTCMonth()-Te.getUTCMonth()+(Oe.getUTCFullYear()-Te.getUTCFullYear())*12},function(Te){return Te.getUTCMonth()}),Ze=dr.range,cr=a(function(Te){Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Oe){Te.setUTCFullYear(Te.getUTCFullYear()+Oe)},function(Te,Oe){return Oe.getUTCFullYear()-Te.getUTCFullYear()},function(Te){return Te.getUTCFullYear()});cr.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:a(function(Oe){Oe.setUTCFullYear(Math.floor(Oe.getUTCFullYear()/Te)*Te),Oe.setUTCMonth(0,1),Oe.setUTCHours(0,0,0,0)},function(Oe,Ar){Oe.setUTCFullYear(Oe.getUTCFullYear()+Ar*Te)})};var Lr=cr.range;e.timeDay=b,e.timeDays=C,e.timeFriday=P,e.timeFridays=Q,e.timeHour=p,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=M,e.timeMondays=X,e.timeMonth=re,e.timeMonths=te,e.timeSaturday=z,e.timeSaturdays=oe,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=_,e.timeSundays=B,e.timeThursday=E,e.timeThursdays=H,e.timeTuesday=T,e.timeTuesdays=I,e.timeWednesday=A,e.timeWednesdays=V,e.timeWeek=_,e.timeWeeks=B,e.timeYear=ie,e.timeYears=ce,e.utcDay=ke,e.utcDays=je,e.utcFriday=_e,e.utcFridays=sr,e.utcHour=Ie,e.utcHours=Ue,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=Me,e.utcMinutes=De,e.utcMonday=me,e.utcMondays=ar,e.utcMonth=dr,e.utcMonths=Ze,e.utcSaturday=Ne,e.utcSaturdays=hr,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=ee,e.utcSundays=Je,e.utcThursday=ue,e.utcThursdays=Re,e.utcTuesday=K,e.utcTuesdays=tr,e.utcWednesday=J,e.utcWednesdays=fr,e.utcWeek=ee,e.utcWeeks=Je,e.utcYear=cr,e.utcYears=Lr,Object.defineProperty(e,"__esModule",{value:!0})})});var v1=le((Dd,I_)=>{(function(e,r){typeof Dd=="object"&&typeof I_!="undefined"?r(Dd,Ty()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Dd,function(e,r){"use strict";function t(Ae){if(0<=Ae.y&&Ae.y<100){var Pe=new Date(-1,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L);return Pe.setFullYear(Ae.y),Pe}return new Date(Ae.y,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L)}function a(Ae){if(0<=Ae.y&&Ae.y<100){var Pe=new Date(Date.UTC(-1,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L));return Pe.setUTCFullYear(Ae.y),Pe}return new Date(Date.UTC(Ae.y,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L))}function n(Ae,Pe,ur){return{y:Ae,m:Pe,d:ur,H:0,M:0,S:0,L:0}}function i(Ae){var Pe=Ae.dateTime,ur=Ae.date,gr=Ae.time,It=Ae.periods,Yt=Ae.days,ia=Ae.shortDays,Ta=Ae.months,Ht=Ae.shortMonths,Zt=h(It),ma=d(It),ra=h(Yt),xn=d(Yt),on=h(ia),Wn=d(ia),Jr=h(Ta),ua=d(Ta),zt=h(Ht),ga=d(Ht),ba={a:Js,A:hl,b:rn,B:Ii,c:null,d:re,e:re,f:De,g:_e,G:Je,H:te,I:ie,j:ce,L:Me,m:Ie,M:Ue,p:dl,q:Hi,Q:Er,s:Or,S:ke,u:je,U:W,V:me,w:K,W:J,x:null,X:null,y:ue,Y:Ne,Z:ar,"%":Rr},_a={a:Si,A:ns,b:is,B:Ks,c:null,d:tr,e:tr,f:dr,g:yr,G:pr,H:fr,I:Re,j:sr,L:hr,m:Ze,M:cr,p:os,q:Qs,Q:Er,s:Or,S:Lr,u:Te,U:Oe,V:Br,w:Qe,W:Be,x:null,X:null,y:Xe,Y:Cr,Z:xr,"%":Rr},Vt={a:Ea,A:Da,b:Eo,B:Bi,c:$s,d:E,e:E,f:V,g:_,G:x,H:z,I:z,j:P,L:I,m:A,M:B,p:na,q:T,Q,s:oe,S:X,u:p,U:y,V:b,w:m,W:C,x:as,X:vl,y:_,Y:x,Z:M,"%":H};ba.x=Na(ur,ba),ba.X=Na(gr,ba),ba.c=Na(Pe,ba),_a.x=Na(ur,_a),_a.X=Na(gr,_a),_a.c=Na(Pe,_a);function Na(ot,st){return function(Gt){var Ur=[],gn=-1,oa=0,Ga=ot.length,Xa,Un,pl;for(Gt instanceof Date||(Gt=new Date(+Gt));++gn<Ga;)ot.charCodeAt(gn)===37&&(Ur.push(ot.slice(oa,gn)),(Un=o[Xa=ot.charAt(++gn)])!=null?Xa=ot.charAt(++gn):Un=Xa==="e"?" ":"0",(pl=st[Xa])&&(Xa=pl(Gt,Un)),Ur.push(Xa),oa=gn+1);return Ur.push(ot.slice(oa,gn)),Ur.join("")}}function wn(ot,st){return function(Gt){var Ur=n(1900,void 0,1),gn=ya(Ur,ot,Gt+="",0),oa,Ga;if(gn!=Gt.length)return null;if("Q"in Ur)return new Date(Ur.Q);if("s"in Ur)return new Date(Ur.s*1e3+("L"in Ur?Ur.L:0));if(st&&!("Z"in Ur)&&(Ur.Z=0),"p"in Ur&&(Ur.H=Ur.H%12+Ur.p*12),Ur.m===void 0&&(Ur.m="q"in Ur?Ur.q:0),"V"in Ur){if(Ur.V<1||Ur.V>53)return null;"w"in Ur||(Ur.w=1),"Z"in Ur?(oa=a(n(Ur.y,0,1)),Ga=oa.getUTCDay(),oa=Ga>4||Ga===0?r.utcMonday.ceil(oa):r.utcMonday(oa),oa=r.utcDay.offset(oa,(Ur.V-1)*7),Ur.y=oa.getUTCFullYear(),Ur.m=oa.getUTCMonth(),Ur.d=oa.getUTCDate()+(Ur.w+6)%7):(oa=t(n(Ur.y,0,1)),Ga=oa.getDay(),oa=Ga>4||Ga===0?r.timeMonday.ceil(oa):r.timeMonday(oa),oa=r.timeDay.offset(oa,(Ur.V-1)*7),Ur.y=oa.getFullYear(),Ur.m=oa.getMonth(),Ur.d=oa.getDate()+(Ur.w+6)%7)}else("W"in Ur||"U"in Ur)&&("w"in Ur||(Ur.w="u"in Ur?Ur.u%7:"W"in Ur?1:0),Ga="Z"in Ur?a(n(Ur.y,0,1)).getUTCDay():t(n(Ur.y,0,1)).getDay(),Ur.m=0,Ur.d="W"in Ur?(Ur.w+6)%7+Ur.W*7-(Ga+5)%7:Ur.w+Ur.U*7-(Ga+6)%7);return"Z"in Ur?(Ur.H+=Ur.Z/100|0,Ur.M+=Ur.Z%100,a(Ur)):t(Ur)}}function ya(ot,st,Gt,Ur){for(var gn=0,oa=st.length,Ga=Gt.length,Xa,Un;gn<oa;){if(Ur>=Ga)return-1;if(Xa=st.charCodeAt(gn++),Xa===37){if(Xa=st.charAt(gn++),Un=Vt[Xa in o?st.charAt(gn++):Xa],!Un||(Ur=Un(ot,Gt,Ur))<0)return-1}else if(Xa!=Gt.charCodeAt(Ur++))return-1}return Ur}function na(ot,st,Gt){var Ur=Zt.exec(st.slice(Gt));return Ur?(ot.p=ma[Ur[0].toLowerCase()],Gt+Ur[0].length):-1}function Ea(ot,st,Gt){var Ur=on.exec(st.slice(Gt));return Ur?(ot.w=Wn[Ur[0].toLowerCase()],Gt+Ur[0].length):-1}function Da(ot,st,Gt){var Ur=ra.exec(st.slice(Gt));return Ur?(ot.w=xn[Ur[0].toLowerCase()],Gt+Ur[0].length):-1}function Eo(ot,st,Gt){var Ur=zt.exec(st.slice(Gt));return Ur?(ot.m=ga[Ur[0].toLowerCase()],Gt+Ur[0].length):-1}function Bi(ot,st,Gt){var Ur=Jr.exec(st.slice(Gt));return Ur?(ot.m=ua[Ur[0].toLowerCase()],Gt+Ur[0].length):-1}function $s(ot,st,Gt){return ya(ot,Pe,st,Gt)}function as(ot,st,Gt){return ya(ot,ur,st,Gt)}function vl(ot,st,Gt){return ya(ot,gr,st,Gt)}function Js(ot){return ia[ot.getDay()]}function hl(ot){return Yt[ot.getDay()]}function rn(ot){return Ht[ot.getMonth()]}function Ii(ot){return Ta[ot.getMonth()]}function dl(ot){return It[+(ot.getHours()>=12)]}function Hi(ot){return 1+~~(ot.getMonth()/3)}function Si(ot){return ia[ot.getUTCDay()]}function ns(ot){return Yt[ot.getUTCDay()]}function is(ot){return Ht[ot.getUTCMonth()]}function Ks(ot){return Ta[ot.getUTCMonth()]}function os(ot){return It[+(ot.getUTCHours()>=12)]}function Qs(ot){return 1+~~(ot.getUTCMonth()/3)}return{format:function(ot){var st=Na(ot+="",ba);return st.toString=function(){return ot},st},parse:function(ot){var st=wn(ot+="",!1);return st.toString=function(){return ot},st},utcFormat:function(ot){var st=Na(ot+="",_a);return st.toString=function(){return ot},st},utcParse:function(ot){var st=wn(ot+="",!0);return st.toString=function(){return ot},st}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(Ae,Pe,ur){var gr=Ae<0?"-":"",It=(gr?-Ae:Ae)+"",Yt=It.length;return gr+(Yt<ur?new Array(ur-Yt+1).join(Pe)+It:It)}function c(Ae){return Ae.replace(u,"\\$&")}function h(Ae){return new RegExp("^(?:"+Ae.map(c).join("|")+")","i")}function d(Ae){for(var Pe={},ur=-1,gr=Ae.length;++ur<gr;)Pe[Ae[ur].toLowerCase()]=ur;return Pe}function m(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+1));return gr?(Ae.w=+gr[0],ur+gr[0].length):-1}function p(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+1));return gr?(Ae.u=+gr[0],ur+gr[0].length):-1}function y(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.U=+gr[0],ur+gr[0].length):-1}function b(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.V=+gr[0],ur+gr[0].length):-1}function C(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.W=+gr[0],ur+gr[0].length):-1}function x(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+4));return gr?(Ae.y=+gr[0],ur+gr[0].length):-1}function _(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.y=+gr[0]+(+gr[0]>68?1900:2e3),ur+gr[0].length):-1}function M(Ae,Pe,ur){var gr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Pe.slice(ur,ur+6));return gr?(Ae.Z=gr[1]?0:-(gr[2]+(gr[3]||"00")),ur+gr[0].length):-1}function T(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+1));return gr?(Ae.q=gr[0]*3-3,ur+gr[0].length):-1}function A(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.m=gr[0]-1,ur+gr[0].length):-1}function E(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.d=+gr[0],ur+gr[0].length):-1}function P(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+3));return gr?(Ae.m=0,Ae.d=+gr[0],ur+gr[0].length):-1}function z(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.H=+gr[0],ur+gr[0].length):-1}function B(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.M=+gr[0],ur+gr[0].length):-1}function X(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.S=+gr[0],ur+gr[0].length):-1}function I(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+3));return gr?(Ae.L=+gr[0],ur+gr[0].length):-1}function V(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+6));return gr?(Ae.L=Math.floor(gr[0]/1e3),ur+gr[0].length):-1}function H(Ae,Pe,ur){var gr=s.exec(Pe.slice(ur,ur+1));return gr?ur+gr[0].length:-1}function Q(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur));return gr?(Ae.Q=+gr[0],ur+gr[0].length):-1}function oe(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur));return gr?(Ae.s=+gr[0],ur+gr[0].length):-1}function re(Ae,Pe){return f(Ae.getDate(),Pe,2)}function te(Ae,Pe){return f(Ae.getHours(),Pe,2)}function ie(Ae,Pe){return f(Ae.getHours()%12||12,Pe,2)}function ce(Ae,Pe){return f(1+r.timeDay.count(r.timeYear(Ae),Ae),Pe,3)}function Me(Ae,Pe){return f(Ae.getMilliseconds(),Pe,3)}function De(Ae,Pe){return Me(Ae,Pe)+"000"}function Ie(Ae,Pe){return f(Ae.getMonth()+1,Pe,2)}function Ue(Ae,Pe){return f(Ae.getMinutes(),Pe,2)}function ke(Ae,Pe){return f(Ae.getSeconds(),Pe,2)}function je(Ae){var Pe=Ae.getDay();return Pe===0?7:Pe}function W(Ae,Pe){return f(r.timeSunday.count(r.timeYear(Ae)-1,Ae),Pe,2)}function ee(Ae){var Pe=Ae.getDay();return Pe>=4||Pe===0?r.timeThursday(Ae):r.timeThursday.ceil(Ae)}function me(Ae,Pe){return Ae=ee(Ae),f(r.timeThursday.count(r.timeYear(Ae),Ae)+(r.timeYear(Ae).getDay()===4),Pe,2)}function K(Ae){return Ae.getDay()}function J(Ae,Pe){return f(r.timeMonday.count(r.timeYear(Ae)-1,Ae),Pe,2)}function ue(Ae,Pe){return f(Ae.getFullYear()%100,Pe,2)}function _e(Ae,Pe){return Ae=ee(Ae),f(Ae.getFullYear()%100,Pe,2)}function Ne(Ae,Pe){return f(Ae.getFullYear()%1e4,Pe,4)}function Je(Ae,Pe){var ur=Ae.getDay();return Ae=ur>=4||ur===0?r.timeThursday(Ae):r.timeThursday.ceil(Ae),f(Ae.getFullYear()%1e4,Pe,4)}function ar(Ae){var Pe=Ae.getTimezoneOffset();return(Pe>0?"-":(Pe*=-1,"+"))+f(Pe/60|0,"0",2)+f(Pe%60,"0",2)}function tr(Ae,Pe){return f(Ae.getUTCDate(),Pe,2)}function fr(Ae,Pe){return f(Ae.getUTCHours(),Pe,2)}function Re(Ae,Pe){return f(Ae.getUTCHours()%12||12,Pe,2)}function sr(Ae,Pe){return f(1+r.utcDay.count(r.utcYear(Ae),Ae),Pe,3)}function hr(Ae,Pe){return f(Ae.getUTCMilliseconds(),Pe,3)}function dr(Ae,Pe){return hr(Ae,Pe)+"000"}function Ze(Ae,Pe){return f(Ae.getUTCMonth()+1,Pe,2)}function cr(Ae,Pe){return f(Ae.getUTCMinutes(),Pe,2)}function Lr(Ae,Pe){return f(Ae.getUTCSeconds(),Pe,2)}function Te(Ae){var Pe=Ae.getUTCDay();return Pe===0?7:Pe}function Oe(Ae,Pe){return f(r.utcSunday.count(r.utcYear(Ae)-1,Ae),Pe,2)}function Ar(Ae){var Pe=Ae.getUTCDay();return Pe>=4||Pe===0?r.utcThursday(Ae):r.utcThursday.ceil(Ae)}function Br(Ae,Pe){return Ae=Ar(Ae),f(r.utcThursday.count(r.utcYear(Ae),Ae)+(r.utcYear(Ae).getUTCDay()===4),Pe,2)}function Qe(Ae){return Ae.getUTCDay()}function Be(Ae,Pe){return f(r.utcMonday.count(r.utcYear(Ae)-1,Ae),Pe,2)}function Xe(Ae,Pe){return f(Ae.getUTCFullYear()%100,Pe,2)}function yr(Ae,Pe){return Ae=Ar(Ae),f(Ae.getUTCFullYear()%100,Pe,2)}function Cr(Ae,Pe){return f(Ae.getUTCFullYear()%1e4,Pe,4)}function pr(Ae,Pe){var ur=Ae.getUTCDay();return Ae=ur>=4||ur===0?r.utcThursday(Ae):r.utcThursday.ceil(Ae),f(Ae.getUTCFullYear()%1e4,Pe,4)}function xr(){return"+0000"}function Rr(){return"%"}function Er(Ae){return+Ae}function Or(Ae){return Math.floor(+Ae/1e3)}var rr;Sr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Sr(Ae){return rr=i(Ae),e.timeFormat=rr.format,e.timeParse=rr.parse,e.utcFormat=rr.utcFormat,e.utcParse=rr.utcParse,rr}var vr="%Y-%m-%dT%H:%M:%S.%LZ";function jr(Ae){return Ae.toISOString()}var Qr=Date.prototype.toISOString?jr:e.utcFormat(vr);function qr(Ae){var Pe=new Date(Ae);return isNaN(Pe)?null:Pe}var Wr=+new Date("2000-01-01T00:00:00.000Z")?qr:e.utcParse(vr);e.isoFormat=Qr,e.isoParse=Wr,e.timeFormatDefaultLocale=Sr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var ky=le((Fd,H_)=>{(function(e,r){typeof Fd=="object"&&typeof H_!="undefined"?r(Fd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Fd,(function(e){"use strict";function r(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function t(A,E){if((P=(A=E?A.toExponential(E-1):A.toExponential()).indexOf("e"))<0)return null;var P,z=A.slice(0,P);return[z.length>1?z[0]+z.slice(2):z,+A.slice(P+1)]}function a(A){return A=t(Math.abs(A)),A?A[1]:NaN}function n(A,E){return function(P,z){for(var B=P.length,X=[],I=0,V=A[0],H=0;B>0&&V>0&&(H+V+1>z&&(V=Math.max(1,z-H)),X.push(P.substring(B-=V,B+V)),!((H+=V+1)>z));)V=A[I=(I+1)%A.length];return X.reverse().join(E)}}function i(A){return function(E){return E.replace(/[0-9]/g,function(P){return A[+P]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(A){if(!(E=o.exec(A)))throw new Error("invalid format: "+A);var E;return new s({fill:E[1],align:E[2],sign:E[3],symbol:E[4],zero:E[5],width:E[6],comma:E[7],precision:E[8]&&E[8].slice(1),trim:E[9],type:E[10]})}l.prototype=s.prototype;function s(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}s.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 u(A){e:for(var E=A.length,P=1,z=-1,B;P<E;++P)switch(A[P]){case".":z=B=P;break;case"0":z===0&&(z=P),B=P;break;default:if(!+A[P])break e;z>0&&(z=0);break}return z>0?A.slice(0,z)+A.slice(B+1):A}var f;function c(A,E){var P=t(A,E);if(!P)return A+"";var z=P[0],B=P[1],X=B-(f=Math.max(-8,Math.min(8,Math.floor(B/3)))*3)+1,I=z.length;return X===I?z:X>I?z+new Array(X-I+1).join("0"):X>0?z.slice(0,X)+"."+z.slice(X):"0."+new Array(1-X).join("0")+t(A,Math.max(0,E+X-1))[0]}function h(A,E){var P=t(A,E);if(!P)return A+"";var z=P[0],B=P[1];return B<0?"0."+new Array(-B).join("0")+z:z.length>B+1?z.slice(0,B+1)+"."+z.slice(B+1):z+new Array(B-z.length+2).join("0")}var d={"%":function(A,E){return(A*100).toFixed(E)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:r,e:function(A,E){return A.toExponential(E)},f:function(A,E){return A.toFixed(E)},g:function(A,E){return A.toPrecision(E)},o:function(A){return Math.round(A).toString(8)},p:function(A,E){return h(A*100,E)},r:h,s:c,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function m(A){return A}var p=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(A){var E=A.grouping===void 0||A.thousands===void 0?m:n(p.call(A.grouping,Number),A.thousands+""),P=A.currency===void 0?"":A.currency[0]+"",z=A.currency===void 0?"":A.currency[1]+"",B=A.decimal===void 0?".":A.decimal+"",X=A.numerals===void 0?m:i(p.call(A.numerals,String)),I=A.percent===void 0?"%":A.percent+"",V=A.minus===void 0?"-":A.minus+"",H=A.nan===void 0?"NaN":A.nan+"";function Q(re){re=l(re);var te=re.fill,ie=re.align,ce=re.sign,Me=re.symbol,De=re.zero,Ie=re.width,Ue=re.comma,ke=re.precision,je=re.trim,W=re.type;W==="n"?(Ue=!0,W="g"):d[W]||(ke===void 0&&(ke=12),je=!0,W="g"),(De||te==="0"&&ie==="=")&&(De=!0,te="0",ie="=");var ee=Me==="$"?P:Me==="#"&&/[boxX]/.test(W)?"0"+W.toLowerCase():"",me=Me==="$"?z:/[%p]/.test(W)?I:"",K=d[W],J=/[defgprs%]/.test(W);ke=ke===void 0?6:/[gprs]/.test(W)?Math.max(1,Math.min(21,ke)):Math.max(0,Math.min(20,ke));function ue(_e){var Ne=ee,Je=me,ar,tr,fr;if(W==="c")Je=K(_e)+Je,_e="";else{_e=+_e;var Re=_e<0||1/_e<0;if(_e=isNaN(_e)?H:K(Math.abs(_e),ke),je&&(_e=u(_e)),Re&&+_e==0&&ce!=="+"&&(Re=!1),Ne=(Re?ce==="("?ce:V:ce==="-"||ce==="("?"":ce)+Ne,Je=(W==="s"?y[8+f/3]:"")+Je+(Re&&ce==="("?")":""),J){for(ar=-1,tr=_e.length;++ar<tr;)if(fr=_e.charCodeAt(ar),48>fr||fr>57){Je=(fr===46?B+_e.slice(ar+1):_e.slice(ar))+Je,_e=_e.slice(0,ar);break}}}Ue&&!De&&(_e=E(_e,1/0));var sr=Ne.length+_e.length+Je.length,hr=sr<Ie?new Array(Ie-sr+1).join(te):"";switch(Ue&&De&&(_e=E(hr+_e,hr.length?Ie-Je.length:1/0),hr=""),ie){case"<":_e=Ne+_e+Je+hr;break;case"=":_e=Ne+hr+_e+Je;break;case"^":_e=hr.slice(0,sr=hr.length>>1)+Ne+_e+Je+hr.slice(sr);break;default:_e=hr+Ne+_e+Je;break}return X(_e)}return ue.toString=function(){return re+""},ue}function oe(re,te){var ie=Q((re=l(re),re.type="f",re)),ce=Math.max(-8,Math.min(8,Math.floor(a(te)/3)))*3,Me=Math.pow(10,-ce),De=y[8+ce/3];return function(Ie){return ie(Me*Ie)+De}}return{format:Q,formatPrefix:oe}}var C;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(A){return C=b(A),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function _(A){return Math.max(0,-a(Math.abs(A)))}function M(A,E){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(E)/3)))*3-a(Math.abs(A)))}function T(A,E){return A=Math.abs(A),E=Math.abs(E)-A,Math.max(0,a(E)-a(A))+1}e.FormatSpecifier=s,e.formatDefaultLocale=x,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=_,e.precisionPrefix=M,e.precisionRound=T,Object.defineProperty(e,"__esModule",{value:!0})}))});var U_=le((Qye,O_)=>{"use strict";O_.exports=function(e){for(var r=e.length,t,a=0;a<r;a++)if(t=e.charCodeAt(a),(t<9||t>13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Wt=le((e4e,G_)=>{"use strict";var NY=U_();G_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&NY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var $a={};Ha($a,{ALMOST_EQUAL:()=>tV,BADNUM:()=>Cy,EPOCHJD:()=>rV,FP_SAFE:()=>BY,LOG_CLIP:()=>aV,MINUS_SIGN:()=>nV,ONEAVGMONTH:()=>XY,ONEAVGQUARTER:()=>GY,ONEAVGYEAR:()=>HY,ONEDAY:()=>ZY,ONEHOUR:()=>$Y,ONEMAXMONTH:()=>VY,ONEMAXQUARTER:()=>UY,ONEMAXYEAR:()=>IY,ONEMICROSEC:()=>eV,ONEMILLI:()=>QY,ONEMIN:()=>JY,ONEMINMONTH:()=>jY,ONEMINQUARTER:()=>YY,ONEMINYEAR:()=>OY,ONESEC:()=>KY,ONEWEEK:()=>WY});var Cy,BY,IY,HY,OY,UY,GY,YY,VY,XY,jY,WY,ZY,$Y,JY,KY,QY,eV,rV,tV,aV,nV,Ya=Ia(()=>{"use strict";Cy=void 0,BY=Number.MAX_VALUE*1e-4,IY=316224e5,HY=315576e5,OY=31536e6,UY=79488e5,GY=78894e5,YY=76896e5,VY=26784e5,XY=26298e5,jY=24192e5,WY=6048e5,ZY=864e5,$Y=36e5,JY=6e4,KY=1e3,QY=1,eV=.001,rV=24405875e-1,tV=1-1e-6,aV=10,nV="\u2212"});var Sy=le((Ed,Y_)=>{(function(e,r){typeof Ed=="object"&&typeof Y_!="undefined"?r(Ed):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Ed,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a<r.length;a++)t[r.charCodeAt(a)]=a;var n=function(o){var l=new Uint8Array(o),s,u=l.length,f="";for(s=0;s<u;s+=3)f+=r[l[s]>>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,h,d,m;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var p=new ArrayBuffer(l),y=new Uint8Array(p);for(u=0;u<s;u+=4)c=t[o.charCodeAt(u)],h=t[o.charCodeAt(u+1)],d=t[o.charCodeAt(u+2)],m=t[o.charCodeAt(u+3)],y[f++]=c<<2|h>>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return p};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var c0=le((r4e,V_)=>{"use strict";V_.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var $i=le(Pl=>{"use strict";var iV=Sy().decode,oV=c0(),Dy=Array.isArray,lV=ArrayBuffer,sV=DataView;function X_(e){return lV.isView(e)&&!(e instanceof sV)}Pl.isTypedArray=X_;function Ld(e){return Dy(e)||X_(e)}Pl.isArrayOrTypedArray=Ld;function uV(e){return!Ld(e[0])}Pl.isArray1D=uV;Pl.ensureArray=function(e,r){return Dy(e)||(e=[]),e.length=r,e};var Yn={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Yn.uint8c=Yn.u1c;Yn.uint8=Yn.u1;Yn.int8=Yn.i1;Yn.uint16=Yn.u2;Yn.int16=Yn.i2;Yn.uint32=Yn.u4;Yn.int32=Yn.i4;Yn.float32=Yn.f4;Yn.float64=Yn.f8;function Fy(e){return e.constructor===ArrayBuffer}Pl.isArrayBuffer=Fy;Pl.decodeTypedArraySpec=function(e){var r=[],t=fV(e),a=t.dtype,n=Yn[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;Fy(o)||(o=iV(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],h=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f<u;f++)r[f]=new n(o,d,c),d+=h;else if(s===3){u=+l[1];for(var m=+l[2],p=0;p<m;p++)for(r[p]=[],f=0;f<u;f++)r[p][f]=new n(o,d,c),d+=h}else throw new Error("ndim: "+s+'is not supported with the shape:"'+t.shape+'"');return r.bdata=t.bdata,r.dtype=t.dtype,r.shape=l.reverse().join(","),e._inputArray=r,r};Pl.isTypedArraySpec=function(e){return oV(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||Fy(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function fV(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}Pl.concat=function(){var e=[],r=!0,t=0,a,n,i,o,l,s,u,f;for(i=0;i<arguments.length;i++)o=arguments[i],s=o.length,s&&(n?e.push(o):(n=o,l=s),Dy(o)?a=!1:(r=!1,t?a!==o.constructor&&(a=!1):a=o.constructor),t+=s);if(!t)return[];if(!e.length)return n;if(r)return n.concat.apply(n,e);if(a){for(u=new a(t),u.set(n),i=0;i<e.length;i++)o=e[i],u.set(o,l),l+=o.length;return u}for(u=new Array(t),f=0;f<n.length;f++)u[f]=n[f];for(i=0;i<e.length;i++){for(o=e[i],f=0;f<o.length;f++)u[l+f]=o[f];l+=f}return u};Pl.maxRowLength=function(e){return j_(e,Math.max,0)};Pl.minRowLength=function(e){return j_(e,Math.min,1/0)};function j_(e,r,t){if(Ld(e))if(Ld(e[0])){for(var a=t,n=0;n<e.length;n++)a=r(a,e[n].length);return a}else return e.length;return 0}});var ev=le((a4e,K_)=>{"use strict";var W_=Wt(),Ly=$i().isArrayOrTypedArray;K_.exports=function(r,t){if(W_(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l<a.length;l++)if(String(a[l]).slice(0,2)==="__")throw"bad property string";for(l=0;l<a.length;){if(n=String(a[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),n){if(n[1])a[l]=n[1];else if(l===0)a.splice(0,1);else throw"bad property string";for(i=n[2].slice(1,-1).split("]["),o=0;o<i.length;o++)l++,a.splice(l,0,Number(i[o]))}l++}return typeof r!="object"?dV(r,t,a):{set:$_(r,a,t),get:Z_(r,a),astr:t,parts:a,obj:r}};function Z_(e,r){return function(t){var a=e,n,i,o,l,s;for(l=0;l<r.length-1;l++){if(n=r[l],n===-1){for(i=!0,o=[],s=0;s<a.length;s++)o[s]=Z_(a[s],r.slice(l+1))(t),o[s]!==o[0]&&(i=!1);return i?o[0]:o}if(typeof n=="number"&&!Ly(a)||(a=a[n],typeof a!="object"||a===null))return}if(!(typeof a!="object"||a===null)&&(o=a[r[l]],!(!t&&o===null)))return o}}var cV=/(^|\.)args\[/;function Ey(e,r){return e===void 0||e===null&&!r.match(cV)}function $_(e,r,t){return function(a){var n=e,i="",o=[[e,i]],l=Ey(a,t),s,u;for(u=0;u<r.length-1;u++){if(s=r[u],typeof s=="number"&&!Ly(n))throw"array index but container is not an array";if(s===-1){if(l=!hV(n,r.slice(u+1),a,t),l)break;return}if(!J_(n,s,r[u+1],l))break;if(n=n[s],typeof n!="object"||n===null)throw"container is not an object";i=vV(i,s),o.push([n,i])}if(l){if(u===r.length-1&&(delete n[r[u]],Array.isArray(n)&&+r[u]===n.length-1))for(;n.length&&n[n.length-1]===void 0;)n.pop()}else n[r[u]]=a}}function vV(e,r){var t=r;return W_(r)?t="["+r+"]":e&&(t="."+r),e+t}function hV(e,r,t,a){var n=Ly(t),i=!0,o=t,l=a.replace("-1",0),s=n?!1:Ey(t,l),u=r[0],f;for(f=0;f<e.length;f++)l=a.replace("-1",f),n&&(o=t[f%t.length],s=Ey(o,l)),s&&(i=!1),J_(e,f,u,s)&&$_(e[f],r,a.replace("-1",f))(o);return i}function J_(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function dV(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var tx=le((n4e,rx)=>{"use strict";var h1=ev(),pV=/^\w*$/,mV=0,Q_=1,qd=2,ex=3,Lf=4;rx.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=h1(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i<o.length;i++)u[o[i][a]]=i;var f=pV.test(n),c={set:function(h,d){var m=d===null?Lf:mV;if(!o){if(!l||m===Lf)return;o=[],l.set(o)}var p=u[h];if(p===void 0){if(m===Lf)return;m=m|ex,p=o.length,u[h]=p}else d!==(f?o[p][n]:h1(o[p],n).get())&&(m=m|qd);var y=o[p]=o[p]||{};return y[a]=h,f?y[n]=d:h1(y,n).set(d),d!==null&&(m=m&~Lf),s[p]=s[p]|m,c},get:function(h){if(o){var d=u[h];if(d!==void 0)return f?o[d][n]:h1(o[d],n).get()}},rename:function(h,d){var m=u[h];return m===void 0||(s[m]=s[m]|Q_,u[d]=m,delete u[h],o[m][a]=d),c},remove:function(h){var d=u[h];if(d===void 0)return c;var m=o[d];if(Object.keys(m).length>2)return s[d]=s[d]|qd,c.set(h,null);if(f){for(i=d;i<o.length;i++)s[i]=s[i]|ex;for(i=d;i<o.length;i++)u[o[i][a]]--;o.splice(d,1),delete u[h]}else h1(m,n).set(null),s[d]=s[d]|qd|Lf;return c},constructUpdate:function(){for(var h,d,m={},p=Object.keys(s),y=0;y<p.length;y++)d=p[y],h=t+"["+d+"]",o[d]?(s[d]&Q_&&(m[h+"."+a]=o[d][a]),s[d]&qd&&(f?m[h+"."+n]=s[d]&Lf?null:o[d][n]:m[h+"."+n]=s[d]&Lf?null:h1(o[d],n).get())):m[h]=null;return m}};return c}});var nx=le((i4e,ax)=>{"use strict";var gV=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,yV=/^[^\.\[\]]+$/;ax.exports=function(e,r){for(;r;){var t=e.match(gV);if(t)e=t[1];else if(e.match(yV))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Pd=le((o4e,ix)=>{"use strict";var bV=Wt();ix.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return bV(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var sx=le((l4e,lx)=>{"use strict";var ox=$i().isArrayOrTypedArray,rv=c0();lx.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(ox(n)&&ox(i)&&rv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l<o;l++)i[l]!==n[l]&&rv(n[l])&&rv(i[l])&&e(i[l],n[l])}else rv(n)&&rv(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var d1={};Ha(d1,{mod:()=>_V,modHalf:()=>xV});function _V(e,r){let t=e%r;return t<0?t+r:t}function xV(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var p1=Ia(()=>{"use strict"});var Tn=le(nv=>{"use strict";var ux=c0(),tv=Array.isArray;function wV(e,r){var t,a;for(t=0;t<e.length;t++){if(a=e[t],a!==null&&typeof a=="object")return!1;a!==void 0&&(r[t]=a)}return!0}nv.extendFlat=function(...e){return av(e,!1,!1,!1)};nv.extendDeep=function(...e){return av(e,!0,!1,!1)};nv.extendDeepAll=function(...e){return av(e,!0,!0,!1)};nv.extendDeepNoArrays=function(...e){return av(e,!0,!1,!0)};function av(e,r,t,a){var n=e[0],i=e.length,o,l,s,u,f,c,h;if(i===2&&tv(n)&&tv(e[1])&&n.length===0){if(h=wV(e[1],n),h)return n;n.splice(0,n.length)}for(var d=1;d<i;d++){o=e[d];for(l in o)s=n[l],u=o[l],a&&tv(u)?n[l]=u:r&&u&&(ux(u)||(f=tv(u)))?(f?(f=!1,c=s&&tv(s)?s:[]):c=s&&ux(s)?s:{},n[l]=av([c,u],r,t,a)):(typeof u!="undefined"||t)&&(n[l]=u)}return n}});var gi=le((u4e,fx)=>{"use strict";fx.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var iv={};Ha(iv,{HOVERARROWSIZE:()=>MV,HOVERFONT:()=>CV,HOVERFONTSIZE:()=>kV,HOVERID:()=>DV,HOVERMINTIME:()=>SV,HOVERTEXTPAD:()=>TV,YANGLE:()=>AV});var AV,MV,TV,kV,CV,SV,DV,ov=Ia(()=>{"use strict";AV=60,MV=6,TV=3,kV=13,CV="Arial, sans-serif",SV=50,DV="-hover"});var m1=le((f4e,hx)=>{"use strict";var cx=(ov(),Tr(iv)),vx=gi(),qy=vx({editType:"none"});qy.family.dflt=cx.HOVERFONT;qy.size.dflt=cx.HOVERFONTSIZE;hx.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:qy,grouptitlefont:vx({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Rd=le((c4e,dx)=>{"use strict";var FV=gi(),lv=m1().hoverlabel,sv=Tn().extendFlat;dx.exports={hoverlabel:{bgcolor:sv({},lv.bgcolor,{arrayOk:!0}),bordercolor:sv({},lv.bordercolor,{arrayOk:!0}),font:FV({arrayOk:!0,editType:"none"}),align:sv({},lv.align,{arrayOk:!0}),namelength:sv({},lv.namelength,{arrayOk:!0}),showarrow:sv({},lv.showarrow),editType:"none"}}});var Go=le((v4e,px)=>{"use strict";var EV=gi(),LV=Rd();px.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:EV({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:LV.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var lA=le((b4e,oA)=>{var T4=Object.defineProperty,qV=Object.getOwnPropertyDescriptor,PV=Object.getOwnPropertyNames,RV=Object.prototype.hasOwnProperty,zV=(e,r)=>{for(var t in r)T4(e,t,{get:r[t],enumerable:!0})},NV=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of PV(r))!RV.call(e,n)&&n!==t&&T4(e,n,{get:()=>r[n],enumerable:!(a=qV(r,n))||a.enumerable});return e},BV=e=>NV(T4({},"__esModule",{value:!0}),e),Tx={};zV(Tx,{a98:()=>DZ,average:()=>PX,averageAngle:()=>ks,averageNumber:()=>Ux,blend:()=>qW,blerp:()=>i4,clampChroma:()=>QW,clampGamut:()=>K4,clampRgb:()=>KW,colorsNamed:()=>Cx,convertA98ToXyz65:()=>o4,convertCubehelixToRgb:()=>Hx,convertDlchToLab65:()=>Yd,convertHsiToRgb:()=>$x,convertHslToRgb:()=>Qx,convertHsvToRgb:()=>E4,convertHwbToRgb:()=>aw,convertItpToXyz65:()=>s4,convertJabToJch:()=>f4,convertJabToRgb:()=>N4,convertJabToXyz65:()=>R4,convertJchToJab:()=>c4,convertLab65ToDlch:()=>Vd,convertLab65ToRgb:()=>mv,convertLab65ToXyz65:()=>S4,convertLabToLch:()=>Tu,convertLabToRgb:()=>I4,convertLabToXyz50:()=>rp,convertLchToLab:()=>ku,convertLchuvToLuv:()=>U4,convertLrgbToOklab:()=>G4,convertLrgbToRgb:()=>If,convertLuvToLchuv:()=>O4,convertLuvToXyz50:()=>jd,convertOkhslToOklab:()=>d4,convertOkhsvToOklab:()=>m4,convertOklabToLrgb:()=>M1,convertOklabToOkhsl:()=>h4,convertOklabToOkhsv:()=>p4,convertOklabToRgb:()=>bv,convertP3ToXyz65:()=>g4,convertProphotoToXyz50:()=>_4,convertRec2020ToXyz65:()=>w4,convertRgbToCubehelix:()=>Ix,convertRgbToHsi:()=>Jx,convertRgbToHsl:()=>ew,convertRgbToHsv:()=>L4,convertRgbToHwb:()=>nw,convertRgbToJab:()=>z4,convertRgbToLab:()=>H4,convertRgbToLab65:()=>gv,convertRgbToLrgb:()=>Bf,convertRgbToOklab:()=>yv,convertRgbToXyb:()=>Lw,convertRgbToXyz50:()=>A1,convertRgbToXyz65:()=>v0,convertRgbToYiq:()=>Iw,convertXybToRgb:()=>qw,convertXyz50ToLab:()=>tp,convertXyz50ToLuv:()=>Xd,convertXyz50ToProphoto:()=>b4,convertXyz50ToRgb:()=>w1,convertXyz50ToXyz65:()=>Nw,convertXyz65ToA98:()=>l4,convertXyz65ToItp:()=>u4,convertXyz65ToJab:()=>P4,convertXyz65ToLab65:()=>D4,convertXyz65ToP3:()=>y4,convertXyz65ToRec2020:()=>x4,convertXyz65ToRgb:()=>h0,convertXyz65ToXyz50:()=>zw,convertYiqToRgb:()=>Hw,converter:()=>La,cubehelix:()=>FZ,differenceCie76:()=>CX,differenceCie94:()=>SX,differenceCiede2000:()=>DX,differenceCmc:()=>FX,differenceEuclidean:()=>x1,differenceHueChroma:()=>pv,differenceHueNaive:()=>Ox,differenceHueSaturation:()=>dv,differenceHyab:()=>EX,differenceItp:()=>qX,differenceKotsarenkoRamos:()=>LX,displayable:()=>J4,dlab:()=>EZ,dlch:()=>LZ,easingGamma:()=>rA,easingInOutSine:()=>CZ,easingMidpoint:()=>Ww,easingSmootherstep:()=>TZ,easingSmoothstep:()=>wZ,easingSmoothstepInverse:()=>AZ,filterBrightness:()=>sZ,filterContrast:()=>uZ,filterDeficiencyDeuter:()=>_Z,filterDeficiencyProt:()=>bZ,filterDeficiencyTrit:()=>xZ,filterGrayscale:()=>vZ,filterHueRotate:()=>dZ,filterInvert:()=>hZ,filterSaturate:()=>cZ,filterSepia:()=>fZ,fixupAlpha:()=>Rn,fixupHueDecreasing:()=>wX,fixupHueIncreasing:()=>xX,fixupHueLonger:()=>_X,fixupHueShorter:()=>Ts,formatCss:()=>kW,formatHex:()=>CW,formatHex8:()=>SW,formatHsl:()=>FW,formatRgb:()=>DW,getMode:()=>yi,hsi:()=>qZ,hsl:()=>PZ,hsv:()=>RZ,hwb:()=>zZ,inGamut:()=>ip,interpolate:()=>UW,interpolateWith:()=>$w,interpolateWithPremultipliedAlpha:()=>GW,interpolatorLinear:()=>nt,interpolatorPiecewise:()=>Nx,interpolatorSplineBasis:()=>Kw,interpolatorSplineBasisClosed:()=>Qw,interpolatorSplineMonotone:()=>XW,interpolatorSplineMonotone2:()=>jW,interpolatorSplineMonotoneClosed:()=>WW,interpolatorSplineNatural:()=>YW,interpolatorSplineNaturalClosed:()=>VW,itp:()=>NZ,jab:()=>BZ,jch:()=>IZ,lab:()=>HZ,lab65:()=>OZ,lch:()=>UZ,lch65:()=>GZ,lchuv:()=>YZ,lerp:()=>Pf,lrgb:()=>VZ,luv:()=>XZ,mapAlphaDivide:()=>jw,mapAlphaMultiply:()=>Xw,mapTransferGamma:()=>BW,mapTransferLinear:()=>W4,mapper:()=>_v,modeA98:()=>Bx,modeCubehelix:()=>Gx,modeDlab:()=>Wx,modeDlch:()=>Zx,modeHsi:()=>Kx,modeHsl:()=>F4,modeHsv:()=>q4,modeHwb:()=>ow,modeItp:()=>uw,modeJab:()=>fw,modeJch:()=>cw,modeLab:()=>ap,modeLab65:()=>hw,modeLch:()=>np,modeLch65:()=>pw,modeLchuv:()=>yw,modeLrgb:()=>bw,modeLuv:()=>_w,modeOkhsl:()=>ww,modeOkhsv:()=>Aw,modeOklab:()=>Tw,modeOklch:()=>Cw,modeP3:()=>Sw,modeProphoto:()=>Dw,modeRec2020:()=>Fw,modeRgb:()=>Nf,modeXyb:()=>Pw,modeXyz50:()=>Rw,modeXyz65:()=>Bw,modeYiq:()=>Ow,nearest:()=>tZ,okhsl:()=>jZ,okhsv:()=>WZ,oklab:()=>ZZ,oklch:()=>$Z,p3:()=>JZ,parse:()=>Px,parseHex:()=>Dx,parseHsl:()=>tw,parseHslLegacy:()=>rw,parseHwb:()=>iw,parseLab:()=>vw,parseLch:()=>dw,parseNamed:()=>Sx,parseOklab:()=>Mw,parseOklch:()=>kw,parseRgb:()=>Rx,parseRgbLegacy:()=>Fx,parseTransparent:()=>zx,prophoto:()=>KZ,random:()=>NW,rec2020:()=>QZ,removeParser:()=>KV,rgb:()=>e$,round:()=>Uw,samples:()=>JW,serializeHex:()=>j4,serializeHex8:()=>Gw,serializeHsl:()=>Vw,serializeRgb:()=>Yw,toGamut:()=>eZ,trilerp:()=>uX,unlerp:()=>sX,useMode:()=>Aa,useParser:()=>Lx,wcagContrast:()=>SZ,wcagLuminance:()=>M4,xyb:()=>r$,xyz50:()=>t$,xyz65:()=>a$,yiq:()=>n$});oA.exports=BV(Tx);var IV=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},kx=IV,HV={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},Cx=HV,OV=e=>kx(Cx[e.toLowerCase()],6),Sx=OV,UV=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,GV=e=>{let r;return(r=e.match(UV))?kx(parseInt(r[1],16),r[1].length):void 0},Dx=GV,Ji="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",h4e=`(?:${Ji}|none)`,cv=`${Ji}%`,d4e=`(?:${Ji}%|none)`,k4=`(?:${Ji}%|${Ji})`,YV=`(?:${Ji}%|${Ji}|none)`,VV=`(?:${Ji}(deg|grad|rad|turn)|${Ji})`,p4e=`(?:${Ji}(deg|grad|rad|turn)|${Ji}|none)`,b1="\\s*,\\s*",m4e=new RegExp("^"+YV+"$"),XV=new RegExp(`^rgba?\\(\\s*${Ji}${b1}${Ji}${b1}${Ji}\\s*(?:,\\s*${k4}\\s*)?\\)$`),jV=new RegExp(`^rgba?\\(\\s*${cv}${b1}${cv}${b1}${cv}\\s*(?:,\\s*${k4}\\s*)?\\)$`),WV=e=>{let r={mode:"rgb"},t;if(t=e.match(XV))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(jV))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},Fx=WV,ZV=(e,r)=>e===void 0?void 0:typeof e!="object"?Px(e):e.mode!==void 0?e:r?Ba(da({},e),{mode:r}):void 0,Rl=ZV,$V=(e="rgb")=>r=>(r=Rl(r,e))!==void 0?r.mode===e?r:Ms[r.mode][e]?Ms[r.mode][e](r):e==="rgb"?Ms[r.mode].rgb(r):Ms.rgb[e](Ms[r.mode].rgb(r)):void 0,La=$V,Ms={},Ex={},_1=[],C4={},JV=e=>e,Aa=e=>(Ms[e.mode]=da(da({},Ms[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{Ms[r]||(Ms[r]={}),Ms[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=JV)}),Ex[e.mode]=e,(e.parse||[]).forEach(r=>{Lx(r,e.mode)}),La(e.mode)),yi=e=>Ex[e],Lx=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");C4[e]=r}else typeof e=="function"&&_1.indexOf(e)<0&&_1.push(e)},KV=e=>{if(typeof e=="string")delete C4[e];else if(typeof e=="function"){let r=_1.indexOf(e);r>0&&_1.splice(r,1)}},a4=/[^\x00-\x7F]|[a-zA-Z_]/,QV=/[^\x00-\x7F]|[-\w]/,$r={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Dt=0;function zd(e){let r=e[Dt],t=e[Dt+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Dt+2]):r==="."?/\d/.test(t):/\d/.test(r)}function n4(e){if(Dt>=e.length)return!1;let r=e[Dt];if(a4.test(r))return!0;if(r==="-"){if(e.length-Dt<2)return!1;let t=e[Dt+1];return!!(t==="-"||a4.test(t))}return!1}var eX={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function uv(e){let r="";if((e[Dt]==="-"||e[Dt]==="+")&&(r+=e[Dt++]),r+=Nd(e),e[Dt]==="."&&/\d/.test(e[Dt+1])&&(r+=e[Dt++]+Nd(e)),(e[Dt]==="e"||e[Dt]==="E")&&((e[Dt+1]==="-"||e[Dt+1]==="+")&&/\d/.test(e[Dt+2])?r+=e[Dt++]+e[Dt++]+Nd(e):/\d/.test(e[Dt+1])&&(r+=e[Dt++]+Nd(e))),n4(e)){let t=Hd(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:$r.Hue,value:r*eX[t]}:void 0}return e[Dt]==="%"?(Dt++,{type:$r.Percentage,value:+r}):{type:$r.Number,value:+r}}function Nd(e){let r="";for(;/\d/.test(e[Dt]);)r+=e[Dt++];return r}function Hd(e){let r="";for(;Dt<e.length&&QV.test(e[Dt]);)r+=e[Dt++];return r}function rX(e){let r=Hd(e);return e[Dt]==="("?(Dt++,{type:$r.Function,value:r}):r==="none"?{type:$r.None,value:void 0}:{type:$r.Ident,value:r}}function tX(e=""){let r=e.trim(),t=[],a;for(Dt=0;Dt<r.length;){if(a=r[Dt++],a===`
`||a===" "||a===" "){for(;Dt<r.length&&(r[Dt]===`
`||r[Dt]===" "||r[Dt]===" ");)Dt++;continue}if(a===",")return;if(a===")"){t.push({type:$r.ParenClose});continue}if(a==="+"){if(Dt--,zd(r)){t.push(uv(r));continue}return}if(a==="-"){if(Dt--,zd(r)){t.push(uv(r));continue}if(n4(r)){t.push({type:$r.Ident,value:Hd(r)});continue}return}if(a==="."){if(Dt--,zd(r)){t.push(uv(r));continue}return}if(a==="/"){for(;Dt<r.length&&(r[Dt]===`
`||r[Dt]===" "||r[Dt]===" ");)Dt++;let n;if(zd(r)&&(n=uv(r),n.type!==$r.Hue)){t.push({type:$r.Alpha,value:n});continue}if(n4(r)&&Hd(r)==="none"){t.push({type:$r.Alpha,value:{type:$r.None,value:void 0}});continue}return}if(/\d/.test(a)){Dt--,t.push(uv(r));continue}if(a4.test(a)){Dt--,t.push(rX(r));continue}return}return t}function aX(e){e._i=0;let r=e[e._i++];if(!r||r.type!==$r.Function||r.value!=="color"||(r=e[e._i++],r.type!==$r.Ident))return;let t=C4[r.value];if(!t)return;let a={mode:t},n=qx(e,!1);if(!n)return;let i=yi(t).channels;for(let o=0,l,s;o<i.length;o++)l=n[o],s=i[o],l.type!==$r.None&&(a[s]=l.type===$r.Number?l.value:l.value/100,s==="alpha"&&(a[s]=Math.max(0,Math.min(1,a[s]))));return a}function qx(e,r){let t=[],a;for(;e._i<e.length;){if(a=e[e._i++],a.type===$r.None||a.type===$r.Number||a.type===$r.Alpha||a.type===$r.Percentage||r&&a.type===$r.Hue){t.push(a);continue}if(a.type===$r.ParenClose){if(e._i<e.length)return;continue}return}if(!(t.length<3||t.length>4)){if(t.length===4){if(t[3].type!==$r.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:$r.None,value:void 0}),t.every(n=>n.type!==$r.Alpha)?t:void 0}}function nX(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==$r.Function)return;let a=qx(e,r);if(a)return a.unshift(t.value),a}var iX=e=>{if(typeof e!="string")return;let r=tX(e),t=r?nX(r,!0):void 0,a,n=0,i=_1.length;for(;n<i;)if((a=_1[n++](e,t))!==void 0)return a;return r?aX(r):void 0},Px=iX;function oX(e,r){if(!r||r[0]!=="rgb"&&r[0]!=="rgba")return;let t={mode:"rgb"},[,a,n,i,o]=r;if(!(a.type===$r.Hue||n.type===$r.Hue||i.type===$r.Hue))return a.type!==$r.None&&(t.r=a.type===$r.Number?a.value/255:a.value/100),n.type!==$r.None&&(t.g=n.type===$r.Number?n.value/255:n.value/100),i.type!==$r.None&&(t.b=i.type===$r.Number?i.value/255:i.value/100),o.type!==$r.None&&(t.alpha=Math.min(1,Math.max(0,o.type===$r.Number?o.value:o.value/100))),t}var Rx=oX,lX=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,zx=lX,Pf=(e,r,t)=>e+t*(r-e),sX=(e,r,t)=>(t-e)/(r-e),i4=(e,r,t,a,n,i)=>Pf(Pf(e,r,n),Pf(t,a,n),i),uX=(e,r,t,a,n,i,o,l,s,u,f)=>Pf(i4(e,r,t,a,s,u),i4(n,i,o,l,s,u),f),fX=e=>{let r=[];for(let t=0;t<e.length-1;t++){let a=e[t],n=e[t+1];a===void 0&&n===void 0?r.push(void 0):a!==void 0&&n!==void 0?r.push([a,n]):r.push(a!==void 0?[a,a]:[n,n])}return r},Nx=e=>r=>{let t=fX(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),o=t[i];return o===void 0?void 0:e(o[0],o[1],n-i)}},nt=Nx(Pf),Rn=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},cX={mode:"rgb",channels:["r","g","b","alpha"],parse:[Rx,Dx,Fx,Sx,zx,"srgb"],serialize:"srgb",interpolate:{r:nt,g:nt,b:nt,alpha:{use:nt,fixup:Rn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Nf=cX,Py=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),vX=e=>{let r=Py(e.r),t=Py(e.g),a=Py(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},o4=vX,Ry=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),hX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:Ry(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:Ry(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:Ry(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},l4=hX,zy=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},dX=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:zy(e),g:zy(r),b:zy(t)};return a!==void 0&&(n.alpha=a),n},Bf=dX,pX=e=>{let{r,g:t,b:a,alpha:n}=Bf(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},v0=pX,Ny=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},mX=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:Ny(e),g:Ny(r),b:Ny(t)};return a!==void 0&&(i.alpha=a),i},If=mX,gX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=If({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},h0=gX,yX=Ba(da({},Nf),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>l4(v0(e)),xyz65:l4},toMode:{rgb:e=>h0(o4(e)),xyz65:o4}}),Bx=yX,bX=e=>(e=e%360)<0?e+360:e,ii=bX,Zd=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=ii(t);return a===0||e[a-1]===void 0?i:r(i-ii(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),Ts=e=>Zd(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),_X=e=>Zd(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),xX=e=>Zd(e,r=>r>=0?r:r+360),wX=e=>Zd(e,r=>r<=0?r:r-360),Qn=[-.14861,1.78277,-.29227,-.90649,1.97294,0],AX=Math.PI/180,MX=180/Math.PI,mx=Qn[3]*Qn[4],gx=Qn[1]*Qn[4],yx=Qn[1]*Qn[2]-Qn[0]*Qn[3],TX=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(yx*t+e*mx-r*gx)/(yx+mx-gx),i=t-n,o=(Qn[4]*(r-n)-Qn[2]*i)/Qn[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(Qn[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*MX-120),a!==void 0&&(l.alpha=a),l},Ix=TX,kX=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*AX,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),o=Math.cos(e),l=Math.sin(e);return n.r=t+i*(Qn[0]*o+Qn[1]*l),n.g=t+i*(Qn[2]*o+Qn[3]*l),n.b=t+i*(Qn[4]*o+Qn[5]*l),a!==void 0&&(n.alpha=a),n},Hx=kX,dv=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=ii(e.h),a=ii(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},Ox=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=ii(e.h),a=ii(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},pv=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=ii(e.h),a=ii(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},x1=(e="rgb",r=[1,1,1,0])=>{let t=yi(e),a=t.channels,n=t.difference,i=La(e);return(o,l)=>{let s=i(o),u=i(l);return Math.sqrt(a.reduce((f,c,h)=>{let d=n[c]?n[c](s,u):s[c]-u[c];return f+(r[h]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},CX=()=>x1("lab65"),SX=(e=1,r=.045,t=.015)=>{let a=La("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),h=l.l,d=l.a,m=l.b,p=Math.sqrt(d*d+m*m),y=Math.pow(s-h,2),b=Math.pow(c-p,2),C=Math.pow(u-d,2)+Math.pow(f-m,2)-b;return Math.sqrt(y/Math.pow(e,2)+b/Math.pow(1+r*c,2)+C/Math.pow(1+t*c,2))}},DX=(e=1,r=1,t=1)=>{let a=La("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),h=l.l,d=l.a,m=l.b,p=Math.sqrt(d*d+m*m),y=(c+p)/2,b=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),C=u*(1+b),x=d*(1+b),_=Math.sqrt(C*C+f*f),M=Math.sqrt(x*x+m*m),T=Math.abs(C)+Math.abs(f)===0?0:Math.atan2(f,C);T+=(T<0)*2*Math.PI;let A=Math.abs(x)+Math.abs(m)===0?0:Math.atan2(m,x);A+=(A<0)*2*Math.PI;let E=h-s,P=M-_,z=_*M===0?0:A-T;z-=(z>Math.PI)*2*Math.PI,z+=(z<-Math.PI)*2*Math.PI;let B=2*Math.sqrt(_*M)*Math.sin(z/2),X=(s+h)/2,I=(_+M)/2,V;_*M===0?V=T+A:(V=(T+A)/2,V-=(Math.abs(T-A)>Math.PI)*Math.PI,V+=(V<0)*2*Math.PI);let H=Math.pow(X-50,2),Q=1-.17*Math.cos(V-Math.PI/6)+.24*Math.cos(2*V)+.32*Math.cos(3*V+Math.PI/30)-.2*Math.cos(4*V-63*Math.PI/180),oe=1+.015*H/Math.sqrt(20+H),re=1+.045*I,te=1+.015*I*Q,ie=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*V-275)/25,2)),ce=2*Math.sqrt(Math.pow(I,7)/(Math.pow(I,7)+Math.pow(25,7))),Me=-1*Math.sin(2*ie)*ce;return Math.sqrt(Math.pow(E/(e*oe),2)+Math.pow(P/(r*re),2)+Math.pow(B/(t*te),2)+Me*P/(r*re)*B/(t*te))}},FX=(e=1,r=1)=>{let t=La("lab65");return(a,n)=>{let i=t(a),o=i.l,l=i.a,s=i.b,u=Math.sqrt(l*l+s*s),f=Math.atan2(s,l);f=f+2*Math.PI*(f<0);let c=t(n),h=c.l,d=c.a,m=c.b,p=Math.sqrt(d*d+m*m),y=Math.pow(o-h,2),b=Math.pow(u-p,2),C=Math.pow(l-d,2)+Math.pow(s-m,2)-b,x=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),_=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),M=o<16?.511:.040975*o/(1+.01765*o),T=.0638*u/(1+.0131*u)+.638,A=T*(x*_+1-x);return Math.sqrt(y/Math.pow(e*M,2)+b/Math.pow(r*T,2)+C/Math.pow(A,2))}},EX=()=>{let e=La("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,o=a.a-n.a,l=a.b-n.b;return Math.abs(i)+Math.sqrt(o*o+l*l)}},LX=()=>x1("yiq",[.5053,.299,.1957]),qX=()=>x1("itp",[518400,129600,518400]),ks=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},Ux=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},By=e=>typeof e=="function";function PX(e,r="rgb",t){let a=yi(r),n=e.map(La(r));return a.channels.reduce((i,o)=>{let l=n.map(s=>s[o]).filter(s=>s!==void 0);if(l.length){let s;By(t)?s=t:t&&By(t[o])?s=t[o]:a.average&&By(a.average[o])?s=a.average[o]:s=Ux,i[o]=s(l,o)}return i},{mode:r})}var RX={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Ix},toMode:{rgb:Hx},interpolate:{h:{use:nt,fixup:Ts},s:nt,l:nt,alpha:{use:nt,fixup:Rn}},difference:{h:dv},average:{h:ks}},Gx=RX,zX=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),o={mode:n,l:e,c:i};return i&&(o.h=ii(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},Tu=zX,NX=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},ku=NX,Yx=Math.pow(29,3)/Math.pow(3,3),Vx=Math.pow(6,3)/Math.pow(29,3),Pn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},y1={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},g4e=Math.pow(29,3)/Math.pow(3,3),y4e=Math.pow(6,3)/Math.pow(29,3),Iy=e=>Math.pow(e,3)>Vx?Math.pow(e,3):(116*e-16)/Yx,BX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz65",x:Iy(i)*y1.X,y:Iy(n)*y1.Y,z:Iy(o)*y1.Z};return a!==void 0&&(l.alpha=a),l},S4=BX,IX=e=>h0(S4(e)),mv=IX,Hy=e=>e>Vx?Math.cbrt(e):(Yx*e+16)/116,HX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Hy(e/y1.X),i=Hy(r/y1.Y),o=Hy(t/y1.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},D4=HX,OX=e=>{let r=D4(v0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},gv=OX,Od=1,Xx=1,hv=26/180*Math.PI,Ud=Math.cos(hv),Gd=Math.sin(hv),jx=100/Math.log(139/100),UX=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*Od/jx)-1)/.0039},i=(Math.exp(.0435*r*Xx*Od)-1)/.075,o=i*Math.cos(t/180*Math.PI-hv),l=i*Math.sin(t/180*Math.PI-hv);return n.a=o*Ud-l/.83*Gd,n.b=o*Gd+l/.83*Ud,a!==void 0&&(n.alpha=a),n},Yd=UX,GX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*Ud+t*Gd,i=.83*(t*Ud-r*Gd),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:jx/Od*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*Xx*Od)};return l.c&&(l.h=ii((Math.atan2(i,n)+hv)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},Vd=GX,bx=e=>Yd(Tu(e,"dlch")),_x=e=>ku(Vd(e),"dlab"),YX={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:bx,rgb:e=>mv(bx(e))},fromMode:{lab65:_x,rgb:e=>_x(gv(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:nt,a:nt,b:nt,alpha:{use:nt,fixup:Rn}}},Wx=YX,VX={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Yd,dlab:e=>ku(e,"dlab"),rgb:e=>mv(Yd(e))},fromMode:{lab65:Vd,dlab:e=>Tu(e,"dlch"),rgb:e=>Vd(gv(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:nt,c:nt,h:{use:nt,fixup:Ts},alpha:{use:nt,fixup:Rn}},difference:{h:pv},average:{h:ks}},Zx=VX;function $x({h:e,s:r,i:t,alpha:a}){e=ii(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function Jx({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r<t)*6:n===r?(t-e)/(n-i)+2:(e-r)/(n-i)+4)*60),a!==void 0&&(o.alpha=a),o}var XX={mode:"hsi",toMode:{rgb:$x},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:Jx},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:nt,fixup:Ts},s:nt,i:nt,alpha:{use:nt,fixup:Rn}},difference:{h:dv},average:{h:ks}},Kx=XX;function Qx({h:e,s:r,l:t,alpha:a}){e=ii(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=t+r*(t<.5?t:1-t),i=n-(n-t)*2*Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:n,g:i,b:2*t-n};break;case 1:o={r:i,g:n,b:2*t-n};break;case 2:o={r:2*t-n,g:n,b:i};break;case 3:o={r:2*t-n,g:i,b:n};break;case 4:o={r:i,g:2*t-n,b:n};break;case 5:o={r:n,g:2*t-n,b:i};break;default:o={r:2*t-n,g:2*t-n,b:2*t-n}}return o.mode="rgb",a!==void 0&&(o.alpha=a),o}function ew({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsl",s:n===i?0:(n-i)/(1-Math.abs(n+i-1)),l:.5*(n+i)};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r<t)*6:n===r?(t-e)/(n-i)+2:(e-r)/(n-i)+4)*60),a!==void 0&&(o.alpha=a),o}var jX=(e,r)=>{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},WX=jX,ZX=new RegExp(`^hsla?\\(\\s*${VV}${b1}${cv}${b1}${cv}\\s*(?:,\\s*${k4}\\s*)?\\)$`),$X=e=>{let r=e.match(ZX);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=WX(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},rw=$X;function JX(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==$r.None){if(a.type===$r.Percentage)return;t.h=a.value}if(n.type!==$r.None){if(n.type===$r.Hue)return;t.s=n.value/100}if(i.type!==$r.None){if(i.type===$r.Hue)return;t.l=i.value/100}return o.type!==$r.None&&(t.alpha=Math.min(1,Math.max(0,o.type===$r.Number?o.value:o.value/100))),t}var tw=JX,KX={mode:"hsl",toMode:{rgb:Qx},fromMode:{rgb:ew},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[tw,rw],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:nt,fixup:Ts},s:nt,l:nt,alpha:{use:nt,fixup:Rn}},difference:{h:dv},average:{h:ks}},F4=KX;function E4({h:e,s:r,v:t,alpha:a}){e=ii(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function L4({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r<t)*6:n===r?(t-e)/(n-i)+2:(e-r)/(n-i)+4)*60),a!==void 0&&(o.alpha=a),o}var QX={mode:"hsv",toMode:{rgb:E4},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:L4},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:nt,fixup:Ts},s:nt,v:nt,alpha:{use:nt,fixup:Rn}},difference:{h:dv},average:{h:ks}},q4=QX;function aw({h:e,w:r,b:t,alpha:a}){if(r===void 0&&(r=0),t===void 0&&(t=0),r+t>1){let n=r+t;r/=n,t/=n}return E4({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function nw(e){let r=L4(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function ej(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==$r.None){if(a.type===$r.Percentage)return;t.h=a.value}if(n.type!==$r.None){if(n.type===$r.Hue)return;t.w=n.value/100}if(i.type!==$r.None){if(i.type===$r.Hue)return;t.b=i.value/100}return o.type!==$r.None&&(t.alpha=Math.min(1,Math.max(0,o.type===$r.Number?o.value:o.value/100))),t}var iw=ej,rj={mode:"hwb",toMode:{rgb:aw},fromMode:{rgb:nw},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[iw],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:nt,fixup:Ts},w:nt,b:nt,alpha:{use:nt,fixup:Rn}},difference:{h:Ox},average:{h:ks}},ow=rj,lw=203,$d=.1593017578125,sw=78.84375,Jd=.8359375,Kd=18.8515625,Qd=18.6875;function Oy(e){if(e<0)return 0;let r=Math.pow(e,1/sw);return 1e4*Math.pow(Math.max(0,r-Jd)/(Kd-Qd*r),1/$d)}function Uy(e){if(e<0)return 0;let r=Math.pow(e/1e4,$d);return Math.pow((Jd+Kd*r)/(1+Qd*r),sw)}var Gy=e=>Math.max(e/lw,0),tj=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Oy(e+.008609037037932761*r+.11102962500302593*t),i=Oy(e-.00860903703793275*r-.11102962500302599*t),o=Oy(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:Gy(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:Gy(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:Gy(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},s4=tj,Yy=(e=0)=>Math.max(e*lw,0),aj=({x:e,y:r,z:t,alpha:a})=>{let n=Yy(e),i=Yy(r),o=Yy(t),l=Uy(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),s=Uy(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),u=Uy(.0070797844607477*n+.0748396662186366*i+.8433265453898765*o),f=.5*l+.5*s,c=1.61376953125*l-3.323486328125*s+1.709716796875*u,h=4.378173828125*l-4.24560546875*s-.132568359375*u,d={mode:"itp",i:f,t:c,p:h};return a!==void 0&&(d.alpha=a),d},u4=aj,nj={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:s4,rgb:e=>h0(s4(e))},fromMode:{xyz65:u4,rgb:e=>u4(v0(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:nt,t:nt,p:nt,alpha:{use:nt,fixup:Rn}}},uw=nj,ij=134.03437499999998,oj=16295499532821565e-27,Vy=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,$d);return Math.pow((Jd+Kd*r)/(1+Qd*r),ij)},Xy=(e=0)=>Math.max(e*203,0),lj=({x:e,y:r,z:t,alpha:a})=>{e=Xy(e),r=Xy(r),t=Xy(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=Vy(.41478972*n+.579999*i+.014648*t),l=Vy(-.20151*n+1.120649*i+.0531008*t),s=Vy(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-oj,a:3.524*o-4.066708*l+.542708*s,b:.199076*o+1.096799*l-1.295875*s};return a!==void 0&&(f.alpha=a),f},P4=lj,sj=134.03437499999998,xx=16295499532821565e-27,jy=e=>{if(e<0)return 0;let r=Math.pow(e,1/sj);return 1e4*Math.pow((Jd-r)/(Qd*r-Kd),1/$d)},Wy=e=>e/203,uj=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+xx)/(.44+.56*(e+xx)),i=jy(n+.13860504*r+.058047316*t),o=jy(n-.13860504*r-.058047316*t),l=jy(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:Wy(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:Wy(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:Wy(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},R4=uj,fj=e=>{let r=P4(v0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},z4=fj,cj=e=>h0(R4(e)),N4=cj,vj={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:z4,xyz65:P4},toMode:{rgb:N4,xyz65:R4},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:nt,a:nt,b:nt,alpha:{use:nt,fixup:Rn}}},fw=vj,hj=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=ii(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},f4=hj,dj=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},c4=dj,pj={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:c4,rgb:e=>N4(c4(e))},fromMode:{rgb:e=>f4(z4(e)),jab:f4},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:nt,fixup:Ts},c:nt,j:nt,alpha:{use:nt,fixup:Rn}},difference:{h:pv},average:{h:ks}},cw=pj,ep=Math.pow(29,3)/Math.pow(3,3),B4=Math.pow(6,3)/Math.pow(29,3),Zy=e=>Math.pow(e,3)>B4?Math.pow(e,3):(116*e-16)/ep,mj=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz50",x:Zy(i)*Pn.X,y:Zy(n)*Pn.Y,z:Zy(o)*Pn.Z};return a!==void 0&&(l.alpha=a),l},rp=mj,gj=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=If({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},w1=gj,yj=e=>w1(rp(e)),I4=yj,bj=e=>{let{r,g:t,b:a,alpha:n}=Bf(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},A1=bj,$y=e=>e>B4?Math.cbrt(e):(ep*e+16)/116,_j=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=$y(e/Pn.X),i=$y(r/Pn.Y),o=$y(t/Pn.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},tp=_j,xj=e=>{let r=tp(A1(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},H4=xj;function wj(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===$r.Hue||n.type===$r.Hue||i.type===$r.Hue))return a.type!==$r.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==$r.None&&(t.a=n.type===$r.Number?n.value:n.value*125/100),i.type!==$r.None&&(t.b=i.type===$r.Number?i.value:i.value*125/100),o.type!==$r.None&&(t.alpha=Math.min(1,Math.max(0,o.type===$r.Number?o.value:o.value/100))),t}var vw=wj,Aj={mode:"lab",toMode:{xyz50:rp,rgb:I4},fromMode:{xyz50:tp,rgb:H4},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[vw],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:nt,a:nt,b:nt,alpha:{use:nt,fixup:Rn}}},ap=Aj,Mj=Ba(da({},ap),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:S4,rgb:mv},fromMode:{xyz65:D4,rgb:gv},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),hw=Mj;function Tj(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==$r.None){if(a.type===$r.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==$r.None&&(t.c=Math.max(0,n.type===$r.Number?n.value:n.value*150/100)),i.type!==$r.None){if(i.type===$r.Percentage)return;t.h=i.value}return o.type!==$r.None&&(t.alpha=Math.min(1,Math.max(0,o.type===$r.Number?o.value:o.value/100))),t}var dw=Tj,kj={mode:"lch",toMode:{lab:ku,rgb:e=>I4(ku(e))},fromMode:{rgb:e=>Tu(H4(e)),lab:Tu},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[dw],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:nt,fixup:Ts},c:nt,l:nt,alpha:{use:nt,fixup:Rn}},difference:{h:pv},average:{h:ks}},np=kj,Cj=Ba(da({},np),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>ku(e,"lab65"),rgb:e=>mv(ku(e,"lab65"))},fromMode:{rgb:e=>Tu(gv(e),"lch65"),lab65:e=>Tu(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),pw=Cj,Sj=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=ii(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},O4=Sj,Dj=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},U4=Dj,mw=(e,r,t)=>4*e/(e+15*r+3*t),gw=(e,r,t)=>9*r/(e+15*r+3*t),Fj=mw(Pn.X,Pn.Y,Pn.Z),Ej=gw(Pn.X,Pn.Y,Pn.Z),Lj=e=>e<=B4?ep*e:116*Math.cbrt(e)-16,qj=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Lj(r/Pn.Y),i=mw(e,r,t),o=gw(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-Fj),o=13*n*(o-Ej));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},Xd=qj,Pj=(e,r,t)=>4*e/(e+15*r+3*t),Rj=(e,r,t)=>9*r/(e+15*r+3*t),zj=Pj(Pn.X,Pn.Y,Pn.Z),Nj=Rj(Pn.X,Pn.Y,Pn.Z),Bj=({l:e,u:r,v:t,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let n=r/(13*e)+zj,i=t/(13*e)+Nj,o=Pn.Y*(e<=8?e/ep:Math.pow((e+16)/116,3)),l=o*(9*n)/(4*i),s=o*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:l,y:o,z:s};return a!==void 0&&(u.alpha=a),u},jd=Bj,Ij=e=>O4(Xd(A1(e))),Hj=e=>w1(jd(U4(e))),Oj={mode:"lchuv",toMode:{luv:U4,rgb:Hj},fromMode:{rgb:Ij,luv:O4},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:nt,fixup:Ts},c:nt,l:nt,alpha:{use:nt,fixup:Rn}},difference:{h:pv},average:{h:ks}},yw=Oj,Uj=Ba(da({},Nf),{mode:"lrgb",toMode:{rgb:If},fromMode:{rgb:Bf},parse:["srgb-linear"],serialize:"srgb-linear"}),bw=Uj,Gj={mode:"luv",toMode:{xyz50:jd,rgb:e=>w1(jd(e))},fromMode:{xyz50:Xd,rgb:e=>Xd(A1(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:nt,u:nt,v:nt,alpha:{use:nt,fixup:Rn}}},_w=Gj,Yj=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),o=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*o};return a!==void 0&&(l.alpha=a),l},G4=Yj,Vj=e=>{let r=G4(Bf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},yv=Vj,Xj=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),o=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*o};return a!==void 0&&(l.alpha=a),l},M1=Xj,jj=e=>If(M1(e)),bv=jj;function v4(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function Wd(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Wj(e,r){let t,a,n,i,o,l,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,o=.56771245,l=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,o=.14503204,l=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,o=.00692167,l=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+o*e*r,c=.3963377774*e+.2158037573*r,h=-.1055613458*e-.0638541728*r,d=-.0894841775*e-1.291485548*r;{let m=1+f*c,p=1+f*h,y=1+f*d,b=m*m*m,C=p*p*p,x=y*y*y,_=3*c*m*m,M=3*h*p*p,T=3*d*y*y,A=6*c*c*m,E=6*h*h*p,P=6*d*d*y,z=l*b+s*C+u*x,B=l*_+s*M+u*T,X=l*A+s*E+u*P;f=f-z*B/(B*B-.5*z*X)}return f}function Y4(e,r){let t=Wj(e,r),a=M1({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function Zj(e,r,t,a,n,i=null){i||(i=Y4(e,r));let o;if((t-n)*i[1]-(i[0]-n)*a<=0)o=i[1]*n/(a*i[0]+i[1]*(n-t));else{o=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let l=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,h=l+s*u,d=l+s*f,m=l+s*c;{let p=n*(1-o)+o*t,y=o*a,b=p+y*u,C=p+y*f,x=p+y*c,_=b*b*b,M=C*C*C,T=x*x*x,A=3*h*b*b,E=3*d*C*C,P=3*m*x*x,z=6*h*h*b,B=6*d*d*C,X=6*m*m*x,I=4.0767416621*_-3.3077115913*M+.2309699292*T-1,V=4.0767416621*A-3.3077115913*E+.2309699292*P,H=4.0767416621*z-3.3077115913*B+.2309699292*X,Q=V/(V*V-.5*I*H),oe=-I*Q,re=-1.2684380046*_+2.6097574011*M-.3413193965*T-1,te=-1.2684380046*A+2.6097574011*E-.3413193965*P,ie=-1.2684380046*z+2.6097574011*B-.3413193965*X,ce=te/(te*te-.5*re*ie),Me=-re*ce,De=-.0041960863*_-.7034186147*M+1.707614701*T-1,Ie=-.0041960863*A-.7034186147*E+1.707614701*P,Ue=-.0041960863*z-.7034186147*B+1.707614701*X,ke=Ie/(Ie*Ie-.5*De*Ue),je=-De*ke;oe=Q>=0?oe:1e6,Me=ce>=0?Me:1e6,je=ke>=0?je:1e6,o+=Math.min(oe,Math.min(Me,je))}}}return o}function V4(e,r,t=null){t||(t=Y4(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function xw(e,r,t){let a=Y4(r,t),n=Zj(r,t,e,1,e,a),i=V4(r,t,a),o=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),l=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*o,f=(1-e)*l,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function h4(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:v4(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[o,l,s]=xw(r,t/i,a/i),u;if(i<l){let f=0,c=.8*o,h=1-c/l;u=(i-f)/(c+h*(i-f))*.8}else{let f=l,c=.2*l*l*1.25*1.25/o,h=1-c/(s-l);u=.8+.2*((i-f)/(c+h*(i-f)))}return u&&(n.s=u,n.h=ii(Math.atan2(a,t)*180/Math.PI)),n}function d4(e){let r=e.h!==void 0?e.h:0,t=e.s!==void 0?e.s:0,a=e.l!==void 0?e.l:0,n={mode:"oklab",l:Wd(a)};if(e.alpha!==void 0&&(n.alpha=e.alpha),!t||a===1)return n.a=n.b=0,n;let i=Math.cos(r/180*Math.PI),o=Math.sin(r/180*Math.PI),[l,s,u]=xw(n.l,i,o),f,c,h,d;t<.8?(f=1.25*t,c=0,h=.8*l,d=1-h/s):(f=5*(t-.8),c=s,h=.2*s*s*1.25*1.25/l,d=1-h/(u-s));let m=c+f*h/(1-d*f);return n.a=m*i,n.b=m*o,n}var $j=Ba(da({},F4),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:h4,rgb:e=>h4(yv(e))},toMode:{oklab:d4,rgb:e=>bv(d4(e))}}),ww=$j;function p4(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,o=n?a/n:1,[l,s]=V4(i,o),u=.5,f=1-u/l,c=s/(n+r*s),h=c*r,d=c*n,m=Wd(h),p=d*m/h,y=M1({l:m,a:i*p,b:o*p}),b=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/b,n=n/b*v4(r)/r,r=v4(r);let C={mode:"okhsv",s:n?(u+s)*d/(s*u+s*f*d):0,v:r?r/h:0};return C.s&&(C.h=ii(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(C.alpha=e.alpha),C}function m4(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),o=Math.sin(t/180*Math.PI),[l,s]=V4(i,o),u=.5,f=1-u/l,c=1-a*u/(u+s-s*f*a),h=a*s*u/(u+s-s*f*a),d=Wd(c),m=h*d/c,p=M1({l:d,a:i*m,b:o*m}),y=Math.cbrt(1/Math.max(p.r,p.g,p.b,0)),b=Wd(n*c),C=h*b/c;return r.l=b*y,r.a=C*i*y,r.b=C*o*y,r}var Jj=Ba(da({},q4),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:p4,rgb:e=>p4(yv(e))},toMode:{oklab:m4,rgb:e=>bv(m4(e))}}),Aw=Jj;function Kj(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===$r.Hue||n.type===$r.Hue||i.type===$r.Hue))return a.type!==$r.None&&(t.l=Math.min(Math.max(0,a.type===$r.Number?a.value:a.value/100),1)),n.type!==$r.None&&(t.a=n.type===$r.Number?n.value:n.value*.4/100),i.type!==$r.None&&(t.b=i.type===$r.Number?i.value:i.value*.4/100),o.type!==$r.None&&(t.alpha=Math.min(1,Math.max(0,o.type===$r.Number?o.value:o.value/100))),t}var Mw=Kj,Qj=Ba(da({},ap),{mode:"oklab",toMode:{lrgb:M1,rgb:bv},fromMode:{lrgb:G4,rgb:yv},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Mw],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),Tw=Qj;function eW(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==$r.None){if(a.type===$r.Hue)return;t.l=Math.min(Math.max(0,a.type===$r.Number?a.value:a.value/100),1)}if(n.type!==$r.None&&(t.c=Math.max(0,n.type===$r.Number?n.value:n.value*.4/100)),i.type!==$r.None){if(i.type===$r.Percentage)return;t.h=i.value}return o.type!==$r.None&&(t.alpha=Math.min(1,Math.max(0,o.type===$r.Number?o.value:o.value/100))),t}var kw=eW,rW=Ba(da({},np),{mode:"oklch",toMode:{oklab:e=>ku(e,"oklab"),rgb:e=>bv(ku(e,"oklab"))},fromMode:{rgb:e=>Tu(yv(e),"oklch"),oklab:e=>Tu(e,"oklch")},parse:[kw],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),Cw=rW,tW=e=>{let{r,g:t,b:a,alpha:n}=Bf(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},g4=tW,aW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=If({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},y4=aW,nW=Ba(da({},Nf),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>y4(v0(e)),xyz65:y4},toMode:{rgb:e=>h0(g4(e)),xyz65:g4}}),Sw=nW,Jy=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},iW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:Jy(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:Jy(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:Jy(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},b4=iW,Ky=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},oW=e=>{let r=Ky(e.r),t=Ky(e.g),a=Ky(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},_4=oW,lW=Ba(da({},Nf),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:b4,rgb:e=>b4(A1(e))},toMode:{xyz50:_4,rgb:e=>w1(_4(e))}}),Dw=lW,wx=1.09929682680944,sW=.018053968510807,Qy=e=>{let r=Math.abs(e);return r>sW?(Math.sign(e)||1)*(wx*Math.pow(r,.45)-(wx-1)):4.5*e},uW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:Qy(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:Qy(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:Qy(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},x4=uW,Ax=1.09929682680944,fW=.018053968510807,e4=(e=0)=>{let r=Math.abs(e);return r<fW*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+Ax-1)/Ax,1/.45)},cW=e=>{let r=e4(e.r),t=e4(e.g),a=e4(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},w4=cW,vW=Ba(da({},Nf),{mode:"rec2020",fromMode:{xyz65:x4,rgb:e=>x4(v0(e))},toMode:{xyz65:w4,rgb:e=>h0(w4(e))},parse:["rec2020"],serialize:"rec2020"}),Fw=vW,Rf=.0037930732552754493,Ew=Math.cbrt(Rf),r4=e=>Math.cbrt(e)-Ew,hW=e=>{let{r,g:t,b:a,alpha:n}=Bf(e),i=r4(.3*r+.622*t+.078*a+Rf),o=r4(.23*r+.692*t+.078*a+Rf),l=r4(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Rf),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},Lw=hW,t4=e=>Math.pow(e+Ew,3),dW=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=t4(e+r)-Rf,i=t4(r-e)-Rf,o=t4(t+r)-Rf,l=If({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*o});return a!==void 0&&(l.alpha=a),l},qw=dW,pW={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:qw},fromMode:{rgb:Lw},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:nt,y:nt,b:nt,alpha:{use:nt,fixup:Rn}}},Pw=pW,mW={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:w1,lab:tp},fromMode:{rgb:A1,lab:rp},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:nt,y:nt,z:nt,alpha:{use:nt,fixup:Rn}}},Rw=mW,gW=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},zw=gW,yW=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},Nw=yW,bW={mode:"xyz65",toMode:{rgb:h0,xyz50:zw},fromMode:{rgb:v0,xyz50:Nw},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:nt,y:nt,z:nt,alpha:{use:nt,fixup:Rn}}},Bw=bW,_W=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},Iw=_W,xW=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},Hw=xW,wW={mode:"yiq",toMode:{rgb:Hw},fromMode:{rgb:Iw},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:nt,i:nt,q:nt,alpha:{use:nt,fixup:Rn}}},Ow=wW,AW=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,MW=(e=4)=>r=>typeof r=="number"?AW(r,e):r,Uw=MW,fv=Uw(2),vv=e=>Math.max(0,Math.min(1,e||0)),zf=e=>Math.round(vv(e)*255),X4=La("rgb"),TW=La("hsl"),j4=e=>{if(e===void 0)return;let r=zf(e.r),t=zf(e.g),a=zf(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},Gw=e=>{if(e===void 0)return;let r=zf(e.alpha!==void 0?e.alpha:1);return j4(e)+(256|r).toString(16).slice(1)},Yw=e=>{if(e===void 0)return;let r=zf(e.r),t=zf(e.g),a=zf(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${fv(vv(e.alpha))})`},Vw=e=>{if(e===void 0)return;let r=fv(e.h||0),t=fv(vv(e.s)*100)+"%",a=fv(vv(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${fv(vv(e.alpha))})`},kW=e=>{let r=Rl(e);if(!r)return;let t=yi(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},CW=e=>j4(X4(e)),SW=e=>Gw(X4(e)),DW=e=>Yw(X4(e)),FW=e=>Vw(TW(e)),EW={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},LW=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:EW[r],n=La(t),i=yi(t).channels;return e.map(l=>{let s=n(l);return s.alpha===void 0&&(s.alpha=1),s}).reduce((l,s)=>{if(l===void 0)return s;let u=s.alpha+l.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-l.alpha)*s[c]+s.alpha*l.alpha*a(l[c],s[c])+(1-s.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},qW=LW,PW=([e,r])=>e+Math.random()*(r-e),RW=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),zW=(e="rgb",r={})=>{let t=yi(e),a=RW(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=PW(a[i]||t.ranges[i])),n),{mode:e})},NW=zW,_v=(e,r="rgb",t=!1)=>{let a=r?yi(r).channels:null,n=r?La(r):Rl;return i=>{let o=n(i);if(!o)return;let l=(a||yi(o.mode).channels).reduce((u,f)=>{let c=e(o[f],f,o,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:o.mode});if(!t)return l;let s=Rl(i);return s&&s.mode!==l.mode?La(s.mode)(l):l}},Xw=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,jw=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,W4=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,BW=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,IW=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;r<e.length;){if(e[r]===void 0){for(a=r,n=e[r-1],t=r;e[t]===void 0;)t++;for(i=(e[t]-n)/(t-r+1);r<t;)e[r]=n+(r+1-a)*i,r++}else e[r]<e[r-1]&&(e[r]=e[r-1]);r++}return e},HW=IW,OW=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),Ww=OW,Bd=e=>typeof e=="function",qf=e=>e&&typeof e=="object",Mx=e=>typeof e=="number",Zw=(e,r="rgb",t,a)=>{let n=yi(r),i=La(r),o=[],l=[],s={};e.forEach(h=>{Array.isArray(h)?(o.push(i(h[0])),l.push(h[1])):Mx(h)||Bd(h)?s[l.length]=h:(o.push(i(h)),l.push(void 0))}),HW(l);let u=n.channels.reduce((h,d)=>{let m;return qf(t)&&qf(t[d])&&t[d].fixup?m=t[d].fixup:qf(n.interpolate[d])&&n.interpolate[d].fixup?m=n.interpolate[d].fixup:m=p=>p,h[d]=m(o.map(p=>p[d])),h},{});if(a){let h=o.map((d,m)=>n.channels.reduce((p,y)=>(p[y]=u[y][m],p),{mode:r}));u=n.channels.reduce((d,m)=>(d[m]=h.map(p=>{let y=a(p[m],m,p,r);return isNaN(y)?void 0:y}),d),{})}let f=n.channels.reduce((h,d)=>{let m;return Bd(t)?m=t:qf(t)&&Bd(t[d])?m=t[d]:qf(t)&&qf(t[d])&&t[d].use?m=t[d].use:Bd(n.interpolate[d])?m=n.interpolate[d]:qf(n.interpolate[d])&&(m=n.interpolate[d].use),h[d]=m(u[d]),h},{}),c=o.length-1;return h=>{if(h=Math.min(Math.max(0,h),1),h<=l[0])return o[0];if(h>l[c])return o[c];let d=0;for(;l[d]<h;)d++;let m=l[d-1],p=l[d]-m,y=(h-m)/p,b=s[d]||s[0];b!==void 0&&(Mx(b)&&(b=Ww((b-m)/p)),y=b(y));let C=(d-1+y)/c;return n.channels.reduce((x,_)=>{let M=f[_](C);return M!==void 0&&(x[_]=M),x},{mode:r})}},UW=(e,r="rgb",t)=>Zw(e,r,t),$w=(e,r)=>(t,a="rgb",n)=>{let i=r?_v(r,a):void 0,o=Zw(t,a,n,e);return i?l=>i(o(l)):o},GW=$w(Xw,jw),Id=(e,r)=>(e+r)%r,Jw=(e,r,t,a,n)=>{let i=n*n,o=i*n;return((1-3*n+3*i-o)*e+(4-6*i+3*o)*r+(1+3*n+3*i-3*o)*t+o*a)/6},Kw=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return Jw(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],a<t-1?e[a+2]:2*e[a+1]-e[a],(r-a/t)*t)},Qw=e=>r=>{let t=e.length-1,a=Math.floor(r*t);return Jw(e[Id(a-1,e.length)],e[Id(a,e.length)],e[Id(a+1,e.length)],e[Id(a+2,e.length)],(r-a/t)*t)},eA=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r<t;++r)a[r]=1/(4-a[r-1]),n[r]=(6*e[r]-(r==t-1?e[t]:0)-n[r-1])*a[r];for(i[0]=e[0],i[t]=e[t],t-1>0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},YW=e=>Kw(eA(e)),VW=e=>Qw(eA(e)),g1=Math.sign,A4=Math.min,mo=Math.abs,Z4=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i<r;i++)t.push((e[i+1]-e[i])*r),a.push(i>0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(g1(t[i-1])+g1(t[i]))*A4(mo(t[i-1]),mo(t[i]),.5*mo(a[i])):void 0);return[t,a,n]},$4=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let o;i>=1?o=a-1:o=Math.max(0,Math.floor(i*a));let l=i-o/a,s=l*l,u=s*l;return(r[o]+r[o+1]-2*t[o])*n*u+(3*t[o]-2*r[o]-r[o+1])*a*s+r[o]*l+e[o]}},XW=e=>{if(e.length<3)return nt(e);let r=e.length-1,[t,,a]=Z4(e);return a[0]=t[0],a[r]=t[r-1],$4(e,a,t)},jW=e=>{if(e.length<3)return nt(e);let r=e.length-1,[t,a,n]=Z4(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:mo(a[0])>2*mo(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:mo(a[r])>2*mo(t[r-1])?2*t[r-1]:a[r],$4(e,n,t)},WW=e=>{let r=e.length-1,[t,a,n]=Z4(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,o=i;return n[0]=(g1(i)+g1(t[0]))*A4(mo(i),mo(t[0]),.5*mo(a[0])),n[r]=(g1(t[r-1])+g1(o))*A4(mo(t[r-1]),mo(o),.5*mo(a[r])),$4(e,n,t)},ZW=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),rA=ZW,$W=(e=2,r=1)=>{let t=rA(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n<e;n++)a.push(t(n/(e-1)));return a},JW=$W,tA=La("rgb"),aA=e=>{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},nA=e=>aA(tA(e)),iA=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function J4(e){return iA(tA(e))}function ip(e="rgb"){let{gamut:r}=yi(e);if(!r)return a=>!0;let t=La(typeof r=="string"?r:e);return a=>iA(t(a))}function KW(e){return e=Rl(e),e===void 0||J4(e)?e:La(e.mode)(nA(e))}function K4(e="rgb"){let{gamut:r}=yi(e);if(!r)return i=>Rl(i);let t=typeof r=="string"?r:e,a=La(t),n=ip(t);return i=>{let o=Rl(i);if(!o)return;let l=a(o);if(n(l))return o;let s=aA(l);return o.mode===s.mode?s:La(o.mode)(s)}}function QW(e,r="lch",t="rgb"){e=Rl(e);let a=t==="rgb"?J4:ip(t),n=t==="rgb"?nA:K4(t);if(e===void 0||a(e))return e;let i=La(e.mode);e=La(r)(e);let o=Ba(da({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=yi(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=o.c;for(;s-l>f;)o.c=l+(s-l)*.5,a(o)?(c=o.c,l=o.c):s=o.c;return i(a(o)?o:Ba(da({},o),{c}))}function eZ(e="rgb",r="oklch",t=x1("oklch"),a=.02){let n=La(e),i=yi(e);if(!i.gamut)return f=>n(f);let o=ip(e),l=K4(e),s=La(r),{ranges:u}=yi(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Rl(f),f===void 0)return;let c=da({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let y=Ba(da({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=Ba(da({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(o(c))return n(c);let h=0,d=c.c,m=(u.c[1]-u.c[0])/4e3,p=l(c);for(;d-h>m;)c.c=(h+d)*.5,p=l(c),o(c)||t&&a>0&&t(c,p)<=a?h=c.c:d=c.c;return n(o(c)?c:p)}}var rZ=(e,r=x1(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,o=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(l=>{l.d=r(n,l.color)}),a.sort((l,s)=>l.d-s.d).slice(0,i).filter(l=>l.d<o).map(l=>e[l.i]))},tZ=rZ,Q4=e=>Math.max(e,0),e5=e=>Math.max(Math.min(e,1),0),aZ=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),nZ=e=>{let r=1-e5(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},iZ=e=>{let r=Q4(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},oZ=e=>{let r=1-e5(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},lZ=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},op=(e,r,t=!1)=>{let a=La(r),n=yi(r).channels;return i=>{let o=a(i);if(!o)return;let l={mode:r},s,u=n.length;for(let c=0;c<e.length;c++)s=n[Math.floor(c/u)],o[s]!==void 0&&(l[s]=(l[s]||0)+e[c]*(o[n[c%u]]||0));if(!t)return l;let f=Rl(i);return f&&l.mode!==f.mode?La(f.mode)(l):l}},sZ=(e=1,r="rgb")=>{let t=Q4(e);return _v(W4(t),r,!0)},uZ=(e=1,r="rgb")=>{let t=Q4(e);return _v(W4(t,(1-t)/2),r,!0)},fZ=(e=1,r="rgb")=>op(nZ(e),r,!0),cZ=(e=1,r="rgb")=>op(iZ(e),r,!0),vZ=(e=1,r="rgb")=>op(oZ(e),r,!0),hZ=(e=1,r="rgb")=>{let t=e5(e);return _v((a,n)=>n==="alpha"?a:aZ(t,1-t,a),r,!0)},dZ=(e=0,r="rgb")=>op(lZ(e),r,!0),pZ=La("rgb"),mZ=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],gZ=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],yZ=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],r5=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&a<e.length-1){let o=e[a+1];i=i.map((l,s)=>Pf(i[s],o[s],n))}return o=>{let l=Rl(o);if(l===void 0)return;let{r:s,g:u,b:f}=pZ(l),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),La(l.mode)(c)}},bZ=(e=1)=>r5(mZ,e),_Z=(e=1)=>r5(gZ,e),xZ=(e=1)=>r5(yZ,e),wZ=e=>e*e*(3-2*e),AZ=e=>.5-Math.sin(Math.asin(1-2*e)/3),MZ=e=>e*e*e*(e*(e*6-15)+10),TZ=MZ,kZ=e=>(1-Math.cos(e*Math.PI))/2,CZ=kZ;function M4(e){let r=La("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function SZ(e,r){let t=M4(e),a=M4(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var DZ=Aa(Bx),FZ=Aa(Gx),EZ=Aa(Wx),LZ=Aa(Zx),qZ=Aa(Kx),PZ=Aa(F4),RZ=Aa(q4),zZ=Aa(ow),NZ=Aa(uw),BZ=Aa(fw),IZ=Aa(cw),HZ=Aa(ap),OZ=Aa(hw),UZ=Aa(np),GZ=Aa(pw),YZ=Aa(yw),VZ=Aa(bw),XZ=Aa(_w),jZ=Aa(ww),WZ=Aa(Aw),ZZ=Aa(Tw),$Z=Aa(Cw),JZ=Aa(Sw),KZ=Aa(Dw),QZ=Aa(Fw),e$=Aa(Nf),r$=Aa(Pw),t$=Aa(Rw),a$=Aa(Bw),n$=Aa(Ow)});var t5={};Ha(t5,{default:()=>o$});var i$,o$,a5=Ia(()=>{"use strict";i$={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},o$=i$});var d0=le((w4e,vA)=>{"use strict";var{format:l$,width:s$,height:u$,scale:f$}=(a5(),Tr(t5)).default,sA=f$,{dflt:x4e}=sA,c$=E_(sA,["dflt"]),uA={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:l$,filename:{valType:"string"},width:s$,height:u$,scale:c$},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},fA={};function cA(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),cA(a,r[t])))}}cA(uA,fA);vA.exports={configAttributes:uA,dfltConfig:fA}});var i5=le((M4e,hA)=>{"use strict";var n5=Ft(),v$=Wt(),xv=[];hA.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||xv.indexOf(e)!==-1)return;xv.push(e);var a=1e3;v$(r)?a=r:r==="long"&&(a=3e3);var n=n5.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(xv);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=xv.indexOf(u);f!==-1&&xv.splice(f,1),n5.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=n5.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=s.split(/<br\s*\/?>/g),h=0;h<c.length;h++)h&&f.append("br"),f.append("span").text(c[h]);r==="stick"?u.transition().duration(350).style("opacity",1):u.transition().duration(700).style("opacity",1).transition().delay(a).call(o)})}});var Cu=le((T4e,dA)=>{"use strict";var T1=d0().dfltConfig,o5=i5(),l5=dA.exports={};l5.log=function(){var e;if(T1.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(T1.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);o5(t.join("<br>"),"long")}};l5.warn=function(){var e;if(T1.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(T1.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);o5(t.join("<br>"),"stick")}};l5.error=function(){var e;if(T1.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(T1.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);o5(t.join("<br>"),"stick")}}});var zl=le(Hf=>{"use strict";Hf.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Hf.defaultLine="#444";Hf.lightLine="#eee";Hf.background="#fff";Hf.borderLine="#BEC8D9";Hf.lightFraction=1e3/11});var qt=le((C4e,AA)=>{"use strict";var{converter:pA,formatHex:h$,formatRgb:d$,wcagContrast:p$,wcagLuminance:m$}=lA(),{isArrayOrTypedArray:mA}=$i(),{warn:g$}=Cu(),{background:Av,defaultLine:f5,defaults:y$,lightLine:b$}=zl(),gA=pA("rgb"),_$=pA("hsl"),yA=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return gA(r)}catch(t){return}},bi=e=>e>0?e>1?1:e:0,x$={mode:"rgb",r:0,g:0,b:0,alpha:1},s5=e=>Math.round(e*255e6)/255e6,bA=e=>Ba(da({},e),{r:s5(e.r),g:s5(e.g),b:s5(e.b)}),go=e=>d$(bA(e)),w$=e=>h$(bA(e)),A$=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:mA(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},Ja=(e,r)=>{var a;let t=yA(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&g$(`Invalid color specifier: ${A$(e)}. Defaulting to "#000"`),x$)},wv=e=>go(Ba(da({},Ja(e)),{alpha:1})),M$=e=>e?Ja(e).alpha:0,_A=e=>mA(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),T$=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:o>1?o/255:o}},k$=(e,r)=>{let t=_A(e)?T$(e):Ja(e,!0),a=[bi(t.r),bi(t.g),bi(t.b),bi(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},C$=(e,r)=>go(Ba(da({},Ja(e)),{alpha:bi(r)})),xA=(e,r)=>{let t=Ja(e),a=t.alpha;if(a===1)return go(t);let n=Ja(r||Av),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return go({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},S$=(e,r,t)=>{let a=Ja(e),n=Ja(r),i=(o,l)=>t*o+(1-t)*l;return go({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},u5=(e,r)=>{let t=Ja(e),a=_$(t)||{mode:"hsl",h:0,s:0,l:0};return go(gA(Ba(da({},a),{l:bi((a.l*100+r)/100),alpha:t.alpha})))},lp=(e,r)=>p$(Ja(e),Ja(r)),wA=e=>lp(e,Av)>lp(e,f5),D$=go(Ja(Av)),F$=go(Ja(f5)),E$=(e,r,t)=>(Ja(e).alpha!==1&&(e=xA(e,Av)),wA(e)?r?u5(e,r):D$:t?u5(e,-t):F$),L$=(e,r)=>{e.style({stroke:wv(r),"stroke-opacity":Ja(r).alpha})},q$=(e,r)=>{e.style({fill:wv(r),"fill-opacity":Ja(r).alpha})},P$=(e,r)=>!!(e&&r&&wv(e)===wv(r)),R$=e=>yA(e)!==void 0,z$=(e,r)=>{r=r===0?0:r||10;let t=Ja(e),a=r/100;return go(Ba(da({},t),{r:bi(t.r+a),g:bi(t.g+a),b:bi(t.b+a)}))},N$=(e,r,t)=>{let a=Ja(e),n=Ja(r),i=t/100,o=n.alpha-a.alpha,l=2*i-1,s=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,u=1-s,f=(c,h)=>u*c+s*h;return go({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},B$=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=lp(e,n);i>a&&(a=i,t=go(Ja(n)))}return t},I$=e=>go(Ja(e)),H$=e=>w$(Ja(e)).toUpperCase(),O$=e=>{let r=Ja(e);return[bi(r.r)*255,bi(r.g)*255,bi(r.b)*255,bi(r.alpha)]},U$=([e,r,t,a])=>go({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),G$=e=>{let r=Ja(e);return m$({mode:"rgb",r:bi(r.r),g:bi(r.g),b:bi(r.b)})};AA.exports={addOpacity:C$,adjustLightness:u5,background:Av,brighten:z$,combine:xA,contrast:E$,defaultLine:f5,defaults:y$,equals:P$,fill:q$,hexString:H$,interpolate:S$,isChannelArray:_A,isDark:wA,isValid:R$,lightLine:b$,luminosity:G$,mix:N$,mostReadable:B$,normalize:k$,opacity:M$,parse:Ja,rgb:wv,rgbaArray:O$,rgbaArrayToString:U$,rgbaString:I$,stroke:L$,wcagContrast:lp}});var Of=le((D4e,kA)=>{"use strict";var Y$=qt(),sp={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},MA=sp.RdBu;function V$(e,r){if(r||(r=MA),!e)return r;function t(){try{e=sp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),TA(e)?e:r}function TA(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t<e.length;t++){var a=e[t];if(a.length!==2||+a[0]<r||!Y$.isValid(a[1]))return!1;r=+a[0]}return!0}function X$(e){return sp[e]!==void 0?!0:TA(e)}kA.exports={scales:sp,defaultScale:MA,get:V$,isValid:X$}});var up={};Ha(up,{DESELECTDIM:()=>Z$,HIDE_PLACEHOLDER:()=>W$,SHOW_PLACEHOLDER:()=>j$});var j$,W$,Z$,fp=Ia(()=>{"use strict";j$=100,W$=1e3,Z$=.2});var Mv={};Ha(Mv,{counter:()=>Uf});function Uf(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+c5+"y"+c5+n):new RegExp(i+e+c5+n)}var c5,k1=Ia(()=>{"use strict";c5="([2-9]|[1-9][0-9]+)?"});var DA=le(Ki=>{"use strict";var v5=Wt(),CA=Tn().extendFlat,$$=Go(),J$=Of(),h5=qt(),K$=(fp(),Tr(up)).DESELECTDIM,C1=ev(),SA=(k1(),Tr(Mv)).counter,Q$=(p1(),Tr(d1)).modHalf,Nl=$i().isArrayOrTypedArray,p0=$i().isTypedArraySpec,m0=$i().decodeTypedArraySpec;Ki.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Nl(e)?e:p0(e)?m0(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;a<t.length;a++){var n=String(t[a]);if(n.charAt(0)==="/"&&n.charAt(n.length-1)==="/"){var i=new RegExp(n.slice(1,-1));if(i.test(e))return!0}else if(e===t[a])return!0}return!1}},boolean:{coerceFunction:function(e,r,t,a){let n=i=>i===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){p0(e)&&(e=m0(e)),!v5(e)||a.min!==void 0&&e<a.min||a.max!==void 0&&e>a.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}p0(e)&&(e=m0(e)),e%1||!v5(e)||a.min!==void 0&&e<a.min||a.max!==void 0&&e>a.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){p0(e)&&(e=m0(e)),h5.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>h5.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(J$.get(e,t))}},angle:{coerceFunction:function(e,r,t){p0(e)&&(e=m0(e)),e==="auto"?r.set("auto"):v5(e)?r.set(Q$(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||SA(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Nl(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!SA(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i<n.length;){var o=n[i];a.flags.indexOf(o)===-1||n.indexOf(o)<i?n.splice(i,1):i++}n.length?r.set(n.join("+")):r.set(t)}},any:{coerceFunction:function(e,r,t){e===void 0?r.set(t):r.set(p0(e)?m0(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(C,x,_){var M,T={set:function(A){M=A}};return _===void 0&&(_=x.dflt),Ki.valObjectMeta[x.valType].coerceFunction(C,T,_,x),M}if(p0(e)&&(e=m0(e)),!Nl(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&Nl(e[0]),o=a.items,l=[],s=Array.isArray(o),u=s&&i&&Nl(o[0]),f=i&&s&&!u,c=s&&!f?o.length:e.length,h,d,m,p,y,b;if(t=Array.isArray(t)?t:[],i)for(h=0;h<c;h++)for(l[h]=[],m=Nl(e[h])?e[h]:[],f?y=o.length:s?y=o[h].length:y=m.length,d=0;d<y;d++)f?p=o[d]:s?p=o[h][d]:p=o,b=n(m[d],p,(t[h]||[])[d]),b!==void 0&&(l[h][d]=b);else for(h=0;h<c;h++)b=n(e[h],s?o[h]:o,t[h]),b!==void 0&&(l[h]=b);r.set(l)},validateFunction:function(e,r){if(!Nl(e))return!1;var t=r.items,a=Array.isArray(t),n=r.dimensions===2;if(!r.freeLength&&e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(n){if(!Nl(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!cp(e[i][o],a?t[i][o]:t))return!1}else if(!cp(e[i],a?t[i]:t))return!1;return!0}}};Ki.coerce=function(e,r,t,a,n){var i=C1(t,a).get(),o=C1(e,a),l=C1(r,a),s=o.get(),u=r._template;if(s===void 0&&u&&(s=C1(u,a).get(),u=0),n===void 0&&(n=i.dflt),i.arrayOk){if(Nl(s))return l.set(s),s;if(p0(s))return s=m0(s),l.set(s),s}var f=Ki.valObjectMeta[i.valType].coerceFunction;f(s,l,n,i);var c=l.get();return u&&c===n&&!cp(s,i)&&(s=C1(u,a).get(),f(s,l,n,i),c=l.get()),c};Ki.coerce2=function(e,r,t,a,n){var i=C1(e,a),o=Ki.coerce(e,r,t,a,n),l=i.get();return l!=null?o:!1};Ki.coerceFont=function(e,r,t,a){a||(a={}),t=CA({},t),t=CA(t,a.overrideDflt||{});var n={family:e(r+".family",t.family),size:e(r+".size",t.size),color:e(r+".color",t.color),weight:e(r+".weight",t.weight),style:e(r+".style",t.style)};if(a.noFontVariant||(n.variant=e(r+".variant",t.variant)),a.noFontLineposition||(n.lineposition=e(r+".lineposition",t.lineposition)),a.noFontTextcase||(n.textcase=e(r+".textcase",t.textcase)),!a.noFontShadow){var i=t.shadow;i==="none"&&a.autoShadowDflt&&(i="auto"),n.shadow=e(r+".shadow",i)}return n};Ki.coercePattern=function(e,r,t,a){var n=e(r+".shape"),i;if(n||(i=e(r+".path")),n||i){n&&e(r+".solidity"),e(r+".size");var o=e(r+".fillmode"),l=o==="overlay";if(!a){var s=e(r+".bgcolor",l?t:void 0);e(r+".fgcolor",l?h5.contrast(s):t)}e(r+".fgopacity",l?.5:1)}};Ki.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:$$,i=n.hoverinfo,o;if(t._dataLength===1){var l=i.dflt==="all"?i.flags.slice():i.dflt.split("+");l.splice(l.indexOf("name"),1),o=l.join("+")}return Ki.coerce(e,r,n,"hoverinfo",o)};Ki.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!Nl(t)&&!e.selected&&!e.unselected&&(a=t,n=K$*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function cp(e,r){var t=Ki.valObjectMeta[r.valType];if(r.arrayOk&&Nl(e))return!0;if(t.validateFunction)return t.validateFunction(e,r);var a={},n=a,i={set:function(o){n=o}};return t.coerceFunction(e,i,a,r),n!==a}Ki.validate=cp});var vp=le((E4e,FA)=>{"use strict";FA.exports=function(){}});var d5=le((L4e,EA)=>{"use strict";EA.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n<r.length;n++)if(r[n]instanceof RegExp&&r[n].toString()===a)return r;r.push(t)}else(t||t===0)&&r.indexOf(t)===-1&&r.push(t);return r}});var qA=le((q4e,LA)=>{LA.exports=eJ;function eJ(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var RA=le((P4e,PA)=>{PA.exports=rJ;function rJ(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var NA=le((R4e,zA)=>{zA.exports=tJ;function tJ(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var p5=le((z4e,BA)=>{BA.exports=aJ;function aJ(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var HA=le((N4e,IA)=>{IA.exports=nJ;function nJ(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var UA=le((B4e,OA)=>{OA.exports=iJ;function iJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15],C=t*l-a*o,x=t*s-n*o,_=t*u-i*o,M=a*s-n*l,T=a*u-i*l,A=n*u-i*s,E=f*p-c*m,P=f*y-h*m,z=f*b-d*m,B=c*y-h*p,X=c*b-d*p,I=h*b-d*y,V=C*I-x*X+_*B+M*z-T*P+A*E;return V?(V=1/V,e[0]=(l*I-s*X+u*B)*V,e[1]=(n*X-a*I-i*B)*V,e[2]=(p*A-y*T+b*M)*V,e[3]=(h*T-c*A-d*M)*V,e[4]=(s*z-o*I-u*P)*V,e[5]=(t*I-n*z+i*P)*V,e[6]=(y*_-m*A-b*x)*V,e[7]=(f*A-h*_+d*x)*V,e[8]=(o*X-l*z+u*E)*V,e[9]=(a*z-t*X-i*E)*V,e[10]=(m*T-p*_+b*C)*V,e[11]=(c*_-f*T-d*C)*V,e[12]=(l*P-o*B-s*E)*V,e[13]=(t*B-a*P+n*E)*V,e[14]=(p*x-m*M-y*C)*V,e[15]=(f*M-c*x+h*C)*V,e):null}});var YA=le((I4e,GA)=>{GA.exports=oJ;function oJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15];return e[0]=l*(h*b-d*y)-c*(s*b-u*y)+p*(s*d-u*h),e[1]=-(a*(h*b-d*y)-c*(n*b-i*y)+p*(n*d-i*h)),e[2]=a*(s*b-u*y)-l*(n*b-i*y)+p*(n*u-i*s),e[3]=-(a*(s*d-u*h)-l*(n*d-i*h)+c*(n*u-i*s)),e[4]=-(o*(h*b-d*y)-f*(s*b-u*y)+m*(s*d-u*h)),e[5]=t*(h*b-d*y)-f*(n*b-i*y)+m*(n*d-i*h),e[6]=-(t*(s*b-u*y)-o*(n*b-i*y)+m*(n*u-i*s)),e[7]=t*(s*d-u*h)-o*(n*d-i*h)+f*(n*u-i*s),e[8]=o*(c*b-d*p)-f*(l*b-u*p)+m*(l*d-u*c),e[9]=-(t*(c*b-d*p)-f*(a*b-i*p)+m*(a*d-i*c)),e[10]=t*(l*b-u*p)-o*(a*b-i*p)+m*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*y-h*p)-f*(l*y-s*p)+m*(l*h-s*c)),e[13]=t*(c*y-h*p)-f*(a*y-n*p)+m*(a*h-n*c),e[14]=-(t*(l*y-s*p)-o*(a*y-n*p)+m*(a*s-n*l)),e[15]=t*(l*h-s*c)-o*(a*h-n*c)+f*(a*s-n*l),e}});var XA=le((H4e,VA)=>{VA.exports=lJ;function lJ(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],h=e[11],d=e[12],m=e[13],p=e[14],y=e[15],b=r*o-t*i,C=r*l-a*i,x=r*s-n*i,_=t*l-a*o,M=t*s-n*o,T=a*s-n*l,A=u*m-f*d,E=u*p-c*d,P=u*y-h*d,z=f*p-c*m,B=f*y-h*m,X=c*y-h*p;return b*X-C*B+x*z+_*P-M*E+T*A}});var WA=le((O4e,jA)=>{jA.exports=sJ;function sJ(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],h=r[9],d=r[10],m=r[11],p=r[12],y=r[13],b=r[14],C=r[15],x=t[0],_=t[1],M=t[2],T=t[3];return e[0]=x*a+_*l+M*c+T*p,e[1]=x*n+_*s+M*h+T*y,e[2]=x*i+_*u+M*d+T*b,e[3]=x*o+_*f+M*m+T*C,x=t[4],_=t[5],M=t[6],T=t[7],e[4]=x*a+_*l+M*c+T*p,e[5]=x*n+_*s+M*h+T*y,e[6]=x*i+_*u+M*d+T*b,e[7]=x*o+_*f+M*m+T*C,x=t[8],_=t[9],M=t[10],T=t[11],e[8]=x*a+_*l+M*c+T*p,e[9]=x*n+_*s+M*h+T*y,e[10]=x*i+_*u+M*d+T*b,e[11]=x*o+_*f+M*m+T*C,x=t[12],_=t[13],M=t[14],T=t[15],e[12]=x*a+_*l+M*c+T*p,e[13]=x*n+_*s+M*h+T*y,e[14]=x*i+_*u+M*d+T*b,e[15]=x*o+_*f+M*m+T*C,e}});var $A=le((U4e,ZA)=>{ZA.exports=uJ;function uJ(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,h,d,m,p,y,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],h=r[6],d=r[7],m=r[8],p=r[9],y=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=m,e[9]=p,e[10]=y,e[11]=b,e[12]=o*a+f*n+m*i+r[12],e[13]=l*a+c*n+p*i+r[13],e[14]=s*a+h*n+y*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var KA=le((G4e,JA)=>{JA.exports=fJ;function fJ(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var eM=le((Y4e,QA)=>{QA.exports=cJ;function cJ(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,h,d,m,p,y,b,C,x,_,M,T,A,E,P,z,B,X,I,V,H;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],h=r[1],d=r[2],m=r[3],p=r[4],y=r[5],b=r[6],C=r[7],x=r[8],_=r[9],M=r[10],T=r[11],A=n*n*f+u,E=i*n*f+o*s,P=o*n*f-i*s,z=n*i*f-o*s,B=i*i*f+u,X=o*i*f+n*s,I=n*o*f+i*s,V=i*o*f-n*s,H=o*o*f+u,e[0]=c*A+p*E+x*P,e[1]=h*A+y*E+_*P,e[2]=d*A+b*E+M*P,e[3]=m*A+C*E+T*P,e[4]=c*z+p*B+x*X,e[5]=h*z+y*B+_*X,e[6]=d*z+b*B+M*X,e[7]=m*z+C*B+T*X,e[8]=c*I+p*V+x*H,e[9]=h*I+y*V+_*H,e[10]=d*I+b*V+M*H,e[11]=m*I+C*V+T*H,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var tM=le((V4e,rM)=>{rM.exports=vJ;function vJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=h*n-s*a,e}});var nM=le((X4e,aM)=>{aM.exports=hJ;function hJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+h*n,e}});var oM=le((j4e,iM)=>{iM.exports=dJ;function dJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=h*n-s*a,e}});var sM=le((W4e,lM)=>{lM.exports=pJ;function pJ(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var fM=le((Z4e,uM)=>{uM.exports=mJ;function mJ(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,h=a*u,d=n*s,m=n*u,p=i*u,y=o*l,b=o*s,C=o*u;return e[0]=1-(d+p),e[1]=c+C,e[2]=h-b,e[3]=0,e[4]=c-C,e[5]=1-(f+p),e[6]=m+y,e[7]=0,e[8]=h+b,e[9]=m-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var vM=le(($4e,cM)=>{cM.exports=gJ;function gJ(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var dM=le((J4e,hM)=>{hM.exports=yJ;function yJ(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var mM=le((K4e,pM)=>{pM.exports=bJ;function bJ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var yM=le((Q4e,gM)=>{gM.exports=_J;function _J(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var _M=le((e5e,bM)=>{bM.exports=xJ;function xJ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var wM=le((r5e,xM)=>{xM.exports=wJ;function wJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,h=n*o,d=n*l,m=n*s,p=i*o,y=i*l,b=i*s;return e[0]=1-c-m,e[1]=f+b,e[2]=h-y,e[3]=0,e[4]=f-b,e[5]=1-u-m,e[6]=d+p,e[7]=0,e[8]=h+y,e[9]=d-p,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var MM=le((t5e,AM)=>{AM.exports=AJ;function AJ(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var kM=le((a5e,TM)=>{TM.exports=MJ;function MJ(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var SM=le((n5e,CM)=>{CM.exports=TJ;function TJ(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var FM=le((i5e,DM)=>{DM.exports=kJ;function kJ(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var LM=le((o5e,EM)=>{var CJ=p5();EM.exports=SJ;function SJ(e,r,t,a){var n,i,o,l,s,u,f,c,h,d,m=r[0],p=r[1],y=r[2],b=a[0],C=a[1],x=a[2],_=t[0],M=t[1],T=t[2];return Math.abs(m-_)<1e-6&&Math.abs(p-M)<1e-6&&Math.abs(y-T)<1e-6?CJ(e):(f=m-_,c=p-M,h=y-T,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,n=C*h-x*c,i=x*f-b*h,o=b*c-C*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-h*i,s=h*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*m+i*p+o*y),e[13]=-(l*m+s*p+u*y),e[14]=-(f*m+c*p+h*y),e[15]=1,e)}});var PM=le((l5e,qM)=>{qM.exports=DJ;function DJ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var m5=le((s5e,RM)=>{RM.exports={create:qA(),clone:RA(),copy:NA(),identity:p5(),transpose:HA(),invert:UA(),adjoint:YA(),determinant:XA(),multiply:WA(),translate:$A(),scale:KA(),rotate:eM(),rotateX:tM(),rotateY:nM(),rotateZ:oM(),fromRotation:sM(),fromRotationTranslation:fM(),fromScaling:vM(),fromTranslation:dM(),fromXRotation:mM(),fromYRotation:yM(),fromZRotation:_M(),fromQuat:wM(),frustum:MM(),perspective:kM(),perspectiveFromFieldOfView:SM(),ortho:FM(),lookAt:LM(),str:PM()}});var hp=le(un=>{"use strict";var FJ=m5();un.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};un.transposeRagged=function(e){var r=0,t=e.length,a,n;for(a=0;a<t;a++)r=Math.max(r,e[a].length);var i=new Array(r);for(a=0;a<r;a++)for(i[a]=new Array(t),n=0;n<t;n++)i[a][n]=e[n][a];return i};un.dot=function(e,r){if(!(e.length&&r.length)||e.length!==r.length)return null;var t=e.length,a,n;if(e[0].length)for(a=new Array(t),n=0;n<t;n++)a[n]=un.dot(e[n],r);else if(r[0].length){var i=un.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=un.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};un.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};un.rotationMatrix=function(e){var r=e*Math.PI/180;return[[Math.cos(r),-Math.sin(r),0],[Math.sin(r),Math.cos(r),0],[0,0,1]]};un.rotationXYMatrix=function(e,r,t){return un.dot(un.dot(un.translationMatrix(r,t),un.rotationMatrix(e)),un.translationMatrix(-r,-t))};un.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return un.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};un.apply2DTransform=function(e){return function(){var r=arguments;r.length===3&&(r=r[0]);var t=arguments.length===1?r[0]:[r[0],r[1]];return un.dot(e,[t[0],t[1],1]).slice(0,2)}};un.apply2DTransform2=function(e){var r=un.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};un.convertCssMatrix=function(e){if(e){var r=e.length;if(r===16)return e;if(r===6)return[e[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]};un.inverseTransformMatrix=function(e){var r=[];return FJ.invert(r,e),[[r[0],r[1],r[2],r[3]],[r[4],r[5],r[6],r[7]],[r[8],r[9],r[10],r[11]],[r[12],r[13],r[14],r[15]]]}});var Tv=le((f5e,OM)=>{"use strict";var EJ=Ft(),zM=Cu(),LJ=hp(),qJ=m5();function PJ(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function RJ(e){var r=EJ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function NM(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function zJ(e,r){BM("global",e,r)}function BM(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):zM.warn("addStyleRule failed"):zM.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function NJ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&NM(t)}function BJ(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:l},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function IJ(e){var r=HM(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=IM(a);if(n){var i=LJ.convertCssMatrix(n);t=qJ.multiply(t,t,i)}}),t}function IM(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function HM(e){for(var r=[];HJ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function HJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function OJ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}OM.exports={getGraphDiv:PJ,isPlotDiv:RJ,removeElement:NM,addStyleRule:zJ,addRelatedStyleRule:BM,deleteRelatedStyleRule:NJ,setStyleOnHover:BJ,getFullTransformMatrix:IJ,getElementTransformMatrix:IM,getElementAndAncestors:HM,equalDomRects:OJ}});var kv=le((c5e,UM)=>{"use strict";UM.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Yo=le((v5e,ZM)=>{"use strict";var YM=Tn().extendFlat,UJ=c0(),VM={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},XM={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},GJ=VM.flags.slice().concat(["fullReplot"]),YJ=XM.flags.slice().concat("layoutReplot");ZM.exports={traces:VM,layout:XM,traceFlags:function(){return GM(GJ)},layoutFlags:function(){return GM(YJ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n<a.length;n++)e[a[n]]=!0},overrideAll:jM};function GM(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function jM(e,r,t){var a=YM({},e);for(var n in a){var i=a[n];UJ(i)&&(a[n]=WM(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function WM(e,r,t,a){if(e.valType){var n=YM({},e);if(n.editType=r,Array.isArray(e.items)){n.items=new Array(e.items.length);for(var i=0;i<e.items.length;i++)n.items[i]=WM(e.items[i],r,"from-root")}return n}else return jM(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var Cs=le(g5=>{"use strict";g5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};g5.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var y5={};Ha(y5,{DATE_FORMAT_LINK:()=>XJ,FORMAT_LINK:()=>VJ});var VJ,XJ,b5=Ia(()=>{"use strict";VJ="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",XJ="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Gf=le(S1=>{"use strict";var{DATE_FORMAT_LINK:jJ,FORMAT_LINK:WJ}=(b5(),Tr(y5)),ZJ=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function $J({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,WJ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,jJ,"for details on the date formatting syntax.",ZJ].join(" ")}S1.templateFormatStringDescription=$J;S1.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>da({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});S1.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>da({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});S1.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});S1.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var mp=le((m5e,rT)=>{"use strict";function g0(e,r){return r?r.d2l(e):e}function $M(e,r){return r?r.l2d(e):e}function JJ(e){return e.x0}function KJ(e){return e.x1}function QJ(e){return e.y0}function eK(e){return e.y1}function JM(e){return e.x0shift||0}function KM(e){return e.x1shift||0}function QM(e){return e.y0shift||0}function eT(e){return e.y1shift||0}function dp(e,r){return g0(e.x1,r)+KM(e)-g0(e.x0,r)-JM(e)}function pp(e,r,t){return g0(e.y1,t)+eT(e)-g0(e.y0,t)-QM(e)}function rK(e,r){return Math.abs(dp(e,r))}function tK(e,r,t){return Math.abs(pp(e,r,t))}function aK(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(dp(e,r),2)+Math.pow(pp(e,r,t),2))}function nK(e,r){return $M((g0(e.x1,r)+KM(e)+g0(e.x0,r)+JM(e))/2,r)}function iK(e,r,t){return $M((g0(e.y1,t)+eT(e)+g0(e.y0,t)+QM(e))/2,t)}function oK(e,r,t){return e.type!=="line"?void 0:pp(e,r,t)/dp(e,r)}var lK=["x0","x1","y0","y1","dy","height","ycenter"],sK=["x0","x1","y0","y1","dx","width","xcenter"];rT.exports={x0:JJ,x1:KJ,y0:QJ,y1:eK,slope:oK,dx:dp,dy:pp,width:rK,height:tK,length:aK,xcenter:nK,ycenter:iK,simpleXVariables:lK,simpleYVariables:sK}});var nT=le((g5e,aT)=>{"use strict";var uK=Yo().overrideAll,Yf=Go(),tT=gi(),fK=Cs().dash,y0=Tn().extendFlat,{shapeTexttemplateAttrs:cK,templatefallbackAttrs:vK}=Gf(),hK=mp();aT.exports=uK({newshape:{visible:y0({},Yf.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:y0({},Yf.legend,{}),legendgroup:y0({},Yf.legendgroup,{}),legendgrouptitle:{text:y0({},Yf.legendgrouptitle.text,{}),font:tT({})},legendrank:y0({},Yf.legendrank,{}),legendwidth:y0({},Yf.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:y0({},fK,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:y0({},Yf.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:cK({newshape:!0},{keys:Object.keys(hK)}),texttemplatefallback:vK({editType:"arraydraw"}),font:tT({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var oT=le((y5e,iT)=>{"use strict";var dK=Cs().dash,pK=Tn().extendFlat;iT.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:pK({},dK,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var gp=le((b5e,lT)=>{"use strict";lT.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var D1=le((_5e,cT)=>{"use strict";var _5=gi(),mK=kv(),yp=zl(),sT=nT(),uT=oT(),gK=gp(),fT=Tn().extendFlat,bp=_5({editType:"calc"});bp.family.dflt='"Open Sans", verdana, arial, sans-serif';bp.size.dflt=12;bp.color.dflt=yp.defaultLine;cT.exports={font:bp,title:{text:{valType:"string",editType:"layoutstyle"},font:_5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:_5({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:fT(gK({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:yp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:yp.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:yp.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:sT.newshape,activeshape:sT.activeshape,newselection:uT.newselection,activeselection:uT.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:fT({},mK.transition,{editType:"none"})}});var vT=le(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var _t=le(Pt=>{"use strict";var x5=Cu(),hT=vp(),dT=d5(),A5e=Tv().addStyleRule,pT=Tn(),yK=Go(),bK=D1(),_K=pT.extendFlat,w5=pT.extendDeepAll;Pt.modules={};Pt.allCategories={};Pt.allTypes=[];Pt.subplotsRegistry={};Pt.componentsRegistry={};Pt.layoutArrayContainers=[];Pt.layoutArrayRegexes=[];Pt.traceLayoutAttributes={};Pt.localeRegistry={};Pt.apiMethodRegistry={};Pt.collectableSubplotTypes=null;Pt.register=function(r){if(Pt.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t<r.length;t++){var a=r[t];if(!a)throw new Error("Invalid module was attempted to be registered!");switch(a.moduleType){case"trace":xK(a);break;case"component":AK(a);break;case"locale":MK(a);break;case"apiMethod":var n=a.name;Pt.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};Pt.getModule=function(e){var r=Pt.modules[bT(e)];return r?r._module:!1};Pt.traceIs=function(e,r){if(e=bT(e),e==="various")return!1;var t=Pt.modules[e];return t||(e&&x5.log("Unrecognized trace type "+e+"."),t=Pt.modules[yK.type.dflt]),!!t.categories[r]};Pt.getComponentMethod=function(e,r){var t=Pt.componentsRegistry[e];return t&&t[r]||hT};Pt.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return Pt.apiMethodRegistry[e].apply(null,r)};function xK(e){var r=e.name,t=e.categories,a=e.meta;if(Pt.modules[r]){x5.log("Type "+r+" already registered");return}Pt.subplotsRegistry[e.basePlotModule.name]||wK(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,Pt.allCategories[t[i]]=!0;Pt.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(Pt.modules[r].meta=a),Pt.allTypes.push(r);for(var o in Pt.componentsRegistry)gT(o,r);e.layoutAttributes&&_K(Pt.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,s=l.name;s==="map"&&vT(),(s==="geo"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function wK(e){var r=e.name;if(Pt.subplotsRegistry[r]){x5.log("Plot type "+r+" already registered.");return}mT(e),Pt.subplotsRegistry[r]=e;for(var t in Pt.componentsRegistry)yT(t,e.name)}function AK(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;Pt.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&dT(Pt.layoutArrayContainers,r),mT(e));for(var t in Pt.modules)gT(r,t);for(var a in Pt.subplotsRegistry)yT(r,a);e.schema&&e.schema.layout&&w5(bK,e.schema.layout)}function MK(e){var r=e.name,t=r.split("-")[0],a=e.dictionary,n=e.format,i=a&&Object.keys(a).length,o=n&&Object.keys(n).length,l=Pt.localeRegistry,s=l[r];if(s||(l[r]=s={}),t!==r){var u=l[t];u||(l[t]=u={}),i&&u.dictionary===s.dictionary&&(u.dictionary=a),o&&u.format===s.format&&(u.format=n)}i&&(s.dictionary=a),o&&(s.format=n)}function mT(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)dT(Pt.layoutArrayRegexes,r[t])}}function gT(e,r){var t=Pt.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&w5(Pt.modules[r]._module.attributes,a)}}function yT(e,r){var t=Pt.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=Pt.subplotsRegistry[r],n=a.layoutAttributes,i=a.attr==="subplot"?a.name:a.attr;Array.isArray(i)&&(i=i[0]);var o=t.subplots[i];n&&o&&w5(n,o)}}function bT(e){return typeof e=="object"&&(e=e.type),e}});var ST=le(fn=>{"use strict";var TK=v1().timeFormat,kT=Wt(),A5=Cu(),_0=(p1(),Tr(d1)).mod,L1=(Ya(),Tr($a)),Vo=L1.BADNUM,Qi=L1.ONEDAY,Cv=L1.ONEHOUR,b0=L1.ONEMIN,E1=L1.ONESEC,Sv=L1.EPOCHJD,Su=_t(),_T=v1().utcFormat,kK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,CK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,xT=new Date().getFullYear()-70;function Du(e){return e&&Su.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}fn.dateTick0=function(e,r){var t=SK(e,!!r);if(r<2)return t;var a=fn.dateTime2ms(t,e);return a+=Qi*(r-1),fn.ms2DateTime(a,0,e)};function SK(e,r){return Du(e)?r?Su.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Su.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}fn.dfltRange=function(e){return Du(e)?Su.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};fn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var xp,wp;fn.dateTime2ms=function(e,r){if(fn.isJSDate(e)){var t=e.getTimezoneOffset()*b0,a=(e.getUTCMinutes()-e.getMinutes())*b0+(e.getUTCSeconds()-e.getSeconds())*E1+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*b0;t=t-n/2+_0(a-t+n/2,n)}return e=Number(e)-t,e>=xp&&e<=wp?e:Vo}if(typeof e!="string"&&typeof e!="number")return Vo;e=String(e);var i=Du(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?CK:kK);if(!s)return Vo;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return Vo;u=Number(u);var p;try{var y=Su.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),p=y.newDate(u,y.toMonthIndex(u,f,b),c)}else p=y.newDate(u,Number(f),c)}catch(x){return Vo}return p?(p.toJD()-Sv)*Qi+h*Cv+d*b0+m*E1:Vo}u.length===2?u=(Number(u)+2e3-xT)%100+xT:u=Number(u),f-=1;var C=new Date(Date.UTC(2e3,f,c,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==f||C.getUTCDate()!==c?Vo:C.getTime()+m*E1};xp=fn.MIN_MS=fn.dateTime2ms("-9999");wp=fn.MAX_MS=fn.dateTime2ms("9999-12-31 23:59:59.9999");fn.isDateTime=function(e,r){return fn.dateTime2ms(e,r)!==Vo};function F1(e,r){return String(e+Math.pow(10,r)).slice(1)}var _p=90*Qi,wT=3*Cv,AT=5*b0;fn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=xp&&e<=wp))return Vo;r||(r=0);var a=Math.floor(_0(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(Du(t)){var c=Math.floor(n/Qi)+Sv,h=Math.floor(_0(e,Qi));try{i=Su.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=_T("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r<_p?Math.floor(h/Cv):0,l=r<_p?Math.floor(h%Cv/b0):0,s=r<wT?Math.floor(h%b0/E1):0,u=r<AT?h%E1*10+a:0}else f=new Date(n),i=_T("%Y-%m-%d")(f),o=r<_p?f.getUTCHours():0,l=r<_p?f.getUTCMinutes():0,s=r<wT?f.getUTCSeconds():0,u=r<AT?f.getUTCMilliseconds()*10+a:0;return CT(i,o,l,s,u)};fn.ms2DateTimeLocal=function(e){if(!(e>=xp+Qi&&e<=wp-Qi))return Vo;var r=Math.floor(_0(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=TK("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return CT(a,n,i,o,l)};function CT(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+F1(r,2)+":"+F1(t,2),(a||n)&&(e+=":"+F1(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+F1(n,i)}return e}fn.cleanDate=function(e,r,t){if(e===Vo)return r;if(fn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Du(t))return A5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=fn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!fn.isDateTime(e,t))return A5.error("unrecognized date",e),r;return e};var DK=/%\d?f/g,FK=/%h/g,EK={1:"1",2:"1",3:"2",4:"2"};function MT(e,r,t,a){e=e.replace(DK,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(FK,function(){return EK[t("%q")(n)]}),Du(a))try{e=Su.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var LK=[59,59.9,59.99,59.999,59.9999];function qK(e,r){var t=_0(e+.05,Qi),a=F1(Math.floor(t/Cv),2)+":"+F1(_0(Math.floor(t/b0),60),2);if(r!=="M"){kT(r)||(r=0);var n=Math.min(_0(e/E1,60),LK[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}fn.formatDate=function(e,r,t,a,n,i){if(n=Du(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+`
`+i.year;else return qK(e,t)+`
`+MT(i.dayMonthYear,e,a,n);return MT(r,e,a,n)};var TT=3*Qi;fn.incrementMonth=function(e,r,t){t=Du(t)&&t;var a=_0(e,Qi);if(e=Math.round(e-a),t)try{var n=Math.round(e/Qi)+Sv,i=Su.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Sv)*Qi+a}catch(s){A5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+TT);return l.setUTCMonth(l.getUTCMonth()+r)+a-TT};fn.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Du(r)&&Su.getComponentMethod("calendars","getCal")(r),u=0;u<e.length;u++){if(l=e[u],!kT(l)){i++;continue}if(!(l%Qi))if(s)try{o=s.fromJD(l/Qi+Sv),o.day()===1?o.month()===1?t++:a++:n++}catch(c){}else o=new Date(l),o.getUTCDate()===1?o.getUTCMonth()===0?t++:a++:n++}a+=t,n+=a;var f=e.length-i;return{exactYears:t/f,exactMonths:a/f,exactDays:n/f}}});var Ap=le((k5e,DT)=>{"use strict";DT.exports=function(r){return r}});var T5=le(Fu=>{"use strict";var PK=Wt(),RK=Cu(),zK=Ap(),NK=(Ya(),Tr($a)).BADNUM,M5=1e-9;Fu.findBin=function(e,r,t){if(PK(r.start))return t?Math.ceil((e-r.start)/r.size-M5)-1:Math.floor((e-r.start)/r.size+M5);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?BK:IK:s=t?OK:HK,e+=o*M5*(t?-1:1)*(o>=0?1:-1);a<n&&i++<100;)l=Math.floor((a+n)/2),s(r[l],e)?a=l+1:n=l;return i>90&&RK.log("Long binary search..."),a-1};function BK(e,r){return e<r}function IK(e,r){return e<=r}function HK(e,r){return e>r}function OK(e,r){return e>=r}Fu.sorterAsc=function(e,r){return e-r};Fu.sorterDes=function(e,r){return r-e};Fu.distinctVals=function(e){var r=e.slice();r.sort(Fu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===NK;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};Fu.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a<n&&o++<100;)i=u((a+n)/2),r[i]<=e?a=i+l:n=i-s;return r[a]};Fu.sort=function(e,r){for(var t=0,a=0,n=1;n<e.length;n++){var i=r(e[n],e[n-1]);if(i<0?t=1:i>0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Fu.findIndexOfMin=function(e,r){r=r||zK;for(var t=1/0,a,n=0;n<e.length;n++){var i=r(e[n]);i<t&&(t=i,a=n)}return a}});var Mp={};Ha(Mp,{default:()=>GK});function UK(e){return Object.keys(e).sort()}var GK,Tp=Ia(()=>{"use strict";GK=UK});var FT=le(cn=>{"use strict";var Dv=Wt(),YK=$i().isArrayOrTypedArray;cn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Dv(r)||(r=!1),YK(t[0])){for(i=new Array(a),n=0;n<a;n++)i[n]=cn.aggNums(e,r,t[n]);t=i}for(n=0;n<a;n++)Dv(r)?Dv(t[n])&&(r=e(+r,+t[n])):r=t[n];return r};cn.len=function(e){return cn.aggNums(function(r){return r+1},0,e)};cn.mean=function(e,r){return r||(r=cn.len(e)),cn.aggNums(function(t,a){return t+a},0,e)/r};cn.geometricMean=function(e,r){return r||(r=cn.len(e)),Math.pow(cn.aggNums(function(t,a){return t*a},1,e),1/r)};cn.midRange=function(e){if(!(e===void 0||e.length===0))return(cn.aggNums(Math.max,null,e)+cn.aggNums(Math.min,null,e))/2};cn.variance=function(e,r,t){return r||(r=cn.len(e)),Dv(t)||(t=cn.mean(e,r)),cn.aggNums(function(a,n){return a+Math.pow(n-t,2)},0,e)/r};cn.stdev=function(e,r,t){return Math.sqrt(cn.variance(e,r,t))};cn.median=function(e){var r=e.slice().sort();return cn.interp(r,.5)};cn.interp=function(e,r){if(!Dv(r))throw"n should be a finite number";if(r=r*e.length-.5,r<0)return e[0];if(r>e.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var RT=le((D5e,PT)=>{"use strict";var ET=(p1(),Tr(d1)),k5=ET.mod,VK=ET.modHalf,Fv=Math.PI,x0=2*Fv;function XK(e){return e/180*Fv}function jK(e){return e/Fv*180}function C5(e){return Math.abs(e[1]-e[0])>x0-1e-14}function LT(e,r){return VK(r-e,x0)}function WK(e,r){return Math.abs(LT(e,r))}function qT(e,r){if(C5(r))return!0;var t,a;r[0]<r[1]?(t=r[0],a=r[1]):(t=r[1],a=r[0]),t=k5(t,x0),a=k5(a,x0),t>a&&(a+=x0);var n=k5(e,x0),i=n+x0;return n>=t&&n<=a||i>=t&&i<=a}function ZK(e,r,t,a){if(!qT(r,a))return!1;var n,i;return t[0]<t[1]?(n=t[0],i=t[1]):(n=t[1],i=t[0]),e>=n&&e<=i}function S5(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=C5([t,a]),s,u,f,c,h;l?(s=0,u=Fv,f=x0):t<a?(s=t,f=a):(s=a,f=t),e<r?(c=e,h=r):(c=r,h=e);function d(b,C){return[b*Math.cos(C)+n,i-b*Math.sin(C)]}var m=Math.abs(f-s)<=Fv?0:1;function p(b,C,x){return"A"+[b,b]+" "+[0,m,x]+" "+d(b,C)}var y;return l?c===null?y="M"+d(h,s)+p(h,u,0)+p(h,f,0)+"Z":y="M"+d(c,s)+p(c,u,0)+p(c,f,0)+"ZM"+d(h,s)+p(h,u,1)+p(h,f,1)+"Z":c===null?(y="M"+d(h,s)+p(h,f,0),o&&(y+="L0,0Z")):y="M"+d(c,s)+"L"+d(h,s)+p(h,f,0)+"L"+d(c,f)+p(c,s,1)+"Z",y}function $K(e,r,t,a,n){return S5(null,e,r,t,a,n,0)}function JK(e,r,t,a,n){return S5(null,e,r,t,a,n,1)}function KK(e,r,t,a,n,i){return S5(e,r,t,a,n,i,1)}PT.exports={deg2rad:XK,rad2deg:jK,angleDelta:LT,angleDist:WK,isFullCircle:C5,isAngleInsideSector:qT,isPtInsideSector:ZK,pathArc:$K,pathSector:JK,pathAnnulus:KK}});var zT=le(Vf=>{"use strict";Vf.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Vf.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Vf.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Vf.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Vf.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Vf.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var IT=le(Xf=>{"use strict";var D5=(p1(),Tr(d1)).mod;Xf.segmentsIntersect=BT;function BT(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,h=i-r,d=l-i,m=s*d-f*c;if(m===0)return null;var p=(u*d-f*h)/m,y=(u*c-s*h)/m;return y<0||y>1||p<0||p>1?null:{x:e+s*p,y:r+c*p}}Xf.segmentDistance=function(r,t,a,n,i,o,l,s){if(BT(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,h=s-o,d=u*u+f*f,m=c*c+h*h,p=Math.min(kp(u,f,d,i-r,o-t),kp(u,f,d,l-r,s-t),kp(c,h,m,r-i,t-o),kp(c,h,m,a-i,n-o));return Math.sqrt(p)};function kp(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var Cp,F5,NT;Xf.getTextLocation=function(r,t,a,n){if((r!==F5||n!==NT)&&(Cp={},F5=r,NT=n),Cp[a])return Cp[a];var i=r.getPointAtLength(D5(a-n/2,t)),o=r.getPointAtLength(D5(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(D5(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return Cp[a]=c,c};Xf.clearLocationCache=function(){F5=null};Xf.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,h;function d(p){var y=r.getPointAtLength(p);p===0?c=y:p===u&&(h=y);var b=y.x<n?n-y.x:y.x>i?y.x-i:0,C=y.y<o?o-y.y:y.y>l?y.y-l:0;return Math.sqrt(b*b+C*C)}for(var m=d(s);m;){if(s+=m+a,s>f)return;m=d(s)}for(m=d(f);m;){if(f-=m+a,s>f)return;m=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};Xf.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,h,d,m;u<l;){if(h=(f+c)/2,d=r.getPointAtLength(h),m=d[a]-t,Math.abs(m)<o)return d;s*m>0?c=h:f=h,u++}return d}});var Sp=le(Ev=>{"use strict";var Eu={};Ev.throttle=function(r,t,a){var n=Eu[r],i=Date.now();if(!n){for(var o in Eu)Eu[o].ts<i-6e4&&delete Eu[o];n=Eu[r]={ts:0,timer:null}}HT(n);function l(){a(),n.ts=Date.now(),n.onDone&&(n.onDone(),n.onDone=null)}if(i>n.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};Ev.done=function(e){var r=Eu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Ev.clear=function(e){if(e)HT(Eu[e]),delete Eu[e];else for(var r in Eu)Ev.clear(r)};function HT(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var UT=le((q5e,OT)=>{"use strict";OT.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var GT=le((P5e,Dp)=>{"use strict";Dp.exports=E5;Dp.exports.isMobile=E5;Dp.exports.default=E5;var QK=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,eQ=/CrOS/,rQ=/android|ipad|playbook|silk/i;function E5(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=QK.test(r)&&!eQ.test(r)||!!e.tablet&&rQ.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var VT=le((R5e,YT)=>{"use strict";var tQ=Wt(),aQ=GT();YT.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=nQ(),typeof t!="string")return!0;var a=aQ({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i<n.length;i++){var o=n[i];if(o.indexOf("Safari")!==-1)for(var l=i-1;l>-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(tQ(u)&&(u=+u),u>=13)return!0}}}return a};function nQ(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var jT=le((z5e,XT)=>{"use strict";var iQ=Ft();XT.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=iQ.select(this)}),n}});var ZT=le((N5e,WT)=>{"use strict";var oQ=_t();WT.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=oQ.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var JT=le((B5e,$T)=>{"use strict";$T.exports=function(r){for(var t={},a=[],n=0,i=0;i<r.length;i++){var o=r[i];t[o]!==1&&(t[o]=1,a[n++]=o)}return a}});var QT=le((I5e,KT)=>{"use strict";KT.exports=function(r){for(var t=uQ(r)?sQ:lQ,a=[],n=0;n<r.length;n++){var i=r[n];t(i)&&a.push(i)}return a};function lQ(e){return e.visible===!0}function sQ(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function uQ(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var rk=le((H5e,ek)=>{"use strict";ek.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var ak={};Ha(ak,{default:()=>vQ});function cQ(e){return typeof e=="string"&&(e=e.replace(fQ,"")),(0,tk.default)(e)?Number(e):void 0}var tk,fQ,vQ,nk=Ia(()=>{"use strict";tk=q_(Wt());Ya();fQ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;vQ=cQ});var lk=le((U5e,ok)=>{"use strict";var hQ=/<[^>]*>/g,dQ=/[\p{S}\p{P}]/gu,pQ=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,mQ=/�/g,gQ=/\s+/g,Fp="-",ik=Fp.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),yQ=new RegExp(ik+"{3,}","g"),bQ=new RegExp(ik+"$","g"),_Q=60;function xQ(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}ok.exports=function(r,t=_Q){var a=xQ(r!=null?r:"").replace(mQ,"").replace(hQ," ").replace(dQ,n=>n===Fp?n:"").toLowerCase().trim().replace(gQ,Fp).replace(pQ,"").replace(yQ,Fp);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(bQ,"")}});var mr=le((G5e,bk)=>{"use strict";var Lv=Ft(),wQ=v1().utcFormat,AQ=ky().format,hk=Wt(),dk=(Ya(),Tr($a)),pk=dk.FP_SAFE,MQ=-pk,sk=dk.BADNUM,Ee={};bk.exports=Ee;Ee.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var uk={};Ee.warnBadFormat=function(e){var r=String(e);uk[r]||(uk[r]=1,Ee.warn('encountered bad format: "'+r+'"'))};Ee.noFormat=function(e){return String(e)};Ee.numberFormat=function(e){var r;try{r=AQ(Ee.adjustFormat(e))}catch(t){return Ee.warnBadFormat(e),Ee.noFormat}return r};Ee.nestedProperty=ev();Ee.keyedContainer=tx();Ee.relativeAttr=nx();Ee.isPlainObject=c0();Ee.toLogRange=Pd();Ee.relinkPrivateKeys=sx();var w0=$i();Ee.isArrayBuffer=w0.isArrayBuffer;Ee.isTypedArray=w0.isTypedArray;Ee.isArrayOrTypedArray=w0.isArrayOrTypedArray;Ee.isArray1D=w0.isArray1D;Ee.ensureArray=w0.ensureArray;Ee.concat=w0.concat;Ee.maxRowLength=w0.maxRowLength;Ee.minRowLength=w0.minRowLength;var mk=(p1(),Tr(d1));Ee.mod=mk.mod;Ee.modHalf=mk.modHalf;var A0=DA();Ee.valObjectMeta=A0.valObjectMeta;Ee.coerce=A0.coerce;Ee.coerce2=A0.coerce2;Ee.coerceFont=A0.coerceFont;Ee.coercePattern=A0.coercePattern;Ee.coerceHoverinfo=A0.coerceHoverinfo;Ee.coerceSelectionMarkerOpacity=A0.coerceSelectionMarkerOpacity;Ee.validate=A0.validate;var yo=ST();Ee.dateTime2ms=yo.dateTime2ms;Ee.isDateTime=yo.isDateTime;Ee.ms2DateTime=yo.ms2DateTime;Ee.ms2DateTimeLocal=yo.ms2DateTimeLocal;Ee.cleanDate=yo.cleanDate;Ee.isJSDate=yo.isJSDate;Ee.formatDate=yo.formatDate;Ee.incrementMonth=yo.incrementMonth;Ee.dateTick0=yo.dateTick0;Ee.dfltRange=yo.dfltRange;Ee.findExactDates=yo.findExactDates;Ee.MIN_MS=yo.MIN_MS;Ee.MAX_MS=yo.MAX_MS;var jf=T5();Ee.findBin=jf.findBin;Ee.sorterAsc=jf.sorterAsc;Ee.sorterDes=jf.sorterDes;Ee.distinctVals=jf.distinctVals;Ee.roundUp=jf.roundUp;Ee.sort=jf.sort;Ee.findIndexOfMin=jf.findIndexOfMin;Ee.sortObjectKeys=(Tp(),Tr(Mp)).default;var Lu=FT();Ee.aggNums=Lu.aggNums;Ee.len=Lu.len;Ee.mean=Lu.mean;Ee.geometricMean=Lu.geometricMean;Ee.median=Lu.median;Ee.midRange=Lu.midRange;Ee.variance=Lu.variance;Ee.stdev=Lu.stdev;Ee.interp=Lu.interp;var Bl=hp();Ee.init2dArray=Bl.init2dArray;Ee.transposeRagged=Bl.transposeRagged;Ee.dot=Bl.dot;Ee.translationMatrix=Bl.translationMatrix;Ee.rotationMatrix=Bl.rotationMatrix;Ee.rotationXYMatrix=Bl.rotationXYMatrix;Ee.apply3DTransform=Bl.apply3DTransform;Ee.apply2DTransform=Bl.apply2DTransform;Ee.apply2DTransform2=Bl.apply2DTransform2;Ee.convertCssMatrix=Bl.convertCssMatrix;Ee.inverseTransformMatrix=Bl.inverseTransformMatrix;var Ss=RT();Ee.deg2rad=Ss.deg2rad;Ee.rad2deg=Ss.rad2deg;Ee.angleDelta=Ss.angleDelta;Ee.angleDist=Ss.angleDist;Ee.isFullCircle=Ss.isFullCircle;Ee.isAngleInsideSector=Ss.isAngleInsideSector;Ee.isPtInsideSector=Ss.isPtInsideSector;Ee.pathArc=Ss.pathArc;Ee.pathSector=Ss.pathSector;Ee.pathAnnulus=Ss.pathAnnulus;var P1=zT();Ee.isLeftAnchor=P1.isLeftAnchor;Ee.isCenterAnchor=P1.isCenterAnchor;Ee.isRightAnchor=P1.isRightAnchor;Ee.isTopAnchor=P1.isTopAnchor;Ee.isMiddleAnchor=P1.isMiddleAnchor;Ee.isBottomAnchor=P1.isBottomAnchor;var R1=IT();Ee.segmentsIntersect=R1.segmentsIntersect;Ee.segmentDistance=R1.segmentDistance;Ee.getTextLocation=R1.getTextLocation;Ee.clearLocationCache=R1.clearLocationCache;Ee.getVisibleSegment=R1.getVisibleSegment;Ee.findPointOnPath=R1.findPointOnPath;var qp=Tn();Ee.extendFlat=qp.extendFlat;Ee.extendDeep=qp.extendDeep;Ee.extendDeepAll=qp.extendDeepAll;Ee.extendDeepNoArrays=qp.extendDeepNoArrays;var L5=Cu();Ee.log=L5.log;Ee.warn=L5.warn;Ee.error=L5.error;var TQ=(k1(),Tr(Mv));Ee.counterRegex=TQ.counter;var q5=Sp();Ee.throttle=q5.throttle;Ee.throttleDone=q5.done;Ee.clearThrottle=q5.clear;var Il=Tv();Ee.getGraphDiv=Il.getGraphDiv;Ee.isPlotDiv=Il.isPlotDiv;Ee.removeElement=Il.removeElement;Ee.addStyleRule=Il.addStyleRule;Ee.addRelatedStyleRule=Il.addRelatedStyleRule;Ee.deleteRelatedStyleRule=Il.deleteRelatedStyleRule;Ee.setStyleOnHover=Il.setStyleOnHover;Ee.getFullTransformMatrix=Il.getFullTransformMatrix;Ee.getElementTransformMatrix=Il.getElementTransformMatrix;Ee.getElementAndAncestors=Il.getElementAndAncestors;Ee.equalDomRects=Il.equalDomRects;Ee.clearResponsive=UT();Ee.preserveDrawingBuffer=VT();Ee.makeTraceGroups=jT();Ee._=ZT();Ee.notifier=i5();Ee.filterUnique=JT();Ee.filterVisible=QT();Ee.pushUnique=d5();Ee.increment=rk();Ee.cleanNumber=(nk(),Tr(ak)).default;Ee.slugify=lk();Ee.ensureNumber=function(r){return hk(r)?(r=Number(r),r>pk||r<MQ?sk:r):sk};Ee.isIndex=function(e,r){return r!==void 0&&e>=r?!1:hk(e)&&e>=0&&e%1===0};Ee.noop=vp();Ee.identity=Ap();Ee.repeat=function(e,r){for(var t=new Array(r),a=0;a<r;a++)t[a]=e;return t};Ee.swapAttrs=function(e,r,t,a){t||(t="x"),a||(a="y");for(var n=0;n<r.length;n++){var i=r[n],o=Ee.nestedProperty(e,i.replace("?",t)),l=Ee.nestedProperty(e,i.replace("?",a)),s=o.get();o.set(l.get()),l.set(s)}};Ee.raiseToTop=function(r){r.parentNode.appendChild(r)};Ee.cancelTransition=function(e){return e.transition().duration(0)};Ee.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Ee.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Ee.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l<i;l++)o[l]=r(e[l],t,a,n);return o};Ee.randstr=function e(r,t,a,n){if(a||(a=16),t===void 0&&(t=24),t<=0)return"0";var i=Math.log(Math.pow(2,t))/Math.log(a),o="",l,s,u;for(l=2;i===1/0;l*=2)i=Math.log(Math.pow(2,t/l))/Math.log(a)*l;var f=i-Math.floor(i);for(l=0;l<Math.floor(i);l++)u=Math.floor(Math.random()*a).toString(a),o=u+o;f&&(s=Math.pow(a,f),u=Math.floor(Math.random()*s).toString(a),o=u+o);var c=parseInt(o,a);return r&&r[o]||c!==1/0&&c>=Math.pow(2,t)?n>10?(Ee.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};Ee.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};Ee.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l<n;l++)i[l]=(1-Math.cos(Math.PI*(l+1)/r))/(2*r);for(l=0;l<t;l++){for(f=0,s=0;s<n;s++)u=l+s+1-r,u<-t?u-=a*Math.round(u/a):u>=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};Ee.syncOrAsync=function(e,r,t){var a,n;function i(){return Ee.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};Ee.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Ee.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i<t.length;i++)o=e[t[i]],o!=null?a=!0:n=!1;if(a&&!n)for(i=0;i<t.length;i++)e[t[i]]=r[t[i]]}};Ee.mergeArray=function(e,r,t,a){var n=typeof a=="function";if(Ee.isArrayOrTypedArray(e))for(var i=Math.min(e.length,r.length),o=0;o<i;o++){var l=e[o];r[o][t]=n?a(l):l}};Ee.mergeArrayCastPositive=function(e,r,t){return Ee.mergeArray(e,r,t,function(a){var n=+a;return isFinite(n)&&n>0?n:0})};Ee.fillArray=function(e,r,t,a){if(a=a||Ee.identity,Ee.isArrayOrTypedArray(e))for(var n=0;n<r.length;n++)r[n][t]=a(e[n])};Ee.castOption=function(e,r,t,a){a=a||Ee.identity;var n=Ee.nestedProperty(e,t).get();return Ee.isArrayOrTypedArray(n)?Array.isArray(r)&&Ee.isArrayOrTypedArray(n[r[0]])?a(n[r[0]][r[1]]):a(n[r]):n};Ee.extractOption=function(e,r,t,a){if(t in e)return e[t];var n=Ee.nestedProperty(r,a).get();if(!Array.isArray(n))return n};Ee.tagSelected=function(e,r,t){var a=r.selectedpoints;function n(u){return u!==void 0&&u<e.length}for(var i=0;i<a.length;i++){var o=a[i];if(Ee.isIndex(o)||Ee.isArrayOrTypedArray(o)&&Ee.isIndex(o[0])&&Ee.isIndex(o[1])){var l=o,s=t?t[l]:l;n(s)&&(e[s].selected=1)}}};Ee.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var a=Ee.nestedProperty(e,t).get();return Ee.isArrayOrTypedArray(a)?a:!1}else if(Ee.isArrayOrTypedArray(t))return t;return!1};function gk(e,r,t){var a={};typeof r!="object"&&(r={});var n=t==="pieLike"?-1:3,i=Object.keys(e),o,l,s;for(o=0;o<i.length;o++)l=i[o],s=e[l],!(l.charAt(0)==="_"||typeof s=="function")&&(l==="module"?a[l]=s:Array.isArray(s)?l==="colorscale"||n===-1?a[l]=s.slice():a[l]=s.slice(0,n):Ee.isTypedArray(s)?n===-1?a[l]=s.subarray():a[l]=s.subarray(0,n):s&&typeof s=="object"?a[l]=gk(e[l],r[l],t):a[l]=s);for(i=Object.keys(r),o=0;o<i.length;o++)l=i[o],s=r[l],(typeof s!="object"||!(l in a)||typeof a[l]!="object")&&(a[l]=s);return a}Ee.minExtend=gk;Ee.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};Ee.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var kQ=/Version\/[\d\.]+.*Safari/;Ee.isSafari=function(){return kQ.test(window.navigator.userAgent)};var CQ=/iPad|iPhone|iPod/;Ee.isIOS=function(){return CQ.test(window.navigator.userAgent)};var SQ=/Macintosh.+AppleWebKit.+Gecko\)$/;Ee.isMacWKWebView=()=>SQ.test(window.navigator.userAgent);var DQ=/Firefox\/(\d+)\.\d+/;Ee.getFirefoxVersion=function(){var e=DQ.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Ee.isD3Selection=function(e){return e instanceof Lv.selection};Ee.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};Ee.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};Ee.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i<t.length;i++){var o=t[i],l=null,s=t[i].match(/(.*)\[([0-9]+)\]/);s?(o=s[1],l=s[2],a=a[o]=[],i===t.length-1?a[l]=r:a[l]={},a=a[l]):(i===t.length-1?a[o]=r:a[o]={},a=a[o])}return n};var FQ=/^([^\[\.]+)\.(.+)?/,EQ=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function Ep(e){return e.slice(0,2)==="__"}Ee.expandObjectPaths=function(e){var r,t,a,n,i,o,l;if(typeof e=="object"&&!Array.isArray(e)){for(t in e)if(e.hasOwnProperty(t))if(r=t.match(FQ)){if(n=e[t],a=r[1],Ep(a))continue;delete e[t],e[a]=Ee.extendDeepNoArrays(e[a]||{},Ee.objectFromPath(t,Ee.expandObjectPaths(n))[a])}else if(r=t.match(EQ)){if(n=e[t],a=r[1],Ep(a))continue;if(i=parseInt(r[2]),delete e[t],e[a]=e[a]||[],r[3]===".")l=r[4],o=e[a][i]=e[a][i]||{},Ee.extendDeepNoArrays(o,Ee.objectFromPath(l,Ee.expandObjectPaths(n)));else{if(Ep(a))continue;e[a][i]=Ee.expandObjectPaths(n)}}else{if(Ep(t))continue;e[t]=Ee.expandObjectPaths(e[t])}}return e};Ee.numSeparate=function(e,r,t){if(t||(t=!1),typeof r!="string"||r.length===0)throw new Error("Separator string required for formatting!");typeof e=="number"&&(e=String(e));var a=/(\d+)(\d{3})/,n=r.charAt(0),i=r.charAt(1),o=e.split("."),l=o[0],s=o.length>1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};Ee.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var yk=/^\w*$/;Ee.templateString=function(e,r){var t={};return e.replace(Ee.TEMPLATE_STRING_REGEX,function(a,n){var i;return yk.test(n)?i=r[n]:(t[n]=t[n]||Ee.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var LQ={max:10,count:0,name:"hovertemplate"};Ee.hovertemplateString=e=>P5(Ba(da({},e),{opts:LQ}));var qQ={max:10,count:0,name:"texttemplate"};Ee.texttemplateString=e=>P5(Ba(da({},e),{opts:qQ}));var PQ=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function RQ(e){var r=e.match(PQ);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var zQ={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ee.texttemplateStringForShapes=e=>P5(Ba(da({},e),{opts:zQ}));var fk=/^[:|\|]/;function P5({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(Ee.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),h=["xother_","yother_"].includes(l),d=u||f||h||c;(f||c)&&(l=l.substring(1)),(h||c)&&(l=l.substring(0,l.length-1));let m=null,p=null;if(n.parseMultDiv){var y=RQ(l);l=y.key,m=y.op,p=y.number}let b;if(d){if(a[l]===void 0)return"";b=a[l]}else for(let M of e)if(M){if(M.hasOwnProperty(l)){b=M[l];break}if(yk.test(l)||(b=Ee.nestedProperty(M,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:M,max:T,name:A}=n,E=t===!1?o:t;return M<T&&Ee.warn([`Variable '${l}' in ${A} could not be found!`,"Please verify that the template is correct.",`Using value: '${E}'.`].join(" ")),M===T&&Ee.warn(`Too many '${A}' warnings - additional warnings will be suppressed.`),n.count++,E}if(m==="*"&&(b*=p),m==="/"&&(b/=p),s){var C;if(s[0]===":"&&(C=r?r.numberFormat:Ee.numberFormat,b!==""&&(b=C(s.replace(fk,""))(b))),s[0]==="|"){C=r?r.timeFormat:wQ;var x=Ee.dateTime2ms(b);b=Ee.formatDate(x,s.replace(fk,""),!1,C)}}else{var _=l+"Label";a.hasOwnProperty(_)&&(b=a[_])}return d&&(b="("+b+")",(f||c)&&(b=" "+b),(h||c)&&(b=b+" ")),b})}var Lp=48,ck=57;Ee.subplotSort=function(e,r){for(var t=Math.min(e.length,r.length)+1,a=0,n=0,i=0;i<t;i++){var o=e.charCodeAt(i)||0,l=r.charCodeAt(i)||0,s=o>=Lp&&o<=ck,u=l>=Lp&&l<=ck;if(s&&(a=10*a+o-Lp),u&&(n=10*n+l-Lp),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var q1=2e9;Ee.seedPseudoRandom=function(){q1=2e9};Ee.pseudoRandom=function(){var e=q1;return q1=(69069*q1+1)%4294967296,Math.abs(q1-e)<429496729?Ee.pseudoRandom():q1/4294967296};Ee.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=Ee.extractOption(e,r,"htx","hovertext");if(Ee.isValidTextValue(n))return a(n);var i=Ee.extractOption(e,r,"tx","text");if(Ee.isValidTextValue(i))return a(i)};Ee.isValidTextValue=function(e){return e||e===0};Ee.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a<r;a++)t.indexOf(".")!==-1&&(t=t.replace("0%","%"),t=t.replace(".%","%"));return t};Ee.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};Ee.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};Ee.strRotate=function(e){return e?"rotate("+e+")":""};Ee.strScale=function(e){return e!==1?"scale("+e+")":""};Ee.getTextTransform=function(e){var r=e.noCenter,t=e.textX,a=e.textY,n=e.targetX,i=e.targetY,o=e.anchorX||0,l=e.anchorY||0,s=e.rotate,u=e.scale;return u?u>1&&(u=1):u=0,Ee.strTranslate(n-u*(t+o),i-u*(a+l))+Ee.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};Ee.setTransormAndDisplay=function(e,r){e.attr("transform",Ee.getTextTransform(r)),e.style("display",r.scale?null:"none")};Ee.ensureUniformFontSize=function(e,r){var t=Ee.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Ee.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};Ee.bigFont=function(e){return Math.round(1.2*e)};var vk=Ee.getFirefoxVersion(),NQ=vk!==null&&vk<86;Ee.getPositionFromD3Event=function(){return NQ?[Lv.event.layerX,Lv.event.layerY]:[Lv.event.offsetX,Lv.event.offsetY]}});var wk=le(()=>{"use strict";var BQ=mr(),_k={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(R5 in _k)xk=R5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),BQ.addStyleRule(xk,_k[R5]);var xk,R5});var z5=le((j5e,Ak)=>{Ak.exports=!0});var B5=le((W5e,Mk)=>{"use strict";var IQ=z5(),N5;typeof window.matchMedia=="function"?N5=!window.matchMedia("(hover: none)").matches:N5=IQ;Mk.exports=N5});var zp=le((Z5e,I5)=>{"use strict";var z1=typeof Reflect=="object"?Reflect:null,Tk=z1&&typeof z1.apply=="function"?z1.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Pp;z1&&typeof z1.ownKeys=="function"?Pp=z1.ownKeys:Object.getOwnPropertySymbols?Pp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Pp=function(r){return Object.getOwnPropertyNames(r)};function HQ(e){console&&console.warn&&console.warn(e)}var Ck=Number.isNaN||function(r){return r!==r};function qa(){qa.init.call(this)}I5.exports=qa;I5.exports.once=YQ;qa.EventEmitter=qa;qa.prototype._events=void 0;qa.prototype._eventsCount=0;qa.prototype._maxListeners=void 0;var kk=10;function Rp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qa,"defaultMaxListeners",{enumerable:!0,get:function(){return kk},set:function(e){if(typeof e!="number"||e<0||Ck(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");kk=e}});qa.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};qa.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||Ck(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function Sk(e){return e._maxListeners===void 0?qa.defaultMaxListeners:e._maxListeners}qa.prototype.getMaxListeners=function(){return Sk(this)};qa.prototype.emit=function(r){for(var t=[],a=1;a<arguments.length;a++)t.push(arguments[a]);var n=r==="error",i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")Tk(s,this,t);else for(var u=s.length,f=qk(s,u),a=0;a<u;++a)Tk(f[a],this,t);return!0};function Dk(e,r,t,a){var n,i,o;if(Rp(t),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",r,t.listener?t.listener:t),i=e._events),o=i[r]),o===void 0)o=i[r]=t,++e._eventsCount;else if(typeof o=="function"?o=i[r]=a?[t,o]:[o,t]:a?o.unshift(t):o.push(t),n=Sk(e),n>0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,HQ(l)}return e}qa.prototype.addListener=function(r,t){return Dk(this,r,t,!1)};qa.prototype.on=qa.prototype.addListener;qa.prototype.prependListener=function(r,t){return Dk(this,r,t,!0)};function OQ(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Fk(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=OQ.bind(a);return n.listener=t,a.wrapFn=n,n}qa.prototype.once=function(r,t){return Rp(t),this.on(r,Fk(this,r,t)),this};qa.prototype.prependOnceListener=function(r,t){return Rp(t),this.prependListener(r,Fk(this,r,t)),this};qa.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Rp(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():UQ(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};qa.prototype.off=qa.prototype.removeListener;qa.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n<i.length;++n)o=i[n],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=a[r],typeof t=="function")this.removeListener(r,t);else if(t!==void 0)for(n=t.length-1;n>=0;n--)this.removeListener(r,t[n]);return this};function Ek(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?GQ(n):qk(n,n.length)}qa.prototype.listeners=function(r){return Ek(this,r,!0)};qa.prototype.rawListeners=function(r){return Ek(this,r,!1)};qa.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):Lk.call(e,r)};qa.prototype.listenerCount=Lk;function Lk(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}qa.prototype.eventNames=function(){return this._eventsCount>0?Pp(this._events):[]};function qk(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e[a];return t}function UQ(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function GQ(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function YQ(e,r){return new Promise(function(t,a){function n(o){e.removeListener(r,i),a(o)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",n),t([].slice.call(arguments))}Pk(e,r,i,{once:!0}),r!=="error"&&VQ(e,n,{once:!0})})}function VQ(e,r,t){typeof e.on=="function"&&Pk(e,"error",r,t)}function Pk(e,r,t,a){if(typeof e.on=="function")a.once?e.once(r,t):e.on(r,t);else if(typeof e.addEventListener=="function")e.addEventListener(r,function n(i){a.once&&e.removeEventListener(r,n),t(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var qv=le(($5e,Rk)=>{"use strict";var H5=zp().EventEmitter,XQ={init:function(e){if(e._ev instanceof H5)return e;var r=new H5,t=new H5;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l<i.length-1;l++)o(i[l]);return a=o(i[l]),a},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}};Rk.exports=XQ});var Bk=le((J5e,Nk)=>{"use strict";var zk=mr(),jQ=d0().dfltConfig;function WQ(e,r){for(var t=[],a,n=0;n<r.length;n++)a=r[n],a===e?t[n]=a:typeof a=="object"?t[n]=Array.isArray(a)?zk.extendDeep([],a):zk.extendDeepAll({},a):t[n]=a;return t}var qu={};qu.add=function(e,r,t,a,n){var i,o;if(e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},o=e.undoQueue.index,e.autoplay){e.undoQueue.inSequence||(e.autoplay=!1);return}!e.undoQueue.sequence||e.undoQueue.beginSequence?(i={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(o,e.undoQueue.queue.length-o,i),e.undoQueue.index+=1):i=e.undoQueue.queue[o-1],e.undoQueue.beginSequence=!1,i&&(i.undo.calls.unshift(r),i.undo.args.unshift(t),i.redo.calls.push(a),i.redo.args.push(n)),e.undoQueue.queue.length>jQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};qu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};qu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};qu.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a<t.undo.calls.length;a++)qu.plotDo(r,t.undo.calls[a],t.undo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1}};qu.redo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index>=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a<t.redo.calls.length;a++)qu.plotDo(r,t.redo.calls[a],t.redo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};qu.plotDo=function(e,r,t){e.autoplay=!0,t=WQ(e,t),r.apply(null,t)};Nk.exports=qu});var O5=le((K5e,Ik)=>{"use strict";Ik.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var I1=le(kn=>{"use strict";var Xo=_t(),Pv=mr(),Bp=Go(),U5=D1(),ZQ=O5(),$Q=kv(),JQ=d0().configAttributes,Hk=Yo(),Hl=Pv.extendDeepAll,N1=Pv.isPlainObject,KQ=Pv.isArrayOrTypedArray,Ip=Pv.nestedProperty,QQ=Pv.valObjectMeta,G5="_isSubplotObj",Hp="_isLinkedToArray",eee="_arrayAttrRegexps",Uk="_deprecated",Y5=[G5,Hp,eee,Uk];kn.IS_SUBPLOT_OBJ=G5;kn.IS_LINKED_TO_ARRAY=Hp;kn.DEPRECATED=Uk;kn.UNDERSCORE_ATTRS=Y5;kn.get=function(){var e={};return Xo.allTypes.forEach(function(r){e[r]=tee(r)}),{defs:{valObjects:QQ,metaKeys:Y5.concat(["description","role","editType","impliedEdits"]),editType:{traces:Hk.traces,layout:Hk.layout},impliedEdits:{}},traces:e,layout:aee(),frames:nee(),animation:B1($Q),config:B1(JQ)}};kn.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(Y5.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!kn.isValObject(o)&&N1(o)&&i!=="impliedEdits"&&kn.crawl(o,r,n+1,l)}})};kn.isValObject=function(e){return e&&e.valType!==void 0};kn.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],h=f+t[u];if(u===t.length-1)KQ(c)&&r.push(i+h);else if(a[u]){if(Array.isArray(c))for(var d=0;d<c.length;d++)N1(c[d])&&l(c[d],u+1,h+"["+d+"].")}else N1(c)&&l(c,u+1,h+".")}return n=e,i="",kn.crawl(Bp,o),e._module&&e._module.attributes&&kn.crawl(e._module.attributes,o),r};kn.getTraceValObject=function(e,r){var t=r[0],a=1,n,i,o=e._module;if(o||(o=(Xo.modules[e.type||Bp.type.dflt]||{})._module),!o)return!1;if(n=o.attributes,i=n&&n[t],!i){var l=o.basePlotModule;l&&l.attributes&&(i=l.attributes[t])}return i||(i=Bp[t]),Gk(i,r,a)};kn.getLayoutValObject=function(e,r){var t=ree(e,r[0]);return Gk(t,r,1)};function ree(e,r){var t,a,n,i,o=e._basePlotModules;if(o){var l;for(t=0;t<o.length;t++){if(n=o[t],n.attrRegex&&n.attrRegex.test(r)){if(n.layoutAttrOverrides)return n.layoutAttrOverrides;!l&&n.layoutAttributes&&(l=n.layoutAttributes)}var s=n.baseLayoutAttrOverrides;if(s&&r in s)return s[r]}if(l)return l}var u=e._modules;if(u){for(t=0;t<u.length;t++)if(i=u[t].layoutAttributes,i&&r in i)return i[r]}for(a in Xo.componentsRegistry){if(n=Xo.componentsRegistry[a],n.name==="colorscale"&&r.indexOf("coloraxis")===0)return n.layoutAttributes[r];if(!n.schema&&r===n.name)return n.layoutAttributes}return r in U5?U5[r]:!1}function Gk(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(Np(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var a=e[r[t]];if(N1(a))e=a;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!Np(r[t]))return!1}else if(e.valType==="info_array"){t++;var n=r[t];if(!Np(n))return!1;var i=e.items;if(Array.isArray(i)){if(n>=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Np(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Np(e){return e===Math.round(e)&&e>=0}function tee(e){var r,t;r=Xo.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Hl({},Bp),i=Hl({},r.attributes);kn.crawl(i,function(s,u,f,c,h){Ip(n,h).set(void 0),s===void 0&&Ip(i,h).set(void 0)}),Hl(a,n),Xo.traceIs(e,"noOpacity")&&delete a.opacity,Xo.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Xo.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Hl(a,i),t.attributes&&Hl(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:B1(a)};if(r.layoutAttributes){var l={};Hl(l,r.layoutAttributes),o.layoutAttributes=B1(l)}return r.animatable||kn.crawl(o,function(s){kn.isValObject(s)&&"anim"in s&&delete s.anim}),o}function aee(){var e={},r,t;Hl(e,U5);for(r in Xo.subplotsRegistry)if(t=Xo.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)Ok(e,t,t.attr[a]);else{var n=t.attr==="subplot"?t.name:t.attr;Ok(e,t,n)}for(r in Xo.componentsRegistry){t=Xo.componentsRegistry[r];var i=t.schema;if(i&&(i.subplots||i.layout)){var o=i.subplots;if(o&&o.xaxis&&!o.yaxis)for(var l in o.xaxis)delete e.yaxis[l];delete e.xaxis.shift,delete e.xaxis.autoshift}else t.name==="colorscale"?Hl(e,t.layoutAttributes):t.layoutAttributes&&see(e,t.layoutAttributes,t.name)}return{layoutAttributes:B1(e)}}function nee(){var e={frames:Hl({},ZQ)};return B1(e),e.frames}function B1(e){return iee(e),oee(e),lee(e),e}function iee(e){function r(t,a,n){!kn.isValObject(t)&&N1(t)&&(t.role="object")}kn.crawl(e,r)}function oee(e){function r(t,a,n){if(t){var i=t[Hp];i&&(delete t[Hp],n[a]={items:{}},n[a].items[i]=t,n[a].role="object")}}kn.crawl(e,r)}function lee(e){function r(t){for(var a in t)if(N1(t[a]))r(t[a]);else if(Array.isArray(t[a]))for(var n=0;n<t[a].length;n++)r(t[a][n]);else t[a]instanceof RegExp&&(t[a]=t[a].toString())}r(e)}function Ok(e,r,t){var a=Ip(e,t),n=Hl({},r.layoutAttributes);n[G5]=!0,a.set(n)}function see(e,r,t){var a=Ip(e,t);a.set(Hl(a.get()||{},r))}});var ka=le(Wf=>{"use strict";var H1=mr(),uee=Go(),M0="templateitemname",V5={name:{valType:"string",editType:"none"}};V5[M0]={valType:"string",editType:"calc"};Wf.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=V5.name,r[M0]=V5[M0],r};Wf.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=H1.coerce(i,{},uee,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};Wf.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);H1.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Wf.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[Vk(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[M0]=u[M0];if(!Yk(c))return f._template=n,f;for(var h=0;h<i.length;h++){var d=i[h];if(d.name===c)return o[c]=1,f._template=d,f}return f[t]=u[t]||!1,f._template=!1,f}function s(){for(var u=[],f=0;f<i.length;f++){var c=i[f],h=c.name;if(Yk(h)&&!o[h]){var d={_template:c,name:h,_input:{_templateitemname:h}};d[M0]=c[M0],u.push(d),o[h]=1}}return u}return{newItem:l,defaultItems:s}};function Yk(e){return e&&typeof e=="string"}function Vk(e){var r=e.length-1;return e.charAt(r)!=="s"&&H1.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}Wf.arrayDefaultKey=Vk;Wf.arrayEditor=function(e,r,t){var a=(H1.nestedProperty(e,r).get()||[]).length,n=t._index,i=n>=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][M0]=i)}s();function u(d,m){l[d]=m}function f(d,m){i?H1.nestedProperty(l[o],d).set(m):l[o+"."+d]=m}function c(){var d=l;return s(),d}function h(d,m){d&&f(d,m);var p=c();for(var y in p)H1.nestedProperty(e,y).set(p[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var zn={};Ha(zn,{AX_ID_PATTERN:()=>dee,AX_NAME_PATTERN:()=>pee,DFLTRANGEX:()=>Aee,DFLTRANGEY:()=>Mee,DRAGGERSIZE:()=>xee,HOUR_PATTERN:()=>gee,MINDRAG:()=>bee,MINZOOM:()=>_ee,REDRAWDELAY:()=>wee,SUBPLOT_PATTERN:()=>mee,WEEKDAY_PATTERN:()=>yee,attrRegex:()=>cee,clipOnAxisFalseQuery:()=>kee,idRegex:()=>fee,layerValue2layerClass:()=>Cee,traceLayerClasses:()=>Tee,xAxisMatch:()=>vee,yAxisMatch:()=>hee,zindexSeparator:()=>See});var fee,cee,vee,hee,dee,pee,mee,gee,yee,bee,_ee,xee,wee,Aee,Mee,Tee,kee,Cee,See,Nn=Ia(()=>{"use strict";k1();fee={x:Uf("x","( domain)?"),y:Uf("y","( domain)?")},cee=Uf("[xy]axis"),vee=Uf("xaxis"),hee=Uf("yaxis"),dee=/^[xyz][0-9]*( domain)?$/,pee=/^[xyz]axis[0-9]*$/,mee=/^x([0-9]*)y([0-9]*)$/,gee="hour",yee="day of week",bee=8,_ee=20,xee=20,wee=50,Aee=[-1,6],Mee=[-1,4],Tee=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],kee=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Cee={"above traces":"above","below traces":"below"},See="z"});var Cn=le(eo=>{"use strict";var Dee=_t(),X5=(Nn(),Tr(zn));eo.id2name=function(r){if(!(typeof r!="string"||!r.match(X5.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};eo.name2id=function(r){if(r.match(X5.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};eo.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(X5.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};eo.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=eo.listIds(e,r),i=new Array(n.length),o;for(o=0;o<n.length;o++){var l=n[o];i[o]=a[l.charAt(0)+"axis"+l.slice(1)]}if(!t){var s=a._subplots.gl3d||[];for(o=0;o<s.length;o++){var u=a[s[o]];r?i.push(u[r+"axis"]):i.push(u.xaxis,u.yaxis,u.zaxis)}}return i};eo.listIds=function(e,r){var t=e._fullLayout;if(!t)return[];var a=t._subplots;return r?a[r+"axis"]:a.xaxis.concat(a.yaxis)};eo.getFromId=function(e,r,t){var a=e._fullLayout;return r=r===void 0||typeof r!="string"?r:r.replace(" domain",""),t==="x"?r=r.replace(/y[0-9]*/,""):t==="y"&&(r=r.replace(/x[0-9]*/,"")),a[eo.id2name(r)]};eo.getFromTrace=function(e,r,t){var a=e._fullLayout,n=null;if(Dee.traceIs(r,"gl3d")){var i=r.scene;i.slice(0,5)==="scene"&&(n=a[i][t+"axis"])}else n=eo.getFromId(e,r[t+"axis"]||t);return n};eo.idSort=function(e,r){var t=e.charAt(0),a=r.charAt(0);return t!==a?t>a?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};eo.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Xk(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}eo.isLinked=function(e,r){return Xk(r,e._axisMatchGroups)||Xk(r,e._axisConstraintGroups)}});var T0=le((a6e,jk)=>{"use strict";function Fee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Eee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}jk.exports={clearOutlineControllers:Fee,clearOutline:Eee}});var Op=le((n6e,Wk)=>{"use strict";Wk.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Rv=le(Gp=>{"use strict";var Up=_t(),i6e=(Nn(),Tr(zn)).SUBPLOT_PATTERN;Gp.getSubplotCalcData=function(e,r,t){var a=Up.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o<e.length;o++){var l=e[o],s=l[0].trace;s[n]===t&&i.push(l)}return i};Gp.getModuleCalcData=function(e,r,t){var a=[],n=[],i;if(typeof r=="string"?i=Up.getModule(r).plot:typeof r=="function"?i=r:i=r.plot,!i)return[a,e];for(var o=t,l=0;l<e.length;l++){var s=e[l],u=s[0].trace,f=u.zorder!==void 0;u.visible!==!0||u._length===0||(u._module&&u._module.plot===i&&(!f||u.zorder===o)?a.push(s):n.push(s))}return[a,n]};Gp.getSubplotData=function(r,t,a){if(!Up.subplotsRegistry[t])return[];for(var n=Up.subplotsRegistry[t].attr,i=[],o,l,s,u=0;u<r.length;u++)o=r[u],o[n]===a&&i.push(o);return i}});var Kk=le(Zf=>{"use strict";var Lee=_t(),O1=mr();Zf.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Zf.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){Zk(e,o,n.cache),n.check=function(){if(i){var f=Zk(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s<l.length;s++)e._internalOn(l[s],n.check);n.remove=function(){for(var u=0;u<l.length;u++)e._removeInternalListener(l[u],n.check)}}else O1.log("Unable to automatically bind plot updates to API command"),n.lookupTable={},n.remove=function(){};return n.disable=function(){i=!1},n.enable=function(){i=!0},r&&(r._commandObserver=n),n};Zf.hasSimpleAPICommandBindings=function(e,r,t){var a,n=r.length,i;for(a=0;a<n;a++){var o,l=r[a],s=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!s)return!1;var f=Zf.computeAPICommandBindings(e,s,u);if(f.length!==1)return!1;if(!i)i=f[0],Array.isArray(i.traces)&&i.traces.sort();else{if(o=f[0],o.type!==i.type||o.prop!==i.prop)return!1;if(Array.isArray(i.traces))if(Array.isArray(o.traces)){o.traces.sort();for(var c=0;c<i.traces.length;c++)if(i.traces[c]!==o.traces[c])return!1}else return!1;else if(o.prop!==i.prop)return!1}o=f[0];var h=o.value;if(Array.isArray(h))if(h.length===1)h=h[0];else return!1;t&&(t[h]=a)}return i};function Zk(e,r,t){var a,n,i,o=!1;if(r.type==="data")a=e._fullData[r.traces!==null?r.traces[0]:0];else if(r.type==="layout")a=e._fullLayout;else return!1;return n=O1.nestedProperty(a,r.prop).get(),i=t[r.type]=t[r.type]||{},i.hasOwnProperty(r.prop)&&i[r.prop]!==n&&(o=!0),i[r.prop]=n,{changed:o,value:n}}Zf.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var a=Lee.apiMethodRegistry[r],n=[e];Array.isArray(t)||(t=[]);for(var i=0;i<t.length;i++)n.push(t[i]);return a.apply(null,n).catch(function(o){return O1.warn("API call to Plotly."+r+" rejected.",o),Promise.reject(o)})};Zf.computeAPICommandBindings=function(e,r,t){var a;switch(Array.isArray(t)||(t=[]),r){case"restyle":a=Jk(e,t);break;case"relayout":a=$k(e,t);break;case"update":a=Jk(e,[t[0],t[2]]).concat($k(e,[t[1]]));break;case"animate":a=qee(e,t);break;default:a=[]}return a};function qee(e,r){return Array.isArray(r[0])&&r[0].length===1&&["string","number"].indexOf(typeof r[0][0])!==-1?[{type:"layout",prop:"_currentFrame",value:r[0][0].toString()}]:[]}function $k(e,r){var t=[],a=r[0],n={};if(typeof a=="string")n[a]=r[1];else if(O1.isPlainObject(a))n=a;else return t;return j5(n,function(i,o,l){t.push({type:"layout",prop:i,value:l})},"",0),t}function Jk(e,r){var t,a,n,i,o=[];if(a=r[0],n=r[1],t=r[2],i={},typeof a=="string")i[a]=n;else if(O1.isPlainObject(a))i=a,t===void 0&&(t=n);else return o;return t===void 0&&(t=null),j5(i,function(l,s,u){var f,c;if(Array.isArray(u)){c=u.slice();var h=Math.min(c.length,e.data.length);t&&(h=Math.min(h,t.length)),f=[];for(var d=0;d<h;d++)f[d]=t?t[d]:d}else c=u,f=t?t.slice():null;if(f===null)Array.isArray(c)&&(c=c[0]);else if(Array.isArray(f)){if(!Array.isArray(c)){var m=c;c=[];for(var p=0;p<f.length;p++)c[p]=m}c.length=Math.min(f.length,c.length)}o.push({type:"data",prop:l,traces:f,value:c})},"",0),o}function j5(e,r,t,a){Object.keys(e).forEach(function(n){var i=e[n];if(n[0]!=="_"){var o=t+(a>0?".":"")+n;O1.isPlainObject(i)?j5(i,r,o,a+1):r(o,n,i)}})}});var Sn=le((u6e,sC)=>{"use strict";var s6e=Ft(),Pee=v1().timeFormatLocale,Ree=ky().formatLocale,zv=Wt(),zee=Sy(),Nee=Q2().version,Jt=_t(),Bee=I1(),Iee=ka(),et=mr(),Hee=qt(),Qk=(Ya(),Tr($a)).BADNUM,ro=Cn(),Oee=T0().clearOutline,Uee=Op(),W5=kv(),Gee=O5(),Yee=Rv().getModuleCalcData,eC=et.relinkPrivateKeys,$f=et._,Nr=sC.exports={};et.extendFlat(Nr,Jt);Nr.attributes=Go();Nr.attributes.type.values=Nr.allTypes;Nr.fontAttrs=gi();Nr.layoutAttributes=D1();var Vp=Kk();Nr.executeAPICommand=Vp.executeAPICommand;Nr.computeAPICommandBindings=Vp.computeAPICommandBindings;Nr.manageCommandObserver=Vp.manageCommandObserver;Nr.hasSimpleAPICommandBindings=Vp.hasSimpleAPICommandBindings;Nr.redrawText=function(e){return e=et.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Jt.getComponentMethod("annotations","draw")(e),Jt.getComponentMethod("legend","draw")(e),Jt.getComponentMethod("colorbar","draw")(e),r(Nr.previousPromises(e)))},300)})};Nr.resize=function(e){e=et.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||et.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||et.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Jt.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Nr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Nr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Nr.graphJson(e,!1,"object");a.version=Nee;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var Vee=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Xee=["year","month","dayMonth","dayMonthYear"];Nr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Nr.createTransitionData(e),n._dfltTitle={plot:$f(e,"Click to enter Plot title"),subtitle:$f(e,"Click to enter Plot subtitle"),x:$f(e,"Click to enter X axis title"),y:$f(e,"Click to enter Y axis title"),colorbar:$f(e,"Click to enter Colorscale title"),annotation:$f(e,"new text")},n._traceWord=$f(e,"trace");var h=rC(e,Vee);if(a._initialAutoSizeIsDone){var d=a.width,m=a.height;Nr.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=m),Nr.sanitizeMargins(n)}else{Nr.supplyLayoutGlobalDefaults(i,n,h);var p=!i.width||!i.height,y=n.autosize,b=f.autosizable,C=p&&(y||b);C?Nr.plotAutoSize(e,i,n):p&&Nr.sanitizeMargins(n),!y&&p&&(i.width=n.width,i.height=n.height)}n._d3locale=Zee(h,n.separators),n._extraFormat=rC(e,Xee),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var x=n._subplots=Wee(),_=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=jee(o,s),Nr.supplyDataDefaults(s,l,i,n);var T=Object.keys(_.x),A=Object.keys(_.y);if(T.length>1&&A.length>1){for(Jt.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c<T.length;c++)et.pushUnique(x.xaxis,T[c]);for(c=0;c<A.length;c++)et.pushUnique(x.yaxis,A[c]);for(var E in M)et.pushUnique(x.cartesian,E)}if(n._has=Nr._hasPlotType.bind(n),o.length===l.length)for(c=0;c<l.length;c++)eC(l[c],o[c]);Nr.supplyLayoutModuleDefaults(i,n,l,e._transitionData);var P=n._visibleModules,z=[];for(c=0;c<P.length;c++){var B=P[c].crossTraceDefaults;B&&et.pushUnique(z,B)}for(c=0;c<z.length;c++)z[c](l,n);n._hasOnlyLargeSploms=n._basePlotModules.length===1&&n._basePlotModules[0].name==="splom"&&T.length>15&&A.length>15&&n.shapes.length===0&&n.images.length===0,Nr.linkSubplots(l,n,o,a),Nr.cleanPlot(l,n,o,a);var X=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),V=X,H=I;V&&!H?a._bgLayer.remove():H&&!V&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Oee({_fullLayout:a}),$ee(l,n),eC(n,a),Jt.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Q=n._tracePreGUI,oe={},re;for(re in Q)oe[re]="old";for(c=0;c<l.length;c++)re=l[c].uid,oe[re]||(Q[re]={}),oe[re]="new";for(re in oe)oe[re]==="old"&&delete Q[re];nC(n),Jt.getComponentMethod("rangeslider","makeData")(n),!t&&u.length===l.length&&Nr.supplyDefaultsUpdateCalc(u,l)};Nr.supplyDefaultsUpdateCalc=function(e,r){for(var t=0;t<r.length;t++){var a=r[t],n=(e[t]||[])[0];n&&n.trace&&(n.trace=a)}};function jee(e,r){var t=r.length,a,n=e.length,i=new Array(t),o={};function l(f,c){i[c]=f,o[f]=1}function s(f,c){if(f&&typeof f=="string"&&!o[f])return l(f,c),!0}for(a=0;a<t;a++){var u=r[a].uid;typeof u=="number"&&(u=String(u)),!s(u,a)&&(a<n&&s(e[a].uid,a)||l(et.randstr(o),a))}return i}function Wee(){var e=Jt.collectableSubplotTypes,r={},t,a;if(!e){e=[];var n=Jt.subplotsRegistry;for(var i in n){var o=n[i],l=o.attr;if(l&&(e.push(i),Array.isArray(l)))for(a=0;a<l.length;a++)et.pushUnique(e,l[a])}}for(t=0;t<e.length;t++)r[e[t]]=[];return r}function rC(e,r){var t=e._context.locale;t||(t="en-US");var a=!1,n={};function i(c){for(var h=!0,d=0;d<r.length;d++){var m=r[d];n[m]||(c[m]?n[m]=c[m]:h=!1)}h&&(a=!0)}for(var o=0;o<2;o++){for(var l=e._context.locales,s=0;s<2;s++){var u=(l[t]||{}).format;if(u&&(i(u),a))break;l=Jt.localeRegistry}var f=t.split("-")[0];if(a||f===t)break;t=f}return a||i(Jt.localeRegistry.en.format),n}function Zee(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=Ree(e).format(et.adjustFormat(t))}catch(a){return et.warnBadFormat(t),et.noFormat}return t},timeFormat:Pee(e).utcFormat}}function $ee(e,r){var t,a=[];r.meta&&(t=r._meta={meta:r.meta,layout:{meta:r.meta}});for(var n=0;n<e.length;n++){var i=e[n];i.meta?a[i.index]=i._meta={meta:i.meta}:r.meta&&(i._meta={meta:r.meta}),r.meta&&(i._meta.layout={meta:r.meta})}a.length&&(t||(t=r._meta={}),t.data=a)}Nr.createTransitionData=function(e){e._transitionData||(e._transitionData={}),e._transitionData._frames||(e._transitionData._frames=[]),e._transitionData._frameHash||(e._transitionData._frameHash={}),e._transitionData._counter||(e._transitionData._counter=0),e._transitionData._interruptCallbacks||(e._transitionData._interruptCallbacks=[])};Nr._hasPlotType=function(e){var r,t=this._basePlotModules||[];for(r=0;r<t.length;r++)if(t[r].name===e)return!0;var a=this._modules||[];for(r=0;r<a.length;r++){var n=a[r].name;if(n===e)return!0;var i=Jt.modules[n];if(i&&i.categories[e])return!0}return!1};Nr.cleanPlot=function(e,r,t,a){var n,i,o=a._basePlotModules||[];for(n=0;n<o.length;n++){var l=o[n];l.clean&&l.clean(e,r,t,a)}var s=a._has&&a._has("gl"),u=r._has&&r._has("gl");s&&!u&&a._glcontainer!==void 0&&(a._glcontainer.selectAll(".gl-canvas").remove(),a._glcontainer.selectAll(".no-webgl").remove(),a._glcanvas=null);var f=!!a._infolayer;e:for(n=0;n<t.length;n++){var c=t[n],h=c.uid;for(i=0;i<e.length;i++){var d=e[i];if(h===d.uid)continue e}f&&a._infolayer.select(".cb"+h).remove()}};Nr.linkSubplots=function(e,r,t,a){var n,i,o=a._plots||{},l=r._plots={},s=r._subplots,u={_fullData:e,_fullLayout:r},f=s.cartesian||[];for(n=0;n<f.length;n++){var c=f[n],h=o[c],d=ro.getFromId(u,c,"x"),m=ro.getFromId(u,c,"y"),p;for(h?p=l[c]=h:(p=l[c]={},p.id=c),d._counterAxes.push(m._id),m._counterAxes.push(d._id),d._subplotsWith.push(c),m._subplotsWith.push(c),p.xaxis=d,p.yaxis=m,p._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var y=e[i];if(y.xaxis===p.xaxis._id&&y.yaxis===p.yaxis._id&&y.cliponaxis===!1){p._hasClipOnAxisFalse=!0;break}}}var b=ro.list(u,null,!0),C;for(n=0;n<b.length;n++){C=b[n];var x=null;C.overlaying&&(x=ro.getFromId(u,C.overlaying),x&&x.overlaying&&(C.overlaying=!1,x=null)),C._mainAxis=x||C,x&&(C.domain=x.domain.slice()),C._anchorAxis=C.anchor==="free"?null:ro.getFromId(u,C.anchor)}for(n=0;n<b.length;n++)if(C=b[n],C._counterAxes.sort(ro.idSort),C._subplotsWith.sort(et.subplotSort),C._mainSubplot=Jee(C,r),C._counterAxes.length&&(C.spikemode&&C.spikemode.indexOf("across")!==-1||C.automargin&&C.mirror&&C.anchor!=="free"||Jt.getComponentMethod("rangeslider","isVisible")(C))){var _=1,M=0;for(i=0;i<C._counterAxes.length;i++){var T=ro.getFromId(u,C._counterAxes[i]);_=Math.min(_,T.domain[0]),M=Math.max(M,T.domain[1])}_<M&&(C._counterDomainMin=_,C._counterDomainMax=M)}};function Jee(e,r){var t={_fullLayout:r},a=e._id.charAt(0)==="x",n=e._mainAxis._anchorAxis,i="",o="",l="";if(n&&(l=n._mainAxis._id,i=a?e._id+l:l+e._id),!i||!r._plots[i]){i="";for(var s=e._counterAxes,u=0;u<s.length;u++){var f=s[u],c=a?e._id+f:f+e._id;o||(o=c);var h=ro.getFromId(t,f);if(l&&h.overlaying===l){i=c;break}}}return i||o}Nr.supplyDataDefaults=function(e,r,t,a){var n=a._modules,i=a._visibleModules,o=a._basePlotModules,l=0,s=0,u,f,c;function h(C){r.push(C);var x=C._module;x&&(et.pushUnique(n,x),C.visible===!0&&et.pushUnique(i,x),et.pushUnique(o,C._module.basePlotModule),l++,C._input.visible!==!1&&s++)}var d={},m=[],p=(t.template||{}).data||{},y=Iee.traceTemplater(p);for(u=0;u<e.length;u++)c=e[u],f=y.newTrace(c),f.uid=a._traceUids[u],Nr.supplyTraceDefaults(c,f,s,a,u),f.index=u,f._input=c,h(f),Jt.traceIs(f,"carpetAxis")&&(d[f.carpet]=f),Jt.traceIs(f,"carpetDependent")&&m.push(u);for(u=0;u<m.length;u++)if(f=r[m[u]],!!f.visible){var b=d[f.carpet];if(f._carpet=b,!b||!b.visible){f.visible=!1;continue}f.xaxis=b.xaxis,f.yaxis=b.yaxis}};Nr.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function a(n,i){return et.coerce(e||{},t,W5,n,i)}if(a("mode"),a("direction"),a("fromcurrent"),Array.isArray(e.frame))for(t.frame=[],r=0;r<e.frame.length;r++)t.frame[r]=Nr.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=Nr.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=Nr.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=Nr.supplyAnimationTransitionDefaults(e.transition||{});return t};Nr.supplyAnimationFrameDefaults=function(e){var r={};function t(a,n){return et.coerce(e||{},r,W5.frame,a,n)}return t("duration"),t("redraw"),r};Nr.supplyAnimationTransitionDefaults=function(e){var r={};function t(a,n){return et.coerce(e||{},r,W5.transition,a,n)}return t("duration"),t("easing"),r};Nr.supplyFrameDefaults=function(e){var r={};function t(a,n){return et.coerce(e,r,Gee,a,n)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};Nr.supplyTraceDefaults=function(e,r,t,a,n){var i=a.colorway||Hee.defaults,o=i[t%i.length],l;function s(x,_){return et.coerce(e,r,Nr.attributes,x,_)}var u=s("visible");s("type"),s("name",a._traceWord+" "+n),s("uirevision",a.uirevision);var f=Nr.getModule(r);if(r._module=f,f){var c=f.basePlotModule,h=c.attr,d=c.attributes;if(h&&d){var m=a._subplots,p="";if(Array.isArray(h))for(l=0;l<h.length;l++){var y=h[l],b=et.coerce(e,r,d,y);m[y]&&et.pushUnique(m[y],b),p+=b}else p=et.coerce(e,r,d,h);m[c.name]&&et.pushUnique(m[c.name],p)}}if(u&&(s("customdata"),s("ids"),s("meta"),Jt.traceIs(r,"showLegend")?(et.coerce(e,r,f.attributes.showlegend?f.attributes:Nr.attributes,"showlegend"),et.coerce(e,r,f.attributes.legend?f.attributes:Nr.attributes,"legend"),s("legendwidth"),s("legendgroup"),s("legendgrouptitle.text"),et.coerce(e,r,f.attributes.legend?f.attributes:Nr.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,o,a),Jt.traceIs(r,"noOpacity")||s("opacity"),Jt.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),Jt.traceIs(r,"noHover")||(r.hovertemplate||et.coerceHoverinfo(e,r,a),r.type!=="parcats"&&Jt.getComponentMethod("fx","supplyDefaults")(e,r,o,a)),f&&f.selectPoints)){var C=s("selectedpoints");et.isTypedArray(C)&&(r.selectedpoints=Array.from(C))}return r};Nr.supplyLayoutGlobalDefaults=function(e,r,t){function a(c,h){return et.coerce(e,r,Nr.layoutAttributes,c,h)}var n=e.template;et.isPlainObject(n)&&(r.template=n,r._template=n.layout,r._dataTemplate=n.data),a("autotypenumbers");var i=et.coerceFont(a,"font"),o=i.size;et.coerceFont(a,"title.font",i,{overrideDflt:{size:Math.round(o*1.4)}}),a("title.text",r._dfltTitle.plot),a("title.xref");var l=a("title.yref");a("title.pad.t"),a("title.pad.r"),a("title.pad.b"),a("title.pad.l");var s=a("title.automargin");a("title.x"),a("title.xanchor"),a("title.y"),a("title.yanchor"),a("title.subtitle.text",r._dfltTitle.subtitle),et.coerceFont(a,"title.subtitle.font",i,{overrideDflt:{size:Math.round(r.title.font.size*.7)}}),s&&(l==="paper"&&(r.title.y!==0&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y===0?"top":"bottom")),l==="container"&&(r.title.y==="auto"&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y<.5?"bottom":"top")));var u=a("uniformtext.mode");u&&a("uniformtext.minsize"),a("autosize",!(e.width&&e.height)),a("width"),a("height"),a("minreducedwidth"),a("minreducedheight"),a("margin.l"),a("margin.r"),a("margin.t"),a("margin.b"),a("margin.pad"),a("margin.autoexpand"),e.width&&e.height&&Nr.sanitizeMargins(r),Jt.getComponentMethod("grid","sizeDefaults")(e,r),a("paper_bgcolor"),a("separators",t.decimal+t.thousands),a("colorway"),a("datarevision");var f=a("uirevision");a("editrevision",f),a("selectionrevision",f),Jt.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),Jt.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,a),Jt.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,a),a("meta"),et.isPlainObject(e.transition)&&(a("transition.duration"),a("transition.easing"),a("transition.ordering")),Jt.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),Jt.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,a),et.coerce(e,r,Uee,"scattermode")};function Yp(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}Nr.plotAutoSize=function(r,t,a){var n=r._context||{},i=n.frameMargins,o,l,s=et.isPlotDiv(r);if(s&&r.emit("plotly_autosize"),n.fillFrame)o=window.innerWidth,l=window.innerHeight,document.body.style.overflow="hidden";else{var u=s?window.getComputedStyle(r):{};if(o=Yp(u.width)||Yp(u.maxWidth)||a.width,l=Yp(u.height)||Yp(u.maxHeight)||a.height,zv(i)&&i>0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Nr.layoutAttributes.width.min,h=Nr.layoutAttributes.height.min;o<c&&(o=c),l<h&&(l=h);var d=!t.width&&Math.abs(a.width-o)>1,m=!t.height&&Math.abs(a.height-l)>1;(m||d)&&(d&&(a.width=o),m&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Nr.sanitizeMargins(a)};Nr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Jt.componentsRegistry,i=r._basePlotModules,o,l,s,u=Jt.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Jt.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(et.subplotSort);for(l=0;l<i.length;l++)s=i[l],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t);var c=r._modules;for(l=0;l<c.length;l++)s=c[l],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t);for(o in n)s=n[o],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t)};Nr.purge=function(e){var r=e._fullLayout||{};r._glcontainer!==void 0&&(r._glcontainer.selectAll(".gl-canvas").remove(),r._glcontainer.remove(),r._glcanvas=null),r._modeBar&&r._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),et.clearThrottle(),et.clearResponsive(e),delete e._fontLoadToken,delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()};Nr.style=function(e){var r=e._fullLayout._visibleModules,t=[],a;for(a=0;a<r.length;a++){var n=r[a];n.style&&et.pushUnique(t,n.style)}for(a=0;a<t.length;a++)t[a](e)};Nr.sanitizeMargins=function(e){if(!(!e||!e.margin)){var r=e.width,t=e.height,a=e.margin,n=r-(a.l+a.r),i=t-(a.t+a.b),o;n<0&&(o=(r-1)/(a.l+a.r),a.l=Math.floor(o*a.l),a.r=Math.floor(o*a.r)),i<0&&(o=(t-1)/(a.t+a.b),a.t=Math.floor(o*a.t),a.b=Math.floor(o*a.b))}};Nr.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};Nr.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function nC(e){var r=e.margin;if(!e._size){var t=e._size={l:Math.round(r.l),r:Math.round(r.r),t:Math.round(r.t),b:Math.round(r.b),p:Math.round(r.pad)};t.w=Math.round(e.width)-t.l-t.r,t.h=Math.round(e.height)-t.t-t.b}e._pushmargin||(e._pushmargin={}),e._pushmarginIds||(e._pushmarginIds={}),e._reservedMargin||(e._reservedMargin={})}var iC=2,oC=2;Nr.autoMargin=function(e,r,t){var a=e._fullLayout,n=a.width,i=a.height,o=a.margin,l=a.minreducedwidth,s=a.minreducedheight,u=et.constrain(n-o.l-o.r,iC,l),f=et.constrain(i-o.t-o.b,oC,s),c=Math.max(0,n-u),h=Math.max(0,i-f),d=a._pushmargin,m=a._pushmarginIds;if(o.autoexpand!==!1){if(!t)delete d[r],delete m[r];else{var p=t.pad;if(p===void 0&&(p=Math.min(12,o.l,o.r,o.t,o.b)),c){var y=(t.l+t.r)/c;y>1&&(t.l/=y,t.r/=y)}if(h){var b=(t.t+t.b)/h;b>1&&(t.t/=b,t.b/=b)}var C=t.xl!==void 0?t.xl:t.x,x=t.xr!==void 0?t.xr:t.x,_=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:C,size:t.l+p},r:{val:x,size:t.r+p},b:{val:M,size:t.b+p},t:{val:_,size:t.t+p}},m[r]=1}if(!a._replotting)return Nr.doAutoMargin(e)}};function Kee(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=ro.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Nr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),nC(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=et.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,p=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var b=e._fullLayout._reservedMargin;for(var C in b)for(var x in b[C]){var _=b[C][x];o[x]=Math.max(o[x],_)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var M in o){var T=0;for(var A in h)A!=="base"&&zv(h[A][M].size)&&(T=h[A][M].size>T?h[A][M].size:T);var E=Math.max(0,i[M]-T);o[M]=Math.max(0,o[M]-E)}for(var P in h){var z=h[P].l||{},B=h[P].b||{},X=z.val,I=z.size,V=B.val,H=B.size,Q=t-o.r-o.l,oe=a-o.t-o.b;for(var re in h){if(zv(I)&&h[re].r){var te=h[re].r.val,ie=h[re].r.size;if(te>X){var ce=(I*te+(ie-Q)*X)/(te-X),Me=(ie*(1-X)+(I-Q)*(1-te))/(te-X);ce+Me>s+u&&(s=ce,u=Me)}}if(zv(H)&&h[re].t){var De=h[re].t.val,Ie=h[re].t.size;if(De>V){var Ue=(H*De+(Ie-oe)*V)/(De-V),ke=(Ie*(1-V)+(H-oe)*(1-De))/(De-V);Ue+ke>c+f&&(c=Ue,f=ke)}}}}}var je=et.constrain(t-i.l-i.r,iC,m),W=et.constrain(a-i.t-i.b,oC,p),ee=Math.max(0,t-je),me=Math.max(0,a-W);if(ee){var K=(s+u)/ee;K>1&&(s/=K,u/=K)}if(me){var J=(c+f)/me;J>1&&(c/=J,f/=J)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Nr.didMarginChange(l,n)||Kee(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ue=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount<ue)return Jt.call("_doPlot",e);r._size=l,et.warn("Too many auto-margin redraws.")}Qee(e)};function Qee(e){var r=ro.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a<r.length;a++){var n=r[a][t];n&&n()}})}var tC=["l","r","t","b","p","w","h"];Nr.didMarginChange=function(e,r){for(var t=0;t<tC.length;t++){var a=tC[t],n=e[a],i=r[a];if(!zv(n)||Math.abs(i-n)>1)return!0}return!1};Nr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Nr.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function s(c,h){if(typeof c=="function")return h?"_function_":null;if(et.isPlainObject(c)){var d={};return Object.keys(c).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof c[b]=="function"){h&&(d[b]="_function");return}d[b]=s(c[b],h)}}),d}var m=Array.isArray(c),p=et.isTypedArray(c);if((m||p)&&c.dtype&&c.shape){var y=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:et.isArrayBuffer(y)?zee.encode(y):y},h)}return m?c.map(function(b){return s(b,h)}):p?et.simpleMap(c,et.identity):et.isJSDate(c)?et.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var h=s(c);return r&&delete h.fit,h})};if(!r&&(u.layout=s(o),a)){var f=o._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(u.frames=s(l)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};Nr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t<r.length;t++)switch(a=r[t],a.type){case"replace":n=a.value;var l=(i[a.index]||{}).name,s=n.name;i[a.index]=o[s]=n,s!==l&&(delete o[l],o[s]=n);break;case"insert":n=a.value,o[n.name]=n,i.splice(a.index,0,n);break;case"delete":n=i[a.index],delete o[n.name],i.splice(a.index,1);break}return Promise.resolve()};Nr.computeFrame=function(e,r){var t=e._transitionData._frameHash,a,n,i,o;if(!r)throw new Error("computeFrame must be given a string frame name");var l=t[r.toString()];if(!l)return!1;for(var s=[l],u=[l.name];l.baseframe&&(l=t[l.baseframe.toString()])&&u.indexOf(l.name)===-1;)s.push(l),u.push(l.name);for(var f={};l=s.pop();)if(l.layout&&(f.layout=Nr.extendLayout(f.layout,l.layout)),l.data){if(f.data||(f.data=[]),n=l.traces,!n)for(n=[],a=0;a<l.data.length;a++)n[a]=a;for(f.traces||(f.traces=[]),a=0;a<l.data.length;a++)i=n[a],i!=null&&(o=f.traces.indexOf(i),o===-1&&(o=f.data.length,f.traces[o]=i),f.data[o]=Nr.extendTrace(f.data[o],l.data[a]))}return f};Nr.recomputeFrameHash=function(e){for(var r=e._transitionData._frameHash={},t=e._transitionData._frames,a=0;a<t.length;a++){var n=t[a];n&&n.name&&(r[n.name]=n)}};Nr.extendObjectWithContainers=function(e,r,t){var a,n,i,o,l,s,u,f,c=et.extendDeepNoArrays({},r||{}),h=et.expandObjectPaths(c),d={};if(t&&t.length)for(i=0;i<t.length;i++)a=et.nestedProperty(h,t[i]),n=a.get(),n===void 0?et.nestedProperty(d,t[i]).set(null):(a.set(null),et.nestedProperty(d,t[i]).set(n));if(e=et.extendDeepNoArrays(e||{},h),t&&t.length){for(i=0;i<t.length;i++)if(l=et.nestedProperty(d,t[i]),u=l.get(),!!u){for(s=et.nestedProperty(e,t[i]),f=s.get(),Array.isArray(f)||(f=[],s.set(f)),o=0;o<u.length;o++){var m=u[o];m===null?f[o]=null:f[o]=Nr.extendObjectWithContainers(f[o],m)}s.set(f)}}return e};Nr.dataArrayContainers=["dimensions"];Nr.layoutArrayContainers=Jt.layoutArrayContainers;Nr.extendTrace=function(e,r){return Nr.extendObjectWithContainers(e,r,Nr.dataArrayContainers)};Nr.extendLayout=function(e,r){return Nr.extendObjectWithContainers(e,r,Nr.layoutArrayContainers)};Nr.transition=function(e,r,t,a,n,i){var o={redraw:n.redraw},l={},s=[];return o.prepareFn=function(){for(var u=Array.isArray(r)?r.length:0,f=a.slice(0,u),c=0;c<f.length;c++){var h=f[c],d=e._fullData[h],m=d._module;if(m){if(m.animatable){var p=m.basePlotModule.name;l[p]||(l[p]=[]),l[p].push(h)}e.data[f[c]]=Nr.extendTrace(e.data[f[c]],r[c])}}var y=et.expandObjectPaths(et.extendDeepNoArrays({},t)),b=/^[xy]axis[0-9]*$/;for(var C in y)b.test(C)&&delete y[C].range;Nr.extendLayout(e.layout,y),delete e.calcdata,Nr.supplyDefaults(e),Nr.doCalcdata(e);var x=et.expandObjectPaths(t);if(x){var _=e._fullLayout._plots;for(var M in _){var T=_[M],A=T.xaxis,E=T.yaxis,P=A.range.slice(),z=E.range.slice(),B=null,X=null,I=null,V=null;Array.isArray(x[A._name+".range"])?B=x[A._name+".range"].slice():Array.isArray((x[A._name]||{}).range)&&(B=x[A._name].range.slice()),Array.isArray(x[E._name+".range"])?X=x[E._name+".range"].slice():Array.isArray((x[E._name]||{}).range)&&(X=x[E._name].range.slice()),P&&B&&(A.r2l(P[0])!==A.r2l(B[0])||A.r2l(P[1])!==A.r2l(B[1]))&&(I={xr0:P,xr1:B}),z&&X&&(E.r2l(z[0])!==E.r2l(X[0])||E.r2l(z[1])!==E.r2l(X[1]))&&(V={yr0:z,yr1:X}),(I||V)&&s.push(et.extendFlat({plotinfo:T},I,V))}}return Promise.resolve()},o.runFn=function(u){var f,c=e._fullLayout._basePlotModules,h=s.length,d;if(t)for(d=0;d<c.length;d++)c[d].transitionAxes&&c[d].transitionAxes(e,s,i,u);h?(f=et.extendFlat({},i),f.duration=0,delete l.cartesian):f=i;for(var m in l){var p=l[m],y=e._fullData[p[0]]._module;y.basePlotModule.plot(e,p,f,u)}},lC(e,i,o)};Nr.transitionFromReact=function(e,r,t,a){var n=e._fullLayout,i=n.transition,o={},l=[];return o.prepareFn=function(){var s=n._plots;o.redraw=!1,r.anim==="some"&&(o.redraw=!0),t.anim==="some"&&(o.redraw=!0);for(var u in s){var f=s[u],c=f.xaxis,h=f.yaxis,d=a[c._name].range.slice(),m=a[h._name].range.slice(),p=c.range.slice(),y=h.range.slice();c.setScale(),h.setScale();var b=null,C=null;(c.r2l(d[0])!==c.r2l(p[0])||c.r2l(d[1])!==c.r2l(p[1]))&&(b={xr0:d,xr1:p}),(h.r2l(m[0])!==h.r2l(y[0])||h.r2l(m[1])!==h.r2l(y[1]))&&(C={yr0:m,yr1:y}),(b||C)&&l.push(et.extendFlat({plotinfo:f},b,C))}return Promise.resolve()},o.runFn=function(s){for(var u=e._fullData,f=e._fullLayout,c=f._basePlotModules,h,d,m,p=[],y=0;y<u.length;y++)p.push(y);function b(){if(e._fullLayout)for(var x=0;x<c.length;x++)c[x].transitionAxes&&c[x].transitionAxes(e,l,h,s)}function C(){if(e._fullLayout)for(var x=0;x<c.length;x++)c[x].plot(e,m,d,s)}l.length&&r.anim?i.ordering==="traces first"?(h=et.extendFlat({},i,{duration:0}),m=p,d=i,setTimeout(b,i.duration),C()):(h=i,m=null,d=et.extendFlat({},i,{duration:0}),setTimeout(C,h.duration),b()):l.length?(h=i,b()):r.anim&&(m=p,d=i,C())},lC(e,i,o)};function lC(e,r,t){var a=!1;function n(c){var h=Promise.resolve();if(!c)return h;for(;c.length;)h=h.then(c.shift());return h}function i(c){if(c)for(;c.length;)c.shift()}function o(){return e.emit("plotly_transitioning",[]),new Promise(function(c){e._transitioning=!0,r.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Jt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!a&&d===h&&l(c)}}t.runFn(m),setTimeout(m())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Jt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Nr.previousPromises,s,t.prepareFn,Nr.rehover,Nr.reselect,o],f=et.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Nr.doCalcdata=function(e,r){var t=ro.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l<a.length;l++)if(Array.isArray(r)&&r.indexOf(l)===-1){s[l]=u[l];continue}for(l=0;l<a.length;l++)i=a[l],i._arrayAttrs=Bee.findArrayAttributes(i),i._extremes={};var f=n._subplots.polar||[];for(l=0;l<f.length;l++)t.push(n[f[l]].radialaxis,n[f[l]].angularaxis);for(var c in n._colorAxes){var h=n[c];h.cauto!==!1&&(delete h.cmin,delete h.cmax)}function d(p,y){if(i=a[p],o=i._module,!!o.isContainer===y){var b=[];i.visible===!0&&i._length!==0&&o&&o.calc&&(b=o.calc(e,i)),(!Array.isArray(b)||!b[0])&&(b=[{x:Qk,y:Qk}]),b[0].t||(b[0].t={}),b[0].trace=i,s[p]=b}}for(tre(t,a,n),l=0;l<a.length;l++)d(l,!0);for(l=0;l<a.length;l++)d(l,!1);aC(e);var m=rre(t,e);if(m.length){for(n._numBoxes=0,n._numViolins=0,l=0;l<m.length;l++)d(m[l],!0);for(l=0;l<m.length;l++)d(m[l],!1);aC(e)}Jt.getComponentMethod("fx","calc")(e),Jt.getComponentMethod("errorbars","calc")(e)};var ere=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function rre(e,r){var t=[],a,n,i,o,l;function s(re,te,ie){var ce=te._id.charAt(0);if(re==="histogram2dcontour"){var Me=te._counterAxes[0],De=ro.getFromId(r,Me),Ie=ce==="x"||Me==="x"&&De.type==="category",Ue=ce==="y"||Me==="y"&&De.type==="category";return function(ke,je){return ke===0||je===0||Ie&&ke===ie[je].length-1||Ue&&je===ie.length-1?-1:(ce==="y"?je:ke)-1}}else return function(ke,je){return ce==="y"?je:ke}}var u={min:function(re){return et.aggNums(Math.min,null,re)},max:function(re){return et.aggNums(Math.max,null,re)},sum:function(re){return et.aggNums(function(te,ie){return te+ie},null,re)},total:function(re){return et.aggNums(function(te,ie){return te+ie},null,re)},mean:function(re){return et.mean(re)},"geometric mean":function(re){return et.geometricMean(re)},median:function(re){return et.median(re)}};function f(re,te){return re[1]-te[1]}function c(re,te){return te[1]-re[1]}for(a=0;a<e.length;a++){var h=e[a];if(h.type==="category"){var d=h.categoryorder.match(ere);if(d){var m=d[1],p=d[2],y=h._id.charAt(0),b=y==="x",C=[];for(n=0;n<h._categories.length;n++)C.push([h._categories[n],[]]);for(n=0;n<h._traceIndices.length;n++){var x=h._traceIndices[n],_=r._fullData[x];if(_.visible===!0){var M=_.type;Jt.traceIs(_,"histogram")&&(delete _._xautoBinFinished,delete _._yautoBinFinished);var T=M==="splom",A=M==="scattergl",E=r.calcdata[x];for(i=0;i<E.length;i++){var P=E[i],z,B;if(T){var X=_._axesDim[h._id];if(!b){var I=_._diag[X][0];I&&(h=r._fullLayout[ro.id2name(I)])}var V=P.trace.dimensions[X].values;for(o=0;o<V.length;o++)for(z=h._categoriesMap[V[o]],l=0;l<P.trace.dimensions.length;l++)if(l!==X){var H=P.trace.dimensions[l];C[z][1].push(H.values[o])}}else if(A){for(o=0;o<P.t.x.length;o++)b?(z=P.t.x[o],B=P.t.y[o]):(z=P.t.y[o],B=P.t.x[o]),C[z][1].push(B);P.t&&P.t._scene&&delete P.t._scene.dirty}else if(P.hasOwnProperty("z")){B=P.z;var Q=s(_.type,h,B);for(o=0;o<B.length;o++)for(l=0;l<B[o].length;l++)z=Q(l,o),z+1&&C[z][1].push(B[o][l])}else{if(z=P.p,z===void 0&&(z=P[y]),isNaN(z)||z<0)continue;for(B=P.s,B===void 0&&(B=P.v),B===void 0&&(B=b?P.y:P.x),Array.isArray(B)||(B===void 0?B=[]:B=[B]),o=0;o<B.length;o++)C[z][1].push(B[o])}}}}h._categoriesValue=C;var oe=[];for(n=0;n<C.length;n++)oe.push([C[n][0],u[m](C[n][1])]);oe.sort(p==="descending"?c:f),h._categoriesAggregatedValue=oe,h._initialCategories=oe.map(function(re){return re[0]}),t=t.concat(h.sortByInitialCategories())}}}return t}function tre(e,r,t){var a={};function n(s){s.clearCalc(),s.type==="multicategory"&&s.setupMultiCategory(r),a[s._id]=1}et.simpleMap(e,n);for(var i=t._axisMatchGroups||[],o=0;o<i.length;o++)for(var l in i[o])a[l]||n(t[ro.id2name(l)])}function aC(e){var r=e._fullLayout,t=r._visibleModules,a={},n,i,o;for(i=0;i<t.length;i++){var l=t[i],s=l.crossTraceCalc;if(s){var u=l.basePlotModule.name;a[u]?et.pushUnique(a[u],s):a[u]=[s]}}for(o in a){var f=a[o],c=r._subplots[o];if(Array.isArray(c))for(n=0;n<c.length;n++){var h=c[n],d=o==="cartesian"?r._plots[h]:r[h];for(i=0;i<f.length;i++)f[i](e,d,h)}else for(i=0;i<f.length;i++)f[i](e)}}Nr.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};Nr.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};Nr.reselect=function(e){var r=e._fullLayout,t=(e.layout||{}).selections,a=r._previousSelections;r._previousSelections=t;var n=r._reselect||JSON.stringify(t)!==JSON.stringify(a);Jt.getComponentMethod("selections","reselect")(e,n)};Nr.generalUpdatePerTraceModule=function(e,r,t,a){var n=r.traceHash,i={},o;for(o=0;o<t.length;o++){var l=t[o],s=l[0].trace;s.visible&&(i[s.type]=i[s.type]||[],i[s.type].push(l))}for(var u in n)if(!i[u]){var f=n[u][0],c=f[0].trace;c.visible=!1,i[u]=[f]}for(var h in i){var d=i[h],m=d[0][0].trace._module;m.plot(e,r,et.filterVisible(d),a)}r.traceHash=i};Nr.plotBasePlot=function(e,r,t,a,n){var i=Jt.getModule(e),o=Yee(r.calcdata,i)[0];i.plot(r,o,a,n)};Nr.cleanBasePlot=function(e,r,t,a,n){var i=n._has&&n._has(e),o=t._has&&t._has(e);i&&!o&&n["_"+e+"layer"].selectAll("g.trace").remove()}});var Jf={};Ha(Jf,{svg:()=>uC,svgAttrs:()=>nre,xlink:()=>fC,xmlns:()=>are});var are,uC,fC,nre,Kf=Ia(()=>{"use strict";are="http://www.w3.org/2000/xmlns/",uC="http://www.w3.org/2000/svg",fC="http://www.w3.org/1999/xlink",nre={xmlns:uC,"xmlns:xlink":fC}});var oi={};Ha(oi,{CAP_SHIFT:()=>ure,FROM_BL:()=>ire,FROM_BR:()=>lre,FROM_TL:()=>ore,LINE_SPACING:()=>sre,MID_SHIFT:()=>fre,OPPOSITE_SIDE:()=>cre});var ire,ore,lre,sre,ure,fre,cre,li=Ia(()=>{"use strict";ire={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},ore={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},lre={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},sre=1.3,ure=.7,fre=.35,cre={left:"right",right:"left",top:"bottom",bottom:"top"}});var si=le(bo=>{"use strict";var Dn=Ft(),jo=mr(),vre=jo.strTranslate,Z5=(Kf(),Tr(Jf)),hre=(li(),Tr(oi)).LINE_SPACING,dre=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,mC=e=>e?e.match(dre):null;bo.matchTex=mC;bo.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&mC(a);n&&!yre()&&(n=null);var i=Dn.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=Sre(e.node(),a);s&&e.style("pointer-events","all"),bo.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");bre(n[2],f,function(h,d,m){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=h&&h.select("svg");if(!p||!p.node()){l(),s();return}e.style("display","none");var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(p.node()),d&&d.node()&&p.node().insertBefore(d.node().cloneNode(!0),p.node().firstChild);var b=m.width,C=m.height;p.attr({class:o,height:C,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var x=e.node().style.fill||"black",_=p.select("g");_.attr({fill:x,stroke:x});var M=_.node().getBoundingClientRect(),T=M.width,A=M.height;(T>b||A>C)&&(p.style("overflow","hidden"),M=p.node().getBoundingClientRect(),T=M.width,A=M.height);var E=+e.attr("x"),P=+e.attr("y"),z=u||e.node().getBoundingClientRect().height,B=-z/4;o[0]==="y"?y.attr({transform:"rotate("+[-90,E,P]+")"+vre(-T/2,B-A/2)}):o[0]==="l"?P=B-A/2:o[0]==="a"&&o.indexOf("atitle")!==0?(E=0,P=B):(E=E-T*(c==="middle"?.5:c==="end"?1:0),P=P+B-A/2),p.attr({x:E,y:P}),t&&t.call(e,y),s(y)})})):l(),e};var pre=/(<|<|<)/g,mre=/(>|>|>)/g;function gre(e){return e.replace(pre,"\\lt ").replace(mre,"\\gt ")}var $5=null,gC=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,cC=!1,vC=!1;function yre(){let e=gC();return e===3||e===4?!0:(e===null?cC||(cC=!0,jo.warn("MathJax is not loaded. Math equations will not be rendered.")):vC||(vC=!0,jo.warn("Unsupported MathJax version:",MathJax.version)),!1)}function bre(e,r,t){let a=gC();var n;let i=function(){if(!$5){let u=MathJax._.output.svg_ts.SVG,f=jo.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=jo.extendFlat({},f.linebreaks,{inline:!1})),$5=MathJax._.mathjax.mathjax.document(document,jo.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+jo.randstr({},64);n=Dn.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=gre(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return $5.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let l=n.select(".MathJax"),s=!l.empty()&&n.select("svg").node();if(!s)jo.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=l.select("defs");t(l,f,u)}n.remove()};Promise.resolve().then(i).then(o).catch(l=>{jo.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var yC={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},_re={sub:"0.3em",sup:"-0.6em"},xre={sub:"-0.21em",sup:"0.42em"},hC="\u200B",dC=["http:","https:","mailto:","",void 0,":"],bC=bo.NEWLINES=/(\r\n?|\n)/g,K5=/(<[^<>]*>)/,Q5=/<(\/?)([^ >]*)(\s+(.*))?>/i,wre=/<br(\s+.*)?>/i;bo.BR_TAG_ALL=/<br(\s+.*)?>/gi;var _C=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,xC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,wC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Are=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Qf(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Xp(a)}var Mre=/(^|;)\s*color:/;bo.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(K5),l=[],s="",u=0,f=0;f<o.length;f++){var c=o[f],h=c.match(Q5),d=h&&h[2].toLowerCase();if(d)a.indexOf(d)!==-1&&(l.push(c),s=d);else{var m=c.length;if(u+m<t)l.push(c),u+=m;else if(u<t){var p=t-u;s&&(s!=="br"||p<=i||m<=i)&&l.pop(),t>i?l.push(c.slice(0,Math.max(0,p-i))+n):l.push(c.slice(0,p));break}s=""}}return l.join("")};var Tre={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},kre=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Xp(e){return e.replace(kre,function(r,t){var a;return t.charAt(0)==="#"?a=Cre(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Tre[t],a||r})}bo.convertEntities=Xp;function Cre(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function Sre(e,r){r=r.replace(bC," ");var t=!1,a=[],n,i=-1;function o(){i++;var T=document.createElementNS(Z5.svg,"tspan");Dn.select(T).attr({class:"line",dy:i*hre+"em"}),e.appendChild(T),n=T;var A=a;if(a=[{node:T}],A.length>1)for(var E=1;E<A.length;E++)l(A[E])}function l(T){var A=T.type,E={},P;if(A==="a"){P="a";var z=T.target,B=T.href,X=T.popup;B&&(E={"xlink:xlink:show":z==="_blank"||z.charAt(0)!=="_"?"new":"replace",target:z,"xlink:xlink:href":B},X&&(E.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+X+'");return false;'))}else P="tspan";T.style&&(E.style=T.style);var I=document.createElementNS(Z5.svg,P);if(A==="sup"||A==="sub"){s(n,hC),n.appendChild(I);var V=document.createElementNS(Z5.svg,"tspan");s(V,hC),Dn.select(V).attr("dy",xre[A]),E.dy=_re[A],n.appendChild(I),n.appendChild(V)}else n.appendChild(I);Dn.select(I).attr(E),n=T.node=I,a.push(T)}function s(T,A){T.appendChild(document.createTextNode(A))}function u(T){if(a.length===1){jo.log("Ignoring unexpected end tag </"+T+">.",r);return}var A=a.pop();T!==A.type&&jo.log("Start tag <"+A.type+"> doesnt match end tag <"+T+">. Pretending it did match.",r),n=a[a.length-1].node}var f=wre.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(K5),h=0;h<c.length;h++){var d=c[h],m=d.match(Q5),p=m&&m[2].toLowerCase(),y=yC[p];if(p==="br")o();else if(y===void 0)s(n,Xp(d));else if(m[1])u(p);else{var b=m[4],C={type:p},x=Qf(b,_C);if(x?(x=x.replace(Mre,"$1 fill:"),y&&(x+=";"+y)):y&&(x=y),x&&(C.style=x),p==="a"){t=!0;var _=Qf(b,xC);if(_){var M=AC(_);M&&(C.href=M,C.target=Qf(b,wC)||"_blank",C.popup=Qf(b,Are))}}l(C)}}return t}function AC(e){var r=encodeURI(decodeURI(e)),t=document.createElement("a"),a=document.createElement("a");t.href=e,a.href=r;var n=t.protocol,i=a.protocol;return dC.indexOf(n)!==-1&&dC.indexOf(i)!==-1?r:""}bo.sanitizeHTML=function(r){r=r.replace(bC," ");for(var t=document.createElement("p"),a=t,n=[],i=r.split(K5),o=0;o<i.length;o++){var l=i[o],s=l.match(Q5),u=s&&s[2].toLowerCase();if(u in yC)if(s[1])n.length&&(a=n.pop());else{var f=s[4],c=Qf(f,_C),h=c?{style:c}:{};if(u==="a"){var d=Qf(f,xC);if(d){var m=AC(d);if(m){h.href=m;var p=Qf(f,wC);p&&(h.target=p)}}}var y=document.createElement(u);a.appendChild(y),Dn.select(y).attr(h),a=y,n.push(y)}else a.appendChild(document.createTextNode(Xp(l)))}var b="innerHTML";return t[b]};bo.lineCount=function(r){return r.selectAll("tspan.line").size()||1};bo.positionText=function(r,t,a){return r.each(function(){var n=Dn.select(this);function i(s,u){return u===void 0?(u=n.attr(s),u===null&&(n.attr(s,0),u=0)):n.attr(s,u),u}var o=i("x",t),l=i("y",a);this.nodeName==="text"&&n.selectAll("tspan.line").attr({x:o,y:l})})};function pC(e,r,t){var a=t.horizontalAlign,n=t.verticalAlign||"top",i=e.node().getBoundingClientRect(),o=r.node().getBoundingClientRect(),l,s,u;return n==="bottom"?s=function(){return i.bottom-l.height}:n==="middle"?s=function(){return i.top+(i.height-l.height)/2}:s=function(){return i.top},a==="right"?u=function(){return i.right-l.width}:a==="center"?u=function(){return i.left+(i.width-l.width)/2}:u=function(){return i.left},function(){l=this.node().getBoundingClientRect();var f=u()-o.left,c=s()-o.top,h=t.gd||{};if(t.gd){h._fullLayout._calcInverseTransform(h);var d=jo.apply3DTransform(h._fullLayout._invTransform)(f,c);f=d[0],c=d[1]}return this.style({top:c+"px",left:f+"px","z-index":1e3}),this}}var J5="1px ";bo.makeTextShadow=function(e){var r=J5,t=J5,a=J5;return r+t+a+e+", -"+r+"-"+t+a+e+", "+r+"-"+t+a+e+", -"+r+t+a+e};bo.makeEditable=function(e,r){var t=r.gd,a=r.delegate,n=Dn.dispatch("edit","input","cancel"),i=a||e;if(e.style({"pointer-events":a?"none":"all"}),e.size()!==1)throw new Error("boo");function o(){s(),e.style({opacity:0});var u=i.attr("class"),f;u?f="."+u.split(" ")[0]+"-math-group":f="[class*=-math-group]",f&&Dn.select(e.node().parentNode).select(f).style({opacity:0})}function l(u){var f=u.node(),c=document.createRange();c.selectNodeContents(f);var h=window.getSelection();h.removeAllRanges(),h.addRange(c),f.focus()}function s(){var u=Dn.select(t),f=u.select(".svg-container"),c=f.append("div"),h=e.node().style,d=parseFloat(h.fontSize||12),m=r.text;m===void 0&&(m=e.attr("data-unformatted")),c.classed("plugin-editable editable",!0).style({position:"absolute","font-family":h.fontFamily||"Arial","font-size":d,color:r.fill||h.fill||"black",opacity:1,"background-color":r.background||"transparent",outline:"#ffffff33 1px solid",margin:[-d/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(m).call(pC(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var p=Dn.select(this).attr("class"),y;p?y="."+p.split(" ")[0]+"-math-group":y="[class*=-math-group]",y&&Dn.select(e.node().parentNode).select(y).style({opacity:0});var b=this.textContent;Dn.select(this).transition().duration(0).remove(),Dn.select(document).on("mouseup",null),n.edit.call(e,b)}).on("focus",function(){var p=this;t._editing=!0,Dn.select(document).on("mouseup",function(){if(Dn.event.target===p)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){Dn.event.which===27?(t._editing=!1,e.style({opacity:1}),Dn.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),n.cancel.call(e,this.textContent)):(n.input.call(e,this.textContent),Dn.select(this).call(pC(e,f,r)))}).on("keydown",function(){Dn.event.which===13&&this.blur()}).call(l)}return r.immediate?o():i.on("click",o),Dn.rebind(e,n,"on")}});var Ds=le((c6e,DC)=>{"use strict";var Dre=Ft(),Bv=Wt(),jp=mr(),ec=qt(),Fre=Of().isValid;function Ere(e,r,t){var a=r?jp.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(jp.isArrayOrTypedArray(n)){for(var o=0;o<n.length;o++)if(Bv(n[o])){i=!0;break}}return jp.isPlainObject(a)&&(i||a.showscale===!0||Bv(a.cmin)&&Bv(a.cmax)||Fre(a.colorscale)||jp.isPlainObject(a.colorbar))}var MC=["showscale","autocolorscale","colorscale","reversescale","colorbar"],Nv=["min","max","mid","auto"];function TC(e){var r=e._colorAx,t=r||e,a={},n,i,o;for(i=0;i<MC.length;i++)o=MC[i],a[o]=t[o];if(r)for(n="c",i=0;i<Nv.length;i++)o=Nv[i],a[o]=t["c"+o];else{var l;for(i=0;i<Nv.length;i++){if(o=Nv[i],l="c"+o,l in t){a[o]=t[l];continue}l="z"+o,l in t&&(a[o]=t[l])}n=l.charAt(0)}return a._sync=function(s,u){var f=Nv.indexOf(s)!==-1?n+s:s;t[f]=t["_"+f]=u},a}function kC(e){for(var r=TC(e),t=r.min,a=r.max,n=r.reversescale?CC(r.colorscale):r.colorscale,i=n.length,o=new Array(i),l=new Array(i),s=0;s<i;s++){var u=n[s];o[s]=t+u[0]*(a-t),l[s]=u[1]}return{domain:o,range:l}}function CC(e){for(var r=e.length,t=new Array(r),a=r-1,n=0;a>=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function SC(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o<n;o++)i[o]=ec.rgbaArray(a[o]);var l=Dre.scale.linear().domain(t).range(i).clamp(!0),s=r.noNumericCheck,u=r.returnArray,f;return s&&u?f=l:s?f=function(c){return ec.rgbaArrayToString(l(c))}:u?f=function(c){return Bv(c)?l(c):ec.isValid(c)?c:ec.defaultLine}:f=function(c){return Bv(c)?ec.rgbaArrayToString(l(c)):ec.isValid(c)?c:ec.defaultLine},f.domain=l.domain,f.range=function(){return a},f}function Lre(e,r){return SC(kC(e),r)}DC.exports={hasColorscale:Ere,extractOpts:TC,extractScale:kC,flipScale:CC,makeColorScaleFunc:SC,makeColorScaleFuncFromTrace:Lre}});var r6=le((v6e,LC)=>{"use strict";var FC=(b5(),Tr(y5)),qre=FC.FORMAT_LINK,Pre=FC.DATE_FORMAT_LINK;function Rre(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?e6:EC)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function e6(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+qre+"."].join(" ")}function EC(e,r){return e6(e,r)+[" And for dates see: "+Pre+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}LC.exports={axisHoverFormat:Rre,descriptionOnlyNumbers:e6,descriptionWithDates:EC}});var Ol=le((d6e,ZC)=>{"use strict";var qC=gi(),U1=zl(),WC=Cs().dash,a6=Tn().extendFlat,PC=ka().templatedArray,h6e=Gf().templateFormatStringDescription,RC=r6().descriptionWithDates,zre=(Ya(),Tr($a)).ONEDAY,Fs=(Nn(),Tr(zn)),Nre=Fs.HOUR_PATTERN,Bre=Fs.WEEKDAY_PATTERN,t6={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Ire=a6({},t6,{values:t6.values.slice().concat(["sync"])});function zC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var NC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},BC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},IC={valType:"data_array",editType:"ticks"},HC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function OC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function UC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var GC={valType:"color",dflt:U1.defaultLine,editType:"ticks"},YC={valType:"color",dflt:U1.lightLine,editType:"ticks"};function VC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var XC=a6({},WC,{editType:"ticks"}),jC={valType:"boolean",editType:"ticks"};ZC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:U1.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:qC({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Fs.idRegex.x.toString(),Fs.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Fs.idRegex.x.toString(),Fs.idRegex.y.toString()],editType:"calc"},rangebreaks:PC("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Bre,Nre,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:zre},editType:"calc"}),tickmode:Ire,nticks:zC(),tick0:NC,dtick:BC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:IC,ticktext:{valType:"data_array",editType:"ticks"},ticks:HC,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:OC(),tickwidth:UC(),tickcolor:GC,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:a6({},WC,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:qC({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:RC("tick label")},tickformatstops:PC("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:RC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:U1.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:jC,gridcolor:YC,gridwidth:VC(),griddash:XC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:U1.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:U1.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Fs.idRegex.x.toString(),Fs.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Fs.idRegex.x.toString(),Fs.idRegex.y.toString()],editType:"plot"},minor:{tickmode:t6,nticks:zC("minor"),tick0:NC,dtick:BC,tickvals:IC,ticks:HC,ticklen:OC("minor"),tickwidth:UC("minor"),tickcolor:GC,gridcolor:YC,gridwidth:VC("minor"),griddash:XC,showgrid:jC,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Wp=le((p6e,JC)=>{"use strict";var Pa=Ol(),$C=gi(),n6=Tn().extendFlat,Hre=Yo().overrideAll;JC.exports=Hre({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Pa.linecolor,outlinewidth:Pa.linewidth,bordercolor:Pa.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Pa.minor.tickmode,nticks:Pa.nticks,tick0:Pa.tick0,dtick:n6({},Pa.dtick,{}),tickvals:Pa.tickvals,ticktext:Pa.ticktext,ticks:n6({},Pa.ticks,{dflt:""}),ticklabeloverflow:n6({},Pa.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Pa.ticklen,tickwidth:Pa.tickwidth,tickcolor:Pa.tickcolor,ticklabelstep:Pa.ticklabelstep,showticklabels:Pa.showticklabels,labelalias:Pa.labelalias,tickfont:$C({description:"Sets the color bar's tick label font"}),tickangle:Pa.tickangle,tickformat:Pa.tickformat,tickformatstops:Pa.tickformatstops,tickprefix:Pa.tickprefix,showtickprefix:Pa.showtickprefix,ticksuffix:Pa.ticksuffix,showticksuffix:Pa.showticksuffix,separatethousands:Pa.separatethousands,exponentformat:Pa.exponentformat,minexponent:Pa.minexponent,showexponent:Pa.showexponent,title:{text:{valType:"string"},font:$C({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var G1=le((g6e,QC)=>{"use strict";var Ore=Wp(),Ure=(k1(),Tr(Mv)).counter,Gre=(Tp(),Tr(Mp)).default,KC=Of().scales,m6e=Gre(KC);function Zp(e){return"`"+e+"`"}QC.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?KC[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+Zp(u+f));var h=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",m=a+"min",p=a+"max",y=a+"mid",b=Zp(u+d),C=Zp(u+m),x=Zp(u+p),_=C+" and "+x,M={};M[m]=M[p]=void 0;var T={};T[d]=!1;var A={};return f==="color"&&(A.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(A.color.anim=!0)),A[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},A[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:T},A[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:T},A[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},A.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(A.showscale={valType:"boolean",dflt:o,editType:"calc"},A.colorbar=Ore),t.noColorAxis||(A.coloraxis={valType:"subplotid",regex:Ure("coloraxis"),dflt:null,editType:"calc"}),A}});var o6=le((y6e,eS)=>{"use strict";var Yre=Tn().extendFlat,Vre=G1(),i6=Of().scales;eS.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:i6.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:i6.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:i6.RdBu,editType:"calc"}},coloraxis:Yre({_isSubplotObj:!0,editType:"calc"},Vre("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var l6=le((b6e,rS)=>{"use strict";var Xre=mr();rS.exports=function(r){return Xre.isPlainObject(r.colorbar)}});var f6=le(u6=>{"use strict";var s6=Wt(),tS=mr(),aS=(Ya(),Tr($a)),jre=aS.ONEDAY,Wre=aS.ONEWEEK;u6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?jre:1;if(!e)return i;if(s6(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=s6(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};u6.tick0=function(e,r,t,a){if(r==="date")return tS.cleanDate(e,tS.dateTick0(t,a%Wre===0?1:0));if(!(a==="D1"||a==="D2"))return s6(e)?Number(e):0}});var c6=le((x6e,iS)=>{"use strict";var nS=f6(),Zre=mr().isArrayOrTypedArray,$re=$i().isTypedArraySpec,Jre=$i().decodeTypedArraySpec;iS.exports=function(r,t,a,n,i={}){var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(_){var M=l[_];return $re(M)&&(M=Jre(M)),M!==void 0?M:(s._template||{})[_]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),m=f("overlaying"),p=n==="category"||n==="multicategory",y;Zre(d)?y="array":h?y="linear":m&&!p?y="sync":y="auto";var b=a(u+"tickmode",y);if(b==="auto"||b==="sync")a(u+"nticks");else if(b==="linear"){var C=s.dtick=nS.dtick(h,n);s.tick0=nS.tick0(c,n,t.calendar,C)}else if(n!=="multicategory"){var x=a(u+"tickvals");x===void 0?s.tickmode="auto":o||a("ticktext")}}});var h6=le((w6e,lS)=>{"use strict";var v6=mr(),oS=Ol();lS.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?oS.minor:oS,u=i?"minor.":"",f=v6.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=v6.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),h=v6.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||h?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var d6=le((A6e,sS)=>{"use strict";sS.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var Ul=le((M6e,uS)=>{"use strict";var $p=mr(),Kre=ka();uS.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=$p.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Kre.arrayTemplater(t,n,i),f,c;for(f=0;f<l.length;f++){var h=l[f];$p.isPlainObject(h)?c=u.newItem(h):(c=u.newItem({}),c[i]=!1),c._index=f,c[i]!==!1&&a.handleItemDefaults(h,c,t,a),s.push(c)}var d=u.defaultItems();for(f=0;f<d.length;f++)c=d[f],c._index=s.length,a.handleItemDefaults({},c,t,a,{}),s.push(c);if($p.isArrayOrTypedArray(o)){var m=Math.min(o.length,s.length);for(f=0;f<m;f++)$p.relinkPrivateKeys(s[f],o[f])}return s}});var m6=le((T6e,cS)=>{"use strict";var p6=mr(),Qre=qt().contrast,fS=Ol(),ete=d6(),rte=Ul();cS.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");p6.isPlainObject(o)||delete t.labelalias;var l=ete(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",h=c.indexOf("inside")!==-1?Qre(i.bgColor):f&&f!==fS.color.dflt?f:u.color;if(p6.coerceFont(a,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var m=a("tickformat");rte(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:tte}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function tte(e,r){function t(n,i){return p6.coerce(e,r,fS.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var g6=le((k6e,vS)=>{"use strict";var ate=d6();vS.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=ate(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var y6=le((C6e,hS)=>{"use strict";var k0=mr(),nte=ka(),ite=c6(),ote=h6(),lte=m6(),ste=g6(),ute=Wp();hS.exports=function(r,t,a){var n=nte.newContainer(t,"colorbar"),i=r.colorbar||{};function o(B,X){return k0.coerce(i,n,ute,B,X)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var m=o("yref"),p=o("xref"),y=m==="paper",b=p==="paper",C,x,_,M="left";c?(_="middle",M=b?"left":"right",C=b?1.02:1,x=.5):(_=y?"bottom":"top",M="center",C=.5,x=y?1.02:1),k0.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:C}},"x"),k0.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:x}},"y"),o("xanchor",M),o("xpad"),o("yanchor",_),o("ypad"),k0.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var T=k0.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",T.indexOf("inside")!==-1?"hide past domain":"hide past div"),ite(i,n,o,"linear");var A=a.font,E={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};T.indexOf("inside")!==-1&&(E.bgColor="black"),ste(i,n,o,"linear",E),lte(i,n,o,"linear",E),ote(i,n,o,"linear",E),o("title.text",a._dfltTitle.colorbar);var P=n.showticklabels?n.tickfont:A,z=k0.extendFlat({},A,{family:P.family,size:k0.bigFont(P.size)});k0.coerceFont(o,"title.font",z),o("title.side",c?"top":"right")}});var Y1=le((S6e,mS)=>{"use strict";var dS=Wt(),_6=mr(),fte=l6(),cte=y6(),pS=Of().isValid,vte=_t().traceIs;function b6(e,r){var t=r.slice(0,r.length-1);return r?_6.nestedProperty(e,t).get()||{}:e}mS.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=b6(r,o),f=b6(t,o),c=b6(t._template||{},o)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},m=n(o+"coloraxis");if(m){var p=vte(t,"contour")&&_6.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[m];y?(y[2].push(h),y[0]!==p&&(y[0]=!1,_6.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[p,t,[h]];return}}var b=u[l+"min"],C=u[l+"max"],x=dS(b)&&dS(C)&&b<C,_=n(o+l+"auto",!x);_?n(o+l+"mid"):(n(o+l+"min"),n(o+l+"max"));var M=u.colorscale,T=c.colorscale,A;if(M!==void 0&&(A=!pS(M)),T!==void 0&&(A=!pS(T)),n(o+"autocolorscale",A),n(o+"colorscale"),n(o+"reversescale"),o!=="marker.line."){var E;o&&s&&(E=fte(u));var P=n(o+"showscale",E);P&&(o&&c&&(f._template=c),cte(u,f,a))}}});var _S=le((D6e,bS)=>{"use strict";var gS=mr(),hte=ka(),yS=o6(),dte=Y1();bS.exports=function(r,t){function a(c,h){return gS.coerce(r,t,yS,c,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,h){return gS.coerce(i,o,yS.coloraxis,c,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=hte.newContainer(t,s,"coloraxis"),o._name=s,dte(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f<u[2].length;f++)u[2][f]();delete t._colorAxes[s]}}}});var wS=le((F6e,xS)=>{"use strict";var pte=mr(),mte=Ds().hasColorscale,gte=Ds().extractOpts;xS.exports=function(r,t){function a(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function n(f,c){var h=c.container?pte.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=gte(h),m=d.auto;(m||d.min===void 0)&&a(h,c.min),(m||d.max===void 0)&&a(h,c.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i<r.length;i++){var o=r[i],l=o._module.colorbar;if(l)if(Array.isArray(l))for(var s=0;s<l.length;s++)n(o,l[s]);else n(o,l);mte(o,"marker.line")&&n(o,{container:"marker.line",min:"cmin",max:"cmax"})}for(var u in t._colorAxes)n(t[u],{min:"cmin",max:"cmax"})}});var Jp=le((E6e,MS)=>{"use strict";var AS=Wt(),x6=mr(),yte=Ds().extractOpts;MS.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?x6.nestedProperty(t,o).get():t,s=yte(l),u=s.auto!==!1,f=s.min,c=s.max,h=s.mid,d=function(){return x6.aggNums(Math.min,null,i)},m=function(){return x6.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&AS(f)?f=Math.min(f,d()):f=d()),c===void 0?c=m():u&&(l._colorAx&&AS(c)?c=Math.max(c,m()):c=m()),u&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h<h-f&&(c=h+(h-f))),f===c&&(f-=.5,c+=.5),s._sync("min",f),s._sync("max",c),s.autocolorscale){var p;f*c<0?p=n.colorscale.diverging:f>=0?p=n.colorscale.sequential:p=n.colorscale.sequentialminus,s._sync("colorscale",p)}}});var Qp=le((L6e,TS)=>{"use strict";var Kp=Of(),V1=Ds();TS.exports={moduleType:"component",name:"colorscale",attributes:G1(),layoutAttributes:o6(),supplyLayoutDefaults:_S(),handleDefaults:Y1(),crossTraceDefaults:wS(),calc:Jp(),scales:Kp.scales,defaultScale:Kp.defaultScale,getScale:Kp.get,isValidScale:Kp.isValid,hasColorscale:V1.hasColorscale,extractOpts:V1.extractOpts,extractScale:V1.extractScale,flipScale:V1.flipScale,makeColorScaleFunc:V1.makeColorScaleFunc,makeColorScaleFuncFromTrace:V1.makeColorScaleFuncFromTrace}});var _i=le((q6e,CS)=>{"use strict";var kS=mr(),bte=$i().isTypedArraySpec;CS.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return kS.isPlainObject(r)&&(kS.isArrayOrTypedArray(r.size)||bte(r.size))}}});var DS=le((P6e,SS)=>{"use strict";var _te=Wt();SS.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return _te(s)&&s>0?Math.max(s,i):0}}});var Pu=le(ei=>{"use strict";var Iv=mr();ei.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};ei.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n<t.length;n++)for(var i=0;i<a.length;i++)if(r.indexOf(t[n]+a[i])!==-1)return!0;return!1}return r.indexOf(ei.getSubplot(e))!==-1};ei.flat=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=r;return t};ei.p2c=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=e[a].p2c(r);return t};ei.c2dApply=function(e,r){e.length!==r.length&&Iv.warn("c2dApply: axArray and valArray must be the same length");for(var t=new Array(r.length),a=0;a<r.length;a++){var n=e&&e[a];t[a]=n&&n.c2d?n.c2d(r[a]):r[a]}return t};ei.getDistanceFunction=function(e,r,t,a){return e==="closest"?a||ei.quadrature(r,t):e.charAt(0)==="x"?r:t};ei.getClosest=function(e,r,t){if(t.index!==!1)t.index>=0&&t.index<e.length?t.distance=0:t.index=!1;else for(var a=1/0,n=e.length,i=0;i<n;i++)a=r(e[i]),a<=t.distance&&(t.index=i,t.distance=a);return t};ei.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};ei.quadrature=function(e,r){return function(t){var a=e(t),n=r(t);return Math.sqrt(a*a+n*n)}};ei.makeEventData=function(e,r,t){var a="index"in e?e.index:e.pointNumber,n={data:r._input,fullData:r,curveNumber:r.index,pointNumber:a};return n.pointIndex=a,r._module.eventData?n=r._module.eventData(n,e,r,t,a):("xVal"in e?n.x=e.xVal:"x"in e&&(n.x=e.x),"yVal"in e?n.y=e.yVal:"y"in e&&(n.y=e.y),e.xa&&(n.xaxis=e.xa),e.ya&&(n.yaxis=e.ya),e.zLabelVal!==void 0&&(n.z=e.zLabelVal)),ei.appendArrayPointValue(n,r,a),n};ei.appendArrayPointValue=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=FS(i);if(e[o]===void 0){var l=Iv.nestedProperty(r,i).get(),s=ES(l,t);s!==void 0&&(e[o]=s)}}};ei.appendArrayMultiPointValues=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=FS(i);if(e[o]===void 0){for(var l=Iv.nestedProperty(r,i).get(),s=new Array(t.length),u=0;u<t.length;u++)s[u]=ES(l,t[u]);e[o]=s}}};var xte={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function FS(e){return xte[e]||e}function ES(e,r){if(Array.isArray(r)){if(Iv.isArrayOrTypedArray(e)&&Iv.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var wte={x:!0,y:!0},Ate={"x unified":!0,"y unified":!0};ei.isUnifiedHover=function(e){return typeof e!="string"?!1:!!Ate[e]};ei.isXYhover=function(e){return typeof e!="string"?!1:!!wte[e]}});var A6=le((z6e,LS)=>{var w6={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Mte=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Tte=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function kte(e){let r=[];return e.replace(Mte,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=Cte(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===w6[i])return r.push([o,...l]),"";if(l.length<w6[i])throw new Error("malformed path data");r.push([o,...l.splice(0,w6[i])])}}),r}function Cte(e){let r=e.match(Tte);return r?r.map(Number):[]}LS.exports=kte});var IS=le((N6e,BS)=>{"use strict";var Ste=A6(),Dr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},wt="M0,0Z",qS=Math.sqrt(2),C0=Math.sqrt(3),M6=Math.PI,T6=Math.cos,k6=Math.sin;BS.exports={circle:{n:0,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Mt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.3,2);return Mt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.4,2),n=Dr(e*1.2,2);return Mt(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.8/qS,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Mt(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2/C0,2),n=Dr(e/2,2),i=Dr(e,2);return Mt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2/C0,2),n=Dr(e/2,2),i=Dr(e,2);return Mt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2/C0,2),n=Dr(e/2,2),i=Dr(e,2);return Mt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2/C0,2),n=Dr(e/2,2),i=Dr(e,2);return Mt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return Mt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return Mt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return Mt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return Mt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.951,2),n=Dr(e*.588,2),i=Dr(-e,2),o=Dr(e*-.309,2),l=Dr(e*.809,2);return Mt(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e/2,2),i=Dr(e*C0/2,2);return Mt(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e/2,2),i=Dr(e*C0/2,2);return Mt(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.924,2),n=Dr(e*.383,2);return Mt(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(At(r))return wt;var a=e*1.4,n=Dr(a*.225,2),i=Dr(a*.951,2),o=Dr(a*.363,2),l=Dr(a*.588,2),s=Dr(-a,2),u=Dr(a*-.309,2),f=Dr(a*.118,2),c=Dr(a*.809,2),h=Dr(a*.382,2);return Mt(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+h+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.66,2),n=Dr(e*.38,2),i=Dr(e*.76,2);return Mt(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*C0*.8,2),n=Dr(e*.8,2),i=Dr(e*1.6,2),o=Dr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Mt(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*C0*.8,2),n=Dr(e*.8,2),i=Dr(e*1.6,2),o=Dr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Mt(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.1,2),n=Dr(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Mt(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.4,2),n=Dr(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Mt(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.7,2),n=Dr(e*1.4,2);return Mt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.4,2),n=Dr(e*.7,2);return Mt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e/qS,2);return Mt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.3,2);return Mt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.3,2),n=Dr(e*.65,2);return Mt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.4,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.2,2),n=Dr(e*.85,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(At(r))return wt;var a=Dr(e/2,2),n=Dr(e,2);return Mt(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return Mt(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return Mt(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return Mt(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return Mt(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.4,2);return Mt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.4,2);return Mt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e*2,2);return Mt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e*2,2);return Mt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2,2),n=Dr(e,2);return Mt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2,2),n=Dr(e,2);return Mt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e*2,2);return Mt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e*2,2);return Mt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2,2),n=Dr(e,2);return Mt(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2,2),n=Dr(e,2);return Mt(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(At(r))return wt;var a=M6/2.5,n=2*e*T6(a),i=2*e*k6(a);return Mt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(At(r))return wt;var a=M6/4,n=2*e*T6(a),i=2*e*k6(a);return Mt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function At(e){return e===null}var PS,RS,zS,NS;function Mt(e,r,t){if((!e||e%360===0)&&!r)return t;if(zS===e&&NS===r&&PS===t)return RS;zS=e,NS=r,PS=t;function a(y,b){var C=T6(y),x=k6(y),_=b[0],M=b[1]+(r||0);return[_*C-M*x,_*x+M*C]}for(var n=e/180*M6,i=0,o=0,l=Ste(t),s="",u=0;u<l.length;u++){var f=l[u],c=f[0],h=i,d=o;if(c==="M"||c==="L")i=+f[1],o=+f[2];else if(c==="m"||c==="l")i+=+f[1],o+=+f[2];else if(c==="H")i=+f[1];else if(c==="h")i+=+f[1];else if(c==="V")o=+f[1];else if(c==="v")o+=+f[1];else if(c==="A"){i=+f[1],o=+f[2];var m=a(n,[+f[6],+f[7]]);f[6]=m[0],f[7]=m[1],f[3]=+f[3]+e}(c==="H"||c==="V")&&(c="L"),(c==="h"||c==="v")&&(c="l"),(c==="m"||c==="l")&&(i-=h,o-=d);var p=a(n,[i,o]);(c==="H"||c==="V")&&(c="L"),(c==="M"||c==="L"||c==="m"||c==="l")&&(f[1]=p[0],f[2]=p[1]),f[0]=c,s+=f[0]+f.slice(1).join(",")}return RS=s,s}});var ha=le((B6e,iD)=>{"use strict";var Bn=Ft(),va=mr(),Dte=va.numberFormat,S0=Wt(),rm=_t(),Fn=qt(),Fte=Qp(),Ov=va.strTranslate,tm=si(),Ete=(Kf(),Tr(Jf)),Lte=(li(),Tr(oi)),qte=Lte.LINE_SPACING,ZS=(fp(),Tr(up)).DESELECTDIM,Pte=_i(),Rte=DS(),zte=Pu().appendArrayPointValue,zr={};iD.exports=zr;zr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Fn.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",C6(Bte(f))),s&&e.style("text-shadow",s==="auto"?tm.makeTextShadow(Fn.contrast(i)):C6(s)),u&&e.style("text-decoration-line",C6(Ite(u)))};function C6(e){return e==="none"?void 0:e}var Nte={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Bte(e){return Nte[e]}function Ite(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}zr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};zr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};zr.setRect=function(e,r,t,a,n){e.call(zr.setPosition,r,t).call(zr.setSize,a,n)};zr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(S0(n)&&S0(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Ov(n,i));else return!1;return!0};zr.translatePoints=function(e,r,t){e.each(function(a){var n=Bn.select(this);zr.translatePoint(a,n,r,t)})};zr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};zr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=rm.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){zr.hideOutsideRangePoint(u,Bn.select(this),t,a,o,l)})})}};zr.crispRound=function(e,r,t){return!r||!S0(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};zr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Fn.stroke(r,a||i.color),zr.dashLine(r,l,o)};zr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";Bn.select(this).call(Fn.stroke,t||i.color).call(zr.dashLine,l,o)})};zr.dashLine=function(e,r,t){t=+t||0,r=zr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};zr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function $S(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=zr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),h=o(n.solidity,0,.3),d=r.uid;zr.pattern(e,"point",t,d,l,c,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,p="scatterfill-"+r.uid;if(a&&(p="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,b;m==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):m==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(QS,t,p,"linear",i.colorscale,"fill",y,b,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(zr.gradient,t,p,m,i.colorscale,"fill")}else r.fillcolor&&e.call(Fn.fill,r.fillcolor)}zr.singleFillStyle=function(e,r){var t=Bn.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};$S(e,n,r,!1)};zr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Bn.select(this);a[0].trace&&$S(n,a[0].trace,r,t)})};var HS=IS();zr.symbolNames=[];zr.symbolFuncs=[];zr.symbolBackOffs=[];zr.symbolNeedLines={};zr.symbolNoDot={};zr.symbolNoFill={};zr.symbolList=[];Object.keys(HS).forEach(function(e){var r=HS[e],t=r.n;zr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),zr.symbolNames[t]=e,zr.symbolFuncs[t]=r.f,zr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(zr.symbolNeedLines[t]=!0),r.noDot?zr.symbolNoDot[t]=!0:zr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(zr.symbolNoFill[t]=!0)});var Hte=zr.symbolNames.length,Ote="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";zr.symbolNumber=function(e){if(S0(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=zr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Hte||e>=400?0:Math.floor(Math.max(e,0))};function JS(e,r,t,a){var n=e%100;return zr.symbolFuncs[n](r,t,a)+(e>=200?Ote:"")}var OS=Dte("~f"),KS={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};zr.gradient=function(e,r,t,a,n,i){var o=KS[a];return QS(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function QS(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d<f;d++)c.reversed?h[f-1-d]=[OS((1-n[d][0])*100),n[d][1]]:h[d]=[OS(n[d][0]*100),n[d][1]];var m=r._fullLayout,p="g"+m._uid+"-"+t,y=m._defs.select(".gradients").selectAll("#"+p).data([a+h.join(";")],va.identity);y.exit().remove(),y.enter().append(c.node).each(function(){var b=Bn.select(this);c.attrs&&b.attr(c.attrs),b.attr("id",p);var C=b.selectAll("stop").data(h);C.exit().remove(),C.enter().append("stop"),C.each(function(x){Bn.select(this).attr({offset:x[0]+"%","stop-color":Fn.rgb(x[1]),"stop-opacity":Fn.parse(x[1]).alpha})})}),e.style(i,L6(p,r)).style(i+"-opacity",null),e.classed("gradient_filled",!0)}zr.pattern=function(e,r,t,a,n,i,o,l,s,u,f,c){var h=r==="legend";l&&(s==="overlay"?(u=l,f=Fn.contrast(u)):(u=void 0,f=l));var d=t._fullLayout,m="p"+d._uid+"-"+a,p,y,b=function(X,I,V,H,Q){return H+(Q-H)*(X-I)/(V-I)},C,x,_,M,T={},A=Fn.rgb(f),E=Fn.parse(f).alpha,P=c*E;switch(n){case"/":p=i*Math.sqrt(2),y=i*Math.sqrt(2),C="M-"+p/4+","+y/4+"l"+p/2+",-"+y/2+"M0,"+y+"L"+p+",0M"+p/4*3+","+y/4*5+"l"+p/2+",-"+y/2,x=o*i,M="path",T={d:C,opacity:P,stroke:A,"stroke-width":x+"px"};break;case"\\":p=i*Math.sqrt(2),y=i*Math.sqrt(2),C="M"+p/4*3+",-"+y/4+"l"+p/2+","+y/2+"M0,0L"+p+","+y+"M-"+p/4+","+y/4*3+"l"+p/2+","+y/2,x=o*i,M="path",T={d:C,opacity:P,stroke:A,"stroke-width":x+"px"};break;case"x":p=i*Math.sqrt(2),y=i*Math.sqrt(2),C="M-"+p/4+","+y/4+"l"+p/2+",-"+y/2+"M0,"+y+"L"+p+",0M"+p/4*3+","+y/4*5+"l"+p/2+",-"+y/2+"M"+p/4*3+",-"+y/4+"l"+p/2+","+y/2+"M0,0L"+p+","+y+"M-"+p/4+","+y/4*3+"l"+p/2+","+y/2,x=i-i*Math.sqrt(1-o),M="path",T={d:C,opacity:P,stroke:A,"stroke-width":x+"px"};break;case"|":p=i,y=i,M="path",C="M"+p/2+",0L"+p/2+","+y,x=o*i,M="path",T={d:C,opacity:P,stroke:A,"stroke-width":x+"px"};break;case"-":p=i,y=i,M="path",C="M0,"+y/2+"L"+p+","+y/2,x=o*i,M="path",T={d:C,opacity:P,stroke:A,"stroke-width":x+"px"};break;case"+":p=i,y=i,M="path",C="M"+p/2+",0L"+p/2+","+y+"M0,"+y/2+"L"+p+","+y/2,x=i-i*Math.sqrt(1-o),M="path",T={d:C,opacity:P,stroke:A,"stroke-width":x+"px"};break;case".":p=i,y=i,o<Math.PI/4?_=Math.sqrt(o*i*i/Math.PI):_=b(o,Math.PI/4,1,i/2,i/Math.sqrt(2)),M="circle",T={cx:p/2,cy:y/2,r:_,opacity:P,fill:A};break;default:p=i,y=i,M="path",T={d:n,opacity:P,fill:A};break}var z=[n||"noSh",u||"noBg",f||"noFg",i,o].join(";"),B=d._defs.select(".patterns").selectAll("#"+m).data([z],va.identity);B.exit().remove(),B.enter().append("pattern").each(function(){var X=Bn.select(this);if(X.attr({id:m,width:p+"px",height:y+"px",patternUnits:"userSpaceOnUse",patternTransform:h?"scale(0.8)":""}),u){var I=Fn.rgb(u),V=Fn.parse(u).alpha,H=X.selectAll("rect").data([0]);H.exit().remove(),H.enter().append("rect").attr({width:p+"px",height:y+"px",fill:I,"fill-opacity":V})}var Q=X.selectAll(M).data([0]);Q.exit().remove(),Q.enter().append(M).attr(T)}),e.style("fill",L6(m,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};zr.initGradients=function(e){var r=e._fullLayout,t=va.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),Bn.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};zr.initPatterns=function(e){var r=e._fullLayout,t=va.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),Bn.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};zr.getPatternAttr=function(e,r,t){return e&&va.isArrayOrTypedArray(e)?r<e.length?e[r]:t:e};zr.pointStyle=function(e,r,t,a){if(e.size()){var n=zr.makePointStyleFns(r);e.each(function(i){zr.singlePointStyle(i,Bn.select(this),r,n,t,a)})}};zr.singlePointStyle=function(e,r,t,a,n,i){var o=t.marker,l=o.line;if(i&&i.i>=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=zr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=P6(e,t),c=q6(e,t);r.attr("d",JS(u,s,f,c))}var h=!1,d,m,p;if(e.so)p=l.outlierwidth,m=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;p=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=a.lineScale(e.mlc):va.isArrayOrTypedArray(l.color)?m=Fn.defaultLine:m=l.color,va.isArrayOrTypedArray(o.color)&&(d=Fn.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let b=e.mld||(l||{}).dash;if(b&&zr.dashLine(r,b,p),e.om)r.call(Fn.stroke,d).style({"stroke-width":(p||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:p)+"px");var C=o.gradient,x=e.mgt;x?h=!0:x=C&&C.type,va.isArrayOrTypedArray(x)&&(x=x[0],KS[x]||(x=0));var _=o.pattern,M=zr.getPatternAttr,T=_&&(M(_.shape,e.i,"")||M(_.path,e.i,""));if(x&&x!=="none"){var A=e.mgc;A?h=!0:A=C.color;var E=t.uid;h&&(E+="-"+e.i),zr.gradient(r,n,E,x,[[0,A],[1,d]],"fill")}else if(T){var P=!1,z=_.fgcolor;!z&&i&&i.color&&(z=i.color,P=!0);var B=M(z,e.i,i&&i.color||null),X=M(_.bgcolor,e.i,null),I=_.fgopacity,V=M(_.size,e.i,8),H=M(_.solidity,e.i,.3);P=P||e.mcc||va.isArrayOrTypedArray(_.shape)||va.isArrayOrTypedArray(_.path)||va.isArrayOrTypedArray(_.bgcolor)||va.isArrayOrTypedArray(_.fgcolor)||va.isArrayOrTypedArray(_.size)||va.isArrayOrTypedArray(_.solidity);var Q=t.uid;P&&(Q+="-"+e.i),zr.pattern(r,"point",n,Q,T,V,H,e.mcc,_.fillmode,X,B,I)}else va.isArrayOrTypedArray(d)?Fn.fill(r,d[e.i]):Fn.fill(r,d);p&&Fn.stroke(r,m)}};zr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=zr.tryColorscale(t,""),r.lineScale=zr.tryColorscale(t,"line"),rm.traceIs(e,"symbols")&&(r.ms2mrc=Pte.isBubble(e)?Rte(e):function(){return(t.size||6)/2}),e.selectedpoints&&va.extendFlat(r,zr.makeSelectedPointStyleFns(e)),r};zr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(va.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(_){var M=_.mo===void 0?n.opacity:_.mo;return _.selected?f?s:M:c?u:ZS*M});var h=n.color,d=i.color,m=o.color;(d||m)&&(r.selectedColorFn=function(_){var M=_.mcc||h;return _.selected?d||M:m||M});var p=n.size,y=i.size,b=o.size,C=y!==void 0,x=b!==void 0;return rm.traceIs(e,"symbols")&&(C||x)&&(r.selectedSizeFn=function(_){var M=_.mrc||p/2;return _.selected?C?y/2:M:x?b/2:M}),r};zr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:Fn.addOpacity(c,ZS))},r};zr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=zr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Fn.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",JS(zr.symbolNumber(l),s,P6(o,r),q6(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=Bn.select(this),l=0;l<n.length;l++)n[l](o,i)})}};zr.tryColorscale=function(e,r){var t=r?va.nestedProperty(e,r).get():e;if(t){var a=t.color;if((t.colorscale||t._colorAx)&&va.isArrayOrTypedArray(a))return Fte.makeColorScaleFuncFromTrace(t)}return va.identity};var S6={start:1,end:-1,middle:0,bottom:1,top:-1};function eD(e,r,t,a,n){var i=Bn.select(e.node().parentNode),o=r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle",l=r.indexOf("left")!==-1?"end":r.indexOf("right")!==-1?"start":"middle",s=a?a/.8+1:0,u=(tm.lineCount(e)-1)*qte+1,f=S6[l]*s,c=t*.75+S6[o]*s+(S6[o]-1)*u*t/2;e.attr("text-anchor",l),n||i.attr("transform",Ov(f,c))}function rD(e,r){var t=e.ts||r.textfont.size;return S0(t)&&t>0?t:0}zr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=zr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=Bn.select(this),u=i?va.extractOption(l,r,"txt","texttemplate"):va.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},h={};zte(h,r,l.i),u=va.texttemplateString({data:[h,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,m=rD(l,r),p=a?a(l):l.tc||r.textfont.color;s.call(zr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:m,color:p}).text(u).call(tm.convertToTspans,t).call(eD,d,m,l.mrc)})}};zr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=zr.makeSelectedTextStyleFns(r);e.each(function(a){var n=Bn.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=rD(a,r);Fn.fill(n,i);var s=rm.traceIs(r,"bar-like");eD(n,o,l,a.mrc2||a.mrc,s)})}};var US=.5;zr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n<e.length-1;n++)a.push(em(e[n-1],e[n],e[n+1],r));for(t+="Q"+a[0][0]+" "+e[1],n=2;n<e.length-1;n++)t+="C"+a[n-2][1]+" "+a[n-1][0]+" "+e[n];return t+="Q"+a[e.length-3][1]+" "+e[e.length-1],t};zr.smoothclosed=function(e,r){if(e.length<3)return"M"+e.join("L")+"Z";var t="M"+e[0],a=e.length-1,n=[em(e[a],e[0],e[1],r)],i;for(i=1;i<a;i++)n.push(em(e[i-1],e[i],e[i+1],r));for(n.push(em(e[a-1],e[a],e[0],r)),i=1;i<=a;i++)t+="C"+n[i-1][1]+" "+n[i][0]+" "+e[i];return t+="C"+n[a][1]+" "+n[0][0]+" "+e[0]+"Z",t};var tD,aD;function X1(e,r,t){return t&&(e=nD(e)),r?ac(e[1]):tc(e[0])}function tc(e){var r=Bn.round(e,2);return tD=r,r}function ac(e){var r=Bn.round(e,2);return aD=r,r}function em(e,r,t,a){var n=e[0]-r[0],i=e[1]-r[1],o=t[0]-r[0],l=t[1]-r[1],s=Math.pow(n*n+i*i,US/2),u=Math.pow(o*o+l*l,US/2),f=(u*u*n-s*s*o)*a,c=(u*u*i-s*s*l)*a,h=3*u*(s+u),d=3*s*(s+u);return[[tc(r[0]+(h&&f/h)),ac(r[1]+(h&&c/h))],[tc(r[0]-(d&&f/d)),ac(r[1]-(d&&c/d))]]}var Ute={hv:function(e,r,t){return"H"+tc(r[0])+"V"+X1(r,1,t)},vh:function(e,r,t){return"V"+ac(r[1])+"H"+X1(r,0,t)},hvh:function(e,r,t){return"H"+tc((e[0]+r[0])/2)+"V"+ac(r[1])+"H"+X1(r,0,t)},vhv:function(e,r,t){return"V"+ac((e[1]+r[1])/2)+"H"+tc(r[0])+"V"+X1(r,1,t)}},Gte=function(e,r,t){return"L"+X1(r,0,t)+","+X1(r,1,t)};zr.steps=function(e){var r=Ute[e]||Gte;return function(t){for(var a="M"+tc(t[0][0])+","+ac(t[0][1]),n=t.length,i=1;i<n;i++)a+=r(t[i-1],t[i],i===n-1);return a}};function nD(e,r){var t=e.backoff,a=e.trace,n=e.d,i=e.i;if(t&&a&&a.marker&&a.marker.angle%360===0&&a.line&&a.line.shape!=="spline"){var o=va.isArrayOrTypedArray(t),l=e,s=r?r[0]:tD||0,u=r?r[1]:aD||0,f=l[0],c=l[1],h=f-s,d=c-u,m=Math.atan2(d,h),p=o?t[i]:t;if(p==="auto"){var y=l.i;a.type==="scatter"&&y--;var b=l.marker,C=b.symbol;va.isArrayOrTypedArray(C)&&(C=C[y]);var x=b.size;va.isArrayOrTypedArray(x)&&(x=x[y]),p=b?zr.symbolBackOffs[zr.symbolNumber(C)]*x:0,p+=zr.getMarkerStandoff(n[y],a)||0}var _=f-p*Math.cos(m),M=c-p*Math.sin(m);(_<=f&&_>=s||_>=f&&_<=s)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[_,M])}return e}zr.applyBackoff=nD;zr.makeTester=function(){var e=va.ensureSingleById(Bn.select("body"),"svg","js-plotly-tester",function(t){t.attr(Ete.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=va.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});zr.tester=e,zr.testref=r};zr.savedBBoxes={};var D6=0,Yte=1e4;zr.bBox=function(e,r,t){t||(t=GS(e));var a;if(t){if(a=zr.savedBBoxes[t],a)return va.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=GS(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=zr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=zr.savedBBoxes[t],a)return va.extendFlat({},a)}}var u,f;r?u=e:(f=zr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),Bn.select(u).attr("transform",null).call(tm.positionText,0,0);var c=u.getBoundingClientRect(),h=zr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return D6>=Yte&&(zr.savedBBoxes={},D6=0),t&&(zr.savedBBoxes[t]=d),D6++,va.extendFlat({},d)};function GS(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}zr.setClipUrl=function(e,r,t){e.attr("clip-path",L6(r,t))};function L6(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}zr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};zr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=Ov(r,t),o=o.trim(),e[i]("transform",o),o};zr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};zr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var Vte=/\s*sc.*/;zr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Vte,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Xte=/translate\([^)]*\)\s*$/;zr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Bn.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(Xte);r===1&&t===1?a=[]:a=[Ov(o,l),"scale("+r+","+t+")",Ov(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function q6(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}zr.getMarkerStandoff=q6;var Hv=Math.atan2,rc=Math.cos,j1=Math.sin;function YS(e,r){var t=r[0],a=r[1];return[t*rc(e)-a*j1(e),t*j1(e)+a*rc(e)]}var VS,XS,jS,WS,F6,E6;function P6(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!S0(t)||va.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=Hv(h[1]-n,h[0]-a),m=Hv(c[1]-n,c[0]-a),p;if(i==="north")p=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,b=f/180*Math.PI,C=VS/180*Math.PI,x=XS/180*Math.PI,_=C-y,M=rc(x)*j1(_),T=j1(x)*rc(b)-rc(x)*j1(b)*rc(_);p=-Hv(M,T)-Math.PI,VS=u,XS=f}var A=YS(d,[rc(p),0]),E=YS(m,[j1(p),0]);t=Hv(A[1]+E[1],A[0]+E[0])/Math.PI*180,i==="previous"&&!(E6===r.uid&&e.i===F6+1)&&(t=null)}if(i==="previous"&&!r._geo)if(E6===r.uid&&e.i===F6+1&&S0(a)&&S0(n)){var P=a-jS,z=n-WS,B=r.line&&r.line.shape||"",X=B.slice(B.length-1);X==="h"&&(z=0),X==="v"&&(P=0),t+=Hv(z,P)/Math.PI*180+90}else t=null}return jS=a,WS=n,F6=e.i,E6=r.uid,t}zr.getMarkerAngle=P6});var Uv=le((I6e,uD)=>{"use strict";var W1=Ft(),jte=Wt(),Wte=Sn(),R6=_t(),nc=mr(),oD=nc.strTranslate,am=ha(),nm=qt(),Z1=si(),lD=(fp(),Tr(up)),Zte=(li(),Tr(oi)).OPPOSITE_SIDE,sD=/ [XY][0-9]* /,z6=1.6,N6=1.6;function $te(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,h=1,d=n.title,m=(d&&d.text?d.text:"").trim(),p=!1,y=d&&d.font?d.font:{},b=y.family,C=y.size,x=y.color,_=y.weight,M=y.style,T=y.variant,A=y.textcase,E=y.lineposition,P=y.shadow,z=t.subtitlePropName,B=!!z,X=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},V=(I.text||"").trim(),H=!1,Q=1,oe=I.font,re=oe.family,te=oe.size,ie=oe.color,ce=oe.weight,Me=oe.style,De=oe.variant,Ie=oe.textcase,Ue=oe.lineposition,ke=oe.shadow,je;i==="title.text"?je="titleText":i.indexOf("axis")!==-1?je="axisTitleText":i.indexOf("colorbar")!==-1&&(je="colorbarTitleText");var W=e._context.edits[je];function ee(hr,dr){return hr===void 0||dr===void 0?!1:hr.replace(sD," % ")===dr.replace(sD," % ")}m===""?h=0:ee(m,o)&&(W||(m=""),h=.2,p=!0),B&&(V===""?Q=0:ee(V,X)&&(W||(V=""),Q=.2,H=!0)),t._meta?m=nc.templateString(m,t._meta):a._meta&&(m=nc.templateString(m,a._meta));var me=m||V||W,K;c||(c=nc.ensureSingle(a._infolayer,"g","g-"+r),K=a._hColorbarMoveTitle);var J=c.selectAll("text."+r).data(me?[0]:[]);J.enter().append("text"),J.text(m).attr("class",r),J.exit().remove();var ue=null,_e=r+"-subtitle",Ne=V||W;if(B&&(ue=c.selectAll("text."+_e).data(Ne?[0]:[]),ue.enter().append("text"),ue.text(V).attr("class",_e),ue.exit().remove()),!me)return c;function Je(hr,dr){nc.syncOrAsync([ar,tr],{title:hr,subtitle:dr})}function ar(hr){var dr=hr.title,Ze=hr.subtitle,cr;!f&&K&&(f={}),f?(cr="",f.rotate&&(cr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||K)&&(cr+=oD(0,(f.offset||0)-(K||0)))):cr=null,dr.attr("transform",cr);function Lr(Be){if(Be){var Xe=W1.select(Be.node().parentNode).select("."+_e);if(!Xe.empty()){var yr=Be.node().getBBox();if(yr.height){var Cr=yr.y+yr.height+z6*te;Xe.attr("y",Cr)}}}}if(dr.style("opacity",h*nm.opacity(x)).call(am.font,{color:nm.rgb(x),size:W1.round(C,2),family:b,weight:_,style:M,variant:T,textcase:A,shadow:P,lineposition:E}).attr(u).call(Z1.convertToTspans,e,Lr),Ze&&!Ze.empty()){var Te=c.select("."+r+"-math-group"),Oe=dr.node().getBBox(),Ar=Te.node()?Te.node().getBBox():void 0,Br=Ar?Ar.y+Ar.height+z6*te:Oe.y+Oe.height+N6*te,Qe=nc.extendFlat({},u,{y:Br});Ze.attr("transform",cr),Ze.style("opacity",Q*nm.opacity(ie)).call(am.font,{color:nm.rgb(ie),size:W1.round(te,2),family:re,weight:ce,style:Me,variant:De,textcase:Ie,shadow:ke,lineposition:Ue}).attr(Qe).call(Z1.convertToTspans,e)}return Wte.previousPromises(e)}function tr(hr){var dr=hr.title,Ze=W1.select(dr.node().parentNode);if(s&&s.selection&&s.side&&m){Ze.attr("transform",null);var cr=Zte[s.side],Lr=s.side==="left"||s.side==="top"?-1:1,Te=jte(s.pad)?s.pad:2,Oe=am.bBox(Ze.node()),Ar={t:0,b:0,l:0,r:0},Br=e._fullLayout._reservedMargin;for(var Qe in Br)for(var Be in Br[Qe]){var Xe=Br[Qe][Be];Ar[Be]=Math.max(Ar[Be],Xe)}var yr={left:Ar.l,top:Ar.t,right:a.width-Ar.r,bottom:a.height-Ar.b},Cr=s.maxShift||Lr*(yr[s.side]-Oe[s.side]),pr=0;if(Cr<0)pr=Cr;else{var xr=s.offsetLeft||0,Rr=s.offsetTop||0;Oe.left-=xr,Oe.right-=xr,Oe.top-=Rr,Oe.bottom-=Rr,s.selection.each(function(){var Or=am.bBox(this);nc.bBoxIntersect(Oe,Or,Te)&&(pr=Math.max(pr,Lr*(Or[s.side]-Oe[cr])+Te))}),pr=Math.min(Cr,pr),n._titleScoot=Math.abs(pr)}if(pr>0||Cr<0){var Er={left:[-pr,0],right:[pr,0],top:[0,-pr],bottom:[0,pr]}[s.side];Ze.attr("transform",oD(Er[0],Er[1]))}}}J.call(Je,ue);function fr(hr,dr){hr.text(dr).on("mouseover.opacity",function(){W1.select(this).transition().duration(lD.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){W1.select(this).transition().duration(lD.HIDE_PLACEHOLDER).style("opacity",0)})}if(W&&(m?J.on(".opacity",null):(fr(J,o),p=!0),J.call(Z1.makeEditable,{gd:e}).on("edit",function(hr){l!==void 0?R6.call("_guiRestyle",e,i,hr,l):R6.call("_guiRelayout",e,i,hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Je)}).on("input",function(hr){this.text(hr||" ").call(Z1.positionText,u.x,u.y)}),B)){if(B&&!m){var Re=J.node().getBBox(),sr=Re.y+Re.height+N6*te;ue.attr("y",sr)}V?ue.on(".opacity",null):(fr(ue,X),H=!0),ue.call(Z1.makeEditable,{gd:e}).on("edit",function(hr){R6.call("_guiRelayout",e,"title.subtitle.text",hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Je)}).on("input",function(hr){this.text(hr||" ").call(Z1.positionText,ue.attr("x"),ue.attr("y"))})}return J.classed("js-placeholder",p),ue&&!ue.empty()&&ue.classed("js-placeholder",H),c}uD.exports={draw:$te,SUBTITLE_PADDING_EM:N6,SUBTITLE_PADDING_MATHJAX_EM:z6}});var vm=le((H6e,dD)=>{"use strict";var Jte=Ft(),Kte=v1().utcFormat,Ma=mr(),Qte=Ma.numberFormat,Es=Wt(),D0=Ma.cleanNumber,eae=Ma.ms2DateTime,fD=Ma.dateTime2ms,Ls=Ma.ensureNumber,cD=Ma.isArrayOrTypedArray,F0=(Ya(),Tr($a)),im=F0.FP_SAFE,Gl=F0.BADNUM,rae=F0.LOG_CLIP,tae=F0.ONEWEEK,om=F0.ONEDAY,lm=F0.ONEHOUR,vD=F0.ONEMIN,hD=F0.ONESEC,sm=Cn(),cm=(Nn(),Tr(zn)),um=cm.HOUR_PATTERN,fm=cm.WEEKDAY_PATTERN;function Gv(e){return Math.pow(10,e)}function B6(e){return e!=null}dD.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(_,M){if(_>0)return Math.log(_)/Math.LN10;if(_<=0&&M&&r.range&&r.range.length===2){var T=r.range[0],A=r.range[1];return .5*(T+A-2*rae*Math.abs(T-A))}else return Gl}function o(_,M,T,A){if((A||{}).msUTC&&Es(_))return+_;var E=fD(_,T||r.calendar);if(E===Gl)if(Es(_)){_=+_;var P=Math.floor(Ma.mod(_+.05,1)*10),z=Math.round(_-P/10);E=fD(new Date(z))+P/10}else return Gl;return E}function l(_,M,T){return eae(_,M,T||r.calendar)}function s(_){return r._categories[Math.round(_)]}function u(_){if(B6(_)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[_]!==void 0)return r._categoriesMap[_];r._categories.push(typeof _=="number"?String(_):_);var M=r._categories.length-1;return r._categoriesMap[_]=M,M}return Gl}function f(_,M){for(var T=new Array(M),A=0;A<M;A++){var E=(_[0]||[])[A],P=(_[1]||[])[A];T[A]=c([E,P])}return T}function c(_){if(r._categoriesMap)return r._categoriesMap[_]}function h(_){var M=c(_);if(M!==void 0)return M;if(Es(_))return+_}function d(_){return Es(_)?+_:c(_)}function m(_,M,T){return Jte.round(T+M*_,2)}function p(_,M,T){return(_-T)/M}var y=function(M){return Es(M)?m(M,r._m,r._b):Gl},b=function(_){return p(_,r._m,r._b)};if(r.rangebreaks){var C=n==="y";y=function(_){if(!Es(_))return Gl;var M=r._rangebreaks.length;if(!M)return m(_,r._m,r._b);var T=C;r.range[0]>r.range[1]&&(T=!T);for(var A=T?-1:1,E=A*_,P=0,z=0;z<M;z++){var B=A*r._rangebreaks[z].min,X=A*r._rangebreaks[z].max;if(E<B)break;if(E>X)P=z+1;else{P=E<(B+X)/2?z:z+1;break}}var I=r._B[P]||0;return isFinite(I)?m(_,r._m2,I):0},b=function(_){var M=r._rangebreaks.length;if(!M)return p(_,r._m,r._b);for(var T=0,A=0;A<M&&!(_<r._rangebreaks[A].pmin);A++)_>r._rangebreaks[A].pmax&&(T=A+1);return p(_,r._m2,r._B[T])}}r.c2l=r.type==="log"?i:Ls,r.l2c=r.type==="log"?Gv:Ls,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(_,M){return y(i(_,M))}:y,r.p2c=r.type==="log"?function(_){return Gv(b(_))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=D0,r.c2d=r.c2r=r.l2d=r.l2r=Ls,r.d2p=r.r2p=function(_){return r.l2p(D0(_))},r.p2d=r.p2r=b,r.cleanPos=Ls):r.type==="log"?(r.d2r=r.d2l=function(_,M){return i(D0(_),M)},r.r2d=r.r2c=function(_){return Gv(D0(_))},r.d2c=r.r2l=D0,r.c2d=r.l2r=Ls,r.c2r=i,r.l2d=Gv,r.d2p=function(_,M){return r.l2p(r.d2r(_,M))},r.p2d=function(_){return Gv(b(_))},r.r2p=function(_){return r.l2p(D0(_))},r.p2r=b,r.cleanPos=Ls):r.type==="date"?(r.d2r=r.r2d=Ma.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(_,M,T){return r.l2p(o(_,0,T))},r.p2d=r.p2r=function(_,M,T){return l(b(_),M,T)},r.cleanPos=function(_){return Ma.cleanDate(_,Gl,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var M=d(_);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Ls,r.r2l=d,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return typeof _=="string"&&_!==""?_:Ls(_)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var M=h(_);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Ls,r.r2l=h,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return Array.isArray(_)||typeof _=="string"&&_!==""?_:Ls(_)},r.setupMultiCategory=function(_){var M=r._traceIndices,T,A,E=r._matchGroup;if(E&&r._categories.length===0){for(var P in E)if(P!==a){var z=t[sm.id2name(P)];M=M.concat(z._traceIndices)}}var B=[[0,{}],[0,{}]],X=[];for(T=0;T<M.length;T++){var I=_[M[T]];if(n in I){var V=I[n],H=I._length||Ma.minRowLength(V);if(cD(V[0])&&cD(V[1]))for(A=0;A<H;A++){var Q=V[0][A],oe=V[1][A];B6(Q)&&B6(oe)&&(X.push([Q,oe]),Q in B[0][1]||(B[0][1][Q]=B[0][0]++),oe in B[1][1]||(B[1][1][oe]=B[1][0]++))}}}for(X.sort(function(re,te){var ie=B[0][1],ce=ie[re[0]]-ie[te[0]];if(ce)return ce;var Me=B[1][1];return Me[re[1]]-Me[te[1]]}),T=0;T<X.length;T++)u(X[T])}),r.fraction2r=function(_){var M=r.r2l(r.range[0]),T=r.r2l(r.range[1]);return r.l2r(M+_*(T-M))},r.r2fraction=function(_){var M=r.r2l(r.range[0]),T=r.r2l(r.range[1]);return(r.r2l(_)-M)/(T-M)},r.limitRange=function(_){var M=r.minallowed,T=r.maxallowed;if(!(M===void 0&&T===void 0)){_||(_="range");var A=Ma.nestedProperty(r,_).get(),E=Ma.simpleMap(A,r.r2l),P=E[1]<E[0];P&&E.reverse();var z=Ma.simpleMap([M,T],r.r2l);if(M!==void 0&&E[0]<z[0]&&(A[P?1:0]=M,E[0]=z[0]),T!==void 0&&E[1]>z[1]&&(A[P?0:1]=T,E[1]=z[1]),E[0]>=E[1])if(M!==void 0){var B=z[0]+1;T!==void 0&&(B=Math.min(B,z[1])),A[P?0:1]=r.l2r(B)}else T!==void 0&&(A[P?1:0]=r.l2r(z[1]-1))}},r.cleanRange=function(_,M){r._cleanRange(_,M),r.limitRange(_)},r._cleanRange=function(_,M){M||(M={}),_||(_="range");var T=Ma.nestedProperty(r,_).get(),A,E;if(r.type==="date"?E=Ma.dfltRange(r.calendar):n==="y"?E=cm.DFLTRANGEY:r._name==="realaxis"?E=[0,1]:E=M.dfltRange||cm.DFLTRANGEX,E=E.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(E[0]=0),!T||T.length!==2){Ma.nestedProperty(r,_).set(E);return}var P=T[0]===null,z=T[1]===null;for(r.type==="date"&&!r.autorange&&(T[0]=Ma.cleanDate(T[0],Gl,r.calendar),T[1]=Ma.cleanDate(T[1],Gl,r.calendar)),A=0;A<2;A++)if(r.type==="date"){if(!Ma.isDateTime(T[A],r.calendar)){r[_]=E;break}if(r.r2l(T[0])===r.r2l(T[1])){var B=Ma.constrain(r.r2l(T[0]),Ma.MIN_MS+1e3,Ma.MAX_MS-1e3);T[0]=r.l2r(B-1e3),T[1]=r.l2r(B+1e3);break}}else{if(!Es(T[A]))if(!(P||z)&&Es(T[1-A]))T[A]=T[1-A]*(A?10:.1);else{r[_]=E;break}if(T[A]<-im?T[A]=-im:T[A]>im&&(T[A]=im),T[0]===T[1]){var X=Math.max(1,Math.abs(T[0]*1e-6));T[0]-=X,T[1]+=X}}},r.setScale=function(_){var M=t._size;if(r.overlaying){var T=sm.getFromId({_fullLayout:t},r.overlaying);r.domain=T.domain}var A=_&&r._r?"_r":"range",E=r.calendar;r.cleanRange(A);var P=r.r2l(r[A][0],E),z=r.r2l(r[A][1],E),B=n==="y";if(B?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(P-z),r._b=-r._m*z):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(z-P),r._b=-r._m*P),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var X,I;if(r._rangebreaks=r.locateBreaks(Math.min(P,z),Math.max(P,z)),r._rangebreaks.length){for(X=0;X<r._rangebreaks.length;X++)I=r._rangebreaks[X],r._lBreaks+=Math.abs(I.max-I.min);var V=B;P>z&&(V=!V),V&&r._rangebreaks.reverse();var H=V?-1:1;for(r._m2=H*r._length/(Math.abs(z-P)-r._lBreaks),r._B.push(-r._m2*(B?z:P)),X=0;X<r._rangebreaks.length;X++)I=r._rangebreaks[X],r._B.push(r._B[r._B.length-1]-H*r._m2*(I.max-I.min));for(X=0;X<r._rangebreaks.length;X++)I=r._rangebreaks[X],I.pmin=y(I.min),I.pmax=y(I.max)}}if(!isFinite(r._m)||!isFinite(r._b)||r._length<0)throw t._replotting=!1,new Error("Something went wrong with axis scaling")},r.maskBreaks=function(_){var M=r.rangebreaks||[],T,A,E,P,z;M._cachedPatterns||(M._cachedPatterns=M.map(function(ie){return ie.enabled&&ie.bounds?Ma.simpleMap(ie.bounds,ie.pattern?D0:r.d2c):null})),M._cachedValues||(M._cachedValues=M.map(function(ie){return ie.enabled&&ie.values?Ma.simpleMap(ie.values,r.d2c).sort(Ma.sorterAsc):null}));for(var B=0;B<M.length;B++){var X=M[B];if(X.enabled){if(X.bounds){var I=X.pattern;switch(T=M._cachedPatterns[B],A=T[0],E=T[1],I){case fm:z=new Date(_),P=z.getUTCDay(),A>E&&(E+=7,P<A&&(P+=7));break;case um:z=new Date(_);var V=z.getUTCHours(),H=z.getUTCMinutes(),Q=z.getUTCSeconds(),oe=z.getUTCMilliseconds();P=V+(H/60+Q/3600+oe/36e5),A>E&&(E+=24,P<A&&(P+=24));break;case"":P=_;break}if(P>=A&&P<E)return Gl}else for(var re=M._cachedValues[B],te=0;te<re.length;te++)if(A=re[te],E=A+X.dvalue,_>=A&&_<E)return Gl}}return _},r.locateBreaks=function(_,M){var T,A,E,P,z=[];if(!r.rangebreaks)return z;var B=r.rangebreaks.slice().sort(function(Me,De){return Me.pattern===fm&&De.pattern===um?-1:De.pattern===fm&&Me.pattern===um?1:0}),X=function(Me,De){if(Me=Ma.constrain(Me,_,M),De=Ma.constrain(De,_,M),Me!==De){for(var Ie=!0,Ue=0;Ue<z.length;Ue++){var ke=z[Ue];Me<ke.max&&De>=ke.min&&(Me<ke.min&&(ke.min=Me),De>ke.max&&(ke.max=De),Ie=!1)}Ie&&z.push({min:Me,max:De})}};for(T=0;T<B.length;T++){var I=B[T];if(I.enabled)if(I.bounds){var V=_,H=M;I.pattern&&(V=Math.floor(V)),A=Ma.simpleMap(I.bounds,I.pattern?D0:r.r2l),E=A[0],P=A[1];var Q=new Date(V),oe,re;switch(I.pattern){case fm:re=tae,oe=((P<E?7:0)+(P-E))*om,V+=E*om-(Q.getUTCDay()*om+Q.getUTCHours()*lm+Q.getUTCMinutes()*vD+Q.getUTCSeconds()*hD+Q.getUTCMilliseconds());break;case um:re=om,oe=((P<E?24:0)+(P-E))*lm,V+=E*lm-(Q.getUTCHours()*lm+Q.getUTCMinutes()*vD+Q.getUTCSeconds()*hD+Q.getUTCMilliseconds());break;default:V=Math.min(A[0],A[1]),H=Math.max(A[0],A[1]),re=H-V,oe=re}for(var te=V;te<H;te+=re)X(te,te+oe)}else for(var ie=Ma.simpleMap(I.values,r.d2c),ce=0;ce<ie.length;ce++)E=ie[ce],P=E+I.dvalue,X(E,P)}return z.sort(function(Me,De){return Me.min-De.min}),z},r.makeCalcdata=function(_,M,T){var A,E,P,z,B=r.type,X=B==="date"&&_[M+"calendar"];if(M in _){if(A=_[M],z=_._length||Ma.minRowLength(A),Ma.isTypedArray(A)&&(B==="linear"||B==="log")){if(z===A.length)return A;if(A.subarray)return A.subarray(0,z)}if(B==="multicategory")return f(A,z);for(E=new Array(z),P=0;P<z;P++)E[P]=r.d2c(A[P],0,X,T)}else{var I=M+"0"in _?r.d2c(_[M+"0"],0,X):0,V=_["d"+M]?Number(_["d"+M]):1;for(A=_[{x:"y",y:"x"}[M]],z=_._length||A.length,E=new Array(z),P=0;P<z;P++)E[P]=I+P*V}if(r.rangebreaks)for(P=0;P<z;P++)E[P]=r.maskBreaks(E[P]);return E},r.isValidRange=function(_,M){return Array.isArray(_)&&_.length===2&&(M&&_[0]===null||Es(r.r2l(_[0])))&&(M&&_[1]===null||Es(r.r2l(_[1])))},r.getAutorangeDflt=function(_,M){var T=!r.isValidRange(_,"nullOk");return T&&M&&M.reverseDflt?T="reversed":_&&(_[0]===null&&_[1]===null?T=!0:_[0]===null&&_[1]!==null?T="min":_[0]!==null&&_[1]===null&&(T="max")),T},r.isReversed=function(){var _=r.autorange;return _==="reversed"||_==="min reversed"||_==="max reversed"},r.isPtWithinRange=function(_,M){var T=r.c2l(_[n],null,M),A=r.r2l(r.range[0]),E=r.r2l(r.range[1]);return A<E?A<=T&&T<=E:E<=T&&T<=A},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var _=r._matchGroup;if(_){var M=null,T=null;for(var A in _){var E=t[sm.id2name(A)];if(E._categories){M=E._categories,T=E._categoriesMap;break}}M&&T?(r._categories=M,r._categoriesMap=T):r._emptyCategories()}else r._emptyCategories();if(r._initialCategories)for(var P=0;P<r._initialCategories.length;P++)u(r._initialCategories[P])},r.sortByInitialCategories=function(){var _=[];if(r._emptyCategories(),r._initialCategories)for(var M=0;M<r._initialCategories.length;M++)u(r._initialCategories[M]);_=_.concat(r._traceIndices);var T=r._matchGroup;for(var A in T)if(a!==A){var E=t[sm.id2name(A)];E._categories=r._categories,E._categoriesMap=r._categoriesMap,_=_.concat(E._traceIndices)}return _};var x=t._d3locale;r.type==="date"&&(r._dateFormat=x?x.timeFormat:Kte,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=x?x.numberFormat:Qte,delete r._minDtick,delete r._forceTick0}});var H6=le((O6e,yD)=>{"use strict";var pD=Wt(),I6=mr(),aae=(Ya(),Tr($a)).BADNUM,hm=I6.isArrayOrTypedArray,nae=I6.isDateTime,iae=I6.cleanNumber,mD=Math.round;yD.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(hm(n)&&!n.length)return"-";if(!i&&fae(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;l<n.length;l++)if(hm(n[l]))for(var s=0;s<n[l].length;s++)o.push(n[l][s]);n=o}if(sae(n,t))return"date";var u=a.autotypenumbers!=="strict";return uae(n,u)?"category":lae(n,u)?"linear":"-"};function oae(e,r){return r?pD(e):typeof e=="number"}function lae(e,r){for(var t=e.length,a=0;a<t;a++)if(oae(e[a],r))return!0;return!1}function sae(e,r){for(var t=e.length,a=gD(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=mD(l),u=e[s],f=String(u);o[f]||(o[f]=1,nae(u,r)&&n++,pD(u)&&i++)}return n>i*2}function gD(e){return Math.max(1,(e-1)/1e3)}function uae(e,r){for(var t=e.length,a=gD(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=mD(l),u=e[s],f=String(u);if(!o[f]){o[f]=1;var c=typeof u;c==="boolean"?i++:(r?iae(u)!==aae:c==="number")?n++:c==="string"&&i++}}return i>n*2}function fae(e){return hm(e[0])&&hm(e[1])}});var L0=le((U6e,kD)=>{"use strict";var cae=Ft(),wD=Wt(),E0=mr(),dm=(Ya(),Tr($a)).FP_SAFE,vae=_t(),hae=ha(),AD=Cn(),dae=AD.getFromId,pae=AD.isLinked;kD.exports={applyAutorangeOptions:TD,getAutoRange:O6,makePadFn:U6,doAutoRange:gae,findExtremes:yae,concatExtremes:V6};function O6(e,r){var t,a,n=[],i=e._fullLayout,o=U6(i,r,0),l=U6(i,r,1),s=V6(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return E0.simpleMap(r.range,r.r2l);var c=u[0].val,h=f[0].val;for(t=1;t<u.length&&c===h;t++)c=Math.min(c,u[t].val);for(t=1;t<f.length&&c===h;t++)h=Math.max(h,f[t].val);var d=r.autorange,m=d==="reversed"||d==="min reversed"||d==="max reversed";if(!m&&r.range){var p=E0.simpleMap(r.range,r.r2l);m=p[1]<p[0]}r.autorange==="reversed"&&(r.autorange=!0);var y=r.rangemode,b=y==="tozero",C=y==="nonnegative",x=r._length,_=x/10,M=0,T,A,E,P,z,B;for(t=0;t<u.length;t++)for(T=u[t],a=0;a<f.length;a++)A=f[a],B=A.val-T.val-bD(r,T.val,A.val),B>0&&(z=x-o(T)-l(A),z>_?B/z>M&&(E=T,P=A,M=B/z):B/x>M&&(E={val:T.val,nopad:1},P={val:A.val,nopad:1},M=B/x));function X(oe,re){return Math.max(oe,l(re))}if(c===h){var I=c-1,V=c+1;if(b)if(c===0)n=[0,1];else{var H=(c>0?f:u).reduce(X,0),Q=c/(1-Math.min(.5,H/x));n=c>0?[0,Q]:[Q,0]}else C?n=[Math.max(0,I),Math.max(1,V)]:n=[I,V]}else b?(E.val>=0&&(E={val:0,nopad:1}),P.val<=0&&(P={val:0,nopad:1})):C&&(E.val-M*o(E)<0&&(E={val:0,nopad:1}),P.val<=0&&(P={val:1,nopad:1})),M=(P.val-E.val-bD(r,T.val,A.val))/(x-o(E)-l(P)),n=[E.val-M*o(E),P.val+M*l(P)];return n=TD(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),E0.simpleMap(n,r.l2r||Number)}function bD(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i<n.length;i++){var o=n[i];a+=o.max-o.min}return a}function U6(e,r,t){var a=.05*r._length,n=r._anchorAxis||{};if((r.ticklabelposition||"").indexOf("inside")!==-1||(n.ticklabelposition||"").indexOf("inside")!==-1){var i=r.isReversed();if(!i){var o=E0.simpleMap(r.range,r.r2l);i=o[1]<o[0]}i&&(t=!t)}var l=0;return pae(e,r._id)||(l=mae(e,r,t)),a=Math.max(l,a),r.constrain==="domain"&&r._inputDomain&&(a*=(r._inputDomain[1]-r._inputDomain[0])/(r.domain[1]-r.domain[0])),function(u){return u.nopad?0:u.pad+(u.extrapad?a:l)}}var _D=3;function mae(e,r,t){var a=0,n=r._id.charAt(0)==="x";for(var i in e._plots){var o=e._plots[i];if(!(r._id!==o.xaxis._id&&r._id!==o.yaxis._id)){var l=(n?o.yaxis:o.xaxis)||{};if((l.ticklabelposition||"").indexOf("inside")!==-1&&(!t&&(l.side==="left"||l.side==="bottom")||t&&(l.side==="top"||l.side==="right"))){if(l._vals){var s=E0.deg2rad(l._tickAngles[l._id+"tick"]||0),u=Math.abs(Math.cos(s)),f=Math.abs(Math.sin(s));if(!l._vals[0].bb){var c=l._id+"tick",h=l._selections[c];h.each(function(C){var x=cae.select(this),_=x.select(".text-math-group");_.empty()&&(C.bb=hae.bBox(x.node()))})}for(var d=0;d<l._vals.length;d++){var m=l._vals[d],p=m.bb;if(p){var y=2*_D+p.width,b=2*_D+p.height;a=Math.max(a,n?Math.max(y*u,b*f):Math.max(b*u,y*f))}}}l.ticks==="inside"&&l.ticklabelposition==="inside"&&(a+=l.ticklen||0)}}}return a}function V6(e,r,t){var a=r._id,n=e._fullData,i=e._fullLayout,o=[],l=[],s,u,f;function c(y,b){for(s=0;s<b.length;s++){var C=y[b[s]],x=(C._extremes||{})[a];if(C.visible===!0&&x){for(u=0;u<x.min.length;u++)f=x.min[u],G6(o,f.val,f.pad,{extrapad:f.extrapad});for(u=0;u<x.max.length;u++)f=x.max[u],Y6(l,f.val,f.pad,{extrapad:f.extrapad})}}}if(c(n,r._traceIndices),c(i.annotations||[],r._annIndices||[]),c(i.shapes||[],r._shapeIndices||[]),r._matchGroup&&!t){for(var h in r._matchGroup)if(h!==r._id){var d=dae(e,h),m=V6(e,d,!0),p=r._length/d._length;for(u=0;u<m.min.length;u++)f=m.min[u],G6(o,f.val,f.pad*p,{extrapad:f.extrapad});for(u=0;u<m.max.length;u++)f=m.max[u],Y6(l,f.val,f.pad*p,{extrapad:f.extrapad})}}return{min:o,max:l}}function gae(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():O6(e,r),r._r=r.range.slice(),r._rl=E0.simpleMap(r._r,r.r2l);var a=r._input,n={};n[r._attr+".range"]=r.range,n[r._attr+".autorange"]=r.autorange,vae.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,n),a.range=r.range.slice(),a.autorange=r.autorange}var i=r._anchorAxis;if(i&&i.rangeslider){var o=i.rangeslider[r._name];o&&o.rangemode==="auto"&&(o.range=O6(e,r)),i._input.rangeslider[r._name]=E0.extendFlat({},o)}}function yae(e,r,t){t||(t={}),e._m||e.setScale();var a=[],n=[],i=r.length,o=t.padded||!1,l=t.tozero&&(e.type==="linear"||e.type==="-"),s=e.type==="log",u=!1,f=t.vpadLinearized||!1,c,h,d,m,p,y,b,C,x;function _(X){if(Array.isArray(X))return u=!0,function(V){return Math.max(Number(X[V]||0),0)};var I=Math.max(Number(X||0),0);return function(){return I}}var M=_((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),T=_((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),A=_(t.vpadplus||t.vpad),E=_(t.vpadminus||t.vpad);if(!u){if(C=1/0,x=-1/0,s)for(c=0;c<i;c++)h=r[c],h<C&&h>0&&(C=h),h>x&&h<dm&&(x=h);else for(c=0;c<i;c++)h=r[c],h<C&&h>-dm&&(C=h),h>x&&h<dm&&(x=h);r=[C,x],i=2}var P={tozero:l,extrapad:o};function z(X){d=r[X],wD(d)&&(y=M(X),b=T(X),f?(m=e.c2l(d)-E(X),p=e.c2l(d)+A(X)):(C=d-E(X),x=d+A(X),s&&C<x/10&&(C=x/10),m=e.c2l(C),p=e.c2l(x)),l&&(m=Math.min(0,m),p=Math.max(0,p)),xD(m)&&G6(a,m,b,P),xD(p)&&Y6(n,p,y,P))}var B=Math.min(6,i);for(c=0;c<B;c++)z(c);for(c=i-1;c>=B;c--)z(c);return{min:a,max:n,opts:t}}function G6(e,r,t,a){MD(e,r,t,a,bae)}function Y6(e,r,t,a){MD(e,r,t,a,_ae)}function MD(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s<e.length&&l;s++){var u=e[s];if(n(u.val,r)&&u.pad>=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function xD(e){return wD(e)&&Math.abs(e)<dm}function bae(e,r){return e<=r}function _ae(e,r){return e>=r}function xae(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&pm(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&pm(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function wae(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&pm(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&pm(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function pm(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function TD(e,r){if(!r||!r.autorangeoptions)return e;var t=e[0],a=e[1],n=r.autorangeoptions.include;if(n!==void 0){var i=r.d2l(t),o=r.d2l(a);E0.isArrayOrTypedArray(n)||(n=[n]);for(var l=0;l<n.length;l++){var s=r.d2l(n[l]);i>=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=xae(t,r),a=wae(a,r),[t,a]}});var Oa=le((Y6e,ZD)=>{"use strict";var Wo=Ft(),vn=Wt(),$1=Sn(),Vv=_t(),dt=mr(),J1=dt.strTranslate,ic=si(),Aae=Uv(),Xv=qt(),_o=ha(),Mae=Ol(),CD=f6(),G6e=(Nn(),Tr(zn)),ri=(Ya(),Tr($a)),Tae=ri.ONEMAXYEAR,ym=ri.ONEAVGYEAR,bm=ri.ONEMINYEAR,kae=ri.ONEMAXQUARTER,Z6=ri.ONEAVGQUARTER,_m=ri.ONEMINQUARTER,Cae=ri.ONEMAXMONTH,K1=ri.ONEAVGMONTH,xm=ri.ONEMINMONTH,xo=ri.ONEWEEK,xi=ri.ONEDAY,q0=xi/2,Ps=ri.ONEHOUR,jv=ri.ONEMIN,wm=ri.ONESEC,Sae=ri.ONEMILLI,Dae=ri.ONEMICROSEC,oc=ri.MINUS_SIGN,Mm=ri.BADNUM,$6={K:"zeroline"},J6={K:"gridline",L:"path"},K6={K:"minor-gridline",L:"path"},BD={K:"tick",L:"path"},SD={K:"tick",L:"text"},DD={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Tm=(li(),Tr(oi)),Yv=Tm.MID_SHIFT,lc=Tm.CAP_SHIFT,Wv=Tm.LINE_SPACING,Fae=Tm.OPPOSITE_SIDE,Am=3,_r=ZD.exports={};_r.setConvert=vm();var Eae=H6(),Rs=Cn(),Lae=Rs.idSort,qae=Rs.isLinked;_r.id2name=Rs.id2name;_r.name2id=Rs.name2id;_r.cleanId=Rs.cleanId;_r.list=Rs.list;_r.listIds=Rs.listIds;_r.getFromId=Rs.getFromId;_r.getFromTrace=Rs.getFromTrace;var ID=L0();_r.getAutoRange=ID.getAutoRange;_r.findExtremes=ID.findExtremes;var Pae=1e-4;function tb(e){var r=(e[1]-e[0])*Pae;return[e[0]-r,e[1]+r]}function Rae(e,r,t){if(![t,e,r].every(vn)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)<Math.abs(t)*1e-6?n:e}_r.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",u={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},dt.coerce(e,r,u,s)};_r.coerceRefArray=function(e,r,t,a,n,i,o){let l=a.charAt(a.length-1);var s=t._fullLayout._subplots[l+"axis"];let u=a+"ref";var f=e[u];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(h=>h+" domain")),s=s.concat(i||[]),f.length>o?(dt.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length<o&&(dt.warn("Array attribute "+u+" has fewer entries than expected, extending with default value"),f=f.concat(Array(o-f.length).fill(n)));for(var c=0;c<f.length;c++)f[c]=Rs.cleanId(f[c],l,!0)||f[c],s.includes(f[c])||(f[c]=n);return r[u]=f,f};_r.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};_r.coercePosition=function(e,r,t,a,n,i){var o,l,s=_r.getRefType(a);if(s!=="range")o=dt.ensureNumber,l=t(n,i);else{var u=_r.getFromId(r,a);i=u.fraction2r(i),l=t(n,i),o=u.cleanPos}e[n]=o(l)};_r.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?dt.ensureNumber:_r.getFromId(r,t).cleanPos;return a(e)};_r.redrawComponents=function(e,r){r=r||_r.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=Vv.getComponentMethod(n,i),u={},f=0;f<r.length;f++)for(var c=t[_r.id2name(r[f])],h=c[o],d=0;d<h.length;d++){var m=h[d];if(!u[m]&&(s(e,m),u[m]=1,l))return}}a("annotations","drawOne","_annIndices"),a("shapes","drawOne","_shapeIndices"),a("images","draw","_imgIndices",!0),a("selections","drawOne","_selectionIndices")};var zae=_r.getDataConversions=function(e,r,t,a){var n,i=t==="x"||t==="y"||t==="z"?t:a;if(dt.isArrayOrTypedArray(i)){if(n={type:Eae(a,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},_r.setConvert(n),n.type==="category")for(var o=0;o<a.length;o++)n.d2c(a[o])}else n=_r.getFromTrace(e,r,i);return n?{d2c:n.d2c,c2d:n.c2d}:i==="ids"?{d2c:ED,c2d:ED}:{d2c:FD,c2d:FD}};function FD(e){return+e}function ED(e){return String(e)}_r.getDataToCoordFunc=function(e,r,t,a){return zae(e,r,t,a).d2c};_r.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};_r.minDtick=function(e,r,t,a){["log","category","multicategory"].indexOf(e.type)!==-1||!a?e._minDtick=0:e._minDtick===void 0?(e._minDtick=r,e._forceTick0=t):e._minDtick&&((e._minDtick/r+1e-6)%1<2e-6&&((t-e._forceTick0)/r%1+1.000001)%1<2e-6?(e._minDtick=r,e._forceTick0=t):((r/e._minDtick+1e-6)%1>2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};_r.saveRangeInitial=function(e,r){for(var t=_r.list(e,"",!0),a=!1,n=0;n<t.length;n++){var i=t[n],o=i._rangeInitial0===void 0&&i._rangeInitial1===void 0,l=o||i.range[0]!==i._rangeInitial0||i.range[1]!==i._rangeInitial1,s=i.autorange;(o&&s!==!0||r&&l)&&(i._rangeInitial0=s==="min"||s==="max reversed"?void 0:i.range[0],i._rangeInitial1=s==="max"||s==="min reversed"?void 0:i.range[1],i._autorangeInitial=s,a=!0)}return a};_r.saveShowSpikeInitial=function(e,r){for(var t=_r.list(e,"",!0),a=!1,n="on",i=0;i<t.length;i++){var o=t[i],l=o._showSpikeInitial===void 0,s=l||o.showspikes!==o._showspikes;(l||r&&s)&&(o._showSpikeInitial=o.showspikes,a=!0),n==="on"&&!o.showspikes&&(n="off")}return e._fullLayout._cartesianSpikesEnabled=n,a};_r.autoBin=function(e,r,t,a,n,i){var o=dt.aggNums(Math.min,null,e),l=dt.aggNums(Math.max,null,e);if(r.type==="category"||r.type==="multicategory")return{start:o-.5,end:l+.5,size:Math.max(1,Math.round(i)||1),_dataSpan:l-o};n||(n=r.calendar);var s;if(r.type==="log"?s={type:"linear",range:[o,l]}:s={type:r.type,range:dt.simpleMap([o,l],r.c2r,0,n),calendar:n},_r.setConvert(s),i=i&&CD.dtick(i,s.type),i)s.dtick=i,s.tick0=CD.tick0(void 0,s.type,n);else{var u;if(t)u=(l-o)/t;else{var f=dt.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),h=c*dt.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);u=Math.max(h,2*dt.stdev(e)/Math.pow(e.length,a?.25:.4)),vn(u)||(u=1)}_r.autoTicks(s,u)}var d=s.dtick,m=_r.tickIncrement(_r.tickFirst(s),d,"reverse",n),p,y;if(typeof d=="number")m=Nae(m,e,s,o,l),y=1+Math.floor((l-m)/d),p=m+y*d;else for(s.dtick.charAt(0)==="M"&&(m=Bae(m,e,d,o,n)),p=m,y=0;p<=l;)p=_r.tickIncrement(p,d,!1,n),y++;return{start:r.c2r(m,0,n),end:r.c2r(p,0,n),size:d,_dataSpan:l-o}};function Nae(e,r,t,a,n){var i=0,o=0,l=0,s=0;function u(d){return(1+(d-e)*100/t.dtick)%100<2}for(var f=0;f<r.length;f++)r[f]%1===0?l++:vn(r[f])||s++,u(r[f])&&i++,u(r[f]+t.dtick/2)&&o++;var c=r.length-s;if(l===c&&t.type!=="date")t.dtick<1?e=a-.5*t.dtick:(e-=.5,e+t.dtick<a&&(e+=t.dtick));else if(o<c*.1&&(i>c*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+h<a?h:-h}return e}function Bae(e,r,t,a,n){var i=dt.findExactDates(r,n),o=.8;if(i.exactDays>o){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=_r.tickIncrement(e,"M6","reverse")+xi*1.5:i.exactMonths>o?e=_r.tickIncrement(e,"M1","reverse")+xi*15.5:e-=q0;var s=_r.tickIncrement(e,t);if(s<=a)return s}return e}_r.prepMinorTicks=function(e,r,t){var c,h;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&vn(r._tmin),n;if(a){var i=_r.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=dt.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=dt.simpleMap(n,r.l2r),e._isMinor=!0,_r.prepTicks(e,t),a){var l=vn(r.dtick),s=vn(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?X6(u,f)?u===2*xo&&f===2*xi&&(e.dtick=xo):u===2*xo&&f===3*xi?e.dtick=xo:u===xo&&!(r._input.minor||{}).nticks?e.dtick=xi:LD(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":X6(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?X6(u,f)||(e.dtick=LD(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((h=r.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=r.tick0)};function X6(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function LD(e,r){return Math.abs(e/r-1)<.001}_r.prepTicks=function(e,r){var t=dt.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?dt.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=dt.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,_r.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<e._minDtick*2&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}e.ticklabelmode==="period"&&Iae(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),GD(e)};function j6(e){return+e.substring(1)}function Iae(e){var r;function t(){return!(vn(e.dtick)||e.dtick.charAt(0)!=="M")}var a=t(),n=_r.getTickFormat(e);if(n){var i=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(n)||(/%[HI]/.test(n)?(r=Ps,i&&!a&&e.dtick<Ps&&(e.dtick=Ps)):/%p/.test(n)?(r=q0,i&&!a&&e.dtick<q0&&(e.dtick=q0)):/%[Aadejuwx]/.test(n)?(r=xi,i&&!a&&e.dtick<xi&&(e.dtick=xi)):/%[UVW]/.test(n)?(r=xo,i&&!a&&e.dtick<xo&&(e.dtick=xo)):/%[Bbm]/.test(n)?(r=K1,i&&(a?j6(e.dtick)<1:e.dtick<xm)&&(e.dtick="M1")):/%[q]/.test(n)?(r=Z6,i&&(a?j6(e.dtick)<3:e.dtick<_m)&&(e.dtick="M3")):/%[Yy]/.test(n)&&(r=ym,i&&(a?j6(e.dtick)<12:e.dtick<bm)&&(e.dtick="M12")))}a=t(),a&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function Hae(e,r,t){for(var a=0;a<e.length;a++){var n=e[a].value,i=a,o=a+1;a<e.length-1?(i=a,o=a+1):a>0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,c=0;f>=bm?u>=bm&&u<=Tae?c=u:c=ym:t===Z6&&f>=_m?u>=_m&&u<=kae?c=u:c=Z6:f>=xm?u>=xm&&u<=Cae?c=u:c=K1:t===xo&&f>=xo?c=xo:f>=xi?c=xi:t===q0&&f>=q0?c=q0:t===Ps&&f>=Ps&&(c=Ps);var h;c>=u&&(c=u,h=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var m=84,p=0,y=0;y<m;y++){var b=(y+.5)/m;r.maskBreaks(n*(1-b)+b*d)!==Mm&&p++}c*=p/m,c||(e[a].drop=!0),h&&u>xo&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}_r.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||dt.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=dt.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]<u[0],c=Math.min(u[0],u[1]),h=Math.max(u[0],u[1]),d=Math.max(1e3,r._length||0),m=[],p=[],y=[],b=[],C=[],x=r.minor&&(r.minor.ticks||r.minor.showgrid),_=x||s,M=1;M>=(_?0:1);M--){var T=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):_&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var A=M?r:dt.extendFlat({},r,_?r.minor:{minor:{}});if(T?_r.prepMinorTicks(A,r,t):_r.prepTicks(A,t),A.tickmode==="array"){M?(y=[],m=qD(r,!T)):(b=[],p=qD(r,!T));continue}if(A.tickmode==="sync"){y=[],m=Oae(r);continue}var E=tb(u),P=E[0],z=E[1],B=vn(A.dtick),X=a==="log"&&!(B||A.dtick.charAt(0)==="L"),I=_r.tickFirst(A,t);if(M){if(r._tmin=I,I<P!==f)break;(a==="category"||a==="multicategory")&&(z=f?Math.max(-.5,z):Math.min(r._categories.length-.5,z))}var V=null,H=I,Q;if(M){var oe;B?oe=r.dtick:a==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(oe=K1*r.dtick.substring(1)):oe=r._roughDTick,Q=Math.round((r.r2l(H)-r.r2l(r.tick0))/oe)-1}var re=A.dtick,te=a==="linear"?A.r2l(A.tick0):void 0;for(A.rangebreaks&&A._tick0Init!==A.tick0&&(H=W6(H,r),f||(H=_r.tickIncrement(H,re,!f,n))),(M||s)&&o&&(H=_r.tickIncrement(H,re,!f,n),M&&Q--);f?H>=z:H<=z;H=_r.tickIncrement(H,re,f,n)){if(M&&Q++,A.rangebreaks&&!f){if(H<P)continue;if(A.maskBreaks(H)===Mm&&W6(H,A)>=h)break}if(y.length>d||H===V)break;V=H;var ie={value:Rae(H,te,re)};M?(H===I&&(ie.first=!0),X&&H!==(H|0)&&(ie.simpleLabel=!0),i>1&&Q%i&&(ie.skipLabel=!0),y.push(ie)):(ie.minor=!0,b.push(ie))}}if(!b||b.length<3)s=!1;else{var ce=(b[2].value-b[1].value)*(l?-1:1);vne(ce,r.tickformat)||(s=!1,b=b.slice(1))}if(!s)C=y;else{var Me=y.concat(b);o&&y.length&&(Me=Me.slice(1)),Me=Me.sort(function(dr,Ze){return dr.value-Ze.value}).filter(function(dr,Ze,cr){return Ze===0||dr.value!==cr[Ze-1].value});var De=Me.map(function(dr,Ze){return dr.minor===void 0&&!dr.skipLabel?Ze:null}).filter(function(dr){return dr!==null});De.forEach(function(dr){s.map(function(Ze){var cr=dr+Ze;cr>=0&&cr<Me.length&&dt.pushUnique(C,Me[cr])})}),y.forEach(function(dr){dr.skipLabel=C.indexOf(dr)===-1})}if(x){var Ie=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!Ie){for(var Ue=y.map(function(dr){return dr.value}),ke=[],je=0;je<b.length;je++){var W=b[je],ee=W.value;if(Ue.indexOf(ee)===-1){for(var me=!1,K=0;!me&&K<y.length;K++)1e7+y[K].value===1e7+ee&&(me=!0);me||ke.push(W)}}b=ke}}o&&Hae(C,r,r._definedDelta);var J;if(r.rangebreaks){var ue=r._id.charAt(0)==="y",_e=1;r.tickmode==="auto"&&(_e=r.tickfont?r.tickfont.size:12);var Ne=NaN;for(J=y.length-1;J>-1;J--){if(y[J].drop){y.splice(J,1);continue}y[J].value=W6(y[J].value,r);var Je=r.c2p(y[J].value);(ue?Ne>Je-_e:Ne<Je+_e)?y.splice(f?J+1:J,1):Ne=Je}}ob(r)&&Math.abs(u[1]-u[0])===360&&y.pop(),r._tmax=(y[y.length-1]||{}).value,y.length&&(y[y.length-1].last=!0),r._prevDateHead="",r._inCalcTicks=!0;var ar,tr=function(dr){dr.text="",r._prevDateHead=ar};y=y.concat(b);function fr(dr,Ze){var cr=_r.tickText(dr,Ze.value,!1,Ze.simpleLabel,{first:Ze.first,last:Ze.last}),Lr=Ze.periodX;return Lr!==void 0&&(cr.periodX=Lr,(Lr>h||Lr<c)&&(Lr>h&&(cr.periodX=h),Lr<c&&(cr.periodX=c),tr(cr))),cr}var Re;for(J=0;J<y.length;J++){var sr=y[J].minor,hr=y[J].value;sr?(s&&C.indexOf(y[J])!==-1?Re=fr(r,y[J]):Re={x:hr},Re.minor=!0,p.push(Re)):(ar=r._prevDateHead,Re=fr(r,y[J]),y[J].skipLabel&&tr(Re),m.push(Re))}return o&&s&&p.length&&(p[0].noTick=!0),m=m.concat(p),r._inCalcTicks=!1,o&&m.length&&(m[0].noTick=!0),m};function HD(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==Mm})),r}function Oae(e){var r=e._mainAxis,t=[];if(r._vals){for(var a=-1,n=-1,i=0;i<r._vals.length;i++)r._vals[i].noTick||r._vals[i].minor||(a===-1&&(a=i),n=i);for(var o=0;o<r._vals.length;o++)if(!r._vals[o].noTick){var l=r.l2p(r._vals[o].x),s=e.p2l(l),u=_r.tickText(e,s,!1,void 0,{first:o===a,last:o===n});r._vals[o].minor&&(u.minor=!0,u.text=""),t.push(u)}}return t=HD(e,t),t}function qD(e,r){var t=dt.simpleMap(e.range,e.r2l),a=tb(t),n=Math.min(a[0],a[1]),i=Math.max(a[0],a[1]),o=e.type==="category"?e.d2l_noadd:e.d2l;e.type==="log"&&String(e.dtick).charAt(0)!=="L"&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var l=[],s=0;s<=1;s++)if(!(r!==void 0&&(r&&s||r===!1&&!s))&&!(s&&!e.minor)){var u=s?e.minor.tickvals:e.tickvals,f=s?[]:e.ticktext;if(u){dt.isArrayOrTypedArray(f)||(f=[]);var c=-1,h=-1;if(!s)for(var d=0;d<u.length;d++){var m=o(u[d]);m>n&&m<i&&(c===-1&&(c=d),h=d)}for(var p=0;p<u.length;p++){var y=o(u[p]);if(y>n&&y<i){var b=_r.tickText(e,y,!1,String(f[p]),{first:p===c,last:p===h});s&&(b.minor=!0,b.text=""),l.push(b)}}}}return l=HD(e,l),l}var mm=[2,5,10],PD=[1,2,3,6,12],RD=[1,2,5,10,15,30],Uae=[1,2,3,7,14],OD=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],UD=[-.301,0,.301,.699,1],Gae=[15,30,45,90,180];function qs(e,r,t){return r*dt.roundUp(e/r,t)}_r.autoTicks=function(e,r,t){var a;function n(c){return Math.pow(c,Math.floor(Math.log(r)/Math.LN10))}if(e.type==="date"){e.tick0=dt.dateTick0(e.calendar,0);var i=2*r;if(i>ym)r/=ym,a=n(10),e.dtick="M"+12*qs(r,a,mm);else if(i>K1)r/=K1,e.dtick="M"+qs(r,1,PD);else if(i>xi){if(e.dtick=qs(r,xi,e._hasDayOfWeekBreaks?[1,2,7,14]:Uae),!t){var o=_r.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=dt.dateTick0(e.calendar,2):e.tick0=dt.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Ps?e.dtick=qs(r,Ps,PD):i>jv?e.dtick=qs(r,jv,RD):i>wm?e.dtick=qs(r,wm,RD):(a=n(10),e.dtick=qs(r,a,mm))}else if(e.type==="log"){e.tick0=0;var s=dt.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+qs(r,a,mm)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):ob(e)?(e.tick0=0,a=1,e.dtick=qs(r,a,Gae)):(e.tick0=0,a=n(10),e.dtick=qs(r,a,mm));if(e.dtick===0&&(e.dtick=1),!vn(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function GD(e){var r=e.dtick;if(e._tickexponent=0,!vn(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=xi&&n<=10||r>=xi*15)e._tickround="d";else if(r>=jv&&n<=16||r>=Ps)e._tickround="M";else if(r>=wm&&n<=19||r>=jv)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(vn(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);vn(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Q1(e.exponentformat)&&e.exponentformat!=="SI extended"&&!ab(s)||Q1(e.exponentformat)&&e.exponentformat==="SI extended"&&!nb(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}_r.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(vn(r))return dt.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return dt.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?UD:OD,s=e+n*.01,u=dt.roundUp(dt.mod(s,1),l,t);return Math.floor(s)+Math.log(Wo.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};_r.tickFirst=function(e,r){var t=e.r2l||Number,a=dt.simpleMap(e.range,t,void 0,void 0,r),n=a[1]<a[0],i=n?Math.floor:Math.ceil,o=tb(a)[0],l=e.dtick,s=t(e.tick0);if(vn(l)){var u=i((o-s)/l)*l+s;return(e.type==="category"||e.type==="multicategory")&&(u=dt.constrain(u,0,e._categories.length-1)),u}var f=l.charAt(0),c=Number(l.slice(1));if(f==="M"){for(var h=0,d=s,m,p,y;h<10;){if(m=_r.tickIncrement(d,l,n,e.calendar),(m-o)*(d-o)<=0)return n?Math.min(d,m):Math.max(d,m);p=(o-(d+m)/2)/(m-d),y=f+(Math.abs(Math.round(p))||1)*c,d=_r.tickIncrement(d,y,p<0?!n:n,e.calendar),h++}return dt.error("tickFirst did not converge",e),d}else{if(f==="L")return Math.log(i((Math.pow(10,o)-s)/c)*c+s)/Math.LN10;if(f==="D"){var b=l==="D2"?UD:OD,C=dt.roundUp(dt.mod(o,1),b,n);return Math.floor(o)+Math.log(Wo.round(Math.pow(10,C),1))/Math.LN10}else throw"unrecognized dtick "+String(l)}};_r.tickText=function(e,r,t,a,n){var i=!!(n!=null&&n.first),o=!!(n!=null&&n.last),l=YD(e,r),s=e.tickmode==="array",u=t||s,f=e.type,c=f==="category"?e.d2l_noadd:e.d2l,h,d=function(x){var _=e.l2p(x);return _>=0&&_<=e._length?x:null};if(s&&dt.isArrayOrTypedArray(e.ticktext)){var m=dt.simpleMap(e.range,e.r2l),p=(Math.abs(m[1]-m[0])-(e._lBreaks||0))/1e4;for(h=0;h<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[h]))<p);h++);if(h<e.ticktext.length)return l.text=String(e.ticktext[h]),l.xbnd=[d(l.x-.5),d(l.x+e.dtick-.5)],l}function y(x){return x===void 0?!0:t?x==="none":x==="all"?!1:x==="first"?!i:x==="last"?!o:!0}var b=t?"never":e.exponentformat!=="none"&&y(e.showexponent)?"hide":"";if(f==="date"?Yae(e,l,t,u):f==="log"?Vae(e,l,t,u,b):f==="category"?Xae(e,l):f==="multicategory"?jae(e,l,t):ob(e)?Zae(e,l,t,u,b):Wae(e,l,t,u,b),a||(e.tickprefix&&!y(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!y(e.showticksuffix)&&(l.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(l.text)){var C=e.labelalias[l.text];typeof C=="string"&&(l.text=C)}return(e.tickson==="boundaries"||e.showdividers)&&(l.xbnd=[d(l.x-.5),d(l.x+e.dtick-.5)]),l};_r.hoverLabelText=function(e,r,t){t&&(e=dt.extendFlat({},e,{hoverformat:t}));var a=dt.isArrayOrTypedArray(r)?r[0]:r,n=dt.isArrayOrTypedArray(r)?r[1]:void 0;if(n!==void 0&&n!==a)return _r.hoverLabelText(e,a,t)+" - "+_r.hoverLabelText(e,n,t);var i=e.type==="log"&&a<=0,o=_r.tickText(e,e.c2l(i?-a:a),"hover").text;return i?a===0?"0":oc+o:o};function YD(e,r,t){var a=e.tickfont||{};return{x:r,dx:0,dy:0,text:t||"",fontSize:a.size,font:a.family,fontWeight:a.weight,fontStyle:a.style,fontVariant:a.variant,fontTextcase:a.textcase,fontLineposition:a.lineposition,fontShadow:a.shadow,fontColor:a.color}}function Yae(e,r,t,a){var n=e._tickround,i=t&&e.hoverformat||_r.getTickFormat(e);a=!i&&a,a&&(vn(n)?n=4:n={y:"m",m:"d",d:"M",M:"S",S:4}[n]);var o=dt.formatDate(r.x,i,n,e._dateFormat,e.calendar,e._extraFormat),l,s=o.indexOf(`
`);if(s!==-1&&(l=o.slice(s+1),o=o.slice(0,s)),a&&(l!==void 0&&(o==="00:00:00"||o==="00:00")?(o=l,l=""):o.length===8&&(o=o.replace(/:00$/,""))),l)if(t)n==="d"?o+=", "+l:o=l+(o?", "+o:"");else if(!e._inCalcTicks||e._prevDateHead!==l)e._prevDateHead=l,o+="<br>"+l;else{var u=$v(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="<br> ")}r.text=o}function Vae(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=Zv(Math.pow(10,o),e,n,a);else if(vn(i)||s==="D"&&(e.minorloglabels==="complete"||dt.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(dt.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),m=e.exponentformat;m==="power"||Q1(m)&&m!=="SI extended"&&ab(h)||Q1(m)&&m==="SI extended"&&nb(h)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+="<sup>"+(h>0?"":oc)+d+"</sup>"),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=c[0]+m+(h>0?"+":oc)+d:(r.text=Zv(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,dt.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var p=String(r.text).charAt(0);(p==="0"||p==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Xae(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function jae(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Wae(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Zv(r.x,e,n,a)}function Zae(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=$ae(i);if(o[1]>=100)r.text=Zv(dt.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["<sup>",o[0],"</sup>","\u2044","<sub>",o[1],"</sub>","\u03C0"].join(""),l&&(r.text=oc+r.text)}}}else r.text=Zv(r.x,e,n,a)}function $ae(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var VD=["f","p","n","\u03BC","m","","k","M","G","T"],Jae=["q","r","y","z","a",...VD,"P","E","Z","Y","R","Q"],Q1=e=>["SI","SI extended","B"].includes(e);function ab(e){return e>14||e<-15}function nb(e){return e>32||e<-30}function Kae(e,r){return Q1(r)?!!(r==="SI extended"&&nb(e)||r!=="SI extended"&&ab(e)):!1}function Zv(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=_r.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:vn(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};GD(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,oc);o==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e<c)e="0",n=!1;else{if(l&&(e*=Math.pow(10,-l),i+=l),i===0)e=String(Math.round(e));else if(i<0){let d=Math.pow(10,-i);e=String(Math.round(e/d)*d)}else e=e.toFixed(Math.min(20,i)).replace(/\.?0+$/,"");e=dt.numSeparate(e,r._separators,u)}if(l&&o!=="hide"){Kae(l,o)&&(o="power");var h;l<0?h=oc+-l:o!=="power"?h="+"+l:h=String(l),o==="e"||o==="E"?e+=o+h:o==="power"?e+="\xD710<sup>"+h+"</sup>":o==="B"&&l===9?e+="B":Q1(o)&&(e+=o==="SI extended"?Jae[l/3+10]:VD[l/3+5])}return n?oc+e:e}_r.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*K1}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return c===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-h}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||c(h)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r<e.tickformatstops.length;r++)if(l=e.tickformatstops[r],l.enabled&&n(e.dtick,l.dtickrange,t)){o=l;break}break}case"log":{for(r=0;r<e.tickformatstops.length;r++)if(l=e.tickformatstops[r],l.enabled&&i(e.dtick,l.dtickrange)){o=l;break}break}default:}return o?o.value:e.tickformat};_r.getSubplots=function(e,r){var t=e._fullLayout._subplots,a=t.cartesian.concat(t.gl2d||[]),n=r?_r.findSubplotsWithAxis(a,r):a;return n.sort(function(i,o){var l=i.slice(1).split("y"),s=o.slice(1).split("y");return l[0]===s[0]?+l[1]-+s[1]:+l[0]-+s[0]}),n};_r.findSubplotsWithAxis=function(e,r){for(var t=new RegExp(r._id.charAt(0)==="x"?"^"+r._id+"y":r._id+"$"),a=[],n=0;n<e.length;n++){var i=e[n];t.test(i)&&a.push(i)}return a};_r.makeClipPaths=function(e){var r=e._fullLayout;if(!r._hasOnlyLargeSploms){var t={_offset:0,_length:r.width,_id:""},a={_offset:0,_length:r.height,_id:""},n=_r.list(e,"x",!0),i=_r.list(e,"y",!0),o=[],l,s;for(l=0;l<n.length;l++)for(o.push({x:n[l],y:a}),s=0;s<i.length;s++)l===0&&o.push({x:t,y:i[s]}),o.push({x:n[l],y:i[s]});var u=r._clips.selectAll(".axesclip").data(o,function(f){return f.x._id+f.y._id});u.enter().append("clipPath").classed("axesclip",!0).attr("id",function(f){return"clip"+r._uid+f.x._id+f.y._id}).append("rect"),u.exit().remove(),u.each(function(f){Wo.select(this).select("rect").attr({x:f.x._offset||0,y:f.y._offset||0,width:f.x._length||1,height:f.y._length||1})})}};_r.draw=function(e,r,t){var a=e._fullLayout;r==="redraw"&&a._paper.selectAll("g.subplot").each(function(s){var u=s[0],f=a._plots[u];if(f){var c=f.xaxis,h=f.yaxis;f.xaxislayer.selectAll("."+c._id+"tick").remove(),f.yaxislayer.selectAll("."+h._id+"tick").remove(),f.xaxislayer.selectAll("."+c._id+"tick2").remove(),f.yaxislayer.selectAll("."+h._id+"tick2").remove(),f.xaxislayer.selectAll("."+c._id+"divider").remove(),f.yaxislayer.selectAll("."+h._id+"divider").remove(),f.minorGridlayer&&f.minorGridlayer.selectAll("path").remove(),f.gridlayer&&f.gridlayer.selectAll("path").remove(),f.zerolinelayer&&f.zerolinelayer.selectAll("path").remove(),f.zerolinelayerAbove&&f.zerolinelayerAbove.selectAll("path").remove(),a._infolayer.select(".g-"+c._id+"title").remove(),a._infolayer.select(".g-"+h._id+"title").remove()}});var n=!r||r==="redraw"?_r.listIds(e):r,i=_r.list(e),o=i.filter(function(s){return s.autoshift}).map(function(s){return s.overlaying});n.map(function(s){var u=_r.getFromId(e,s);if(u.tickmode==="sync"&&u.overlaying){var f=n.findIndex(function(c){return c===u.overlaying});f>=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return dt.syncOrAsync(n.map(function(s){return function(){if(s){var u=_r.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=_r.drawOne(e,u,t);return u._shiftPusher&&rb(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=dt.simpleMap(u._r,u.r2l),f}}}))};_r.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=_r.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),rb(r,m,a,!0),rb(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=cne(r,a));var p=h[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,C=r._mainMirrorPosition,x=r._vals=_r.calcTicks(r),_=[r.mirror,b,C].join("_");for(i=0;i<x.length;i++)x[i].axInfo=_;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var M={};function T(Re){var sr=u+(Re||"tick");return M[sr]||(M[sr]=tne(r,sr,b)),M[sr]}if(r.visible){var A=_r.makeTransTickFn(r),E=_r.makeTransTickLabelFn(r),P,z,B=r.ticks==="inside",X=r.ticks==="outside";if(r.tickson==="boundaries"){var I=Qae(r,x);z=_r.clipEnds(r,I),P=B?z:I}else z=_r.clipEnds(r,x),P=B&&r.ticklabelmode!=="period"?z:x;var V=r._gridVals=z,H=rne(r,x);if(!s._hasOnlyLargeSploms){var Q=r._subplotsWith,oe={};for(i=0;i<Q.length;i++){o=Q[i],l=s._plots[o];var re=l[c+"axis"],te=re._mainAxis._id;if(!oe[te]){oe[te]=1;var ie=f==="x"?"M0,"+re._offset+"v"+re._length:"M"+re._offset+",0h"+re._length;_r.drawGrid(e,r,{vals:V,counterAxis:re,layer:l.gridlayer.select("."+u),minorLayer:l.minorGridlayer.select("."+u),path:ie,transFn:A}),_r.drawZeroLine(e,r,{counterAxis:re,layer:d?l.zerolinelayerAbove:l.zerolinelayer,path:ie,transFn:A})}}}var ce,Me=_r.getTickSigns(r),De=_r.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var Ie=_r.makeTickPath(r,b,Me[2]),Ue=_r.makeTickPath(r,b,De[2],{minor:!0}),ke,je,W,ee;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?(ke=_r.makeTickPath(r,C,Me[3]),je=_r.makeTickPath(r,C,De[3],{minor:!0}),W=Ie+ke,ee=Ue+je):(ke="",je="",W=Ie,ee=Ue),r.showdividers&&X&&r.tickson==="boundaries"){var me={};for(i=0;i<H.length;i++)me[H[i].x]=1;ce=function(Re){return me[Re.x]?ke:W}}else ce=function(Re){return Re.minor?ee:W}}if(_r.drawTicks(e,r,{vals:P,layer:p,path:ce,transFn:A}),r.mirror==="allticks"){var K=Object.keys(r._linepositions||{});for(i=0;i<K.length;i++){o=K[i],l=s._plots[o];var J=r._linepositions[o]||[],ue=J[0],_e=J[1],Ne=J[2],Je=_r.makeTickPath(r,ue,Ne?Me[0]:De[0],{minor:Ne})+_r.makeTickPath(r,_e,Ne?Me[1]:De[1],{minor:Ne});_r.drawTicks(e,r,{vals:P,layer:l[f+"axislayer"],path:Je,transFn:A})}}var ar=[];if(ar.push(function(){return _r.drawLabels(e,r,{vals:x,layer:p,plotinfo:l,transFn:E,labelFns:_r.makeLabelFns(r,b)})}),r.type==="multicategory"){var tr={x:2,y:10}[f];ar.push(function(){var Re={x:"height",y:"width"}[f],sr=T()[Re]+tr+(r._tickAngles[u+"tick"]?r.tickfont.size*Wv:0);return _r.drawLabels(e,r,{vals:ene(r,x),layer:p,cls:u+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:A,labelFns:_r.makeLabelFns(r,b+sr*Me[4])})}),ar.push(function(){return r._depth=Me[4]*(T("tick2")[r.side]-b),nne(e,r,{vals:H,layer:p,path:_r.makeTickPath(r,b,Me[4],{len:r._depth}),transFn:A})})}else r.title.hasOwnProperty("standoff")&&ar.push(function(){r._depth=Me[4]*(T()[r.side]-b)});var fr=Vv.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(fr&&r.side==="bottom")&&ar.push(function(){return ine(e,r)}),ar.push(function(){var Re=r.side.charAt(0),sr=Fae[r.side].charAt(0),hr=_r.getPxPosition(e,r),dr=X?r.ticklen:0,Ze,cr,Lr,Te;(r.automargin||fr||r._shiftPusher)&&(r.type==="multicategory"?Ze=T("tick2"):(Ze=T(),f==="x"&&Re==="b"&&(r._depth=Math.max(Ze.width>0?Ze.bottom-hr:0,dr))));var Oe=0,Ar=0;if(r._shiftPusher&&(Oe=Math.max(dr,Ze.height>0?Re==="l"?hr-Ze.left:Ze.right-hr:0),r.title.text!==s._dfltTitle[f]&&(Ar=(r._titleStandoff||0)+(r._titleScoot||0),Re==="l"&&(Ar+=ND(r))),r._fullDepth=Math.max(Oe,Ar)),r.automargin){cr={x:0,y:0,r:0,l:0,t:0,b:0};var Br=[0,1],Qe=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Re==="b"?cr[Re]=r._depth:(cr[Re]=r._depth=Math.max(Ze.width>0?hr-Ze.top:0,dr),Br.reverse()),Ze.width>0){var Be=Ze.right-(r._offset+r._length);Be>0&&(cr.xr=1,cr.r=Be);var Xe=r._offset-Ze.left;Xe>0&&(cr.xl=0,cr.l=Xe)}}else if(Re==="l"?(r._depth=Math.max(Ze.height>0?hr-Ze.left:0,dr),cr[Re]=r._depth-Qe):(r._depth=Math.max(Ze.height>0?Ze.right-hr:0,dr),cr[Re]=r._depth+Qe,Br.reverse()),Ze.height>0){var yr=Ze.bottom-(r._offset+r._length);yr>0&&(cr.yb=0,cr.b=yr);var Cr=r._offset-Ze.top;Cr>0&&(cr.yt=1,cr.t=Cr)}cr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[Br[0]],r.title.text!==s._dfltTitle[f]&&(cr[Re]+=ND(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Lr={x:0,y:0,r:0,l:0,t:0,b:0},Lr[sr]=r.linewidth,r.mirror&&r.mirror!==!0&&(Lr[sr]+=dr),r.mirror===!0||r.mirror==="ticks"?Lr[c]=r._anchorAxis.domain[Br[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Lr[c]=[r._counterDomainMin,r._counterDomainMax][Br[1]]))}fr&&(Te=Vv.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(zD(cr,r.automargin),zD(Lr,r.automargin)),$1.autoMargin(e,ib(r),cr),$1.autoMargin(e,jD(r),Lr),$1.autoMargin(e,WD(r),Te)}),dt.syncOrAsync(ar)}};function zD(e,r){if(e){var t=Object.keys(DD).reduce(function(a,n){return r.indexOf(n)!==-1&&DD[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Qae(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(dt.extendFlat({},i,{x:l}))};if(r.length){for(a=0;a<r.length;a++)n(r[a],0);n(r[a-1],1)}return t}function ene(e,r){for(var t=[],a={},n=0;n<r.length;n++){var i=r[n];a[i.text2]?a[i.text2].push(i.x):a[i.text2]=[i.x]}for(var o in a)t.push(YD(e,dt.interp(a[o],.5),o));return t}function rne(e,r){var t=[],a,n,i=r.length&&r[r.length-1].x<r[0].x,o=function(s,u){var f=s.xbnd[u];f!==null&&t.push(dt.extendFlat({},s,{x:f}))};if(e.showdividers&&r.length){for(a=0;a<r.length;a++){var l=r[a];l.text2!==n&&o(l,i?1:0),n=l.text2}o(r[a-1],i?0:1)}return t}function tne(e,r,t){var a,n,i,o;if(e._selections[r].size())a=1/0,n=-1/0,i=1/0,o=-1/0,e._selections[r].each(function(){var s=eb(this);if(s.node().style.display!=="none"){var u=_o.bBox(s.node().parentNode);a=Math.min(a,u.top),n=Math.max(n,u.bottom),i=Math.min(i,u.left),o=Math.max(o,u.right)}});else{var l=_r.makeLabelFns(e,t);a=n=l.yFn({dx:0,dy:0,fontSize:0}),i=o=l.xFn({dx:0,dy:0,fontSize:0})}return{top:a,bottom:n,left:i,right:o,height:n-a,width:o-i}}_r.getTickSigns=function(e,r){var t=e._id.charAt(0),a={x:"top",y:"right"}[t],n=e.side===a?1:-1,i=[-1,1,n,-n],o=r?(e.minor||{}).ticks:e.ticks;return o!=="inside"==(t==="x")&&(i=i.map(function(l){return-l})),e.side&&i.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),i};_r.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return J1(e._offset+e.l2p(r.x),0)}:function(r){return J1(0,e._offset+e.l2p(r.x))}};_r.makeTransTickLabelFn=function(e){var r=ane(e),t=e.ticklabelshift||0,a=e.ticklabelstandoff||0,n=r[0],i=r[1],o=e.range[0]>e.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(h){return J1(n+e._offset+e.l2p(Q6(h))+t,i+a)}:function(h){return J1(i+a,n+e._offset+e.l2p(Q6(h))+t)}};function Q6(e){return e.periodX!==void 0?e.periodX:e.x}function ane(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(m){return r.indexOf(m)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,h=Am,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*lc,h+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,h+=Am),s&&f==="top"&&(h-=d*(1-lc)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[u?c:0,s?h:0]}_r.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};_r.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),h=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,m=0,p=h?e.ticklen:0;if(c?p*=-1:f&&(p=0),h&&(d+=p,t)){var y=dt.deg2rad(t);d=p*Math.cos(y)+1,m=p*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:m},C,x,_,M,T=0,A=e.side,E=e._id.charAt(0),P=e.tickangle,z;if(E==="x")z=!c&&A==="bottom"||c&&A==="top",M=z?1:-1,c&&(M*=-1),C=m*M,x=r+d*M,_=z?1:-.2,Math.abs(P)===90&&(c?_+=Yv:P===-90&&A==="bottom"?_=lc:P===90&&A==="top"?_=Yv:_=.5,T=Yv/2*(P/90)),b.xFn=function(I){return I.dx+C+T*I.fontSize},b.yFn=function(I){return I.dy+x+I.fontSize*_},b.anchorFn=function(I,V){if(f){if(l)return"end";if(s)return"start"}return!vn(V)||V===0||V===180?"middle":V*M<0!==c?"end":"start"},b.heightFn=function(I,V,H){return V<-60||V>60?-.5*H:e.side==="top"!==c?-H:0};else if(E==="y"){if(z=!c&&A==="left"||c&&A==="right",M=z?1:-1,c&&(M*=-1),C=d,x=m*M,_=0,!c&&Math.abs(P)===90&&(P===-90&&A==="left"||P===90&&A==="right"?_=lc:_=.5),c){var B=vn(P)?+P:0;if(B!==0){var X=dt.deg2rad(B);T=Math.abs(Math.sin(X))*lc*M,_=0}}b.xFn=function(I){return I.dx+r-(C+I.fontSize*_)*M+T*I.fontSize},b.yFn=function(I){return I.dy+x+I.fontSize*Yv},b.anchorFn=function(I,V){return vn(V)&&Math.abs(V)===90?"middle":z?"end":"start"},b.heightFn=function(I,V,H){return e.side==="right"&&(V*=-1),V<-30?-H:V<30?-.5*H:0}}return b};function km(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}_r.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,km);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return Xv.stroke(Wo.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return _o.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Cm(r,[BD]),i.attr("transform",t.transFn)};_r.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&_r.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u<o.length;u++){var f=o[u].x;if(s?!f:Math.abs(f)<r.dtick/100)if(o=o.slice(0,u).concat(o.slice(u+1)),s)u--;else break}r._gw=_o.crispRound(e,r.gridwidth,1);for(var c=n?_o.crispRound(e,r.minor.gridwidth,1):0,h=t.layer,d=t.minorLayer,m=1;m>=0;m--){var p=m?h:d;if(p){var y=p.selectAll("path."+a).data(m?o:i,km);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return Xv.stroke(Wo.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return _o.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}Cm(r,[J6,K6])}};_r.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=_r.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return Lae(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Xv.stroke,r.zerolinecolor||Xv.defaultLine).style("stroke-width",_o.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Cm(r,[$6])};_r.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(te){return te.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],km),h=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(te){var ie=Wo.select(this),ce=e._promises.length;ie.call(ic.positionText,s.xFn(te),s.yFn(te)).call(_o.font,{family:te.font,size:te.fontSize,color:te.fontColor,weight:te.fontWeight,style:te.fontStyle,variant:te.fontVariant,textcase:te.fontTextcase,lineposition:te.fontLineposition,shadow:te.fontShadow}).text(te.text).call(ic.convertToTspans,e),e._promises[ce]?h.push(e._promises.pop().then(function(){d(ie,u)})):d(ie,u)}),Cm(r,[SD]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(te){Wo.select(this).select("text").call(ic.positionText,s.xFn(te),s.yFn(te))});function d(te,ie){te.each(function(ce){var Me=Wo.select(this),De=Me.select(".text-math-group"),Ie=s.anchorFn(ce,ie),Ue=t.transFn.call(Me.node(),ce)+(vn(ie)&&+ie!=0?" rotate("+ie+","+s.xFn(ce)+","+(s.yFn(ce)-ce.fontSize/2)+")":""),ke=ic.lineCount(Me),je=Wv*ce.fontSize,W=s.heightFn(ce,vn(ie)?+ie:0,(ke-1)*je);if(W&&(Ue+=J1(0,W)),De.empty()){var ee=Me.select("text");ee.attr({transform:Ue,"text-anchor":Ie}),ee.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var me=_o.bBox(De.node()).width,K=me*{end:-.5,start:.5}[Ie];De.attr("transform",Ue+J1(K,0))}})}r._adjustTickLabelsOverflow=function(){var te=r.ticklabeloverflow;if(!(!te||te==="allow")){var ie=te.indexOf("hide")!==-1,ce=r._id.charAt(0)==="x",Me=0,De=ce?e._fullLayout.width:e._fullLayout.height;if(te.indexOf("domain")!==-1){var Ie=dt.simpleMap(r.range,r.r2l);Me=r.l2p(Ie[0])+r._offset,De=r.l2p(Ie[1])+r._offset}var Ue=Math.min(Me,De),ke=Math.max(Me,De),je=r.side,W=1/0,ee=-1/0;c.each(function(ue){var _e=Wo.select(this),Ne=_e.select(".text-math-group");if(Ne.empty()){var Je=_o.bBox(_e.node()),ar=0;ce?(Je.right>ke||Je.left<Ue)&&(ar=1):(Je.bottom>ke||Je.top+(r.tickangle?0:ue.fontSize/4)<Ue)&&(ar=1);var tr=_e.select("text");ar?ie&&tr.style("display","none"):tr.node().style.display!=="none"&&(tr.style("display",null),je==="bottom"||je==="right"?W=Math.min(W,ce?Je.top:Je.left):W=-1/0,je==="top"||je==="left"?ee=Math.max(ee,ce?Je.bottom:Je.right):ee=1/0)}});for(var me in a._plots){var K=a._plots[me];if(!(r._id!==K.xaxis._id&&r._id!==K.yaxis._id)){var J=ce?K.yaxis:K.xaxis;J&&(J["_visibleLabelMin_"+r._id]=W,J["_visibleLabelMax_"+r._id]=ee)}}}},r._hideCounterAxisInsideTickLabels=function(te){var ie=r._id.charAt(0)==="x",ce=[];for(var Me in a._plots){var De=a._plots[Me];r._id!==De.xaxis._id&&r._id!==De.yaxis._id||ce.push(ie?De.yaxis:De.xaxis)}ce.forEach(function(Ie,Ue){Ie&&$v(Ie)&&(te||[$6,K6,J6,BD,SD]).forEach(function(ke){var je=ke.K==="tick"&&ke.L==="text"&&r.ticklabelmode==="period",W=a._plots[r._mainSubplot],ee;if(ke.K===$6.K){var me=i?W.zerolinelayerAbove:W.zerolinelayer;ee=me.selectAll("."+r._id+"zl")}else ke.K===K6.K?ee=W.minorGridlayer.selectAll("."+r._id):ke.K===J6.K?ee=W.gridlayer.selectAll("."+r._id):ee=W[r._id.charAt(0)+"axislayer"];ee.each(function(){var K=Wo.select(this);ke.L&&(K=K.selectAll(ke.L)),K.each(function(J){var ue=r.l2p(je?Q6(J):J.x)+r._offset,_e=Wo.select(this);ue<r["_visibleLabelMax_"+Ie._id]&&ue>r["_visibleLabelMin_"+Ie._id]?_e.style("display","none"):ke.K==="tick"&&!Ue&&_e.node().style.display!=="none"&&_e.style("display",null)})})})})},d(c,f+1?f:u);function m(){return h.length&&Promise.all(h)}var p=null;function y(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){p=r.autotickangles[0];var te=0,ie=[],ce,Me=1;c.each(function(cr){te=Math.max(te,cr.fontSize);var Lr=r.l2p(cr.x),Te=eb(this),Oe=_o.bBox(Te.node());Me=Math.max(Me,ic.lineCount(Te)),ie.push({top:0,bottom:10,height:10,left:Lr-Oe.width/2,right:Lr+Oe.width/2+2,width:Oe.width+2})});var De=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Ie=l.length,Ue=Math.abs((l[Ie-1].x-l[0].x)*r._m)/(Ie-1),ke=De?Ue/2:Ue,je=De?r.ticklen:te*1.25*Me,W=Math.sqrt(Math.pow(ke,2)+Math.pow(je,2)),ee=ke/W,me=r.autotickangles.map(function(cr){return cr*Math.PI/180}),K=me.find(function(cr){return Math.abs(Math.cos(cr))<=ee});K===void 0&&(K=me.reduce(function(cr,Lr){return Math.abs(Math.cos(cr))<Math.abs(Math.cos(Lr))?cr:Lr},me[0]));var J=K*(180/Math.PI);if(De){var ue=2;for(r.ticks&&(ue+=r.tickwidth/2),ce=0;ce<ie.length;ce++){var _e=l[ce].xbnd,Ne=ie[ce];if(_e[0]!==null&&Ne.left-r.l2p(_e[0])<ue||_e[1]!==null&&r.l2p(_e[1])-Ne.right<ue){p=J;break}}}else{var Je=r.ticklabelposition||"",ar=r.tickson||"",tr=function(cr){return Je.indexOf(cr)!==-1},fr=tr("top"),Re=tr("left"),sr=tr("right"),hr=tr("bottom"),dr=ar!=="boundaries"&&(hr||Re||fr||sr),Ze=dr?(r.tickwidth||0)+2*Am:0;for(ce=0;ce<ie.length-1;ce++)if(dt.bBoxIntersect(ie[ce],ie[ce+1],Ze)){p=J;break}}p&&d(c,p)}}r._selections&&(r._selections[o]=c);var b=[m];r.automargin&&a._redrawFromAutoMarginCount&&f===90?(p=f,b.push(function(){d(c,f)})):b.push(y),r._tickAngles&&b.push(function(){r._tickAngles[o]=p===null?vn(u)?u:0:p});var C=function(){var te=0,ie=0;return c.each(function(ce,Me){var De=eb(this),Ie=De.select(".text-math-group");if(Ie.empty()){var Ue;r._vals[Me]&&(Ue=r._vals[Me].bb||_o.bBox(De.node()),r._vals[Me].bb=Ue),te=Math.max(te,Ue.width),ie=Math.max(ie,Ue.height)}}),{labelsMaxW:te,labelsMaxH:ie}},x=r._anchorAxis;if(x&&(x.autorange||x.insiderange)&&$v(r)&&!qae(a,r._id)&&(a._insideTickLabelsUpdaterange||(a._insideTickLabelsUpdaterange={}),x.autorange&&(a._insideTickLabelsUpdaterange[x._name+".autorange"]=x.autorange,b.push(C)),x.insiderange)){var _=C(),M=r._id.charAt(0)==="y"?_.labelsMaxW:_.labelsMaxH;M+=2*Am,r.ticklabelposition==="inside"&&(M+=r.ticklen||0);var T=r.side==="right"||r.side==="top"?1:-1,A=T===1?1:0,E=T===1?0:1,P=[];P[E]=x.range[E];var z=x.range,B=x.r2p(z[A]),X=x.r2p(z[E]),I=a._insideTickLabelsUpdaterange[x._name+".range"];if(I){var V=x.r2p(I[A]),H=x.r2p(I[E]),Q=T*(r._id.charAt(0)==="y"?1:-1);Q*B<Q*V&&(B=V,P[A]=z[A]=I[A]),Q*X>Q*H&&(X=H,P[E]=z[E]=I[E])}var oe=Math.abs(X-B);oe-M>0?(oe-=M,M*=1+M/oe):M=0,r._id.charAt(0)!=="y"&&(M=-M),P[A]=x.p2r(x.r2p(z[A])+T*M),x.autorange==="min"||x.autorange==="max reversed"?(P[0]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0):(x.autorange==="max"||x.autorange==="min reversed")&&(P[1]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[x._name+".range"]=P}var re=dt.syncOrAsync(b);return re&&re.then&&e._promises.push(re),re};function nne(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,km);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Xv.stroke,r.dividercolor).style("stroke-width",_o.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}_r.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function ND(e){var r=e.title.font.size,t=(e.title.text.match(ic.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(lc+t*Wv):t?r*(t+1)*Wv:r}function ine(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(ic.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*lc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Yv+l*Wv));else{var s=$v(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=_r.getPxPosition(e,r),c,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,h=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var p=r._selections[r._id+"tick"];if(m={selection:p,side:r.side},p&&p.node()&&p.node().parentNode){var y=_o.getTranslate(p.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=o,Aae.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:m,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}_r.shouldShowZeroLine=function(e,r,t){var a=dt.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Mm)&&(XD(r,0)||!one(e,r,t,a)||lne(e,r))};_r.clipEnds=function(e,r){return r.filter(function(t){return XD(e,t.x)})};function XD(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function one(e,r,t,a){var n=t._mainAxis;if(!n)return;var i=e._fullLayout,o=r._id.charAt(0),l=_r.counterLetter(r._id),s=r._offset+(Math.abs(a[0])<Math.abs(a[1])==(o==="x")?0:r._length);function u(m){if(!m.showline||!m.linewidth)return!1;var p=Math.max((m.linewidth+r.zerolinewidth)/2,1);function y(x){return typeof x=="number"&&Math.abs(x-s)<p}if(y(m._mainLinePosition)||y(m._mainMirrorPosition))return!0;var b=m._linepositions||{};for(var C in b)if(y(b[C][0])||y(b[C][1]))return!0}var f=i._plots[t._mainSubplot];if(!(f.mainplotinfo||f).overlays.length)return u(t,s);for(var c=_r.list(e,l),h=0;h<c.length;h++){var d=c[h];if(d._mainAxis===n&&u(d,s))return!0}}function lne(e,r){for(var t=e._fullData,a=r._mainSubplot,n=r._id.charAt(0),i=0;i<t.length;i++){var o=t[i];if(o.visible===!0&&o.xaxis+o.yaxis===a&&(Vv.traceIs(o,"bar-like")&&o.orientation==={x:"h",y:"v"}[n]||o.fill&&o.fill.charAt(o.fill.length-1)===n))return!0}return!1}function eb(e){var r=Wo.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}_r.allowAutoMargin=function(e){for(var r=_r.list(e,"",!0),t=0;t<r.length;t++){var a=r[t];a.automargin&&($1.allowAutoMargin(e,ib(a)),a.mirror&&$1.allowAutoMargin(e,jD(a))),Vv.getComponentMethod("rangeslider","isVisible")(a)&&$1.allowAutoMargin(e,WD(a))}};function ib(e){return e._id+".automargin"}function jD(e){return ib(e)+".mirror"}function WD(e){return e._id+".rangeslider"}_r.swap=function(e,r){for(var t=sne(e,r),a=0;a<t.length;a++)une(e,t[a].x,t[a].y)};function sne(e,r){var t=[],a,n;for(a=0;a<r.length;a++){var i=[],o=e._fullData[r[a]].xaxis,l=e._fullData[r[a]].yaxis;if(!(!o||!l)){for(n=0;n<t.length;n++)(t[n].x.indexOf(o)!==-1||t[n].y.indexOf(l)!==-1)&&i.push(n);if(!i.length){t.push({x:[o],y:[l]});continue}var s=t[i[0]],u;if(i.length>1)for(n=1;n<i.length;n++)u=t[i[n]],gm(s.x,u.x),gm(s.y,u.y);gm(s.x,[o]),gm(s.y,[l])}}return t}function gm(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function une(e,r,t){var a=[],n=[],i=e.layout,o,l;for(o=0;o<r.length;o++)a.push(_r.getFromId(e,r[o]));for(o=0;o<t.length;o++)n.push(_r.getFromId(e,t[o]));var s=Object.keys(Mae),u=["anchor","domain","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(o=0;o<s.length;o++){var c=s[o],h=a[0][c],d=n[0][c],m=!0,p=!1,y=!1;if(!(c.charAt(0)==="_"||typeof h=="function"||u.indexOf(c)!==-1)){for(l=1;l<a.length&&m;l++){var b=a[l][c];c==="type"&&f.indexOf(h)!==-1&&f.indexOf(b)!==-1&&h!==b?p=!0:b!==h&&(m=!1)}for(l=1;l<n.length&&m;l++){var C=n[l][c];c==="type"&&f.indexOf(d)!==-1&&f.indexOf(C)!==-1&&d!==C?y=!0:n[l][c]!==d&&(m=!1)}m&&(p&&(i[a[0]._name].type="linear"),y&&(i[n[0]._name].type="linear"),fne(i,c,a,n,e._fullLayout._dfltTitle))}}for(o=0;o<e._fullLayout.annotations.length;o++){var x=e._fullLayout.annotations[o];r.indexOf(x.xref)!==-1&&t.indexOf(x.yref)!==-1&&dt.swapAttrs(i.annotations[o],["?"])}}function fne(e,r,t,a,n){var i=dt.nestedProperty,o=i(e[t[0]._name],r).get(),l=i(e[a[0]._name],r).get(),s;for(r==="title"&&(o&&o.text===n.x&&(o.text=n.y),l&&l.text===n.y&&(l.text=n.x)),s=0;s<t.length;s++)i(e,t[s]._name+"."+r).set(l);for(s=0;s<a.length;s++)i(e,a[s]._name+"."+r).set(o)}function ob(e){return e._id==="angularaxis"}function W6(e,r){for(var t=r._rangebreaks.length,a=0;a<t;a++){var n=r._rangebreaks[a];if(e>=n.min&&e<n.max)return n.max}return e}function $v(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function Cm(e,r){$v(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function rb(e,r,t,a){var n=e.anchor!=="free"&&(e.overlaying===void 0||e.overlaying===!1)?e._id:e.overlaying,i;a?i=e.side==="right"?r:-r:i=r,n in t||(t[n]={}),e.side in t[n]||(t[n][e.side]=0),t[n][e.side]+=i}function cne(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function vne(e,r){return/%f/.test(r)?e>=Dae:/%L/.test(r)?e>=Sae:/%[SX]/.test(r)?e>=wm:/%M/.test(r)?e>=jv:/%[HI]/.test(r)?e>=Ps:/%p/.test(r)?e>=q0:/%[Aadejuwx]/.test(r)?e>=xi:/%[UVW]/.test(r)?e>=xo:/%[Bbm]/.test(r)?e>=xm:/%[q]/.test(r)?e>=_m:/%[Yy]/.test(r)?e>=bm:!0}});var JD=le((V6e,$D)=>{"use strict";$D.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var lb=le((X6e,KD)=>{"use strict";var hne=JD();KD.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(hne(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var eF=le((j6e,QD)=>{var dne={left:0,top:0};QD.exports=pne;function pne(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=mne(r);return t[0]=a-i.left,t[1]=n-i.top,t}function mne(e){return e===window||e===document||e===document.body?dne:e.getBoundingClientRect()}});var sb=le((W6e,rF)=>{"use strict";var gne=z5();function yne(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}rF.exports=gne&&yne()});var aF=le((Z6e,tF)=>{"use strict";tF.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var oF=le(($6e,iF)=>{"use strict";var nF=mr(),bne=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];iF.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=nF.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=nF.constrain(Math.floor(t*3),0,2),bne[t][r]}});var sF=le((J6e,lF)=>{"use strict";var _ne=qv(),xne=Sp(),wne=Tv().getGraphDiv,Ane=(ov(),Tr(iv)),ub=lF.exports={};ub.wrapped=function(e,r,t){var i;e=wne(e),e._fullLayout&&xne.clear(e._fullLayout._uid+Ane.HOVERID);let a=e._hoverdata;ub.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};ub.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&_ne.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var Zo=le((K6e,vF)=>{"use strict";var Mne=eF(),fb=B5(),Tne=sb(),kne=mr().removeElement,Cne=(Nn(),Tr(zn)),sc=vF.exports={};sc.align=aF();sc.getCursor=oF();var fF=sF();sc.unhover=fF.wrapped;sc.unhoverRaw=fF.raw;sc.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,Tne?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(x,_,M){return Math.abs(x)<M&&(x=0),Math.abs(_)<M&&(_=0),[x,_]}var p=r.clampFn||m;function y(x){t._dragged=!1,t._dragging=!0;var _=uF(x);o=_[0],l=_[1],h=x.target,c=x,d=x.buttons===2||x.ctrlKey,typeof x.clientX=="undefined"&&typeof x.clientY=="undefined"&&(x.clientX=o,x.clientY=l),s=new Date().getTime(),s-t._mouseDownTime<n?a+=1:(a=1,t._mouseDownTime=s),r.prepFn&&r.prepFn(x,o,l),fb&&!d?(f=cF(),f.style.cursor=window.getComputedStyle(i).cursor):fb||(f=document,u=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(i).cursor),document.addEventListener("mouseup",C),document.addEventListener("touchend",C),r.dragmode!==!1&&(x.preventDefault(),document.addEventListener("mousemove",b),document.addEventListener("touchmove",b,{passive:!1}))}function b(x){x.preventDefault();var _=uF(x),M=r.minDrag||Cne.MINDRAG,T=p(_[0]-o,_[1]-l,M),A=T[0],E=T[1];(A||E)&&(t._dragged=!0,sc.unhover(t,x)),t._dragged&&r.moveFn&&!d&&(t._dragdata={element:i,dx:A,dy:E},r.moveFn(A,E))}function C(x){if(delete t._dragdata,r.dragmode!==!1&&(x.preventDefault(),document.removeEventListener("mousemove",b),document.removeEventListener("touchmove",b)),document.removeEventListener("mouseup",C),document.removeEventListener("touchend",C),fb?kne(f):u&&(f.documentElement.style.cursor=u,u=null),!t._dragging){t._dragged=!1;return}if(t._dragging=!1,new Date().getTime()-t._mouseDownTime>n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var _;c.target===h?_=c:(_={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var T=c[M];!_[M]&&typeof T!="function"&&(_[M]=T)})),r.clickFn&&r.clickFn(a,_),d||h.dispatchEvent(new MouseEvent("click",x))}t._dragging=!1,t._dragged=!1}};function cF(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}sc.coverSlip=cF;function uF(e){return Mne(e.changedTouches?e.changedTouches[0]:e,document.body)}});var P0=le((Q6e,hF)=>{"use strict";hF.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var mF=le((ebe,pF)=>{"use strict";var cb=P0(),Jv="data-savedcursor",dF="!!";pF.exports=function(r,t){var a=r.attr(Jv);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i<n.length;i++){var o=n[i];o.indexOf("cursor-")===0&&r.attr(Jv,o.slice(7)).classed(o,!1)}r.attr(Jv)||r.attr(Jv,dF)}cb(r,t)}else a&&(r.attr(Jv,null),a===dF?cb(r):cb(r,a))}});var hb=le((rbe,gF)=>{"use strict";var vb=gi(),Sne=zl();gF.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Sne.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:vb({editType:"legend"}),grouptitlefont:vb({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:vb({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Qv=le(Kv=>{"use strict";Kv.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Kv.isVertical=function(r){return r.orientation!=="h"};Kv.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Kv.getId=function(r){return r._id||"legend"}});var pb=le((abe,yF)=>{"use strict";var Sm=_t(),wo=mr(),Dne=ka(),Fne=Go(),Ene=hb(),Lne=D1(),db=Qv();function qne(e,r,t,a,n){var i=r[e]||{},o=Dne.newContainer(t,e);function l(ie,ce){return wo.coerce(i,o,Ene,ie,ce)}var s=wo.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(ie,ce){var Me=f._input,De=f;return wo.coerce(Me,De,Fne,ie,ce)},h=t.font||{},d=wo.coerceFont(l,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),m=0,p=!1,y="normal",b=(t.shapes||[]).filter(function(ie){return ie.showlegend});function C(ie){return Sm.traceIs(ie,"pie-like")&&ie._length!=null&&(Array.isArray(ie.legend)||Array.isArray(ie.showlegend))}a.filter(C).forEach(function(ie){ie.visible&&m++;for(var ce=0;ce<ie._length;ce++){var Me=(Array.isArray(ie.legend)?ie.legend[ce]:ie.legend)||"legend";Me===e&&((Array.isArray(ie.showlegend)?ie.showlegend[ce]:ie.showlegend)||ie._dfltShowLegend)&&(p=!0,m++)}if(e==="legend"&&ie._length>ie.legend.length)for(var De=ie.legend.length;De<ie._length;De++)p=!0,m++});for(var x=a.concat(b).filter(function(ie){return!C(f)&&e===(ie.legend||"legend")}),_=0;_<x.length;_++)if(f=x[_],!!f.visible){var M=f._isShape;(f.showlegend||f._dfltShowLegend&&!(f._module&&f._module.attributes&&f._module.attributes.showlegend&&f._module.attributes.showlegend.dflt===!1))&&(m++,f.showlegend&&(p=!0,(!M&&Sm.traceIs(f,"pie-like")||f._input.showlegend===!0)&&m++),wo.coerceFont(c,"legendgrouptitle.font",d)),(!M&&Sm.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(y=db.isGrouped({traceorder:y})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(y=db.isReversed({traceorder:y})?"reversed+grouped":"grouped")}var T=wo.coerce(r,t,Lne,"showlegend",t.showlegend||p&&m>(e==="legend"?1:0));if(T===!1&&(t[e]=void 0),T===!1&&!i.uirevision||(l("uirevision",t.uirevision),T===!1))return;l("borderwidth");var A=l("orientation"),E=l("yref"),P=l("xref"),z=A==="h",B=E==="paper",X=P==="paper",I,V,H,Q="left";z?(I=0,Sm.getComponentMethod("rangeslider","isVisible")(r.xaxis)?B?(V=1.1,H="bottom"):(V=1,H="top"):B?(V=-.1,H="top"):(V=0,H="bottom")):(V=1,H="auto",X?I=1.02:(I=1,Q="right")),wo.coerce(i,o,{x:{valType:"number",editType:"legend",min:X?-2:0,max:X?3:1,dflt:I}},"x"),wo.coerce(i,o,{y:{valType:"number",editType:"legend",min:B?-2:0,max:B?3:1,dflt:V}},"y"),l("traceorder",y),db.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick");let oe=l("groupclick");l("groupdoubleclick",oe),l("xanchor",Q),l("yanchor",H),l("maxheight"),l("valign"),wo.noneOrAll(i,o,["x","y"]);var re=l("title.text");if(re){l("title.side",z?"left":"top");var te=wo.extendFlat({},s,{size:wo.bigFont(s.size)});wo.coerceFont(l,"title.font",te);let ie=n>1;l("titleclick",ie?"toggle":!1),l("titledoubleclick",ie?"toggleothers":!1)}}yF.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n<o.length;n++){var l=o[n];if(l.showlegend){var s={_input:l._input,visible:l.visible,showlegend:l.showlegend,legend:l.legend};i.push(s)}}var u=["legend"];for(n=0;n<i.length;n++)Array.isArray(i[n].legend)?u=u.concat(i[n].legend):wo.pushUnique(u,i[n].legend);for(t._legends=[],n=0;n<u.length;n++){var f=u[n];qne(f,r,t,i,u.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var yb=le(gb=>{"use strict";var R0=_t(),mb=mr(),Pne=mb.pushUnique,Rne=Qv(),bF=!0;gb.handleItemClick=function(r,t,a,n,i){var o=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&bF&&t.data&&t._context.showTips&&(mb.notifier(mb._(t,"Double-click on legend to isolate one trace"),"long",t),bF=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let h=(o.shapes||[]).filter(tr=>tr.showlegend||tr.legendgroup);var d=c.concat(h),m=l.trace;m._isShape&&(m=o.shapes[m.index]);var p=m.legendgroup,y,b,C,x,_,M,T={},A=[],E=[],P=[];function z(tr,fr){var Re=A.indexOf(tr),sr=T.visible;return sr||(sr=T.visible=[]),A.indexOf(tr)===-1&&(A.push(tr),Re=A.length-1),sr[Re]=fr,Re}var B=(o.shapes||[]).map(function(tr){return tr._input}),X=!1;function I(tr,fr){B[tr].visible=fr,X=!0}function V(tr,fr){if(!(l.groupTitle&&!u)){var Re=tr._isShape,sr=tr.index;sr===void 0&&(sr=tr._index);var hr=tr.visible===!1?!1:fr;Re?I(sr,hr):z(sr,hr)}}var H=m.legend;if(!m._isShape&&R0.traceIs(m,"pie-like")){var Q=l.label,oe=f.indexOf(Q);if(n==="toggle")oe===-1?f.push(Q):f.splice(oe,1);else if(n==="toggleothers"){var re=oe!==-1,te=[];for(y=0;y<t.calcdata.length;y++){var ie=t.calcdata[y];for(b=0;b<ie.length;b++){var ce=ie[b],Me=ce.label;H===ie[0].trace.legend&&Q!==Me&&(f.indexOf(Me)===-1&&(re=!0),Pne(f,Me),te.push(Me))}}if(!re)for(var De=0;De<te.length;De++){var Ie=f.indexOf(te[De]);Ie!==-1&&f.splice(Ie,1)}}R0.call("_guiRelayout",t,"hiddenlabels",f)}else{var Ue=p&&p.length,ke=[],je;if(Ue)for(y=0;y<d.length;y++)je=d[y],je.visible&&je.legendgroup===p&&ke.push(y);if(n==="toggle"){var W;switch(m.visible){case!0:W="legendonly";break;case!1:W=!1;break;case"legendonly":W=!0;break}if(Ue)if(u)for(y=0;y<d.length;y++){var ee=d[y];ee.visible!==!1&&ee.legendgroup===p&&V(ee,W)}else V(m,W);else V(m,W)}else if(n==="toggleothers"){var me,K,J,ue,_e,Ne=!0;let tr=Ue&&u;for(y=0;y<d.length;y++)if(_e=d[y],me=_e===m,J=_e.showlegend!==!0,!(me||J)&&(K=tr&&_e.legendgroup===p,!K&&_e.legend===H&&_e.visible===!0&&!R0.traceIs(_e,"notLegendIsolatable"))){Ne=!1;break}for(y=0;y<d.length;y++)if(_e=d[y],!(_e.visible===!1||_e.legend!==H)&&!R0.traceIs(_e,"notLegendIsolatable"))switch(m.visible){case"legendonly":V(_e,!0);break;case!0:ue=Ne?!0:"legendonly",me=_e===m,J=_e.showlegend!==!0&&!_e.legendgroup,K=me||tr&&_e.legendgroup===p,V(_e,K||J?!0:ue);break}}for(y=0;y<E.length;y++)if(C=E[y],!!C){var Je=C.constructUpdate(),ar=Object.keys(Je);for(b=0;b<ar.length;b++)x=ar[b],M=T[x]=T[x]||[],M[P[y]]=Je[x]}for(_=Object.keys(T),y=0;y<_.length;y++)for(x=_[y],b=0;b<A.length;b++)T[x].hasOwnProperty(b)||(T[x][b]=void 0);X?R0.call("_guiUpdate",t,T,{shapes:B},A):R0.call("_guiRestyle",t,T,A)}};gb.handleTitleClick=function(r,t,a){let n=r._fullLayout,i=r._fullData,o=Rne.getId(t),l=(n.shapes||[]).filter(b=>b.showlegend||b.legendgroup),s=i.concat(l);function u(b){return(b.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(C){return u(C)&&C.visible===!0}),c=!1;else{let b=s.some(function(C){return!u(C)&&C.visible===!0&&C.showlegend!==!1});f=!0,c=!b}let h={visible:[]},d=[],m=(n.shapes||[]).map(function(b){return b._input});for(var p=!1,y=0;y<s.length;y++){let b=s[y],C=u(b);if(!C){let M=b.showlegend!==!0&&!b.legendgroup;if(a==="toggle"||M)continue}let _=(C?f:c)?!0:"legendonly";b.visible!==!1&&b.visible!==_&&(b._isShape?(m[b._index].visible=_,p=!0):(d.push(b.index),h.visible.push(_)))}p?R0.call("_guiUpdate",r,h,{shapes:m},d):d.length&&R0.call("_guiRestyle",r,h,d)}});var bb={};Ha(bb,{itemGap:()=>Une,scrollBarColor:()=>Bne,scrollBarEnterAttrs:()=>Hne,scrollBarMargin:()=>Ine,scrollBarMinHeight:()=>Nne,scrollBarWidth:()=>zne,titlePad:()=>One});var zne,Nne,Bne,Ine,Hne,One,Une,_b=Ia(()=>{"use strict";zne=6,Nne=20,Bne="#808BA4",Ine=4,Hne={rx:20,ry:3,width:0,height:0},One=2,Une=5});var wF=le((ibe,xF)=>{"use strict";var{isArrayOrTypedArray:xb}=$i(),_F=_t(),wb=Qv();xF.exports=function(r,t,a){var n=t._inHover,i=wb.isGrouped(t),o=wb.isReversed(t),l={},s=[],u=!1,f={},c=0,h=0,d,m;function p(ie,ce,Me){if(t.visible!==!1&&!(a&&ie!==t._id))if(ce===""||!wb.isGrouped(t)){var De="~~i"+c;s.push(De),l[De]=[Me],c++}else s.indexOf(ce)===-1?(s.push(ce),u=!0,l[ce]=[Me]):l[ce].push(Me)}for(d=0;d<r.length;d++){var y=r[d],b=y[0],C=b.trace,x=C.legend,_=C.legendgroup;if(!(!n&&(!C.visible||!C.showlegend)))if(_F.traceIs(C,"pie-like")){var M=Array.isArray(C.legend),T=Array.isArray(C.showlegend);for(f[_]||(f[_]={}),m=0;m<y.length;m++)if(!(T&&C.showlegend[y[m].i]===!1)){M&&(x=C.legend[y[m].i]||"legend");var A=y[m].label;f[_][A]||(p(x,_,{label:A,color:y[m].color,i:y[m].i,trace:C,pts:y[m].pts}),f[_][A]=!0,h=Math.max(h,(A||"").length))}}else p(x,_,b),h=Math.max(h,(C.name||"").length)}if(!s.length)return[];var E=!u||!i,P=[];for(d=0;d<s.length;d++){var z=l[s[d]];E?P.push(z[0]):P.push(z)}for(E&&(P=[P]),d=0;d<P.length;d++){var B=1/0;for(m=0;m<P[d].length;m++){var X=P[d][m].trace.legendrank,I=xb(X)?Math.min(X):X;B>I&&(B=I)}P[d][0]._groupMinRank=B,P[d][0]._preGroupSort=d}var V=function(ie,ce){return ie[0]._groupMinRank-ce[0]._groupMinRank||ie[0]._preGroupSort-ce[0]._preGroupSort},H=function(ie,ce){var Me=xb(ie.trace.legendrank)?ie.trace.legendrank[ie.i]:ie.trace.legendrank,De=xb(ce.trace.legendrank)?ce.trace.legendrank[ce.i]:ce.trace.legendrank;return Me-De||ie._preSort-ce._preSort};for(P.forEach(function(ie,ce){ie[0]._preGroupSort=ce}),P.sort(V),d=0;d<P.length;d++){P[d].forEach(function(ie,ce){ie._preSort=ce}),P[d].sort(H);var Q=P[d][0].trace,oe=null;for(m=0;m<P[d].length;m++){var re=P[d][m].trace.legendgrouptitle;if(re&&re.text){oe=re,n&&(re.font=t._groupTitleFont);break}}if(o&&P[d].reverse(),oe){var te=!1;for(m=0;m<P[d].length;m++)if(_F.traceIs(P[d][m].trace,"pie-like")){te=!0;break}P[d].unshift({i:-1,groupTitle:oe,noClick:te,trace:{showlegend:Q.showlegend,legendgroup:Q.legendgroup,legend:Q.legend,visible:t.groupclick==="toggleitem"?!0:Q.visible}})}for(m=0;m<P[d].length;m++)P[d][m]=[P[d][m]]}return t._lgroupsLength=P.length,t._maxNameLength=h,P}});var Ab=le(uc=>{"use strict";var Dm=mr();function AF(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}uc.formatPiePercent=function(r,t){var a=AF((r*100).toPrecision(3));return Dm.numSeparate(a,t)+"%"};uc.formatPieValue=function(r,t){var a=AF(r.toPrecision(10));return Dm.numSeparate(a,t)};uc.getFirstFilled=function(r,t){if(Dm.isArrayOrTypedArray(r))for(var a=0;a<t.length;a++){var n=r[t[a]];if(n||n===0||n==="")return n}};uc.castOption=function(r,t){if(Dm.isArrayOrTypedArray(r))return uc.getFirstFilled(r,t);if(r)return r};uc.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var TF=le((lbe,MF)=>{"use strict";var Gne=ha(),Yne=qt();MF.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Gne.pointStyle(r,a,n,t):Yne.fill(r,t.color)}});var DF=le((sbe,SF)=>{"use strict";var kF=qt(),CF=Ab().castOption,Vne=TF();SF.exports=function(r,t,a,n){var i=a.marker.line,o=CF(i.color,t.pts)||kF.defaultLine,l=CF(i.width,t.pts)||0;r.call(Vne,t,a,n).style("stroke-width",l).call(kF.stroke,o)}});var Cb=le((ube,RF)=>{"use strict";var wi=Ft(),Mb=_t(),ui=mr(),FF=ui.strTranslate,Ao=ha(),$o=qt(),Tb=Ds().extractOpts,Fm=_i(),Xne=DF(),jne=Ab().castOption,Wne=(_b(),Tr(bb)),EF=12,LF=5,fc=2,Zne=10,e2=5;RF.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+Wne.itemGap*2)/2,s=FF(l,0),u=function(A,E,P,z){var B;if(A+1)B=A;else if(E&&E.width>0)B=E.width;else return 0;return i?z:Math.min(B,P)};r.each(function(A){var E=wi.select(this),P=ui.ensureSingle(E,"g","layers");P.style("opacity",A[0].trace.opacity);var z=a.indentation,B=a.valign,X=A[0].lineHeight,I=A[0].height;if(B==="middle"&&z===0||!X||!I)P.attr("transform",null);else{var V={top:1,bottom:-1}[B],H=V*(.5*(X-I+3))||0,Q=a.indentation;P.attr("transform",FF(Q,H))}var oe=P.selectAll("g.legendfill").data([A]);oe.enter().append("g").classed("legendfill",!0);var re=P.selectAll("g.legendlines").data([A]);re.enter().append("g").classed("legendlines",!0);var te=P.selectAll("g.legendsymbols").data([A]);te.enter().append("g").classed("legendsymbols",!0),te.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(T).each(h).each(m).each(d).each(y).each(_).each(x).each(f).each(c).each(b).each(C);function f(A){var E=qF(A),P=E.showFill,z=E.showLine,B=E.showGradientLine,X=E.showGradientFill,I=E.anyFill,V=E.anyLine,H=A[0],Q=H.trace,oe,re,te=Tb(Q),ie=te.colorscale,ce=te.reversescale,Me=function(ee){if(ee.size())if(P)Ao.fillGroupStyle(ee,t,!0);else{var me="legendfill-"+Q.uid;Ao.gradient(ee,t,me,kb(ce),ie,"fill")}},De=function(ee){if(ee.size()){var me="legendline-"+Q.uid;Ao.lineGroupStyle(ee),Ao.gradient(ee,t,me,kb(ce),ie,"stroke")}},Ie=Fm.hasMarkers(Q)||!I?"M5,0":V?"M5,-2":"M5,-3",Ue=wi.select(this),ke=Ue.select(".legendfill").selectAll("path").data(P||X?[A]:[]);if(ke.enter().append("path").classed("js-fill",!0),ke.exit().remove(),ke.attr("d",Ie+"h"+o+"v6h-"+o+"z").call(Me),z||B){var je=u(void 0,Q.line,Zne,LF);re=ui.minExtend(Q,{line:{width:je}}),oe=[ui.minExtend(H,{trace:re})]}var W=Ue.select(".legendlines").selectAll("path").data(z||B?[oe]:[]);W.enter().append("path").classed("js-line",!0),W.exit().remove(),W.attr("d",Ie+(B?"l"+o+",0.0001":"h"+o)).call(z?Ao.lineGroupStyle:De)}function c(A){var E=qF(A),P=E.anyFill,z=E.anyLine,B=E.showLine,X=E.showMarker,I=A[0],V=I.trace,H=!X&&!z&&!P&&Fm.hasText(V),Q,oe;function re(je,W,ee,me){var K=ui.nestedProperty(V,je).get(),J=ui.isArrayOrTypedArray(K)&&W?W(K):K;if(i&&J&&me!==void 0&&(J=me),ee){if(J<ee[0])return ee[0];if(J>ee[1])return ee[1]}return J}function te(je){return I._distinct&&I.index&&je[I.index]?je[I.index]:je[0]}if(X||H||B){var ie={},ce={};if(X){ie.mc=re("marker.color",te);var Me=V.type==="scattermap";ie.mx=Me?"circle":re("marker.symbol",te),ie.mo=re("marker.opacity",ui.mean,[.2,1]),ie.mlc=re("marker.line.color",te),ie.mlw=re("marker.line.width",ui.mean,[0,5],fc),ie.mld=re("marker.line.dash",te),ce.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var De=re("marker.size",ui.mean,[2,16],EF);ie.ms=De,ce.marker.size=De}B&&(ce.line={width:re("line.width",te,[0,10],LF)}),H&&(ie.tx="Aa",ie.tp=re("textposition",te),ie.ts=10,ie.tc=re("textfont.color",te),ie.tf=re("textfont.family",te),ie.tw=re("textfont.weight",te),ie.ty=re("textfont.style",te),ie.tv=re("textfont.variant",te),ie.tC=re("textfont.textcase",te),ie.tE=re("textfont.lineposition",te),ie.tS=re("textfont.shadow",te)),Q=[ui.minExtend(I,ie)],oe=ui.minExtend(V,ce),oe.selectedpoints=null,oe.texttemplate=null}var Ie=wi.select(this).select("g.legendpoints"),Ue=Ie.selectAll("path.scatterpts").data(X?Q:[]);Ue.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Ue.exit().remove(),Ue.call(Ao.pointStyle,oe,t),X&&(Q[0].mrc=3);var ke=Ie.selectAll("g.pointtext").data(H?Q:[]);ke.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),ke.exit().remove(),ke.selectAll("text").call(Ao.textPointStyle,oe,t)}function h(A){var E=A[0].trace,P=E.type==="waterfall";if(A[0]._distinct&&P){var z=A[0].trace[A[0].dir].marker;return A[0].mc=z.color,A[0].mlw=z.line.width,A[0].mlc=z.line.color,p(A,this,"waterfall")}var B=[];E.visible&&P&&(B=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var X=wi.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(B);X.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(I){var V=wi.select(this),H=E[I[0]].marker,Q=u(void 0,H.line,e2,fc);V.attr("d",I[1]).style("stroke-width",Q+"px").call($o.fill,H.color),Q&&V.call($o.stroke,H.line.color)})}function d(A){p(A,this)}function m(A){p(A,this,"funnel")}function p(A,E,P){var z=A[0].trace,B=z.marker||{},X=B.line||{},I=B.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",V=P?z.visible&&z.type===P:Mb.traceIs(z,"bar"),H=wi.select(E).select("g.legendpoints").selectAll("path.legend"+P).data(V?[A]:[]);H.enter().append("path").classed("legend"+P,!0).attr("d",I).attr("transform",s),H.exit().remove(),H.each(function(Q){var oe=wi.select(this),re=Q[0],te=u(re.mlw,B.line,e2,fc);oe.style("stroke-width",te+"px");var ie=re.mcc;if(!a._inHover&&"mc"in re){var ce=Tb(B),Me=ce.mid;Me===void 0&&(Me=(ce.max+ce.min)/2),ie=Ao.tryColorscale(B,"")(Me)}var De=ie||re.mc||B.color,Ie=B.pattern,Ue=Ao.getPatternAttr,ke=Ie&&(Ue(Ie.shape,0,"")||Ue(Ie.path,0,""));if(ke){var je=Ue(Ie.bgcolor,0,null),W=Ue(Ie.fgcolor,0,null),ee=Ie.fgopacity,me=PF(Ie.size,8,10),K=PF(Ie.solidity,.5,1),J="legend-"+z.uid;oe.call(Ao.pattern,"legend",t,J,ke,me,K,ie,Ie.fillmode,je,W,ee)}else oe.call($o.fill,De);te&&$o.stroke(oe,re.mlc||X.color)})}function y(A){var E=A[0].trace,P=wi.select(this).select("g.legendpoints").selectAll("path.legendbox").data(E.visible&&Mb.traceIs(E,"box-violin")?[A]:[]);P.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),P.exit().remove(),P.each(function(){var z=wi.select(this);if((E.boxpoints==="all"||E.points==="all")&&$o.opacity(E.fillcolor)===0&&$o.opacity((E.line||{}).color)===0){var B=ui.minExtend(E,{marker:{size:i?EF:ui.constrain(E.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});P.call(Ao.pointStyle,B,t)}else{var X=u(void 0,E.line,e2,fc);z.style("stroke-width",X+"px").call($o.fill,E.fillcolor),X&&$o.stroke(z,E.line.color)}})}function b(A){var E=A[0].trace,P=wi.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(E.visible&&E.type==="candlestick"?[A,A]:[]);P.enter().append("path").classed("legendcandle",!0).attr("d",function(z,B){return B?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(z,B){var X=wi.select(this),I=E[B?"increasing":"decreasing"],V=u(void 0,I.line,e2,fc);X.style("stroke-width",V+"px").call($o.fill,I.fillcolor),V&&$o.stroke(X,I.line.color)})}function C(A){var E=A[0].trace,P=wi.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(E.visible&&E.type==="ohlc"?[A,A]:[]);P.enter().append("path").classed("legendohlc",!0).attr("d",function(z,B){return B?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(z,B){var X=wi.select(this),I=E[B?"increasing":"decreasing"],V=u(void 0,I.line,e2,fc);X.style("fill","none").call(Ao.dashLine,I.line.dash,V),V&&$o.stroke(X,I.line.color)})}function x(A){M(A,this,"pie")}function _(A){M(A,this,"funnelarea")}function M(A,E,P){var z=A[0],B=z.trace,X=P?B.visible&&B.type===P:Mb.traceIs(B,P),I=wi.select(E).select("g.legendpoints").selectAll("path.legend"+P).data(X?[A]:[]);if(I.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var V=B.marker||{},H=u(jne(V.line.width,z.pts),V.line,e2,fc),Q="pieLike",oe=ui.minExtend(B,{marker:{line:{width:H}}},Q),re=ui.minExtend(z,{trace:oe},Q);Xne(I,re,oe,t)}}function T(A){var E=A[0].trace,P,z=[];if(E.visible)switch(E.type){case"histogram2d":case"heatmap":z=[["M-15,-2V4H15V-2Z"]],P=!0;break;case"choropleth":case"choroplethmap":z=[["M-6,-6V6H6V-6Z"]],P=!0;break;case"densitymap":z=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],P="radial";break;case"cone":z=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],P=!1;break;case"streamtube":z=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],P=!1;break;case"surface":z=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],P=!0;break;case"mesh3d":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!1;break;case"volume":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!0;break;case"isosurface":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],P=!1;break}var B=wi.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(z);B.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(X,I){var V=wi.select(this),H=Tb(E),Q=H.colorscale,oe=H.reversescale,re=function(Me){if(Me.size()){var De="legendfill-"+E.uid;Ao.gradient(Me,t,De,kb(oe,P==="radial"),Q,"fill")}},te;if(Q){if(!P){var ce=Q.length;te=I===0?Q[oe?ce-1:0][1]:I===1?Q[oe?0:ce-1][1]:Q[Math.floor((ce-1)/2)][1]}}else{var ie=E.vertexcolor||E.facecolor||E.color;te=ui.isArrayOrTypedArray(ie)?ie[I]||ie[0]:ie}V.attr("d",X[0]),te?V.call($o.fill,te):V.call(re)})}};function kb(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function qF(e){var r=e[0].trace,t=r.contours,a=Fm.hasLines(r)||r.visible&&r.type==="quiver",n=Fm.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function PF(e,r,t){return e&&ui.isArrayOrTypedArray(e)?r:e>t?t:e}});var Eb=le((fbe,YF)=>{"use strict";var Pi=Ft(),hn=mr(),Db=Sn(),cc=_t(),qm=qv(),Sb=Zo(),dn=ha(),eh=qt(),vc=si(),zF=yb().handleItemClick,NF=yb().handleTitleClick,bn=(_b(),Tr(bb)),Fb=(li(),Tr(oi)),UF=Fb.LINE_SPACING,t2=Fb.FROM_TL,BF=Fb.FROM_BR,IF=wF(),$ne=Cb(),a2=Qv(),r2=1,Jne=/^legend[0-9]*$/;YF.exports=function(r,t){if(t)HF(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Pi.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(Jne)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o<n.length;o++){var l=n[o],s=r._fullLayout[l];HF(r,s)}}};function Kne(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var a=r.title.font,n=a.size*UF,i=0,o=e.node(),l=dn.bBox(o).width;r.title.side==="top center"?i=.5*(r._width-2*t-2*bn.titlePad-l):r.title.side==="top right"&&(i=r._width-2*t-2*bn.titlePad-l),vc.positionText(e,t+bn.titlePad+i,t+n)}}function HF(e,r){var t=r||{},a=e._fullLayout,n=a2.getId(t),i,o,l=t._inHover;if(l?(o=t.layer,i="hover"):(o=a._infolayer,i=n),!!o){i+=a._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0);var s;if(l){if(!t.entries)return;s=IF(t.entries,t)}else{for(var u=(e.calcdata||[]).slice(),f=a.shapes,c=0;c<f.length;c++){var h=f[c];if(h.showlegend){var d={_isShape:!0,index:h._index,name:h.name||h.label.text||"shape "+h._index,legend:h.legend,legendgroup:h.legendgroup,legendgrouptitle:h.legendgrouptitle,legendrank:h.legendrank,legendwidth:h.legendwidth,showlegend:h.showlegend,visible:h.visible,opacity:h.opacity,mode:h.type==="line"?"lines":"markers",line:h.line,marker:{line:h.line,color:h.fillcolor,size:12,symbol:h.type==="rect"?"square":h.type==="circle"?"circle":"hexagon2"}};u.push([{trace:d}])}}s=a.showlegend&&IF(u,t,a._legends.length>1)}var m=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Db.autoMargin(e,n);var p=hn.ensureSingle(o,"g",n,function(E){l||E.attr("pointer-events","all")}),y=hn.ensureSingleById(a._topdefs,"clipPath",i,function(E){E.append("rect")}),b=hn.ensureSingle(p,"rect","bg",function(E){E.attr("shape-rendering","crispEdges")});b.call(eh.stroke,t.bordercolor).call(eh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=hn.ensureSingle(p,"g","scrollbox"),x=t.title;t._titleWidth=0,t._titleHeight=0;var _;x.text?(_=hn.ensureSingle(C,"text",n+"titletext"),_.attr("text-anchor","start").call(dn.font,x.font).text(x.text),Lm(_,C,e,t,r2),!l&&(t.titleclick||t.titledoubleclick)&&rie(C,e,t,n)):(C.selectAll("."+n+"titletext").remove(),C.selectAll("."+n+"titletoggle").remove());var M=hn.ensureSingle(p,"rect","scrollbar",function(E){E.attr(bn.scrollBarEnterAttrs).call(eh.fill,bn.scrollBarColor)}),T=C.selectAll("g.groups").data(s);T.enter().append("g").attr("class","groups"),T.exit().remove();var A=T.selectAll("g.traces").data(hn.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.style("opacity",function(E){let P=E[0],z=P.trace;if(P.groupTitle){let B=z.legendgroup,X=(a.shapes||[]).filter(function(V){return V.showlegend});return e._fullData.concat(X).some(function(V){return V.legendgroup===B&&(V.legend||"legend")===n&&V.visible===!0})?1:.5}return cc.traceIs(z,"pie-like")?m.indexOf(E[0].label)!==-1?.5:1:z.visible==="legendonly"?.5:1}).each(function(){Pi.select(this).call(Qne,e,t)}).call($ne,e,t).each(function(E){l||E[0].groupTitle&&t.groupclick==="toggleitem"||Pi.select(this).call(eie,e,n)}),hn.syncOrAsync([Db.previousPromises,function(){return nie(e,T,A,t,C)},function(){var E=a._size,P=t.borderwidth,z=t.xref==="paper",B=t.yref==="paper";if(x.text){let Ne=(a.shapes||[]).filter(function(ar){return ar.showlegend}),Je=e._fullData.concat(Ne).some(function(ar){let tr=ar.legend||"legend";var fr=Array.isArray(tr)?tr.includes(n):tr===n;return fr&&ar.visible===!0});_.style("opacity",Je?1:.5)}if(!l){var X,I;z?X=E.l+E.w*t.x-t2[Pm(t)]*t._width:X=a.width*t.x-t2[Pm(t)]*t._width,B?I=E.t+E.h*(1-t.y)-t2[Rm(t)]*t._effHeight:I=a.height*(1-t.y)-t2[Rm(t)]*t._effHeight;var V=iie(e,n,X,I);if(V)return;if(a.margin.autoexpand){var H=X,Q=I;X=z?hn.constrain(X,0,a.width-t._width):H,I=B?hn.constrain(I,0,a.height-t._effHeight):Q,X!==H&&hn.log("Constrain "+n+".x to make legend fit inside graph"),I!==Q&&hn.log("Constrain "+n+".y to make legend fit inside graph")}dn.setTranslate(p,X,I)}if(M.on(".drag",null),p.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var oe=t._effHeight;l&&(oe=t._height),b.attr({width:t._width-P,height:oe-P,x:P/2,y:P/2}),dn.setTranslate(C,0,0),y.select("rect").attr({width:t._width-2*P,height:oe-2*P,x:P,y:P}),dn.setClipUrl(C,i,e),dn.setRect(M,0,0,0,0),delete t._scrollY}else{var re=Math.max(bn.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),te=t._effHeight-re-2*bn.scrollBarMargin,ie=t._height-t._effHeight,ce=te/ie,Me=Math.min(t._scrollY||0,ie);b.attr({width:t._width-2*P+bn.scrollBarWidth+bn.scrollBarMargin,height:t._effHeight-P,x:P/2,y:P/2}),y.select("rect").attr({width:t._width-2*P+bn.scrollBarWidth+bn.scrollBarMargin,height:t._effHeight-2*P,x:P,y:P+Me}),dn.setClipUrl(C,i,e),me(Me,re,ce),p.on("wheel",function(){Me=hn.constrain(t._scrollY+Pi.event.deltaY/ie*te,0,ie),me(Me,re,ce),Me!==0&&Me!==ie&&Pi.event.preventDefault()});var De,Ie,Ue,ke=function(Ne,Je,ar){var tr=(ar-Je)/ce+Ne;return hn.constrain(tr,0,ie)},je=function(Ne,Je,ar){var tr=(Je-ar)/ce+Ne;return hn.constrain(tr,0,ie)},W=Pi.behavior.drag().on("dragstart",function(){var Ne=Pi.event.sourceEvent;Ne.type==="touchstart"?De=Ne.changedTouches[0].clientY:De=Ne.clientY,Ue=Me}).on("drag",function(){var Ne=Pi.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ne.type==="touchmove"?Ie=Ne.changedTouches[0].clientY:Ie=Ne.clientY,Me=ke(Ue,De,Ie),me(Me,re,ce))});M.call(W);var ee=Pi.behavior.drag().on("dragstart",function(){var Ne=Pi.event.sourceEvent;Ne.type==="touchstart"&&(De=Ne.changedTouches[0].clientY,Ue=Me)}).on("drag",function(){var Ne=Pi.event.sourceEvent;Ne.type==="touchmove"&&(Ie=Ne.changedTouches[0].clientY,Me=je(Ue,De,Ie),me(Me,re,ce))});C.call(ee)}function me(Ne,Je,ar){t._scrollY=e._fullLayout[n]._scrollY=Ne,dn.setTranslate(C,0,-Ne),dn.setRect(M,t._width,bn.scrollBarMargin+Ne*ar,bn.scrollBarWidth,Je),y.select("rect").attr("y",P+Ne)}if(e._context.edits.legendPosition){var K,J,ue,_e;p.classed("cursor-move",!0),Sb.init({element:p.node(),gd:e,prepFn:function(Ne){if(Ne.target!==M.node()){var Je=dn.getTranslate(p);ue=Je.x,_e=Je.y}},moveFn:function(Ne,Je){if(ue!==void 0&&_e!==void 0){var ar=ue+Ne,tr=_e+Je;dn.setTranslate(p,ar,tr),K=Sb.align(ar,t._width,E.l,E.l+E.w,t.xanchor),J=Sb.align(tr+t._height,-t._height,E.t+E.h,E.t,t.yanchor)}},doneFn:function(){if(K!==void 0&&J!==void 0){var Ne={};Ne[n+".x"]=K,Ne[n+".y"]=J,cc.call("_guiRelayout",e,Ne)}},clickFn:function(Ne,Je){var ar=o.selectAll("g.traces").filter(function(){var tr=this.getBoundingClientRect();return Je.clientX>=tr.left&&Je.clientX<=tr.right&&Je.clientY>=tr.top&&Je.clientY<=tr.bottom});ar.size()>0&&GF(e,t,ar,Ne,Je)}})}}],e)}}function Em(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function GF(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(u.group=o._group),cc.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=qm.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&zF(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=qm.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&zF(t,e,r,s,a)}}function Qne(e,r,t){var a=a2.getId(t),n=e.data()[0][0],i=n.trace,o=cc.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=hn.templateString(u,i._meta))));var c=hn.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(dn.font,f).text(l?OF(u,s):u);var h=t.indentation+t.itemwidth+bn.itemGap*2;vc.positionText(c,h,0),l?c.call(vc.makeEditable,{gd:r,text:u}).call(Lm,e,r,t).on("edit",function(d){this.text(OF(d,s)).call(Lm,e,r,t);var m={};return m.name=d,n.trace._isShape?cc.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):cc.call("_guiRestyle",r,m,i.index)}):Lm(c,e,r,t)}function OF(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function eie(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=hn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(eh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTime<a?i+=1:(i=1,r._legendMouseDownTime=n)}),o.on("mouseup",function(){if(!(r._dragged||r._editing)){var l=r._fullLayout[t];new Date().getTime()-r._legendMouseDownTime>a&&(i=Math.max(i-1,1)),GF(r,l,e,i,Pi.event)}}))}function rie(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&cc.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=hn.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(eh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTime<i?l+=1:(l=1,r._legendMouseDownTime=o)}),s.on("mouseup",function(){if(r._dragged||r._editing)return;new Date().getTime()-r._legendMouseDownTime>i&&(l=Math.max(l-1,1));let u={event:Pi.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(qm.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&NF(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,qm.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&NF(r,t,t.titledoubleclick))}))}function Lm(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),vc.convertToTspans(e,t,function(){tie(r,t,a,n)})}function tie(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=a2.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===r2?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*UF,h,d;if(l){var m=dn.bBox(l);h=m.height,d=m.width,a===r2?dn.setTranslate(o,u,u+h*.75):dn.setTranslate(o,0,h*.25)}else{var p="."+s+(a===r2?"title":"")+"text",y=e.select(p),b=vc.lineCount(y),C=y.node();if(h=c*b,d=C?dn.bBox(C).width:0,a===r2)t.title.side==="left"&&(d+=bn.itemGap*2),vc.positionText(y,u+bn.titlePad,u+c);else{var x=bn.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(x=bn.itemGap,d-=t.indentation+t.itemwidth),vc.positionText(y,x,-c*((b-1)/2-.3))}}a===r2?(t._titleWidth=d,t._titleHeight=h):(n.lineHeight=c,n.height=Math.max(h,16)+3,n.width=d)}function aie(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function nie(e,r,t,a,n){var i=e._fullLayout,o=a2.getId(a);a||(a=i[o]);var l=i._size,s=a2.isVertical(a),u=a2.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,h=2*c,d=bn.itemGap,m=a.indentation+a.itemwidth+d*2,p=2*(c+d),y=Rm(a),b=a.y<0||a.y===0&&y==="top",C=a.y>1||a.y===1&&y==="bottom",x=a.tracegroupgap,_={};let{orientation:M,yref:T}=a,{maxheight:A}=a,E=b||C||M!=="v"||T!=="paper";A||(A=E?.5:1);let P=E?i.height:l.h;a._maxHeight=Math.max(A>1?A:A*P,30);var z=0;a._width=0,a._height=0;var B=aie(a);if(s)t.each(function(Ne){var Je=Ne[0].height;dn.setTranslate(this,c+B[0],c+B[1]+a._height+Je/2+d),a._height+=Je,a._width=Math.max(a._width,Ne[0].width)}),z=m+a._width,a._width+=d+m+h,a._height+=p,u&&(r.each(function(Ne,Je){dn.setTranslate(this,0,Je*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var X=Pm(a),I=a.x<0||a.x===0&&X==="right",V=a.x>1||a.x===1&&X==="left",H=C||b,Q=i.width/2;a._maxWidth=Math.max(I?H&&X==="left"?l.l+l.w:Q:V?H&&X==="right"?l.r+l.w:Q:l.w,2*m);var oe=0,re=0;t.each(function(Ne){var Je=Em(Ne,a,m);oe=Math.max(oe,Je),re+=Je}),z=null;var te=0;if(u){var ie=0,ce=0,Me=0;r.each(function(){var Ne=0,Je=0;Pi.select(this).selectAll("g.traces").each(function(tr){var fr=Em(tr,a,m),Re=tr[0].height;dn.setTranslate(this,B[0],B[1]+c+d+Re/2+Je),Je+=Re,Ne=Math.max(Ne,fr),_[tr[0].trace.legendgroup]=Ne});var ar=Ne+d;ce>0&&ar+c+ce>a._maxWidth?(te=Math.max(te,ce),ce=0,Me+=ie+x,ie=Je):ie=Math.max(ie,Je),dn.setTranslate(this,ce,Me),ce+=ar}),a._width=Math.max(te,ce)+c,a._height=Me+ie+p}else{var De=t.size(),Ie=re+h+(De-1)*d<a._maxWidth,Ue=0,ke=0,je=0,W=0;t.each(function(Ne){var Je=Ne[0].height,ar=Em(Ne,a,m,u),tr=Ie?ar:oe;f||(tr+=d),tr+c+ke-d>=a._maxWidth&&(te=Math.max(te,W),ke=0,je+=Ue,a._height+=Ue,Ue=0),dn.setTranslate(this,B[0]+c+ke,B[1]+c+je+Je/2+d),W=ke+ar+d,ke+=tr,Ue=Math.max(Ue,Je)}),Ie?(a._width=ke+h,a._height=Ue+p):(a._width=Math.max(te,W)+h,a._height+=Ue+p)}}a._width=Math.ceil(Math.max(a._width+B[0],a._titleWidth+2*(c+bn.titlePad))),a._height=Math.ceil(Math.max(a._height+B[1],a._titleHeight+2*(c+bn.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ee=e._context.edits,me=ee.legendText||ee.legendPosition;t.each(function(Ne){var Je=Pi.select(this).select("."+o+"toggle"),ar=Ne[0].height,tr=Ne[0].trace.legendgroup,fr=Em(Ne,a,m);u&&tr!==""&&(fr=_[tr]);var Re=me?m:z||fr;!s&&!f&&(Re+=d/2),dn.setRect(Je,0,-ar/2,Re,ar)});var K=n.select("."+o+"titletext");K.node()&&Kne(K,a,c);var J=n.select("."+o+"titletoggle");if(J.size()&&K.node()){var ue=K.attr("x")||0,_e=bn.titlePad;dn.setRect(J,ue-_e,c,a._titleWidth+2*_e,a._titleHeight+2*_e)}}function iie(e,r,t,a){var n=e._fullLayout,i=n[r],o=Pm(i),l=Rm(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return Db.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*t2[o],r:i._width*BF[o],b:i._effHeight*BF[l],t:i._effHeight*t2[l]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=h[c]:e._fullLayout._reservedMargin[r][f]=h[f]}function Pm(e){return hn.isRightAnchor(e)?"right":hn.isCenterAnchor(e)?"center":"left"}function Rm(e){return hn.isBottomAnchor(e)?"bottom":hn.isMiddleAnchor(e)?"middle":"top"}});var Rb=le(Pb=>{"use strict";var hc=Ft(),Ru=Wt(),Ka=mr(),oie=Ka.pushUnique,Lb=Ka.strTranslate,lie=Ka.strRotate,sie=qv(),Jo=si(),uie=mF(),zs=ha(),_n=qt(),zm=Zo(),Ns=Oa(),fie=(Nn(),Tr(zn)).zindexSeparator,i2=_t(),Mo=Pu(),dc=(ov(),Tr(iv)),cie=pb(),vie=Eb(),KF=dc.YANGLE,qb=Math.PI*KF/180,hie=1/Math.sin(qb),die=Math.cos(qb),pie=Math.sin(qb),Ra=dc.HOVERARROWSIZE,Nt=dc.HOVERTEXTPAD,VF={box:!0,ohlc:!0,violin:!0,candlestick:!0},mie={scatter:!0,scattergl:!0,splom:!0};function XF(e,r){return e.distance-r.distance}Pb.hover=function(r,t,a,n){r=Ka.getGraphDiv(r);var i=t.target;Ka.throttle(r._fullLayout._uid+dc.HOVERID,dc.HOVERMINTIME,function(){gie(r,t,a,n,i)})};Pb.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=aE(n),o=nE(n),l=r.map(function(y){var b=y._x0||y.x0||y.x||0,C=y._x1||y.x1||y.x||0,x=y._y0||y.y0||y.y||0,_=y._y1||y.y1||y.y||0,M=y.eventData;if(M){var T=Math.min(b,C),A=Math.max(b,C),E=Math.min(x,_),P=Math.max(x,_),z=y.trace;if(i2.traceIs(z,"gl3d")){var B=n._fullLayout[z.scene]._scene.container,X=B.offsetLeft,I=B.offsetTop;T+=X,A+=X,E+=I,P+=I}M.bbox={x0:T+o,x1:A+o,y0:E+i,y1:P+i},M.xPixel=(b+C)/2,M.yPixel=(x+_)/2,t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:y.color||_n.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:M}}),s=!1,u=eE(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||_n.background,container:hc.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,h=0,d=0;f.sort(function(y,b){return y.y0-b.y0}).each(function(y,b){var C=y.y0-y.by/2;C-c<h?y.offset=h-C+c:y.offset=0,h=C+y.by+y.offset,b===t.anchorIndex&&(d=y.offset)}).each(function(y){y.offset-=d});var m=n._fullLayout._invScaleX,p=n._fullLayout._invScaleY;return tE(f,s,m,p),a?f:f.node()};function gie(e,r,t,a,n){t||(t="xy"),typeof t=="string"&&(t=t.split(fie)[0]);var i=Array.isArray(t)?t:[t],o,l=e._fullLayout,s=l.hoversubplots,u=l._plots||[],f=u[t],c=l._has("cartesian"),h=r.hovermode||l.hovermode,d=(h||"").charAt(0)==="x",m=(h||"").charAt(0)==="y",p,y;if(c&&(d||m)&&s==="axis"){for(var b=i.length,C=0;C<b;C++)if(o=i[C],u[o]){p=Ns.getFromId(e,o,"x"),y=Ns.getFromId(e,o,"y");var x=(d?p:y)._subplotsWith;if(x&&x.length)for(var _=0;_<x.length;_++)oie(i,x[_])}}if(f&&s!=="single"){var M=f.overlays.map(function(Jr){return Jr.id});i=i.concat(M)}for(var T=i.length,A=new Array(T),E=new Array(T),P=!1,z=0;z<T;z++)if(o=i[z],u[o])P=!0,A[z]=u[o].xaxis,E[z]=u[o].yaxis;else if(l[o]&&l[o]._subplot){var B=l[o]._subplot;A[z]=B.xaxis,E[z]=B.yaxis}else{Ka.warn("Unrecognized subplot: "+o);return}if(h&&!P&&(h="closest"),["x","y","closest","x unified","y unified"].indexOf(h)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return zm.unhoverRaw(e,r);var X=l.hoverdistance;X===-1&&(X=1/0);var I=l.spikedistance;I===-1&&(I=1/0);var V=[],H=[],Q,oe,re,te,ie,ce,Me,De,Ie,Ue,ke,je,W,ee={hLinePoint:null,vLinePoint:null},me=!1;if(Array.isArray(r))for(h="array",re=0;re<r.length;re++)ie=e.calcdata[r[re].curveNumber||0],ie&&(ce=ie[0].trace,ie[0].trace.hoverinfo!=="skip"&&(H.push(ie),ce.orientation==="h"&&(me=!0)));else{var K=e.calcdata.slice();for(K.sort(function(Jr,ua){var zt=Jr[0].trace.zorder||0,ga=ua[0].trace.zorder||0;return zt-ga}),te=0;te<K.length;te++)ie=K[te],ce=ie[0].trace,ce.hoverinfo!=="skip"&&Mo.isTraceInSubplots(ce,i)&&(H.push(ie),ce.orientation==="h"&&(me=!0));var J=!n,ue,_e;if(J)"xpx"in r?ue=r.xpx:ue=A[0]._length/2,"ypx"in r?_e=r.ypx:_e=E[0]._length/2;else{if(sie.triggerHandler(e,"plotly_beforehover",r)===!1)return;var Ne=n.getBoundingClientRect();ue=r.clientX-Ne.left,_e=r.clientY-Ne.top,l._calcInverseTransform(e);var Je=Ka.apply3DTransform(l._invTransform)(ue,_e);if(ue=Je[0],_e=Je[1],ue<0||ue>A[0]._length||_e<0||_e>E[0]._length)return zm.unhoverRaw(e,r)}if(r.pointerX=ue+A[0]._offset,r.pointerY=_e+E[0]._offset,"xval"in r?Q=Mo.flat(i,r.xval):Q=Mo.p2c(A,ue),"yval"in r?oe=Mo.flat(i,r.yval):oe=Mo.p2c(E,_e),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Ru(Q[0])||!Ru(oe[0]))return Ka.warn("Fx.hover failed",r,e),zm.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=Q,e._hoverYVals=oe,e._hoverXAxes=A,e._hoverYAxes=E);var ar=1/0;function tr(Jr,ua){for(te=0;te<H.length;te++)if(ie=H[te],!(!ie||!ie[0]||!ie[0].trace)&&(ce=ie[0].trace,!(ce.visible!==!0||ce._length===0)&&["carpet","contourcarpet"].indexOf(ce._module.name)===-1)){if(Ie=h,Mo.isUnifiedHover(Ie)&&(Ie=Ie.charAt(0)),ce.type==="splom"?(De=0,Me=i[De]):(Me=Mo.getSubplot(ce),De=i.indexOf(Me)),je={cd:ie,trace:ce,xa:A[De],ya:E[De],maxHoverDistance:X,maxSpikeDistance:I,index:!1,distance:Math.min(ar,X),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:_n.defaultLine,name:ce.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},l[Me]&&(je.subplot=l[Me]._subplot),l._splomScenes&&l._splomScenes[ce.uid]&&(je.scene=l._splomScenes[ce.uid]),Ie==="array"){var zt=r[te];if("pointNumber"in zt){let Da=ie[zt.pointNumber];Da&&(je.index=zt.pointNumber,Da.lonlat?(Ue=Da.lonlat[0],ke=Da.lonlat[1]):(Ue=Da.x,ke=Da.y)),Ie="closest"}else Ie="","xval"in zt&&(Ue=zt.xval,Ie="x"),"yval"in zt&&(ke=zt.yval,Ie=Ie?"closest":"y")}else Jr!==void 0&&ua!==void 0?(Ue=Jr,ke=ua):(Ue=Q[De],ke=oe[De]);if(W=V.length,X!==0)if(ce._module&&ce._module.hoverPoints){var ga=ce._module.hoverPoints(je,Ue,ke,Ie,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:s,gd:e});if(ga)for(var ba,_a=0;_a<ga.length;_a++)ba=ga[_a],Ru(ba.x0)&&Ru(ba.y0)&&V.push(xie(ba,h))}else Ka.log("Unrecognized trace type in hover:",ce);if(h==="closest"&&V.length>W&&(V.splice(0,W),ar=V[0].distance),c&&I!==0&&V.length===0){je.distance=I,je.index=!1;var Vt=ce._module.hoverPoints(je,Ue,ke,"closest",{hoverLayer:l._hoverlayer});if(Vt&&(Vt=Vt.filter(function(Da){return Da.spikeDistance<=I})),Vt&&Vt.length){var Na,wn=Vt.filter(function(Da){return Da.xa.showspikes&&Da.xa.spikesnap!=="hovered data"});if(wn.length){var ya=wn[0];Ru(ya.x0)&&Ru(ya.y0)&&(Na=Re(ya),(!ee.vLinePoint||ee.vLinePoint.spikeDistance>Na.spikeDistance)&&(ee.vLinePoint=Na))}var na=Vt.filter(function(Da){return Da.ya.showspikes&&Da.ya.spikesnap!=="hovered data"});if(na.length){var Ea=na[0];Ru(Ea.x0)&&Ru(Ea.y0)&&(Na=Re(Ea),(!ee.hLinePoint||ee.hLinePoint.spikeDistance>Na.spikeDistance)&&(ee.hLinePoint=Na))}}}}}tr();function fr(Jr,ua,zt){for(var ga=null,ba=1/0,_a,Vt=0;Vt<Jr.length;Vt++)p&&p._id!==Jr[Vt].xa._id||y&&y._id!==Jr[Vt].ya._id||(_a=Jr[Vt].spikeDistance,zt&&Vt===0&&(_a=-1/0),_a<=ba&&_a<=ua&&(ga=Jr[Vt],ba=_a));return ga}function Re(Jr){return Jr?{xa:Jr.xa,ya:Jr.ya,x:Jr.xSpike!==void 0?Jr.xSpike:(Jr.x0+Jr.x1)/2,y:Jr.ySpike!==void 0?Jr.ySpike:(Jr.y0+Jr.y1)/2,distance:Jr.distance,spikeDistance:Jr.spikeDistance,curveNumber:Jr.trace.index,color:Jr.color,pointNumber:Jr.index}:null}var sr={fullLayout:l,container:l._hoverlayer,event:r},hr=e._spikepoints,dr={vLinePoint:ee.vLinePoint,hLinePoint:ee.hLinePoint};e._spikepoints=dr;var Ze=function(){var Jr=V.filter(function(zt){return p&&p._id===zt.xa._id&&y&&y._id===zt.ya._id}),ua=V.filter(function(zt){return!(p&&p._id===zt.xa._id&&y&&y._id===zt.ya._id)});Jr.sort(XF),ua.sort(XF),V=Jr.concat(ua),V=Aie(V,h)};Ze();var cr=h.charAt(0),Lr=(cr==="x"||cr==="y")&&V[0]&&mie[V[0].trace.type];if(c&&I!==0&&V.length!==0){var Te=V.filter(function(Jr){return Jr.ya.showspikes}),Oe=fr(Te,I,Lr);ee.hLinePoint=Re(Oe);var Ar=V.filter(function(Jr){return Jr.xa.showspikes}),Br=fr(Ar,I,Lr);ee.vLinePoint=Re(Br)}if(V.length===0){var Qe=zm.unhoverRaw(e,r);if(c&&(ee.hLinePoint!==null||ee.vLinePoint!==null)&&ZF(hr)&&WF(e,ee,sr),l.hoveranywhere&&!a&&n){var Be=e._hoverdata;Be&&Be.length&&(e.emit("plotly_unhover",{event:r,points:Be}),e._hoverdata=[]),Wn([]),e._hoverAnywhereActive=!0}return Qe}if(c&&ZF(hr)&&WF(e,ee,sr),Mo.isXYhover(Ie)&&V[0].length!==0&&V[0].trace.type!=="splom"){var Xe=V[0];VF[Xe.trace.type]?V=V.filter(Jr=>Jr.trace.index===Xe.trace.index):V=[Xe];var yr=V.length,Cr=JF("x",Xe,l),pr=JF("y",Xe,l);tr(Cr,pr);var xr=[],Rr={},Er=0,Or=function(Jr){var ua=VF[Jr.trace.type]?QF(Jr):Jr.trace.index;if(!Rr[ua])Er++,Rr[ua]=Er,xr.push(Jr);else{var zt=Rr[ua]-1,ga=xr[zt];zt>0&&Math.abs(Jr.distance)<Math.abs(ga.distance)&&(xr[zt]=Jr)}},rr;for(rr=0;rr<yr;rr++)Or(V[rr]);for(rr=V.length-1;rr>yr-1;rr--)Or(V[rr]);V=xr,Ze()}var Sr=e._hoverdata,vr=[],jr=aE(e),Qr=nE(e);for(let Jr of V){var qr=Mo.makeEventData(Jr,Jr.trace,Jr.cd);if(Jr.hovertemplate!==!1){var Wr=!1;Jr.cd[Jr.index]&&Jr.cd[Jr.index].ht&&(Wr=Jr.cd[Jr.index].ht),Jr.hovertemplate=Wr||Jr.trace.hovertemplate||!1}if(Jr.xa&&Jr.ya){var Ae=Jr.x0+Jr.xa._offset,Pe=Jr.x1+Jr.xa._offset,ur=Jr.y0+Jr.ya._offset,gr=Jr.y1+Jr.ya._offset,It=Math.min(Ae,Pe),Yt=Math.max(Ae,Pe),ia=Math.min(ur,gr),Ta=Math.max(ur,gr);qr.bbox={x0:It+Qr,x1:Yt+Qr,y0:ia+jr,y1:Ta+jr},qr.xPixel=(Ae+Pe)/2,qr.yPixel=(ur+gr)/2}Jr.eventData=[qr],vr.push(qr)}e._hoverdata=vr;var Ht=h==="y"&&(H.length>1||V.length>1)||h==="closest"&&me&&V.length>1,Zt=_n.combine(l.plot_bgcolor||_n.background,l.paper_bgcolor),ma=eE(V,{gd:e,hovermode:h,rotateLabels:Ht,bgColor:Zt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),ra=ma.hoverLabels;if(Mo.isUnifiedHover(h)||(bie(ra,Ht,l,ma.commonLabelBoundingBox),tE(ra,Ht,l._invScaleX,l._invScaleY)),n&&n.tagName){var xn=i2.getComponentMethod("annotations","hasClickToShow")(e,vr);uie(hc.select(n),xn?"pointer":"")}var on=wie(e,r,Sr);if(!n||a||!on&&!l.hoveranywhere)return;Sr&&on&&e.emit("plotly_unhover",{event:r,points:Sr}),Wn(e._hoverdata);function Wn(Jr){e.emit("plotly_hover",{event:r,points:Jr,xaxes:A,yaxes:E,xvals:Mo.c2dApply(A,Q),yvals:Mo.c2dApply(E,oe),xPixel:r.pointerX,yPixel:r.pointerY})}}function QF(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var yie=/<extra>([\s\S]*)<\/extra>/;function eE(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||dc.HOVERFONT,c=r.fontSize||dc.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,p=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,C=e[0],x=C.xa,_=C.ya,M=n.charAt(0),T=M+"Label",A=C[T];if(A===void 0&&x.type==="multicategory")for(var E=0;E<e.length&&(A=e[E][T],A===void 0);E++);var P=n2(t,s),z=P.top,B=P.width,X=P.height,I=A!==void 0&&C.distance<=r.hoverdistance&&(n==="x"||n==="y");if(I){var V=!0,H,Q;for(H=0;H<e.length;H++)if(V&&e[H].zLabel===void 0&&(V=!1),Q=e[H].hoverinfo||e[H].trace.hoverinfo,Q){var oe=Array.isArray(Q)?Q:Q.split("+");if(oe.indexOf("all")===-1&&oe.indexOf(n)===-1){I=!1;break}}V&&(I=!1)}var re=l.selectAll("g.axistext").data(I?[0]:[]);re.enter().append("g").classed("axistext",!0),re.exit().remove();var te={minX:0,maxX:0,minY:0,maxY:0};if(re.each(function(){var Qe=hc.select(this),Be=Ka.ensureSingle(Qe,"path","",function(ia){ia.style({"stroke-width":"1px"})}),Xe=Ka.ensureSingle(Qe,"text","",function(ia){ia.attr("data-notex",1)}),yr=u.bgcolor||_n.defaultLine,Cr=u.bordercolor||_n.contrast(yr),pr=_n.contrast(yr),xr=u.font,Rr={weight:xr.weight||h,style:xr.style||d,variant:xr.variant||m,textcase:xr.textcase||p,lineposition:xr.lineposition||y,shadow:xr.shadow||b,family:xr.family||f,size:xr.size||c,color:xr.color||pr};Be.style({fill:yr,stroke:Cr}),Xe.text(A).call(zs.font,Rr).call(Jo.positionText,0,0).call(Jo.convertToTspans,t),Qe.attr("transform","");var Er=n2(t,Xe.node()),Or,rr;if(n==="x"){var Sr=x.side==="top"?"-":"";Xe.attr("text-anchor","middle").call(Jo.positionText,0,x.side==="top"?z-Er.bottom-Ra-Nt:z-Er.top+Ra+Nt),Or=x._offset+(C.x0+C.x1)/2,rr=_._offset+(x.side==="top"?0:_._length);var vr=Er.width/2+Nt,jr=Or;Or<vr?jr=vr:Or>a.width-vr&&(jr=a.width-vr),Be.attr("d","M"+(Or-jr)+",0L"+(Or-jr+Ra)+","+Sr+Ra+"H"+vr+"v"+Sr+(Nt*2+Er.height)+"H"+-vr+"V"+Sr+Ra+"H"+(Or-jr-Ra)+"Z"),Or=jr,te.minX=Or-vr,te.maxX=Or+vr,x.side==="top"?(te.minY=rr-(Nt*2+Er.height),te.maxY=rr-Nt):(te.minY=rr+Nt,te.maxY=rr+(Nt*2+Er.height))}else{var Qr,qr,Wr;_.side==="right"?(Qr="start",qr=1,Wr="",Or=x._offset+x._length):(Qr="end",qr=-1,Wr="-",Or=x._offset),rr=_._offset+(C.y0+C.y1)/2,Xe.attr("text-anchor",Qr),Be.attr("d","M0,0L"+Wr+Ra+","+Ra+"V"+(Nt+Er.height/2)+"h"+Wr+(Nt*2+Er.width)+"V-"+(Nt+Er.height/2)+"H"+Wr+Ra+"V-"+Ra+"Z"),te.minY=rr-(Nt+Er.height/2),te.maxY=rr+(Nt+Er.height/2),_.side==="right"?(te.minX=Or+Ra,te.maxX=Or+Ra+(Nt*2+Er.width)):(te.minX=Or-Ra-(Nt*2+Er.width),te.maxX=Or-Ra);var Ae=Er.height/2,Pe=z-Er.top-Ae,ur="clip"+a._uid+"commonlabel"+_._id,gr;if(Or<Er.width+2*Nt+Ra){gr="M-"+(Ra+Nt)+"-"+Ae+"h-"+(Er.width-Nt)+"V"+Ae+"h"+(Er.width-Nt)+"Z";var It=Er.width-Or+Nt;Jo.positionText(Xe,It,Pe),Qr==="end"&&Xe.selectAll("tspan").each(function(){var ia=hc.select(this),Ta=zs.tester.append("text").text(ia.text()).call(zs.font,Rr),Ht=n2(t,Ta.node());Math.round(Ht.width)<Math.round(Er.width)&&ia.attr("x",It-Ht.width),Ta.remove()})}else Jo.positionText(Xe,qr*(Nt+Ra),Pe),gr=null;var Yt=a._topclips.selectAll("#"+ur).data(gr?[0]:[]);Yt.enter().append("clipPath").attr("id",ur).append("path"),Yt.exit().remove(),Yt.select("path").attr("d",gr),zs.setClipUrl(Xe,gr?ur:null,t)}Qe.attr("transform",Lb(Or,rr))}),Mo.isUnifiedHover(n)){l.selectAll("g.hovertext").remove();let Qe=e.filter(Be=>Be.hoverinfo!=="none");if(Qe.length===0)return[];var ie=a.hoverlabel,ce=ie.font,Me=Qe[0],De=((n==="x unified"?Me.xa:Me.ya).unifiedhovertitle||{}).text,Ie=De?Ka.hovertemplateString({data:n==="x unified"?[{xa:Me.xa,x:Me.xVal}]:[{ya:Me.ya,y:Me.yVal}],fallback:Me.trace.hovertemplatefallback,locale:a._d3locale,template:De}):A,Ue={showlegend:!0,legend:{title:{text:Ie,font:ce},font:ce,bgcolor:ie.bgcolor,bordercolor:ie.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},ke={font:ce};cie(Ue,ke,t._fullData);var je=ke.legend;je.entries=[];for(var W=0;W<Qe.length;W++){var ee=Qe[W];if(ee.hoverinfo!=="none"){var me=jF(ee,!0,n,a,A),K=me[0],J=me[1];ee.name=J,J!==""?ee.text=J+" : "+K:ee.text=K;var ue=ee.cd[ee.index];ue&&(ue.mc&&(ee.mc=ue.mc),ue.mcc&&(ee.mc=ue.mcc),ue.mlc&&(ee.mlc=ue.mlc),ue.mlcc&&(ee.mlc=ue.mlcc),ue.mlw&&(ee.mlw=ue.mlw),ue.mrc&&(ee.mrc=ue.mrc),ue.dir&&(ee.dir=ue.dir)),ee._distinct=!0,je.entries.push([ee])}}je.entries.sort(function(Be,Xe){var yr=a.hoversort;if(yr==="value descending"||yr==="value ascending"){var Cr=n.charAt(0)==="x"?"y":"x",pr=Be[0][Cr+"LabelVal"],xr=Xe[0][Cr+"LabelVal"];if(pr!==xr)return yr==="value descending"?xr-pr:pr-xr}return Be[0].trace.index-Xe[0].trace.index}),je.layer=l,je._inHover=!0,je._groupTitleFont=ie.grouptitlefont,vie(t,je);var _e=l.select("g.legend"),Ne=n2(t,_e.node()),Je=Ne.width+2*Nt,ar=Ne.height+2*Nt,tr=Qe[0],fr=(tr.x0+tr.x1)/2,Re=(tr.y0+tr.y1)/2,sr=!(i2.traceIs(tr.trace,"bar-like")||i2.traceIs(tr.trace,"box-violin")),hr,dr;M==="y"?sr?(dr=Re-Nt,hr=Re+Nt):(dr=Math.min.apply(null,Qe.map(function(Be){return Math.min(Be.y0,Be.y1)})),hr=Math.max.apply(null,Qe.map(function(Be){return Math.max(Be.y0,Be.y1)}))):dr=hr=Ka.mean(Qe.map(function(Be){return(Be.y0+Be.y1)/2}))-ar/2;var Ze,cr;M==="x"?sr?(Ze=fr+Nt,cr=fr-Nt):(Ze=Math.max.apply(null,Qe.map(function(Be){return Math.max(Be.x0,Be.x1)})),cr=Math.min.apply(null,Qe.map(function(Be){return Math.min(Be.x0,Be.x1)}))):Ze=cr=Ka.mean(Qe.map(function(Be){return(Be.x0+Be.x1)/2}))-Je/2;var Lr=x._offset,Te=_._offset;hr+=Te,Ze+=Lr,cr+=Lr-Je,dr+=Te-ar;var Oe,Ar;return Ze+Je<B&&Ze>=0?Oe=Ze:cr+Je<B&&cr>=0?Oe=cr:Lr+Je<B?Oe=Lr:Ze-fr<fr-cr+Je?Oe=B-Je:Oe=0,Oe+=Nt,hr+ar<X&&hr>=0?Ar=hr:dr+ar<X&&dr>=0?Ar=dr:Te+ar<X?Ar=Te:hr-Re<Re-dr+ar?Ar=X-ar:Ar=0,Ar+=Nt,_e.attr("transform",Lb(Oe-1,Ar-1)),_e}var Br=l.selectAll("g.hovertext").data(e,function(Qe){return QF(Qe)});return Br.enter().append("g").classed("hovertext",!0).each(function(){var Qe=hc.select(this);Qe.append("rect").call(_n.fill,_n.addOpacity(o,.8)),Qe.append("text").classed("name",!0),Qe.append("path").style("stroke-width","1px"),Qe.append("text").classed("nums",!0).call(zs.font,{weight:h,style:d,variant:m,textcase:p,lineposition:y,shadow:b,family:f,size:c})}),Br.exit().remove(),Br.each(function(Qe){var Be=hc.select(this).attr("transform",""),Xe=Qe.color;Array.isArray(Xe)&&(Xe=Xe[Qe.eventData[0].pointNumber]);var yr=Qe.bgcolor||Xe,Cr=_n.combine(_n.opacity(yr)?yr:_n.defaultLine,o),pr=_n.combine(_n.opacity(Xe)?Xe:_n.defaultLine,o),xr=Qe.borderColor||_n.contrast(Cr),Rr=jF(Qe,I,n,a,A,Be),Er=Rr[0],Or=Rr[1],rr=Be.select("text.nums").call(zs.font,{family:Qe.fontFamily||f,size:Qe.fontSize||c,color:Qe.fontColor||xr,weight:Qe.fontWeight||h,style:Qe.fontStyle||d,variant:Qe.fontVariant||m,textcase:Qe.fontTextcase||p,lineposition:Qe.fontLineposition||y,shadow:Qe.fontShadow||b}).text(Er).attr("data-notex",1).call(Jo.positionText,0,0).call(Jo.convertToTspans,t),Sr=Be.select("text.name"),vr=0,jr=0;if(Or&&Or!==Er){Sr.call(zs.font,{family:Qe.fontFamily||f,size:Qe.fontSize||c,color:pr,weight:Qe.fontWeight||h,style:Qe.fontStyle||d,variant:Qe.fontVariant||m,textcase:Qe.fontTextcase||p,lineposition:Qe.fontLineposition||y,shadow:Qe.fontShadow||b}).text(Or).attr("data-notex",1).call(Jo.positionText,0,0).call(Jo.convertToTspans,t);var Qr=n2(t,Sr.node());vr=Qr.width+2*Nt,jr=Qr.height+2*Nt}else Sr.remove(),Be.select("rect").remove();Be.select("path").style({fill:Cr,stroke:xr});var qr=Qe.xa._offset+(Qe.x0+Qe.x1)/2,Wr=Qe.ya._offset+(Qe.y0+Qe.y1)/2,Ae=Math.abs(Qe.x1-Qe.x0),Pe=Math.abs(Qe.y1-Qe.y0),ur=n2(t,rr.node()),gr=ur.width/a._invScaleX,It=ur.height/a._invScaleY;Qe.ty0=(z-ur.top)/a._invScaleY,Qe.bx=gr+2*Nt,Qe.by=Math.max(It+2*Nt,jr),Qe.anchor="start",Qe.txwidth=gr,Qe.tx2width=vr,Qe.offset=0;var Yt=(gr+Ra+Nt+vr)*a._invScaleX,ia,Ta;if(i)Qe.pos=qr,ia=Wr+Pe/2+Yt<=X,Ta=Wr-Pe/2-Yt>=0,(Qe.idealAlign==="top"||!ia)&&Ta?(Wr-=Pe/2,Qe.anchor="end"):ia?(Wr+=Pe/2,Qe.anchor="start"):Qe.anchor="middle",Qe.crossPos=Wr;else{if(Qe.pos=Wr,ia=qr+Ae/2+Yt<=B,Ta=qr-Ae/2-Yt>=0,(Qe.idealAlign==="left"||!ia)&&Ta)qr-=Ae/2,Qe.anchor="end";else if(ia)qr+=Ae/2,Qe.anchor="start";else{Qe.anchor="middle";var Ht=Yt/2,Zt=qr+Ht-B,ma=qr-Ht;Zt>0&&(qr-=Zt),ma<0&&(qr+=-ma)}Qe.crossPos=qr}rr.attr("text-anchor",Qe.anchor),vr&&Sr.attr("text-anchor",Qe.anchor),Be.attr("transform",Lb(qr,Wr)+(i?lie(KF):""))}),{hoverLabels:Br,commonLabelBoundingBox:te}}function jF(e,r,t,a,n,i){var c,h;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ka.templateString(e.name,e.trace._meta)),o=$F(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"<br>"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"<br>"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"<br>":"")+e.text),e.extraText!==void 0&&(l+=(l?"<br>":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(h=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=Ka.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(yie,(m,p)=>(o=$F(p,e.nameLength),""))}return[l,o]}function bie(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,h=a.maxX,d=a.minY,m=a.maxY,p=function(Q){return Q*t._invScaleX},y=function(Q){return Q*t._invScaleY};e.each(function(Q){var oe=Q[n],re=Q[i],te=oe._id.charAt(0)==="x",ie=oe.range;f===0&&ie&&ie[0]>ie[1]!==te&&(l=-1);var ce=0,Me=te?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var De=rE(Q,r),Ie=Q.anchor,Ue=Ie==="end"?-1:1,ke,je;if(Ie==="middle")ke=Q.crossPos+(te?y(De.y-Q.by/2):p(Q.bx/2+Q.tx2width/2)),je=ke+(te?y(Q.by):p(Q.bx));else if(te)ke=Q.crossPos+y(Ra+De.y)-y(Q.by/2-Ra),je=ke+y(Q.by);else{var W=p(Ue*Ra+De.x),ee=W+p(Ue*Q.bx);ke=Q.crossPos+Math.min(W,ee),je=Q.crossPos+Math.max(W,ee)}te?d!==void 0&&m!==void 0&&Math.min(je,m)-Math.max(ke,d)>1&&(re.side==="left"?(ce=re._mainLinePosition,Me=t.width):Me=re._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(je,h)-Math.max(ke,c)>1&&(re.side==="top"?(ce=re._mainLinePosition,Me=t.height):Me=re._mainLinePosition)}u[f++]=[{datum:Q,traceIndex:Q.trace.index,dp:0,pos:Q.pos,posref:Q.posref,size:Q.by*(te?hie:1)/2,pmin:ce,pmax:Me}]}),u.sort(function(Q,oe){return Q[0].posref-oe[0].posref||l*(oe[0].traceIndex-Q[0].traceIndex)});var b,C,x,_,M,T,A;function E(Q){var oe=Q[0],re=Q[Q.length-1];if(C=oe.pmin-oe.pos-oe.dp+oe.size,x=re.pos+re.dp+re.size-oe.pmax,C>.01){for(M=Q.length-1;M>=0;M--)Q[M].dp+=C;b=!1}if(!(x<.01)){if(C<-.01){for(M=Q.length-1;M>=0;M--)Q[M].dp-=x;b=!1}if(b){var te=0;for(_=0;_<Q.length;_++)T=Q[_],T.pos+T.dp+T.size>oe.pmax&&te++;for(_=Q.length-1;_>=0&&!(te<=0);_--)T=Q[_],T.pos>oe.pmax-1&&(T.del=!0,te--);for(_=0;_<Q.length&&!(te<=0);_++)if(T=Q[_],T.pos<oe.pmin+1)for(T.del=!0,te--,x=T.size*2,M=Q.length-1;M>=0;M--)Q[M].dp-=x;for(_=Q.length-1;_>=0&&!(te<=0);_--)T=Q[_],T.pos+T.dp+T.size>oe.pmax&&(T.del=!0,te--)}}}for(;!b&&o<=s;){for(o++,b=!0,_=0;_<u.length-1;){var P=u[_],z=u[_+1],B=P[P.length-1],X=z[0];if(C=B.pos+B.dp+B.size-X.pos-X.dp+X.size,C>.01){for(M=z.length-1;M>=0;M--)z[M].dp+=C;for(P.push.apply(P,z),u.splice(_+1,1),A=0,M=P.length-1;M>=0;M--)A+=P[M].dp;for(x=A/P.length,M=P.length-1;M>=0;M--)P[M].dp-=x;b=!1}else _++}u.forEach(E)}for(_=u.length-1;_>=0;_--){var I=u[_];for(M=I.length-1;M>=0;M--){var V=I[M],H=V.datum;H.offset=V.dp,H.del=V.del}}}function rE(e,r){var t=0,a=e.offset;return r&&(a*=-pie,t=e.offset*die),{x:t,y:a}}function _ie(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ra+Nt),a=t+r*(e.txwidth+Nt),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Nt),{alignShift:r,textShiftX:t,text2ShiftX:a}}function tE(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=hc.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=_ie(o),h=rE(o,r),d=h.x,m=h.y,p=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;p?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(m-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":y?b="M0,0L"+n(f*Ra+d)+","+i(Ra+m)+"v"+i(o.by/2-Ra)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Ra+d)+"V"+i(m-Ra)+"Z":b="M"+n(f*Ra+d)+","+i(m-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",b);var C=d+c.textShiftX,x=m+o.ty0-o.by/2+Nt,_=o.textAlign||"auto";_!=="auto"&&(_==="left"&&u!=="start"?(s.attr("text-anchor","start"),C=p?-o.bx/2-o.tx2width/2+Nt:-o.bx-Nt):_==="right"&&u!=="end"&&(s.attr("text-anchor","end"),C=p?o.bx/2-o.tx2width/2-Nt:o.bx+Nt)),s.call(Jo.positionText,n(C),i(x)),o.tx2width&&(l.select("text.name").call(Jo.positionText,n(c.text2ShiftX+c.alignShift*Nt+d),i(m+o.ty0-o.by/2+Nt)),l.select("rect").call(zs.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(m-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function xie(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(h){return h||Ru(h)&&h===0}var l=Array.isArray(t)?function(h,d){var m=Ka.castOption(n,t,h);return o(m)?m:Ka.extractOption({},a,"",d)}:function(h,d){return Ka.extractOption(i,a,h,d)};function s(h,d,m){var p=l(d,m);o(p)&&(e[h]=p)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ka.constrain(e.x0,0,e.xa._length),e.x1=Ka.constrain(e.x1,0,e.xa._length),e.y0=Ka.constrain(e.y0,0,e.ya._length),e.y1=Ka.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ns.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Ns.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Ns.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Ns.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Ns.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ns.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function WF(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=_n.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var p=f.spikesnap;p==="cursor"?(d=o.pointerX,m=o.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var y=_n.wcagContrast(h.color,c)<1.5?_n.contrast(c):h.color,b=f.spikemode,C=f.spikethickness,x=f.spikecolor||y,_=Ns.getPxPosition(e,f),M,T;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(M=_,T=d),b.indexOf("across")!==-1){var A=f._counterDomainMin,E=f._counterDomainMax;f.anchor==="free"&&(A=Math.min(A,f.position),E=Math.max(E,f.position)),M=i.l+A*i.w,T=i.l+E*i.w}a.insert("line",":first-child").attr({x1:M,x2:T,y1:m,y2:m,"stroke-width":C,stroke:x,"stroke-dasharray":zs.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:T,y1:m,y2:m,"stroke-width":C+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:_+(f.side!=="right"?C:-C),cy:m,r:C,fill:x}).classed("spikeline",!0)}if(s){var P=r.vLinePoint,z,B;u=P&&P.xa,f=P&&P.ya;var X=u.spikesnap;X==="cursor"?(z=o.pointerX,B=o.pointerY):(z=u._offset+P.x,B=f._offset+P.y);var I=_n.wcagContrast(P.color,c)<1.5?_n.contrast(c):P.color,V=u.spikemode,H=u.spikethickness,Q=u.spikecolor||I,oe=Ns.getPxPosition(e,u),re,te;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(re=oe,te=B),V.indexOf("across")!==-1){var ie=u._counterDomainMin,ce=u._counterDomainMax;u.anchor==="free"&&(ie=Math.min(ie,u.position),ce=Math.max(ce,u.position)),re=i.t+(1-ce)*i.h,te=i.t+(1-ie)*i.h}a.insert("line",":first-child").attr({x1:z,x2:z,y1:re,y2:te,"stroke-width":H,stroke:Q,"stroke-dasharray":zs.dashStyle(u.spikedash,H)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:z,x2:z,y1:re,y2:te,"stroke-width":H+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:z,cy:oe-(u.side!=="top"?H:-H),r:H,fill:Q}).classed("spikeline",!0)}}}function wie(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function ZF(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function $F(e,r){return Jo.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Aie(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o<e.length;o++){var l=e[o];i2.traceIs(l.trace,"bar-like")||i2.traceIs(l.trace,"box-violin")?i.push(l):l.trace[t+"period"]?n.push(l):a.push(l)}return a.concat(n).concat(i)}function JF(e,r,t){var a=r[e+"a"],n=r[e+"Val"],i=r.cd[0];if(a.type==="category"||a.type==="multicategory")n=a._categoriesMap[n];else if(a.type==="date"){var o=r.trace[e+"periodalignment"];if(o){var l=r.cd[r.index],s=l[e+"Start"];s===void 0&&(s=l[e]);var u=l[e+"End"];u===void 0&&(u=l[e]);var f=u-s;o==="end"?n+=f:o==="middle"&&(n+=f/2)}n=a.d2c(n)}return i&&i.t&&i.t.posLetter===a._id&&(t.boxmode==="group"||t.violinmode==="group")&&(n+=i.t.dPos),n}var aE=e=>e.offsetTop+e.clientTop,nE=e=>e.offsetLeft+e.clientLeft;function n2(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=Ka.apply3DTransform(t._invTransform)(n,i),u=Ka.apply3DTransform(t._invTransform)(o,l),f=s[0],c=s[1],h=u[0],d=u[1];return{x:f,y:c,width:h-f,height:d-c,top:Math.min(c,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(c,d)}}});var Nm=le((vbe,iE)=>{"use strict";var Mie=mr(),Tie=qt(),kie=Pu().isUnifiedHover;iE.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&kie(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Tie.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Mie.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var lE=le((hbe,oE)=>{"use strict";var Cie=mr(),Sie=Nm(),Die=m1();oE.exports=function(r,t){function a(n,i){return Cie.coerce(r,t,Die,n,i)}Sie(r,t,a)}});var fE=le((dbe,uE)=>{"use strict";var sE=mr(),Fie=Rd(),Eie=Nm();uE.exports=function(r,t,a,n){function i(l,s){return sE.coerce(r,t,Fie,l,s)}var o=sE.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),Eie(r,t,i,o)}});var zb=le((pbe,cE)=>{"use strict";var Lie=mr(),qie=m1();cE.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Lie.coerce(r,t,qie,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var dE=le((mbe,hE)=>{"use strict";var vE=mr(),Pie=m1(),Rie=zb(),zie=Nm();hE.exports=function(r,t){function a(u,f){return vE.coerce(r,t,Pie,u,f)}var n=Rie(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("map"),l=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l)&&s===1||o&&l&&s===2)&&(t.dragmode="pan"),zie(r,t,a),vE.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var gE=le((gbe,mE)=>{"use strict";var Nb=mr(),pE=_t();mE.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return Nb.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i<t.length;i++){var o=t[i],l=o[0].trace;if(!pE.traceIs(l,"pie-like")){var s=pE.traceIs(l,"2dMap")?Nie:Nb.fillArray;s(l.hoverinfo,o,"hi",n(l)),l.hovertemplate&&s(l.hovertemplate,o,"ht"),l.hoverlabel&&(s(l.hoverlabel.bgcolor,o,"hbg"),s(l.hoverlabel.bordercolor,o,"hbc"),s(l.hoverlabel.font.size,o,"hts"),s(l.hoverlabel.font.color,o,"htc"),s(l.hoverlabel.font.family,o,"htf"),s(l.hoverlabel.font.weight,o,"htw"),s(l.hoverlabel.font.style,o,"hty"),s(l.hoverlabel.font.variant,o,"htv"),s(l.hoverlabel.namelength,o,"hnl"),s(l.hoverlabel.align,o,"hta"),s(l.hoverlabel.showarrow,o,"htsa"))}}};function Nie(e,r,t,a){a=a||Nb.identity,Array.isArray(e)&&(r[0][t]=a(e))}});var _E=le((ybe,bE)=>{"use strict";var Bie=_t(),yE=Pu(),Iie=Rb().hover;bE.exports=function(r,t,a){var n=Bie.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Iie(r,t,a,!0);function o(){var s,u,f,c,h,d;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&yE.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&yE.c2dApply(r._hoverYAxes,r._hoverYVals)),(h=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(d=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Yl=le((bbe,AE)=>{"use strict";var Hie=Ft(),Bm=mr(),Oie=Zo(),rh=Pu(),xE=m1(),wE=Rb();AE.exports={moduleType:"component",name:"fx",constants:(ov(),Tr(iv)),schema:{layout:xE},attributes:Rd(),layoutAttributes:xE,supplyLayoutGlobalDefaults:lE(),supplyDefaults:fE(),supplyLayoutDefaults:dE(),calc:gE(),getDistanceFunction:rh.getDistanceFunction,getClosest:rh.getClosest,inbox:rh.inbox,quadrature:rh.quadrature,appendArrayPointValue:rh.appendArrayPointValue,castHoverOption:Gie,castHoverinfo:Yie,hover:wE.hover,unhover:Oie.unhover,loneHover:wE.loneHover,loneUnhover:Uie,click:_E()};function Uie(e){var r=Bm.isD3Selection(e)?e:Hie.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Gie(e,r,t){return Bm.castOption(e,r,"hoverlabel."+t)}function Yie(e,r,t){function a(n){return Bm.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return Bm.castOption(e,t,"hoverinfo",a)}});var o2=le(zu=>{"use strict";zu.selectMode=function(e){return e==="lasso"||e==="select"};zu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};zu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};zu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};zu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};zu.selectingOrDrawing=function(e){return zu.freeMode(e)||zu.rectMode(e)}});var Im=le((xbe,ME)=>{"use strict";ME.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var Hm=le((wbe,TE)=>{"use strict";TE.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect fill='#000' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle fill='#9EF' cx='102' cy='30' r='6'/>"," <circle fill='#BAC' cx='78' cy='30' r='6'/>"," <circle fill='#BAC' cx='78' cy='54' r='6'/>"," <circle fill='#D69' cx='54' cy='30' r='6'/>"," <circle fill='#F26' cx='30' cy='30' r='6'/>"," <circle fill='#F26' cx='30' cy='54' r='6'/>"," <path fill='#FFF' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path fill='#FFF' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path fill='#FFF' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path fill='#FFF' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}});var Om={};Ha(Om,{CIRCLE_SIDES:()=>Vie,SQRT2:()=>Kie,cos45:()=>$ie,i000:()=>Xie,i090:()=>jie,i180:()=>Wie,i270:()=>Zie,sin45:()=>Jie});var Vie,Xie,jie,Wie,Zie,$ie,Jie,Kie,Um=Ia(()=>{"use strict";Vie=32,Xie=0,jie=8,Wie=16,Zie=24,$ie=Math.cos(Math.PI/4),Jie=Math.sin(Math.PI/4),Kie=Math.sqrt(2)});var Gm=le((Abe,CE)=>{"use strict";var Qie=mr().strTranslate;function kE(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function eoe(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function roe(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return kE(e,t[r])}}function toe(e){return Qie(e.xaxis._offset,e.yaxis._offset)}CE.exports={p2r:kE,r2p:eoe,axValue:roe,getTransform:toe}});var z0=le(Nu=>{"use strict";var aoe=A6(),FE=(Um(),Tr(Om)),l2=FE.CIRCLE_SIDES,Bb=FE.SQRT2,EE=Gm(),SE=EE.p2r,DE=EE.r2p,noe=[0,3,4,5,6,1,2],ioe=[0,3,4,1,2];Nu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a<r;a++)for(var n=e[a].length,i=0;i<n;i++){var o=e[a][i][0];if(o==="Z")t+="Z";else for(var l=e[a][i].length,s=0;s<l;s++){var u=s;o==="Q"||o==="S"?u=ioe[s]:o==="C"&&(u=noe[s]),t+=e[a][i][u],s>0&&s<l-1&&(t+=",")}}return t};Nu.readPaths=function(e,r,t,a){var n=aoe(e),i=[],o=-1,l=function(){o++,i[o]=[]},s,u=0,f=0,c,h,d=function(){c=u,h=f};d();for(var m=0;m<n.length;m++){var p=[],y,b,C,x,_=n[m][0],M=_;switch(_){case"M":l(),u=+n[m][1],f=+n[m][2],p.push([M,u,f]),d();break;case"Q":case"S":y=+n[m][1],C=+n[m][2],u=+n[m][3],f=+n[m][4],p.push([M,u,f,y,C]);break;case"C":y=+n[m][1],C=+n[m][2],b=+n[m][3],x=+n[m][4],u=+n[m][5],f=+n[m][6],p.push([M,u,f,y,C,b,x]);break;case"T":case"L":u=+n[m][1],f=+n[m][2],p.push([M,u,f]);break;case"H":M="L",u=+n[m][1],p.push([M,u,f]);break;case"V":M="L",f=+n[m][1],p.push([M,u,f]);break;case"A":M="L";var T=+n[m][1],A=+n[m][2];+n[m][4]||(T=-T,A=-A);var E=u-T,P=f;for(s=1;s<=l2/2;s++){var z=2*Math.PI*s/l2;p.push([M,E+T*Math.cos(z),P+A*Math.sin(z)])}break;case"Z":(u!==c||f!==h)&&(u=c,f=h,p.push([M,u,f]));break}for(var B=(t||{}).domain,X=r._fullLayout._size,I=t&&t.xsizemode==="pixel",V=t&&t.ysizemode==="pixel",H=a===!1,Q=0;Q<p.length;Q++){for(s=0;s+2<7;s+=2){var oe=p[Q][s+1],re=p[Q][s+2];oe===void 0||re===void 0||(u=oe,f=re,t&&(t.xaxis&&t.xaxis.p2r?(H&&(oe-=t.xaxis._offset),I?oe=DE(t.xaxis,t.xanchor)+oe:oe=SE(t.xaxis,oe)):(H&&(oe-=X.l),B?oe=B.x[0]+oe/X.w:oe=oe/X.w),t.yaxis&&t.yaxis.p2r?(H&&(re-=t.yaxis._offset),V?re=DE(t.yaxis,t.yanchor)-re:re=SE(t.yaxis,re)):(H&&(re-=X.t),B?re=B.y[1]-re/X.h:re=1-re/X.h)),p[Q][s+1]=oe,p[Q][s+2]=re)}i[o].push(p[Q].slice())}}return i};function th(e,r){return Math.abs(e-r)<=1e-6}function Ym(e,r){var t=r[1]-e[1],a=r[2]-e[2];return Math.sqrt(t*t+a*a)}Nu.pointsOnRectangle=function(e){var r=e.length;if(r!==5)return!1;for(var t=1;t<3;t++){var a=e[0][t]-e[1][t],n=e[3][t]-e[2][t];if(!th(a,n))return!1;var i=e[0][t]-e[3][t],o=e[1][t]-e[2][t];if(!th(i,o))return!1}return!th(e[0][1],e[1][1])&&!th(e[0][1],e[3][1])?!1:!!(Ym(e[0],e[1])*Ym(e[0],e[3]))};Nu.pointsOnEllipse=function(e){var r=e.length;if(r!==l2+1)return!1;r=l2;for(var t=0;t<r;t++){var a=(r*2-t)%r,n=(r/2+a)%r,i=(r/2+t)%r;if(!th(Ym(e[t],e[i]),Ym(e[a],e[n])))return!1}return!0};Nu.handleEllipse=function(e,r,t){if(!e)return[r,t];var a=Nu.ellipseOver({x0:r[0],y0:r[1],x1:t[0],y1:t[1]}),n=(a.x1+a.x0)/2,i=(a.y1+a.y0)/2,o=(a.x1-a.x0)/2,l=(a.y1-a.y0)/2;o||(o=l=l/Bb),l||(l=o=o/Bb);for(var s=[],u=0;u<l2;u++){var f=u*2*Math.PI/l2;s.push([n+o*Math.cos(f),i+l*Math.sin(f)])}return s};Nu.ellipseOver=function(e){var r=e.x0,t=e.y0,a=e.x1,n=e.y1,i=a-r,o=n-t;r-=i,t-=o;var l=(r+a)/2,s=(t+n)/2,u=Bb;return i*=u,o*=u,{x0:l-i,y0:s-o,x1:l+i,y1:s+o}};Nu.fixDatesForPaths=function(e,r,t){var a=r.type==="date",n=t.type==="date";if(!a&&!n)return e;for(var i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++)for(var l=0;l+2<e[i][o].length;l+=2)a&&(e[i][o][l+1]=e[i][o][l+1].replace(" ","_")),n&&(e[i][o][l+2]=e[i][o][l+2].replace(" ","_"));return e}});var jm=le((Tbe,HE)=>{"use strict";var LE=Cn(),NE=o2(),ooe=NE.drawMode,loe=NE.openMode,s2=(Um(),Tr(Om)),qE=s2.i000,PE=s2.i090,RE=s2.i180,zE=s2.i270,soe=s2.cos45,uoe=s2.sin45,BE=Gm(),Vm=BE.p2r,N0=BE.r2p,foe=T0(),coe=foe.clearOutline,Xm=z0(),voe=Xm.readPaths,hoe=Xm.writePaths,doe=Xm.ellipseOver,poe=Xm.fixDatesForPaths;function moe(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!ooe(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l<o.length)switch(a._fullLayout.shapes[l].type){case"rect":i="drawrect";break;case"circle":i="drawcircle";break;case"line":i="drawline";break;case"path":var s=o[l].path||"";s[s.length-1]==="Z"?i="drawclosedpath":i="drawopenpath";break}}var u=IE(e,r,i);coe(a);for(var f=r.editHelpers,c=(f||{}).modifyItem,h=[],d=0;d<o.length;d++){var m=a._fullLayout.shapes[d];if(h[d]=m._input,n!==void 0&&d===a._fullLayout._activeShapeIndex){var p=u;switch(m.type){case"line":case"rect":case"circle":var y=LE.getFromId(a,m.xref);m.xref.charAt(0)==="x"&&y.type.includes("category")?(c("x0",p.x0-(m.x0shift||0)),c("x1",p.x1-(m.x1shift||0))):(c("x0",p.x0),c("x1",p.x1));var b=LE.getFromId(a,m.yref);m.yref.charAt(0)==="y"&&b.type.includes("category")?(c("y0",p.y0-(m.y0shift||0)),c("y1",p.y1-(m.y1shift||0))):(c("y0",p.y0),c("y1",p.y1));break;case"path":c("path",p.path);break}}}return n===void 0?(h.push(u),h):f?f.getUpdateObj():{}}}}function IE(e,r,t){var a=e[0][0],n=r.gd,i=a.getAttribute("d"),o=n._fullLayout.newshape,l=r.plotinfo,s=r.isActiveShape,u=l.xaxis,f=l.yaxis,c=!!l.domain||!l.xaxis,h=!!l.domain||!l.yaxis,d=loe(t),m=voe(i,n,l,s),p={editable:!0,visible:o.visible,name:o.name,showlegend:o.showlegend,legend:o.legend,legendwidth:o.legendwidth,legendgroup:o.legendgroup,legendgrouptitle:{text:o.legendgrouptitle.text,font:o.legendgrouptitle.font},legendrank:o.legendrank,label:o.label,xref:c?"paper":u._id,yref:h?"paper":f._id,layer:o.layer,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}};d||(p.fillcolor=o.fillcolor,p.fillrule=o.fillrule);var y;if(m.length===1&&(y=m[0]),y&&y.length===5&&t==="drawrect")p.type="rect",p.x0=y[0][1],p.y0=y[0][2],p.x1=y[2][1],p.y1=y[2][2];else if(y&&t==="drawline")p.type="line",p.x0=y[0][1],p.y0=y[0][2],p.x1=y[1][1],p.y1=y[1][2];else if(y&&t==="drawcircle"){p.type="circle";var b=y[qE][1],C=y[PE][1],x=y[RE][1],_=y[zE][1],M=y[qE][2],T=y[PE][2],A=y[RE][2],E=y[zE][2],P=l.xaxis&&(l.xaxis.type==="date"||l.xaxis.type==="log"),z=l.yaxis&&(l.yaxis.type==="date"||l.yaxis.type==="log");P&&(b=N0(l.xaxis,b),C=N0(l.xaxis,C),x=N0(l.xaxis,x),_=N0(l.xaxis,_)),z&&(M=N0(l.yaxis,M),T=N0(l.yaxis,T),A=N0(l.yaxis,A),E=N0(l.yaxis,E));var B=(C+_)/2,X=(M+A)/2,I=(_-C+x-b)/2,V=(E-T+A-M)/2,H=doe({x0:B,y0:X,x1:B+I*soe,y1:X+V*uoe});P&&(H.x0=Vm(l.xaxis,H.x0),H.x1=Vm(l.xaxis,H.x1)),z&&(H.y0=Vm(l.yaxis,H.y0),H.y1=Vm(l.yaxis,H.y1)),p.x0=H.x0,p.y0=H.y0,p.x1=H.x1,p.y1=H.y1}else p.type="path",u&&f&&poe(m,u,f),p.path=hoe(m),y=null;return p}HE.exports={newShapes:moe,createShapeObj:IE}});var Hb=le((kbe,OE)=>{"use strict";var goe=o2(),yoe=goe.selectMode,boe=T0(),_oe=boe.clearOutline,Ib=z0(),xoe=Ib.readPaths,woe=Ib.writePaths,Aoe=Ib.fixDatesForPaths;OE.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,h=(i.layout||{}).selections||[];if(!yoe(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d<h.length)switch(i._fullLayout.selections[d].type){case"rect":c="select";break;case"path":c="lasso";break}}var m=xoe(n,i,l,f),p={xref:s._id,yref:u._id,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}},y;m.length===1&&(y=m[0]),y&&y.length===5&&c==="select"?(p.type="rect",p.x0=y[0][1],p.y0=y[0][2],p.x1=y[2][1],p.y1=y[2][2]):(p.type="path",s&&u&&Aoe(m,s,u),p.path=woe(m),y=null),_oe(i);for(var b=t.editHelpers,C=(b||{}).modifyItem,x=[],_=0;_<h.length;_++){var M=i._fullLayout.selections[_];if(!M){x[_]=M;continue}if(x[_]=M._input,f!==void 0&&_===i._fullLayout._activeSelectionIndex){var T=p;switch(M.type){case"rect":C("x0",T.x0),C("x1",T.x1),C("y0",T.y0),C("y1",T.y1);break;case"path":C("path",T.path);break}}}return f===void 0?(x.push(p),x):b?b.getUpdateObj():{}}}}});var ah={};Ha(ah,{numParams:()=>Soe,paramIsX:()=>koe,paramIsY:()=>Coe,paramRE:()=>Toe,segmentRE:()=>Moe});var Moe,Toe,koe,Coe,Soe,nh=Ia(()=>{"use strict";Moe=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Toe=/[^\s,]+/g,koe={M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},Coe={M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},Soe={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var I0=le(Vn=>{"use strict";var Is=(nh(),Tr(ah)),UE=mr(),B0=Oa();Vn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Vn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Vn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Vn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Vn.extractPathCoords=function(e,r,t){var a=[],n=e.match(Is.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Is.paramRE);if(!(!l||l.length<o)){var s=l[o],u=t?s:UE.cleanNumber(s);a.push(u)}}}),a};Vn.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let a=r.match(Is.segmentRE);if(!a)return 0;let n=t==="x"?Is.paramIsX:Is.paramIsY;return a.reduce((i,o)=>{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Vn.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=Vn.shapePositionToRange(r);o=function(s){var u=Bs(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Vn.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};Vn.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=Vn.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};Vn.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Vn.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};Vn.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};Vn.getPathString=function(e,r){let t=r.type,a=B0.getRefType(r.xref),n=B0.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,h,d,m,p,y,b;function C(z,B,X,I){var V;if(z)if(B==="domain")I?V=function(H){return z._offset+z._length*(1-H)}:V=function(H){return z._offset+z._length*H};else{let H=Vn.shapePositionToRange(z);V=function(Q){return z._offset+z.r2p(H(Q,!0))},X==="path"&&z.type==="date"&&(V=Vn.decodeDate(V))}else I?V=function(H){return i.t+i.h*(1-H)}:V=function(H){return i.l+i.w*H};return V}if(a==="array"?(h=[],o=r.xref.map(function(z){return B0.getFromId(e,z)}),h=r.xref.map(function(z,B){return C(o[B],B0.getRefType(z),t,!1)})):(o=B0.getFromId(e,r.xref),h=C(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(z){return B0.getFromId(e,z)}),d=r.yref.map(function(z,B){return C(l[B],B0.getRefType(z),t,!0)})):(l=B0.getFromId(e,r.yref),d=C(l,n,t,!0)),t==="path")return Doe(r,h,d);if(a==="array")s=Bs(o[0],r.x0shift),u=Bs(o[1],r.x1shift),m=h[0](r.x0)+s,p=h[1](r.x1)+u;else if(s=Bs(o,r.x0shift),u=Bs(o,r.x1shift),r.xsizemode==="pixel"){let z=h(r.xanchor);m=z+r.x0+s,p=z+r.x1+u}else m=h(r.x0)+s,p=h(r.x1)+u;if(n==="array")f=Bs(l[0],r.y0shift),c=Bs(l[1],r.y1shift),y=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=Bs(l,r.y0shift),c=Bs(l,r.y1shift),r.ysizemode==="pixel"){let z=d(r.yanchor);y=z-r.y0+f,b=z-r.y1+c}else y=d(r.y0)+f,b=d(r.y1)+c;if(t==="line")return"M"+m+","+y+"L"+p+","+b;if(t==="rect")return"M"+m+","+y+"H"+p+"V"+b+"H"+m+"Z";var x=(m+p)/2,_=(y+b)/2,M=Math.abs(x-m),T=Math.abs(_-y),A="A"+M+","+T,E=x+M+","+_,P=x+","+(_-T);return"M"+E+A+" 0 1,1 "+P+A+" 0 0,1 "+E+"Z"};function Doe(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(Is.segmentRE,function(h){var d=0,m=h.charAt(0),p=Is.paramIsX[m],y=Is.paramIsY[m],b=Is.numParams[m];let C=p.drawn!==void 0,x=y.drawn!==void 0,_=s?r[f]:r,M=u?t[c]:t;var T=h.slice(1).replace(Is.paramRE,function(A){return p[d]?n==="pixel"?A=_(o)+Number(A):A=_(A):y[d]&&(i==="pixel"?A=M(l)-Number(A):A=M(A)),d++,d>b&&(A="X"),A});return d>b&&(T=T.replace(/[\s,]*X.*/,""),UE.log("Ignoring extra params in segment "+h)),C&&f++,x&&c++,m+T})}Vn.getPixelShift=Bs;function Bs(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var Ob=le((Sbe,VE)=>{"use strict";var Foe=mr(),Hs=Oa(),GE=si(),YE=ha(),Eoe=z0().readPaths,pc=I0(),Loe=pc.getPathString,ih=mp(),qoe=(li(),Tr(oi)).FROM_TL;VE.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=Hs.getFromId(r,a.xref),s=Hs.getFromId(r,a.yref);let ce=Array.isArray(a.xref),Me=Array.isArray(a.yref);for(var u in ih){var f=typeof ih[u]=="function",c=!ce||ih.simpleXVariables.includes(u),h=!Me||ih.simpleYVariables.includes(u);if(f&&c&&h){var d=ih[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=Foe.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var m={"data-index":t},p=a.label.font,y={"data-notex":1},b=n.append("g").attr(m).classed("shape-label",!0),C=b.append("text").attr(y).classed("shape-label-text",!0).text(i),x,_,M,T;if(a.path){var A=Loe(r,a),E=Eoe(A,r);x=1/0,M=1/0,_=-1/0,T=-1/0;for(var P=0;P<E.length;P++)for(var z=0;z<E[P].length;z++)for(var B=E[P][z],X=1;X<B.length;X+=2){var I=B[X],V=B[X+1];x=Math.min(x,I),_=Math.max(_,I),M=Math.min(M,V),T=Math.max(T,V)}}else{let ce=Array.isArray(a.xref),Me=Array.isArray(a.yref),De=Hs.getFromId(r,ce?a.xref[0]:a.xref),Ie=Hs.getFromId(r,ce?a.xref[1]:a.xref),Ue=Hs.getFromId(r,Me?a.yref[0]:a.yref),ke=Hs.getFromId(r,Me?a.yref[1]:a.yref),je=Hs.getRefType(ce?a.xref[0]:a.xref),W=Hs.getRefType(ce?a.xref[1]:a.xref),ee=Hs.getRefType(Me?a.yref[0]:a.yref),me=Hs.getRefType(Me?a.yref[1]:a.yref),K=(ue,_e,Ne,Je)=>pc.getDataToPixel(r,Ne,_e,!1,Je)(ue),J=(ue,_e,Ne,Je)=>pc.getDataToPixel(r,Ne,_e,!0,Je)(ue);if(a.xsizemode==="pixel"){let ue=K(a.xanchor,void 0,De,je),_e=pc.getPixelShift(De,a.x0shift),Ne=pc.getPixelShift(De,a.x1shift);x=ue+a.x0+_e,_=ue+a.x1+Ne}else x=K(a.x0,a.x0shift,De,je),_=K(a.x1,a.x1shift,Ie,W);if(a.ysizemode==="pixel"){let ue=J(a.yanchor,void 0,Ue,ee),_e=pc.getPixelShift(Ue,a.y0shift),Ne=pc.getPixelShift(Ue,a.y1shift);M=ue-a.y0+_e,T=ue-a.y1+Ne}else M=J(a.y0,a.y0shift,Ue,ee),T=J(a.y1,a.y1shift,ke,me)}var H=a.label.textangle;H==="auto"&&(a.type==="line"?H=Poe(x,M,_,T):H=0),C.call(function(ce){return ce.call(YE.font,p).attr({}),GE.convertToTspans(ce,r),ce});var Q=YE.bBox(C.node()),oe=Roe(x,M,_,T,a,H,Q),re=oe.textx,te=oe.texty,ie=oe.xanchor;C.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[ie],y:te,x:re,transform:"rotate("+H+","+re+","+te+")"}).call(GE.positionText,re,te)}};function Poe(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Roe(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,h=Math.sin(c),d=Math.cos(c),m=n.label.xanchor,p=n.label.yanchor,y,b,C,x;if(f==="line"){l==="start"?(y=e,b=r):l==="end"?(y=t,b=a):(y=(e+t)/2,b=(r+a)/2),m==="auto"&&(l==="start"?s==="auto"?t>e?m="left":t<e?m="right":m="center":t>e?m="right":t<e?m="left":m="center":l==="end"?s==="auto"?t>e?m="right":t<e?m="left":m="center":t>e?m="left":t<e?m="right":m="center":m="center");var _={left:1,center:0,right:-1},M={bottom:-1,middle:0,top:1};if(s==="auto"){var T=M[p];C=-u*h*T,x=u*d*T}else{var A=_[m],E=M[p];C=u*A,x=u*E}y=y+C,b=b+x}else C=u+3,l.indexOf("right")!==-1?(y=Math.max(e,t)-C,m==="auto"&&(m="right")):l.indexOf("left")!==-1?(y=Math.min(e,t)+C,m==="auto"&&(m="left")):(y=(e+t)/2,m==="auto"&&(m="center")),l.indexOf("top")!==-1?b=Math.min(r,a):l.indexOf("bottom")!==-1?b=Math.max(r,a):b=(r+a)/2,x=u,p==="bottom"?b=b-x:p==="top"&&(b=b+x);var P=qoe[p],z=n.label.font.size,B=o.height,X=(B*P-z)*h,I=-(B*P-z)*d;return{textx:y+X,texty:b+I,xanchor:m}}});var $m=le((Dbe,QE)=>{"use strict";var zoe=mr(),Noe=zoe.strTranslate,XE=Zo(),ZE=o2(),Boe=ZE.drawMode,$E=ZE.selectMode,JE=_t(),jE=qt(),Zm=(Um(),Tr(Om)),Ioe=Zm.i000,Hoe=Zm.i090,Ooe=Zm.i180,Uoe=Zm.i270,Goe=T0(),KE=Goe.clearOutlineControllers,Gb=z0(),Wm=Gb.pointsOnRectangle,Ub=Gb.pointsOnEllipse,Yoe=Gb.writePaths,Voe=jm().newShapes,Xoe=jm().createShapeObj,joe=Hb(),Woe=Ob();QE.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(Ub(r[0])||a.hasText)&&l({redrawing:!0})}function l(oe){var re={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,re=Voe(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,re=joe(t,a),i._fullLayout._reselect=!0),Object.keys(re).length&&JE.call((oe||{}).redrawing?"relayout":"_guiRelayout",i,re)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Boe(f),h=$E(f);(c||h)&&(i._fullLayout._outlining=!0),KE(i),t.attr("d",Yoe(r));var d,m,p,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=Zoe([],r);var C=u.append("g").attr("class","outline-controllers");z(C),Q()}if(c&&a.hasText){var x=u.select(".label-temp"),_=Xoe(t,a,a.dragmode);Woe(i,"label-temp",_,x)}function M(oe){p=+oe.srcElement.getAttribute("data-i"),y=+oe.srcElement.getAttribute("data-j"),d[p][y].moveFn=T}function T(oe,re){if(r.length){var te=b[p][y][1],ie=b[p][y][2],ce=r[p],Me=ce.length;if(Wm(ce)){var De=oe,Ie=re;if(a.isActiveSelection){var Ue=WE(ce,y);Ue[1]===ce[y][1]?Ie=0:De=0}for(var ke=0;ke<Me;ke++)if(ke!==y){var je=ce[ke];je[1]===ce[y][1]&&(je[1]=te+De),je[2]===ce[y][2]&&(je[2]=ie+Ie)}if(ce[y][1]=te+De,ce[y][2]=ie+Ie,!Wm(ce))for(var W=0;W<Me;W++)for(var ee=0;ee<ce[W].length;ee++)ce[W][ee]=b[p][W][ee]}else ce[y][1]=te+oe,ce[y][2]=ie+re;o()}}function A(){l()}function E(){if(r.length&&r[p]&&r[p].length){for(var oe=[],re=0;re<r[p].length;re++)re!==y&&oe.push(r[p][re]);oe.length>1&&!(oe.length===2&&oe[1][0]==="Z")&&(y===0&&(oe[0][0]="M"),r[p]=oe,o(),l())}}function P(oe,re){if(oe===2){p=+re.srcElement.getAttribute("data-i"),y=+re.srcElement.getAttribute("data-j");var te=r[p];!Wm(te)&&!Ub(te)&&E()}}function z(oe){d=[];for(var re=0;re<r.length;re++){var te=r[re],ie=Wm(te),ce=!ie&&Ub(te);d[re]=[];for(var Me=te.length,De=0;De<Me;De++)if(te[De][0]!=="Z"&&!(ce&&De!==Ioe&&De!==Hoe&&De!==Ooe&&De!==Uoe)){var Ie=ie&&a.isActiveSelection,Ue;Ie&&(Ue=WE(te,De));var ke=te[De][1],je=te[De][2],W=oe.append(Ie?"rect":"circle").attr("data-i",re).attr("data-j",De).style({fill:jE.background,stroke:jE.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(Ie){var ee=Ue[1]-ke,me=Ue[2]-je,K=me?5:Math.max(Math.min(25,Math.abs(ee)-5),5),J=ee?5:Math.max(Math.min(25,Math.abs(me)-5),5);W.classed(me?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",K).attr("height",J).attr("x",ke-K/2).attr("y",je-J/2).attr("transform",Noe(ee/2,me/2))}else W.classed("cursor-grab",!0).attr("r",5).attr("cx",ke).attr("cy",je);d[re][De]={element:W.node(),gd:i,prepFn:M,doneFn:A,clickFn:P},XE.init(d[re][De])}}}function B(oe,re){if(r.length)for(var te=0;te<r.length;te++)for(var ie=0;ie<r[te].length;ie++)for(var ce=0;ce+2<r[te][ie].length;ce+=2)r[te][ie][ce+1]=b[te][ie][ce+1]+oe,r[te][ie][ce+2]=b[te][ie][ce+2]+re}function X(oe,re){B(oe,re),o()}function I(oe){p=+oe.srcElement.getAttribute("data-i"),p||(p=0),m[p].moveFn=X}function V(){l()}function H(oe){oe===2&&$oe(i)}function Q(){if(m=[],!!r.length){var oe=0;m[oe]={element:t[0][0],gd:i,prepFn:I,doneFn:V,clickFn:H},XE.init(m[oe])}}};function Zoe(e,r){for(var t=0;t<r.length;t++){var a=r[t];e[t]=[];for(var n=0;n<a.length;n++){e[t][n]=[];for(var i=0;i<a[n].length;i++)e[t][n][i]=a[n][i]}}return e}function WE(e,r){var t=e[r][1],a=e[r][2],n=e.length,i,o,l;return i=(r+1)%n,o=e[i][1],l=e[i][2],o===t&&l===a&&(i=(r+2)%n,o=e[i][1],l=e[i][2]),[i,o,l]}function $oe(e){if($E(e._fullLayout.dragmode)){KE(e);var r=e._fullLayout._activeSelectionIndex,t=(e.layout||{}).selections||[];if(r<t.length){for(var a=[],n=0;n<t.length;n++)n!==r&&a.push(t[n]);delete e._fullLayout._activeSelectionIndex;var i=e._fullLayout.selections[r];e._fullLayout._deselect={xref:i.xref,yref:i.yref},JE.call("_guiRelayout",e,{selections:a})}}}});var rg=le((Fbe,uL)=>{"use strict";var Joe=Ft(),iL=_t(),Vb=mr(),mc=Oa(),Koe=z0().readPaths,Qoe=$m(),Km=Ob(),oL=T0().clearOutlineControllers,Yb=qt(),Qm=ha(),ele=ka().arrayEditor,eL=Zo(),rL=Yl(),tL=P0(),gc=(nh(),Tr(ah)),to=I0(),Xb=to.getPathString;uL.exports={draw:jb,drawOne:lL,eraseActiveShape:ile,drawLabel:Km};function jb(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n<r.shapes.length;n++)r.shapes[n].visible===!0&&lL(e,n)}function Jm(e){return!!e._fullLayout._outlining}function eg(e){return!e._context.edits.shapePosition}function lL(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=to.makeShapesOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input||a.visible!==!0)return;let i=Array.isArray(a.xref)||Array.isArray(a.yref);if(a.layer==="above")l(e._fullLayout._shapeUpperLayer);else if(a.xref.includes("paper")||a.yref.includes("paper"))l(e._fullLayout._shapeLowerLayer);else if(a.layer==="between"&&!i)l(n.shapelayerBetween);else if(n._hadPlotinfo){var o=n.mainplotinfo||n;l(o.shapelayer)}else l(e._fullLayout._shapeLowerLayer);function l(s){var u=Xb(e,a),f={"data-index":r,"fill-rule":a.fillrule,d:u},c=a.opacity,h=a.fillcolor,d=a.line.width?a.line.color:"rgba(0,0,0,0)",m=a.line.width,p=a.line.dash;!m&&a.editable===!0&&(m=5,p="solid");var y=u[u.length-1]!=="Z",b=eg(e)&&a.editable&&e._fullLayout._activeShapeIndex===r;b&&(h=y?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,c=e._fullLayout.activeshape.opacity);var C=s.append("g").classed("shape-group",!0).attr({"data-index":r}),x=C.append("path").attr(f).style("opacity",c).call(Yb.stroke,d).call(Yb.fill,h).call(Qm.dashLine,p,m);sL(C,e,a),Km(e,r,a,C);var _;if((b||e._context.edits.shapePosition)&&(_=ele(e.layout,"shapes",a)),b){x.style({cursor:"move"});var M={element:x.node(),plotinfo:n,gd:e,editHelpers:_,hasText:a.label.text||a.label.texttemplate,isActiveShape:!0},T=Koe(u,e);Qoe(T,x,M)}else e._context.edits.shapePosition?ale(e,x,a,r,s,_):a.editable===!0&&x.style("pointer-events",y||Yb.opacity(h)*c<=.5?"stroke":"all");x.node().addEventListener("click",function(){return nle(e,x)}),rle(e,x,n)}}function rle(e,r,t){if(!(t!=null&&t.id))return;let a=r.node();function n(i){var s;let o=t.mainplotinfo||t,l=(s=o==null?void 0:o.draglayer)==null?void 0:s.select(".nsewdrag").node();return l?{clientX:i.clientX,clientY:i.clientY,target:l}:null}a.addEventListener("mousemove",i=>{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&rL.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&rL.click(e,o,t.id)}})}function sL(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=tle(r,a,n);Vb.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),Qm.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");Qm.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function tle(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(h=>mc.getFromId(e,h)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(h){return h._offset}),c=u.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function ale(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",h=i.modifyItem,d,m,p,y,b,C,x,_,M,T,A,E,P,z,B,X=Joe.select(r.node().parentNode),I=mc.getFromId(e,t.xref),V=mc.getRefType(t.xref),H=mc.getFromId(e,t.yref),Q=mc.getRefType(t.yref),oe=t.x0shift,re=t.x1shift,te=t.y0shift,ie=t.y1shift,ce=function(fr,Re){var sr=to.getDataToPixel(e,I,Re,!1,V);return sr(fr)},Me=function(fr,Re){var sr=to.getDataToPixel(e,H,Re,!0,Q);return sr(fr)},De=to.getPixelToData(e,I,!1,V),Ie=to.getPixelToData(e,H,!0,Q),Ue=W(),ke={element:Ue.node(),gd:e,prepFn:K,doneFn:J,clickFn:ue},je;eL.init(ke),Ue.node().onmousemove=me;function W(){return f?ee():r}function ee(){var fr=10,Re=Math.max(t.line.width,fr),sr=n.append("g").attr("data-index",a).attr("drag-helper",!0);sr.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Re,"stroke-opacity":"0"});var hr={"fill-opacity":"0"},dr=Math.max(Re/2,fr);return sr.append("circle").attr({"data-line-point":"start-point",cx:s?ce(t.xanchor)+t.x0:ce(t.x0,oe),cy:u?Me(t.yanchor)-t.y0:Me(t.y0,te),r:dr}).style(hr).classed("cursor-grab",!0),sr.append("circle").attr({"data-line-point":"end-point",cx:s?ce(t.xanchor)+t.x1:ce(t.x1,re),cy:u?Me(t.yanchor)-t.y1:Me(t.y1,ie),r:dr}).style(hr).classed("cursor-grab",!0),sr}function me(fr){if(Jm(e)){je=null;return}if(f)fr.target.tagName==="path"?je="move":je=fr.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Re=ke.element.getBoundingClientRect(),sr=Re.right-Re.left,hr=Re.bottom-Re.top,dr=fr.clientX-Re.left,Ze=fr.clientY-Re.top,cr=!c&&sr>o&&hr>l&&!fr.shiftKey?eL.getCursor(dr/sr,1-Ze/hr):"move";tL(r,cr),je=cr.split("-")[0]}}function K(fr){Jm(e)||(s&&(b=ce(t.xanchor)),u&&(C=Me(t.yanchor)),t.type==="path"?B=t.path:(d=s?t.x0:ce(t.x0),m=u?t.y0:Me(t.y0),p=s?t.x1:ce(t.x1),y=u?t.y1:Me(t.y1)),d<p?(M=d,P="x0",T=p,z="x1"):(M=p,P="x1",T=d,z="x0"),!u&&m<y||u&&m>y?(x=m,A="y0",_=y,E="y1"):(x=y,A="y1",_=m,E="y0"),me(fr),Je(n,t),tr(r,t,e),ke.moveFn=je==="move"?_e:Ne,ke.altKey=fr.altKey)}function J(){Jm(e)||(tL(r),ar(n),sL(r,e,t),iL.call("_guiRelayout",e,i.getUpdateObj()))}function ue(){Jm(e)||ar(n)}function _e(fr,Re){if(t.type==="path"){var sr=function(Ze){return Ze},hr=sr,dr=sr;s?h("xanchor",t.xanchor=De(b+fr)):(hr=function(cr){return De(ce(cr)+fr)},I&&I.type==="date"&&(hr=to.encodeDate(hr))),u?h("yanchor",t.yanchor=Ie(C+Re)):(dr=function(cr){return Ie(Me(cr)+Re)},H&&H.type==="date"&&(dr=to.encodeDate(dr))),h("path",t.path=aL(B,hr,dr))}else s?h("xanchor",t.xanchor=De(b+fr)):(h("x0",t.x0=De(d+fr)),h("x1",t.x1=De(p+fr))),u?h("yanchor",t.yanchor=Ie(C+Re)):(h("y0",t.y0=Ie(m+Re)),h("y1",t.y1=Ie(y+Re)));r.attr("d",Xb(e,t)),Je(n,t),Km(e,a,t,X)}function Ne(fr,Re){if(c){var sr=function(xr){return xr},hr=sr,dr=sr;s?h("xanchor",t.xanchor=De(b+fr)):(hr=function(Rr){return De(ce(Rr)+fr)},I&&I.type==="date"&&(hr=to.encodeDate(hr))),u?h("yanchor",t.yanchor=Ie(C+Re)):(dr=function(Rr){return Ie(Me(Rr)+Re)},H&&H.type==="date"&&(dr=to.encodeDate(dr))),h("path",t.path=aL(B,hr,dr))}else if(f){if(je==="resize-over-start-point"){var Ze=d+fr,cr=u?m-Re:m+Re;h("x0",t.x0=s?Ze:De(Ze)),h("y0",t.y0=u?cr:Ie(cr))}else if(je==="resize-over-end-point"){var Lr=p+fr,Te=u?y-Re:y+Re;h("x1",t.x1=s?Lr:De(Lr)),h("y1",t.y1=u?Te:Ie(Te))}}else{var Oe=function(xr){return je.indexOf(xr)!==-1},Ar=Oe("n"),Br=Oe("s"),Qe=Oe("w"),Be=Oe("e"),Xe=Ar?x+Re:x,yr=Br?_+Re:_,Cr=Qe?M+fr:M,pr=Be?T+fr:T;u&&(Ar&&(Xe=x-Re),Br&&(yr=_-Re)),(!u&&yr-Xe>l||u&&Xe-yr>l)&&(h(A,t[A]=u?Xe:Ie(Xe)),h(E,t[E]=u?yr:Ie(yr))),pr-Cr>o&&(h(P,t[P]=s?Cr:De(Cr)),h(z,t[z]=s?pr:De(pr)))}r.attr("d",Xb(e,t)),Je(n,t),Km(e,a,t,X)}function Je(fr,Re){(s||u)&&sr();function sr(){var hr=Re.type!=="path",dr=fr.selectAll(".visual-cue").data([0]),Ze=1;dr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ze}).classed("visual-cue",!0);var cr=ce(s?Re.xanchor:Vb.midRange(hr?[Re.x0,Re.x1]:to.extractPathCoords(Re.path,gc.paramIsX))),Lr=Me(u?Re.yanchor:Vb.midRange(hr?[Re.y0,Re.y1]:to.extractPathCoords(Re.path,gc.paramIsY)));if(cr=to.roundPositionForSharpStrokeRendering(cr,Ze),Lr=to.roundPositionForSharpStrokeRendering(Lr,Ze),s&&u){var Te="M"+(cr-1-Ze)+","+(Lr-1-Ze)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";dr.attr("d",Te)}else if(s){var Oe="M"+(cr-1-Ze)+","+(Lr-9-Ze)+"v18 h2 v-18 Z";dr.attr("d",Oe)}else{var Ar="M"+(cr-9-Ze)+","+(Lr-1-Ze)+"h18 v2 h-18 Z";dr.attr("d",Ar)}}}function ar(fr){fr.selectAll(".visual-cue").remove()}function tr(fr,Re,sr){var hr=Re.xref,dr=Re.yref,Ze=mc.getFromId(sr,hr),cr=mc.getFromId(sr,dr),Lr="";hr!=="paper"&&!Ze.autorange&&(Lr+=hr),dr!=="paper"&&!cr.autorange&&(Lr+=dr),Qm.setClipUrl(fr,Lr?"clip"+sr._fullLayout._uid+Lr:null,sr)}}function aL(e,r,t){return e.replace(gc.segmentRE,function(a){var n=0,i=a.charAt(0),o=gc.paramIsX[i],l=gc.paramIsY[i],s=gc.numParams[i],u=a.slice(1).replace(gc.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function nle(e,r){if(eg(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){nL(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=nL,jb(e)}}}function nL(e){if(eg(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(oL(e),delete e._fullLayout._activeShapeIndex,jb(e))}}function ile(e){if(eg(e)){oL(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r<t.length){for(var a=[],n=0;n<t.length;n++)n!==r&&a.push(t[n]);return delete e._fullLayout._activeShapeIndex,iL.call("_guiRelayout",e,{shapes:a})}}}});var cL=le((Ebe,fL)=>{"use strict";var u2=mr()._,ole=function(e){return{DIALOG_TITLE:u2(e,"Share chart"),DIALOG_MESSAGE_CLOUD:u2(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:u2(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:u2(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:u2(e,"Cancel"),DIALOG_CONFIRM:u2(e,"Share")}};fL.exports=ole});var dL=le((Lbe,hL)=>{"use strict";var vL=Ft(),{dfltConfig:lle}=d0(),sle=cL(),ule=(e,r,t,a,n)=>{let i=sle(e),o=r.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===lle.plotlyServerURL){let s=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],h=f[2],d=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(h),s.append("span").text(d),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),h=c[0],d=c[4],m=o.append("div").classed("plotly-cloud-dialog-message",!0);m.append("span").text(h),m.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),m.append("span").text(d)}let l=o.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},fle=(e,r,t)=>{let a=vL.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",o)},o=l=>{(l.key==="Escape"||l.keyCode===27)&&i()};document.addEventListener("keydown",o),n.on("click",()=>{vL.event.target===n.node()&&i()}),ule(e,n,r,()=>{i(),t()},i)};hL.exports=fle});var $b=le((qbe,xL)=>{"use strict";var To=_t(),cle=Sn(),mL=Cn(),Qt=Hm(),vle=rg().eraseActiveShape,hle=dL(),f2=mr(),Bt=f2._,Kt={};xL.exports=Kt;Kt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Bt(e,"Download plot as a PNG"):Bt(e,"Download plot")},icon:Qt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};f2.notifier(Bt(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),To.call("downloadImage",e,t).then(function(a){f2.notifier(Bt(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){f2.notifier(Bt(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};Kt.downloadJson={name:"downloadJson",title:function(e){return Bt(e,"Download plot as JSON")},icon:Qt.curlybraces,click:function(e){To.call("downloadImage",e,{format:"full-json"}).then(function(r){f2.notifier(Bt(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){f2.notifier(Bt(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};Kt.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Bt(e,"Share chart...")},icon:Qt.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}hle(e,r,function(){cle.sendDataToCloud(e,r)})}};Kt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Bt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Qt.zoombox,click:Ai};Kt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Bt(e,"Pan")},attr:"dragmode",val:"pan",icon:Qt.pan,click:Ai};Kt.select2d={name:"select2d",_cat:"select",title:function(e){return Bt(e,"Box Select")},attr:"dragmode",val:"select",icon:Qt.selectbox,click:Ai};Kt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Bt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Qt.lasso,click:Ai};Kt.drawclosedpath={name:"drawclosedpath",title:function(e){return Bt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Qt.drawclosedpath,click:Ai};Kt.drawopenpath={name:"drawopenpath",title:function(e){return Bt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Qt.drawopenpath,click:Ai};Kt.drawline={name:"drawline",title:function(e){return Bt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Qt.drawline,click:Ai};Kt.drawrect={name:"drawrect",title:function(e){return Bt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Qt.drawrect,click:Ai};Kt.drawcircle={name:"drawcircle",title:function(e){return Bt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Qt.drawcircle,click:Ai};Kt.eraseshape={name:"eraseshape",title:function(e){return Bt(e,"Erase active shape")},icon:Qt.eraseshape,click:vle};Kt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Bt(e,"Zoom in")},attr:"zoom",val:"in",icon:Qt.zoom_plus,click:Ai};Kt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Bt(e,"Zoom out")},attr:"zoom",val:"out",icon:Qt.zoom_minus,click:Ai};Kt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Bt(e,"Autoscale")},attr:"zoom",val:"auto",icon:Qt.autoscale,click:Ai};Kt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Bt(e,"Reset axes")},attr:"zoom",val:"reset",icon:Qt.home,click:Ai};Kt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Bt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Qt.tooltip_basic,gravity:"ne",click:Ai};Kt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Bt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Qt.tooltip_compare,gravity:"ne",click:Ai};function Ai(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=mL.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,m,p;for(f=0;f<l.length;f++)if(u=l[f],p=u.modebardisable==="none"||u.modebardisable.indexOf(n==="auto"||n==="reset"?"autoscale":"zoominout")===-1,p&&!u.fixedrange)if(m=u._name,n==="auto")o[m+".autorange"]=!0;else if(n==="reset")u._rangeInitial0===void 0&&u._rangeInitial1===void 0?o[m+".autorange"]=!0:u._rangeInitial0===void 0?(o[m+".autorange"]=u._autorangeInitial,o[m+".range"]=[null,u._rangeInitial1]):u._rangeInitial1===void 0?(o[m+".range"]=[u._rangeInitial0,null],o[m+".autorange"]=u._autorangeInitial):o[m+".range"]=[u._rangeInitial0,u._rangeInitial1],u._showSpikeInitial!==void 0&&(o[m+".showspikes"]=u._showSpikeInitial,s==="on"&&!u._showSpikeInitial&&(s="off"));else{var y=[u.r2l(u.range[0]),u.r2l(u.range[1])],b=[h*y[0]+d*y[1],h*y[1]+d*y[0]];o[m+".range[0]"]=u.l2r(b[0]),o[m+".range[1]"]=u.l2r(b[1])}}else a==="hovermode"&&(n==="x"||n==="y")&&(n=i._isHoriz?"y":"x",t.setAttribute("data-val",n)),o[a]=n;i._cartesianSpikesEnabled=s,To.call("_guiRelayout",e,o)}Kt.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return Bt(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:Qt.zoombox,click:ag};Kt.pan3d={name:"pan3d",_cat:"pan",title:function(e){return Bt(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:Qt.pan,click:ag};Kt.orbitRotation={name:"orbitRotation",title:function(e){return Bt(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:Qt["3d_rotate"],click:ag};Kt.tableRotation={name:"tableRotation",title:function(e){return Bt(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:Qt["z-axis"],click:ag};function ag(e,r){for(var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout._subplots.gl3d||[],o={},l=a.split("."),s=0;s<i.length;s++)o[i[s]+"."+l[1]]=n;var u=n==="pan"?n:"zoom";o.dragmode=u,To.call("_guiRelayout",e,o)}Kt.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return Bt(e,"Reset camera to default")},attr:"resetDefault",icon:Qt.home,click:Wb};Kt.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return Bt(e,"Reset camera to last save")},attr:"resetLastSave",icon:Qt.movie,click:Wb};function Wb(e,r){for(var t=r.currentTarget,a=t.getAttribute("data-attr"),n=a==="resetLastSave",i=a==="resetDefault",o=e._fullLayout,l=o._subplots.gl3d||[],s={},u=0;u<l.length;u++){var f=l[u],c=f+".camera",h=f+".aspectratio",d=f+".aspectmode",m=o[f]._scene,p;n?(s[c+".up"]=m.viewInitial.up,s[c+".eye"]=m.viewInitial.eye,s[c+".center"]=m.viewInitial.center,p=!0):i&&(s[c+".up"]=null,s[c+".eye"]=null,s[c+".center"]=null,p=!0),p&&(s[h+".x"]=m.viewInitial.aspectratio.x,s[h+".y"]=m.viewInitial.aspectratio.y,s[h+".z"]=m.viewInitial.aspectratio.z,s[d]=m.viewInitial.aspectmode)}To.call("_guiRelayout",e,s)}Kt.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return Bt(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:Qt.tooltip_basic,gravity:"ne",click:dle};function gL(e,r){var t=r.currentTarget,a=t._previousVal,n=e._fullLayout,i=n._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},s={};if(a)s=a,t._previousVal=null;else{for(var u=0;u<i.length;u++){var f=i[u],c=n[f],h=f+".hovermode";l[h]=c.hovermode,s[h]=!1;for(var d=0;d<3;d++){var m=o[d],p=f+"."+m+".showspikes";s[p]=!1,l[p]=c[m].showspikes}}t._previousVal=l}return s}function dle(e,r){var t=gL(e,r);To.call("_guiRelayout",e,t)}Kt.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return Bt(e,"Zoom in")},attr:"zoom",val:"in",icon:Qt.zoom_plus,click:Zb};Kt.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return Bt(e,"Zoom out")},attr:"zoom",val:"out",icon:Qt.zoom_minus,click:Zb};Kt.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return Bt(e,"Reset")},attr:"reset",val:null,icon:Qt.autoscale,click:Zb};Kt.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return Bt(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:Qt.tooltip_basic,gravity:"ne",click:bL};var pL=2;function Zb(e,r){var l;let t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o=i._subplots.geo||[];for(let s of o){let u=i[s],f=u._subplot;if(a==="zoom"){let c=f.projection,h=c.scale()/f.fitScale,[d,m]=c.rotate().map(T=>-T),[p,y]=c.invert(f.midPt),{minscale:b}=u.projection,C=(l=u.projection.maxscale)!=null?l:1/0,x=Math.min(b,C),_=Math.max(b,C),M=n==="in"?pL*h:1/pL*h;M>_?M=_:M<x&&(M=x),M!==h&&To.call("_guiRelayout",e,{[s+".projection.scale"]:M,[s+".projection.rotation.lon"]:d,[s+".projection.rotation.lat"]:m,[s+".center.lon"]:p,[s+".center.lat"]:y,[s+".fitbounds"]:!1})}}a==="reset"&&tg(e,"geo")}Kt.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return Bt(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:Qt.tooltip_basic,gravity:"ne",click:bL};function yL(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function bL(e){var r=yL(e);To.call("_guiRelayout",e,"hovermode",r)}Kt.resetViewSankey={name:"resetSankeyGroup",title:function(e){return Bt(e,"Reset view")},icon:Qt.home,click:function(e){for(var r={"node.groups":[],"node.x":[],"node.y":[]},t=0;t<e._fullData.length;t++){var a=e._fullData[t]._viewInitial;r["node.groups"].push(a.node.groups.slice()),r["node.x"].push(a.node.x.slice()),r["node.y"].push(a.node.y.slice())}To.call("restyle",e,r)}};Kt.toggleHover={name:"toggleHover",title:function(e){return Bt(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:Qt.tooltip_basic,gravity:"ne",click:function(e,r){var t=gL(e,r);t.hovermode=yL(e),To.call("_guiRelayout",e,t)}};Kt.resetViews={name:"resetViews",title:function(e){return Bt(e,"Reset views")},icon:Qt.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),Ai(e,r),t.setAttribute("data-attr","resetLastSave"),Wb(e,r),tg(e,"geo"),tg(e,"map")}};Kt.toggleSpikelines={name:"toggleSpikelines",title:function(e){return Bt(e,"Toggle Spike Lines")},icon:Qt.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",To.call("_guiRelayout",e,ple(e))}};function ple(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",a=mL.list(e,null,!0),n={},i=0;i<a.length;i++){var o=a[i];n[o._name+".showspikes"]=t?!0:o._showSpikeInitial}return n}Kt.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return Bt(e,"Reset view")},attr:"reset",icon:Qt.home,click:function(e){tg(e,"map")}};Kt.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return Bt(e,"Zoom in")},attr:"zoom",val:"in",icon:Qt.zoom_plus,click:_L};Kt.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return Bt(e,"Zoom out")},attr:"zoom",val:"out",icon:Qt.zoom_minus,click:_L};function _L(e,r){mle(e,r,"map")}function mle(e,r,t){for(var a=r.currentTarget,n=a.getAttribute("data-val"),i=e._fullLayout,o=i._subplots[t]||[],l=1.05,s={},u=0;u<o.length;u++){var f=o[u],c=i[f].zoom,h=n==="in"?l*c:c/l;s[f+".zoom"]=h}To.call("_guiRelayout",e,s)}function tg(e,r){for(var t=e._fullLayout,a=t._subplots[r]||[],n={},i=0;i<a.length;i++)for(var o=a[i],l=t[o]._subplot,s=l.viewInitial,u=Object.keys(s),f=0;f<u.length;f++){var c=u[f];n[o+"."+c]=s[c]}To.call("_guiRelayout",e,n)}});var Jb=le((Pbe,TL)=>{"use strict";var wL=$b(),gle=Object.keys(wL),AL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],ML=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(AL,["downloadJson"]),c2=[],yle=function(e){if(ML.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();c2.indexOf(r)===-1&&c2.push(r),c2.indexOf(t)===-1&&c2.push(t)}};gle.forEach(function(e){yle(wL[e])});c2.sort();TL.exports={DRAW_MODES:AL,backButtons:ML,foreButtons:c2}});var Qb={};Ha(Qb,{default:()=>_le});var Kb,ble,_le,e7=Ia(()=>{"use strict";Kb=q_(Jb()),ble={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${Kb.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${Kb.default.foreButtons.join("*, *")}*.`].join(" ")}},_le=ble});var CL=le((Rbe,kL)=>{"use strict";var xle=mr(),oh=qt(),wle=ka(),Ale=(e7(),Tr(Qb)).default;kL.exports=function(r,t){var a=r.modebar||{},n=wle.newContainer(t,"modebar");function i(l,s){return xle.coerce(a,n,Ale,l,s)}i("orientation"),i("bgcolor",oh.addOpacity(t.paper_bgcolor,.5));var o=oh.contrast(oh.rgb(t.modebar.bgcolor));i("color",oh.addOpacity(o,.3)),i("activecolor",oh.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var EL=le((zbe,FL)=>{"use strict";var r7=Ft(),Mle=Wt(),ng=mr(),SL=Hm(),Tle=Q2().version,kle=new DOMParser;function DL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Os=DL.prototype;Os.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),ng.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Os.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Os.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Os.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&r7.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||SL.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Os.createIcon=function(e){var r=Mle(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=kle.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Os.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=r7.select(a),s=function(c,h){var d=r.modebar,m=c.querySelector(".icon path");m&&(h||c.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:ng.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Os.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t<e.length;++t){if(e[t].length!==r[t].length)return!1;for(var a=0;a<e[t].length;a++)if(e[t][a].name!==r[t][a].name)return!1}return!0};function Cle(e){return e+" (v"+Tle+")"}Os.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",Cle(ng._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(SL.newplotlylogo)),e.appendChild(r),e};Os.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};Os.destroy=function(){ng.removeElement(this.container.querySelector(".modebar"))};function Sle(e,r){var t=e._fullLayout,a=new DL({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&r7.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}FL.exports=Sle});var PL=le((Nbe,qL)=>{"use strict";var Dle=Cn(),LL=_i(),t7=_t(),Fle=Pu().isUnifiedHover,Ele=EL(),ig=$b(),Lle=Jb().DRAW_MODES,qle=mr().extendDeep;qL.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Ile(i):!a.displayModeBar&&a.watermark?o=[]:o=Ple(r),n?n.update(r,o):t._modeBar=Ele(r,o)};function Ple(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(re,te){if(typeof te=="string"){if(te.toLowerCase()===re.toLowerCase())return!0}else{var ie=te.name,ce=te._cat||te.name;if(ie===re||ce===re.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(re){for(var te=0;te<a.modeBarButtonsToRemove.length;te++)if(n(re,a.modeBarButtonsToRemove[te]))return!1;return!0})),s=a.modeBarButtonsToRemove.concat(o.filter(function(re){for(var te=0;te<a.modeBarButtonsToAdd.length;te++)if(n(re,a.modeBarButtonsToAdd[te]))return!1;return!0})),u=r._has("cartesian"),f=r._has("gl3d"),c=r._has("geo"),h=r._has("pie"),d=r._has("funnelarea"),m=r._has("ternary"),p=r._has("map"),y=r._has("polar"),b=r._has("smith"),C=r._has("sankey"),x=Rle(r),_=Fle(r.hovermode),M=[];function T(re){if(re.length){for(var te=[],ie=0;ie<re.length;ie++){for(var ce=re[ie],Me=ig[ce],De=Me.name.toLowerCase(),Ie=(Me._cat||Me.name).toLowerCase(),Ue=!1,ke=0;ke<s.length;ke++){var je=s[ke].toLowerCase();if(je===De||je===Ie){Ue=!0;break}}Ue||te.push(ig[ce])}M.push(te)}}var A=!1,E=[],P=[],z=[],B=[];(u||h||d||m)+c+f+p+y+b>1?(P=["toggleHover"],z=["resetViews"]):c?(E=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],z=["resetGeo"]):f?(P=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):p?(E=["zoomInMap","zoomOutMap"],P=["toggleHover"],z=["resetViewMap"]):h?P=["hoverClosestPie"]:C?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Nle(t)||_)&&(P=[]),u&&!x&&(E=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?B=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!x||m?B=["zoom2d","pan2d"]:p||c?B=["pan2d"]:y&&(B=["zoom2d"]),zle(t)&&B.push("select2d","lasso2d");var X=[],I=function(re){X.indexOf(re)===-1&&P.indexOf(re)!==-1&&X.push(re)};if(Array.isArray(l)){for(var V=[],H=0;H<l.length;H++){var Q=l[H];typeof Q=="string"?(Q=Q.toLowerCase(),Lle.indexOf(Q)!==-1?(r._has("map")||r._has("cartesian"))&&B.push(Q):Q==="togglespikelines"?I("toggleSpikelines"):Q==="togglehover"?I("toggleHover"):Q==="hovercompare"?I("hoverCompareCartesian"):Q==="hoverclosest"?(I("hoverClosestCartesian"),I("hoverClosestGeo"),I("hoverClosest3d"),I("hoverClosestPie")):Q==="v1hovermode"?(I("hoverClosestCartesian"),I("hoverCompareCartesian"),I("hoverClosestGeo"),I("hoverClosest3d"),I("hoverClosestPie")):Q==="downloadjson"&&(A=!0)):V.push(Q)}l=V}var oe=["toImage"];return A&&oe.push("downloadJson"),a.showSendToCloud&&oe.push("sendChartToCloud"),T(oe),T(B),T(E.concat(z)),T(X),Ble(M,l)}function Rle(e){for(var r=Dle.list({_fullLayout:e},null,!0),t=0;t<r.length;t++){var a=r[t].modebardisable;if(!r[t].fixedrange&&a!=="autoscale+zoominout"&&a!=="zoominout+autoscale")return!1}return!0}function zle(e){for(var r=!1,t=0;t<e.length&&!r;t++){var a=e[t];!a._module||!a._module.selectPoints||(t7.traceIs(a,"scatter-like")&&a.type!=="quiver"?(LL.hasMarkers(a)||LL.hasText(a))&&(r=!0):t7.traceIs(a,"box-violin")?(a.boxpoints==="all"||a.points==="all")&&(r=!0):r=!0)}return r}function Nle(e){for(var r=0;r<e.length;r++)if(!t7.traceIs(e[r],"noHover"))return!1;return!0}function Ble(e,r){if(r.length)if(Array.isArray(r[0]))for(var t=0;t<r.length;t++)e.push(r[t]);else e.push(r);return e}function Ile(e){for(var r=qle([],e),t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;n++){var i=a[n];if(typeof i=="string")if(ig[i]!==void 0)r[t][n]=ig[i];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var a7=le((Bbe,RL)=>{"use strict";RL.exports={moduleType:"component",name:"modebar",layoutAttributes:(e7(),Tr(Qb)).default,supplyLayoutDefaults:CL(),manage:PL()}});var n7=le((Ibe,zL)=>{"use strict";var Hle=(li(),Tr(oi)).FROM_BL;zL.exports=function(r,t,a){a===void 0&&(a=Hle[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var sh=le(lh=>{"use strict";var yc=mr(),i7=L0(),Vl=Cn().id2name,Ole=Ol(),NL=n7(),Ule=vm(),Gle=(Ya(),Tr($a)).ALMOST_EQUAL,Yle=(li(),Tr(oi)).FROM_BL;lh.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,h,d,m;for(l=0;l<a.length;l++)f=Vl(a[l]),c=e[f],h=r[f],Vle(c,h,{axIds:a,layoutOut:r,hasImage:n[f]});function p(E,P){for(l=0;l<E.length;l++){s=E[l];for(u in s)r[Vl(u)][P]=s}}for(p(o,"_matchGroup"),l=0;l<i.length;l++){s=i[l];for(u in s)if(h=r[Vl(u)],h.fixedrange){for(var y in s){var b=Vl(y);(e[b]||{}).fixedrange===!1&&yc.warn("fixedrange was specified as false for axis "+b+" but was overridden because another axis in its constraint group has fixedrange true"),r[b].fixedrange=!0}break}}for(l=0;l<i.length;){s=i[l];for(u in s){h=r[Vl(u)],h._matchGroup&&Object.keys(h._matchGroup).length===Object.keys(s).length&&(i.splice(l,1),l--);break}l++}p(i,"_constraintGroup");var C=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],x=!1,_=!1;function M(){m=h[d],d==="rangebreaks"&&(_=h._hasDayOfWeekBreaks)}for(l=0;l<o.length;l++){s=o[l];for(var T=0;T<C.length;T++){d=C[T],m=null;var A;for(u in s)if(f=Vl(u),c=e[f],h=r[f],d in h){if(!h.matches&&(A=h,d in c)){M();break}m===null&&d in c&&M()}if(d==="range"&&m&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null&&(x=!0),d==="autorange"&&m===null&&x&&(m=!1),m===null&&d in A&&(m=A[d]),m!==null)for(u in s)h=r[Vl(u)],h[d]=d==="range"?m.slice():m,d==="rangebreaks"&&(h._hasDayOfWeekBreaks=_,Ule(h,r))}}};function Vle(e,r,t){var a=t.axIds,n=t.layoutOut,i=t.hasImage,o=n._axisConstraintGroups,l=n._axisMatchGroups,s=r._id,u=s.charAt(0),f=((n._splomAxes||{})[u]||{})[s]||{},c=r._id,h=c.charAt(0)==="x";r._matchGroup=null,r._constraintGroup=null;function d(X,I){return yc.coerce(e,r,Ole,X,I)}d("constrain",i?"domain":"range"),yc.coerce(e,r,{constraintoward:{valType:"enumerated",values:h?["left","center","right"]:["bottom","middle","top"],dflt:h?"center":"middle"}},"constraintoward");var m=r.type,p,y,b=[];for(p=0;p<a.length;p++)if(y=a[p],y!==c){var C=n[Vl(y)];C.type===m&&b.push(y)}var x=HL(o,c);if(x){var _=[];for(p=0;p<b.length;p++)y=b[p],x[y]||_.push(y);b=_}var M=b.length,T,A;M&&(e.matches||f.matches)&&(T=yc.coerce(e,r,{matches:{valType:"enumerated",values:b,dflt:b.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var E=i&&!h?r.anchor:void 0;if(M&&!T&&(e.scaleanchor||E)&&(A=yc.coerce(e,r,{scaleanchor:{valType:"enumerated",values:b.concat([!1])}},"scaleanchor",E)),T){r._matchGroup=o7(l,c,T,1);var P=n[Vl(T)],z=BL(n,r)/BL(n,P);h!==(T.charAt(0)==="x")&&(z=(h?"x":"y")+z),o7(o,c,T,z)}else e.matches&&a.indexOf(e.matches)!==-1&&yc.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(A){var B=d("scaleratio");B||(B=r.scaleratio=1),o7(o,c,A,B)}else e.scaleanchor&&a.indexOf(e.scaleanchor)!==-1&&yc.warn("ignored "+r._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function BL(e,r){var t=r.domain;return t||(t=e[Vl(r.overlaying)].domain),t[1]-t[0]}function HL(e,r){for(var t=0;t<e.length;t++)if(e[t][r])return e[t];return null}function o7(e,r,t,a){var n,i,o,l,s,u=HL(e,r);u===null?(u={},u[r]=1,s=e.length,e.push(u)):s=e.indexOf(u);var f=Object.keys(u);for(n=0;n<e.length;n++)if(o=e[n],n!==s&&o[t]){var c=o[t];for(i=0;i<f.length;i++)l=f[i],o[l]=l7(c,l7(a,u[l]));e.splice(s,1);return}if(a!==1)for(i=0;i<f.length;i++){var h=f[i];u[h]=l7(a,u[h])}u[t]=1}function l7(e,r){var t="",a="",n,i;typeof e=="string"&&(t=e.match(/^[xy]*/)[0],n=t.length,e=+e.slice(n)),typeof r=="string"&&(a=r.match(/^[xy]*/)[0],i=a.length,r=+r.slice(i));var o=e*r;return!n&&!i?o:!n||!i||t.charAt(0)===a.charAt(0)?t+a+e*r:n===i?o:(n>i?t.slice(i):a.slice(n))+o}function Xle(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;o<i.length;o++){var l=i[o],s=e[l];if(typeof s=="string"){var u=s.match(/^[xy]*/)[0],f=u.length;s=+s.slice(f);for(var c=u.charAt(0)==="y"?a:1/a,h=0;h<f;h++)s*=c}n[l]=s}return n}lh.enforce=function(r){var t=r._fullLayout,a=t._axisConstraintGroups||[],n,i,o,l,s,u,f,c;for(n=0;n<a.length;n++){o=Xle(a[n],t);var h=Object.keys(o),d=1/0,m=0,p=1/0,y={},b={},C=!1;for(i=0;i<h.length;i++)l=h[i],b[l]=s=t[Vl(l)],s._inputDomain?s.domain=s._inputDomain.slice():s._inputDomain=s.domain.slice(),s._inputRange||(s._inputRange=s.range.slice()),s.setScale(),y[l]=u=Math.abs(s._m)/o[l],d=Math.min(d,u),(s.constrain==="domain"||!s._constraintShrinkable)&&(p=Math.min(p,u)),delete s._constraintShrinkable,m=Math.max(m,u),s.constrain==="domain"&&(C=!0);if(!(d>Gle*m&&!C)){for(i=0;i<h.length;i++)if(l=h[i],u=y[l],s=b[l],f=s.constrain,u!==p||f==="domain")if(c=u/p,f==="range")NL(s,c);else{var x=s._inputDomain,_=(s.domain[1]-s.domain[0])/(x[1]-x[0]),M=(s.r2l(s.range[1])-s.r2l(s.range[0]))/(s.r2l(s._inputRange[1])-s.r2l(s._inputRange[0]));if(c/=_,c*M<1){s.domain=s._input.domain=x.slice(),NL(s,c);continue}if(M<1&&(s.range=s._input.range=s._inputRange.slice(),c*=M),s.autorange){var T=s.r2l(s.range[0]),A=s.r2l(s.range[1]),E=(T+A)/2,P=E,z=E,B=Math.abs(A-E),X=E-B*c*1.0001,I=E+B*c*1.0001,V=i7.makePadFn(t,s,0),H=i7.makePadFn(t,s,1);IL(s,c);var Q=Math.abs(s._m),oe=i7.concatExtremes(r,s),re=oe.min,te=oe.max,ie,ce;for(ce=0;ce<re.length;ce++)ie=re[ce].val-V(re[ce])/Q,ie>X&&ie<P&&(P=ie);for(ce=0;ce<te.length;ce++)ie=te[ce].val+H(te[ce])/Q,ie<I&&ie>z&&(z=ie);var Me=(z-P)/(2*B);c/=Me,P=s.l2r(P),z=s.l2r(z),s.range=s._input.range=T<A?[P,z]:[z,P]}IL(s,c)}}}};lh.getAxisGroup=function(r,t){for(var a=r._axisMatchGroups,n=0;n<a.length;n++){var i=a[n];if(i[t])return"g"+n}return t};lh.clean=function(r,t){if(t._inputDomain){for(var a=!1,n=t._id,i=r._fullLayout._axisConstraintGroups,o=0;o<i.length;o++)if(i[o][n]){a=!0;break}(!a||t.constrain!=="domain")&&(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}};function IL(e,r){var t=e._inputDomain,a=Yle[e.constraintoward],n=t[0]+(t[1]-t[0])*a;e.domain=e._input.domain=[n+(t[0]-n)/r,n+(t[1]-n)/r],e.setScale()}});var sg=le(In=>{"use strict";var lg=Ft(),Mi=_t(),ko=Sn(),Ko=mr(),s7=si(),u7=Im(),uh=qt(),v2=ha(),OL=Uv(),XL=a7(),fh=Oa(),Bu=(li(),Tr(oi)),jL=sh(),jle=jL.enforce,Wle=jL.clean,UL=L0().doAutoRange,WL="start",Zle="middle",ZL="end",$le=(Nn(),Tr(zn)).zindexSeparator;In.layoutStyles=function(e){return Ko.syncOrAsync([ko.doAutoMargin,Kle],e)};function Jle(e,r,t){for(var a=0;a<t.length;a++){var n=t[a][0],i=t[a][1];if(!(n[0]>=e[1]||n[1]<=e[0])&&i[0]<r[1]&&i[1]>r[0])return!0}return!1}function Kle(e){var r=e._fullLayout,t=r._size,a=t.p,n=fh.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(v2.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),In.drawMainTitle(e),XL.manage(e),!r._has("cartesian"))return ko.previousPromises(e);function c(K,J,ue){var _e=K._lw/2;if(K._id.charAt(0)==="x"){if(J){if(ue==="top")return J._offset-a-_e}else return t.t+t.h*(1-(K.position||0))+_e%1;return J._offset+J._length+a+_e}if(J){if(ue==="right")return J._offset+J._length+a+_e}else return t.l+t.w*(K.position||0)+_e%1;return J._offset-a-_e}for(i=0;i<n.length;i++){s=n[i];var h=s._anchorAxis;s._linepositions={},s._lw=v2.crispRound(e,s.linewidth,1),s._mainLinePosition=c(s,h,s.side),s._mainMirrorPosition=s.mirror&&h?c(s,h,Bu.OPPOSITE_SIDE[s.side]):null}var d=[],m=[],p=[],y=uh.opacity(r.paper_bgcolor)===1&&uh.opacity(r.plot_bgcolor)===1&&r.paper_bgcolor===r.plot_bgcolor;for(o in r._plots)if(l=r._plots[o],l.mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var b=l.xaxis.domain,C=l.yaxis.domain,x=l.plotgroup;if(Jle(b,C,p)&&o.indexOf($le)===-1){var _=x.node(),M=l.bg=Ko.ensureSingle(x,"rect","bg");_.insertBefore(M.node(),_.childNodes[0]),m.push(o)}else x.select("rect.bg").remove(),p.push([b,C]),y||(d.push(o),m.push(o))}var T=r._bgLayer.selectAll(".bg").data(d);for(T.enter().append("rect").classed("bg",!0),T.exit().remove(),T.each(function(K){r._plots[K].bg=lg.select(this)}),i=0;i<m.length;i++)l=r._plots[m[i]],u=l.xaxis,f=l.yaxis,l.bg&&u._offset!==void 0&&f._offset!==void 0&&l.bg.call(v2.setRect,u._offset-a,f._offset-a,u._length+2*a,f._length+2*a).call(uh.fill,r.plot_bgcolor).style("stroke-width",0);if(!r._hasOnlyLargeSploms)for(o in r._plots){l=r._plots[o],u=l.xaxis,f=l.yaxis;var A=l.clipId="clip"+r._uid+o+"plot",E=Ko.ensureSingleById(r._clips,"clipPath",A,function(K){K.classed("plotclip",!0).append("rect")});l.clipRect=E.select("rect").attr({width:u._length,height:f._length}),v2.setTranslate(l.plot,u._offset,f._offset);var P,z;l._hasClipOnAxisFalse?(P=null,z=A):(P=A,z=null),v2.setClipUrl(l.plot,P,e),l.layerClipId=z}var B,X,I,V,H,Q,oe,re,te,ie,ce,Me,De;function Ie(K){return"M"+B+","+K+"H"+X}function Ue(K){return"M"+u._offset+","+K+"h"+u._length}function ke(K){return"M"+K+","+re+"V"+oe}function je(K){return f._shift!==void 0&&(K+=f._shift),"M"+K+","+f._offset+"v"+f._length}function W(K,J,ue){if(!K.showline||o!==K._mainSubplot)return"";if(!K._anchorAxis)return ue(K._mainLinePosition);var _e=J(K._mainLinePosition);return K.mirror&&(_e+=J(K._mainMirrorPosition)),_e}for(o in r._plots){l=r._plots[o],u=l.xaxis,f=l.yaxis;var ee="M0,0";GL(u,o)&&(H=og(u,"left",f,n),B=u._offset-(H?a+H:0),Q=og(u,"right",f,n),X=u._offset+u._length+(Q?a+Q:0),I=c(u,f,"bottom"),V=c(u,f,"top"),De=!u._anchorAxis||o!==u._mainSubplot,De&&(u.mirror==="allticks"||u.mirror==="all")&&(u._linepositions[o]=[I,V]),ee=W(u,Ie,Ue),De&&u.showline&&(u.mirror==="all"||u.mirror==="allticks")&&(ee+=Ie(I)+Ie(V)),l.xlines.style("stroke-width",u._lw+"px").call(uh.stroke,u.showline?u.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",ee);var me="M0,0";GL(f,o)&&(ce=og(f,"bottom",u,n),oe=f._offset+f._length+(ce?a:0),Me=og(f,"top",u,n),re=f._offset-(Me?a:0),te=c(f,u,"left"),ie=c(f,u,"right"),De=!f._anchorAxis||o!==f._mainSubplot,De&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[o]=[te,ie]),me=W(f,ke,je),De&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(me+=ke(te)+ke(ie)),l.ylines.style("stroke-width",f._lw+"px").call(uh.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",me)}return fh.makeClipPaths(e),ko.previousPromises(e)}function GL(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function YL(e,r,t){if(!t.showline||!t._lw)return!1;if(t.mirror==="all"||t.mirror==="allticks")return!0;var a=t._anchorAxis;if(!a)return!1;var n=Bu.FROM_BL[r];return t.side===r?a.domain[n]===e.domain[n]:t.mirror&&a.domain[1-n]===e.domain[1-n]}function og(e,r,t,a){if(YL(e,r,t))return t._lw;for(var n=0;n<a.length;n++){var i=a[n];if(i._mainAxis===t._mainAxis&&YL(e,r,i))return i._lw}return 0}In.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,a=ise(t),n=ose(t),i=nse(t,n),o=ase(t,a);if(OL.draw(e,"gtitle",{propContainer:t,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:t._dfltTitle.plot,subtitlePlaceholder:t._dfltTitle.subtitle,attributes:{x:o,y:i,"text-anchor":a,dy:n}}),r.text&&r.automargin){var l=lg.select(e).selectAll(".gtitle"),s=v2.bBox(lg.select(e).selectAll(".g-gtitle").node()).height,u=rse(e,r,s);if(u>0){tse(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:VL(r.yanchor)}).call(s7.positionText,o,i);var f=(r.text.match(s7.BR_TAG_ALL)||[]).length;if(f){var c=Bu.LINE_SPACING*f+Bu.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var h=lg.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=l.node().getBBox(),m=d.y+d.height,p=m+OL.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:o,y:p,"text-anchor":a,dy:VL(r.yanchor)}).call(s7.positionText,o,p)}}}};function Qle(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Ko.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return Ko.isTopAnchor(r)&&t==="t"||Ko.isBottomAnchor(r)&&t==="b"?!1:l<n}function ese(e,r,t,a,n){var i=0;return t==="middle"&&(i+=n/2),e==="t"?(t==="top"&&(i+=n),i+=a-r*a):(t==="bottom"&&(i+=n),i+=r*a),i}function rse(e,r,t){var a=r.y,n=r.yanchor,i=a>.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=ese(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function tse(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Qle(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),ko.allowAutoMargin(e,n),ko.autoMargin(e,n,l)}function ase(e,r){var t=e.title,a=e._size,n=0;return r===WL?n=t.pad.l:r===ZL&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function nse(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===Bu.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function VL(e){return e==="top"?Bu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Bu.MID_SHIFT+"em"}function ise(e){var r=e.title,t=Zle;return Ko.isRightAnchor(r)?t=ZL:Ko.isLeftAnchor(r)&&(t=WL),t}function ose(e){var r=e.title,t="0em";return Ko.isTopAnchor(r)?t=Bu.CAP_SHIFT+"em":Ko.isMiddleAnchor(r)&&(t=Bu.MID_SHIFT+"em"),t}In.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a<r.length;a++){var n=r[a],i=n[0]||{},o=i.trace||{},l=o._module||{},s=l.arraysToCalcdata;s&&s(n,o);var u=l.editStyle;u&&t.push({fn:u,cd0:i})}if(t.length){for(a=0;a<t.length;a++){var f=t[a];f.fn(e,f.cd0)}u7(e),In.redrawReglTraces(e)}return ko.style(e),Mi.getComponentMethod("legend","draw")(e),ko.previousPromises(e)};In.doColorBars=function(e){return Mi.getComponentMethod("colorbar","draw")(e),ko.previousPromises(e)};In.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,Mi.call("_doPlot",e,"",r)};In.doLegend=function(e){return Mi.getComponentMethod("legend","draw")(e),ko.previousPromises(e)};In.doTicksRelayout=function(e){var r=fh.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(Mi.subplotsRegistry.splom.updateGrid(e),u7(e),In.redrawReglTraces(e)),In.drawMainTitle(e),Promise.resolve(r).then(function(){return ko.previousPromises(e)})};In.doModeBar=function(e){var r=e._fullLayout;XL.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var a=r._basePlotModules[t].updateFx;a&&a(e)}return ko.previousPromises(e)};In.doCamera=function(e){for(var r=e._fullLayout,t=r._subplots.gl3d,a=0;a<t.length;a++){var n=r[t[a]],i=n._scene;i.setViewport(n)}};In.drawData=function(e){var r=e._fullLayout;u7(e);for(var t=r._basePlotModules,a=0;a<t.length;a++)t[a].plot(e);return In.redrawReglTraces(e),ko.style(e),Mi.getComponentMethod("selections","draw")(e),Mi.getComponentMethod("shapes","draw")(e),Mi.getComponentMethod("annotations","draw")(e),Mi.getComponentMethod("images","draw")(e),r._replotting=!1,ko.previousPromises(e)};In.redrawReglTraces=function(e){var r=e._fullLayout;if(r._has("regl")){var t=e._fullData,a=[],n=[],i,o;for(r._hasOnlyLargeSploms&&r._splomGrid.draw(),i=0;i<t.length;i++){var l=t[i];l.visible===!0&&l._length!==0&&(l.type==="splom"?r._splomScenes[l.uid].draw():l.type==="scattergl"?Ko.pushUnique(a,l.xaxis+l.yaxis):l.type==="scatterpolargl"&&Ko.pushUnique(n,l.subplot))}for(i=0;i<a.length;i++)o=r._plots[a[i]],o._scene&&o._scene.draw();for(i=0;i<n.length;i++)o=r[n[i]]._subplot,o._scene&&o._scene.draw()}};In.doAutoRangeAndConstraints=function(e){for(var r=fh.list(e,"",!0),t,a={},n=0;n<r.length;n++)if(t=r[n],!a[t._id]){a[t._id]=1,Wle(e,t),UL(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=fh.getFromId(e,o);UL(e,l,t.range),a[o]=1}}jle(e)};In.finalDraw=function(e){Mi.getComponentMethod("rangeslider","draw")(e),Mi.getComponentMethod("rangeselector","draw")(e)};In.drawMarginPushers=function(e){Mi.getComponentMethod("legend","draw")(e),Mi.getComponentMethod("rangeselector","draw")(e),Mi.getComponentMethod("sliders","draw")(e),Mi.getComponentMethod("updatemenus","draw")(e),Mi.getComponentMethod("colorbar","draw")(e)}});var v7=le((Ube,eq)=>{"use strict";var lse=z0().readPaths,sse=$m(),$L=T0().clearOutlineControllers,f7=qt(),JL=ha(),use=ka().arrayEditor,KL=I0(),fse=KL.getPathString;eq.exports={draw:ug,drawOne:QL,activateLastSelection:hse};function ug(e){var r=e._fullLayout;$L(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n<r.selections.length;n++)QL(e,n)}function fg(e){return e._context.editSelection}function QL(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=KL.makeSelectionsOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input)return;i(e._fullLayout._selectionLayer);function i(o){var l=fse(e,a),s={"data-index":r,"fill-rule":"evenodd",d:l},u=a.opacity,f="rgba(0,0,0,0)",c=a.line.color||f7.contrast(e._fullLayout.plot_bgcolor),h=a.line.width,d=a.line.dash;h||(h=5,d="solid");var m=fg(e)&&e._fullLayout._activeSelectionIndex===r;m&&(f=e._fullLayout.activeselection.fillcolor,u=e._fullLayout.activeselection.opacity);for(var p=[],y=1;y>=0;y--){var b=o.append("path").attr(s).style("opacity",y?.1:u).call(f7.stroke,c).call(f7.fill,f).call(JL.dashLine,y?"solid":d,y?4+h:h);if(cse(b,e,a),m){var C=use(e.layout,"selections",a);b.style({cursor:"move"});var x={element:b.node(),plotinfo:n,gd:e,editHelpers:C,isActiveSelection:!0},_=lse(l,e);sse(_,b,x)}else b.style("pointer-events",y?"all":"none");p[y]=b}var M=p[0],T=p[1];T.node().addEventListener("click",function(){return vse(e,M)})}}function cse(e,r,t){var a=t.xref+t.yref;JL.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function vse(e,r){if(fg(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){c7(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=c7,ug(e)}}}function hse(e){if(fg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=c7,ug(e)}}function c7(e){if(fg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&($L(e),delete e._fullLayout._activeSelectionIndex,ug(e))}}});var tq=le((Gbe,rq)=>{function dse(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}rq.exports=dse});var nq=le((Ybe,aq)=>{function pse(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u<e)return!1;var f=o*o+s*s;return!(u-f>-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])<e},pointsSameY:function(t,a){return Math.abs(t[1]-a[1])<e},pointsSame:function(t,a){return r.pointsSameX(t,a)&&r.pointsSameY(t,a)},pointsCompare:function(t,a){return r.pointsSameX(t,a)?r.pointsSameY(t,a)?0:t[1]<a[1]?-1:1:t[0]<a[0]?-1:1},pointsCollinear:function(t,a,n){var i=t[0]-a[0],o=t[1]-a[1],l=a[0]-n[0],s=a[1]-n[1];return Math.abs(i*s-l*o)<e},linesIntersect:function(t,a,n,i){var o=a[0]-t[0],l=a[1]-t[1],s=i[0]-n[0],u=i[1]-n[1],f=o*u-l*s;if(Math.abs(f)<e)return!1;var c=t[0]-n[0],h=t[1]-n[1],d=(s*h-u*c)/f,m=(o*h-l*c)/f,p={alongA:0,alongB:0,pt:[t[0]+d*o,t[1]+d*l]};return d<=-e?p.alongA=-2:d<e?p.alongA=-1:d-1<=-e?p.alongA=0:d-1<e?p.alongA=1:p.alongA=2,m<=-e?p.alongB=-2:m<e?p.alongB=-1:m-1<=-e?p.alongB=0:m-1<e?p.alongB=1:p.alongB=2,p},pointInsideRegion:function(t,a){for(var n=t[0],i=t[1],o=a[a.length-1][0],l=a[a.length-1][1],s=!1,u=0;u<a.length;u++){var f=a[u][0],c=a[u][1];c-i>e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}aq.exports=pse});var oq=le((Vbe,iq)=>{var mse={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};iq.exports=mse});var sq=le((Xbe,lq)=>{var ch=oq();function gse(e,r,t){function a(m,p){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:null,below:null},otherFill:null}}function n(m,p,y){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=ch.create();function o(m,p,y,b,C,x){var _=r.pointsCompare(p,C);return _!==0?_:r.pointsSame(y,x)?0:m!==b?m?1:-1:r.pointAboveOrOnLine(y,b?C:x,b?x:C)?1:-1}function l(m,p){i.insertBefore(m,function(y){var b=o(m.isStart,m.pt,p,y.isStart,y.pt,y.other.pt);return b<0})}function s(m,p){var y=ch.node({isStart:!0,pt:m.start,seg:m,primary:p,other:null,status:null});return l(y,m.end),y}function u(m,p,y){var b=ch.node({isStart:!1,pt:p.end,seg:p,primary:y,other:m,status:null});m.other=b,l(b,m.pt)}function f(m,p){var y=s(m,p);return u(y,m,p),y}function c(m,p){t&&t.segmentChop(m.seg,p),m.other.remove(),m.seg.end=p,m.other.pt=p,l(m.other,m.pt)}function h(m,p){var y=n(p,m.seg.end,m.seg);return c(m,p),f(y,m.primary)}function d(m,p){var y=ch.create();function b(H,Q){var oe=H.seg.start,re=H.seg.end,te=Q.seg.start,ie=Q.seg.end;return r.pointsCollinear(oe,te,ie)?r.pointsCollinear(re,te,ie)||r.pointAboveOrOnLine(re,te,ie)?1:-1:r.pointAboveOrOnLine(oe,te,ie)?1:-1}function C(H){return y.findTransition(function(Q){var oe=b(H,Q.ev);return oe>0})}function x(H,Q){var oe=H.seg,re=Q.seg,te=oe.start,ie=oe.end,ce=re.start,Me=re.end;t&&t.checkIntersection(oe,re);var De=r.linesIntersect(te,ie,ce,Me);if(De===!1){if(!r.pointsCollinear(te,ie,ce)||r.pointsSame(te,Me)||r.pointsSame(ie,ce))return!1;var Ie=r.pointsSame(te,ce),Ue=r.pointsSame(ie,Me);if(Ie&&Ue)return Q;var ke=!Ie&&r.pointBetween(te,ce,Me),je=!Ue&&r.pointBetween(ie,ce,Me);if(Ie)return je?h(Q,ie):h(H,Me),Q;ke&&(Ue||(je?h(Q,ie):h(H,Me)),h(Q,te))}else De.alongA===0&&(De.alongB===-1?h(H,ce):De.alongB===0?h(H,De.pt):De.alongB===1&&h(H,Me)),De.alongB===0&&(De.alongA===-1?h(Q,te):De.alongA===0?h(Q,De.pt):De.alongA===1&&h(Q,ie));return!1}for(var _=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let H=function(){if(A){var Q=x(M,A);if(Q)return Q}return E?x(M,E):!1};var V=H;t&&t.segmentNew(M.seg,M.primary);var T=C(M),A=T.before?T.before.ev:null,E=T.after?T.after.ev:null;t&&t.tempStatus(M.seg,A?A.seg:!1,E?E.seg:!1);var P=H();if(P){if(e){var z;M.seg.myFill.below===null?z=!0:z=M.seg.myFill.above!==M.seg.myFill.below,z&&(P.seg.myFill.above=!P.seg.myFill.above)}else P.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(P.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var z;M.seg.myFill.below===null?z=!0:z=M.seg.myFill.above!==M.seg.myFill.below,E?M.seg.myFill.below=E.seg.myFill.above:M.seg.myFill.below=m,z?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var B;E?M.primary===E.primary?B=E.seg.otherFill.above:B=E.seg.myFill.above:B=M.primary?p:m,M.seg.otherFill={above:B,below:B}}t&&t.status(M.seg,A?A.seg:!1,E?E.seg:!1),M.other.status=T.insert(ch.node({ev:M}))}else{var X=M.status;if(X===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(X.prev)&&y.exists(X.next)&&x(X.prev.ev,X.next.ev),t&&t.statusRemove(X.ev.seg),X.remove(),!M.primary){var I=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=I}_.push(M.seg)}i.getHead().remove()}return t&&t.done(),_}return e?{addRegion:function(m){for(var p,y=m[m.length-1],b=0;b<m.length;b++){p=y,y=m[b];var C=r.pointsCompare(p,y);C!==0&&f(a(C<0?p:y,C<0?y:p),!0)}},calculate:function(m){return d(m,!1)}}:{calculate:function(m,p,y,b){return m.forEach(function(C){f(n(C.start,C.end,C),!0)}),y.forEach(function(C){f(n(C.start,C.end,C),!1)}),d(p,b)}}}lq.exports=gse});var fq=le((jbe,uq)=>{function yse(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(V,H,Q){return f.index=V,f.matches_head=H,f.matches_pt1=Q,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h<a.length;h++){var d=a[h],m=d[0],p=d[1],y=d[d.length-1],b=d[d.length-2];if(r.pointsSame(m,o)){if(c(h,!0,!0))break}else if(r.pointsSame(m,l)){if(c(h,!0,!1))break}else if(r.pointsSame(y,o)){if(c(h,!1,!0))break}else if(r.pointsSame(y,l)&&c(h,!1,!1))break}if(f===s){a.push([o,l]),t&&t.chainNew(o,l);return}if(f===u){t&&t.chainMatch(s.index);var C=s.index,x=s.matches_pt1?l:o,_=s.matches_head,d=a[C],M=_?d[0]:d[d.length-1],T=_?d[1]:d[d.length-2],A=_?d[d.length-1]:d[0],E=_?d[d.length-2]:d[1];if(r.pointsCollinear(T,M,x)&&(_?(t&&t.chainRemoveHead(s.index,x),d.shift()):(t&&t.chainRemoveTail(s.index,x),d.pop()),M=T),r.pointsSame(A,x)){a.splice(C,1),r.pointsCollinear(E,A,M)&&(_?(t&&t.chainRemoveTail(s.index,M),d.pop()):(t&&t.chainRemoveHead(s.index,M),d.shift())),t&&t.chainClose(s.index),n.push(d);return}_?(t&&t.chainAddHead(s.index,x),d.unshift(x)):(t&&t.chainAddTail(s.index,x),d.push(x));return}function P(V){t&&t.chainReverse(V),a[V].reverse()}function z(V,H){var Q=a[V],oe=a[H],re=Q[Q.length-1],te=Q[Q.length-2],ie=oe[0],ce=oe[1];r.pointsCollinear(te,re,ie)&&(t&&t.chainRemoveTail(V,re),Q.pop(),re=te),r.pointsCollinear(re,ie,ce)&&(t&&t.chainRemoveHead(H,ie),oe.shift()),t&&t.chainJoin(V,H),a[V]=Q.concat(oe),a.splice(H,1)}var B=s.index,X=u.index;t&&t.chainConnect(B,X);var I=a[B].length<a[X].length;s.matches_head?u.matches_head?I?(P(B),z(B,X)):(P(X),z(X,B)):z(X,B):u.matches_head?z(B,X):I?(P(B),z(X,B)):(P(X),z(B,X))}),n}uq.exports=yse});var vq=le((Wbe,cq)=>{function vh(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var bse={union:function(e,r){return vh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return vh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return vh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return vh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return vh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};cq.exports=bse});var dq=le((Zbe,hq)=>{var _se={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s<i.length;s++)l=e.selectDifference(e.combine(l,o(i[s])));return l}if(r.type==="Polygon")return e.polygon(t(r.coordinates));if(r.type==="MultiPolygon"){for(var a=e.segments({inverted:!1,regions:[]}),n=0;n<r.coordinates.length;n++)a=e.selectUnion(e.combine(a,t(r.coordinates[n])));return e.polygon(a)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,r,t){t=e.polygon(e.segments(t));function a(d,m){return r.pointInsideRegion([(d[0][0]+d[1][0])*.5,(d[0][1]+d[1][1])*.5],m)}function n(d){return{region:d,children:[]}}var i=n(null);function o(d,m){for(var p=0;p<d.children.length;p++){var y=d.children[p];if(a(m,y.region)){o(y,m);return}}for(var b=n(m),p=0;p<d.children.length;p++){var y=d.children[p];a(y.region,m)&&(b.children.push(y),d.children.splice(p,1),p--)}d.children.push(b)}for(var l=0;l<t.regions.length;l++){var s=t.regions[l];s.length<3||o(i,s)}function u(d,m){for(var p=0,y=d[d.length-1][0],b=d[d.length-1][1],C=[],x=0;x<d.length;x++){var _=d[x][0],M=d[x][1];C.push([_,M]),p+=M*y-_*b,y=_,b=M}var T=p<0;return T!==m&&C.reverse(),C.push([C[0][0],C[0][1]]),C}var f=[];function c(d){var m=[u(d.region,!1)];f.push(m);for(var p=0;p<d.children.length;p++)m.push(h(d.children[p]))}function h(d){for(var m=0;m<d.children.length;m++)c(d.children[m]);return u(d.region,!0)}for(var l=0;l<i.children.length;l++)c(i.children[l]);return f.length<=0?{type:"Polygon",coordinates:[]}:f.length==1?{type:"Polygon",coordinates:f[0]}:{type:"MultiPolygon",coordinates:f}}};hq.exports=_se});var yq=le(($be,gq)=>{var xse=tq(),wse=nq(),pq=sq(),Ase=fq(),hh=vq(),mq=dq(),Qo=!1,dh=wse(),ao;ao={buildLog:function(e){return e===!0?Qo=xse():e===!1&&(Qo=!1),Qo===!1?!1:Qo.list},epsilon:function(e){return dh.epsilon(e)},segments:function(e){var r=pq(!0,dh,Qo);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=pq(!1,dh,Qo);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:hh.union(e.combined,Qo),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:hh.intersect(e.combined,Qo),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:hh.difference(e.combined,Qo),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:hh.differenceRev(e.combined,Qo),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:hh.xor(e.combined,Qo),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Ase(e.segments,dh,Qo),inverted:e.inverted}},polygonFromGeoJSON:function(e){return mq.toPolygon(ao,e)},polygonToGeoJSON:function(e){return mq.fromPolygon(ao,dh,e)},union:function(e,r){return ph(e,r,ao.selectUnion)},intersect:function(e,r){return ph(e,r,ao.selectIntersect)},difference:function(e,r){return ph(e,r,ao.selectDifference)},differenceRev:function(e,r){return ph(e,r,ao.selectDifferenceRev)},xor:function(e,r){return ph(e,r,ao.selectXor)}};function ph(e,r,t){var a=ao.segments(e),n=ao.segments(r),i=ao.combine(a,n),o=t(i);return ao.polygon(o)}typeof window=="object"&&(window.PolyBool=ao);gq.exports=ao});var _q=le((Jbe,bq)=>{bq.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;u<s;f=u++){var c=t[u+a][0],h=t[u+a][1],d=t[f+a][0],m=t[f+a][1],p=h>o!=m>o&&i<(d-c)*(o-h)/(m-h)+c;p&&(l=!l)}return l}});var hg=le((Kbe,xq)=>{"use strict";var h7=hp().dot,cg=(Ya(),Tr($a)).BADNUM,vg=xq.exports={};vg.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;l<t.length;l++)a=Math.min(a,t[l][0]),n=Math.max(n,t[l][0]),i=Math.min(i,t[l][1]),o=Math.max(o,t[l][1]);var s=!1,u;t.length===5&&(t[0][0]===t[1][0]?t[2][0]===t[3][0]&&t[0][1]===t[3][1]&&t[1][1]===t[2][1]&&(s=!0,u=function(m){return m[0]===t[0][0]}):t[0][1]===t[1][1]&&t[2][1]===t[3][1]&&t[0][0]===t[3][0]&&t[1][0]===t[2][0]&&(s=!0,u=function(m){return m[1]===t[0][1]}));function f(m,p){var y=m[0],b=m[1];return!(y===cg||y<a||y>n||b===cg||b<i||b>o||p&&u(m))}function c(m,p){var y=m[0],b=m[1];if(y===cg||y<a||y>n||b===cg||b<i||b>o)return!1;var C=t.length,x=t[0][0],_=t[0][1],M=0,T,A,E,P,z;for(T=1;T<C;T++)if(A=x,E=_,x=t[T][0],_=t[T][1],P=Math.min(A,x),!(y<P||y>Math.max(A,x)||b>Math.max(E,_)))if(b<Math.min(E,_))y!==P&&M++;else{if(x===A?z=b:z=E+(y-A)*(_-E)/(x-A),b===z)return!(T===1&&p);b<=z&&y!==P&&M++}return M%2===1}var h=!0,d=t[0];for(l=1;l<t.length;l++)if(d[0]!==t[l][0]||d[1]!==t[l][1]){h=!1;break}return{xmin:a,xmax:n,ymin:i,ymax:o,pts:t,contains:s?f:c,isRect:s,degenerate:h}};vg.isSegmentBent=function(r,t,a,n){var i=r[t],o=[r[a][0]-i[0],r[a][1]-i[1]],l=h7(o,o),s=Math.sqrt(l),u=[-o[1]/s,o[0]/s],f,c,h;for(f=t+1;f<a;f++)if(c=[r[f][0]-i[0],r[f][1]-i[1]],h=h7(c,o),h<0||h>l||Math.abs(h7(c,u))>n)return!0;return!1};vg.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c<r.length;c++)(c===r.length-1||vg.isSegmentBent(r,f,c+1,t))&&(a.push(r[c]),a.length<u-2&&(n=c,i=a.length-1),f=c)}if(r.length>1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var wq={};Ha(wq,{BENDPX:()=>Mse,MINSELECT:()=>Tse,SELECTDELAY:()=>kse,SELECTID:()=>Cse});var Mse,Tse,kse,Cse,Aq=Ia(()=>{"use strict";Mse=1.5,Tse=12,kse=100,Cse="-select"});var Vq=le((Qbe,Yq)=>{"use strict";var Mq=yq(),Sse=_q(),yh=_t(),Dse=ha().dashStyle,mh=qt(),Fse=Yl(),Ese=Pu().makeEventData,Ah=o2(),Lse=Ah.freeMode,qse=Ah.rectMode,bh=Ah.drawMode,g7=Ah.openMode,y7=Ah.selectMode,Tq=I0(),kq=(nh(),Tr(ah)),Eq=$m(),Lq=T0().clearOutline,qq=z0(),d7=qq.handleEllipse,Pse=qq.readPaths,Rse=jm().newShapes,zse=Hb(),Nse=v7().activateLastSelection,pg=mr(),Bse=pg.sorterAsc,Pq=hg(),gh=Sp(),el=Cn().getFromId,Ise=Im(),Hse=sg().redrawReglTraces,mg=(Aq(),Tr(wq)),Us=mg.MINSELECT,Ose=Pq.filter,b7=Pq.tester,_7=Gm(),Cq=_7.p2r,Use=_7.axValue,Gse=_7.getTransform;function x7(e){return e.subplot!==void 0}function Yse(e,r,t,a,n){var i=!x7(a),o=Lse(n),l=qse(n),s=g7(n),u=bh(n),f=y7(n),c=n==="drawline",h=n==="drawcircle",d=c||h,m=a.gd,p=m._fullLayout,y=f&&p.newselection.mode==="immediate"&&i,b=p._zoomlayer,C=a.element.getBoundingClientRect(),x=a.plotinfo,_=Gse(x),M=r-C.left,T=t-C.top;p._calcInverseTransform(m);var A=pg.apply3DTransform(p._invTransform)(M,T);M=A[0],T=A[1];var E=p._invScaleX,P=p._invScaleY,z=M,B=T,X="M"+M+","+T,I=a.xaxes[0],V=a.yaxes[0],H=I._length,Q=V._length,oe=e.altKey&&!(bh(n)&&s),re,te,ie,ce,Me,De,Ie;zq(e,m,a),o&&(re=Ose([[M,T]],mg.BENDPX));var Ue=b.selectAll("path.select-outline-"+x.id).data([1]),ke=u?p.newshape:p.newselection;u&&(a.hasText=ke.label.text||ke.label.texttemplate);var je=u&&!s?ke.fillcolor:"rgba(0,0,0,0)",W=ke.line.color||(i?mh.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Ue.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:u?ke.opacity/2:1,"stroke-dasharray":Dse(ke.line.dash,ke.line.width),"stroke-width":ke.line.width+"px","shape-rendering":"crispEdges"}).call(mh.stroke,W).call(mh.fill,je).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",_).attr("d",X+"Z");var ee=b.append("path").attr("class","zoombox-corners").style({fill:mh.background,stroke:mh.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(u&&a.hasText){var me=b.select(".label-temp");me.empty()&&(me=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var K=p._uid+mg.SELECTID,J=[],ue=gg(m,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ne=I._id,Je=V._id;Oq(m,Ne,Je,ue);for(var ar=(m.layout||{}).selections||[],tr=[],fr=!1,Re=0;Re<ar.length;Re++){var sr=p.selections[Re];!sr||sr.xref!==Ne||sr.yref!==Je?tr.push(ar[Re]):fr=!0}fr&&(m._fullLayout._noEmitSelectedAtStart=!0,yh.call("_guiRelayout",m,{selections:tr}))}});var _e=nue(a);a.moveFn=function(Ne,Je){a._clearSubplotSelections&&(a._clearSubplotSelections(),a._clearSubplotSelections=void 0),z=Math.max(0,Math.min(H,E*Ne+M)),B=Math.max(0,Math.min(Q,P*Je+T));var ar=Math.abs(z-M),tr=Math.abs(B-T);if(l){var fr,Re,sr;if(f){var hr=p.selectdirection;switch(hr==="any"?tr<Math.min(ar*.6,Us)?fr="h":ar<Math.min(tr*.6,Us)?fr="v":fr="d":fr=hr,fr){case"h":Re=h?Q/2:0,sr=Q;break;case"v":Re=h?H/2:0,sr=H;break}}if(u)switch(p.newshape.drawdirection){case"vertical":fr="h",Re=h?Q/2:0,sr=Q;break;case"horizontal":fr="v",Re=h?H/2:0,sr=H;break;case"ortho":ar<tr?(fr="h",Re=T,sr=B):(fr="v",Re=M,sr=z);break;default:fr="d"}fr==="h"?(ce=d?d7(h,[z,Re],[z,sr]):[[M,Re],[M,sr],[z,sr],[z,Re]],ce.xmin=d?z:Math.min(M,z),ce.xmax=d?z:Math.max(M,z),ce.ymin=Math.min(Re,sr),ce.ymax=Math.max(Re,sr),ee.attr("d","M"+ce.xmin+","+(T-Us)+"h-4v"+2*Us+"h4ZM"+(ce.xmax-1)+","+(T-Us)+"h4v"+2*Us+"h-4Z")):fr==="v"?(ce=d?d7(h,[Re,B],[sr,B]):[[Re,T],[Re,B],[sr,B],[sr,T]],ce.xmin=Math.min(Re,sr),ce.xmax=Math.max(Re,sr),ce.ymin=d?B:Math.min(T,B),ce.ymax=d?B:Math.max(T,B),ee.attr("d","M"+(M-Us)+","+ce.ymin+"v-4h"+2*Us+"v4ZM"+(M-Us)+","+(ce.ymax-1)+"v4h"+2*Us+"v-4Z")):fr==="d"&&(ce=d?d7(h,[M,T],[z,B]):[[M,T],[M,B],[z,B],[z,T]],ce.xmin=Math.min(M,z),ce.xmax=Math.max(M,z),ce.ymin=Math.min(T,B),ce.ymax=Math.max(T,B),ee.attr("d","M0,0Z"))}else o&&(re.addPt([z,B]),ce=re.filtered);if(a.selectionDefs&&a.selectionDefs.length?(ie=Nq(a.mergedPolygons,ce,oe),ce.subtract=oe,te=w7(a.selectionDefs.concat([ce]))):(ie=[ce],te=b7(ce)),Eq(Iq(ie,s),Ue,a),f){var dr=m7(m,!1),Ze=dr.eventData?dr.eventData.points.slice():[];dr=m7(m,!1,te,ue,a),te=dr.selectionTesters,Ie=dr.eventData;var cr;re?cr=re.filtered:cr=Uq(ie),gh.throttle(K,mg.SELECTDELAY,function(){J=Hq(te,ue);for(var Lr=J.slice(),Te=0;Te<Ze.length;Te++){for(var Oe=Ze[Te],Ar=!1,Br=0;Br<Lr.length;Br++)if(Lr[Br].curveNumber===Oe.curveNumber&&Lr[Br].pointNumber===Oe.pointNumber){Ar=!0;break}Ar||Lr.push(Oe)}Lr.length&&(Ie||(Ie={}),Ie.points=Lr),_e(Ie,cr),iue(m,Ie)})}},a.clickFn=function(Ne,Je){if(ee.remove(),m._fullLayout._activeShapeIndex>=0){m._fullLayout._deactivateShape(m);return}if(!u){var ar=p.clickmode;gh.done(K).then(function(){if(gh.clear(K),Ne===2){for(Ue.remove(),Me=0;Me<ue.length;Me++)De=ue[Me],De._module.selectPoints(De,!1);if(xh(m,ue),_h(a),M7(m),ue.length){var tr=ue[0].xaxis,fr=ue[0].yaxis;if(tr&&fr){for(var Re=[],sr=m._fullLayout.selections,hr=0;hr<sr.length;hr++){var dr=sr[hr];dr&&(dr.xref!==tr._id||dr.yref!==fr._id)&&Re.push(dr)}Re.length<sr.length&&(m._fullLayout._noEmitSelectedAtStart=!0,yh.call("_guiRelayout",m,{selections:Re}))}}}else ar.indexOf("select")>-1&&Rq(Je,m,a.xaxes,a.yaxes,a.subplot,a,Ue),ar==="event"&&wh(m,void 0);Fse.click(m,Je,x.id)}).catch(pg.error)}},a.doneFn=function(){ee.remove(),gh.done(K).then(function(){gh.clear(K),!y&&ce&&a.selectionDefs&&(ce.subtract=oe,a.selectionDefs.push(ce),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,ie)),(y||u)&&_h(a,y),a.doneFnCompleted&&a.doneFnCompleted(J),f&&wh(m,Ie)}).catch(pg.error)}}function Rq(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],h,d,m,p,y,b,C,x,_,M;if(Zse(l)){zq(e,r,i),h=gg(r,t,a,n);var T=$se(l,h),A=T.pointNumbers.length>0;if(A?Jse(h,T):Kse(h)&&(C=Dq(T))){for(o&&o.remove(),M=0;M<h.length;M++)d=h[M],d._module.selectPoints(d,!1);xh(r,h),_h(i),f&&M7(r)}else{x=e.shiftKey&&(C!==void 0?C:Dq(T)),m=Vse(T.pointNumber,T.searchInfo,x);var E=i.selectionDefs.concat([m]);for(p=w7(E,p),M=0;M<h.length;M++)if(y=h[M]._module.selectPoints(h[M],p),b=Bq(y,h[M]),c.length)for(var P=0;P<b.length;P++)c.push(b[P]);else c=b;if(_={points:c},xh(r,h,_),m&&i&&i.selectionDefs.push(m),o){var z=i.mergedPolygons,B=g7(i.dragmode);Eq(Iq(z,B),o,i)}f&&wh(r,_)}}}function Vse(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function p7(e){return"pointNumber"in e&&"searchInfo"in e}function Xse(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(r,t,a,n){var i=e.searchInfo.cd[0].trace.index,o=n.cd[0].trace.index;return o===i&&a===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function w7(e){if(!e.length)return;for(var r=[],t=p7(e[0])?0:e[0][0][0],a=t,n=p7(e[0])?0:e[0][0][1],i=n,o=0;o<e.length;o++)if(p7(e[o]))r.push(Xse(e[o]));else{var l=b7(e[o]);l.subtract=!!e[o].subtract,r.push(l),t=Math.min(t,l.xmin),a=Math.max(a,l.xmax),n=Math.min(n,l.ymin),i=Math.max(i,l.ymax)}function s(u,f,c,h){for(var d=!1,m=0;m<r.length;m++)r[m].contains(u,f,c,h)&&(d=!r[m].subtract);return d}return{xmin:t,xmax:a,ymin:n,ymax:i,pts:[],contains:s,isRect:!1,degenerate:!1}}function zq(e,r,t){var a=r._fullLayout,n=t.plotinfo,i=t.dragmode,o=a._lastSelectedSubplot&&a._lastSelectedSubplot===n.id,l=(e.shiftKey||e.altKey)&&!(bh(i)&&g7(i));o&&l&&n.selection&&n.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=n.selection.selectionDefs,t.mergedPolygons=n.selection.mergedPolygons):(!l||!n.selection)&&_h(t),o||(Lq(r),a._lastSelectedSubplot=n.id)}function jse(e){return e._fullLayout._activeShapeIndex>=0}function Wse(e){return e._fullLayout._activeSelectionIndex>=0}function _h(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;jse(n)&&n._fullLayout._deactivateShape(n),Wse(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=bh(t),s=y7(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=Rse(u,e)),f&&yh.call("_guiRelayout",n,{shapes:f});var c;s&&!x7(e)&&(c=zse(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,yh.call("_guiRelayout",n,{selections:c}).then(function(){r&&Nse(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function Sq(e){return e._id}function gg(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(Sq),o=t.map(Sq),l,s,u;for(u=0;u<e.calcdata.length;u++)if(l=e.calcdata[u],s=l[0].trace,!(s.visible!==!0||!s._module||!s._module.selectPoints))if(x7({subplot:a})&&(s.subplot===a||s.geo===a))n.push(dg(s._module,l,r[0],t[0]));else if(s.type==="splom"){if(s._xaxes[i[0]]&&s._yaxes[o[0]]){var f=dg(s._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[s.uid],n.push(f)}}else if(s.type==="sankey"){var c=dg(s._module,l,r[0],t[0]);n.push(c)}else{if(i.indexOf(s.xaxis)===-1&&(!s._xA||!s._xA.overlaying)||o.indexOf(s.yaxis)===-1&&(!s._yA||!s._yA.overlaying))continue;n.push(dg(s._module,l,el(e,s.xaxis),el(e,s.yaxis)))}return n}function dg(e,r,t,a){return{_module:e,cd:r,xaxis:t,yaxis:a}}function Zse(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function $se(e,r){var t=e[0],a=-1,n=[],i,o;for(o=0;o<r.length;o++)if(i=r[o],t.fullData.index===i.cd[0].trace.index){if(t.hoverOnBox===!0)break;t.pointNumber!==void 0?a=t.pointNumber:t.binNumber!==void 0&&(a=t.binNumber,n=t.pointNumbers);break}return{pointNumber:a,pointNumbers:n,searchInfo:i}}function Dq(e){var r=e.searchInfo.cd[0].trace,t=e.pointNumber,a=e.pointNumbers,n=a.length>0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Jse(e,r){var t=[],a,n,i,o;for(o=0;o<e.length;o++)a=e[o],a.cd[0].trace.selectedpoints&&a.cd[0].trace.selectedpoints.length>0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o<r.pointNumbers.length;o++)if(n.selectedpoints.indexOf(r.pointNumbers[o])<0)return!1;return!0}return!1}function Kse(e){var r=0,t,a,n;for(n=0;n<e.length;n++)if(t=e[n],a=t.cd[0].trace,a.selectedpoints&&(a.selectedpoints.length>1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function xh(e,r,t){var a,n;for(a=0;a<r.length;a++){n=r[a].cd[0].trace;var i=e._fullLayout._tracePreGUI[n.uid]||{};i.selectedpoints===void 0&&(i.selectedpoints=n._input.selectedpoints||null)}if(t){var o=t.points||[];for(a=0;a<r.length;a++)n=r[a].cd[0].trace,n._input.selectedpoints=n.selectedpoints=[];for(var l=0;l<o.length;l++){var s=o[l],u=s.data,f=s.pointIndex,c=s.pointIndices;c?[].push.apply(u.selectedpoints,c):u.selectedpoints.push(f)}}else for(a=0;a<r.length;a++)n=r[a].cd[0].trace,delete n.selectedpoints,delete n._input.selectedpoints;Qse(e,r)}function Qse(e,r){for(var t=!1,a=0;a<r.length;a++){var n=r[a],i=n.cd;yh.traceIs(i[0].trace,"regl")&&(t=!0);var o=n._module,l=o.styleOnSelect||o.style;l&&(l(e,i,i[0].node3),i[0].nodeRangePlot3&&l(e,i,i[0].nodeRangePlot3))}t&&(Ise(e),Hse(e))}function Nq(e,r,t){for(var a=t?Mq.difference:Mq.union,n=a({regions:e},{regions:[r]}),i=n.regions.reverse(),o=0;o<i.length;o++){var l=i[o];l.subtract=A7(l,i.slice(0,o))}return i}function Bq(e,r){if(Array.isArray(e))for(var t=r.cd,a=r.cd[0].trace,n=0;n<e.length;n++)e[n]=Ese(e[n],a,t);return e}function Iq(e,r){for(var t=[],a=0;a<e.length;a++){t[a]=[];for(var n=0;n<e[a].length;n++){t[a][n]=[],t[a][n][0]=n?"L":"M";for(var i=0;i<e[a][n].length;i++)t[a][n].push(e[a][n][i])}r||t[a].push(["Z",t[a][0][1],t[a][0][2]])}return t}function Hq(e,r){for(var t=[],a,n=[],i,o=0;o<r.length;o++){var l=r[o];i=l._module.selectPoints(l,e),n.push(i),a=Bq(i,l),t=t.concat(a)}return t}function m7(e,r,t,a,n){var i=!!a,o,l,s;n&&(o=n.plotinfo,l=n.xaxes[0]._id,s=n.yaxes[0]._id);var u=[],f=[],c=Fq(e),h=e._fullLayout;if(o){var d=h._zoomlayer,m=h.dragmode,p=bh(m),y=y7(m);if(p||y){var b=el(e,l,"x"),C=el(e,s,"y");if(b&&C){var x=d.selectAll(".select-outline-"+o.id);if(x&&e._fullLayout._outlining&&x.length){for(var _=x[0][0],M=_.getAttribute("d"),T=Pse(M,e,o),A=[],E=0;E<T.length;E++){for(var P=T[E],z=[],B=0;B<P.length;B++)z.push([H0(b,P[B][1]),H0(C,P[B][2])]);z.xref=l,z.yref=s,z.subtract=A7(z,A),A.push(z)}c=c.concat(A)}}}}var X=l&&s?[l+s]:h._subplots.cartesian;eue(e);for(var I={},V=0;V<X.length;V++){var H=X[V],Q=H.indexOf("y"),oe=H.slice(0,Q),re=H.slice(Q),te=l&&s?t:void 0;if(te=tue(c,oe,re,te),te){var ie=a;if(!i){var ce=el(e,oe,"x"),Me=el(e,re,"y");ie=gg(e,[ce],[Me],H);for(var De=0;De<ie.length;De++){var Ie=ie[De],Ue=Ie.cd[0],ke=Ue.trace;if(Ie._module.name==="scattergl"&&!Ue.t.xpx){var je=ke.x,W=ke.y,ee=ke._length;Ue.t.xpx=[],Ue.t.ypx=[];for(var me=0;me<ee;me++)Ue.t.xpx[me]=ce.c2p(je[me]),Ue.t.ypx[me]=Me.c2p(W[me])}Ie._module.name==="splom"&&(I[ke.uid]||(I[ke.uid]=!0))}}var K=Hq(te,ie);u=u.concat(K),f=f.concat(ie)}}var J={points:u};xh(e,f,J);var ue=h.clickmode,_e=ue.indexOf("event")>-1&&r;if(!o&&r){var Ne=Fq(e,!0);if(Ne.length){var Je=Ne[0].xref,ar=Ne[0].yref;if(Je&&ar){var tr=Uq(Ne),fr=Gq([el(e,Je,"x"),el(e,ar,"y")]);fr(J,tr)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:_e&&wh(e,J),h._reselect=!1}if(!o&&h._deselect){var Re=h._deselect;l=Re.xref,s=Re.yref,rue(l,s,f)||Oq(e,l,s,a),_e&&(J.points.length?wh(e,J):M7(e)),h._deselect=!1}return{eventData:J,selectionTesters:t}}function eue(e){var r=e.calcdata;if(r)for(var t=0;t<r.length;t++){var a=r[t][0],n=a.trace,i=e._fullLayout._splomScenes;if(i){var o=i[n.uid];o&&(o.selectBatch=[])}}}function rue(e,r,t){for(var a=0;a<t.length;a++){var n=t[a];if(n.xaxis&&n.xaxis._id===e&&n.yaxis&&n.yaxis._id===r)return!0}return!1}function Oq(e,r,t,a){a=gg(e,[el(e,r,"x")],[el(e,t,"y")],r+t);for(var n=0;n<a.length;n++){var i=a[n];i._module.selectPoints(i,!1)}xh(e,a)}function tue(e,r,t,a){for(var n,i=0;i<e.length;i++){var o=e[i];if(!(r!==o.xref||t!==o.yref))if(n){var l=!!o.subtract;n=Nq(n,o,l),a=w7(n)}else n=[o],a=b7(o)}return a}function Fq(e,r){for(var t=[],a=e._fullLayout,n=a.selections,i=n.length,o=0;o<i;o++)if(!(r&&o!==a._activeSelectionIndex)){var l=n[o];if(l){var s=l.xref,u=l.yref,f=el(e,s,"x"),c=el(e,u,"y"),h,d,m,p,y;if(l.type==="rect"){y=[];var b=H0(f,l.x0),C=H0(f,l.x1),x=H0(c,l.y0),_=H0(c,l.y1);y=[[b,x],[b,_],[C,_],[C,x]],h=Math.min(b,C),d=Math.max(b,C),m=Math.min(x,_),p=Math.max(x,_),y.xmin=h,y.xmax=d,y.ymin=m,y.ymax=p,y.xref=s,y.yref=u,y.subtract=!1,y.isRect=!0,t.push(y)}else if(l.type==="path")for(var M=l.path.split("Z"),T=[],A=0;A<M.length;A++){var E=M[A];if(E){E+="Z";var P=Tq.extractPathCoords(E,kq.paramIsX,"raw"),z=Tq.extractPathCoords(E,kq.paramIsY,"raw");h=1/0,d=-1/0,m=1/0,p=-1/0,y=[];for(var B=0;B<P.length;B++){var X=H0(f,P[B]),I=H0(c,z[B]);y.push([X,I]),h=Math.min(X,h),d=Math.max(X,d),m=Math.min(I,m),p=Math.max(I,p)}y.xmin=h,y.xmax=d,y.ymin=m,y.ymax=p,y.xref=s,y.yref=u,y.subtract=A7(y,T),T.push(y),t.push(y)}}}}return t}function A7(e,r){for(var t=!1,a=0;a<r.length;a++)for(var n=r[a],i=0;i<e.length;i++)if(Sse(e[i],n)){t=!t;break}return t}function H0(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function Uq(e){for(var r=e.length,t=[],a=0;a<r;a++){var n=e[a];t=t.concat(n),t=t.concat([n[0]])}return aue(t)}function aue(e){return e.isRect=e.length===5&&e[0][0]===e[4][0]&&e[0][1]===e[4][1]&&e[0][0]===e[1][0]&&e[2][0]===e[3][0]&&e[0][1]===e[3][1]&&e[1][1]===e[2][1]||e[0][1]===e[1][1]&&e[2][1]===e[3][1]&&e[0][0]===e[3][0]&&e[1][0]===e[2][0],e.isRect&&(e.xmin=Math.min(e[0][0],e[2][0]),e.xmax=Math.max(e[0][0],e[2][0]),e.ymin=Math.min(e[0][1],e[2][1]),e.ymax=Math.max(e[0][1],e[2][1])),e}function Gq(e){return function(r,t){for(var a,n,i=0;i<e.length;i++){var o=e[i],l=o._id,s=l.charAt(0);if(t.isRect){a||(a={});var u=t[s+"min"],f=t[s+"max"];u!==void 0&&f!==void 0&&(a[l]=[Cq(o,u),Cq(o,f)].sort(Bse))}else n||(n={}),n[l]=t.map(Use(o))}a&&(r.range=a),n&&(r.lassoPoints=n)}}function nue(e){var r=e.plotinfo;return r.fillRangeItems||Gq(e.xaxes.concat(e.yaxes))}function iue(e,r){e.emit("plotly_selecting",r)}function wh(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function M7(e){e.emit("plotly_deselect",null)}Yq.exports={reselect:m7,prepSelect:Yse,clearOutline:Lq,clearSelectionsCache:_h,selectOnClick:Rq}});var T7=le((e7e,Xq)=>{"use strict";Xq.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Mh={};Ha(Mh,{axisRefDescription:()=>oue});function oue(e,r,t){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${r} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${r} (${t}). If set to a ${e} axis ID followed by *domain*`,"(separated by a space), the position behaves like for *paper*, but refers to the",`distance in fractions of the domain length from the ${r} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${r}`,`and the ${t} of the domain of the second ${e} axis.`].join(" ")}var Th=Ia(()=>{"use strict"});var h2=le((t7e,Zq)=>{"use strict";var jq=T7(),Wq=gi(),yg=(Nn(),Tr(zn)),lue=ka().templatedArray,r7e=(Th(),Tr(Mh));Zq.exports=lue("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Wq({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:jq.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:jq.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",yg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",yg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",yg.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",yg.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Wq({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var bg={};Ha(bg,{PTS_LINESONLY:()=>sue,eventDataKeys:()=>vue,maxScreensAway:()=>cue,minTolerance:()=>uue,toleranceGrowth:()=>fue});var sue,uue,fue,cue,vue,_g=Ia(()=>{"use strict";sue=20,uue=.2,fue=10,cue=20,vue=[]});var k7=le((a7e,$q)=>{"use strict";$q.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var bc=le((n7e,nP)=>{"use strict";var Jq=r6().axisHoverFormat,{hovertemplateAttrs:hue,texttemplateAttrs:due,templatefallbackAttrs:Kq}=Gf(),Qq=G1(),pue=gi(),eP=Cs().dash,mue=Cs().pattern,gue=ha(),yue=(_g(),Tr(bg)),kh=Tn().extendFlat,bue=k7();function rP(e){return{valType:"any",dflt:0,editType:"calc"}}function tP(e){return{valType:"any",editType:"calc"}}function aP(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}nP.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:rP("x"),yperiod:rP("y"),xperiod0:tP("x0"),yperiod0:tP("y0"),xperiodalignment:aP("x"),yperiodalignment:aP("y"),xhoverformat:Jq("x"),yhoverformat:Jq("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:due(),texttemplatefallback:Kq({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:hue({},{keys:yue.eventDataKeys}),hovertemplatefallback:Kq(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:kh({},eP,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:bue(!0),fillgradient:kh({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:mue,marker:kh({symbol:{valType:"enumerated",values:gue.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:kh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:kh({},eP,{arrayOk:!0}),editType:"calc"},Qq("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Qq("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:pue({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var C7=le((o7e,lP)=>{"use strict";var iP=h2(),oP=bc().line,_ue=Cs().dash,xg=Tn().extendFlat,xue=Yo().overrideAll,wue=ka().templatedArray,i7e=(Th(),Tr(Mh));lP.exports=xue(wue("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:xg({},iP.xref,{}),yref:xg({},iP.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:oP.color,width:xg({},oP.width,{min:1,dflt:1}),dash:xg({},_ue,{dflt:"dot"})}}),"arraydraw","from-root")});var cP=le((l7e,fP)=>{"use strict";var sP=mr(),wg=Oa(),Aue=Ul(),Mue=C7(),uP=I0();fP.exports=function(r,t){Aue(r,t,{name:"selections",handleItemDefaults:Tue});for(var a=t.selections,n=0;n<a.length;n++){var i=a[n];i&&i.path===void 0&&(i.x0===void 0||i.x1===void 0||i.y0===void 0||i.y1===void 0)&&(t.selections[n]=null)}};function Tue(e,r,t){function a(T,A){return sP.coerce(e,r,Mue,T,A)}var n=a("path"),i=n?"path":"rect",o=a("type",i),l=o!=="path";l&&delete r.path,a("opacity"),a("line.color"),a("line.width"),a("line.dash");for(var s=["x","y"],u=0;u<2;u++){var f=s[u],c={_fullLayout:t},h,d,m,p=wg.coerceRef(e,r,c,f);if(h=wg.getFromId(c,p),h._selectionIndices.push(r._index),m=uP.rangeToShapePosition(h),d=uP.shapePositionToRange(h),l){var y=f+"0",b=f+"1",C=e[y],x=e[b];e[y]=d(e[y],!0),e[b]=d(e[b],!0),wg.coercePosition(r,c,a,p,y),wg.coercePosition(r,c,a,p,b);var _=r[y],M=r[b];_!==void 0&&M!==void 0&&(r[y]=m(_),r[b]=m(M),e[y]=C,e[b]=x)}}l&&sP.noneOrAll(e,r,["x0","x1","y0","y1"])}});var hP=le((s7e,vP)=>{"use strict";vP.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Ch=le((u7e,mP)=>{"use strict";var kue=_t(),dP=mr(),pP=Cn();mP.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=kue.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,h=n._has("cartesian"),d=0;d<i.length;d++){var m=i[d];if(dP.isPlainObject(m)){var p=pP.cleanId(m.xref,"x",!1),y=pP.cleanId(m.yref,"y",!1),b=l.x.test(p),C=l.y.test(y);if(b||C){h||dP.pushUnique(n._basePlotModules,o);var x=!1;b&&u.indexOf(p)===-1&&(u.push(p),x=!0),C&&f.indexOf(y)===-1&&(f.push(y),x=!0),x&&b&&C&&c.push(p+y)}}}}}});var Iu=le((f7e,yP)=>{"use strict";var gP=v7(),Sh=Vq();yP.exports={moduleType:"component",name:"selections",layoutAttributes:C7(),supplyLayoutDefaults:cP(),supplyDrawNewSelectionDefaults:hP(),includeBasePlot:Ch()("selections"),draw:gP.draw,drawOne:gP.drawOne,reselect:Sh.reselect,prepSelect:Sh.prepSelect,clearOutline:Sh.clearOutline,clearSelectionsCache:Sh.clearSelectionsCache,selectOnClick:Sh.selectOnClick}});var BP=le((c7e,NP)=>{"use strict";var q7=Ft(),rl=mr(),bP=rl.numberFormat,Cue=sb(),Ag=_t(),CP=rl.strTranslate,Sue=si(),D7=qt(),O0=ha(),Due=Yl(),_P=Oa(),Fue=P0(),Eue=Zo(),SP=o2(),Mg=SP.selectingOrDrawing,Lue=SP.freeMode,que=(li(),Tr(oi)).FROM_TL,Pue=Im(),Rue=sg().redrawReglTraces,zue=Sn(),F7=Cn().getFromId,Nue=Iu().prepSelect,Bue=Iu().clearOutline,Iue=Iu().selectOnClick,S7=n7(),P7=(Nn(),Tr(zn)),xP=P7.MINDRAG,Ri=P7.MINZOOM,wP=!0;function Hue(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,h,d,m,p,y,b,C,x,_,M,T,A,E,P,z,B,X,I,V,H,Q,oe;t+=r.yaxis._shift;function re(){if(c=r.xaxis,h=r.yaxis,x=c._length,_=h._length,b=c._offset,C=h._offset,d={},d[c._id]=c,m={},m[h._id]=h,o&&l)for(var Be=r.overlays,Xe=0;Xe<Be.length;Xe++){var yr=Be[Xe].xaxis;d[yr._id]=yr;var Cr=Be[Xe].yaxis;m[Cr._id]=Cr}p=kP(d),y=kP(m),A=AP(p,l),E=AP(y,o),P=!E&&!A,T=TP(e,e._fullLayout._axisMatchGroups,d,m),M=TP(e,e._fullLayout._axisConstraintGroups,d,m,T);var pr=M.isSubplotConstrained||T.isSubplotConstrained;z=l||pr,B=o||pr;var xr=e._fullLayout;X=xr._has("scattergl"),I=xr._has("splom"),V=xr._has("svg")}re();var te=Gue(E+A,e._fullLayout.dragmode,u),ie=FP(r,o+l+"drag",te,t,a,n,i);if(P&&!u)return ie.onmousedown=null,ie.style.pointerEvents="none",ie;var ce={element:ie,gd:e,plotinfo:r};ce.prepFn=function(Be,Xe,yr){var Cr=ce.dragmode,pr=e._fullLayout.dragmode;pr!==Cr&&(ce.dragmode=pr),re(),Q=e._fullLayout._invScaleX,oe=e._fullLayout._invScaleY,P||(u?Be.shiftKey?pr==="pan"?pr="zoom":Mg(pr)||(pr="pan"):Be.ctrlKey&&(pr="pan"):pr="pan"),Lue(pr)?ce.minDrag=1:ce.minDrag=void 0,Mg(pr)?(ce.xaxes=p,ce.yaxes=y,Nue(Be,Xe,yr,ce,pr)):(ce.clickFn=De,Mg(Cr)&&Me(),P||(pr==="zoom"?(ce.moveFn=Ne,ce.doneFn=ar,ce.minDrag=1,_e(Be,Xe,yr)):pr==="pan"&&(ce.moveFn=dr,ce.doneFn=Te))),e._fullLayout._redrag=function(){var xr=e._dragdata;if(xr&&xr.element===ie){var Rr=e._fullLayout.dragmode;Mg(Rr)||(re(),Oe([0,0,x,_]),ce.moveFn(xr.dx,xr.dy))}}};function Me(){ce.plotinfo.selection=!1,Bue(e)}function De(Be,Xe){var yr=ce.gd;if(yr._fullLayout._activeShapeIndex>=0){yr._fullLayout._deactivateShape(yr);return}var Cr=yr._fullLayout.clickmode;if(L7(yr),Be===2&&!f&&Lr(),u)Cr.indexOf("select")>-1&&Iue(Xe,yr,p,y,r.id,ce),Cr.indexOf("event")>-1&&Due.click(yr,Xe,r.id);else if(Be===1&&f){var pr=o?h:c,xr=o==="s"||l==="w"?0:1,Rr=pr._name+".range["+xr+"]",Er=Oue(pr,xr),Or="left",rr="middle";if(pr.fixedrange)return;o?(rr=o==="n"?"top":"bottom",pr.side==="right"&&(Or="right")):l==="e"&&(Or="right"),yr._context.showAxisRangeEntryBoxes&&q7.select(ie).call(Sue.makeEditable,{gd:yr,immediate:!0,background:yr._fullLayout.paper_bgcolor,text:String(Er),fill:pr.tickfont?pr.tickfont.color:"#444",horizontalAlign:Or,verticalAlign:rr}).on("edit",function(Sr){var vr=pr.d2r(Sr);vr!==void 0&&Ag.call("_guiRelayout",yr,Rr,vr)})}}Eue.init(ce);var Ie,Ue,ke,je,W,ee,me,K,J,ue;function _e(Be,Xe,yr){var Cr=ie.getBoundingClientRect();Ie=Xe-Cr.left,Ue=yr-Cr.top,e._fullLayout._calcInverseTransform(e);var pr=rl.apply3DTransform(e._fullLayout._invTransform)(Ie,Ue);Ie=pr[0],Ue=pr[1],ke={l:Ie,r:Ie,w:0,t:Ue,b:Ue,h:0},je=e._hmpixcount?e._hmlumcount/e._hmpixcount:D7.luminosity(e._fullLayout.plot_bgcolor),W="M0,0H"+x+"V"+_+"H0V0",ee=!1,me="xy",ue=!1,K=EP(s,je,b,C,W),J=LP(s,b,C)}function Ne(Be,Xe){if(e._transitioningWithDuration)return!1;var yr=Math.max(0,Math.min(x,Q*Be+Ie)),Cr=Math.max(0,Math.min(_,oe*Xe+Ue)),pr=Math.abs(yr-Ie),xr=Math.abs(Cr-Ue);ke.l=Math.min(Ie,yr),ke.r=Math.max(Ie,yr),ke.t=Math.min(Ue,Cr),ke.b=Math.max(Ue,Cr);function Rr(){me="",ke.r=ke.l,ke.t=ke.b,J.attr("d","M0,0Z")}if(M.isSubplotConstrained)pr>Ri||xr>Ri?(me="xy",pr/x>xr/_?(xr=pr*_/x,Ue>Cr?ke.t=Ue-xr:ke.b=Ue+xr):(pr=xr*x/_,Ie>yr?ke.l=Ie-pr:ke.r=Ie+pr),J.attr("d",Tg(ke))):Rr();else if(T.isSubplotConstrained)if(pr>Ri||xr>Ri){me="xy";var Er=Math.min(ke.l/x,(_-ke.b)/_),Or=Math.max(ke.r/x,(_-ke.t)/_);ke.l=Er*x,ke.r=Or*x,ke.b=(1-Er)*_,ke.t=(1-Or)*_,J.attr("d",Tg(ke))}else Rr();else!E||xr<Math.min(Math.max(pr*.6,xP),Ri)?pr<xP||!A?Rr():(ke.t=0,ke.b=_,me="x",J.attr("d",Yue(ke,Ue))):!A||pr<Math.min(xr*.6,Ri)?(ke.l=0,ke.r=x,me="y",J.attr("d",Vue(ke,Ie))):(me="xy",J.attr("d",Tg(ke)));ke.w=ke.r-ke.l,ke.h=ke.b-ke.t,me&&(ue=!0),e._dragged=ue,qP(K,J,ke,W,ee,je),Je(),e.emit("plotly_relayouting",H),ee=!0}function Je(){H={},(me==="xy"||me==="x")&&(E7(p,ke.l/x,ke.r/x,H,M.xaxes),Ze("x",H)),(me==="xy"||me==="y")&&(E7(y,(_-ke.b)/_,(_-ke.t)/_,H,M.yaxes),Ze("y",H))}function ar(){Je(),L7(e),Te(),RP(e)}var tr=[0,0,x,_],fr=null,Re=P7.REDRAWDELAY,sr=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function hr(Be){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(Me(),e._transitioningWithDuration){Be.preventDefault(),Be.stopPropagation();return}re(),clearTimeout(fr);var Xe=-Be.deltaY;if(isFinite(Xe)||(Xe=Be.wheelDelta/10),!isFinite(Xe)){rl.log("Did not find wheel motion attributes: ",Be);return}e._fullLayout._replotting=!0;var yr=Math.exp(-Math.min(Math.max(Xe,-20),20)/200),Cr=sr.draglayer.select(".nsewdrag").node().getBoundingClientRect(),pr=(Be.clientX-Cr.left)/Cr.width,xr=(Cr.bottom-Be.clientY)/Cr.height,Rr;function Er(Or,rr,Sr){if(Or.fixedrange)return;var vr=rl.simpleMap(Or.range,Or.r2l),jr=vr[0]+(vr[1]-vr[0])*rr;function Qr(qr){return Or.l2r(jr+(qr-jr)*Sr)}Or.range=vr.map(Qr)}if(z){for(l||(pr=.5),Rr=0;Rr<p.length;Rr++)Er(p[Rr],pr,yr);Ze("x"),tr[2]*=yr,tr[0]+=tr[2]*pr*(1/yr-1)}if(B){for(o||(xr=.5),Rr=0;Rr<y.length;Rr++)Er(y[Rr],xr,yr);Ze("y"),tr[3]*=yr,tr[1]+=tr[3]*(1-xr)*(1/yr-1)}Oe(tr),cr(),e.emit("plotly_relayouting",H),fr=setTimeout(function(){e._fullLayout&&(tr=[0,0,x,_],Te())},Re),Be.preventDefault()}o.length*l.length!==1&&zP(ie,hr);function dr(Be,Xe){if(Be=Be*Q,Xe=Xe*oe,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,A==="ew"||E==="ns"){var yr=A?-Be:0,Cr=E?-Xe:0;if(T.isSubplotConstrained){if(A&&E){var pr=(Be/x-Xe/_)/2;Be=pr*x,Xe=-pr*_,yr=-Be,Cr=-Xe}E?yr=-Cr*x/_:Cr=-yr*_/x}A&&(MP(p,Be),Ze("x")),E&&(MP(y,Xe),Ze("y")),Oe([yr,Cr,x,_]),cr(),e.emit("plotly_relayouting",H);return}function xr(Qr,qr,Wr){for(var Ae=1-qr,Pe,ur,gr=0;gr<Qr.length;gr++){var It=Qr[gr];if(!It.fixedrange){Pe=It,ur=It._rl[Ae]+(It._rl[qr]-It._rl[Ae])/Uue(Wr/It._length);var Yt=It.l2r(ur);Yt!==!1&&Yt!==void 0&&(It.range[qr]=Yt)}}return Pe._length*(Pe._rl[qr]-ur)/(Pe._rl[qr]-Pe._rl[Ae])}var Rr=A==="w"==(E==="n")?1:-1;if(A&&E&&(M.isSubplotConstrained||T.isSubplotConstrained)){var Er=(Be/x+Rr*Xe/_)/2;Be=Er*x,Xe=Rr*Er*_}var Or,rr;if(A==="w"?Be=xr(p,0,Be):A==="e"?Be=xr(p,1,-Be):A||(Be=0),E==="n"?Xe=xr(y,1,Xe):E==="s"?Xe=xr(y,0,-Xe):E||(Xe=0),Or=A==="w"?Be:0,rr=E==="n"?Xe:0,M.isSubplotConstrained&&!T.isSubplotConstrained||T.isSubplotConstrained&&A&&E&&Rr>0){var Sr;if(T.isSubplotConstrained||!A&&E.length===1){for(Sr=0;Sr<p.length;Sr++)p[Sr].range=p[Sr]._r.slice(),S7(p[Sr],1-Xe/_);Be=Xe*x/_,Or=Be/2}if(T.isSubplotConstrained||!E&&A.length===1){for(Sr=0;Sr<y.length;Sr++)y[Sr].range=y[Sr]._r.slice(),S7(y[Sr],1-Be/x);Xe=Be*_/x,rr=Xe/2}}(!T.isSubplotConstrained||!E)&&Ze("x"),(!T.isSubplotConstrained||!A)&&Ze("y");var vr=x-Be,jr=_-Xe;T.isSubplotConstrained&&!(A&&E)&&(A?(rr=Or?0:Be*_/x,jr=vr*_/x):(Or=rr?0:Xe*x/_,vr=jr*x/_)),Oe([Or,rr,vr,jr]),cr(),e.emit("plotly_relayouting",H)}function Ze(Be,Xe){for(var yr=T.isSubplotConstrained?{x:y,y:p}[Be]:T[Be+"axes"],Cr=T.isSubplotConstrained?{x:p,y}[Be]:[],pr=0;pr<yr.length;pr++){var xr=yr[pr],Rr=xr._id,Er=T.xLinks[Rr]||T.yLinks[Rr],Or=Cr[0]||d[Er]||m[Er];Or&&(Xe?(Xe[xr._name+".range[0]"]=Xe[Or._name+".range[0]"],Xe[xr._name+".range[1]"]=Xe[Or._name+".range[1]"]):xr.range=Or.range.slice())}}function cr(){var Be=[],Xe;function yr(Rr){for(Xe=0;Xe<Rr.length;Xe++)Rr[Xe].fixedrange||Be.push(Rr[Xe]._id)}function Cr(Rr,Er){for(Xe=0;Xe<Rr.length;Xe++){var Or=Rr[Xe],rr=Or[Er],Sr=rr._id;!Or.fixedrange&&rr.tickmode==="sync"&&!Be.includes(Sr)&&Be.push(Sr)}}for(z&&(yr(p),yr(M.xaxes),yr(T.xaxes),Cr(r.overlays,"xaxis")),B&&(yr(y),yr(M.yaxes),yr(T.yaxes),Cr(r.overlays,"yaxis")),H={},Xe=0;Xe<Be.length;Xe++){var pr=Be[Xe],xr=F7(e,pr);_P.drawOne(e,xr,{skipTitle:!0}),H[xr._name+".range[0]"]=xr.range[0],H[xr._name+".range[1]"]=xr.range[1]}_P.redrawComponents(e,Be)}function Lr(){if(!e._transitioningWithDuration){var Be=e._context.doubleClick,Xe=[];A&&(Xe=Xe.concat(p)),E&&(Xe=Xe.concat(y)),T.xaxes&&(Xe=Xe.concat(T.xaxes)),T.yaxes&&(Xe=Xe.concat(T.yaxes));var yr={},Cr,pr;if(Be==="reset+autosize")for(Be="autosize",pr=0;pr<Xe.length;pr++){Cr=Xe[pr];var xr=Cr._rangeInitial0,Rr=Cr._rangeInitial1,Er=xr!==void 0||Rr!==void 0;if(Er&&(xr!==void 0&&xr!==Cr.range[0]||Rr!==void 0&&Rr!==Cr.range[1])||!Er&&Cr.autorange!==!0){Be="reset";break}}if(Be==="autosize")for(pr=0;pr<Xe.length;pr++)Cr=Xe[pr],Cr.fixedrange||(yr[Cr._name+".autorange"]=!0);else if(Be==="reset"){for((A||M.isSubplotConstrained)&&(Xe=Xe.concat(M.xaxes)),E&&!M.isSubplotConstrained&&(Xe=Xe.concat(M.yaxes)),M.isSubplotConstrained&&(A?E||(Xe=Xe.concat(y)):Xe=Xe.concat(p)),pr=0;pr<Xe.length;pr++)if(Cr=Xe[pr],!Cr.fixedrange){var Or=Cr._name,rr=Cr._autorangeInitial;Cr._rangeInitial0===void 0&&Cr._rangeInitial1===void 0?yr[Or+".autorange"]=!0:Cr._rangeInitial0===void 0?(yr[Or+".autorange"]=rr,yr[Or+".range"]=[null,Cr._rangeInitial1]):Cr._rangeInitial1===void 0?(yr[Or+".range"]=[Cr._rangeInitial0,null],yr[Or+".autorange"]=rr):yr[Or+".range"]=[Cr._rangeInitial0,Cr._rangeInitial1]}}e.emit("plotly_doubleclick",null),Ag.call("_guiRelayout",e,yr)}}function Te(){Oe([0,0,x,_]),rl.syncOrAsync([zue.previousPromises,function(){e._fullLayout._replotting=!1,Ag.call("_guiRelayout",e,H)}],e)}function Oe(Be){var Xe=e._fullLayout,yr=Xe._plots,Cr=Xe._subplots.cartesian,pr,xr,Rr,Er;if(I&&Ag.subplotsRegistry.splom.drag(e),X){for(pr=0;pr<Cr.length;pr++)if(xr=yr[Cr[pr]],Rr=xr.xaxis,Er=xr.yaxis,xr._scene){Rr.limitRange&&Rr.limitRange(),Er.limitRange&&Er.limitRange();var Or=rl.simpleMap(Rr.range,Rr.r2l),rr=rl.simpleMap(Er.range,Er.r2l);xr._scene.update({range:[Or[0],rr[0],Or[1],rr[1]]})}}if((I||X)&&(Pue(e),Rue(e)),V){var Sr=Be[2]/c._length,vr=Be[3]/h._length;for(pr=0;pr<Cr.length;pr++){xr=yr[Cr[pr]],Rr=xr.xaxis,Er=xr.yaxis;var jr=(z||T.isSubplotConstrained)&&!Rr.fixedrange&&d[Rr._id],Qr=(B||T.isSubplotConstrained)&&!Er.fixedrange&&m[Er._id],qr,Wr,Ae,Pe;if(jr?(qr=Sr,Ae=l||T.isSubplotConstrained?Be[0]:Qe(Rr,qr)):T.xaHash[Rr._id]?(qr=Sr,Ae=Be[0]*Rr._length/c._length):T.yaHash[Rr._id]?(qr=vr,Ae=E==="ns"?-Be[1]*Rr._length/h._length:Qe(Rr,qr,{n:"top",s:"bottom"}[E])):(qr=Ar(Rr,Sr,vr),Ae=Br(Rr,qr)),qr>1&&(Rr.maxallowed!==void 0&&z===(Rr.range[0]<Rr.range[1]?"e":"w")||Rr.minallowed!==void 0&&z===(Rr.range[0]<Rr.range[1]?"w":"e"))&&(qr=1,Ae=0),Qr?(Wr=vr,Pe=o||T.isSubplotConstrained?Be[1]:Qe(Er,Wr)):T.yaHash[Er._id]?(Wr=vr,Pe=Be[1]*Er._length/h._length):T.xaHash[Er._id]?(Wr=Sr,Pe=A==="ew"?-Be[0]*Er._length/c._length:Qe(Er,Wr,{e:"right",w:"left"}[A])):(Wr=Ar(Er,Sr,vr),Pe=Br(Er,Wr)),Wr>1&&(Er.maxallowed!==void 0&&B===(Er.range[0]<Er.range[1]?"n":"s")||Er.minallowed!==void 0&&B===(Er.range[0]<Er.range[1]?"s":"n"))&&(Wr=1,Pe=0),!(!qr&&!Wr)){qr||(qr=1),Wr||(Wr=1);var ur=Rr._offset-Ae/qr,gr=Er._offset-Pe/Wr;xr.clipRect.call(O0.setTranslate,Ae,Pe).call(O0.setScale,qr,Wr),xr.plot.call(O0.setTranslate,ur,gr).call(O0.setScale,1/qr,1/Wr),(qr!==xr.xScaleFactor||Wr!==xr.yScaleFactor)&&(O0.setPointGroupScale(xr.zoomScalePts,qr,Wr),O0.setTextPointsScale(xr.zoomScaleTxt,qr,Wr)),O0.hideOutsideRangePoints(xr.clipOnAxisFalseTraces,xr),xr.xScaleFactor=qr,xr.yScaleFactor=Wr}}}}function Ar(Be,Xe,yr){return Be.fixedrange?0:z&&M.xaHash[Be._id]?Xe:B&&(M.isSubplotConstrained?M.xaHash:M.yaHash)[Be._id]?yr:0}function Br(Be,Xe){return Xe?(Be.range=Be._r.slice(),S7(Be,Xe),Qe(Be,Xe)):0}function Qe(Be,Xe,yr){return Be._length*(1-Xe)*que[yr||Be.constraintoward||"middle"]}return ie}function DP(e,r,t,a){var n=rl.ensureSingle(e.draglayer,r,t,function(i){i.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return n.call(Fue,a),n.node()}function FP(e,r,t,a,n,i,o){var l=DP(e,"rect",r,t);return q7.select(l).call(O0.setRect,a,n,i,o),l}function AP(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function Oue(e,r){var t=e.range[r],a=Math.abs(t-e.range[1-r]),n;return e.type==="date"?t:e.type==="log"?(n=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,bP("."+n+"g")(Math.pow(10,t))):(n=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,bP("."+String(n)+"g")(t))}function E7(e,r,t,a,n){for(var i=0;i<e.length;i++){var o=e[i];if(!o.fixedrange)if(o.rangebreaks){var l=o._id.charAt(0)==="y",s=l?1-r:r,u=l?1-t:t;a[o._name+".range[0]"]=o.l2r(o.p2l(s*o._length)),a[o._name+".range[1]"]=o.l2r(o.p2l(u*o._length))}else{var f=o._rl[0],c=o._rl[1]-f;a[o._name+".range[0]"]=o.l2r(f+c*r),a[o._name+".range[1]"]=o.l2r(f+c*t)}}if(n&&n.length){var h=(r+(1-t))/2;E7(n,h,1-h,a,[])}}function MP(e,r){for(var t=0;t<e.length;t++){var a=e[t];if(!a.fixedrange){if(a.rangebreaks){var n=0,i=a._length,o=a.p2l(n+r)-a.p2l(n),l=a.p2l(i+r)-a.p2l(i),s=(o+l)/2;a.range=[a.l2r(a._rl[0]-s),a.l2r(a._rl[1]-s)]}else a.range=[a.l2r(a._rl[0]-r/a._m),a.l2r(a._rl[1]-r/a._m)];a.limitRange&&a.limitRange()}}}function Uue(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Gue(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function EP(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",CP(t,a)).attr("d",n+"Z")}function LP(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:D7.background,stroke:D7.defaultLine,"stroke-width":1,opacity:0}).attr("transform",CP(r,t)).attr("d","M0,0Z")}function qP(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),PP(e,r,n,i)}function PP(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function L7(e){q7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function RP(e){wP&&e.data&&e._context.showTips&&(rl.notifier(rl._(e,"Double-click to zoom back out"),"long",e),wP=!1)}function Yue(e,r){return"M"+(e.l-.5)+","+(r-Ri-.5)+"h-3v"+(2*Ri+1)+"h3ZM"+(e.r+.5)+","+(r-Ri-.5)+"h3v"+(2*Ri+1)+"h-3Z"}function Vue(e,r){return"M"+(r-Ri-.5)+","+(e.t-.5)+"v-3h"+(2*Ri+1)+"v3ZM"+(r-Ri-.5)+","+(e.b+.5)+"v3h"+(2*Ri+1)+"v-3Z"}function Tg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ri)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function TP(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,h=(n||{}).xaHash,d=(n||{}).yaHash,m=0;m<r.length;m++){var p=r[m];for(s in t)if(p[s]){for(f in p)!(n&&(h[f]||d[f]))&&!(f.charAt(0)==="x"?t:a)[f]&&(o[f]=s);for(u in a)!(n&&(h[u]||d[u]))&&p[u]&&(i=!0)}for(u in a)if(p[u])for(c in p)!(n&&(h[c]||d[c]))&&!(c.charAt(0)==="x"?t:a)[c]&&(l[c]=u)}i&&(rl.extendFlat(o,l),l={});var y={},b=[];for(f in o){var C=F7(e,f);b.push(C),y[C._id]=C}var x={},_=[];for(c in l){var M=F7(e,c);_.push(M),x[M._id]=M}return{xaHash:y,yaHash:x,xaxes:b,yaxes:_,xLinks:o,yLinks:l,isSubplotConstrained:i}}function zP(e,r){if(!Cue)e.onwheel!==void 0?e.onwheel=r:e.onmousewheel!==void 0?e.onmousewheel=r:e.isAddedWheelEvent||(e.isAddedWheelEvent=!0,e.addEventListener("wheel",r,{passive:!1}));else{var t=e.onwheel!==void 0?"wheel":"mousewheel";e._onwheel&&e.removeEventListener(t,e._onwheel),e._onwheel=r,e.addEventListener(t,r,{passive:!1})}}function kP(e){var r=[];for(var t in e)r.push(e[t]);return r}NP.exports={makeDragBox:Hue,makeDragger:DP,makeRectDragger:FP,makeZoombox:EP,makeCorners:LP,updateZoombox:qP,xyCorners:Tg,transitionZoombox:PP,removeZoombox:L7,showDoubleClickNotifier:RP,attachWheelEventHandler:zP}});var R7=le(Cg=>{"use strict";var Xue=Ft(),kg=Yl(),jue=Zo(),Wue=P0(),Xl=BP().makeDragBox,Hn=(Nn(),Tr(zn)).DRAGGERSIZE;Cg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Xue.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=Xl(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&kg.hover(r,h,i)},kg.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,jue.unhover(r,h))},r._context.showAxisDragHandles&&(Xl(r,o,l._offset-Hn,s._offset-Hn,Hn,Hn,"n","w"),Xl(r,o,l._offset+l._length,s._offset-Hn,Hn,Hn,"n","e"),Xl(r,o,l._offset-Hn,s._offset+s._length,Hn,Hn,"s","w"),Xl(r,o,l._offset+l._length,s._offset+s._length,Hn,Hn,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Hn),Xl(r,o,l._offset+l._length*.1,f,l._length*.8,Hn,"","ew"),Xl(r,o,l._offset,f,l._length*.1,Hn,"","w"),Xl(r,o,l._offset+l._length*.9,f,l._length*.1,Hn,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Hn),Xl(r,o,c,s._offset+s._length*.1,Hn,s._length*.8,"ns",""),Xl(r,o,c,s._offset+s._length*.9,Hn,s._length*.1,"s",""),Xl(r,o,c,s._offset,Hn,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,kg.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,kg.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Cg.updateFx(r)}};Cg.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Wue(r._draggers,t)}});var OP=le((h7e,HP)=>{"use strict";var IP=_t();HP.exports=function(r){for(var t=IP.layoutArrayContainers,a=IP.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l<a.length;l++)if(o=r.match(a[l]),o&&o.index===0){i=o[0];break}if(i||(i=t[t.indexOf(n)]),!i)return!1;var s=r.slice(i.length);return s?(o=s.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),o?{array:i,index:Number(o[1]),property:o[3]||""}:!1):{array:i,index:"",property:""}}});var GP=le(Fh=>{"use strict";var Zue=c0(),z7=vp(),Dh=Cu(),$ue=T5().sorterAsc,N7=_t();Fh.containerArrayMatch=OP();var Jue=Fh.isAddVal=function(r){return r==="add"||Zue(r)},UP=Fh.isRemoveVal=function(r){return r===null||r==="remove"};Fh.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=N7.getComponentMethod(o,"supplyLayoutDefaults"),s=N7.getComponentMethod(o,"draw"),u=N7.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===z7||s===z7,c=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Dh.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(UP(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Dh.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,h),s(r),!0)}var m=Object.keys(a).map(Number).sort($ue),p=t.get(),y=p||[],b=i(h,o).get(),C=[],x=-1,_=y.length,M,T,A,E,P,z,B,X;for(M=0;M<m.length;M++){if(A=m[M],E=a[A],P=Object.keys(E),z=E[""],B=Jue(z),A<0||A>y.length-(B?0:1)){Dh.warn("index out of range",o,A);continue}if(z!==void 0)P.length>1&&Dh.warn("Insertion & removal are incompatible with edits to the same index.",o,A),UP(z)?C.push(A):B?(z==="add"&&(z={}),y.splice(A,0,z),b&&b.splice(A,0,{})):Dh.warn("Unrecognized full object edit value",o,A,z),x===-1&&(x=A);else for(T=0;T<P.length;T++)X=o+"["+A+"].",i(y[A],P[T],X).set(E[P[T]])}for(M=C.length-1;M>=0;M--)y.splice(C[M],1),b&&b.splice(C[M],1);if(y.length?p||t.set(y):t.set(null),f)return!1;if(l(c,h),u!==z7){var I;if(x===-1)I=m;else{for(_=Math.max(y.length,_),I=[],M=0;M<m.length&&(A=m[M],!(A>=x));M++)I.push(A);for(M=x;M<_;M++)I.push(M)}for(M=0;M<I.length;M++)u(r,I[M])}else s(r);return!0}});var $P=le(tl=>{"use strict";var jP=Wt(),WP=_t(),Ti=mr(),Eh=Sn(),ZP=Cn(),Lh=ZP.cleanId,Kue=ZP.getFromTrace,B7=WP.traceIs,Que=["x","y","z"];tl.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ti.log("Clearing previous rejected promises from queue."),e._promises=[]};tl.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Eh.subplotsRegistry.cartesian||{}).attrRegex,n=(Eh.subplotsRegistry.polar||{}).attrRegex,i=(Eh.subplotsRegistry.ternary||{}).attrRegex,o=(Eh.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r<l.length;r++){var s=l[r];if(a&&a.test(s)){var u=e[s];u.anchor&&u.anchor!=="free"&&(u.anchor=Lh(u.anchor)),u.overlaying&&(u.overlaying=Lh(u.overlaying)),u.type||(u.isdate?u.type="date":u.islog?u.type="log":u.isdate===!1&&u.islog===!1&&(u.type="linear")),(u.autorange==="withzero"||u.autorange==="tozero")&&(u.autorange=!0,u.rangemode="tozero"),u.insiderange&&delete u.range,delete u.islog,delete u.isdate,delete u.categories,Sg(u,"domain")&&delete u.domain}}var f=Array.isArray(e.annotations)?e.annotations.length:0;for(r=0;r<f;r++){var c=e.annotations[r];Ti.isPlainObject(c)&&(d2(c,"xref"),d2(c,"yref"))}var h=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<h;r++){var d=e.shapes[r];Ti.isPlainObject(d)&&(d2(d,"xref",!0),d2(d,"yref",!0))}var m=Array.isArray(e.images)?e.images.length:0;for(r=0;r<m;r++){var p=e.images[r];Ti.isPlainObject(p)&&(d2(p,"xref"),d2(p,"yref"))}var y=e.legend;return y&&(y.x>3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&tl.cleanLayout(e.template.layout),e};function d2(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Lh(a,n,!0))}tl.cleanData=function(e){for(var r=0;r<e.length;r++){var t=e[r],a;if(t.type==="histogramy"&&"xbins"in t&&!("ybins"in t)&&(t.ybins=t.xbins,delete t.xbins),t.type==="histogramy"&&tl.swapXYData(t),(t.type==="histogramx"||t.type==="histogramy")&&(t.type="histogram"),"scl"in t&&!("colorscale"in t)&&(t.colorscale=t.scl,delete t.scl),"reversescl"in t&&!("reversescale"in t)&&(t.reversescale=t.reversescl,delete t.reversescl),t.xaxis&&(t.xaxis=Lh(t.xaxis,"x")),t.yaxis&&(t.yaxis=Lh(t.yaxis,"y")),B7(t,"gl3d")&&t.scene&&(t.scene=Eh.subplotsRegistry.gl3d.cleanId(t.scene)),!B7(t,"pie-like")&&!B7(t,"bar-like"))if(Array.isArray(t.textposition))for(a=0;a<t.textposition.length;a++)t.textposition[a]=VP(t.textposition[a]);else t.textposition&&(t.textposition=VP(t.textposition));var n=WP.getModule(t);if(n&&n.colorbar){var i=n.colorbar.container,o=i?t[i]:t;o&&o.colorscale&&(o.colorscale==="YIGnBu"&&(o.colorscale="YlGnBu"),o.colorscale==="YIOrRd"&&(o.colorscale="YlOrRd"))}if(t.type==="surface"&&Ti.isPlainObject(t.contours)){var l=["x","y","z"];for(a=0;a<l.length;a++){var s=t.contours[l[a]];Ti.isPlainObject(s)&&(s.highlightColor&&(s.highlightcolor=s.highlightColor,delete s.highlightColor),s.highlightWidth&&(s.highlightwidth=s.highlightWidth,delete s.highlightWidth))}}if(t.type==="candlestick"||t.type==="ohlc"){var u=(t.increasing||{}).showlegend!==!1,f=(t.decreasing||{}).showlegend!==!1,c=YP(t.increasing),h=YP(t.decreasing);if(c!==!1&&h!==!1){var d=e0e(c,h,u,f);d&&(t.name=d)}else(c||h)&&!t.name&&(t.name=c||h)}Sg(t,"line")&&delete t.line,"marker"in t&&(Sg(t.marker,"line")&&delete t.marker.line,Sg(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function YP(e){if(!Ti.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function e0e(e,r,t,a){if(t&&!a)return e;if(a&&!t||!e.trim())return r;if(!r.trim())return e;var n=Math.min(e.length,r.length),i;for(i=0;i<n&&e.charAt(i)===r.charAt(i);i++);var o=e.slice(0,i);return o.trim()}function VP(e){var r="middle",t="center";return typeof e=="string"&&(e.indexOf("top")!==-1?r="top":e.indexOf("bottom")!==-1&&(r="bottom"),e.indexOf("left")!==-1?t="left":e.indexOf("right")!==-1&&(t="right")),r+" "+t}function Sg(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}tl.swapXYData=function(e){var r;if(Ti.swapAttrs(e,["?","?0","d?","?bins","nbins?","autobin?","error_?"]),Array.isArray(e.z)&&Array.isArray(e.z[0])&&(e.transpose?delete e.transpose:e.transpose=!0),e.error_x&&e.error_y){var t=e.error_y,a="copy_ystyle"in t?t.copy_ystyle:!(t.color||t.thickness||t.width);Ti.swapAttrs(e,["error_?.copy_ystyle"]),a&&Ti.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if(typeof e.hoverinfo=="string"){var n=e.hoverinfo.split("+");for(r=0;r<n.length;r++)n[r]==="x"?n[r]="y":n[r]==="y"&&(n[r]="x");e.hoverinfo=n.join("+")}};tl.coerceTraceIndices=function(e,r){if(jP(r))return[r];if(!Array.isArray(r)||!r.length)return e.data.map(function(n,i){return i});if(Array.isArray(r)){for(var t=[],a=0;a<r.length;a++)Ti.isIndex(r[a],e.data.length)?t.push(r[a]):Ti.warn("trace index (",r[a],") is not a number or is out of bounds");return t}return r};tl.manageArrayContainers=function(e,r,t){var a=e.obj,n=e.parts,i=n.length,o=n[i-1],l=jP(o);if(l&&r===null){var s=n.slice(0,i-1).join("."),u=Ti.nestedProperty(a,s).get();u.splice(o,1)}else l&&e.get()===void 0&&e.get()===void 0&&(t[e.astr]=null),e.set(r)};var r0e=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function XP(e){var r=e.search(r0e);if(r>0)return e.slice(0,r)}tl.hasParent=function(e,r){for(var t=XP(r);t;){if(t in e)return!0;t=XP(t)}return!1};tl.clearAxisTypes=function(e,r,t){for(var a=0;a<r.length;a++)for(var n=e._fullData[a],i=0;i<3;i++){var o=Kue(e,n,Que[i]);if(o&&o.type!=="log"){var l=o._name,s=o._id.slice(1);if(s.slice(0,5)==="scene"){if(t[s]!==void 0)continue;l=s+"."+l}var u=l+".type";t[l]===void 0&&t[u]===void 0&&Ti.nestedProperty(e.layout,u).set(null)}}};var I7=(e,r)=>{let t=(...a)=>a.every(n=>Ti.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;a<e.length;a++){let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?I7(n,i):!1))return!1}return!0}else if([e,r].every(a=>Ti.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?I7(n,i):!1))return!1}return!0}return!1};tl.collectionsAreEqual=I7});var Y7=le(Ut=>{"use strict";var Lg=Ft(),t0e=Wt(),a0e=B5(),Hr=mr(),Ca=Hr.nestedProperty,O7=qv(),zi=Bk(),al=_t(),Ig=I1(),gt=Sn(),ki=Oa(),n0e=lb(),i0e=Ol(),Fg=ha(),o0e=qt(),l0e=R7().initInteractions,s0e=(Kf(),Tr(Jf)),u0e=Iu().clearOutline,rR=d0().dfltConfig,Dg=GP(),pn=$P(),sa=sg(),U0=Yo(),f0e=(Nn(),Tr(zn)).AX_NAME_PATTERN,H7=0,JP=5;function c0e(e,r,t,a){var n;if(e=Hr.getGraphDiv(e),O7.init(e),Hr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=O7.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!Hr.isPlotDiv(e)&&Hr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Ut.addFrames(e,n)}aR(e,a),t||(t={}),Lg.select(e).classed("js-plotly-plot",!0),Fg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(pn.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=pn.cleanLayout(t)),gt.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(R0e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Fg.initGradients(e),Fg.initPatterns(e),s&&ki.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&>.doCalcdata(e);for(var h=0;h<e.calcdata.length;h++)e.calcdata[h][0].trace=e._fullData[h];if(e._context.responsive){if(!e._clearResponsive){let E=()=>{Hr.isHidden(e)||gt.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",E),e._clearResponsive=()=>window.removeEventListener("resize",E);else{let P=e.offsetWidth,z=e.offsetHeight,B=new ResizeObserver(()=>{let X=e.offsetWidth,I=e.offsetHeight,V=Math.abs(X-P)>1||Math.abs(I-z)>1;P=X,z=I,V&&X&&I&&E()});B.observe(e),e._clearResponsive=()=>B.disconnect()}}}else Hr.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(E=>E.status!=="loaded"):[];var m=Hr.extendFlat({},u._size),p=0;function y(){for(var E=u._basePlotModules,P=0;P<E.length;P++)E[P].drawFramework&&E[P].drawFramework(e);!u._glcanvas&&u._has("gl")&&(u._glcanvas=u._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(I){return I.key}),u._glcanvas.enter().append("canvas").attr("class",function(I){return"gl-canvas gl-canvas-"+I.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var z=e._context.plotGlPixelRatio;if(u._glcanvas){u._glcanvas.attr("width",u.width*z).attr("height",u.height*z).style("width",u.width+"px").style("height",u.height+"px");var B=u._glcanvas.data()[0].regl;if(B&&(Math.floor(u.width*z)!==B._gl.drawingBufferWidth||Math.floor(u.height*z)!==B._gl.drawingBufferHeight)){var X="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(p)Hr.error(X);else return Hr.log(X+" Clearing graph and plotting again."),gt.cleanPlot([],{},e._fullData,u),gt.supplyDefaults(e),u=e._fullLayout,gt.doCalcdata(e),p++,y()}}return u.modebar.orientation==="h"?u._modebardiv.style("height",null).style("width","100%"):u._modebardiv.style("width",null).style("height",u.height+"px"),gt.previousPromises(e)}function b(){if(gt.clearAutoMarginIds(e),sa.drawMarginPushers(e),ki.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&>.allowAutoMargin(e,"title.automargin"),u._has("pie"))for(var E=e._fullData,P=0;P<E.length;P++){var z=E[P];z.type==="pie"&&z.automargin&>.allowAutoMargin(e,"pie."+z.uid+".automargin")}return gt.doAutoMargin(e),gt.previousPromises(e)}function C(){if(gt.didMarginChange(m,u._size))return Hr.syncOrAsync([b,sa.layoutStyles],e)}function x(){if(!c){_();return}return Hr.syncOrAsync([al.getComponentMethod("shapes","calcAutorange"),al.getComponentMethod("annotations","calcAutorange"),_],e)}function _(){e._transitioning||(sa.doAutoRangeAndConstraints(e),s&&ki.saveRangeInitial(e),al.getComponentMethod("rangeslider","calcAutorange")(e))}function M(){return ki.draw(e,s?"":"redraw")}var T=[gt.previousPromises,l,y,b,C];f&&T.push(x),T.push(sa.layoutStyles),f&&T.push(M,function(P){var z=P._fullLayout._insideTickLabelsUpdaterange;if(z)return P._fullLayout._insideTickLabelsUpdaterange=void 0,qh(P,z).then(function(){ki.saveRangeInitial(P,!0)})}),T.push(sa.drawData,sa.finalDraw,l0e,gt.rehover,gt.redrag,gt.reselect,gt.doAutoMargin,gt.previousPromises);var A=Hr.syncOrAsync(T,e);return(!A||!A.then)&&(A=Promise.resolve()),A.then(function(){return v0e(e,d),Ph(e),e})}function v0e(e,r){return P_(this,null,function*(){let t=r.filter(n=>["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,Fg.savedBBoxes={},Ut._doPlot(e))})}function Ph(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function h0e(e){return Hr.extendFlat(rR,e)}function tR(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){Hr.error(t)}}function d0e(e,r){var t=o0e.combine(r,"white");tR(e,t)}function aR(e,r){if(!e._context){e._context=Hr.extendDeep({},rR);var t=Lg.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,o;if(r){for(i=Object.keys(r),n=0;n<i.length;n++)o=i[n],!(o==="editable"||o==="edits")&&o in a&&(o==="setBackground"&&r[o]==="opaque"?a[o]=d0e:a[o]=r[o]);var l=r.editable;if(l!==void 0)for(a.editable=l,i=Object.keys(a.edits),n=0;n<i.length;n++)a.edits[i[n]]=l;if(r.edits)for(i=Object.keys(r.edits),n=0;n<i.length;n++)o=i[n],o in a.edits&&(a.edits[o]=r.edits[o]);a._exportedPlot=r._exportedPlot}a.staticPlot&&(a.editable=!1,a.edits={},a.autosizable=!1,a.scrollZoom=!1,a.doubleClick=!1,a.showTips=!1,a.displayModeBar=!1),a.displayModeBar==="hover"&&!a0e&&(a.displayModeBar=!0),(a.setBackground==="transparent"||typeof a.setBackground!="function")&&(a.setBackground=tR),a._hasZeroHeight=a._hasZeroHeight||e.clientHeight===0,a._hasZeroWidth=a._hasZeroWidth||e.clientWidth===0;var s=a.scrollZoom,u=a._scrollZoom={};if(s===!0)u.cartesian=1,u.gl3d=1,u.geo=1,u.map=1;else if(typeof s=="string"){var f=s.split("+");for(n=0;n<f.length;n++)u[f[n]]=1}else s!==!1&&(u.gl3d=1,u.geo=1,u.map=1)}function p0e(e){if(e=Hr.getGraphDiv(e),!Hr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return pn.cleanData(e.data),pn.cleanLayout(e.layout),e.calcdata=void 0,Ut._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function m0e(e,r,t,a){return e=Hr.getGraphDiv(e),gt.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),gt.purge(e),Ut._doPlot(e,r,t,a)}function qg(e,r){var t=r+1,a=[],n,i;for(n=0;n<e.length;n++)i=e[n],i<0?a.push(t+i):a.push(i);return a}function Pg(e,r,t){var a,n;for(a=0;a<r.length;a++){if(n=r[a],n!==parseInt(n,10))throw new Error("all values in "+t+" must be integers");if(n>=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function nR(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Pg(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Pg(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function g0e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a<r.length;a++)if(n=r[a],typeof n!="object"||Array.isArray(n)||n===null)throw new Error("all values in traces array must be non-array objects");if(typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&t.length!==r.length)throw new Error("if indices is specified, traces.length must equal indices.length")}function y0e(e,r,t,a){var n=Hr.isPlainObject(a);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!Hr.isPlainObject(r))throw new Error("update must be a key:value object");if(typeof t=="undefined")throw new Error("indices must be an integer or array of integers");Pg(e,t,"indices");for(var i in r){if(!Array.isArray(r[i])||r[i].length!==t.length)throw new Error("attribute "+i+" must be an array of length equal to indices array length");if(n&&(!(i in a)||!Array.isArray(a[i])||a[i].length!==r[i].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object")}}function b0e(e,r,t,a){var n=Hr.isPlainObject(a),i=[],o,l,s,u,f;Array.isArray(t)||(t=[t]),t=qg(t,e.data.length-1);for(var c in r)for(var h=0;h<t.length;h++){if(o=e.data[t[h]],s=Ca(o,c),l=s.get(),u=r[c][h],!Hr.isArrayOrTypedArray(u))throw new Error("attribute: "+c+" index: "+h+" must be an array");if(!Hr.isArrayOrTypedArray(l))throw new Error("cannot extend missing or non-array attribute: "+c);if(l.constructor!==u.constructor)throw new Error("cannot extend array with an array of a different type: "+c);f=n?a[c][h]:a,t0e(f)||(f=-1),i.push({prop:s,target:l,insert:u,maxp:Math.floor(f)})}return i}function iR(e,r,t,a,n){y0e(e,r,t,a);for(var i=b0e(e,r,t,a),o={},l={},s=0;s<i.length;s++){var u=i[s].prop,f=i[s].maxp,c=n(i[s].target,i[s].insert,f);u.set(c[0]),Array.isArray(o[u.astr])||(o[u.astr]=[]),o[u.astr].push(c[1]),Array.isArray(l[u.astr])||(l[u.astr]=[]),l[u.astr].push(i[s].target.length)}return{update:o,maxPoints:l}}function oR(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function lR(e,r,t,a){e=Hr.getGraphDiv(e);function n(s,u,f){var c,h;if(Hr.isTypedArray(s))if(f<0){var d=new s.constructor(0),m=oR(s,u);f<0?(c=m,h=d):(c=d,h=m)}else if(c=new s.constructor(f),h=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),h.set(s);else if(f<u.length){var p=u.length-f;c.set(u.subarray(p)),h.set(s),h.set(u.subarray(0,p),s.length)}else{var y=f-u.length,b=s.length-y;c.set(s.subarray(b)),c.set(u,y),h.set(s.subarray(0,b))}else c=s.concat(u),h=f>=0&&f<c.length?c.splice(0,c.length-f):[];return[c,h]}var i=iR(e,r,t,a,n),o=Ut.redraw(e),l=[e,i.update,t,i.maxPoints];return zi.add(e,Ut.prependTraces,l,lR,arguments),o}function sR(e,r,t,a){e=Hr.getGraphDiv(e);function n(s,u,f){var c,h;if(Hr.isTypedArray(s))if(f<=0){var d=new s.constructor(0),m=oR(u,s);f<0?(c=m,h=d):(c=d,h=m)}else if(c=new s.constructor(f),h=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),h.set(s);else if(f<u.length){var p=u.length-f;c.set(u.subarray(0,p)),h.set(u.subarray(p)),h.set(s,p)}else{var y=f-u.length;c.set(u),c.set(s.subarray(0,y),u.length),h.set(s.subarray(y))}else c=u.concat(s),h=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,h]}var i=iR(e,r,t,a,n),o=Ut.redraw(e),l=[e,i.update,t,i.maxPoints];return zi.add(e,Ut.extendTraces,l,sR,arguments),o}function uR(e,r,t){e=Hr.getGraphDiv(e);var a=[],n=Ut.deleteTraces,i=uR,o=[e,a],l=[e,r],s,u;for(g0e(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return Hr.extendFlat({},f)}),pn.cleanData(r),s=0;s<r.length;s++)e.data.push(r[s]);for(s=0;s<r.length;s++)a.push(-r.length+s);if(typeof t=="undefined")return u=Ut.redraw(e),zi.add(e,n,o,i,l),u;Array.isArray(t)||(t=[t]);try{nR(e,a,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return zi.startSequence(e),zi.add(e,n,o,i,l),u=Ut.moveTraces(e,a,t),zi.stopSequence(e),u}function fR(e,r){e=Hr.getGraphDiv(e);var t=[],a=Ut.addTraces,n=fR,i=[e,t,r],o=[e,r],l,s;if(typeof r=="undefined")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),Pg(e,r,"indices"),r=qg(r,e.data.length-1),r.sort(Hr.sorterDes),l=0;l<r.length;l+=1)s=e.data.splice(r[l],1)[0],t.push(s);var u=Ut.redraw(e);return zi.add(e,a,i,n,o),u}function U7(e,r,t){e=Hr.getGraphDiv(e);var a=[],n=[],i=U7,o=U7,l=[e,t,r],s=[e,r,t],u;if(nR(e,r,t),r=Array.isArray(r)?r:[r],typeof t=="undefined")for(t=[],u=0;u<r.length;u++)t.push(-r.length+u);for(t=Array.isArray(t)?t:[t],r=qg(r,e.data.length-1),t=qg(t,e.data.length-1),u=0;u<e.data.length;u++)r.indexOf(u)===-1&&a.push(e.data[u]);for(u=0;u<r.length;u++)n.push({newIndex:t[u],trace:e.data[r[u]]});for(n.sort(function(c,h){return c.newIndex-h.newIndex}),u=0;u<n.length;u+=1)a.splice(n[u].newIndex,0,n[u].trace);e.data=a;var f=Ut.redraw(e);return zi.add(e,i,l,o,s),f}function Rg(e,r,t,a){e=Hr.getGraphDiv(e),pn.clearPromiseQueue(e);var n={};if(typeof r=="string")n[r]=t;else if(Hr.isPlainObject(r))n=Hr.extendFlat({},r),a===void 0&&(a=t);else return Hr.warn("Restyle fail.",r,t,a),Promise.reject();Object.keys(n).length&&(e.changed=!0);var i=pn.coerceTraceIndices(e,a),o=cR(e,n,i),l=o.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&pn.clearAxisTypes(e,i,{});var s=[];l.fullReplot?s.push(Ut._doPlot):(s.push(gt.previousPromises),gt.supplyDefaults(e),l.markerSize&&(gt.doCalcdata(e),Hg(s)),l.style&&s.push(sa.doTraceStyle),l.colorbars&&s.push(sa.doColorBars),s.push(Ph)),s.push(gt.rehover,gt.redrag,gt.reselect),zi.add(e,Rg,[e,o.undoit,o.traces],Rg,[e,o.redoit,o.traces]);var u=Hr.syncOrAsync(s,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e.emit("plotly_restyle",o.eventData),e})}function Hu(e){return e===void 0?null:e}function Eg(e,r){return r?function(t,a,n){var i=Ca(t,a),o=i.set;return i.set=function(l){var s=(n||"")+a;zg(s,i.get(),l,e),o(l)},i}:Ca}function zg(e,r,t,a){if(Array.isArray(r)||Array.isArray(t))for(var n=Array.isArray(r)?r:[],i=Array.isArray(t)?t:[],o=Math.max(n.length,i.length),l=0;l<o;l++)zg(e+"["+l+"]",n[l],i[l],a);else if(Hr.isPlainObject(r)||Hr.isPlainObject(t)){var s=Hr.isPlainObject(r)?r:{},u=Hr.isPlainObject(t)?t:{},f=Hr.extendFlat({},s,u);for(var c in f)zg(e+"."+c,s[c],u[c],a)}else a[e]===void 0&&(a[e]=Hu(r))}function _0e(e,r,t){for(var a in t){var n=Ca(e,a);zg(a,n.get(),t[a],r)}}function cR(e,r,t){var a=e._fullLayout,n=e._fullData,i=e.data,o=a._guiEditing,l=Eg(a._preGUI,o),s=Hr.extendDeepAll({},r),u,f=U0.traceFlags(),c={},h={},d;function m(){return t.map(function(){})}function p(K){var J=ki.id2name(K);d.indexOf(J)===-1&&d.push(J)}function y(K){return"LAYOUT"+K+".autorange"}function b(K){return"LAYOUT"+K+".range"}function C(K,J,ue){if(Array.isArray(K)){K.forEach(function(ar){C(ar,J,ue)});return}if(!(K in r||pn.hasParent(r,K))){var _e;if(K.slice(0,6)==="LAYOUT")_e=l(e.layout,K.replace("LAYOUT",""));else{var Ne=t[ue],Je=a._tracePreGUI[n[Ne].uid];_e=Eg(Je,o)(i[Ne],K)}K in h||(h[K]=m()),h[K][ue]===void 0&&(h[K][ue]=Hu(_e.get())),J!==void 0&&_e.set(J)}}function x(K){return function(J){return n[J][K]}}function _(K){return function(J,ue){return J===!1?n[t[ue]][K]:null}}for(var M in r){if(pn.hasParent(r,M))throw new Error("cannot set "+M+" and a parent attribute simultaneously");var T=r[M],A,E,P,z,B,X;if((M==="autobinx"||M==="autobiny")&&(M=M.charAt(M.length-1)+"bins",Array.isArray(T)?T=T.map(_(M)):T===!1?T=t.map(x(M)):T=null),c[M]=T,M.slice(0,6)==="LAYOUT"){P=l(e.layout,M.replace("LAYOUT","")),h[M]=[Hu(P.get())],P.set(Array.isArray(T)?T[0]:T),f.calc=!0;continue}for(h[M]=m(),u=0;u<t.length;u++){A=i[t[u]],E=n[t[u]];var I=a._tracePreGUI[E.uid];if(P=Eg(I,o)(A,M),z=P.get(),B=Array.isArray(T)?T[u%T.length]:T,B!==void 0){var V=P.parts[P.parts.length-1],H=M.slice(0,M.length-V.length-1),Q=H?H+".":"",oe=H?Ca(E,H).get():E;if(X=Ig.getTraceValObject(E,P.parts),X&&X.impliedEdits&&B!==null)for(var re in X.impliedEdits)C(Hr.relativeAttr(M,re),X.impliedEdits[re],u);else if((V==="thicknessmode"||V==="lenmode")&&z!==B&&(B==="fraction"||B==="pixels")&&oe){var te=a._size,ie=oe.orient,ce=ie==="top"||ie==="bottom";if(V==="thicknessmode"){var Me=ce?te.h:te.w;C(Q+"thickness",oe.thickness*(B==="fraction"?1/Me:Me),u)}else{var De=ce?te.w:te.h;C(Q+"len",oe.len*(B==="fraction"?1/De:De),u)}}else if(M==="type"&&(B==="pie"!=(z==="pie")||B==="funnelarea"!=(z==="funnelarea"))){var Ie="x",Ue="y";(B==="bar"||z==="bar")&&A.orientation==="h"&&(Ie="y",Ue="x"),Hr.swapAttrs(A,["?"],"labels",Ie),Hr.swapAttrs(A,["d?","?0"],"label",Ie),Hr.swapAttrs(A,["?"],"values",Ue),z==="pie"||z==="funnelarea"?(Ca(A,"marker.color").set(Ca(A,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):al.traceIs(A,"cartesian")&&Ca(A,"marker.colors").set(Ca(A,"marker.color").get())}h[M][u]=Hu(z);var ke=["swapxy","swapxyaxes","orientation","orientationaxes"];if(ke.indexOf(M)!==-1){if(M==="orientation"){P.set(B);var je=A.x&&!A.y?"h":"v";if((P.get()||je)===E.orientation)continue}else M==="orientationaxes"&&(A.orientation={v:"h",h:"v"}[E.orientation]);pn.swapXYData(A),f.calc=f.clearAxisTypes=!0}else gt.dataArrayContainers.indexOf(P.parts[0])!==-1?(pn.manageArrayContainers(P,B,h),f.calc=!0):(X?X.arrayOk&&!al.traceIs(E,"regl")&&(Hr.isArrayOrTypedArray(B)||Hr.isArrayOrTypedArray(z))?f.calc=!0:U0.update(f,X):f.calc=!0,P.set(B))}}if(["swapxyaxes","orientationaxes"].indexOf(M)!==-1&&ki.swap(e,t),M==="orientationaxes"){var W=Ca(e.layout,"hovermode"),ee=W.get();ee==="x"?W.set("y"):ee==="y"?W.set("x"):ee==="x unified"?W.set("y unified"):ee==="y unified"&&W.set("x unified")}if(["orientation","type"].indexOf(M)!==-1){for(d=[],u=0;u<t.length;u++){var me=i[t[u]];al.traceIs(me,"cartesian")&&(p(me.xaxis||"x"),p(me.yaxis||"y"))}C(d.map(y),!0,0),C(d.map(b),[0,1],0)}}return(f.calc||f.plot)&&(f.fullReplot=!0),{flags:f,undoit:h,redoit:c,traces:t,eventData:Hr.extendDeepNoArrays([],[s,t])}}function qh(e,r,t){e=Hr.getGraphDiv(e),pn.clearPromiseQueue(e);var a={};if(typeof r=="string")a[r]=t;else if(Hr.isPlainObject(r))a=Hr.extendFlat({},r);else return Hr.warn("Relayout fail.",r,t),Promise.reject();Object.keys(a).length&&(e.changed=!0);var n=pR(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var o=[gt.previousPromises];i.layoutReplot?o.push(sa.layoutReplot):Object.keys(a).length&&(vR(e,i,n)||gt.supplyDefaults(e),i.legend&&o.push(sa.doLegend),i.layoutstyle&&o.push(sa.layoutStyles),i.axrange&&Hg(o,n.rangesAltered),i.ticks&&o.push(sa.doTicksRelayout),i.modebar&&o.push(sa.doModeBar),i.camera&&o.push(sa.doCamera),i.colorbars&&o.push(sa.doColorBars),o.push(Ph)),o.push(gt.rehover,gt.redrag,gt.reselect),zi.add(e,qh,[e,n.undoit],qh,[e,n.redoit]);var l=Hr.syncOrAsync(o,e);return(!l||!l.then)&&(l=Promise.resolve(e)),l.then(function(){return e.emit("plotly_relayout",n.eventData),e})}function vR(e,r,t){var a=e._fullLayout;if(!r.axrange)return!1;for(var n in r)if(n!=="axrange"&&r[n])return!1;var i,o,l=function(d,m){return Hr.coerce(i,o,i0e,d,m)},s={};for(var u in t.rangesAltered){var f=ki.id2name(u);if(i=e.layout[f],o=a[f],n0e(i,o,l,s),o._matchGroup){for(var c in o._matchGroup)if(c!==u){var h=a[ki.id2name(c)];h.autorange=o.autorange,h.range=o.range.slice(),h._input.range=o.range.slice()}}}return!0}function Hg(e,r){var t=r?function(a){var n=[],i=!0;for(var o in r){var l=ki.getFromId(a,o);if(n.push(o),(l.ticklabelposition||"").indexOf("inside")!==-1&&l._anchorAxis&&n.push(l._anchorAxis._id),l._matchGroup)for(var s in l._matchGroup)r[s]||n.push(s)}return ki.draw(a,n,{skipTitle:i})}:function(a){return ki.draw(a,"redraw")};e.push(u0e,sa.doAutoRangeAndConstraints,t,sa.drawData,sa.finalDraw)}var hR=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,dR=/^[xyz]axis[0-9]*\.autorange$/,x0e=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function pR(e,r){var t=e.layout,a=e._fullLayout,n=a._guiEditing,i=Eg(a._preGUI,n),o=Object.keys(r),l=ki.list(e),s=Hr.extendDeepAll({},r),u={},f,c,h;for(o=Object.keys(r),c=0;c<o.length;c++)if(o[c].indexOf("allaxes")===0){for(h=0;h<l.length;h++){var d=l[h]._id.slice(1),m=d.indexOf("scene")!==-1?d+".":"",p=o[c].replace("allaxes",m+l[h]._name);r[p]||(r[p]=r[o[c]])}delete r[o[c]]}var y=U0.layoutFlags(),b={},C={};function x(ar,tr){if(Array.isArray(ar)){ar.forEach(function(Re){x(Re,tr)});return}if(!(ar in r||pn.hasParent(r,ar))){var fr=i(t,ar);ar in C||(C[ar]=Hu(fr.get())),tr!==void 0&&fr.set(tr)}}var _={},M;function T(ar){var tr=ki.name2id(ar.split(".")[0]);return _[tr]=1,tr}for(var A in r){if(pn.hasParent(r,A))throw new Error("cannot set "+A+" and a parent attribute simultaneously");for(var E=i(t,A),P=r[A],z=E.parts.length,B=z-1;B>0&&typeof E.parts[B]!="string";)B--;var X=E.parts[B],I=E.parts[B-1]+"."+X,V=E.parts.slice(0,B).join("."),H=Ca(e.layout,V).get(),Q=Ca(a,V).get(),oe=E.get();if(P!==void 0){b[A]=P,C[A]=X==="reverse"?P:Hu(oe);var re=Ig.getLayoutValObject(a,E.parts);if(re&&re.impliedEdits&&P!==null)for(var te in re.impliedEdits)x(Hr.relativeAttr(A,te),re.impliedEdits[te]);if(["width","height"].indexOf(A)!==-1)if(P){x("autosize",null);var ie=A==="height"?"width":"height";x(ie,a[ie])}else a[A]=e._initialAutoSize[A];else if(A==="autosize")x("width",P?null:a.width),x("height",P?null:a.height);else if(I.match(hR))T(I),Ca(a,V+"._inputRange").set(null);else if(I.match(dR)){T(I),Ca(a,V+"._inputRange").set(null);var ce=Ca(a,V).get();ce._inputDomain&&(ce._input.domain=ce._inputDomain.slice())}else I.match(x0e)&&Ca(a,V+"._inputDomain").set(null);if(X==="type"){M=H;var Me=Q.type==="linear"&&P==="log",De=Q.type==="log"&&P==="linear";if(Me||De){if(!M||!M.range)x(V+".autorange",!0);else if(Q.autorange)Me&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var Ie=M.range[0],Ue=M.range[1];Me?(Ie<=0&&Ue<=0&&x(V+".autorange",!0),Ie<=0?Ie=Ue/1e6:Ue<=0&&(Ue=Ie/1e6),x(V+".range[0]",Math.log(Ie)/Math.LN10),x(V+".range[1]",Math.log(Ue)/Math.LN10)):(x(V+".range[0]",Math.pow(10,Ie)),x(V+".range[1]",Math.pow(10,Ue)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[E.parts[0]]&&E.parts[1]==="radialaxis"&&delete a[E.parts[0]]._subplot.viewInitial["radialaxis.range"],al.getComponentMethod("annotations","convertCoords")(e,Q,P,x),al.getComponentMethod("images","convertCoords")(e,Q,P,x)}else x(V+".autorange",!0),x(V+".range",null);Ca(a,V+"._inputRange").set(null)}else if(X.match(f0e)){var ke=Ca(a,A).get(),je=(P||{}).type;(!je||je==="-")&&(je="linear"),al.getComponentMethod("annotations","convertCoords")(e,ke,je,x),al.getComponentMethod("images","convertCoords")(e,ke,je,x)}var W=Dg.containerArrayMatch(A);if(W){f=W.array,c=W.index;var ee=W.property,me=re||{editType:"calc"};c!==""&&ee===""&&(Dg.isAddVal(P)?C[A]=null:Dg.isRemoveVal(P)?C[A]=(Ca(t,f).get()||[])[c]:Hr.warn("unrecognized full object value",r)),U0.update(y,me),u[f]||(u[f]={});var K=u[f][c];K||(K=u[f][c]={}),K[ee]=P,delete r[A]}else X==="reverse"?(H.range?H.range.reverse():(x(V+".autorange",!0),H.range=[1,0]),Q.autorange?y.calc=!0:y.plot=!0):(A==="dragmode"&&(P===!1&&oe!==!1||P!==!1&&oe===!1)||a._has("scatter-like")&&a._has("regl")&&A==="dragmode"&&(P==="lasso"||P==="select")&&!(oe==="lasso"||oe==="select")?y.plot=!0:re?U0.update(y,re):y.calc=!0,E.set(P))}}for(f in u){var J=Dg.applyContainerArrayChanges(e,i(t,f),u[f],y,i);J||(y.plot=!0)}for(var ue in _){M=ki.getFromId(e,ue);var _e=M&&M._constraintGroup;if(_e){y.calc=!0;for(var Ne in _e)_[Ne]||(ki.getFromId(e,Ne)._constraintShrinkable=!0)}}(mR(e)||r.height||r.width)&&(y.plot=!0);var Je=a.shapes;for(c=0;c<Je.length;c++)if(Je[c].showlegend){y.calc=!0;break}return(y.plot||y.calc)&&(y.layoutReplot=!0),{flags:y,rangesAltered:_,undoit:C,redoit:b,eventData:s}}function mR(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&>.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function Ng(e,r,t,a){e=Hr.getGraphDiv(e),pn.clearPromiseQueue(e),Hr.isPlainObject(r)||(r={}),Hr.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=pn.coerceTraceIndices(e,a),i=cR(e,Hr.extendFlat({},r),n),o=i.flags,l=pR(e,Hr.extendFlat({},t)),s=l.flags;(o.calc||s.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&pn.clearAxisTypes(e,n,t);var u=[];s.layoutReplot?u.push(sa.layoutReplot):o.fullReplot?u.push(Ut._doPlot):(u.push(gt.previousPromises),vR(e,s,l)||gt.supplyDefaults(e),o.style&&u.push(sa.doTraceStyle),(o.colorbars||s.colorbars)&&u.push(sa.doColorBars),s.legend&&u.push(sa.doLegend),s.layoutstyle&&u.push(sa.layoutStyles),s.axrange&&Hg(u,l.rangesAltered),s.ticks&&u.push(sa.doTicksRelayout),s.modebar&&u.push(sa.doModeBar),s.camera&&u.push(sa.doCamera),u.push(Ph)),u.push(gt.rehover,gt.redrag,gt.reselect),zi.add(e,Ng,[e,i.undoit,l.undoit,i.traces],Ng,[e,i.redoit,l.redoit,i.traces]);var f=Hr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve(e)),f.then(function(){return e.emit("plotly_update",{data:i.eventData,layout:l.eventData}),e})}function G7(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var w0e=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(map\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^selections/,attr:"selectionrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],A0e=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/^visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/^name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function KP(e,r){for(var t=0;t<r.length;t++){var a=r[t],n=e.match(a.pattern);if(n){var i=n[1]||"";return{head:i,tail:e.slice(i.length+1),attr:a.attr}}}}function QP(e,r){var t=Ca(r,e).get();if(t!==void 0)return t;var a=e.split(".");for(a.pop();a.length>1;)if(a.pop(),t=Ca(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function M0e(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function T0e(e,r,t){for(var a=0;a<r.length;a++)if(r[a].uid===e)return a;return!r[t]||r[t].uid?-1:t}function eR(e,r){var t=Hr.isPlainObject(e),a=Array.isArray(e);return t||a?(t&&Hr.isPlainObject(r)||a&&Array.isArray(r))&&JSON.stringify(e)===JSON.stringify(r):e===r}function k0e(e,r,t,a){var n=a._preGUI,i,o,l,s,u,f,c,h,d,m,p=[],y={},b={};for(i in n){if(u=KP(i,w0e),u){if(d=u.head,m=u.tail,o=u.attr||d+".uirevision",l=Ca(a,o).get(),s=l&&QP(o,r),s&&s===l){if(f=n[i],f===null&&(f=void 0),c=Ca(r,i),h=c.get(),eR(h,f)){h===void 0&&m==="autorange"&&p.push(d),c.set(Hu(Ca(a,i).get()));continue}else if(m==="autorange"||m.slice(0,6)==="range["){var C=n[d+".range[0]"],x=n[d+".range[1]"],_=n[d+".autorange"];if(_||_===null&&C===null&&x===null){if(!(d in y)){var M=Ca(r,d).get();y[d]=M&&(M.autorange||M.autorange!==!1&&(!M.range||M.range.length!==2))}if(y[d]){c.set(Hu(Ca(a,i).get()));continue}}}}}else Hr.warn("unrecognized GUI edit: "+i);delete n[i],u&&u.tail.slice(0,6)==="range["&&(b[u.head]=1)}for(var T=0;T<p.length;T++){var A=p[T];if(b[A]){var E=Ca(r,A).get();E&&delete E.autorange}}var P=a._tracePreGUI;for(var z in P){var B=P[z],X=null,I;for(i in B){if(!X){var V=M0e(z,t);if(V<0){delete P[z];break}I=t[V];var H=T0e(z,e,I.index);if(H<0){delete P[z];break}X=e[H]}if(u=KP(i,A0e),u){if(u.attr?(l=Ca(a,u.attr).get(),s=l&&QP(u.attr,r)):(l=I.uirevision,s=X.uirevision,s===void 0&&(s=r.uirevision)),s&&s===l&&(f=B[i],f===null&&(f=void 0),c=Ca(X,i),h=c.get(),eR(h,f))){c.set(Hu(Ca(I,i).get()));continue}}else Hr.warn("unrecognized GUI edit: "+i+" in trace uid "+z);delete B[i]}}}function C0e(e,r,t,a){var n,i;function o(){return Ut.addFrames(e,n)}e=Hr.getGraphDiv(e),pn.clearPromiseQueue(e);var l=e._fullData,s=e._fullLayout;if(!Hr.isPlotDiv(e)||!l||!s)i=Ut.newPlot(e,r,t,a);else{if(Hr.isPlainObject(r)){var u=r;r=u.data,t=u.layout,a=u.config,n=u.frames}var f=!1;if(a){let I=Hr.extendDeepAll({},e._context);e._context=void 0,aR(e,a),f=!pn.collectionsAreEqual(I,e._context)}if(f){let I=e._ev.eventNames().map(V=>[V,e._ev.listeners(V)]);i=Ut.newPlot(e,r,t,a).then(()=>{for(let[V,H]of I)H.forEach(Q=>e.on(V,Q));return Ut.react(e,r,t,a)})}else{e.data=r||[],pn.cleanData(e.data),e.layout=t||{},pn.cleanLayout(e.layout),k0e(e.data,e.layout,l,s),gt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,m=h.transition,p=D0e(e,s,h,d,m),y=p.newDataRevision,b=S0e(e,l,c,d,m,y);if(mR(e)&&(p.layoutReplot=!0),b.calc||p.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(h),x=0;x<C.length;x++){var _=C[x],M=_.substring(0,5);if(M==="xaxis"||M==="yaxis"){var T=h[_]._emptyCategories;T&&T()}}}else gt.supplyDefaultsUpdateCalc(e.calcdata,c);var A=[];if(n&&(e._transitionData={},gt.createTransitionData(e),A.push(o)),h.transition&&(b.anim||p.anim))p.ticks&&A.push(sa.doTicksRelayout),gt.doCalcdata(e),sa.doAutoRangeAndConstraints(e),A.push(function(){return gt.transitionFromReact(e,b,p,s)});else if(b.fullReplot||p.layoutReplot)e._fullLayout._skipDefaults=!0,A.push(Ut._doPlot);else{for(var E in p.arrays){var P=p.arrays[E];if(P.length){var z=al.getComponentMethod(E,"drawOne");if(z!==Hr.noop)for(var B=0;B<P.length;B++)z(e,P[B]);else{var X=al.getComponentMethod(E,"draw");if(X===Hr.noop)throw new Error("cannot draw components: "+E);X(e)}}}A.push(gt.previousPromises),b.style&&A.push(sa.doTraceStyle),(b.colorbars||p.colorbars)&&A.push(sa.doColorBars),p.legend&&A.push(sa.doLegend),p.layoutstyle&&A.push(sa.layoutStyles),p.axrange&&Hg(A),p.ticks&&A.push(sa.doTicksRelayout),p.modebar&&A.push(sa.doModeBar),p.camera&&A.push(sa.doCamera),A.push(Ph)}A.push(gt.rehover,gt.redrag,gt.reselect),i=Hr.syncOrAsync(A,e),(!i||!i.then)&&(i=Promise.resolve(e))}}return i.then(()=>(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function S0e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=U0.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var m=Ig.getTraceValObject(u,d);return!u._module.animatable&&m.anim&&(m.anim=!1),m}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(s=0;s<r.length;s++)if(t[s]){if(u=t[s],h[u.uid])continue;h[u.uid]=1,Bg(r[s],u,[],c)}return(l.calc||l.plot)&&(l.fullReplot=!0),n&&l.nChanges&&l.nChangesAnim&&(l.anim=l.nChanges===l.nChangesAnim&&o?"all":"some"),l}function D0e(e,r,t,a,n){var i=U0.layoutFlags();i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0;function o(h){return Ig.getLayoutValObject(t,h)}for(var l in t)if(!(!l.startsWith("xaxis")&&!l.startsWith("yaxis"))&&r[l]){var s=t[l].domain,u=r[l].domain,f=r[l]._inputDomain;r[l]._inputDomain&&(s[0]===f[0]&&s[1]===f[1]?t[l].domain=r[l].domain:(s[0]!==u[0]||s[1]!==u[1])&&(t[l]._inputDomain=null))}var c={getValObject:o,flags:i,immutable:a,transition:n,gd:e};return Bg(r,t,[],c),(i.plot||i.calc)&&(i.layoutReplot=!0),n&&i.nChanges&&i.nChangesAnim&&(i.anim=i.nChanges===i.nChangesAnim?"all":"some"),i}function Bg(e,r,t,a){var n,i,o,l=a.getValObject,s=a.flags,u=a.immutable,f=a.inArray,c=a.arrayIndex;function h(){var V=n.editType;if(f&&V.indexOf("arraydraw")!==-1){Hr.pushUnique(s.arrays[f],c);return}U0.update(s,n),V!=="none"&&s.nChanges++,a.transition&&n.anim&&s.nChangesAnim++,(hR.test(o)||dR.test(o))&&(s.rangesAltered[t[0]]=1),i==="datarevision"&&(s.newDataRevision=1)}function d(V){return V.valType==="data_array"||V.arrayOk}for(i in e){if(s.calc&&!a.transition)return;var m=e[i],p=r[i],y=t.concat(i);if(o=y.join("."),!(i.charAt(0)==="_"||typeof m=="function"||m===p)){if((i==="tick0"||i==="dtick")&&t[0]!=="geo"){var b=r.tickmode;if(b==="auto"||b==="array"||!b)continue}if(!(i==="range"&&r.autorange)&&!((i==="zmin"||i==="zmax")&&r.type==="contourcarpet")&&(n=l(y),!!n&&!(n._compareAsJSON&&JSON.stringify(m)===JSON.stringify(p)))){var C=n.valType,x,_=d(n),M=Array.isArray(m),T=Array.isArray(p);if(M&&T){var A="_input_"+i,E=e[A],P=r[A];if(Array.isArray(E)&&E===P)continue}if(p===void 0)_&&M?s.calc=!0:h();else if(n._isLinkedToArray){var z=[],B=!1;f||(s.arrays[i]=z);var X=Math.min(m.length,p.length),I=Math.max(m.length,p.length);if(X!==I)if(n.editType==="arraydraw")B=!0;else{h();continue}for(x=0;x<X;x++)Bg(m[x],p[x],y.concat(x),Hr.extendFlat({inArray:i,arrayIndex:x},a));if(B)for(x=X;x<I;x++)z.push(x)}else!C&&Hr.isPlainObject(m)?Bg(m,p,y,a):_?M&&T?(u&&(s.calc=!0),(u||a.newDataRevision)&&h()):M!==T?s.calc=!0:h():M&&T?(m.length!==p.length||String(m)!==String(p))&&h():h()}}}for(i in r)if(!(i in e||i.charAt(0)==="_"||typeof r[i]=="function"))if(n=l(t.concat(i)),d(n)&&Array.isArray(r[i])){s.calc=!0;return}else h()}function F0e(e,r,t){if(e=Hr.getGraphDiv(e),!Hr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var a=e._transitionData;a._frameQueue||(a._frameQueue=[]),t=gt.supplyAnimationDefaults(t);var n=t.transition,i=t.frame;a._frameWaitingCnt===void 0&&(a._frameWaitingCnt=0);function o(u){return Array.isArray(n)?u>=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var X=a._frameQueue.pop();X.onInterrupt&&X.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(X){if(X.length!==0){for(var I=0;I<X.length;I++){var V;X[I].type==="byname"?V=gt.computeFrame(e,X[I].name):V=X[I].data;var H=l(I),Q=o(I);Q.duration=Math.min(Q.duration,H.duration);var oe={frame:V,name:X[I].name,frameOpts:H,transitionOpts:Q};I===X.length-1&&(oe.onComplete=s(u,2),oe.onInterrupt=f),a._frameQueue.push(oe)}t.mode==="immediate"&&(a._lastFrameAt=-1/0),a._animationRaf||p()}}function d(){e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function m(){a._currentFrame&&a._currentFrame.onComplete&&a._currentFrame.onComplete();var X=a._currentFrame=a._frameQueue.shift();if(X){var I=X.name?X.name.toString():null;e._fullLayout._currentFrame=I,a._lastFrameAt=Date.now(),a._timeToNext=X.frameOpts.duration,gt.transition(e,X.frame.data,X.frame.layout,pn.coerceTraceIndices(e,X.frame.traces),X.frameOpts,X.transitionOpts).then(function(){X.onComplete&&X.onComplete()}),e.emit("plotly_animatingframe",{name:I,frame:X.frame,animation:{frame:X.frameOpts,transition:X.transitionOpts}})}else d()}function p(){e.emit("plotly_animating"),a._lastFrameAt=-1/0,a._timeToNext=0,a._runningTransitions=0,a._currentFrame=null;var X=function(){a._animationRaf=window.requestAnimationFrame(X),Date.now()-a._lastFrameAt>a._timeToNext&&m()};X()}var y=0;function b(X){return Array.isArray(n)?y>=n.length?X.transitionOpts=n[y]:X.transitionOpts=n[0]:X.transitionOpts=n,y++,X}var C,x,_=[],M=r==null,T=Array.isArray(r),A=!M&&!T&&Hr.isPlainObject(r);if(A)_.push({type:"object",data:b(Hr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(C=0;C<a._frames.length;C++)x=a._frames[C],x&&(M||String(x.group)===String(r))&&_.push({type:"byname",name:String(x.name),data:b({name:x.name})});else if(T)for(C=0;C<r.length;C++){var E=r[C];["number","string"].indexOf(typeof E)!==-1?(E=String(E),_.push({type:"byname",name:E,data:b({name:E})})):Hr.isPlainObject(E)&&_.push({type:"object",data:b(Hr.extendFlat({},E))})}for(C=0;C<_.length;C++)if(x=_[C],x.type==="byname"&&!a._frameHash[x.data.name]){Hr.warn('animate failure: frame not found: "'+x.data.name+'"'),f();return}["next","immediate"].indexOf(t.mode)!==-1&&c(),t.direction==="reverse"&&_.reverse();var P=e._fullLayout._currentFrame;if(P&&t.fromcurrent){var z=-1;for(C=0;C<_.length;C++)if(x=_[C],x.type==="byname"&&x.name===P){z=C;break}if(z>0&&z<_.length-1){var B=[];for(C=0;C<_.length;C++)x=_[C],(_[C].type!=="byname"||C>z)&&B.push(x);_=B}}_.length>0?h(_):(e.emit("plotly_animated"),u())})}function E0e(e,r,t){if(e=Hr.getGraphDiv(e),r==null)return Promise.resolve();if(!Hr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Hr.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||c[h]||{}).name,m=r[a].name,p=s[d]||c[d];d&&m&&typeof m=="number"&&p&&H7<JP&&(H7++,Hr.warn('addFrames: overwriting frame "'+(s[d]||c[d]).name+'" with a frame whose name of type "number" also equates to "'+d+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),H7===JP&&Hr.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),c[h]={name:h},f.push({frame:gt.supplyFrameDefaults(r[a]),index:t&&t[a]!==void 0&&t[a]!==null?t[a]:u+a})}f.sort(function(A,E){return A.index>E.index?-1:A.index<E.index?1:0});var y=[],b=[],C=l.length;for(a=f.length-1;a>=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Hr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i<l.length&&(l[i]||{}).name!==n.name;i++);y.push({type:"replace",index:i,value:n}),b.unshift({type:"replace",index:i,value:l[i]})}else o=Math.max(0,Math.min(f[a].index,C)),y.push({type:"insert",index:o,value:n}),b.unshift({type:"delete",index:o}),C++}var x=gt.modifyFrames,_=gt.modifyFrames,M=[e,b],T=[e,y];return zi&&zi.add(e,x,M,_,T),gt.modifyFrames(e,y)}function L0e(e,r){if(e=Hr.getGraphDiv(e),!Hr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var t,a,n=e._transitionData._frames,i=[],o=[];if(!r)for(r=[],t=0;t<n.length;t++)r.push(t);for(r=r.slice(),r.sort(),t=r.length-1;t>=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=gt.modifyFrames,s=gt.modifyFrames,u=[e,o],f=[e,i];return zi&&zi.add(e,l,u,s,f),gt.modifyFrames(e,i)}function q0e(e){e=Hr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return gt.cleanPlot([],{},t,r),gt.purge(e),O7.purge(e),r._container&&r._container.remove(),delete e._context,e}function P0e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Hr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Hr.inverseTransformMatrix(Hr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function R0e(e){var r=Lg.select(e),t=e._fullLayout;if(t._calcInverseTransform=P0e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Lg.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Hr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(s0e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Ut.animate=F0e;Ut.addFrames=E0e;Ut.deleteFrames=L0e;Ut.addTraces=uR;Ut.deleteTraces=fR;Ut.extendTraces=lR;Ut.moveTraces=U7;Ut.prependTraces=sR;Ut.newPlot=m0e;Ut._doPlot=c0e;Ut.purge=q0e;Ut.react=C0e;Ut.redraw=p0e;Ut.relayout=qh;Ut.restyle=Rg;Ut.setPlotConfig=h0e;Ut.update=Ng;Ut._guiRelayout=G7(qh);Ut._guiRestyle=G7(Rg);Ut._guiUpdate=G7(Ng);Ut._storeDirectGUIEdit=_0e});var _c=le(nl=>{"use strict";var z0e=_t();nl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};nl.getRedrawFunc=function(e){return function(){z0e.getComponentMethod("colorbar","draw")(e)}};nl.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};nl.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var gR=window.URL||window.webkitURL;nl.createObjectURL=function(e){return gR.createObjectURL(e)};nl.revokeObjectURL=function(e){return gR.revokeObjectURL(e)};nl.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=N0e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};nl.octetStream=function(e){document.location.href="data:application/octet-stream"+e};nl.getPlotTitle=function(e){var a,n,i,o;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(o=(i=e.layout)==null?void 0:i.title)==null?void 0:o.text};nl.getPlotSubtitle=function(e){var a,n,i,o,l,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(l=(o=e.layout)==null?void 0:o.title)==null?void 0:l.subtitle)==null?void 0:s.text};function N0e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n<r;n++)a[n]=e.charCodeAt(n);return t}nl.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var Og=le((x7e,yR)=>{"use strict";var X7=Ft(),b7e=mr(),B0e=ha(),I0e=qt(),_7e=(Kf(),Tr(Jf)),V7=/"/g,xc="TOBESTRIPPED",H0e=new RegExp(`("${xc})|(${xc}")|("${xc})|(${xc}")`,"g"),O0e=["&","&","&",""",""",""","'","'","'"],U0e=["<","<","<"],G0e=[">",">",">"];function Y0e(e){let r=X7.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return O0e.includes(n)?a:U0e.includes(n)?"<":G0e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function V0e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}yR.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(B0e.setRect,0,0,l,s).call(I0e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u<f.length;u++){var c=f[u];c.toSVG&&c.toSVG(r)}if(o){var h=o.node().childNodes,d=Array.prototype.slice.call(h);for(u=0;u<d.length;u++){var m=d[u];m.childNodes.length&&i.node().appendChild(m)}}n._draggers&&n._draggers.remove(),i.node().style.background="",i.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var y=X7.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){y.remove();return}else y.style({visibility:null,display:null});var b=this.style.fontFamily;b&&b.indexOf('"')!==-1&&y.style("font-family",b.replace(V7,xc));var C=this.style.fontWeight;C&&(C==="normal"||C==="400")&&y.style("font-weight",void 0);var x=this.style.fontStyle;x&&x==="normal"&&y.style("font-style",void 0);var _=this.style.fontVariant;_&&_==="normal"&&y.style("font-variant",void 0)}),i.selectAll(".gradient_filled,.pattern_filled").each(function(){var y=X7.select(this),b=this.style.fill;b&&b.indexOf("url(")!==-1&&y.style("fill",b.replace(V7,xc));var C=this.style.stroke;C&&C.indexOf("url(")!==-1&&y.style("stroke",C.replace(V7,xc))}),(t==="pdf"||t==="eps")&&i.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),t==="svg"&&a&&(i.attr("width",a*l),i.attr("height",a*s),i.attr("viewBox","0 0 "+l+" "+s));var p=new window.XMLSerializer().serializeToString(i.node());return p=Y0e(p),p=V0e(p),p=p.replace(H0e,"'"),p}});var Ug=le((w7e,bR)=>{"use strict";var X0e=mr(),j0e=zp().EventEmitter,Rh=_c();function W0e(e){var r=e.emitter||new j0e,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,h=u*f,d=u*c,m=s.getContext("2d",{willReadFrequently:!0}),p=new i,y,b;l==="svg"||X0e.isSafari()?b=Rh.encodeSVG(o):(y=Rh.createBlob(o,"svg"),b=Rh.createObjectURL(y)),s.width=h,s.height=d,p.onload=function(){var C;switch(y=null,Rh.revokeObjectURL(b),l!=="svg"&&m.drawImage(p,0,0,h,d),l){case"jpeg":C=s.toDataURL("image/jpeg");break;case"png":C=s.toDataURL("image/png");break;case"webp":C=s.toDataURL("image/webp");break;case"svg":C=b;break;default:var x="Image format is not jpeg, png, svg or webp.";if(n(new Error(x)),!e.promise)return r.emit("error",x)}a(C),e.promise||r.emit("success",C)},p.onerror=function(C){if(y=null,Rh.revokeObjectURL(b),n(C),!e.promise)return r.emit("error",C)},p.src=b});return e.promise?t:r}bR.exports=W0e});var W7=le((A7e,wR)=>{"use strict";var _R=Wt(),xR=Y7(),Z0e=Sn(),Gs=mr(),zh=_c(),$0e=Og(),J0e=Ug(),K0e=Q2().version,j7=(a5(),Tr(t5)).default;function Q0e(e,r){r=r||{};var t,a,n,i;Gs.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Gs.getGraphDiv(e),t=Gs.extendDeep([],e.data),a=Gs.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(T){return!(T in r)||Gs.validate(r[T],j7[T])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Gs.join2(j7.format.values,", "," or ")+".");var l={};function s(T,A){return Gs.coerce(r,l,j7,T,A)}var u=s("format"),f=s("width"),c=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),p=document.createElement("div");p.style.position="absolute",p.style.left="-5000px",document.body.appendChild(p);var y=Gs.extendFlat({},a);f?y.width=f:r.width===null&&_R(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&_R(i.height)&&(y.height=i.height);var b=Gs.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=zh.getRedrawFunc(p);function x(){return new Promise(function(T){setTimeout(T,zh.getDelay(p._fullLayout))})}function _(){return new Promise(function(T,A){var E=$0e(p,u,h),P=p._fullLayout.width,z=p._fullLayout.height;function B(){xR.purge(p),document.body.removeChild(p)}if(u==="full-json"){var X=Z0e.graphJson(p,!1,"object",!0,!0);return X.version=K0e,X=JSON.stringify(X),B(),T(m?X:zh.encodeJSON(X))}if(B(),u==="svg")return T(m?E:zh.encodeSVG(E));var I=document.createElement("canvas");I.id=Gs.randstr(),J0e({format:u,width:P,height:z,scale:h,canvas:I,svg:E,promise:!0}).then(T).catch(A)})}function M(T){return m?T.replace(zh.IMAGE_URL_PREFIX,""):T}return new Promise(function(T,A){xR.newPlot(p,t,y,b).then(C).then(x).then(_).then(function(E){T(M(E))}).catch(function(E){A(E)})})}wR.exports=Q0e});var TR=le((M7e,MR)=>{"use strict";var il=mr(),efe=Sn(),rfe=I1(),tfe=d0().dfltConfig,jl=il.isPlainObject,Ac=Array.isArray,Z7=il.isArrayOrTypedArray;MR.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=rfe.get(),n=[],i={_context:il.extendFlat({},tfe)},o,l;Ac(r)?(i.data=il.extendDeep([],r),o=r):(i.data=[],o=[],n.push(On("array","data"))),jl(t)?(i.layout=il.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(On("object","layout"))),efe.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;f<u;f++){var c=o[f],h=["data",f];if(!jl(c)){n.push(On("object",h));continue}var d=s[f],m=d.type,p=a.traces[m].attributes;p.type={valType:"enumerated",values:[m]},d.visible===!1&&c.visible!==!1&&n.push(On("invisible",h)),Gg(c,d,p,n,h)}var y=i._fullLayout,b=afe(a,s);return Gg(l,y,b,n,"layout"),n.length===0?void 0:n};function Gg(e,r,t,a,n,i){i=i||[];for(var o=Object.keys(e),l=0;l<o.length;l++){var s=o[l],u=i.slice();u.push(s);var f=e[s],c=r[s],h=ofe(t,s),d=(h||{}).valType,m=d==="info_array",p=d==="colorscale",y=(h||{}).items;if(!ife(t,s))a.push(On("schema",n,u));else if(jl(f)&&jl(c)&&d!=="any")Gg(f,c,h,a,n,u);else if(m&&Ac(f)){f.length>c.length&&a.push(On("unused",n,u.concat(c.length)));var b=c.length,C=Array.isArray(y);C&&(b=Math.min(b,y.length));var x,_,M,T,A;if(h.dimensions===2)for(_=0;_<b;_++)if(Ac(f[_])){f[_].length>c[_].length&&a.push(On("unused",n,u.concat(_,c[_].length)));var E=c[_].length;for(x=0;x<(C?Math.min(E,y[_].length):E);x++)M=C?y[_][x]:y,T=f[_][x],A=c[_][x],il.validate(T,M)?A!==T&&A!==+T&&a.push(On("dynamic",n,u.concat(_,x),T,A)):a.push(On("value",n,u.concat(_,x),T))}else a.push(On("array",n,u.concat(_),f[_]));else for(_=0;_<b;_++)M=C?y[_]:y,T=f[_],A=c[_],il.validate(T,M)?A!==T&&A!==+T&&a.push(On("dynamic",n,u.concat(_),T,A)):a.push(On("value",n,u.concat(_),T))}else if(h.items&&!m&&Ac(f)){var P=y[Object.keys(y)[0]],z=[],B,X;for(B=0;B<c.length;B++){var I=c[B]._index||B;if(X=u.slice(),X.push(I),jl(f[I])&&jl(c[B])){z.push(I);var V=f[I],H=c[B];jl(V)&&V.visible!==!1&&H.visible===!1?a.push(On("invisible",n,X)):Gg(V,H,P,a,n,X)}}for(B=0;B<f.length;B++)X=u.slice(),X.push(B),jl(f[B])?z.indexOf(B)===-1&&a.push(On("unused",n,X)):a.push(On("object",n,X,f[B]))}else!jl(f)&&jl(c)?a.push(On("object",n,u,f)):!Z7(f)&&Z7(c)&&!m&&!p?a.push(On("array",n,u,f)):s in r?il.validate(f,h)?h.valType==="enumerated"&&(h.coerceNumber&&f!==+c||!Z7(f)&&f!==c||String(f)!==String(c))&&a.push(On("dynamic",n,u,f,c)):a.push(On("value",n,u,f)):a.push(On("unused",n,u,f))}return a}function afe(e,r){for(var t=e.layout.layoutAttributes,a=0;a<r.length;a++){var n=r[a],i=e.traces[n.type],o=i.layoutAttributes;o&&(n.subplot?il.extendFlat(t[i.attributes.subplot.dflt],o):il.extendFlat(t,o))}return t}var nfe={object:function(e,r){var t;return e==="layout"&&r===""?t="The layout argument":e[0]==="data"&&r===""?t="Trace "+e[1]+" in the data argument":t=wc(e)+"key "+r,t+" must be linked to an object container"},array:function(e,r){var t;return e==="data"?t="The data argument":t=wc(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return wc(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var a=jl(t)?"container":"key";return wc(e)+a+" "+r+" did not get coerced"},dynamic:function(e,r,t,a){return[wc(e)+"key",r,"(set to '"+t+"')","got reset to","'"+a+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?wc(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[wc(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function wc(e){return Ac(e)?"In data trace "+e[1]+", ":"In "+e+", "}function On(e,r,t,a,n){t=t||"";var i,o;Ac(r)?(i=r[0],o=r[1]):(i=r,o=null);var l=sfe(t),s=nfe[e](r,l,a,n);return il.log(s),{code:e,container:i,trace:o,path:t,astr:l,msg:s}}function ife(e,r){var t=AR(r),a=t.keyMinusId,n=t.id;return a in e&&e[a]._isSubplotObj&&n?!0:r in e}function ofe(e,r){if(r in e)return e[r];var t=AR(r);return e[t.keyMinusId]}var lfe=il.counterRegex("([a-z]+)");function AR(e){var r=e.match(lfe);return{keyMinusId:r&&r[1],id:r&&r[2]}}function sfe(e){if(!Ac(e))return String(e);for(var r="",t=0;t<e.length;t++){var a=e[t];typeof a=="number"?r=r.slice(0,-1)+"["+a+"]":r+=a,t<e.length-1&&(r+=".")}return r}});var CR=le((T7e,kR)=>{"use strict";var ufe=mr(),Yg=_c();function ffe(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=Yg.createBlob(e,t),u=Yg.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Yg.revokeObjectURL(u),s=null,o(r);if(ufe.isSafari()){var f=t==="svg"?",":";base64,";return Yg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}kR.exports=ffe});var $7=le((k7e,ER)=>{"use strict";var Vg=mr(),SR=si(),cfe=W7(),vfe=CR(),DR=_c(),FR=40;function hfe(e,r){var t;return Vg.isPlainObject(e)||(t=Vg.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=cfe(e,r),o=r.filename||e.fn;if(!o){let s=DR.getPlotTitle(e);if(s&&!SR.matchTex(s))o=Vg.slugify(s,FR);else{let u=DR.getPlotSubtitle(e);u&&!SR.matchTex(u)&&(o=Vg.slugify(u,FR))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),vfe(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}ER.exports=hfe});var zR=le(J7=>{"use strict";var no=mr(),io=no.isPlainObject,LR=I1(),qR=Sn(),dfe=Go(),PR=ka(),RR=d0().dfltConfig;J7.makeTemplate=function(e){e=no.isPlainObject(e)?e:no.getGraphDiv(e),e=no.extendDeep({_context:RR},{data:e.data,layout:e.layout}),qR.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var m={};Nh(d,m,mfe.bind(null,d));var p=no.coerce(d,{},dfe,"type"),y=a.data[p];y||(y=a.data[p]=[]),y.push(m)}),Nh(t,a.layout,pfe.bind(null,t)),delete a.layout.template;var n=t.template;if(io(n)){var i=n.layout,o,l,s,u,f,c;io(i)&&Xg(i,a.layout);var h=n.data;if(io(h)){for(l in a.data)if(s=h[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;o<c;o++)Xg(s[o%u],f[o]);for(o=c;o<u;o++)f.push(no.extendDeep({},s[o]))}for(l in h)l in a.data||(a.data[l]=no.extendDeep([],h[l]))}}return a};function Xg(e,r){e=no.extendDeep({},e);var t=Object.keys(e).sort(),a,n;function i(f,c,h){if(io(c)&&io(f))Xg(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var d=PR.arrayTemplater({_template:e},h);for(n=0;n<c.length;n++){var m=c[n],p=d.newItem(m)._template;p&&Xg(p,m)}var y=d.defaultItems();for(n=0;n<y.length;n++)c.push(y[n]._template);for(n=0;n<c.length;n++)delete c[n].templateitemname}}for(a=0;a<t.length;a++){var o=t[a],l=e[o];if(o in r?i(l,r[o],o):r[o]=l,jg(o)===o)for(var s in r){var u=jg(s);s!==u&&u===o&&!(s in e)&&i(l,r[s],o)}}}function jg(e){return e.replace(/[0-9]+$/,"")}function Nh(e,r,t,a,n){var i=n&&t(n);for(var o in e){var l=e[o],s=ol(e,o,a),u=ol(e,o,n),f=t(u);if(!f){var c=jg(o);c!==o&&(u=ol(e,c,n),f=t(u))}if(!(i&&i===f)&&!(!f||f._noTemplating||f.valType==="data_array"||f.arrayOk&&Array.isArray(l)))if(!f.valType&&io(l))Nh(l,r,t,s,u);else if(f._isLinkedToArray&&Array.isArray(l))for(var h=!1,d=0,m={},p=0;p<l.length;p++){var y=l[p];if(io(y)){var b=y.name;if(b)m[b]||(Nh(y,r,t,ol(l,d,s),ol(l,d,u)),d++,m[b]=1);else if(!h){var C=PR.arrayDefaultKey(o),x=ol(e,C,a),_=ol(l,d,s);Nh(y,r,t,_,ol(l,d,u));var M=no.nestedProperty(r,_),T=no.nestedProperty(r,x);T.set(M.get()),M.set(null),h=!0}}}else{var A=no.nestedProperty(r,s);A.set(l)}}}function pfe(e,r){return LR.getLayoutValObject(e,no.nestedProperty({},r).parts)}function mfe(e,r){return LR.getTraceValObject(e,no.nestedProperty({},r).parts)}function ol(e,r,t){var a;return t?Array.isArray(e)?a=t+"["+r+"]":a=t+"."+r:a=r,a}J7.validateTemplate=function(e,r){var t=no.extendDeep({},{_context:RR,data:e.data,layout:e.layout}),a=t.layout||{};io(r)||(r=a.template||{});var n=r.layout,i=r.data,o=[];t.layout=a,t.layout.template=r,qR.supplyDefaults(t);var l=t._fullLayout,s=t._fullData,u={};function f(x,_){for(var M in x)if(M.charAt(0)!=="_"&&io(x[M])){var T=jg(M),A=[],E;for(E=0;E<_.length;E++)A.push(ol(x,M,_[E])),T!==M&&A.push(ol(x,T,_[E]));for(E=0;E<A.length;E++)u[A[E]]=1;f(x[M],A)}}function c(x,_){for(var M in x)if(M.indexOf("defaults")===-1&&io(x[M])){var T=ol(x,M,_);u[T]?c(x[M],T):o.push({code:"unused",path:T})}}if(io(n)?(f(l,["layout"]),c(n,"layout")):o.push({code:"layout"}),!io(i))o.push({code:"data"});else{for(var h={},d,m=0;m<s.length;m++){var p=s[m];d=p.type,h[d]=(h[d]||0)+1,p._template||o.push({code:"missing",index:p.index,traceType:d})}for(d in i){var y=i[d].length,b=h[d]||0;y>b?o.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function C(x,_){for(var M in x)if(M.charAt(0)!=="_"){var T=x[M],A=ol(x,M,_);io(T)?(Array.isArray(x)&&T._template===!1&&T.templateitemname&&o.push({code:"missing",path:A,templateitemname:T.templateitemname}),C(T,A)):Array.isArray(T)&&gfe(T)&&C(T,A)}}if(C({data:s,layout:l},""),o.length)return o.map(yfe)};function gfe(e){for(var r=0;r<e.length;r++)if(io(e[r]))return!0}function yfe(e){var r;switch(e.code){case"data":r="The template has no key data.";break;case"layout":r="The template has no key layout.";break;case"missing":e.path?r="There are no templates for item "+e.path+" with name "+e.templateitemname:r="There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":e.path?r="The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?r="Some of the templates of type "+e.traceType+" were not used. The template has "+e.templateCount+" traces, the data only has "+e.dataCount+" of this type.":r="The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":r="Some of the templates of type "+e.traceType+" were used more than once. The template has "+e.templateCount+" traces, the data has "+e.dataCount+" of this type.";break}return e.msg=r,e}});var BR=le(za=>{"use strict";var En=Y7();za._doPlot=En._doPlot;za.newPlot=En.newPlot;za.restyle=En.restyle;za.relayout=En.relayout;za.redraw=En.redraw;za.update=En.update;za._guiRestyle=En._guiRestyle;za._guiRelayout=En._guiRelayout;za._guiUpdate=En._guiUpdate;za._storeDirectGUIEdit=En._storeDirectGUIEdit;za.react=En.react;za.extendTraces=En.extendTraces;za.prependTraces=En.prependTraces;za.addTraces=En.addTraces;za.deleteTraces=En.deleteTraces;za.moveTraces=En.moveTraces;za.purge=En.purge;za.addFrames=En.addFrames;za.deleteFrames=En.deleteFrames;za.animate=En.animate;za.setPlotConfig=En.setPlotConfig;var bfe=Tv().getGraphDiv,_fe=rg().eraseActiveShape;za.deleteActiveShape=function(e){return _fe(bfe(e))};za.toImage=W7();za.validate=TR();za.downloadImage=$7();var NR=zR();za.makeTemplate=NR.makeTemplate;za.validateTemplate=NR.validateTemplate});var HR=le((D7e,IR)=>{"use strict";var K7=mr(),xfe=_t();IR.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=xfe.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=K7.minRowLength(i);o?l=Math.min(u,K7.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=K7.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var YR=le((F7e,GR)=>{"use strict";var OR=mr().dateTick0,wfe=(Ya(),Tr($a)),Afe=wfe.ONEWEEK;function UR(e,r){return e%Afe===0?OR(r,1):OR(r,0)}GR.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",UR(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",UR(l,t.ycalendar)),n("yperiodalignment"))}}});var jR=le((E7e,XR)=>{"use strict";var VR=["orientation","groupnorm","stackgaps"];XR.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},h=0;h<VR.length;h++){var d=VR[h],m=d+"Found";if(!u[m]){var p=r[d]!==void 0,y=d==="orientation";if((p||f)&&(u[d]=n(d,c[d]),y&&(u.fillDflt=u[d]==="h"?"tonextx":"tonexty"),p&&(u[m]=!0,!f&&(delete u.traces[0][d],y))))for(var b=0;b<u.traces.length-1;b++){var C=u.traces[b];C._input.fill!==C.fill&&(C.fill=u.fillDflt)}}}return u}}});var Q7=le((L7e,JR)=>{"use strict";var WR=qt(),ZR=Ds().hasColorscale,$R=Y1(),Mfe=_i();JR.exports=function(r,t,a,n,i,o={}){var l=Mfe.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),ZR(r,"marker")&&$R(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=WR.background:u=WR.defaultLine,i("marker.line.color",u),ZR(r,"marker.line")&&$R(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var e9=le((q7e,KR)=>{"use strict";var Tfe=mr().isArrayOrTypedArray,kfe=Ds().hasColorscale,Cfe=Y1();KR.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),kfe(r,"line"))Cfe(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Tfe(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var ez=le((P7e,QR)=>{"use strict";QR.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var r9=le((R7e,rz)=>{"use strict";var Sfe=mr();rz.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Sfe.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var t9=le((z7e,az)=>{"use strict";var Wg=qt(),tz=mr().isArrayOrTypedArray;function Dfe(e){for(var r=Wg.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var a=Wg.interpolate(e[t-1][1],e[t][1],.5);r=Wg.interpolate(r,a,e[t-1][0]/e[t][0])}return r}az.exports=function(r,t,a,n,i){i||(i={});var o=!1;if(t.marker){var l=t.marker.color,s=(t.marker.line||{}).color;l&&!tz(l)?o=l:s&&!tz(s)&&(o=s)}var u;if(i.moduleHasFillgradient){var f=n("fillgradient.type");if(f!=="none"){n("fillgradient.start"),n("fillgradient.stop");var c=n("fillgradient.colorscale");c&&(u=Dfe(c))}}n("fillcolor",Wg.addOpacity((t.line||{}).color||o||u||a,.5))}});var lz=le((N7e,oz)=>{"use strict";var nz=mr(),Ffe=_t(),Efe=bc(),Lfe=(_g(),Tr(bg)),p2=_i(),qfe=HR(),Pfe=YR(),Rfe=jR(),zfe=Q7(),Nfe=e9(),iz=ez(),Bfe=r9(),Ife=t9(),Hfe=mr().coercePattern;oz.exports=function(r,t,a,n){function i(d,m){return nz.coerce(r,t,Efe,d,m)}var o=qfe(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Pfe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Rfe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o<Lfe.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",s),p2.hasMarkers(t)&&zfe(r,t,a,n,i,{gradient:!0}),p2.hasLines(t)&&(Nfe(r,t,a,n,i,{backoff:!0}),iz(r,t,i),i("connectgaps"),i("line.simplify")),p2.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),Bfe(r,t,n,i));var u=[];(p2.hasMarkers(t)||p2.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),u.push("points")),i("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(Ife(r,t,a,i,{moduleHasFillgradient:!0}),p2.hasLines(t)||iz(r,t,i),Hfe(i,"fillpattern",t.fillcolor,!1));var f=(t.line||{}).color,c=(t.marker||{}).color;(t.fill==="tonext"||t.fill==="toself")&&u.push("fills"),i("hoveron",u.join("+")||"points"),t.hoveron!=="fills"&&(i("hovertemplate"),i("hovertemplatefallback"));var h=Ffe.getComponentMethod("errorbars","supplyDefaults");h(r,t,f||c||a,{axis:"y"}),h(r,t,f||c||a,{axis:"x",inherit:"y"}),nz.coerceSelectionMarkerOpacity(t,i)}}});var uz=le((B7e,sz)=>{"use strict";var Ofe=sh().getAxisGroup;sz.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Ofe(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var h=c[f];h?h.traces.push(t):h=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",m=h.offsetGroups,p=m[d];t._offsetIndex=0,(i!=="group"||d)&&(p||(p=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=p.offsetIndex)}});var cz=le((I7e,fz)=>{"use strict";var Ufe=mr(),Gfe=uz(),Yfe=bc();fz.exports=function(r,t){var a,n,i,o=t.scattermode;function l(h){return Ufe.coerce(n._input,n,Yfe,h)}if(t.scattermode==="group")for(i=0;i<r.length;i++)n=r[i],n.type==="scatter"&&(a=n._input,Gfe(a,n,t,l,o));for(i=0;i<r.length;i++){var s=r[i];if(s.type==="scatter"){var u=s.fill;if(!(u==="none"||u==="toself")&&(s.opacity=void 0,u==="tonexty"||u==="tonextx"))for(var f=i-1;f>=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var hz=le((H7e,vz)=>{"use strict";var Vfe=mr(),Xfe=Op();vz.exports=function(e,r){function t(n,i){return Vfe.coerce(e,r,Xfe,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var mz=le((O7e,pz)=>{"use strict";var jfe=Wt(),dz=mr(),Wfe=dz.dateTime2ms,Zg=dz.incrementMonth,Zfe=(Ya(),Tr($a)),$fe=Zfe.ONEAVGMONTH;pz.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(jfe(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",h=r[a+"period0"],d=Wfe(h,u)||0,m=[],p=[],y=[],b=n.length,C=0;C<b;C++){var x=n[C],_,M,T;if(l){for(_=Math.round((x-d)/(l*$fe)),T=Zg(d,l*_,u);T>x;)T=Zg(T,-l,u);for(;T<=x;)T=Zg(T,l,u);M=Zg(T,-l,u)}else{for(_=Math.round((x-d)/o),T=d+_*o;T>x;)T-=o;for(;T<=x;)T+=o;M=T-o}m[C]=f?M:c?T:(M+T)/2,p[C]=M,y[C]=T}return{vals:m,starts:p,ends:y}}});var i9=le((U7e,yz)=>{"use strict";var a9=Ds().hasColorscale,n9=Jp(),gz=_i();yz.exports=function(r,t){gz.hasLines(t)&&a9(t,"line")&&n9(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),gz.hasMarkers(t)&&(a9(t,"marker")&&n9(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),a9(t,"marker.line")&&n9(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Bh=le((G7e,bz)=>{"use strict";var Qa=mr();bz.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;Qa.mergeArray(t.text,r,"tx"),Qa.mergeArray(t.texttemplate,r,"txt"),Qa.mergeArray(t.hovertext,r,"htx"),Qa.mergeArray(t.customdata,r,"data"),Qa.mergeArray(t.textposition,r,"tp"),t.textfont&&(Qa.mergeArrayCastPositive(t.textfont.size,r,"ts"),Qa.mergeArray(t.textfont.color,r,"tc"),Qa.mergeArray(t.textfont.family,r,"tf"),Qa.mergeArray(t.textfont.weight,r,"tw"),Qa.mergeArray(t.textfont.style,r,"ty"),Qa.mergeArray(t.textfont.variant,r,"tv"),Qa.mergeArray(t.textfont.textcase,r,"tC"),Qa.mergeArray(t.textfont.lineposition,r,"tE"),Qa.mergeArray(t.textfont.shadow,r,"tS"));var n=t.marker;if(n){Qa.mergeArrayCastPositive(n.size,r,"ms"),Qa.mergeArrayCastPositive(n.opacity,r,"mo"),Qa.mergeArray(n.symbol,r,"mx"),Qa.mergeArray(n.angle,r,"ma"),Qa.mergeArray(n.standoff,r,"mf"),Qa.mergeArray(n.color,r,"mc");var i=n.line;n.line&&(Qa.mergeArray(i.color,r,"mlc"),Qa.mergeArrayCastPositive(i.width,r,"mlw"),Qa.mergeArray(i.dash,r,"mld"));var o=n.gradient;o&&o.type!=="none"&&(Qa.mergeArray(o.type,r,"mgt"),Qa.mergeArray(o.color,r,"mgc"))}}});var $g=le((Y7e,xz)=>{"use strict";var _z=mr();xz.exports=function(r,t){_z.isArrayOrTypedArray(t.selectedpoints)&&_z.tagSelected(r,t)}});var Jg=le((V7e,Sz)=>{"use strict";var wz=Wt(),l9=mr(),Ih=Oa(),Az=mz(),o9=(Ya(),Tr($a)).BADNUM,s9=_i(),Jfe=i9(),Kfe=Bh(),Qfe=$g();function ece(e,r){var t=e._fullLayout,a=r._xA=Ih.getFromId(e,r.xaxis||"x","x"),n=r._yA=Ih.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=Az(r,a,"x",i),s=Az(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,h=new Array(c),d=r.ids,m=u9(r,t,a,n),p=!1,y,b,C,x,_,M;kz(t,r);var T="x",A="y",E;if(m)l9.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(A="s",E="x"):(T="s",E="y"),_=m.stackgaps==="interpolate";else{var P=Tz(r,c);Mz(e,r,a,n,u,f,P)}var z=!!r.xperiodalignment,B=!!r.yperiodalignment;for(b=0;b<c;b++){var X=h[b]={},I=wz(u[b]),V=wz(f[b]);I&&V?(X[T]=u[b],X[A]=f[b],z&&(X.orig_x=i[b],X.xEnd=l.ends[b],X.xStart=l.starts[b]),B&&(X.orig_y=o[b],X.yEnd=s.ends[b],X.yStart=s.starts[b])):m&&(y?I:V)?(X[E]=y?u[b]:f[b],X.gap=!0,_?(X.s=o9,p=!0):X.s=0):X[T]=X[A]=o9,d&&(X.id=String(d[b]))}if(Kfe(h,r),Jfe(e,r),Qfe(h,r),m){for(b=0;b<h.length;)h[b][E]===o9?h.splice(b,1):b++;if(l9.sort(h,function(re,te){return re[E]-te[E]||re.i-te.i}),p){for(b=0;b<h.length-1&&h[b].gap;)b++;for(M=h[b].s,M||(M=h[b].s=0),C=0;C<b;C++)h[C].s=M;for(x=h.length-1;x>b&&h[x].gap;)x--;for(M=h[x].s,C=h.length-1;C>x;C--)h[C].s=M;for(;b<x;)if(b++,h[b].gap){for(C=b+1;h[C].gap;)C++;for(var H=h[b-1][E],Q=h[b-1].s,oe=(h[C].s-Q)/(h[C][E]-H);b<C;)h[b].s=Q+(h[b][E]-H)*oe,b++}}}return h}function Mz(e,r,t,a,n,i,o){var l=r._length,s=e._fullLayout,u=t._id,f=a._id,c=s._firstScatter[Cz(r)]===r.uid,h=(u9(r,s,t,a)||{}).orientation,d=r.fill;t._minDtick=0,a._minDtick=0;var m={padded:!0},p={padded:!0};o&&(m.ppad=p.ppad=o);var y=l<2||n[0]!==n[l-1]||i[0]!==i[l-1];y&&(d==="tozerox"||d==="tonextx"&&(c||h==="h"))?m.tozero=!0:!(r.error_y||{}).visible&&(d==="tonexty"||d==="tozeroy"||!s9.hasMarkers(r)&&!s9.hasText(r))&&(m.padded=!1,m.ppad=0),y&&(d==="tozeroy"||d==="tonexty"&&(c||h==="v"))?p.tozero=!0:(d==="tonextx"||d==="tozerox")&&(p.padded=!1),u&&(r._extremes[u]=Ih.findExtremes(t,n,m)),f&&(r._extremes[f]=Ih.findExtremes(a,i,p))}function Tz(e,r){if(s9.hasMarkers(e)){var t=e.marker,a=1.6*(e.marker.sizeref||1),n;if(e.marker.sizemode==="area"?n=function(u){return Math.max(Math.sqrt((u||0)/a),3)}:n=function(u){return Math.max((u||0)/a,3)},l9.isArrayOrTypedArray(t.size)){var i={type:"linear"};Ih.setConvert(i);for(var o=i.makeCalcdata(e.marker,"size"),l=new Array(r),s=0;s<r;s++)l[s]=n(o[s]);return l}else return n(t.size)}}function kz(e,r){var t=Cz(r),a=e._firstScatter;a[t]||(a[t]=r.uid)}function Cz(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function u9(e,r,t,a){var n=e.stackgroup;if(n){var i=r._scatterStackOpts[t._id+a._id][n],o=i.orientation==="v"?a:t;if(o.type==="linear"||o.type==="log")return i}}Sz.exports={calc:ece,calcMarkerSize:Tz,calcAxisExpansion:Mz,setFirstScatter:kz,getStackOpts:u9}});var Fz=le((X7e,Dz)=>{"use strict";Dz.exports=Kg;var rce=mr().distinctVals;function Kg(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i<e.length;i++){for(var o=e[i],l=0;l<o.length;l++){var s=o[l],u=s.p;u===void 0&&(u=s[a]),u!==void 0&&n.push(u)}o[0]&&o[0].width1&&(t=Math.min(o[0].width1,t))}this.positions=n;var f=rce(n);this.distinctPositions=f.vals,f.vals.length===1&&t!==1/0?this.minDiff=t:this.minDiff=Math.min(f.minDiff,t);var c=(r.posAxis||{}).type;(c==="category"||c==="multicategory")&&(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}Kg.prototype.put=function(r,t,a){var n=this.getLabel(r,t,a),i=this.bins[n]||0;return this.bins[n]=i+a,i};Kg.prototype.get=function(r,t,a){var n=this.getLabel(r,t,a);return this.bins[n]||0};Kg.prototype.getLabel=function(r,t,a){var n=a<0&&this.sepNegVal?"v":"^",i=this.overlapNoMerge?r:Math.round(r/this.binWidth);return n+i+"g"+t}});var Ez={};Ha(Ez,{TEXTPAD:()=>tce,eventDataKeys:()=>ace});var tce,ace,Lz=Ia(()=>{"use strict";tce=3,ace=["value","label"]});var Nz=le((j7e,zz)=>{"use strict";var ll=Wt(),{isArrayOrTypedArray:Ou}=mr(),{BADNUM:m2}=(Ya(),Tr($a)),nce=_t(),Hh=Oa(),{getAxisGroup:ice}=sh(),Qg=Fz(),{TEXTPAD:oce}=(Lz(),Tr(Ez)),{LINE_SPACING:lce}=(li(),Tr(oi)),{BR_TAG_ALL:sce}=si();function uce(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;u<i.length;u++){var f=i[u];if(f.visible===!0&&nce.traceIs(f,"bar")&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?l.push(o[u]):s.push(o[u]),f._computePh))for(var c=e.calcdata[u],h=0;h<c.length;h++)typeof c[h].ph0=="function"&&(c[h].ph0=c[h].ph0()),typeof c[h].ph1=="function"&&(c[h].ph1=c[h].ph1())}var d={xCat:t.type==="category"||t.type==="multicategory",yCat:a.type==="category"||a.type==="multicategory",mode:n.barmode,norm:n.barnorm,gap:n.bargap,groupgap:n.bargroupgap};c9(e,t,a,s,d),c9(e,a,t,l,d)}function c9(e,r,t,a,n){if(a.length){var i,o,l,s,u;switch(vce(t,a),n.mode){case"overlay":f9(e,r,t,a,n);break;case"group":for(i=[],o=[],l=0;l<a.length;l++)s=a[l],u=s[0].trace,u.offset===void 0?o.push(s):i.push(s);o.length&&hce(e,r,t,o,n),i.length&&f9(e,r,t,i,n);break;case"stack":case"relative":for(i=[],o=[],l=0;l<a.length;l++)s=a[l],u=s[0].trace,u.base===void 0?o.push(s):i.push(s);cce(o),o.length&&dce(e,r,t,o,n),i.length&&f9(e,r,t,i,n);break}fce(a),_ce(a,r)}}function fce(e){var r,t,a,n,i,o,l;for(r=0;r<e.length;r++)t=e[r],a=t[0].trace,n=t[0].t,n.cornerradiusvalue===void 0&&(i=a.marker?a.marker.cornerradius:void 0,i!==void 0&&(o=ll(i)?+i:+i.slice(0,-1),l=ll(i)?"px":"%",n.cornerradiusvalue=o,n.cornerradiusform=l))}function cce(e){if(!(e.length<2)){var r,t,a,n,i,o,l;for(r=0;r<e.length&&(t=e[r],a=t[0].trace,i=a.marker?a.marker.cornerradius:void 0,i===void 0);r++);if(i!==void 0)for(o=ll(i)?+i:+i.slice(0,-1),l=ll(i)?"px":"%",r=0;r<e.length;r++)t=e[r],n=t[0].t,n.cornerradiusvalue=o,n.cornerradiusform=l}}function vce(e,r){var t,a;for(t=0;t<r.length;t++){var n=r[t],i=n[0].trace,o=i.type==="funnel"?i._base:i.base,l,s=i.orientation==="h"?i.xcalendar:i.ycalendar,u=e.type==="category"||e.type==="multicategory"?function(){return null}:e.d2c;if(Ou(o)){for(a=0;a<Math.min(o.length,n.length);a++)l=u(o[a],0,s),ll(l)?(n[a].b=+l,n[a].hasB=1):n[a].b=0;for(;a<n.length;a++)n[a].b=0}else{l=u(o,0,s);var f=ll(l);for(l=f?l:0,a=0;a<n.length;a++)n[a].b=l,f&&(n[a].hasB=1)}}}function f9(e,r,t,a,n){for(var i=0;i<a.length;i++){var o=a[i],l=new Qg([o],{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});v9(e,r,l,n),n.norm?(Rz(l),h9(t,l,n)):Pz(t,l)}}function hce(e,r,t,a,n){var i=new Qg(a,{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});v9(e,r,i,n),yce(i,r),n.norm?(Rz(i),h9(t,i,n)):Pz(t,i)}function dce(e,r,t,a,n){var i=new Qg(a,{posAxis:r,sepNegVal:n.mode==="relative",overlapNoMerge:!(n.norm||n.mode==="stack"||n.mode==="relative")});v9(e,r,i,n),gce(t,i,n);for(var o=0;o<a.length;o++)for(var l=a[o],s=l[0].t.offsetindex,u=0;u<l.length;u++){var f=l[u];if(f.s!==m2){var c=f.b+f.s===i.get(f.p,s,f.s);c&&(f._outmost=!0)}}n.norm&&h9(t,i,n)}function v9(e,r,t,a){var n=e._fullLayout,i=t.positions,o=t.distinctPositions,l=t.minDiff,s=t.traces,u=s.length,f=i.length!==o.length,c=l*(1-a.gap),h,d,m,p;if(r._id==="angularaxis")h=c,d=h*(1-(a.groupgap||0)),m=-d/2;else{var y=ice(n,r._id)+s[0][0].trace.orientation;p=n._alignmentOpts[y]||{}}for(var b=0;b<u;b++){var C=s[b],x=C[0].trace;if(r._id!=="angularaxis"){var _=p[x.alignmentgroup]||{},M=Object.keys(_.offsetGroups||{}).length;M?h=c/M:h=f?c/u:c,d=h*(1-(a.groupgap||0)),M?m=((2*x._offsetIndex+1-M)*h-d)/2:m=f?((2*b+1-u)*h-d)/2:-d/2}var T=C[0].t;T.barwidth=d,T.offsetindex=x._offsetIndex||0,T.poffset=m,T.bargroupwidth=c,T.bardelta=l}t.binWidth=s[0][0].t.barwidth/100,pce(t),mce(r,t),r._id==="angularaxis"?qz(r,t):qz(r,t,f)}function pce(e){var r=e.traces,t,a;for(t=0;t<r.length;t++){var n=r[t],i=n[0],o=i.trace,l=i.t,s=o._offset||o.offset,u=l.poffset,f;if(Ou(s)){for(f=Array.prototype.slice.call(s,0,n.length),a=0;a<f.length;a++)ll(f[a])||(f[a]=u);for(a=f.length;a<n.length;a++)f.push(u);l.poffset=f}else s!==void 0&&(l.poffset=s);var c=o._width||o.width,h=l.barwidth;if(Ou(c)){var d=Array.prototype.slice.call(c,0,n.length);for(a=0;a<d.length;a++)ll(d[a])||(d[a]=h);for(a=d.length;a<n.length;a++)d.push(h);if(l.barwidth=d,s===void 0){for(f=[],a=0;a<n.length;a++)f.push(u+(h-d[a])/2);l.poffset=f}}else c!==void 0&&(l.barwidth=c,s===void 0&&(l.poffset=u+(h-c)/2))}}function mce(e,r){for(var t=r.traces,a=g2(e),n=0;n<t.length;n++)for(var i=t[n],o=i[0].t,l=o.poffset,s=Ou(l),u=o.barwidth,f=Ou(u),c=0;c<i.length;c++){var h=i[c],d=h.w=f?u[c]:u;h.p===void 0&&(h.p=h[a],h["orig_"+a]=h[a]);var m=(s?l[c]:l)+d/2;h[a]=h.p+m}}function qz(e,r,t){var a=r.traces,n=r.minDiff,i=n/2;Hh.minDtick(e,r.minDiff,r.distinctPositions[0],t);for(var o=0;o<a.length;o++){var l=a[o],s=l[0],u=s.trace,f=[],c,h,d,m;for(m=0;m<l.length;m++)c=l[m],h=c.p-i,d=c.p+i,f.push(h,d);if(u.width||u.offset){var p=s.t,y=p.poffset,b=p.barwidth,C=Ou(y),x=Ou(b);for(m=0;m<l.length;m++){c=l[m];var _=C?y[m]:y,M=x?b[m]:b;h=c.p+_,d=h+M,f.push(h,d)}}u._extremes[e._id]=Hh.findExtremes(e,f,{padded:!1})}}function Pz(e,r){for(var t=r.traces,a=g2(e),n=0;n<t.length;n++){for(var i=t[n],o=i[0].trace,l=o.type==="scatter",s=o.orientation==="v",u=[],f=!1,c=0;c<i.length;c++){var h=i[c],d=l?0:h.b,m=l?s?h.y:h.x:d+h.s;h[a]=m,u.push(m),h.hasB&&u.push(d),(!h.hasB||!h.b)&&(f=!0)}let{ppadminus:p,ppadplus:y}=d9(o,i);o._extremes[e._id]=Hh.findExtremes(e,u,{tozero:f,padded:!0,ppadplus:y,ppadminus:p})}}function gce(e,r,t){var a=g2(e),n=r.traces,i,o,l,s,u,f,c;for(s=0;s<n.length;s++)if(i=n[s],o=i[0].trace,o.type==="funnel")for(c=i[0].t.offsetindex,u=0;u<i.length;u++)f=i[u],f.s!==m2&&r.put(f.p,c,-.5*f.s);for(s=0;s<n.length;s++){i=n[s],o=i[0].trace,l=o.type==="funnel",c=o.type==="barpolar"?0:i[0].t.offsetindex;var h=[];for(u=0;u<i.length;u++)if(f=i[u],f.s!==m2){var d;l?d=f.s:d=f.s+f.b;var m=r.put(f.p,c,d),p=m+d;f.b=m,f[a]=p,t.norm||(h.push(p),f.hasB&&h.push(m))}if(!t.norm){let{ppadminus:y,ppadplus:b}=d9(o,i);o._extremes[e._id]=Hh.findExtremes(e,h,{tozero:!0,padded:!0,ppadplus:b,ppadminus:y})}}}function Rz(e){for(var r=e.traces,t=0;t<r.length;t++)for(var a=r[t],n=a[0].t.offsetindex,i=0;i<a.length;i++){var o=a[i];o.s!==m2&&e.put(o.p,n,o.b+o.s)}}function yce(e,r){for(var t=e.traces,a=0;a<t.length;a++){var n=t[a],i=n[0].trace,o=n[0].t.offsetindex;if(i.base===void 0)for(var l=new Qg([n],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),s=0;s<n.length;s++){var u=n[s];if(u.p!==m2){var f=l.put(u.p,o,u.b+u.s);f&&(u.b=f)}}}}function h9(e,r,t){var a=r.traces,n=g2(e),i=t.norm==="fraction"?1:100,o=i/1e9,l=e.l2c(e.c2l(0)),s=t.mode==="stack"?i:l;function u(T){return ll(e.c2l(T))&&(T<l-o||T>s+o||!ll(l))}for(var f=0;f<a.length;f++){for(var c=a[f],h=c[0].t.offsetindex,d=c[0].trace,m=[],p=!1,y=!1,b=0;b<c.length;b++){var C=c[b];if(C.s!==m2){var x=Math.abs(i/r.get(C.p,h,C.s));C.b*=x,C.s*=x;var _=C.b,M=_+C.s;C[n]=M,m.push(M),y=y||u(M),C.hasB&&(m.push(_),y=y||u(_)),(!C.hasB||!C.b)&&(p=!0)}}let{ppadminus:T,ppadplus:A}=d9(d,c);d._extremes[e._id]=Hh.findExtremes(e,m,{tozero:p,padded:y,ppadplus:A,ppadminus:T})}}function d9(e,r){if(e.orientation==="v"&&(e.text||e.texttemplate)&&e.textposition==="outside"&&(e.textangle==="auto"||e.textangle===0)){let a=function(i){return!i||typeof i!="string"?0:(i.match(sce)||[]).length+1};var t;e.texttemplate?t=a(e.texttemplate):t=Ou(e.text)?Math.max(...e.text.map(i=>a(i))):a(e.text);let n=e.outsidetextfont.size*lce*t+oce;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function bce(e,r,t,a){for(var n=g2(a),i=0;i<e.length;i++)for(var o=e[i],l=0;l<o.length;l++){var s=o[l],u=s[n];s._sMin=r[u],s._sMax=t[u]}}function _ce(e,r){var t=g2(r),a={},n,i,o,l=1/0,s=-1/0;for(n=0;n<e.length;n++)for(o=e[n],i=0;i<o.length;i++){var u=o[i].p;ll(u)&&(l=Math.min(l,u),s=Math.max(s,u))}var f=1e4/(s-l),c=a.round=function(E){return String(Math.round(f*(E-l)))},h={},d={},m=e.some(function(E){var P=E[0].trace;return"marker"in P&&P.marker.cornerradius});for(n=0;n<e.length;n++){o=e[n],o[0].t.extents=a;var p=o[0].t.poffset,y=Ou(p);for(i=0;i<o.length;i++){var b=o[i],C=b[t]-b.w/2;if(ll(C)){var x=b[t]+b.w/2,_=c(b.p);a[_]?a[_]=[Math.min(C,a[_][0]),Math.max(x,a[_][1])]:a[_]=[C,x]}if(b.p0=b.p+(y?p[i]:p),b.p1=b.p0+b.w,b.s0=b.b,b.s1=b.s0+b.s,m){var M=Math.min(b.s0,b.s1)||0,T=Math.max(b.s0,b.s1)||0,A=b[t];h[A]=A in h?Math.min(h[A],M):M,d[A]=A in d?Math.max(d[A],T):T}}}m&&bce(e,h,d,r)}function g2(e){return e._id.charAt(0)}zz.exports={crossTraceCalc:uce,setGroupPositions:c9}});var Oz=le((W7e,Hz)=>{"use strict";var Bz=Jg(),Iz=Nz().setGroupPositions;function xce(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;u<i.length;u++){var f=i[u];f.visible===!0&&f.type==="scatter"&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?l.push(o[u]):f.orientation==="v"&&s.push(o[u]))}var c={mode:n.scattermode,gap:n.scattergap};Iz(e,t,a,s,c),Iz(e,a,t,l,c)}Hz.exports=function(r,t){r._fullLayout.scattermode==="group"&&xce(r,t);var a=t.xaxis,n=t.yaxis,i=a._id+n._id,o=r._fullLayout._scatterStackOpts[i];if(o){var l=r.calcdata,s,u,f,c,h,d,m,p,y,b,C,x,_,M,T;for(var A in o){b=o[A];var E=b.traceIndices;if(E.length){for(C=b.stackgaps==="interpolate",x=b.groupnorm,b.orientation==="v"?(_="x",M="y"):(_="y",M="x"),T=new Array(E.length),s=0;s<T.length;s++)T[s]=!1;d=l[E[0]];var P=new Array(d.length);for(s=0;s<d.length;s++)P[s]=d[s][_];for(s=1;s<E.length;s++){for(h=l[E[s]],u=f=0;u<h.length;u++){for(m=h[u][_];m>P[f]&&f<P.length;f++)p9(h,u,P[f],s,T,C,_),u++;if(m!==P[f]){for(c=0;c<s;c++)p9(l[E[c]],f,m,c,T,C,_);P.splice(f,0,m)}f++}for(;f<P.length;f++)p9(h,u,P[f],s,T,C,_),u++}var z=P.length;for(u=0;u<d.length;u++){for(p=d[u][M]=d[u].s,s=1;s<E.length;s++)h=l[E[s]],h[0].trace._rawLength=h[0].trace._length,h[0].trace._length=z,p+=h[u].s,h[u][M]=p;if(x)for(y=(x==="fraction"?p:p/100)||1,s=0;s<E.length;s++){var B=l[E[s]][u];B[M]/=y,B.sNorm=B.s/y}}for(s=0;s<E.length;s++){h=l[E[s]];var X=h[0].trace,I=Bz.calcMarkerSize(X,X._rawLength),V=Array.isArray(I);if(I&&T[s]||V){var H=I;for(I=new Array(z),u=0;u<z;u++)I[u]=h[u].gap?0:V?H[h[u].i]:H}var Q=new Array(z),oe=new Array(z);for(u=0;u<z;u++)Q[u]=h[u].x,oe[u]=h[u].y;Bz.calcAxisExpansion(r,X,a,n,Q,oe,I),h[0].t.orientation=b.orientation}}}}};function p9(e,r,t,a,n,i,o){n[a]=!0;var l={i:null,gap:!0,s:0};if(l[o]=t,e.splice(r,0,l),r&&t===e[r-1][o]){var s=e[r-1];l.s=s.s,l.i=s.i,l.gap=s.gap}else i&&(l.s=wce(e,r,t,o));r||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}function wce(e,r,t,a){var n=e[r-1],i=e[r+1];return i?n?n.s+(i.s-n.s)*(t-n[a])/(i[a]-n[a]):i.s:n.s}});var Wz=le((Z7e,jz)=>{"use strict";var Ace=ha(),Vz=(Ya(),Tr($a)),Oh=Vz.BADNUM,Xz=Vz.LOG_CLIP,Uz=Xz+.5,Gz=Xz-.5,e3=mr(),Mce=e3.segmentsIntersect,Yz=e3.constrain,m9=(_g(),Tr(bg));jz.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,p=m==="linear",y=a.fill&&a.fill!=="none",b=[],C=m9.minTolerance,x=r.length,_=new Array(x),M=0,T,A,E,P,z,B,X,I,V,H,Q,oe,re,te,ie,ce;function Me(rr){var Sr=r[rr];if(!Sr)return!1;var vr=t.linearized?n.l2p(Sr.x):n.c2p(Sr.x),jr=t.linearized?i.l2p(Sr.y):i.c2p(Sr.y);if(vr===Oh){if(o&&(vr=n.c2p(Sr.x,!0)),vr===Oh)return!1;l&&jr===Oh&&(vr*=Math.abs(n._m*u*(n._m>0?Uz:Gz)/(i._m*s*(i._m>0?Uz:Gz)))),vr*=1e3}if(jr===Oh){if(l&&(jr=i.c2p(Sr.y,!0)),jr===Oh)return!1;jr*=1e3}return[vr,jr]}function De(rr,Sr,vr,jr){var Qr=vr-rr,qr=jr-Sr,Wr=.5-rr,Ae=.5-Sr,Pe=Qr*Qr+qr*qr,ur=Qr*Wr+qr*Ae;if(ur>0&&ur<Pe){var gr=Wr*qr-Ae*Qr;if(gr*gr<Pe)return!0}}var Ie,Ue;function ke(rr,Sr){var vr=rr[0]/s,jr=rr[1]/u,Qr=Math.max(0,-vr,vr-1,-jr,jr-1);return Qr&&Ie!==void 0&&De(vr,jr,Ie,Ue)&&(Qr=0),Qr&&Sr&&De(vr,jr,Sr[0]/s,Sr[1]/u)&&(Qr=0),(1+m9.toleranceGrowth*Qr)*d}function je(rr,Sr){var vr=rr[0]-Sr[0],jr=rr[1]-Sr[1];return Math.sqrt(vr*vr+jr*jr)}var W=m9.maxScreensAway,ee=-s*W,me=s*(1+W),K=-u*W,J=u*(1+W),ue=[[ee,K,me,K],[me,K,me,J],[me,J,ee,J],[ee,J,ee,K]],_e,Ne,Je,ar,tr,fr;function Re(rr,Sr){for(var vr=[],jr=0,Qr=0;Qr<4;Qr++){var qr=ue[Qr],Wr=Mce(rr[0],rr[1],Sr[0],Sr[1],qr[0],qr[1],qr[2],qr[3]);Wr&&(!jr||Math.abs(Wr.x-vr[0][0])>1||Math.abs(Wr.y-vr[0][1])>1)&&(Wr=[Wr.x,Wr.y],jr&&je(Wr,rr)<je(vr[0],rr)?vr.unshift(Wr):vr.push(Wr),jr++)}return vr}function sr(rr){if(rr[0]<ee||rr[0]>me||rr[1]<K||rr[1]>J)return[Yz(rr[0],ee,me),Yz(rr[1],K,J)]}function hr(rr,Sr){if(rr[0]===Sr[0]&&(rr[0]===ee||rr[0]===me)||rr[1]===Sr[1]&&(rr[1]===K||rr[1]===J))return!0}function dr(rr,Sr){var vr=[],jr=sr(rr),Qr=sr(Sr);return jr&&Qr&&hr(jr,Qr)||(jr&&vr.push(jr),Qr&&vr.push(Qr)),vr}function Ze(rr,Sr,vr){return function(jr,Qr){var qr=sr(jr),Wr=sr(Qr),Ae=[];if(qr&&Wr&&hr(qr,Wr))return Ae;qr&&Ae.push(qr),Wr&&Ae.push(Wr);var Pe=2*e3.constrain((jr[rr]+Qr[rr])/2,Sr,vr)-((qr||jr)[rr]+(Wr||Qr)[rr]);if(Pe){var ur;qr&&Wr?ur=Pe>0==qr[rr]>Wr[rr]?qr:Wr:ur=qr||Wr,ur[rr]+=Pe}return Ae}}var cr;m==="linear"||m==="spline"?cr=Re:m==="hv"||m==="vh"?cr=dr:m==="hvh"?cr=Ze(0,ee,me):m==="vhv"&&(cr=Ze(1,K,J));function Lr(rr,Sr){var vr=Sr[0]-rr[0],jr=(Sr[1]-rr[1])/vr,Qr=(rr[1]*Sr[0]-Sr[1]*rr[0])/vr;return Qr>0?[jr>0?ee:me,J]:[jr>0?me:ee,K]}function Te(rr){var Sr=rr[0],vr=rr[1],jr=Sr===_[M-1][0],Qr=vr===_[M-1][1];if(!(jr&&Qr))if(M>1){var qr=Sr===_[M-2][0],Wr=vr===_[M-2][1];jr&&(Sr===ee||Sr===me)&&qr?Wr?M--:_[M-1]=rr:Qr&&(vr===K||vr===J)&&Wr?qr?M--:_[M-1]=rr:_[M++]=rr}else _[M++]=rr}function Oe(rr){_[M-1][0]!==rr[0]&&_[M-1][1]!==rr[1]&&Te([Je,ar]),Te(rr),tr=null,Je=ar=0}var Ar=e3.isArrayOrTypedArray(c);function Br(rr){if(rr&&f&&(rr.i=T,rr.d=r,rr.trace=a,rr.marker=Ar?c[rr.i]:c,rr.backoff=f),Ie=rr[0]/s,Ue=rr[1]/u,_e=rr[0]<ee?ee:rr[0]>me?me:0,Ne=rr[1]<K?K:rr[1]>J?J:0,_e||Ne){if(!M)_[M++]=[_e||rr[0],Ne||rr[1]];else if(tr){var Sr=cr(tr,rr);Sr.length>1&&(Oe(Sr[0]),_[M++]=Sr[1])}else fr=cr(_[M-1],rr)[0],_[M++]=fr;var vr=_[M-1];_e&&Ne&&(vr[0]!==_e||vr[1]!==Ne)?(tr&&(Je!==_e&&ar!==Ne?Te(Je&&ar?Lr(tr,rr):[Je||_e,ar||Ne]):Je&&ar&&Te([Je,ar])),Te([_e,Ne])):Je-_e&&ar-Ne&&Te([_e||Je,Ne||ar]),tr=rr,Je=_e,ar=Ne}else tr&&Oe(cr(tr,rr)[0]),_[M++]=rr}for(T=0;T<x;T++)if(A=Me(T),!!A){for(M=0,tr=null,Br(A),T++;T<x;T++){if(P=Me(T),!P){if(h)continue;break}if(!p||!t.simplify){Br(P);continue}var Qe=Me(T+1);if(H=je(P,A),!(!(y&&(M===0||M===x-1))&&H<ke(P,Qe)*C)){for(I=[(P[0]-A[0])/H,(P[1]-A[1])/H],z=A,Q=H,oe=te=ie=0,X=!1,E=P,T++;T<r.length;T++){if(B=Qe,Qe=Me(T+1),!B){if(h)continue;break}if(V=[B[0]-A[0],B[1]-A[1]],ce=V[0]*I[1]-V[1]*I[0],te=Math.min(te,ce),ie=Math.max(ie,ce),ie-te>ke(B,Qe))break;E=B,re=V[0]*I[0]+V[1]*I[1],re>Q?(Q=re,P=B,X=!1):re<oe&&(oe=re,z=B,X=!0)}if(X?(Br(P),E!==z&&Br(z)):(z!==A&&Br(z),E!==P&&Br(P)),Br(E),T>=r.length||!B)break;Br(B),A=B}}tr&&Te([Je||tr[0],ar||tr[1]]),b.push(_.slice(0,M))}var Be=m.slice(m.length-1);if(f&&Be!=="h"&&Be!=="v"){for(var Xe=!1,yr=-1,Cr=[],pr=0;pr<b.length;pr++)for(var xr=0;xr<b[pr].length-1;xr++){var Rr=b[pr][xr],Er=b[pr][xr+1],Or=Ace.applyBackoff(Er,Rr);(Or[0]!==Er[0]||Or[1]!==Er[1])&&(Xe=!0),Cr[yr+1]||(yr++,Cr[yr]=[Rr,[Or[0],Or[1]]])}return Xe?Cr:b}return b}});var Jz=le(($7e,$z)=>{"use strict";var Zz={tonextx:1,tonexty:1,tonext:1};$z.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,h=0,d=-1;for(i=0;i<a.length;i++)n=a[i][0].trace,o=n.stackgroup||"",o?o in u?s=u[o]:(s=u[o]=h,h++):n.fill in Zz&&d>=0?s=d:(s=d=h,h++),s<c&&(f=!0),n._groupIndex=c=s;var m=a.slice();f&&m.sort(function(y,b){var C=y[0].trace,x=b[0].trace;return C._groupIndex-x._groupIndex||C.index-x.index});var p={};for(i=0;i<m.length;i++)n=m[i][0].trace,o=n.stackgroup||"",n.visible===!0?(n._nexttrace=null,n.fill in Zz&&(l=p[o],n._prevtrace=l||null,l&&(l._nexttrace=n)),n._ownfill=n.fill&&(n.fill.slice(0,6)==="tozero"||n.fill==="toself"||n.fill.slice(0,2)==="to"&&!n._prevtrace),p[o]=n):n._prevtrace=n._nexttrace=n._ownfill=null;return m}});var rN=le((J7e,eN)=>{"use strict";var Wl=Ft(),Tce=_t(),Uh=mr(),y2=Uh.ensureSingle,Qz=Uh.identity,an=ha(),b2=_i(),kce=Wz(),Cce=Jz(),r3=hg().tester;eN.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=Cce(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Sce(r,l,t),f){o&&(s=o());var h=Wl.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,m){Kz(r,m,t,d,c,this,i)})})}else l.each(function(d,m){Kz(r,m,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Sce(e,r,t){r.each(function(a){var n=y2(Wl.select(this),"g","fills");an.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,Qz);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=y2(Wl.select(this),"path","js-fill")})})}function Kz(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Dce(e,r,t,a,n);var u=!!o&&o.duration>0;function f(Ze){return u?Ze.transition():Ze}var c=t.xaxis,h=t.yaxis,d=a[0].trace,m=d.line,p=Wl.select(i),y=y2(p,"g","errorbars"),b=y2(p,"g","lines"),C=y2(p,"g","points"),x=y2(p,"g","text");if(Tce.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(p).style("opacity",d.opacity);var _,M,T=d.fill.charAt(d.fill.length-1);T!=="x"&&T!=="y"&&(T="");var A,E;T==="y"?(A=1,E=h.c2p(0,!0)):T==="x"&&(A=0,E=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=p;var P="",z=[],B=d._prevtrace,X=null,I=null;B&&(P=B._prevRevpath||"",M=B._nextFill,z=B._ownPolygons,X=B._fillsegments,I=B._fillElement);var V,H,Q="",oe="",re,te,ie,ce,Me,De,Ie=[];d._polygons=[];var Ue=[],ke=[],je=Uh.noop;if(_=d._ownFill,b2.hasLines(d)||d.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(re=an.steps(m.shape),te=an.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?re=te=function(Ze){var cr=Ze[Ze.length-1];return Ze.length>1&&Ze[0][0]===cr[0]&&Ze[0][1]===cr[1]?an.smoothclosed(Ze.slice(1),m.smoothing):an.smoothopen(Ze,m.smoothing)}:re=te=function(Ze){return"M"+Ze.join("L")},ie=function(Ze){return te(Ze.reverse())},ke=kce(a,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Ue=new Array(ke.length);var W=0;for(s=0;s<ke.length;s++){var ee,me=ke[s];!ee||!T?(ee=me.slice(),Ue[W]=ee,W++):ee.push.apply(ee,me)}d._fillElement=null,d._fillExclusionElement=I,d._fillsegments=Ue.slice(0,W),Ue=d._fillsegments,ke.length&&(ce=ke[0][0].slice(),Me=ke[ke.length-1],De=Me[Me.length-1].slice()),je=function(Ze){return function(cr){if(V=re(cr),H=ie(cr),Q?T?(Q+="L"+V.slice(1),oe=H+("L"+oe.slice(1))):(Q+="Z"+V,oe=H+"Z"+oe):(Q=V,oe=H),b2.hasLines(d)){var Lr=Wl.select(this);if(Lr.datum(a),Ze)f(Lr.style("opacity",0).attr("d",V).call(an.lineGroupStyle)).style("opacity",1);else{var Te=f(Lr);Te.attr("d",V),an.singleLineStyle(a,Te)}}}}}var K=b.selectAll(".js-line").data(ke);f(K.exit()).style("opacity",0).remove(),K.each(je(!1)),K.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(an.lineGroupStyle).each(je(!0)),an.setClipUrl(K,t.layerClipId,e);function J(Ze){f(Ze).attr("d","M0,0Z")}var ue=function(){var Ze=new Array(Ue.length);for(s=0;s<Ue.length;s++)Ze[s]=r3(Ue[s]);return Ze},_e=function(Ze){var cr,Lr;if(!Ze||Ze.length===0)for(cr=new Array(Ue.length),Lr=0;Lr<Ue.length;Lr++){var Te=Ue[Lr][0].slice(),Oe=Ue[Lr][Ue[Lr].length-1].slice();Te[A]=Oe[A]=E;var Ar=[Oe,Te],Br=Ar.concat(Ue[Lr]);cr[Lr]=r3(Br)}else{for(cr=new Array(Ze.length-1+Ue.length),Lr=0;Lr<Ze.length-1;Lr++)cr[Lr]=r3(Ze[Lr]);var Qe=Ze[Ze.length-1].slice();for(Qe.reverse(),Lr=0;Lr<Ue.length;Lr++)cr[Ze.length-1+Lr]=r3(Ue[Lr].concat(Qe))}return cr};ke.length?(_?(_.datum(a),ce&&De&&(T?(ce[A]=De[A]=E,f(_).attr("d","M"+De+"L"+ce+"L"+Q.slice(1)).call(an.singleFillStyle,e),Ie=_e(null)):(f(_).attr("d",Q+"Z").call(an.singleFillStyle,e),Ie=ue())),d._polygons=Ie,d._fillElement=_):M&&(d.fill.slice(0,6)==="tonext"&&Q&&P?(d.fill==="tonext"?(f(M).attr("d",Q+"Z"+P+"Z").call(an.singleFillStyle,e),Ie=ue(),d._polygons=Ie.concat(z)):(f(M).attr("d",Q+"L"+P.slice(1)+"Z").call(an.singleFillStyle,e),Ie=_e(X),d._polygons=Ie),d._fillElement=M):J(M)),d._prevRevpath=oe):(_?J(_):M&&J(M),d._prevRevpath=null),d._ownPolygons=Ie;function Ne(Ze){return Ze.filter(function(cr){return!cr.gap&&cr.vis})}function Je(Ze){return Ze.filter(function(cr){return cr.vis})}function ar(Ze){return Ze.filter(function(cr){return!cr.gap})}function tr(Ze){return Ze.id}function fr(Ze){if(Ze.ids)return tr}function Re(){return!1}function sr(Ze,cr,Lr){var Te,Oe,Ar,Br=Lr[0].trace,Qe=b2.hasMarkers(Br),Be=b2.hasText(Br),Xe=fr(Br),yr=Re,Cr=Re;if(Qe||Be){var pr=Qz,xr=Br.stackgroup,Rr=xr&&e._fullLayout._scatterStackOpts[c._id+h._id][xr].stackgaps==="infer zero";Br.marker.maxdisplayed||Br._needsCull?pr=Rr?Je:Ne:xr&&!Rr&&(pr=ar),Qe&&(yr=pr),Be&&(Cr=pr)}Oe=Ze.selectAll("path.point"),Te=Oe.data(yr,Xe);var Er=Te.enter().append("path").classed("point",!0);u&&Er.call(an.pointStyle,Br,e).call(an.translatePoints,c,h).style("opacity",0).transition().style("opacity",1),Te.order();var Or;Qe&&(Or=an.makePointStyleFns(Br)),Te.each(function(rr){var Sr=Wl.select(this),vr=f(Sr);Ar=an.translatePoint(rr,vr,c,h),Ar?(an.singlePointStyle(rr,vr,Br,Or,e),t.layerClipId&&an.hideOutsideRangePoint(rr,vr,c,h,Br.xcalendar,Br.ycalendar),Br.customdata&&Sr.classed("plotly-customdata",rr.data!==null&&rr.data!==void 0)):vr.remove()}),u?Te.exit().transition().style("opacity",0).remove():Te.exit().remove(),Oe=cr.selectAll("g"),Te=Oe.data(Cr,Xe),Te.enter().append("g").classed("textpoint",!0).append("text"),Te.order(),Te.each(function(rr){var Sr=Wl.select(this),vr=f(Sr.select("text"));Ar=an.translatePoint(rr,vr,c,h),Ar?t.layerClipId&&an.hideOutsideRangePoint(rr,Sr,c,h,Br.xcalendar,Br.ycalendar):Sr.remove()}),Te.selectAll("text").call(an.textPointStyle,Br,e).each(function(rr){var Sr=c.c2p(rr.x),vr=h.c2p(rr.y);Wl.select(this).selectAll("tspan.line").each(function(){f(Wl.select(this)).attr({x:Sr,y:vr})})}),Te.exit().remove()}C.datum(a),x.datum(a),sr(C,x,a);var hr=d.cliponaxis===!1,dr=hr?null:t.layerClipId;an.setClipUrl(C,dr,e),an.setClipUrl(x,dr,e)}function Dce(e,r,t,a,n){var i=t.xaxis,o=t.yaxis,l=Wl.extent(Uh.simpleMap(i.range,i.r2c)),s=Wl.extent(Uh.simpleMap(o.range,o.r2c)),u=a[0].trace;if(b2.hasMarkers(u)){var f=u.marker.maxdisplayed;if(f!==0){var c=a.filter(function(p){return p.x>=l[0]&&p.x<=l[1]&&p.y>=s[0]&&p.y<=s[1]}),h=Math.ceil(c.length/f),d=0;n.forEach(function(p,y){var b=p[0].trace;b2.hasMarkers(b)&&b.marker.maxdisplayed>0&&y<r&&d++});var m=Math.round(d*h/3+Math.floor(d/3)*h/7.1);a.forEach(function(p){delete p.vis}),c.forEach(function(p,y){Math.round((y+m)%h)===0&&(p.vis=!0)})}}}});var g9=le((K7e,tN)=>{"use strict";tN.exports={container:"marker",min:"cmin",max:"cmax"}});var nN=le((Q7e,aN)=>{"use strict";var t3=Oa();aN.exports=function(r,t,a){var n={},i={_fullLayout:a},o=t3.getFromTrace(i,t,"x"),l=t3.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=t3.tickText(o,o.c2l(s),!0).text,n.yLabel=t3.tickText(l,l.c2l(u),!0).text,n}});var Gh=le((e9e,iN)=>{"use strict";var y9=Ft(),_2=ha(),Fce=_t();function Ece(e){var r=y9.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=y9.select(this),n=t.trace||t[0].trace;b9(a,n,e)}),r.selectAll("g.text").each(function(t){var a=y9.select(this),n=t.trace||t[0].trace;_9(a,n,e)}),r.selectAll("g.trace path.js-line").call(_2.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(_2.fillGroupStyle,e,!1),Fce.getComponentMethod("errorbars","style")(r)}function b9(e,r,t){_2.pointStyle(e.selectAll("path.point"),r,t)}function _9(e,r,t){_2.textPointStyle(e.selectAll("text"),r,t)}function Lce(e,r,t){var a=r[0].trace;a.selectedpoints?(_2.selectedPointStyle(t.selectAll("path.point"),a),_2.selectedTextStyle(t.selectAll("text"),a)):(b9(t,a,e),_9(t,a,e))}iN.exports={style:Ece,stylePoints:b9,styleText:_9,styleOnSelect:Lce}});var x9=le((r9e,oN)=>{"use strict";var x2=qt(),qce=_i();oN.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&x2.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&x2.opacity(i)?i:o&&x2.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?x2.opacity(n)<.3?x2.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&x2.opacity(a)&&qce.hasLines(r)&&r.line.width?a:r.fillcolor)}});var uN=le((t9e,sN)=>{"use strict";var a3=mr(),lN=Yl(),Pce=_t(),Rce=x9(),w9=qt(),zce=a3.fillText;sN.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,m=!!o.xperiodalignment,p=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(oe){if(m){var re=l.c2p(oe.xStart),te=l.c2p(oe.xEnd);return u>=Math.min(re,te)&&u<=Math.max(re,te)?0:1/0}var ie=Math.max(3,oe.mrc||0),ce=1-1/ie,Me=Math.abs(l.c2p(oe.x)-u);return Me<ie?ce*Me/ie:Me-ie+ce},b=function(oe){if(p){var re=s.c2p(oe.yStart),te=s.c2p(oe.yEnd);return f>=Math.min(re,te)&&f<=Math.max(re,te)?0:1/0}var ie=Math.max(3,oe.mrc||0),ce=1-1/ie,Me=Math.abs(s.c2p(oe.y)-f);return Me<ie?ce*Me/ie:Me-ie+ce},C=function(oe){var re=Math.max(d,oe.mrc||0),te=l.c2p(oe.x)-u,ie=s.c2p(oe.y)-f;return Math.max(Math.sqrt(te*te+ie*ie)-re,1-d/re)},x=lN.getDistanceFunction(n,y,b,C);if(lN.getClosest(i,x,r),r.index!==!1){var _=i[r.index],M=l.c2p(_.x,!0),T=s.c2p(_.y,!0),A=_.mrc||1;r.index=_.i;var E=i[0].t.orientation,P=E&&(_.sNorm||_.s),z=E==="h"?P:_.orig_x!==void 0?_.orig_x:_.x,B=E==="v"?P:_.orig_y!==void 0?_.orig_y:_.y;return a3.extendFlat(r,{color:Rce(o,_),x0:M-A,x1:M+A,xLabelVal:z,y0:T-A,y1:T+A,yLabelVal:B,spikeDistance:C(_),hovertemplate:o.hovertemplate}),zce(_,o,r),Pce.getComponentMethod("errorbars","hoverInfo")(_,o,r),[r]}}function X(oe){if(!oe)return!1;var re=oe.node();try{var te=new DOMPoint(c[0],c[1]);return re.isPointInFill(te)}catch(ce){var ie=re.ownerSVGElement.createSVGPoint();return ie.x=c[0],ie.y=c[1],re.isPointInFill(ie)}}function I(oe){var re,te=[],ie=1/0,ce=-1/0,Me=1/0,De=-1/0,Ie;for(re=0;re<oe.length;re++){var Ue=oe[re];Ue.contains(c)&&(te.push(Ue),Me=Math.min(Me,Ue.ymin),De=Math.max(De,Ue.ymax))}if(te.length===0)return null;Me=Math.max(Me,0),De=Math.min(De,s._length),Ie=(Me+De)/2;var ke,je,W,ee,me,K,J;for(re=0;re<te.length;re++)for(je=te[re].pts,ke=1;ke<je.length;ke++)K=je[ke-1][1],J=je[ke][1],K>Ie!=J>=Ie&&(ee=je[ke-1][0],me=je[ke][0],J-K&&(W=ee+(me-ee)*(Ie-K)/(J-K),ie=Math.min(ie,W),ce=Math.max(ce,W)));return ie=Math.max(ie,0),ce=Math.min(ce,l._length),{x0:ie,x1:ce,y0:Ie,y1:Ie}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=X(o._fillElement)&&!X(o._fillExclusionElement);if(V){var H=I(o._polygons);H===null&&(H={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var Q=w9.defaultLine;return w9.opacity(o.fillcolor)?Q=o.fillcolor:w9.opacity((o.line||{}).color)&&(Q=o.line.color),a3.extendFlat(r,{distance:r.maxHoverDistance,x0:H.x0,x1:H.x1,y0:H.y0,y1:H.y1,color:Q,hovertemplate:!1}),delete r.index,o.text&&!a3.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var vN=le((a9e,cN)=>{"use strict";var fN=_i();cN.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,h=l.mode&&!fN.hasMarkers(l)&&!fN.hasText(l);if(h)return[];if(t===!1)for(s=0;s<a.length;s++)a[s].selected=0;else for(s=0;s<a.length;s++)u=a[s],f=n.c2p(u.x),c=i.c2p(u.y),u.i!==null&&t.contains([f,c],!1,s,r)?(o.push({pointNumber:u.i,x:n.c2d(u.x),y:i.c2d(u.y)}),u.selected=1):u.selected=0;return o}});var dN=le((n9e,hN)=>{"use strict";hN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var yN=le((i9e,gN)=>{"use strict";var n3=_t().traceIs,A9=H6();gN.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Nce(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Nce(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Bce(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!n3(i,"cartesian")||n3(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,mN(i,a)){var u=pN(i),f=[];for(n=0;n<r.length;n++){var c=r[n];!n3(c,"box-violin")||(c[a+"axis"]||a)!==t||(c[u]!==void 0?f.push(c[u][0]):c.name!==void 0?f.push(c.name):f.push("text"),c[o]!==l&&(l=void 0))}e.type=A9(f,l,s)}else if(i.type==="splom"){var h=i.dimensions,d=h[i._axesDim[t]];d.visible&&(e.type=A9(d.values,l,s))}else e.type=A9(i[a]||[i[a+"0"]],l,s)}}}function Bce(e,r,t){for(var a=0;a<e.length;a++){var n=e[a];if(n.type==="splom"&&n._length>0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(mN(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function pN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function mN(e,r){var t=pN(e),a=n3(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var _N=le((o9e,bN)=>{"use strict";var Ice=$i().isTypedArraySpec;function Hce(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i<r.data.length;i++){var l=r.data[i];l[t+"axis"]===e._id&&n.push(l)}for(i=0;i<n.length;i++){var s=n[i][t];for(o=0;o<s.length;o++){var u=s[o];u!=null&&(a[u]=1)}}return Object.keys(a)}bN.exports=function(r,t,a,n){if(t.type==="category"){var i=r.categoryarray,o=Array.isArray(i)&&i.length>0||Ice(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Hce(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var AN=le((l9e,wN)=>{"use strict";var xN=qt(),Oce=zl(),Uce=mr();wN.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(E,P){return Uce.coerce2(r,t,n.attributes,E,P)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=xN.mix(i,n.bgColor,n.blend||Oce.lightFraction),c=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),m=a("showgrid",n.showGrid||!!c||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var p=xN.mix(t.gridcolor,n.bgColor,67),y=o("minor.gridcolor",p),b=o("minor.gridwidth",t.gridwidth||1),C=o("minor.griddash",t.griddash||"solid"),x=a("minor.showgrid",!!y||!!b||!!C);x||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var _=o("zerolinelayer"),M=o("zerolinecolor",i),T=o("zerolinewidth"),A=a("zeroline",n.showGrid||!!M||!!T);A||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var T9=le((s9e,DN)=>{"use strict";var MN=Wt(),Gce=_t(),Yh=mr(),Yce=ka(),Vce=Ul(),M9=Ol(),TN=c6(),kN=h6(),Xce=m6(),jce=g6(),Wce=_N(),Zce=AN(),$ce=lb(),CN=vm(),i3=(Nn(),Tr(zn)).WEEKDAY_PATTERN,Jce=(Nn(),Tr(zn)).HOUR_PATTERN;DN.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",h;if(c==="date"){var d=Gce.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var m="";(!n.noTicklabelposition||c==="multicategory")&&(m=Yh.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),CN(t,i),$ce(r,t,a,n),Wce(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var p=a("color"),y=p!==M9.color.dflt?p:l.color,b=s.label||i._dfltTitle[o];if(jce(r,t,a,c,n),!u)return t;a("title.text",b),Yh.coerceFont(a,"title.font",l,{overrideDflt:{size:Yh.bigFont(l.size),color:y}}),TN(r,t,a,c);var C=n.hasMinor;if(C&&(Yce.newContainer(t,"minor"),TN(r,t,a,c,{isMinor:!0})),Xce(r,t,a,c,n),kN(r,t,a,n),C){var x=n.isMinor;n.isMinor=!0,kN(r,t,a,n),n.isMinor=x}Zce(r,t,a,{dfltColor:p,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:C,attributes:M9}),C&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var _=c==="multicategory";if(!n.noTickson&&(c==="category"||_)&&(t.ticks||t.showgrid)&&(_?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),_){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Vce(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Kce}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var T=0;T<t.rangebreaks.length;T++)if(t.rangebreaks[T].pattern===i3){t._hasDayOfWeekBreaks=!0;break}if(CN(t,i),i._has("scattergl")||i._has("splom"))for(var A=0;A<n.data.length;A++){var E=n.data[A];(E.type==="scattergl"||E.type==="splom")&&(E.visible=!1,Yh.warn(E.type+" traces do not work on axes with rangebreaks. Setting trace "+E.index+" to `visible: false`."))}}return t};function Kce(e,r,t){function a(h,d){return Yh.coerce(e,r,M9.rangebreaks,h,d)}var n=a("enabled");if(n){var i=a("bounds");if(i&&i.length>=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=SN(i[l]),s){o=i3;break}}var u=a("pattern",o);if(u===i3)for(l=0;l<2;l++)s=SN(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case i3:if(!MN(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case Jce:if(!MN(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]<f[1]){if(i[0]<f[0]&&i[1]>f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]<f[1]){r.enabled=!1;return}}}else{var c=a("values");if(c&&c.length)a("dvalue");else{r.enabled=!1;return}}}}var Qce={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function SN(e){if(typeof e=="string")return Qce[e.slice(0,3).toLowerCase()]}});var k9=le((u9e,FN)=>{"use strict";var e1e=Wt(),o3=mr();FN.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,h,d,m,p;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(h=s[l+"side"].split(" ")[0],d=s.domain[l][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(e1e(r.position)?"free":i[0]||"free"),h=h||(l==="x"?"bottom":"left"),d=d||0,m=0,p=!1;var y=o3.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=o3.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(l==="y"){var C=a("autoshift");C&&(d=b==="left"?u[0]:u[1],p=t.automargin?t.automargin:!0,m=b==="left"?-3:3),a("shift",m)}a("position",d)}a("automargin",p);var x=!1;if(o.length&&(x=o3.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!x){var _=a("domain",c);_[0]>_[1]-1/4096&&(t.domain=c),o3.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var IN=le((f9e,BN)=>{"use strict";var Mc=mr(),EN=qt(),r1e=Pu().isUnifiedHover,t1e=zb(),LN=ka(),a1e=D1(),qN=Ol(),n1e=yN(),PN=T9(),i1e=sh(),RN=k9(),S9=Cn(),Ys=S9.id2name,zN=S9.name2id,o1e=(Nn(),Tr(zn)).AX_ID_PATTERN,NN=_t(),l3=NN.traceIs,C9=NN.getComponentMethod;function s3(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}BN.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},h={},d={},m={},p,y;for(p=0;p<a.length;p++){var b=a[p];if(l3(b,"cartesian")){var C;if(b.xaxis)C=Ys(b.xaxis),s3(i,C,b);else if(b.xaxes)for(y=0;y<b.xaxes.length;y++)s3(i,Ys(b.xaxes[y]),b);var x;if(b.yaxis)x=Ys(b.yaxis),s3(i,x,b);else if(b.yaxes)for(y=0;y<b.yaxes.length;y++)s3(i,Ys(b.yaxes[y]),b);if(b.type==="funnel"?b.orientation==="h"?(C&&(o[C]=!0),x&&(c[x]=!0)):x&&(l[x]=!0):b.type==="image"?(x&&(h[x]=!0),C&&(h[C]=!0)):(x&&(u[x]=!0,f[x]=!0),(!l3(b,"carpet")||b.type==="carpet"&&!b._cheater)&&C&&(s[C]=!0)),b.type==="carpet"&&b._cheater&&C&&(o[C]=!0),l3(b,"2dMap")&&(d[C]=!0,d[x]=!0),l3(b,"oriented")){var _=b.orientation==="h"?x:C;m[_]=!0}}}var M=t._subplots,T=M.xaxis,A=M.yaxis,E=Mc.simpleMap(T,Ys),P=Mc.simpleMap(A,Ys),z=E.concat(P),B=EN.background;T.length&&A.length&&(B=Mc.coerce(r,t,a1e,"plot_bgcolor"));var X=EN.combine(B,t.paper_bgcolor),I,V,H,Q,oe;function re(){var Oe=i[I]||[];oe._traceIndices=Oe.map(function(Ar){return Ar.index}),oe._annIndices=[],oe._shapeIndices=[],oe._selectionIndices=[],oe._imgIndices=[],oe._subplotsWith=[],oe._counterAxes=[],oe._name=oe._attr=I,oe._id=V}function te(Oe,Ar){return Mc.coerce(Q,oe,qN,Oe,Ar)}function ie(Oe,Ar){return Mc.coerce2(Q,oe,qN,Oe,Ar)}function ce(Oe){return Oe==="x"?A:T}function Me(Oe,Ar){for(var Br=Oe==="x"?E:P,Qe=[],Be=0;Be<Br.length;Be++){var Xe=Br[Be];Xe!==Ar&&!(r[Xe]||{}).overlaying&&Qe.push(zN(Xe))}return Qe}var De={x:ce("x"),y:ce("y")},Ie=De.x.concat(De.y),Ue={},ke=[];function je(){var Oe=Q.matches;o1e.test(Oe)&&Ie.indexOf(Oe)===-1&&(Ue[Oe]=Q.type,ke=Object.keys(Ue))}var W=t1e(r,t),ee=r1e(W);for(p=0;p<z.length;p++){I=z[p],V=zN(I),H=I.charAt(0),Mc.isPlainObject(r[I])||(r[I]={}),Q=r[I],oe=LN.newContainer(t,I,H+"axis"),re();var me=H==="x"&&!s[I]&&o[I]||H==="y"&&!u[I]&&l[I],K=H==="y"&&(!f[I]&&c[I]||h[I]),J={hasMinor:!0,letter:H,font:t.font,outerTicks:d[I],showGrid:!m[I],data:i[I]||[],bgColor:X,calendar:t.calendar,automargin:!0,visibleDflt:me,reverseDflt:K,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[H]||{})[V],noAutotickangles:H==="y"};te("uirevision",t.uirevision),n1e(Q,oe,te,J),PN(Q,oe,te,J,t);var ue=ee&&H===W.charAt(0),_e=ie("spikecolor",ee?oe.color:void 0),Ne=ie("spikethickness",ee?1.5:void 0),Je=ie("spikedash",ee?"dot":void 0),ar=ie("spikemode",ee?"across":void 0),tr=ie("spikesnap"),fr=te("showspikes",!!ue||!!_e||!!Ne||!!Je||!!ar||!!tr);fr||(delete oe.spikecolor,delete oe.spikethickness,delete oe.spikedash,delete oe.spikemode,delete oe.spikesnap);var Re=Ys(Q.overlaying),sr=[0,1];if(t[Re]!==void 0){var hr=Ys(t[Re].anchor);t[hr]!==void 0&&(sr=t[hr].domain)}RN(Q,oe,te,{letter:H,counterAxes:De[H],overlayableAxes:Me(H,I),grid:t.grid,overlayingDomain:sr}),te("title.standoff"),je(),oe._input=Q}for(p=0;p<ke.length;){V=ke[p++],I=Ys(V),H=I.charAt(0),Mc.isPlainObject(r[I])||(r[I]={}),Q=r[I],oe=LN.newContainer(t,I,H+"axis"),re();var dr={letter:H,font:t.font,outerTicks:d[I],showGrid:!m[I],data:[],bgColor:X,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[H]||{})[V]};te("uirevision",t.uirevision),oe.type=Ue[V]||"linear",PN(Q,oe,te,dr,t),RN(Q,oe,te,{letter:H,counterAxes:De[H],overlayableAxes:Me(H,I),grid:t.grid}),te("fixedrange"),te("modebardisable"),je(),oe._input=Q}var Ze=C9("rangeslider","handleDefaults"),cr=C9("rangeselector","handleDefaults");for(p=0;p<E.length;p++)I=E[p],Q=r[I],oe=t[I],Ze(r,t,I),oe.type==="date"&&cr(Q,oe,t,P,oe.calendar),te("fixedrange"),te("modebardisable");for(p=0;p<P.length;p++){I=P[p],Q=r[I],oe=t[I];var Lr=t[Ys(oe.anchor)],Te=C9("rangeslider","isVisible")(Lr);te("fixedrange",Te),te("modebardisable")}i1e.handleDefaults(r,t,{axIds:Ie.concat(ke).sort(S9.idSort),axHasImage:h})}});var UN=le((c9e,ON)=>{"use strict";var l1e=Ft(),HN=_t(),u3=mr(),Co=ha(),f3=Oa();ON.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){f3.redrawComponents(r);return}function o(y){var b=y.xaxis,C=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Co.setTranslate,0,0).call(Co.setScale,1,1),y.plot.call(Co.setTranslate,b._offset,C._offset).call(Co.setScale,1,1);var x=y.plot.selectAll(".scatterlayer .trace");x.selectAll(".point").call(Co.setPointGroupScale,1,1),x.selectAll(".textpoint").call(Co.setTextPointsScale,1,1),x.call(Co.hideOutsideRangePoints,y)}function l(y,b){var C=y.plotinfo,x=C.xaxis,_=C.yaxis,M=x._length,T=_._length,A=!!y.xr1,E=!!y.yr1,P=[];if(A){var z=u3.simpleMap(y.xr0,x.r2l),B=u3.simpleMap(y.xr1,x.r2l),X=z[1]-z[0],I=B[1]-B[0];P[0]=(z[0]*(1-b)+b*B[0]-z[0])/(z[1]-z[0])*M,P[2]=M*(1-b+b*I/X),x.range[0]=x.l2r(z[0]*(1-b)+b*B[0]),x.range[1]=x.l2r(z[1]*(1-b)+b*B[1])}else P[0]=0,P[2]=M;if(E){var V=u3.simpleMap(y.yr0,_.r2l),H=u3.simpleMap(y.yr1,_.r2l),Q=V[1]-V[0],oe=H[1]-H[0];P[1]=(V[1]*(1-b)+b*H[1]-V[1])/(V[0]-V[1])*T,P[3]=T*(1-b+b*oe/Q),_.range[0]=x.l2r(V[0]*(1-b)+b*H[0]),_.range[1]=_.l2r(V[1]*(1-b)+b*H[1])}else P[1]=0,P[3]=T;f3.drawOne(r,x,{skipTitle:!0}),f3.drawOne(r,_,{skipTitle:!0}),f3.redrawComponents(r,[x._id,_._id]);var re=A?M/P[2]:1,te=E?T/P[3]:1,ie=A?P[0]:0,ce=E?P[1]:0,Me=A?P[0]/P[2]*M:0,De=E?P[1]/P[3]*T:0,Ie=x._offset-Me,Ue=_._offset-De;C.clipRect.call(Co.setTranslate,ie,ce).call(Co.setScale,1/re,1/te),C.plot.call(Co.setTranslate,Ie,Ue).call(Co.setScale,re,te),Co.setPointGroupScale(C.zoomScalePts,1/re,1/te),Co.setTextPointsScale(C.zoomScaleTxt,1/re,1/te)}var s;n&&(s=n());function u(){for(var y={},b=0;b<t.length;b++){var C=t[b],x=C.plotinfo.xaxis,_=C.plotinfo.yaxis;C.xr1&&(y[x._name+".range"]=C.xr1.slice()),C.yr1&&(y[_._name+".range"]=C.yr1.slice())}return s&&s(),HN.call("relayout",r,y).then(function(){for(var M=0;M<t.length;M++)o(t[M].plotinfo)})}function f(){for(var y={},b=0;b<t.length;b++){var C=t[b],x=C.plotinfo.xaxis,_=C.plotinfo.yaxis;C.xr0&&(y[x._name+".range"]=C.xr0.slice()),C.yr0&&(y[_._name+".range"]=C.yr0.slice())}return HN.call("relayout",r,y).then(function(){for(var M=0;M<t.length;M++)o(t[M].plotinfo)})}var c,h,d,m=l1e.ease(a.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(d),d=null,f()});function p(){h=Date.now();for(var y=Math.min(1,(h-c)/a.duration),b=m(y),C=0;C<t.length;C++)l(t[C],b);h-c>a.duration?(u(),d=window.cancelAnimationFrame(p)):d=window.requestAnimationFrame(p)}return c=Date.now(),d=window.requestAnimationFrame(p),Promise.resolve()}});var D9=le(fi=>{"use strict";var v3=Ft(),GN=_t(),Tc=mr(),s1e=Sn(),u1e=ha(),YN=Rv().getModuleCalcData,G0=Cn(),Zl=(Nn(),Tr(zn)),f1e=(Kf(),Tr(Jf)),ea=Tc.ensureSingle;function c3(e,r,t){return Tc.ensureSingle(e,r,t,function(a){a.datum(t)})}var kc=Zl.zindexSeparator;fi.name="cartesian";fi.attr=["xaxis","yaxis"];fi.idRoot=["x","y"];fi.idRegex=Zl.idRegex;fi.attrRegex=Zl.attrRegex;fi.attributes=dN();fi.layoutAttributes=Ol();fi.supplyLayoutDefaults=IN();fi.transitionAxes=UN();fi.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u<o.length;u++){var h=o[u].split("y");l[h[0]]=1,s["y"+h[1]]=1}for(u=0;u<a.length;u++)f=a[u],l[f]||(c=(e[G0.id2name(f)]||{}).anchor,Zl.idRegex.y.test(c)||(c="y"),i.push(f+c),o.push(f+c),s[c]||(s[c]=1,Tc.pushUnique(n,c)));for(u=0;u<n.length;u++)c=n[u],s[c]||(f=(e[G0.id2name(c)]||{}).anchor,Zl.idRegex.x.test(f)||(f="x"),i.push(f+c),o.push(f+c),l[f]||(l[f]=1,Tc.pushUnique(a,f)));if(!o.length){f="",c="";for(var d in e)if(Zl.attrRegex.test(d)){var m=d.charAt(0);m==="x"?(!f||+d.slice(5)<+f.slice(5))&&(f=d):(!c||+d.slice(5)<+c.slice(5))&&(c=d)}f=f?G0.name2id(f):"x",c=c?G0.name2id(c):"y",a.push(f),n.push(c),i.push(f+c)}};fi.plot=function(e,r,t,a){var n=e._fullLayout,i=n._subplots.cartesian,o=e.calcdata,l;if(!Array.isArray(r))for(r=[],l=0;l<o.length;l++)r.push(l);for(var s=n._zindices,u=0;u<s.length;u++){var f=s[u];for(l=0;l<i.length;l++){var c=i[l],h=n._plots[c];if(u>0){var d=h.id;if(d.indexOf(kc)!==-1)continue;d+=kc+(u+1),h=Tc.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],p,y=0;y<o.length;y++){var b=o[y],C=b[0].trace;f===(C.zorder||0)&&C.xaxis+C.yaxis===c&&((r.indexOf(C.index)!==-1||C.carpet)&&(p&&p[0].trace.xaxis+p[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(C.fill)!==-1&&m.indexOf(p)===-1&&m.push(p),m.push(b)),p=b)}VN(e,h,m,t,a)}}};function VN(e,r,t,a,n){for(var i=Zl.traceLayerClasses,o=e._fullLayout,l=o._zindices,s=o._modules,u,f,c,h=[],d=[],m=0;m<l.length;m++)for(var p=l[m],y=0;y<s.length;y++){u=s[y];var b=u.name,C=GN.modules[b].categories;if(C.svg){var x=u.layerName||b+"layer",_=x+(m?Number(m)+1:""),M=u.plot;f=YN(t,M,p),c=f[0],t=f[1],c.length&&h.push({i:i.indexOf(x),zindex:m,className:_,plotMethod:M,cdModule:c}),C.zoomScale&&d.push("."+_)}}h.sort(function(E,P){return(E.zindex||0)-(P.zindex||0)||E.i-P.i});var T=r.plot.selectAll("g.mlayer").data(h,function(E){return E.className});if(T.enter().append("g").attr("class",function(E){return E.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),T.exit().remove(),T.order(),T.each(function(E){var P=v3.select(this),z=E.className;E.plotMethod(e,r,E.cdModule,P,a,n),Zl.clipOnAxisFalseQuery.indexOf("."+z)===-1&&u1e.setClipUrl(P,r.layerClipId,e)}),o._has("scattergl")&&(u=GN.getModule("scattergl"),c=YN(t,u)[0],u.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(Zl.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),d.length)){var A=r.plot.selectAll(d.join(",")).selectAll(".trace");r.zoomScalePts=A.selectAll("path.point"),r.zoomScaleTxt=A.selectAll(".textpoint")}}fi.clean=function(e,r,t,a){var n=a._plots||{},i=r._plots||{},o=a._subplots||{},l,s,u;if(a._hasOnlyLargeSploms&&!r._hasOnlyLargeSploms)for(u in n)l=n[u],l.plotgroup&&l.plotgroup.remove();var f=a._has&&a._has("gl"),c=r._has&&r._has("gl");if(f&&!c)for(u in n)l=n[u],l._scene&&l._scene.destroy();if(o.xaxis&&o.yaxis){var h=G0.listIds({_fullLayout:a});for(s=0;s<h.length;s++){var d=h[s];r[G0.id2name(d)]||a._infolayer.selectAll(".g-"+d+"title").remove()}}var m=a._has&&a._has("cartesian"),p=r._has&&r._has("cartesian");if(m&&!p)jN(a._cartesianlayer.selectAll(".subplot"),a),a._defs.selectAll(".axesclip").remove(),delete a._axisConstraintGroups,delete a._axisMatchGroups;else if(o.cartesian)for(s=0;s<o.cartesian.length;s++){var y=o.cartesian[s];if(y.indexOf(kc)===-1&&!i[y]){var b="."+y+",."+y+"-x,."+y+"-y";a._cartesianlayer.selectAll(b).remove(),WN(y,a)}}};fi.drawFramework=function(e){var r=e._fullLayout,t=e.calcdata,a,n={};for(a=0;a<t.length;a++){var i=t[a][0],o=i.trace,l=o.zorder||0;n[l]||(n[l]=[]),n[l].push(i)}var s=Object.keys(n).map(Number).sort(Tc.sorterAsc);s.length||(s=[0]),r._zindices=s;var u=c1e(e),f=u.length,c=[];for(a=0;a<f;a++)c[a]=u[a].slice();for(var h=1;h<s.length;h++){var d=[];for(a=0;a<f;a++)d[a]=u[a].slice(),d[a][0]+=kc+(h+1);c=c.concat(d)}var m=r._cartesianlayer.selectAll(".subplot").data(c,String);m.enter().append("g").attr("class",function(p){return"subplot "+p[0]}),m.order(),m.exit().call(jN,r),m.each(function(p){var y=p[0],b=y.indexOf(kc),C=b!==-1,x=C?y.slice(0,b):y,_=r._plots[y];_||(_=Tc.extendFlat({},r._plots[x]),_&&(_.id=y,r._plots[y]=_,r._subplots.cartesian.push(y))),_&&(_.plotgroup=v3.select(this),XN(e,_),C||(_.draglayer=ea(r._draggers,"g",y)))})};fi.rangePlot=function(e,r,t){XN(e,r),VN(e,r,t),s1e.style(e)};function c1e(e){var r=e._fullLayout,t=r._zindices.length,a=r._subplots.cartesian,n=a.length,i,o,l,s,u,f,c=[],h=[];for(i=0;i<n;i++){l=a[i],s=r._plots[l],u=s.xaxis,f=s.yaxis;var d=u._mainAxis,m=f._mainAxis,p=d._id+m._id,y=r._plots[p];s.overlays=[],p!==l&&y?(s.mainplot=p,s.mainplotinfo=y,h.push(l)):(s.mainplot=void 0,s.mainplotinfo=void 0,c.push(l))}for(i=0;i<h.length;i++)l=h[i],s=r._plots[l],s.mainplotinfo.overlays.push(s);var b=c.concat(h),C=[];for(i=0;i<n;i++){l=b[i],s=r._plots[l],u=s.xaxis,f=s.yaxis;for(var x=[],_=1;_<=t;_++){var M="";for(_>1&&(M+=kc+_),x.push(l+M),o=0;o<s.overlays.length;o++)x.push(s.overlays[o].id+M)}x=x.concat([u.layer,f.layer,u.overlaying||"",f.overlaying||""]),C.push(x)}return C}function XN(e,r){var t=e._fullLayout,a=r.plotgroup,n=r.id,i=n.indexOf(kc),o=i!==-1,l=Zl.layerValue2layerClass[r.xaxis.layer],s=Zl.layerValue2layerClass[r.yaxis.layer],u=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=ea(a,"path","xlines-above"),r.ylines=ea(a,"path","ylines-above"),r.xaxislayer=ea(a,"g","xaxislayer-above"),r.yaxislayer=ea(a,"g","yaxislayer-above");else{if(!o){var h=ea(a,"g","layer-subplot");r.shapelayer=ea(h,"g","shapelayer"),r.imagelayer=ea(h,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=ea(a,"g","minor-gridlayer"),r.gridlayer=ea(a,"g","gridlayer"),r.zerolinelayer=ea(a,"g","zerolinelayer"));var d=ea(a,"g","layer-between");r.shapelayerBetween=ea(d,"g","shapelayer"),r.imagelayerBetween=ea(d,"g","imagelayer"),ea(a,"path","xlines-below"),ea(a,"path","ylines-below"),r.overlinesBelow=ea(a,"g","overlines-below"),ea(a,"g","xaxislayer-below"),ea(a,"g","yaxislayer-below"),r.overaxesBelow=ea(a,"g","overaxes-below")}r.overplot=ea(a,"g","overplot"),r.plot=ea(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=ea(a,"g","zerolinelayer-above"),o||(r.xlines=ea(a,"path","xlines-above"),r.ylines=ea(a,"path","ylines-above"),r.overlinesAbove=ea(a,"g","overlines-above"),ea(a,"g","xaxislayer-above"),ea(a,"g","yaxislayer-above"),r.overaxesAbove=ea(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var m=c.plotgroup,p=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,ea(c.overlinesBelow,"path",p),ea(c.overlinesBelow,"path",y),ea(c.overaxesBelow,"g",p),ea(c.overaxesBelow,"g",y),r.plot=ea(c.overplot,"g",n),ea(c.overlinesAbove,"path",p),ea(c.overlinesAbove,"path",y),ea(c.overaxesAbove,"g",p),ea(c.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+l).select("."+p),r.ylines=m.select(".overlines-"+s).select("."+y),r.xaxislayer=m.select(".overaxes-"+l).select("."+p),r.yaxislayer=m.select(".overaxes-"+s).select("."+y)}o||(u||(c3(r.minorGridlayer,"g",r.xaxis._id),c3(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(G0.idSort),c3(r.gridlayer,"g",r.xaxis._id),c3(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(G0.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function jN(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=v3.select(this);f.remove(),WN(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o<i.length;o++){var l=i[o];t[l.id]&&l.plot.selectAll(".trace").remove()}}}function WN(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}fi.toSVG=function(e){var r=e._fullLayout._glimages,t=v3.select(e).selectAll(".svg-container"),a=t.filter(function(i,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,o=i.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:f1e.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n)};fi.updateFx=R7().updateFx});var $N=le((h9e,ZN)=>{"use strict";var h3=_i();ZN.exports={hasLines:h3.hasLines,hasMarkers:h3.hasMarkers,hasText:h3.hasText,isBubble:h3.isBubble,attributes:bc(),layoutAttributes:Op(),supplyDefaults:lz(),crossTraceDefaults:cz(),supplyLayoutDefaults:hz(),calc:Jg().calc,crossTraceCalc:Oz(),arraysToCalcdata:Bh(),plot:rN(),colorbar:g9(),formatLabels:nN(),style:Gh().style,styleOnSelect:Gh().styleOnSelect,hoverPoints:uN(),selectPoints:vN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:D9(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var QN=le((d9e,KN)=>{"use strict";var v1e=Ft(),h1e=qt(),JN=T7(),F9=mr(),d1e=F9.strScale,p1e=F9.strRotate,m1e=F9.strTranslate;KN.exports=function(r,t,a){var n=r.node(),i=JN[a.arrowhead||0],o=JN[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,h=o.backoff*s+a.startstandoff,d,m,p,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-m.x,C=d.y-m.y;if(p=Math.atan2(C,b),y=p+Math.PI,c&&h&&c+h>Math.sqrt(b*b+C*C)){V();return}if(c){if(c*c>b*b+C*C){V();return}var x=c*Math.cos(p),_=c*Math.sin(p);m.x+=x,m.y+=_,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>b*b+C*C){V();return}var M=h*Math.cos(p),T=h*Math.sin(p);d.x-=M,d.y-=T,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),E="";if(A<c+h){V();return}var P=n.getPointAtLength(0),z=n.getPointAtLength(.1);p=Math.atan2(P.y-z.y,P.x-z.x),d=n.getPointAtLength(Math.min(h,A)),E="0px,"+h+"px,";var B=n.getPointAtLength(A),X=n.getPointAtLength(A-.1);y=Math.atan2(B.y-X.y,B.x-X.x),m=n.getPointAtLength(Math.max(0,A-c));var I=E?h+c:c;E+=A-I+"px,"+A+"px",r.style("stroke-dasharray",E)}function V(){r.style("stroke-dasharray","0px,100px")}function H(Q,oe,re,te){Q.path&&(Q.noRotate&&(re=0),v1e.select(n.parentNode).append("path").attr({class:r.attr("class"),d:Q.path,transform:m1e(oe.x,oe.y)+p1e(re*180/Math.PI)+d1e(te)}).style({fill:h1e.rgb(a.arrowcolor),"stroke-width":0}))}u&&H(o,d,p,s),f&&H(i,m,y,l)}});var d3=le((p9e,nB)=>{"use strict";var eB=Ft(),E9=_t(),g1e=Sn(),V0=mr(),L9=V0.strTranslate,Xh=Oa(),Cc=qt(),Uu=ha(),rB=Yl(),q9=si(),P9=P0(),Vh=Zo(),y1e=ka().arrayEditor,b1e=QN();nB.exports={draw:_1e,drawOne:tB,drawRaw:aB};function _1e(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&tB(e,t);return g1e.previousPromises(e)}function tB(e,r){var t=e._fullLayout,a=t.annotations[r]||{},n=Xh.getFromId(e,a.xref),i=Xh.getFromId(e,a.yref);n&&n.setScale(),i&&i.setScale(),aB(e,a,r,!1,n,i)}function Y0(e,r,t,a,n){var i=n[t],o=n[t+"ref"],l=t.indexOf("y")!==-1,s=Xh.getRefType(o)==="domain",u=l?a.h:a.w;return e?s?i+(l?-r:r)/e._length:e.p2r(e.r2p(i)+r):i+(l?-r:r)/u}function aB(e,r,t,a,n,i){var o=e._fullLayout,l=e._fullLayout._size,s=e._context.edits,u,f;a?(u="annotation-"+a,f=a+".annotations"):(u="annotation",f="annotations");var c=y1e(e.layout,f,r),h=c.modifyBase,d=c.modifyItem,m=c.getUpdateObj;o._infolayer.selectAll("."+u+'[data-index="'+t+'"]').remove();var p="clip"+o._uid+"_ann"+t;if(!r._input||r.visible===!1){eB.selectAll("#"+p).remove();return}var y={x:{},y:{}},b=+r.textangle||0,C=o._infolayer.append("g").classed(u,!0).attr("data-index",String(t)).style("opacity",r.opacity),x=C.append("g").classed("annotation-text-g",!0),_=s[r.showarrow?"annotationTail":"annotationPosition"],M=r.captureevents||s.annotationText||_;function T(te){var ie={index:t,annotation:r._input,fullAnnotation:r,event:te};return a&&(ie.subplotId=a),ie}var A=x.append("g").style("pointer-events",M?"all":null).call(P9,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",T(eB.event))});r.hovertext&&A.on("mouseover",function(){var te=r.hoverlabel,ie=te.font,ce=this.getBoundingClientRect(),Me=e.getBoundingClientRect();rB.loneHover({x0:ce.left-Me.left,x1:ce.right-Me.left,y:(ce.top+ce.bottom)/2-Me.top,text:r.hovertext,color:te.bgcolor,borderColor:te.bordercolor,fontFamily:ie.family,fontSize:ie.size,fontColor:ie.color,fontWeight:ie.weight,fontStyle:ie.style,fontVariant:ie.variant,fontShadow:ie.fontShadow,fontLineposition:ie.fontLineposition,fontTextcase:ie.fontTextcase},{container:o._hoverlayer.node(),outerContainer:o._paper.node(),gd:e})}).on("mouseout",function(){rB.loneUnhover(o._hoverlayer.node())});var E=r.borderwidth,P=r.borderpad,z=E+P,B=A.append("rect").attr("class","bg").style("stroke-width",E+"px").call(Cc.stroke,r.bordercolor).call(Cc.fill,r.bgcolor),X=r.width||r.height,I=o._topclips.selectAll("#"+p).data(X?[0]:[]);I.enter().append("clipPath").classed("annclip",!0).attr("id",p).append("rect"),I.exit().remove();var V=r.font,H=o._meta?V0.templateString(r.text,o._meta):r.text,Q=A.append("text").classed("annotation-text",!0).text(H);function oe(te){return te.call(Uu.font,V).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),q9.convertToTspans(te,e,re),te}function re(){var te=Q.selectAll("a");if(te.size()===1&&te.text()===Q.text()){var ie=A.insert("a",":first-child").attr({"xlink:xlink:href":te.attr("xlink:href"),"xlink:xlink:show":te.attr("xlink:show")}).style({cursor:"pointer"});ie.node().appendChild(B.node())}var ce=A.select(".annotation-text-math-group"),Me=!ce.empty(),De=Uu.bBox((Me?ce:Q).node()),Ie=De.width,Ue=De.height,ke=r.width||Ie,je=r.height||Ue,W=Math.round(ke+2*z),ee=Math.round(je+2*z);function me(jr,Qr){return Qr==="auto"&&(jr<1/3?Qr="left":jr>2/3?Qr="right":Qr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Qr]}for(var K=!1,J=["x","y"],ue=0;ue<J.length;ue++){var _e=J[ue],Ne=r[_e+"ref"]||_e,Je=r["a"+_e+"ref"],ar={x:n,y:i}[_e],tr=(b+(_e==="x"?0:-90))*Math.PI/180,fr=W*Math.cos(tr),Re=ee*Math.sin(tr),sr=Math.abs(fr)+Math.abs(Re),hr=r[_e+"anchor"],dr=r[_e+"shift"]*(_e==="x"?1:-1),Ze=y[_e],cr,Lr,Te,Oe,Ar,Br=Xh.getRefType(Ne);if(ar&&Br!=="domain"){var Qe=ar.r2fraction(r[_e]);(Qe<0||Qe>1)&&(Je===Ne?(Qe=ar.r2fraction(r["a"+_e]),(Qe<0||Qe>1)&&(K=!0)):K=!0),cr=ar._offset+ar.r2p(r[_e]),Oe=.5}else{var Be=Br==="domain";_e==="x"?(Te=r[_e],cr=Be?ar._offset+ar._length*Te:cr=l.l+l.w*Te):(Te=1-r[_e],cr=Be?ar._offset+ar._length*Te:cr=l.t+l.h*Te),Oe=r.showarrow?.5:Te}if(r.showarrow){Ze.head=cr;var Xe=r["a"+_e];if(Ar=fr*me(.5,r.xanchor)-Re*me(.5,r.yanchor),Je===Ne){var yr=Xh.getRefType(Je);yr==="domain"?(_e==="y"&&(Xe=1-Xe),Ze.tail=ar._offset+ar._length*Xe):yr==="paper"?_e==="y"?(Xe=1-Xe,Ze.tail=l.t+l.h*Xe):Ze.tail=l.l+l.w*Xe:Ze.tail=ar._offset+ar.r2p(Xe),Lr=Ar}else Ze.tail=cr+Xe,Lr=Ar+Xe;Ze.text=Ze.tail+Ar;var Cr=o[_e==="x"?"width":"height"];if(Ne==="paper"&&(Ze.head=V0.constrain(Ze.head,1,Cr-1)),Je==="pixel"){var pr=-Math.max(Ze.tail-3,Ze.text),xr=Math.min(Ze.tail+3,Ze.text)-Cr;pr>0?(Ze.tail+=pr,Ze.text+=pr):xr>0&&(Ze.tail-=xr,Ze.text-=xr)}Ze.tail+=dr,Ze.head+=dr}else Ar=sr*me(Oe,hr),Lr=Ar,Ze.text=cr+Ar;Ze.text+=dr,Ar+=dr,Lr+=dr,r["_"+_e+"padplus"]=sr/2+Lr,r["_"+_e+"padminus"]=sr/2-Lr,r["_"+_e+"size"]=sr,r["_"+_e+"shift"]=Ar}if(K){A.remove();return}var Rr=0,Er=0;if(r.align!=="left"&&(Rr=(ke-Ie)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Er=(je-Ue)*(r.valign==="middle"?.5:1)),Me)ce.select("svg").attr({x:z+Rr-1,y:z+Er}).call(Uu.setClipUrl,X?p:null,e);else{var Or=z+Er-De.top,rr=z+Rr-De.left;Q.call(q9.positionText,rr,Or).call(Uu.setClipUrl,X?p:null,e)}I.select("rect").call(Uu.setRect,z,z,ke,je),B.call(Uu.setRect,E/2,E/2,W-E,ee-E),A.call(Uu.setTranslate,Math.round(y.x.text-W/2),Math.round(y.y.text-ee/2)),x.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var Sr=function(jr,Qr){C.selectAll(".annotation-arrow-g").remove();var qr=y.x.head,Wr=y.y.head,Ae=y.x.tail+jr,Pe=y.y.tail+Qr,ur=y.x.text+jr,gr=y.y.text+Qr,It=V0.rotationXYMatrix(b,ur,gr),Yt=V0.apply2DTransform(It),ia=V0.apply2DTransform2(It),Ta=+B.attr("width"),Ht=+B.attr("height"),Zt=ur-.5*Ta,ma=Zt+Ta,ra=gr-.5*Ht,xn=ra+Ht,on=[[Zt,ra,Zt,xn],[Zt,xn,ma,xn],[ma,xn,ma,ra],[ma,ra,Zt,ra]].map(ia);if(!on.reduce(function(na,Ea){return na^!!V0.segmentsIntersect(qr,Wr,qr+1e6,Wr+1e6,Ea[0],Ea[1],Ea[2],Ea[3])},!1)){on.forEach(function(na){var Ea=V0.segmentsIntersect(Ae,Pe,qr,Wr,na[0],na[1],na[2],na[3]);Ea&&(Ae=Ea.x,Pe=Ea.y)});var Wn=r.arrowwidth,Jr=r.arrowcolor,ua=r.arrowside,zt=C.append("g").style({opacity:Cc.opacity(Jr)}).classed("annotation-arrow-g",!0),ga=zt.append("path").attr("d","M"+Ae+","+Pe+"L"+qr+","+Wr).style("stroke-width",Wn+"px").call(Cc.stroke,Cc.rgb(Jr));if(b1e(ga,ua,r),s.annotationPosition&&ga.node().parentNode&&!a){var ba=qr,_a=Wr;if(r.standoff){var Vt=Math.sqrt(Math.pow(qr-Ae,2)+Math.pow(Wr-Pe,2));ba+=r.standoff*(Ae-qr)/Vt,_a+=r.standoff*(Pe-Wr)/Vt}var Na=zt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ae-ba)+","+(Pe-_a),transform:L9(ba,_a)}).style("stroke-width",Wn+6+"px").call(Cc.stroke,"rgba(0,0,0,0)").call(Cc.fill,"rgba(0,0,0,0)"),wn,ya;Vh.init({element:Na.node(),gd:e,prepFn:function(){var na=Uu.getTranslate(A);wn=na.x,ya=na.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(na,Ea){var Da=Yt(wn,ya),Eo=Da[0]+na,Bi=Da[1]+Ea;A.call(Uu.setTranslate,Eo,Bi),d("x",Y0(n,na,"x",l,r)),d("y",Y0(i,Ea,"y",l,r)),r.axref===r.xref&&d("ax",Y0(n,na,"ax",l,r)),r.ayref===r.yref&&d("ay",Y0(i,Ea,"ay",l,r)),zt.attr("transform",L9(na,Ea)),x.attr({transform:"rotate("+b+","+Eo+","+Bi+")"})},doneFn:function(){E9.call("_guiRelayout",e,m());var na=document.querySelector(".js-notes-box-panel");na&&na.redraw(na.selectedObj)}})}}};if(r.showarrow&&Sr(0,0),_){var vr;Vh.init({element:A.node(),gd:e,prepFn:function(){vr=x.attr("transform")},moveFn:function(jr,Qr){var qr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Y0(n,jr,"ax",l,r)):d("ax",r.ax+jr),r.ayref===r.yref?d("ay",Y0(i,Qr,"ay",l.w,r)):d("ay",r.ay+Qr),Sr(jr,Qr);else{if(a)return;var Wr,Ae;if(n)Wr=Y0(n,jr,"x",l,r);else{var Pe=r._xsize/l.w,ur=r.x+(r._xshift-r.xshift)/l.w-Pe/2;Wr=Vh.align(ur+jr/l.w,Pe,0,1,r.xanchor)}if(i)Ae=Y0(i,Qr,"y",l,r);else{var gr=r._ysize/l.h,It=r.y-(r._yshift+r.yshift)/l.h-gr/2;Ae=Vh.align(It-Qr/l.h,gr,0,1,r.yanchor)}d("x",Wr),d("y",Ae),(!n||!i)&&(qr=Vh.getCursor(n?.5:Wr,i?.5:Ae,r.xanchor,r.yanchor))}x.attr({transform:L9(jr,Qr)+vr}),P9(A,qr)},clickFn:function(jr,Qr){r.captureevents&&e.emit("plotly_clickannotation",T(Qr))},doneFn:function(){P9(A),E9.call("_guiRelayout",e,m());var jr=document.querySelector(".js-notes-box-panel");jr&&jr.redraw(jr.selectedObj)}})}}s.annotationText?Q.call(q9.makeEditable,{delegate:A,gd:e}).call(oe).on("edit",function(te){r.text=te,this.call(oe),d("text",te),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),E9.call("_guiRelayout",e,m())}):Q.call(oe)}});var fB=le((m9e,uB)=>{"use strict";var iB=mr(),x1e=_t(),oB=ka().arrayEditor;uB.exports={hasClickToShow:w1e,onClick:A1e};function w1e(e,r){var t=sB(e,r);return t.on.length>0||t.explicitOff.length>0}function A1e(e,r){var t=sB(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l<a.length;l++)s=oB(e.layout,"annotations",o[a[l]]),s.modifyItem("visible",!0),iB.extendFlat(i,s.getUpdateObj());for(l=0;l<n.length;l++)s=oB(e.layout,"annotations",o[n[l]]),s.modifyItem("visible",!1),iB.extendFlat(i,s.getUpdateObj());return x1e.call("update",e,{},i)}}function sB(e,r){var t=e._fullLayout.annotations,a=[],n=[],i=[],o=(r||[]).length,l,s,u,f,c,h,d,m;for(l=0;l<t.length;l++)if(u=t[l],f=u.clicktoshow,f){for(s=0;s<o;s++)if(c=r[s],h=c.xaxis,d=c.yaxis,h._id===u.xref&&d._id===u.yref&&h.d2r(c.x)===lB(u._xclick,h)&&d.d2r(c.y)===lB(u._yclick,d)){u.visible?f==="onout"?m=n:m=i:m=a,m.push(l);break}s===o&&u.visible&&f==="onout"&&n.push(l)}return{on:a,off:n,explicitOff:i}}function lB(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var z9=le((g9e,cB)=>{"use strict";var R9=mr(),w2=qt();cB.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=w2.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),R9.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),h,d;c.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:w2.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var m=n("hovertext"),p=a.hoverlabel||{};if(m){var y=n("hoverlabel.bgcolor",p.bgcolor||(w2.opacity(i)?w2.rgb(i):w2.defaultLine)),b=n("hoverlabel.bordercolor",p.bordercolor||w2.contrast(y)),C=R9.extendFlat({},p.font);C.color||(C.color=b),R9.coerceFont(n,"hoverlabel.font",C)}n("captureevents",!!m)}});var hB=le((y9e,vB)=>{"use strict";var N9=mr(),Sc=Oa(),M1e=Ul(),T1e=z9(),k1e=h2();vB.exports=function(r,t){M1e(r,t,{name:"annotations",handleItemDefaults:C1e})};function C1e(e,r,t){function a(x,_){return N9.coerce(e,r,k1e,x,_)}var n=a("visible"),i=a("clicktoshow");if(n||i){T1e(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],h=Sc.coerceRef(e,r,u,c,"","paper");if(h!=="paper"){var d=Sc.getFromId(u,h);d._annIndices.push(r._index)}if(Sc.coercePosition(r,u,a,h,c,.5),o){var m="a"+c,p=Sc.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);p!=="pixel"&&p!==h&&(p=r[m]="pixel");var y=p==="pixel"?s[f]:.4;Sc.coercePosition(r,u,a,p,m,y)}a(c+"anchor"),a(c+"shift")}if(N9.noneOrAll(e,r,["x","y"]),o&&N9.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),C=a("yclick");r._xclick=b===void 0?r.x:Sc.cleanPosition(b,u,r.xref),r._yclick=C===void 0?r.y:Sc.cleanPosition(C,u,r.yref)}}}});var mB=le((b9e,pB)=>{"use strict";var B9=mr(),Dc=Oa(),S1e=d3().draw;pB.exports=function(r){var t=r._fullLayout,a=B9.filterVisible(t.annotations);if(a.length&&r._fullData.length)return B9.syncOrAsync([S1e,D1e],r)};function D1e(e){var r=e._fullLayout;B9.filterVisible(r.annotations).forEach(function(t){var a=Dc.getFromId(e,t.xref),n=Dc.getFromId(e,t.yref),i=Dc.getRefType(t.xref),o=Dc.getRefType(t.yref);t._extremes={},i==="range"&&dB(t,a),o==="range"&&dB(t,n)})}function dB(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,m=3*e.startarrowsize*e.arrowwidth||0,p=m+f,y=m-f,b;if(l===o){var C=Dc.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),x=Dc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,p),ppadminus:Math.max(u,y)});b={min:[C.min[0],x.min[0]],max:[C.max[0],x.max[0]]}}else p=i?p+i:p,y=i?y-i:y,b=Dc.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,p),ppadminus:Math.max(u,d,y)});e._extremes[t]=b}});var yB=le((_9e,gB)=>{"use strict";var F1e=Wt(),E1e=Pd();gB.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var m=u[d],p=null;i?p=E1e(m,t.range):p=Math.pow(10,m),F1e(p)||(p=null),n(f+d,p)}for(var h=0;h<l.length;h++)u=l[h],f="annotations["+h+"].",u[s+"ref"]===t._id&&c(s),u["a"+s+"ref"]===t._id&&c("a"+s)}});var xB=le((x9e,_B)=>{"use strict";var I9=d3(),bB=fB();_B.exports={moduleType:"component",name:"annotations",layoutAttributes:h2(),supplyLayoutDefaults:hB(),includeBasePlot:Ch()("annotations"),calcAutorange:mB(),draw:I9.draw,drawOne:I9.drawOne,drawRaw:I9.drawRaw,hasClickToShow:bB.hasClickToShow,onClick:bB.onClick,convertCoords:yB()}});var p3=le((w9e,wB)=>{"use strict";var Sa=h2(),L1e=Yo().overrideAll,q1e=ka().templatedArray;wB.exports=L1e(q1e("annotation",{visible:Sa.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Sa.xanchor,xshift:Sa.xshift,yanchor:Sa.yanchor,yshift:Sa.yshift,text:Sa.text,textangle:Sa.textangle,font:Sa.font,width:Sa.width,height:Sa.height,opacity:Sa.opacity,align:Sa.align,valign:Sa.valign,bgcolor:Sa.bgcolor,bordercolor:Sa.bordercolor,borderpad:Sa.borderpad,borderwidth:Sa.borderwidth,showarrow:Sa.showarrow,arrowcolor:Sa.arrowcolor,arrowhead:Sa.arrowhead,startarrowhead:Sa.startarrowhead,arrowside:Sa.arrowside,arrowsize:Sa.arrowsize,startarrowsize:Sa.startarrowsize,arrowwidth:Sa.arrowwidth,standoff:Sa.standoff,startstandoff:Sa.startstandoff,hovertext:Sa.hovertext,hoverlabel:Sa.hoverlabel,captureevents:Sa.captureevents}),"calc","from-root")});var MB=le((A9e,AB)=>{"use strict";var H9=mr(),P1e=Oa(),R1e=Ul(),z1e=z9(),N1e=p3();AB.exports=function(r,t,a){R1e(r,t,{name:"annotations",handleItemDefaults:B1e,fullLayout:a.fullLayout})};function B1e(e,r,t,a){function n(l,s){return H9.coerce(e,r,N1e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],P1e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(z1e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),H9.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),H9.noneOrAll(e,r,["ax","ay"])))}});var SB=le((M9e,CB)=>{"use strict";var TB=mr(),kB=Oa();CB.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n<a.length;n++)I1e(a[n],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function I1e(e,r){var t=r.fullSceneLayout,a=t.domain,n=r.fullLayout._size,i={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},TB.extendFlat(e._xa,i),kB.setConvert(e._xa),e._xa._offset=n.l+a.x[0]*n.w,e._xa.l2p=function(){return .5*(1+e._pdata[0]/e._pdata[3])*n.w*(a.x[1]-a.x[0])},e._ya={},TB.extendFlat(e._ya,i),kB.setConvert(e._ya),e._ya._offset=n.t+(1-a.y[1])*n.h,e._ya.l2p=function(){return .5*(1-e._pdata[1]/e._pdata[3])*n.h*(a.y[1]-a.y[0])}}});var FB=le((T9e,DB)=>{"use strict";function O9(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function H1e(e,r){var t=O9(e.projection,O9(e.view,O9(e.model,[r[0],r[1],r[2],1])));return t}DB.exports=H1e});var LB=le((k9e,EB)=>{"use strict";var O1e=d3().drawRaw,U1e=FB(),G1e=["x","y","z"];EB.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i<n.length;i++){for(var o=n[i],l=!1,s=0;s<3;s++){var u=G1e[s],f=o[u],c=t[u+"axis"],h=c.r2fraction(f);if(h<0||h>1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=U1e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),O1e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var RB=le((C9e,PB)=>{"use strict";var Y1e=_t(),qB=mr();PB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:p3()}}},layoutAttributes:p3(),handleDefaults:MB(),includeBasePlot:V1e,convert:SB(),draw:LB()};function V1e(e,r){var t=Y1e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i<n.length;i++){var o=n[i];a.test(o)&&(e[o].annotations||[]).length&&(qB.pushUnique(r._basePlotModules,t),qB.pushUnique(r._subplots.gl3d,o))}}});var U9=le((F9e,IB)=>{"use strict";var S9e=(Nn(),Tr(zn)),zB=gi(),NB=bc().line,X1e=Cs().dash,$l=Tn().extendFlat,j1e=ka().templatedArray,D9e=(Th(),Tr(Mh)),A2=Go(),BB=h2(),{shapeTexttemplateAttrs:W1e,templatefallbackAttrs:Z1e}=Gf(),$1e=mp();IB.exports=j1e("shape",{visible:$l({},A2.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:$l({},A2.legend,{editType:"calc+arraydraw"}),legendgroup:$l({},A2.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:$l({},A2.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:zB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:$l({},A2.legendrank,{editType:"calc+arraydraw"}),legendwidth:$l({},A2.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:$l({},BB.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:$l({},BB.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:$l({},NB.color,{editType:"arraydraw"}),width:$l({},NB.width,{editType:"calc+arraydraw"}),dash:$l({},X1e,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:W1e({},{keys:Object.keys($1e)}),texttemplatefallback:Z1e({editType:"arraydraw"}),font:zB({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var OB=le((E9e,HB)=>{"use strict";var M2=mr(),So=Oa(),J1e=Ul(),K1e=U9(),jh=I0();HB.exports=function(r,t){J1e(r,t,{name:"shapes",handleItemDefaults:e2e})};function Q1e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function e2e(e,r,t){function a(x,_){return M2.coerce(e,r,K1e,x,_)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),M2.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),h=a("ysizemode");let d=[.25,.75],m=[0,10];["x","y"].forEach(x=>{var _=x+"anchor",M=x==="x"?c:h,T={_fullLayout:t},A,E,P,z;let B=x+"ref",X=e[B];if(Array.isArray(X)&&X.length>0){let I=jh.countDefiningCoords(s,o,x);z=So.coerceRefArray(e,r,T,x,void 0,"paper",I),r["_"+x+"refArray"]=!0}else z=So.coerceRef(e,r,T,x,void 0,"paper");if(Array.isArray(z))z.forEach(function(I){So.getRefType(I)==="range"&&(A=So.getFromId(T,I),A&&A._shapeIndices.indexOf(r._index)===-1&&A._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(I){let V=z[I];So.getRefType(V)==="range"?(A=So.getFromId(T,V),E=jh.shapePositionToRange(A),P=jh.rangeToShapePosition(A),(A.type==="category"||A.type==="multicategory")&&a(x+I+"shift")):E=P=M2.identity;let Q=x+I,oe=e[Q];if(e[Q]=E(e[Q],!0),M==="pixel"?a(Q,m[I]):So.coercePosition(r,T,a,V,Q,d[I]),r[Q]=P(r[Q]),e[Q]=oe,I===0&&M==="pixel"){let re=e[_];e[_]=E(e[_],!0),So.coercePosition(r,T,a,V,_,.25),r[_]=P(r[_]),e[_]=re}});else{if(So.getRefType(z)==="range"?(A=So.getFromId(T,z),A._shapeIndices.push(r._index),P=jh.rangeToShapePosition(A),E=jh.shapePositionToRange(A),u&&(A.type==="category"||A.type==="multicategory")&&(a(x+"0shift"),a(x+"1shift"))):E=P=M2.identity,u){let V=x+"0",H=x+"1",Q=e[V],oe=e[H];e[V]=E(e[V],!0),e[H]=E(e[H],!0),M==="pixel"?(a(V,m[0]),a(H,m[1])):(So.coercePosition(r,T,a,z,V,d[0]),So.coercePosition(r,T,a,z,H,d[1])),r[V]=P(r[V]),r[H]=P(r[H]),e[V]=Q,e[H]=oe}if(M==="pixel"){let V=e[_];e[_]=E(e[_],!0),So.coercePosition(r,T,a,z,_,.25),r[_]=P(r[_]),e[_]=V}}}),u&&M2.noneOrAll(e,r,["x0","x1","y0","y1"]);var p=s==="line",y,b;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(b=a("label.text")),b||y){a("label.textangle");var C=a("label.textposition",p?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Q1e(p,C)),a("label.padding"),M2.coerceFont(a,"label.font",t.font)}}});var YB=le((L9e,GB)=>{"use strict";var r2e=qt(),UB=mr();function t2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}GB.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),UB.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",r2e.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",t2e(o,u)),a("newshape.label.padding"),UB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var JB=le((q9e,$B)=>{"use strict";var G9=mr(),sl=Oa(),Vs=(nh(),Tr(ah)),Y9=I0();$B.exports=function(r){var t=r._fullLayout,a=G9.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n<a.length;n++){var i=a[n];i._extremes={};var o,l,s=sl.getRefType(i.xref),u=sl.getRefType(i.yref);if(s==="array"){let f=VB(r,i,"x");Object.entries(f).forEach(([c,h])=>{o=sl.getFromId(r,c),i._extremes[o._id]=sl.findExtremes(o,h,XB(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=sl.getFromId(r,i.xref),l=WB(o,i,Vs.paramIsX),l&&(i._extremes[o._id]=sl.findExtremes(o,l,XB(i))));if(u==="array"){let f=VB(r,i,"y");Object.entries(f).forEach(([c,h])=>{o=sl.getFromId(r,c),i._extremes[o._id]=sl.findExtremes(o,h,jB(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=sl.getFromId(r,i.yref),l=WB(o,i,Vs.paramIsY),l&&(i._extremes[o._id]=sl.findExtremes(o,l,jB(i))))}};function VB(e,r,t){let a=r[t+"ref"],n=t==="x"?Vs.paramIsX:Vs.paramIsY;function i(c,h){c==="paper"||sl.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(h))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Vs.segmentRE)||[];for(var l=0,s=0;s<c.length;s++){let h=c[s],d=h.charAt(0),m=n[d].drawn;if(m===void 0)continue;let p=h.slice(1).match(Vs.paramRE);p&&p.length>m&&(i(a[l],p[m]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let h=sl.getFromId(e,c);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=Y9.decodeDate(f)),u[h._id]=o[c].map(f)}}return u}function XB(e){return ZB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function jB(e){return ZB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function ZB(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?Y9.extractPathCoords(n,i?Vs.paramIsY:Vs.paramIsX):[t,a],u=G9.aggNums(Math.max,null,s),f=G9.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+o:o,h=u>0?u+o:o;return{ppad:o,ppadplus:l?c:h,ppadminus:l?h:c}}else return{ppad:o}}function WB(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,h=-1/0,d=r.path.match(Vs.segmentRE),m,p,y,b,C;for(e.type==="date"&&(u=Y9.decodeDate(u)),m=0;m<d.length;m++)p=d[m],y=t[p.charAt(0)].drawn,y!==void 0&&(b=d[m].slice(1).match(Vs.paramRE),!(!b||b.length<y)&&(C=u(b[y]),C<c&&(c=C),C>h&&(h=C)));if(h>=c)return[c,h]}}});var eI=le((P9e,QB)=>{"use strict";var KB=rg();QB.exports={moduleType:"component",name:"shapes",layoutAttributes:U9(),supplyLayoutDefaults:OB(),supplyDrawNewShapeDefaults:YB(),includeBasePlot:Ch()("shapes"),calcAutorange:JB(),draw:KB.draw,drawOne:KB.drawOne}});var V9=le((z9e,tI)=>{"use strict";var rI=(Nn(),Tr(zn)),a2e=ka().templatedArray,R9e=(Th(),Tr(Mh));tI.exports=a2e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",rI.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",rI.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var nI=le((N9e,aI)=>{"use strict";var n2e=mr(),X9=Oa(),i2e=Ul(),o2e=V9(),l2e="images";aI.exports=function(r,t){var a={name:l2e,handleItemDefaults:s2e};i2e(r,t,a)};function s2e(e,r,t){function a(h,d){return n2e.coerce(e,r,o2e,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=X9.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=X9.getFromId(o,f);c._imgIndices.push(r._index)}X9.coercePosition(r,o,a,f,u,0)}return r}});var sI=le((B9e,lI)=>{"use strict";var iI=Ft(),u2e=ha(),T2=Oa(),oI=Cn(),f2e=(Kf(),Tr(Jf));lI.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l<t.images.length;l++){var s=t.images[l];if(s.visible)if(s.layer==="below"&&s.xref!=="paper"&&s.yref!=="paper"){o=oI.ref2id(s.xref)+oI.ref2id(s.yref);var u=t._plots[o];if(!u){i.push(s);continue}u.mainplot&&(o=u.mainplot.id),n[o]||(n[o]=[]),n[o].push(s)}else s.layer==="above"?a.push(s):i.push(s)}var f={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-1/2},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-1/2},bottom:{sizing:"YMax",offset:-1}}};function c(_){var M=iI.select(this);if(this._imgSrc!==_.source)if(M.attr("xmlns",f2e.svg),!r._context.staticPlot||_.source&&_.source.slice(0,5)==="data:")M.attr("xlink:href",_.source),this._imgSrc=_.source;else{var T=new Promise(function(A){var E=new Image;this.img=E,E.setAttribute("crossOrigin","anonymous"),E.onerror=P,E.onload=function(){var z=document.createElement("canvas");z.width=this.width,z.height=this.height;var B=z.getContext("2d",{willReadFrequently:!0});B.drawImage(this,0,0);var X=z.toDataURL("image/png");M.attr("xlink:href",X),A()},M.on("error",P),E.src=_.source,this._imgSrc=_.source;function P(){M.remove(),A()}}.bind(this));r._promises.push(T)}}function h(_){var M=iI.select(this),T=T2.getFromId(r,_.xref),A=T2.getFromId(r,_.yref),E=T2.getRefType(_.xref)==="domain",P=T2.getRefType(_.yref)==="domain",z=t._size,B,X;T!==void 0?B=typeof _.xref=="string"&&E?T._length*_.sizex:Math.abs(T.l2p(_.sizex)-T.l2p(0)):B=_.sizex*z.w,A!==void 0?X=typeof _.yref=="string"&&P?A._length*_.sizey:Math.abs(A.l2p(_.sizey)-A.l2p(0)):X=_.sizey*z.h;var I=B*f.x[_.xanchor].offset,V=X*f.y[_.yanchor].offset,H=f.x[_.xanchor].sizing+f.y[_.yanchor].sizing,Q,oe;switch(T!==void 0?Q=typeof _.xref=="string"&&E?T._length*_.x+T._offset:T.r2p(_.x)+T._offset:Q=_.x*z.w+z.l,Q+=I,A!==void 0?oe=typeof _.yref=="string"&&P?A._length*(1-_.y)+A._offset:A.r2p(_.y)+A._offset:oe=z.h-_.y*z.h+z.t,oe+=V,_.sizing){case"fill":H+=" slice";break;case"stretch":H="none";break}M.attr({x:Q,y:oe,width:B,height:X,preserveAspectRatio:H,opacity:_.opacity});var re=T&&T2.getRefType(_.xref)!=="domain"?T._id:"",te=A&&T2.getRefType(_.yref)!=="domain"?A._id:"",ie=re+te;u2e.setClipUrl(M,ie?"clip"+t._uid+ie:null,r)}function d(_){return[_.xref,_.x,_.sizex,_.yref,_.y,_.sizey].join("_")}function m(_,M){return _._index-M._index}var p=t._imageLowerLayer.selectAll("image").data(i,d),y=t._imageUpperLayer.selectAll("image").data(a,d);p.enter().append("image"),y.enter().append("image"),p.exit().remove(),y.exit().remove(),p.each(function(_){c.bind(this)(_),h.bind(this)(_)}),y.each(function(_){c.bind(this)(_),h.bind(this)(_)}),p.sort(m),y.sort(m);var b=Object.keys(t._plots);for(l=0;l<b.length;l++){o=b[l];var C=t._plots[o];if(C.imagelayer){var x=C.imagelayer.selectAll("image").data(n[o]||[],d);x.enter().append("image"),x.exit().remove(),x.each(function(_){c.bind(this)(_),h.bind(this)(_)}),x.sort(m)}}}});var cI=le((I9e,fI)=>{"use strict";var uI=Wt(),c2e=Pd();fI.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c<l.length;c++)if(u=l[c],f="images["+c+"].",u[s+"ref"]===t._id){var h=u[s],d=u["size"+s],m=null,p=null;if(i){m=c2e(h,t.range);var y=d/Math.pow(10,m)/2;p=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else m=Math.pow(10,h),p=m*(Math.pow(10,d/2)-Math.pow(10,-d/2));uI(m)?uI(p)||(p=null):(m=null,p=null),n(f+s,m),n(f+"size"+s,p)}}}});var hI=le((H9e,vI)=>{"use strict";vI.exports={moduleType:"component",name:"images",layoutAttributes:V9(),supplyLayoutDefaults:nI(),includeBasePlot:Ch()("images"),draw:sI(),convertCoords:cI()}});var m3={};Ha(m3,{activeColor:()=>z2e,arrowOffsetX:()=>q2e,arrowPadX:()=>S2e,arrowSymbol:()=>B2e,autoMarginIdRoot:()=>A2e,blankHeaderOpts:()=>M2e,buttonClassName:()=>b2e,containerClassName:()=>h2e,dropdownButtonClassName:()=>y2e,dropdownButtonGroupClassName:()=>g2e,gapButton:()=>R2e,gapButtonHeader:()=>P2e,headerArrowClassName:()=>m2e,headerClassName:()=>p2e,headerGroupClassName:()=>d2e,hoverColor:()=>N2e,itemRectClassName:()=>_2e,itemTextClassName:()=>x2e,menuIndexAttrName:()=>w2e,minHeight:()=>k2e,minWidth:()=>T2e,name:()=>v2e,rx:()=>D2e,ry:()=>F2e,textOffsetX:()=>E2e,textOffsetY:()=>L2e,textPadX:()=>C2e});var v2e,h2e,d2e,p2e,m2e,g2e,y2e,b2e,_2e,x2e,w2e,A2e,M2e,T2e,k2e,C2e,S2e,D2e,F2e,E2e,L2e,q2e,P2e,R2e,z2e,N2e,B2e,g3=Ia(()=>{"use strict";v2e="updatemenus",h2e="updatemenu-container",d2e="updatemenu-header-group",p2e="updatemenu-header",m2e="updatemenu-header-arrow",g2e="updatemenu-dropdown-button-group",y2e="updatemenu-dropdown-button",b2e="updatemenu-button",_2e="updatemenu-item-rect",x2e="updatemenu-item-text",w2e="updatemenu-active-index",A2e="updatemenu-",M2e={label:" "},T2e=30,k2e=30,C2e=24,S2e=16,D2e=2,F2e=2,E2e=12,L2e=3,q2e=4,P2e=5,R2e=2,z2e="#F4FAFF",N2e="#F4FAFF",B2e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var j9=le((O9e,pI)=>{"use strict";var I2e=gi(),H2e=zl(),O2e=Tn().extendFlat,U2e=Yo().overrideAll,G2e=gp(),dI=ka().templatedArray,Y2e=dI("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});pI.exports=U2e(dI("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Y2e,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:O2e(G2e({editType:"arraydraw"}),{}),font:I2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:H2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var bI=le((U9e,yI)=>{"use strict";var y3=mr(),mI=Ul(),gI=j9(),V2e=(g3(),Tr(m3)),X2e=V2e.name,j2e=gI.buttons;yI.exports=function(r,t){var a={name:X2e,handleItemDefaults:W2e};mI(r,t,a)};function W2e(e,r,t){function a(o,l){return y3.coerce(e,r,gI,o,l)}var n=mI(e,r,{name:"buttons",handleItemDefaults:Z2e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),y3.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),y3.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Z2e(e,r){function t(n,i){return y3.coerce(e,r,j2e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var wI=le((G9e,xI)=>{"use strict";xI.exports=Va;var Jl=Ft(),_I=qt(),k2=ha(),b3=mr();function Va(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Va.barWidth=2;Va.barLength=20;Va.barRadius=2;Va.barPad=1;Va.barColor="#808BA4";Va.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",m=c==="right",p=c==="up",y=s,b=f,C,x,_,M;!h&&!d&&!m&&!p&&(this.position.direction="down",h=!0);var T=h||p;T?(C=l,x=C+y,h?(_=u,M=Math.min(_+b,o),b=M-_):(M=u+b,_=Math.max(M-b,0),b=M-_)):(_=u,M=_+b,d?(x=l+y,C=Math.max(x-y,0),y=x-C):(C=l,x=Math.min(C+y,i),y=x-C)),this._box={l:C,t:_,w:y,h:b};var A=s>y,E=Va.barLength+2*Va.barPad,P=Va.barWidth+2*Va.barPad,z=l,B=u+f;B+P>o&&(B=o-P);var X=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);X.exit().on(".drag",null).remove(),X.enter().append("rect").classed("scrollbar-horizontal",!0).call(_I.fill,Va.barColor),A?(this.hbar=X.attr({rx:Va.barRadius,ry:Va.barRadius,x:z,y:B,width:E,height:P}),this._hbarXMin=z+E/2,this._hbarTranslateMax=y-E):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>b,V=Va.barWidth+2*Va.barPad,H=Va.barLength+2*Va.barPad,Q=l+s,oe=u;Q+V>i&&(Q=i-V);var re=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);re.exit().on(".drag",null).remove(),re.enter().append("rect").classed("scrollbar-vertical",!0).call(_I.fill,Va.barColor),I?(this.vbar=re.attr({rx:Va.barRadius,ry:Va.barRadius,x:Q,y:oe,width:V,height:H}),this._vbarYMin=oe+H/2,this._vbarTranslateMax=b-H):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var te=this.id,ie=C-.5,ce=I?x+V+.5:x+.5,Me=_-.5,De=A?M+P+.5:M+.5,Ie=n._topdefs.selectAll("#"+te).data(A||I?[0]:[]);if(Ie.exit().remove(),Ie.enter().append("clipPath").attr("id",te).append("rect"),A||I?(this._clipRect=Ie.select("rect").attr({x:Math.floor(ie),y:Math.floor(Me),width:Math.ceil(ce)-Math.floor(ie),height:Math.ceil(De)-Math.floor(Me)}),this.container.call(k2.setClipUrl,te,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(k2.setClipUrl,null),delete this._clipRect),A||I){var Ue=Jl.behavior.drag().on("dragstart",function(){Jl.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ue);var ke=Jl.behavior.drag().on("dragstart",function(){Jl.event.sourceEvent.preventDefault(),Jl.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(ke),I&&this.vbar.on(".drag",null).call(ke)}this.setTranslate(t,a)};Va.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(k2.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Va.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Jl.event.dx),this.vbar&&(t-=Jl.event.dy),this.setTranslate(r,t)};Va.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Jl.event.deltaY),this.vbar&&(t+=Jl.event.deltaY),this.setTranslate(r,t)};Va.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=b3.constrain(Jl.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=b3.constrain(Jl.event.y,s,u),c=(f-s)/(u-s),h=this.position.h-this._box.h;t=c*h}this.setTranslate(r,t)};Va.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=b3.constrain(r||0,0,a),t=b3.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(k2.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(k2.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(k2.setTranslate,r,t+o*this._vbarTranslateMax)}}});var LI=le((Y9e,EI)=>{"use strict";var C2=Ft(),Wh=Sn(),Zh=qt(),S2=ha(),Do=mr(),_3=si(),$2e=ka().arrayEditor,MI=(li(),Tr(oi)).LINE_SPACING,mt=(g3(),Tr(m3)),J2e=wI();EI.exports=function(r){var t=r._fullLayout,a=Do.filterVisible(t[mt.name]);function n(h){Wh.autoMargin(r,DI(h))}var i=t._menulayer.selectAll("g."+mt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(mt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){C2.select(this).selectAll("g."+mt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+mt.headerGroupClassName).data(a,K2e);o.enter().append("g").classed(mt.headerGroupClassName,!0);for(var l=Do.ensureSingle(i,"g",mt.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s<a.length;s++){var u=a[s];nve(r,u)}var f="updatemenus"+t._uid,c=new J2e(r,l,f);o.enter().size()&&(l.node().parentNode.appendChild(l.node()),l.call(Z9)),o.exit().each(function(h){l.call(Z9),n(h)}).remove(),o.each(function(h){var d=C2.select(this),m=h.type==="dropdown"?l:null;Wh.manageCommandObserver(r,h,h.buttons,function(p){W9(r,h,h.buttons[p.index],d,m,c,p.index,!0)}),h.type==="dropdown"?(kI(r,d,l,c,h),TI(l,h)&&$h(r,d,l,c,h)):$h(r,d,null,null,h)})}};function K2e(e){return e._index}function Q2e(e){return+e.attr(mt.menuIndexAttrName)==-1}function TI(e,r){return+e.attr(mt.menuIndexAttrName)===r._index}function W9(e,r,t,a,n,i,o,l){r.active=o,$2e(e.layout,mt.name,r).applyUpdate("active",o),r.type==="buttons"?$h(e,a,null,null,r):r.type==="dropdown"&&(n.attr(mt.menuIndexAttrName,"-1"),kI(e,a,n,i,r),l||$h(e,a,n,i,r))}function kI(e,r,t,a,n){var i=Do.ensureSingle(r,"g",mt.headerClassName,function(h){h.style("pointer-events","all")}),o=n._dims,l=n.active,s=n.buttons[l]||mt.blankHeaderOpts,u={y:n.pad.t,yPad:0,x:n.pad.l,xPad:0,index:0},f={width:o.headerWidth,height:o.headerHeight};i.call($9,n,s,e).call(FI,n,u,f);var c=Do.ensureSingle(r,"text",mt.headerArrowClassName,function(h){h.attr("text-anchor","end").call(S2.font,n.font).text(mt.arrowSymbol[n.direction])});c.attr({x:o.headerWidth-mt.arrowOffsetX+n.pad.l,y:o.headerHeight/2+mt.textOffsetY+n.pad.t}),i.on("click",function(){t.call(Z9,String(TI(t,n)?-1:n._index)),$h(e,r,t,a,n)}),i.on("mouseover",function(){i.call(CI)}),i.on("mouseout",function(){i.call(SI,n)}),S2.setTranslate(r,o.lx,o.ly)}function $h(e,r,t,a,n){t||(t=r,t.attr("pointer-events","all"));var i=!Q2e(t)||n.type==="buttons"?n.buttons:[],o=n.type==="dropdown"?mt.dropdownButtonClassName:mt.buttonClassName,l=t.selectAll("g."+o).data(Do.filterVisible(i)),s=l.enter().append("g").classed(o,!0),u=l.exit();n.type==="dropdown"?(s.attr("opacity","0").transition().attr("opacity","1"),u.transition().attr("opacity","0").remove()):u.remove();var f=0,c=0,h=n._dims,d=["up","down"].indexOf(n.direction)!==-1;n.type==="dropdown"&&(d?c=h.headerHeight+mt.gapButtonHeader:f=h.headerWidth+mt.gapButtonHeader),n.type==="dropdown"&&n.direction==="up"&&(c=-mt.gapButtonHeader+mt.gapButton-h.openHeight),n.type==="dropdown"&&n.direction==="left"&&(f=-mt.gapButtonHeader+mt.gapButton-h.openWidth);var m={x:h.lx+f+n.pad.l,y:h.ly+c+n.pad.t,yPad:mt.gapButton,xPad:mt.gapButton,index:0},p={l:m.x+n.borderwidth,t:m.y+n.borderwidth};l.each(function(y,b){var C=C2.select(this);C.call($9,n,y,e).call(FI,n,m),C.on("click",function(){C2.event.defaultPrevented||(y.execute&&(y.args2&&n.active===b?(W9(e,n,y,r,t,a,-1),Wh.executeAPICommand(e,y.method,y.args2)):(W9(e,n,y,r,t,a,b),Wh.executeAPICommand(e,y.method,y.args))),e.emit("plotly_buttonclicked",{menu:n,button:y,active:n.active}))}),C.on("mouseover",function(){C.call(CI)}),C.on("mouseout",function(){C.call(SI,n),l.call(AI,n)})}),l.call(AI,n),d?(p.w=Math.max(h.openWidth,h.headerWidth),p.h=m.y-p.t):(p.w=m.x-p.l,p.h=Math.max(h.openHeight,h.headerHeight)),p.direction=n.direction,a&&(l.size()?eve(e,r,t,a,n,p):rve(a))}function eve(e,r,t,a,n,i){var o=n.direction,l=o==="up"||o==="down",s=n._dims,u=n.active,f,c,h;if(l)for(c=0,h=0;h<u;h++)c+=s.heights[h]+mt.gapButton;else for(f=0,h=0;h<u;h++)f+=s.widths[h]+mt.gapButton;a.enable(i,f,c),a.hbar&&a.hbar.attr("opacity","0").transition().attr("opacity","1"),a.vbar&&a.vbar.attr("opacity","0").transition().attr("opacity","1")}function rve(e){var r=!!e.hbar,t=!!e.vbar;r&&e.hbar.transition().attr("opacity","0").each("end",function(){r=!1,t||e.disable()}),t&&e.vbar.transition().attr("opacity","0").each("end",function(){t=!1,r||e.disable()})}function $9(e,r,t,a){e.call(tve,r).call(ave,r,t,a)}function tve(e,r){var t=Do.ensureSingle(e,"rect",mt.itemRectClassName,function(a){a.attr({rx:mt.rx,ry:mt.ry,"shape-rendering":"crispEdges"})});t.call(Zh.stroke,r.bordercolor).call(Zh.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function ave(e,r,t,a){var n=Do.ensureSingle(e,"text",mt.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),i=t.label,o=a._fullLayout._meta;o&&(i=Do.templateString(i,o)),n.call(S2.font,r.font).text(i).call(_3.convertToTspans,a)}function AI(e,r){var t=r.active;e.each(function(a,n){var i=C2.select(this);n===t&&r.showactive&&i.select("rect."+mt.itemRectClassName).call(Zh.fill,mt.activeColor)})}function CI(e){e.select("rect."+mt.itemRectClassName).call(Zh.fill,mt.hoverColor)}function SI(e,r){e.select("rect."+mt.itemRectClassName).call(Zh.fill,r.bgcolor)}function nve(e,r){var t=r._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=S2.tester.selectAll("g."+mt.dropdownButtonClassName).data(Do.filterVisible(r.buttons));a.enter().append("g").classed(mt.dropdownButtonClassName,!0);var n=["up","down"].indexOf(r.direction)!==-1;a.each(function(f,c){var h=C2.select(this);h.call($9,r,f,e);var d=h.select("."+mt.itemTextClassName),m=d.node()&&S2.bBox(d.node()).width,p=Math.max(m+mt.textPadX,mt.minWidth),y=r.font.size*MI,b=_3.lineCount(d),C=Math.max(y*b,mt.minHeight)+mt.textOffsetY;C=Math.ceil(C),p=Math.ceil(p),t.widths[c]=p,t.heights[c]=C,t.height1=Math.max(t.height1,C),t.width1=Math.max(t.width1,p),n?(t.totalWidth=Math.max(t.totalWidth,p),t.openWidth=t.totalWidth,t.totalHeight+=C+mt.gapButton,t.openHeight+=C+mt.gapButton):(t.totalWidth+=p+mt.gapButton,t.openWidth+=p+mt.gapButton,t.totalHeight=Math.max(t.totalHeight,C),t.openHeight=t.totalHeight)}),n?t.totalHeight-=mt.gapButton:t.totalWidth-=mt.gapButton,t.headerWidth=t.width1+mt.arrowPadX,t.headerHeight=t.height1,r.type==="dropdown"&&(n?(t.width1+=mt.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=mt.arrowPadX),a.remove();var i=t.totalWidth+r.pad.l+r.pad.r,o=t.totalHeight+r.pad.t+r.pad.b,l=e._fullLayout._size;t.lx=l.l+l.w*r.x,t.ly=l.t+l.h*(1-r.y);var s="left";Do.isRightAnchor(r)&&(t.lx-=i,s="right"),Do.isCenterAnchor(r)&&(t.lx-=i/2,s="center");var u="top";Do.isBottomAnchor(r)&&(t.ly-=o,u="bottom"),Do.isMiddleAnchor(r)&&(t.ly-=o/2,u="middle"),t.totalWidth=Math.ceil(t.totalWidth),t.totalHeight=Math.ceil(t.totalHeight),t.lx=Math.round(t.lx),t.ly=Math.round(t.ly),Wh.autoMargin(e,DI(r),{x:r.x,y:r.y,l:i*({right:1,center:.5}[s]||0),r:i*({left:1,center:.5}[s]||0),b:o*({top:1,middle:.5}[u]||0),t:o*({bottom:1,middle:.5}[u]||0)})}function DI(e){return mt.autoMarginIdRoot+e._index}function FI(e,r,t,a){a=a||{};var n=e.select("."+mt.itemRectClassName),i=e.select("."+mt.itemTextClassName),o=r.borderwidth,l=t.index,s=r._dims;S2.setTranslate(e,o+t.x,o+t.y);var u=["up","down"].indexOf(r.direction)!==-1,f=a.height||(u?s.heights[l]:s.height1);n.attr({x:0,y:0,width:a.width||(u?s.width1:s.widths[l]),height:f});var c=r.font.size*MI,h=_3.lineCount(i),d=(h-1)*c/2;_3.positionText(i,mt.textOffsetX,f/2-d+mt.textOffsetY),u?t.y+=s.heights[l]+t.yPad:t.x+=s.widths[l]+t.xPad,t.index++}function Z9(e,r){e.attr(mt.menuIndexAttrName,r||"-1").selectAll("g."+mt.dropdownButtonClassName).remove()}});var PI=le((V9e,qI)=>{"use strict";var ive=(g3(),Tr(m3));qI.exports={moduleType:"component",name:ive.name,layoutAttributes:j9(),supplyLayoutDefaults:bI(),draw:LI()}});var Jh={};Ha(Jh,{arrowOffsetX:()=>Tve,autoMarginIdRoot:()=>xve,containerClassName:()=>lve,currentValueClass:()=>yve,currentValueInset:()=>Kve,currentValuePadding:()=>Jve,gripBgActiveColor:()=>Ove,gripBgColor:()=>Hve,gripBorder:()=>Nve,gripBorderColor:()=>Ive,gripBorderWidth:()=>Bve,gripHeight:()=>zve,gripRadius:()=>Pve,gripRectClass:()=>vve,gripWidth:()=>Rve,groupClassName:()=>sve,inputAreaClass:()=>uve,inputProxyClass:()=>dve,labelClass:()=>gve,labelGroupClass:()=>mve,labelOffset:()=>Gve,labelPadding:()=>Uve,labelsClass:()=>pve,menuIndexAttrName:()=>_ve,minHeight:()=>Ave,minWidth:()=>wve,minorTickColor:()=>Zve,minorTickLength:()=>$ve,minorTickOffset:()=>Wve,name:()=>ove,railBgColor:()=>Eve,railBorder:()=>Sve,railBorderColor:()=>Fve,railBorderWidth:()=>Dve,railHeight:()=>bve,railInset:()=>Lve,railRadius:()=>kve,railRectClass:()=>fve,railTouchRectClass:()=>cve,railWidth:()=>Cve,stepInset:()=>qve,textPadX:()=>Mve,tickColor:()=>Vve,tickLength:()=>jve,tickOffset:()=>Xve,tickRectClass:()=>hve,tickWidth:()=>Yve});var ove,lve,sve,uve,fve,cve,vve,hve,dve,pve,mve,gve,yve,bve,_ve,xve,wve,Ave,Mve,Tve,kve,Cve,Sve,Dve,Fve,Eve,Lve,qve,Pve,Rve,zve,Nve,Bve,Ive,Hve,Ove,Uve,Gve,Yve,Vve,Xve,jve,Wve,Zve,$ve,Jve,Kve,Kh=Ia(()=>{"use strict";ove="sliders",lve="slider-container",sve="slider-group",uve="slider-input-area",fve="slider-rail-rect",cve="slider-rail-touch-rect",vve="slider-grip-rect",hve="slider-tick-rect",dve="slider-input-proxy",pve="slider-labels",mve="slider-label-group",gve="slider-label",yve="slider-current-value",bve=5,_ve="slider-active-index",xve="slider-",wve=30,Ave=30,Mve=40,Tve=4,kve=2,Cve=5,Sve=4,Dve=1,Fve="#bec8d9",Eve="#f8fafc",Lve=8,qve=10,Pve=10,Rve=20,zve=20,Nve=20,Bve=1,Ive="#bec8d9",Hve="#f6f8fa",Ove="#dbdde0",Uve=8,Gve=0,Yve=1,Vve="#333",Xve=25,jve=7,Wve=25,Zve="#333",$ve=4,Jve=8,Kve=0});var J9=le((X9e,NI)=>{"use strict";var RI=gi(),Qve=gp(),ehe=Tn().extendDeepAll,rhe=Yo().overrideAll,the=kv(),zI=ka().templatedArray,Fc=(Kh(),Tr(Jh)),ahe=zI("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});NI.exports=rhe(zI("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:ahe,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:ehe(Qve({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:the.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:RI({})},font:RI({}),activebgcolor:{valType:"color",dflt:Fc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Fc.railBgColor},bordercolor:{valType:"color",dflt:Fc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Fc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Fc.tickLength},tickcolor:{valType:"color",dflt:Fc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Fc.minorTickLength}}),"arraydraw","from-root")});var OI=le((j9e,HI)=>{"use strict";var D2=mr(),BI=Ul(),II=J9(),nhe=(Kh(),Tr(Jh)),ihe=nhe.name,ohe=II.steps;HI.exports=function(r,t){BI(r,t,{name:ihe,handleItemDefaults:lhe})};function lhe(e,r,t){function a(c,h){return D2.coerce(e,r,II,c,h)}for(var n=BI(e,r,{name:"steps",handleItemDefaults:she}),i=0,o=0;o<n.length;o++)n[o].visible&&i++;var l;if(i<2?l=r.visible=!1:l=a("visible"),!!l){r._stepCount=i;var s=r._visibleSteps=D2.filterVisible(n),u=a("active");(n[u]||{}).visible||(r.active=s[0]._index),a("x"),a("y"),D2.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("len"),a("lenmode"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),D2.coerceFont(a,"font",t.font);var f=a("currentvalue.visible");f&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),D2.coerceFont(a,"currentvalue.font",r.font)),a("transition.duration"),a("transition.easing"),a("bgcolor"),a("activebgcolor"),a("bordercolor"),a("borderwidth"),a("ticklen"),a("tickwidth"),a("tickcolor"),a("minorticklen")}}function she(e,r){function t(i,o){return D2.coerce(e,r,ohe,i,o)}var a;if(e.method!=="skip"&&!Array.isArray(e.args)?a=r.visible=!1:a=t("visible"),a){t("method"),t("args");var n=t("label","step-"+r._index);t("value",n),t("execute")}}});var JI=le((W9e,$I)=>{"use strict";var Kl=Ft(),x3=Sn(),X0=qt(),Ql=ha(),Fo=mr(),uhe=Fo.strTranslate,Qh=si(),fhe=ka().arrayEditor,St=(Kh(),Tr(Jh)),e8=(li(),Tr(oi)),YI=e8.LINE_SPACING,K9=e8.FROM_TL,Q9=e8.FROM_BR;$I.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=che(a,r),i=a._infolayer.selectAll("g."+St.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(St.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),x3.autoMargin(r,VI(f))}if(i.exit().each(function(){Kl.select(this).selectAll("g."+St.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+St.groupClassName).data(n,vhe);l.enter().append("g").classed(St.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s<n.length;s++){var u=n[s];hhe(r,u)}l.each(function(f){var c=Kl.select(this);yhe(f),x3.manageCommandObserver(r,f,f._visibleSteps,function(h){var d=c.data()[0];d.active!==h.index&&(d._dragging||jI(r,c,d,h.index,!1,!0))}),dhe(r,Kl.select(this),f)})}};function VI(e){return St.autoMarginIdRoot+e._index}function che(e,r){for(var t=e[St.name],a=[],n=0;n<t.length;n++){var i=t[n];i.visible&&(i._gd=r,a.push(i))}return a}function vhe(e){return e._index}function hhe(e,r){var t=Ql.tester.selectAll("g."+St.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(St.labelGroupClass,!0);var a=0,n=0;t.each(function(m){var p=Kl.select(this),y=XI(p,{step:m},r),b=y.node();if(b){var C=Ql.bBox(b);n=Math.max(n,C.height),a=Math.max(a,C.width)}}),t.remove();var i=r._dims={};i.inputAreaWidth=Math.max(St.railWidth,St.gripHeight);var o=e._fullLayout._size;i.lx=o.l+o.w*r.x,i.ly=o.t+o.h*(1-r.y),r.lenmode==="fraction"?i.outerLength=Math.round(o.w*r.len):i.outerLength=r.len,i.inputAreaStart=0,i.inputAreaLength=Math.round(i.outerLength-r.pad.l-r.pad.r);var l=i.inputAreaLength-2*St.stepInset,s=l/(r._stepCount-1),u=a+St.labelPadding;if(i.labelStride=Math.max(1,Math.ceil(u/s)),i.labelHeight=n,i.currentValueMaxWidth=0,i.currentValueHeight=0,i.currentValueTotalHeight=0,i.currentValueMaxLines=1,r.currentvalue.visible){var f=Ql.tester.append("g");t.each(function(m){var p=w3(f,r,m.label),y=p.node()&&Ql.bBox(p.node())||{width:0,height:0},b=Qh.lineCount(p);i.currentValueMaxWidth=Math.max(i.currentValueMaxWidth,Math.ceil(y.width)),i.currentValueHeight=Math.max(i.currentValueHeight,Math.ceil(y.height)),i.currentValueMaxLines=Math.max(i.currentValueMaxLines,b)}),i.currentValueTotalHeight=i.currentValueHeight+r.currentvalue.offset,f.remove()}i.height=i.currentValueTotalHeight+St.tickOffset+r.ticklen+St.labelOffset+i.labelHeight+r.pad.t+r.pad.b;var c="left";Fo.isRightAnchor(r)&&(i.lx-=i.outerLength,c="right"),Fo.isCenterAnchor(r)&&(i.lx-=i.outerLength/2,c="center");var h="top";Fo.isBottomAnchor(r)&&(i.ly-=i.height,h="bottom"),Fo.isMiddleAnchor(r)&&(i.ly-=i.height/2,h="middle"),i.outerLength=Math.ceil(i.outerLength),i.height=Math.ceil(i.height),i.lx=Math.round(i.lx),i.ly=Math.round(i.ly);var d={y:r.y,b:i.height*Q9[h],t:i.height*K9[h]};r.lenmode==="fraction"?(d.l=0,d.xl=r.x-r.len*K9[c],d.r=0,d.xr=r.x+r.len*Q9[c]):(d.x=r.x,d.l=i.outerLength*K9[c],d.r=i.outerLength*Q9[c]),x3.autoMargin(e,VI(r),d)}function dhe(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(w3,t).call(_he,t).call(mhe,t).call(ghe,t).call(bhe,e,t).call(phe,e,t);var a=t._dims;Ql.setTranslate(r,a.lx+t.pad.l,a.ly+t.pad.t),r.call(ZI,t,!1),r.call(w3,t)}function w3(e,r,t){if(r.currentvalue.visible){var a=r._dims,n,i;switch(r.currentvalue.xanchor){case"right":n=a.inputAreaLength-St.currentValueInset-a.currentValueMaxWidth,i="left";break;case"center":n=a.inputAreaLength*.5,i="middle";break;default:n=St.currentValueInset,i="left"}var o=Fo.ensureSingle(e,"text",St.labelClass,function(h){h.attr({"text-anchor":i,"data-notex":1})}),l=r.currentvalue.prefix?r.currentvalue.prefix:"";if(typeof t=="string")l+=t;else{var s=r.steps[r.active].label,u=r._gd._fullLayout._meta;u&&(s=Fo.templateString(s,u)),l+=s}r.currentvalue.suffix&&(l+=r.currentvalue.suffix),o.call(Ql.font,r.currentvalue.font).text(l).call(Qh.convertToTspans,r._gd);var f=Qh.lineCount(o),c=(a.currentValueMaxLines+1-f)*r.currentvalue.font.size*YI;return Qh.positionText(o,n,c),o}}function phe(e,r,t){var a=Fo.ensureSingle(e,"rect",St.gripRectClass,function(n){n.call(WI,r,e,t).style("pointer-events","all")});a.attr({width:St.gripWidth,height:St.gripHeight,rx:St.gripRadius,ry:St.gripRadius}).call(X0.stroke,t.bordercolor).call(X0.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function XI(e,r,t){var a=Fo.ensureSingle(e,"text",St.labelClass,function(o){o.attr({"text-anchor":"middle","data-notex":1})}),n=r.step.label,i=t._gd._fullLayout._meta;return i&&(n=Fo.templateString(n,i)),a.call(Ql.font,t.font).text(n).call(Qh.convertToTspans,t._gd),a}function mhe(e,r){var t=Fo.ensureSingle(e,"g",St.labelsClass),a=r._dims,n=t.selectAll("g."+St.labelGroupClass).data(a.labelSteps);n.enter().append("g").classed(St.labelGroupClass,!0),n.exit().remove(),n.each(function(i){var o=Kl.select(this);o.call(XI,i,r),Ql.setTranslate(o,r8(r,i.fraction),St.tickOffset+r.ticklen+r.font.size*YI+St.labelOffset+a.currentValueTotalHeight)})}function UI(e,r,t,a,n){var i=Math.round(a*(t._stepCount-1)),o=t._visibleSteps[i]._index;o!==t.active&&jI(e,r,t,o,!0,n)}function jI(e,r,t,a,n,i){var o=t.active;t.active=a,fhe(e.layout,St.name,t).applyUpdate("active",a);var l=t.steps[t.active];r.call(ZI,t,i),r.call(w3,t),e.emit("plotly_sliderchange",{slider:t,step:t.steps[t.active],interaction:n,previousActive:o}),l&&l.method&&n&&(r._nextMethod?(r._nextMethod.step=l,r._nextMethod.doCallback=n,r._nextMethod.doTransition=i):(r._nextMethod={step:l,doCallback:n,doTransition:i},r._nextMethodRaf=window.requestAnimationFrame(function(){var s=r._nextMethod.step;s.method&&(s.execute&&x3.executeAPICommand(e,s.method,s.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function WI(e,r,t){if(r._context.staticPlot)return;var a=t.node(),n=Kl.select(r);function i(){return t.data()[0]}function o(){var l=i();r.emit("plotly_sliderstart",{slider:l});var s=t.select("."+St.gripRectClass);Kl.event.stopPropagation(),Kl.event.preventDefault(),s.call(X0.fill,l.activebgcolor);var u=GI(l,Kl.mouse(a)[0]);UI(r,t,l,u,!0),l._dragging=!0;function f(){var h=i(),d=GI(h,Kl.mouse(a)[0]);UI(r,t,h,d,!1)}n.on("mousemove",f),n.on("touchmove",f);function c(){var h=i();h._dragging=!1,s.call(X0.fill,h.bgcolor),n.on("mouseup",null),n.on("mousemove",null),n.on("touchend",null),n.on("touchmove",null),r.emit("plotly_sliderend",{slider:h,step:h.steps[h.active]})}n.on("mouseup",c),n.on("touchend",c)}e.on("mousedown",o),e.on("touchstart",o)}function ghe(e,r){var t=e.selectAll("rect."+St.tickRectClass).data(r._visibleSteps),a=r._dims;t.enter().append("rect").classed(St.tickRectClass,!0),t.exit().remove(),t.attr({width:r.tickwidth+"px","shape-rendering":"crispEdges"}),t.each(function(n,i){var o=i%a.labelStride===0,l=Kl.select(this);l.attr({height:o?r.ticklen:r.minorticklen}).call(X0.fill,r.tickcolor),Ql.setTranslate(l,r8(r,i/(r._stepCount-1))-.5*r.tickwidth,(o?St.tickOffset:St.minorTickOffset)+a.currentValueTotalHeight)})}function yhe(e){var r=e._dims;r.labelSteps=[];for(var t=e._stepCount,a=0;a<t;a+=r.labelStride)r.labelSteps.push({fraction:a/(t-1),step:e._visibleSteps[a]})}function ZI(e,r,t){for(var a=e.select("rect."+St.gripRectClass),n=0,i=0;i<r._stepCount;i++)if(r._visibleSteps[i]._index===r.active){n=i;break}var o=r8(r,n/(r._stepCount-1));if(!r._invokingCommand){var l=a;t&&r.transition.duration>0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",uhe(o-St.gripWidth*.5,r._dims.currentValueTotalHeight))}}function r8(e,r){var t=e._dims;return t.inputAreaStart+St.stepInset+(t.inputAreaLength-2*St.stepInset)*Math.min(1,Math.max(0,r))}function GI(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-St.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*St.stepInset-2*t.inputAreaStart)))}function bhe(e,r,t){var a=t._dims,n=Fo.ensureSingle(e,"rect",St.railTouchRectClass,function(i){i.call(WI,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,St.tickOffset+t.ticklen+a.labelHeight)}).call(X0.fill,t.bgcolor).attr("opacity",0),Ql.setTranslate(n,0,a.currentValueTotalHeight)}function _he(e,r){var t=r._dims,a=t.inputAreaLength-St.railInset*2,n=Fo.ensureSingle(e,"rect",St.railRectClass);n.attr({width:a,height:St.railWidth,rx:St.railRadius,ry:St.railRadius,"shape-rendering":"crispEdges"}).call(X0.stroke,r.bordercolor).call(X0.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Ql.setTranslate(n,St.railInset,(t.inputAreaWidth-St.railWidth)*.5+t.currentValueTotalHeight)}});var QI=le((Z9e,KI)=>{"use strict";var xhe=(Kh(),Tr(Jh));KI.exports={moduleType:"component",name:xhe.name,layoutAttributes:J9(),supplyLayoutDefaults:OI(),draw:JI()}});var A3=le(($9e,rH)=>{"use strict";var eH=zl();rH.exports={bgcolor:{valType:"color",dflt:eH.background,editType:"plot"},bordercolor:{valType:"color",dflt:eH.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var t8=le((J9e,tH)=>{"use strict";tH.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var M3={};Ha(M3,{bgClassName:()=>Mhe,containerClassName:()=>Ahe,extraPad:()=>jhe,grabAreaCursor:()=>Uhe,grabAreaFill:()=>Ohe,grabAreaMaxClassName:()=>qhe,grabAreaMinClassName:()=>Fhe,grabAreaWidth:()=>Ghe,grabberMaxClassName:()=>Lhe,grabberMinClassName:()=>Dhe,handleMaxClassName:()=>Phe,handleMinClassName:()=>Ehe,handleRadius:()=>Vhe,handleStrokeWidth:()=>Xhe,handleWidth:()=>Yhe,maskColor:()=>Nhe,maskMaxClassName:()=>Che,maskMaxOppAxisClassName:()=>zhe,maskMinClassName:()=>khe,maskMinOppAxisClassName:()=>Rhe,maskOppAxisColor:()=>Bhe,name:()=>whe,rangePlotClassName:()=>The,slideBoxClassName:()=>She,slideBoxCursor:()=>Hhe,slideBoxFill:()=>Ihe});var whe,Ahe,Mhe,The,khe,Che,She,Dhe,Fhe,Ehe,Lhe,qhe,Phe,Rhe,zhe,Nhe,Bhe,Ihe,Hhe,Ohe,Uhe,Ghe,Yhe,Vhe,Xhe,jhe,T3=Ia(()=>{"use strict";whe="rangeslider",Ahe="rangeslider-container",Mhe="rangeslider-bg",The="rangeslider-rangeplot",khe="rangeslider-mask-min",Che="rangeslider-mask-max",She="rangeslider-slidebox",Dhe="rangeslider-grabber-min",Fhe="rangeslider-grabarea-min",Ehe="rangeslider-handle-min",Lhe="rangeslider-grabber-max",qhe="rangeslider-grabarea-max",Phe="rangeslider-handle-max",Rhe="rangeslider-mask-min-opp-axis",zhe="rangeslider-mask-max-opp-axis",Nhe="rgba(0,0,0,0.4)",Bhe="rgba(0,0,0,0.2)",Ihe="transparent",Hhe="ew-resize",Ohe="transparent",Uhe="col-resize",Ghe=10,Yhe=4,Vhe=1,Xhe=1,jhe=15});var iH=le(C3=>{"use strict";var Whe=Cn(),Zhe=si(),aH=(T3(),Tr(M3)),$he=(li(),Tr(oi)).LINE_SPACING,k3=aH.name;function nH(e){var r=e&&e[k3];return r&&r.visible}C3.isVisible=nH;C3.makeData=function(e){for(var r=Whe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n<r.length;n++){var i=r[n];if(nH(i)){a.push(i);var o=i[k3];o._id=k3+i._id,o._height=(e.height-t.b-t.t)*o.thickness,o._offsetShift=Math.floor(o.borderwidth/2)}}e._rangeSliderData=a};C3.autoMarginOpts=function(e,r){var t=e._fullLayout,a=r[k3],n=r._id.charAt(0),i=0,o=0;if(r.side==="bottom"&&(i=r._depth,r.title.text!==t._dfltTitle[n])){o=1.5*r.title.font.size+10+a._offsetShift;var l=(r.title.text.match(Zhe.BR_TAG_ALL)||[]).length;o+=l*r.title.font.size*$he}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:a._height+i+Math.max(t.margin.b,o),pad:aH.extraPad+a._offsetShift*2}}});var uH=le((Q9e,sH)=>{"use strict";var S3=mr(),oH=ka(),lH=Cn(),Jhe=A3(),Khe=t8();sH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;S3.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=oH.newContainer(i,"rangeslider");function s(M,T){return S3.coerce(o,l,Jhe,M,T)}var u,f;function c(M,T){return S3.coerce(u,f,Khe,M,T)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===lH.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),p=S3.simpleMap(m,lH.id2name),y=0;y<p.length;y++){var b=p[y];u=o[b]||{},f=oH.newContainer(l,b,"yaxis");var C=t[b],x;u.range&&C.isValidRange(u.range)&&(x="fixed");var _=c("rangemode",x);_!=="match"&&c("range",C.range.slice())}l._input=o}}});var cH=le((e8e,fH)=>{"use strict";var Qhe=Cn().list,ede=L0().getAutoRange,rde=(T3(),Tr(M3));fH.exports=function(r){for(var t=Qhe(r,"x",!0),a=0;a<t.length;a++){var n=t[a],i=n[rde.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=ede(r,n))}}});var pH=le((r8e,dH)=>{"use strict";var D3=Ft(),tde=_t(),ade=Sn(),nn=mr(),F3=nn.strTranslate,hH=ha(),j0=qt(),nde=Uv(),ide=D9(),a8=Cn(),ode=Zo(),lde=P0(),Rt=(T3(),Tr(M3));dH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a<t.length;a++){var n=t[a][Rt.name];n._clipId=n._id+"-"+r._uid}function i(l){return l._name}var o=r._infolayer.selectAll("g."+Rt.containerClassName).data(t,i);o.exit().each(function(l){var s=l[Rt.name];r._topdefs.select("#"+s._clipId).remove()}).remove(),t.length!==0&&(o.enter().append("g").classed(Rt.containerClassName,!0).attr("pointer-events","all"),o.each(function(l){var s=D3.select(this),u=l[Rt.name],f=r[a8.id2name(l.anchor)],c=u[a8.id2name(l.anchor)];if(u.range){var h=nn.simpleMap(u.range,l.r2l),d=nn.simpleMap(l.range,l.r2l),m;d[0]<d[1]?m=[Math.min(h[0],d[0]),Math.max(h[1],d[1])]:m=[Math.max(h[0],d[0]),Math.min(h[1],d[1])],u.range=u._input.range=nn.simpleMap(m,l.l2r)}l.cleanRange("rangeslider.range");var p=r._size,y=l.domain;u._width=p.w*(y[1]-y[0]);var b=Math.round(p.l+p.w*y[0]),C=Math.round(p.t+p.h*(1-l._counterDomainMin)+(l.side==="bottom"?l._depth:0)+u._offsetShift+Rt.extraPad);s.attr("transform",F3(b,C)),u._rl=nn.simpleMap(u.range,l.r2l);var x=u._rl[0],_=u._rl[1],M=_-x;if(u.p2d=function(H){return H/u._width*M+x},u.d2p=function(H){return(H-x)/M*u._width},l.rangebreaks){var T=l.locateBreaks(x,_);if(T.length){var A,E,P=0;for(A=0;A<T.length;A++)E=T[A],P+=E.max-E.min;var z=u._width/(_-x-P),B=[-z*x];for(A=0;A<T.length;A++)E=T[A],B.push(B[B.length-1]-z*(E.max-E.min));for(u.d2p=function(H){for(var Q=B[0],oe=0;oe<T.length;oe++){var re=T[oe];if(H>=re.max)Q=B[oe+1];else if(H<re.min)break}return Q+z*H},A=0;A<T.length;A++)E=T[A],E.pmin=u.d2p(E.min),E.pmax=u.d2p(E.max);u.p2d=function(H){for(var Q=B[0],oe=0;oe<T.length;oe++){var re=T[oe];if(H>=re.pmax)Q=B[oe+1];else if(H<re.pmin)break}return(H-Q)/z}}}if(c.rangemode!=="match"){var X=f.r2l(c.range[0]),I=f.r2l(c.range[1]),V=I-X;u.d2pOppAxis=function(H){return(H-X)/V*u._height}}s.call(cde,e,l,u).call(vde,e,l,u).call(hde,e,l,u).call(pde,e,l,u,c).call(mde,e,l,u).call(gde,e,l,u),sde(s,e,l,u),fde(s,e,l,u,f,c),l.side==="bottom"&&nde.draw(e,l._id+"title",{propContainer:l,propName:l._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:l._offset+l._length/2,y:C+u._height+u._offsetShift+10+1.5*l.title.font.size,"text-anchor":"middle"}})}))};function vH(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function sde(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Rt.slideBoxClassName).node(),i=e.select("rect."+Rt.grabAreaMinClassName).node(),o=e.select("rect."+Rt.grabAreaMaxClassName).node();function l(){var s=D3.event,u=s.target,f=vH(s),c=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),m=ode.coverSlip();this.addEventListener("touchmove",p),this.addEventListener("touchend",y),m.addEventListener("mousemove",p),m.addEventListener("mouseup",y);function p(b){var C=vH(b),x=+C-f,_,M,T;switch(u){case n:if(T="ew-resize",h+x>t._length||d+x<0)return;_=h+x,M=d+x;break;case i:if(T="col-resize",h+x>t._length)return;_=h+x,M=d;break;case o:if(T="col-resize",d+x<0)return;_=h,M=d+x;break;default:T="ew-resize",_=c,M=c+x;break}if(M<_){var A=M;M=_,_=A}a._pixelMin=_,a._pixelMax=M,lde(D3.select(m),T),ude(e,r,t,a)}function y(){m.removeEventListener("mousemove",p),m.removeEventListener("mouseup",y),this.removeEventListener("touchmove",p),this.removeEventListener("touchend",y),nn.removeElement(m)}}e.on("mousedown",l),e.on("touchstart",l)}function ude(e,r,t,a){function n(l){return t.l2r(nn.constrain(l,a._rl[0],a._rl[1]))}var i=n(a.p2d(a._pixelMin)),o=n(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){tde.call("_guiRelayout",r,t._name+".range",[i,o])})}function fde(e,r,t,a,n,i){var o=Rt.handleWidth/2;function l(b){return nn.constrain(b,0,a._width)}function s(b){return nn.constrain(b,0,a._height)}function u(b){return nn.constrain(b,-o,a._width+o)}var f=l(a.d2p(t._rl[0])),c=l(a.d2p(t._rl[1]));if(e.select("rect."+Rt.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+Rt.maskMinClassName).attr("width",f),e.select("rect."+Rt.maskMaxClassName).attr("x",c).attr("width",a._width-c),i.rangemode!=="match"){var h=a._height-s(a.d2pOppAxis(n._rl[1])),d=a._height-s(a.d2pOppAxis(n._rl[0]));e.select("rect."+Rt.maskMinOppAxisClassName).attr("x",f).attr("height",h).attr("width",c-f),e.select("rect."+Rt.maskMaxOppAxisClassName).attr("x",f).attr("y",d).attr("height",a._height-d).attr("width",c-f),e.select("rect."+Rt.slideBoxClassName).attr("y",h).attr("height",d-h)}var m=.5,p=Math.round(u(f-o))-m,y=Math.round(u(c-o))+m;e.select("g."+Rt.grabberMinClassName).attr("transform",F3(p,m)),e.select("g."+Rt.grabberMaxClassName).attr("transform",F3(y,m))}function cde(e,r,t,a){var n=nn.ensureSingle(e,"rect",Rt.bgClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=a.borderwidth%2===0?a.borderwidth:a.borderwidth-1,o=-a._offsetShift,l=hH.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:F3(o,o),"stroke-width":l}).call(j0.stroke,a.bordercolor).call(j0.fill,a.bgcolor)}function vde(e,r,t,a){var n=r._fullLayout,i=nn.ensureSingleById(n._topdefs,"clipPath",a._clipId,function(o){o.append("rect").attr({x:0,y:0})});i.select("rect").attr({width:a._width,height:a._height})}function hde(e,r,t,a){var n=r.calcdata,i=e.selectAll("g."+Rt.rangePlotClassName).data(t._subplotsWith,nn.identity);i.enter().append("g").attr("class",function(l){return Rt.rangePlotClassName+" "+l}).call(hH.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,s){var u=D3.select(this),f=s===0,c=a8.getFromId(r,l,"y"),h=c._name,d=a[h],m={data:[],layout:{xaxis:{type:t.type,domain:[0,1],range:a.range.slice(),calendar:t.calendar},width:a._width,height:a._height,margin:{t:0,b:0,l:0,r:0}},_context:r._context};t.rangebreaks&&(m.layout.xaxis.rangebreaks=t.rangebreaks),m.layout[h]={type:c.type,domain:[0,1],range:d.rangemode!=="match"?d.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(m.layout[h].rangebreaks=c.rangebreaks),ade.supplyDefaults(m);var p=m._fullLayout.xaxis,y=m._fullLayout[h];p.clearCalc(),p.setScale(),y.clearCalc(),y.setScale();var b={id:l,plotgroup:u,xaxis:p,yaxis:y,isRangePlot:!0};f?o=b:(b.mainplot="xy",b.mainplotinfo=o),ide.rangePlot(r,b,dde(n,l))})}function dde(e,r){for(var t=[],a=0;a<e.length;a++){var n=e[a],i=n[0].trace;i.xaxis+i.yaxis===r&&t.push(n)}return t}function pde(e,r,t,a,n){var i=nn.ensureSingle(e,"rect",Rt.maskMinClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})});i.attr("height",a._height).call(j0.fill,Rt.maskColor);var o=nn.ensureSingle(e,"rect",Rt.maskMaxClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});if(o.attr("height",a._height).call(j0.fill,Rt.maskColor),n.rangemode!=="match"){var l=nn.ensureSingle(e,"rect",Rt.maskMinOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",a._width).call(j0.fill,Rt.maskOppAxisColor);var s=nn.ensureSingle(e,"rect",Rt.maskMaxOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});s.attr("width",a._width).style("border-top",Rt.maskOppBorder).call(j0.fill,Rt.maskOppAxisColor)}}function mde(e,r,t,a){if(!r._context.staticPlot){var n=nn.ensureSingle(e,"rect",Rt.slideBoxClassName,function(i){i.attr({y:0,cursor:Rt.slideBoxCursor,"shape-rendering":"crispEdges"})});n.attr({height:a._height,fill:Rt.slideBoxFill})}}function gde(e,r,t,a){var n=nn.ensureSingle(e,"g",Rt.grabberMinClassName),i=nn.ensureSingle(e,"g",Rt.grabberMaxClassName),o={x:0,width:Rt.handleWidth,rx:Rt.handleRadius,fill:j0.background,stroke:j0.defaultLine,"stroke-width":Rt.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(a._height/4),height:Math.round(a._height/2)},s=nn.ensureSingle(n,"rect",Rt.handleMinClassName,function(d){d.attr(o)});s.attr(l);var u=nn.ensureSingle(i,"rect",Rt.handleMaxClassName,function(d){d.attr(o)});u.attr(l);var f={width:Rt.grabAreaWidth,x:0,y:0,fill:Rt.grabAreaFill,cursor:r._context.staticPlot?void 0:Rt.grabAreaCursor},c=nn.ensureSingle(n,"rect",Rt.grabAreaMinClassName,function(d){d.attr(f)});c.attr("height",a._height);var h=nn.ensureSingle(i,"rect",Rt.grabAreaMaxClassName,function(d){d.attr(f)});h.attr("height",a._height)}});var gH=le((t8e,mH)=>{"use strict";var yde=mr(),bde=A3(),_de=t8(),n8=iH();mH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:yde.extendFlat({},bde,{yaxis:_de})}}},layoutAttributes:A3(),handleDefaults:uH(),calcAutorange:cH(),draw:pH(),isVisible:n8.isVisible,makeData:n8.makeData,autoMarginOpts:n8.autoMarginOpts}});var E3=le((a8e,bH)=>{"use strict";var xde=gi(),yH=zl(),wde=ka().templatedArray,Ade=wde("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});bH.exports={visible:{valType:"boolean",editType:"plot"},buttons:Ade,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:xde({editType:"plot"}),bgcolor:{valType:"color",dflt:yH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:yH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var i8={};Ha(i8,{darkAmount:()=>Dde,lightAmount:()=>Sde,minButtonWidth:()=>Tde,rx:()=>kde,ry:()=>Cde,yPad:()=>Mde});var Mde,Tde,kde,Cde,Sde,Dde,o8=Ia(()=>{"use strict";Mde=.02,Tde=30,kde=3,Cde=3,Sde=25,Dde=10});var wH=le((n8e,xH)=>{"use strict";var L3=mr(),Fde=qt(),Ede=ka(),Lde=Ul(),_H=E3(),l8=(o8(),Tr(i8));xH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=Ede.newContainer(t,"rangeselector");function s(d,m){return L3.coerce(o,l,_H,d,m)}var u=Lde(o,l,{name:"buttons",handleItemDefaults:qde,calendar:i}),f=s("visible",u.length>0);if(f){var c=Pde(t,a,n);s("x",c[0]),s("y",c[1]),L3.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),L3.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",Fde.contrast(h,l8.lightAmount,l8.darkAmount)),s("bordercolor"),s("borderwidth")}};function qde(e,r,t,a){var n=a.calendar;function i(s,u){return L3.coerce(e,r,_H.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Pde(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i<a.length;i++){var o=r[a[i]].domain;o&&(n=Math.max(o[1],n))}return[e.domain[0],n+l8.yPad]}});var MH=le((i8e,AH)=>{"use strict";var Rde=Ty(),zde=mr().titleCase;AH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Nde(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Nde(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Rde["utc"+zde(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var LH=le((o8e,EH)=>{"use strict";var P3=Ft(),Bde=_t(),Ide=Sn(),TH=qt(),FH=ha(),Gu=mr(),kH=Gu.strTranslate,q3=si(),Hde=Cn(),f8=(li(),Tr(oi)),CH=f8.LINE_SPACING,SH=f8.FROM_TL,DH=f8.FROM_BR,u8=(o8(),Tr(i8)),Ode=MH();EH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Ude(r),Gde);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=P3.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Gu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=P3.select(this),c=Ode(o,u);u._isActive=Yde(o,u,c),f.call(s8,l,u),f.call(Xde,l,u,r),f.on("click",function(){r._dragged||Bde.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(s8,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(s8,l,u)})}),Wde(r,s,l,o._name,i)})};function Ude(e){for(var r=Hde.list(e,"x",!0),t=[],a=0;a<r.length;a++){var n=r[a];n.rangeselector&&n.rangeselector.visible&&t.push(n)}return t}function Gde(e){return e._id}function Yde(e,r,t){if(r.step==="all")return e.autorange===!0;var a=Object.keys(t);return e.range[0]===t[a[0]]&&e.range[1]===t[a[1]]}function s8(e,r,t){var a=Gu.ensureSingle(e,"rect","selector-rect",function(n){n.attr("shape-rendering","crispEdges")});a.attr({rx:u8.rx,ry:u8.ry}),a.call(TH.stroke,r.bordercolor).call(TH.fill,Vde(r,t)).style("stroke-width",r.borderwidth+"px")}function Vde(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function Xde(e,r,t,a){function n(o){q3.convertToTspans(o,a)}var i=Gu.ensureSingle(e,"text","selector-text",function(o){o.attr("text-anchor","middle")});i.call(FH.font,r.font).text(jde(t,a._fullLayout._meta)).call(n)}function jde(e,r){return e.label?r?Gu.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function Wde(e,r,t,a,n){var i=0,o=0,l=t.borderwidth;r.each(function(){var d=P3.select(this),m=d.select(".selector-text"),p=t.font.size*CH,y=Math.max(p*q3.lineCount(m),16)+3;o=Math.max(o,y)}),r.each(function(){var d=P3.select(this),m=d.select(".selector-rect"),p=d.select(".selector-text"),y=p.node()&&FH.bBox(p.node()).width,b=t.font.size*CH,C=q3.lineCount(p),x=Math.max(y+10,u8.minButtonWidth);d.attr("transform",kH(l+i,l)),m.attr({x:0,y:0,width:x,height:o}),q3.positionText(p,x/2,o/2-(C-1)*b/2+3),i+=x+5});var s=e._fullLayout._size,u=s.l+s.w*t.x,f=s.t+s.h*(1-t.y),c="left";Gu.isRightAnchor(t)&&(u-=i,c="right"),Gu.isCenterAnchor(t)&&(u-=i/2,c="center");var h="top";Gu.isBottomAnchor(t)&&(f-=o,h="bottom"),Gu.isMiddleAnchor(t)&&(f-=o/2,h="middle"),i=Math.ceil(i),o=Math.ceil(o),u=Math.round(u),f=Math.round(f),Ide.autoMargin(e,a+"-range-selector",{x:t.x,y:t.y,l:i*SH[c],r:i*DH[c],b:o*DH[h],t:o*SH[h]}),n.attr("transform",kH(u,f))}});var PH=le((l8e,qH)=>{"use strict";qH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:E3()}}},layoutAttributes:E3(),handleDefaults:wH(),draw:LH()}});var R3=le(c8=>{"use strict";var RH=Tn().extendFlat;c8.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",o={x:RH({},t,{}),y:RH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};c8.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l<o.columns?n=o._domains.x[l]:delete e.domain.column);var s=t("domain.row");s!==void 0&&(s<o.rows?i=o._domains.y[s]:delete e.domain.row)}var u=t("domain.x",n),f=t("domain.y",i);u[0]<u[1]||(e.domain.x=n.slice()),f[0]<f[1]||(e.domain.y=i.slice())}});var HH=le((u8e,IH)=>{"use strict";var Zde=mr(),$de=(k1(),Tr(Mv)).counter,Jde=R3().attributes,zH=(Nn(),Tr(zn)).idRegex,Kde=ka(),v8={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[$de("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[zH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[zH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Jde({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function z3(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Qde(e,r){var t=e.grid||{},a=z3(r,t,"x"),n=z3(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=Kde.newContainer(r,"grid");function h(T,A){return Zde.coerce(t,c,v8,T,A)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!o&&!l){var p=h("pattern")==="independent";p&&(i=!0)}c._hasSubplotGrid=i;var y=h("roworder"),b=y==="top to bottom",C=i?.2:.1,x=i?.3:.1,_,M;s&&r._splomGridDflt&&(_=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:NH("x",h,C,_,m),y:NH("y",h,x,M,d,b)}}function NH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),h=0;h<n;h++){var d=u+f*h;s[i?n-1-h:h]=[d,d+c]}return s}function epe(e,r){var t=r.grid;if(!(!t||!t._domains)){var a=e.grid||{},n=r._subplots,i=t._hasSubplotGrid,o=t.rows,l=t.columns,s=t.pattern==="independent",u,f,c,h,d,m,p,y=t._axisMap={};if(i){var b=a.subplots||[];m=t.subplots=new Array(o);var C=1;for(u=0;u<o;u++){var x=m[u]=new Array(l),_=b[u]||[];for(f=0;f<l;f++)if(s?(d=C===1?"xy":"x"+C+"y"+C,C++):d=_[f],x[f]="",n.cartesian.indexOf(d)!==-1){if(p=d.indexOf("y"),c=d.slice(0,p),h=d.slice(p),y[c]!==void 0&&y[c]!==f||y[h]!==void 0&&y[h]!==u)continue;x[f]=d,y[c]=f,y[h]=u}}}else{var M=z3(r,a,"x"),T=z3(r,a,"y");t.xaxes=BH(M,n.xaxis,l,y,"x"),t.yaxes=BH(T,n.yaxis,o,y,"y")}var A=t._anchors={},E=t.roworder==="top to bottom";for(var P in y){var z=P.charAt(0),B=t[z+"side"],X,I,V;if(B.length<8)A[P]="free";else if(z==="x"){if(B.charAt(0)==="t"===E?(X=0,I=1,V=o):(X=o-1,I=-1,V=-1),i){var H=y[P];for(u=X;u!==V;u+=I)if(d=m[u][H],!!d&&(p=d.indexOf("y"),d.slice(0,p)===P)){A[P]=d.slice(p);break}}else for(u=X;u!==V;u+=I)if(h=t.yaxes[u],n.cartesian.indexOf(P+h)!==-1){A[P]=h;break}}else if(B.charAt(0)==="l"?(X=0,I=1,V=l):(X=l-1,I=-1,V=-1),i){var Q=y[P];for(u=X;u!==V;u+=I)if(d=m[Q][u],!!d&&(p=d.indexOf("y"),d.slice(p)===P)){A[P]=d.slice(0,p);break}}else for(u=X;u!==V;u+=I)if(c=t.xaxes[u],n.cartesian.indexOf(c+P)!==-1){A[P]=c;break}}}}function BH(e,r,t,a,n){var i=new Array(t),o;function l(s,u){r.indexOf(u)!==-1&&a[u]===void 0?(i[s]=u,a[u]=s):i[s]=""}if(Array.isArray(e))for(o=0;o<t;o++)l(o,e[o]);else for(l(0,n),o=1;o<t;o++)l(o,n+(o+1));return i}IH.exports={moduleType:"component",name:"grid",schema:{layout:{grid:v8}},layoutAttributes:v8,sizeDefaults:Qde,contentDefaults:epe}});var h8=le((f8e,OH)=>{"use strict";OH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var YH=le((c8e,GH)=>{"use strict";var UH=Wt(),rpe=_t(),tpe=mr(),ape=ka(),npe=h8();GH.exports=function(e,r,t,a){var n="error_"+a.axis,i=ape.newContainer(r,n),o=e[n]||{};function l(m,p){return tpe.coerce(o,i,npe,m,p)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(h,!(o.color||UH(o.thickness)||UH(o.width)))}(!a.inherit||!i[h])&&(l("color",t),l("thickness"),l("width",rpe.traceIs(r,"gl3d")?0:4))}}});var d8=le((v8e,XH)=>{"use strict";XH.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],h=+i[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var o=VH(t,r.value),l=VH(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function VH(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var ZH=le((h8e,WH)=>{"use strict";var p8=Wt(),ipe=_t(),m8=Oa(),ope=mr(),lpe=d8();WH.exports=function(r){for(var t=r.calcdata,a=0;a<t.length;a++){var n=t[a],i=n[0].trace;if(i.visible===!0&&ipe.traceIs(i,"errorBarsOK")){var o=m8.getFromId(r,i.xaxis),l=m8.getFromId(r,i.yaxis);jH(n,i,o,"x"),jH(n,i,l,"y")}}};function jH(e,r,t,a){var n=r["error_"+a]||{},i=n.visible&&["linear","log"].indexOf(t.type)!==-1,o=[];if(i){for(var l=lpe(n),s=0;s<e.length;s++){var u=e[s],f=u.i;if(f===void 0)f=s;else if(f===null)continue;var c=u[a];if(p8(t.c2l(c))){var h=l(c,f);if(p8(h[0])&&p8(h[1])){var d=u[a+"s"]=c-h[0],m=u[a+"h"]=c+h[1];o.push(d,m)}}}var p=t._id,y=r._extremes[p],b=m8.findExtremes(t,o,ope.extendFlat({tozero:y.opts.tozero},{padded:!0}));y.min=y.min.concat(b.min),y.max=y.max.concat(b.max)}}});var KH=le((d8e,JH)=>{"use strict";var $H=Ft(),W0=Wt(),spe=ha(),upe=_i();JH.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},m;c.ids&&(m=function(C){return C.id});var p=upe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=$H.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),spe.setClipUrl(y,a.layerClipId,r),y.each(function(C){var x=$H.select(this),_=fpe(C,o,l);if(!(p&&!C.vis)){var M,T=x.select("path.yerror");if(d.visible&&W0(_.x)&&W0(_.yh)&&W0(_.ys)){var A=d.width;M="M"+(_.x-A)+","+_.yh+"h"+2*A+"m-"+A+",0V"+_.ys,_.noYS||(M+="m-"+A+",0h"+2*A),i=!T.size(),i?T=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(T=T.transition().duration(n.duration).ease(n.easing)),T.attr("d",M)}else T.remove();var E=x.select("path.xerror");if(h.visible&&W0(_.y)&&W0(_.xh)&&W0(_.xs)){var P=(h.copy_ystyle?d:h).width;M="M"+_.xh+","+(_.y-P)+"v"+2*P+"m0,-"+P+"H"+_.xs,_.noXS||(M+="m0,-"+P+"v"+2*P),i=!E.size(),i?E=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(E=E.transition().duration(n.duration).ease(n.easing)),E.attr("d",M)}else E.remove()}})}})};function fpe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),W0(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),W0(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var rO=le((p8e,eO)=>{"use strict";var cpe=Ft(),QH=qt();eO.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=cpe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(QH.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(QH.stroke,i.color)})}});var nO=le((m8e,aO)=>{"use strict";var ed=mr(),tO=Yo().overrideAll,rd=h8(),Ec={error_x:ed.extendFlat({},rd),error_y:ed.extendFlat({},rd)};delete Ec.error_x.copy_zstyle;delete Ec.error_y.copy_zstyle;delete Ec.error_y.copy_ystyle;var td={error_x:ed.extendFlat({},rd),error_y:ed.extendFlat({},rd),error_z:ed.extendFlat({},rd)};delete td.error_x.copy_ystyle;delete td.error_y.copy_ystyle;delete td.error_z.copy_ystyle;delete td.error_z.copy_zstyle;aO.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ec,bar:Ec,histogram:Ec,scatter3d:tO(td,"calc","nested"),scattergl:tO(Ec,"calc","nested")}},supplyDefaults:YH(),calc:ZH(),makeComputeError:d8(),plot:KH(),style:rO(),hoverInfo:vpe};function vpe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var iO={};Ha(iO,{cn:()=>hpe});var hpe,oO=Ia(()=>{"use strict";hpe={colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}});var dO=le((g8e,hO)=>{"use strict";var Z0=Ft(),B3=Sn(),lO=_t(),Yu=Oa(),N3=Zo(),ul=mr(),rs=ul.strTranslate,vO=Tn().extendFlat,g8=P0(),es=ha(),F2=qt(),dpe=Uv(),ppe=si(),mpe=Ds().flipScale,gpe=T9(),ype=k9(),bpe=Ol(),b8=(li(),Tr(oi)),sO=b8.LINE_SPACING,uO=b8.FROM_TL,fO=b8.FROM_BR,Ua=(oO(),Tr(iO)).cn;function _pe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Ua.colorbar).data(xpe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Ua.colorbar,!0),t.each(function(a){var n=Z0.select(this);ul.ensureSingle(n,"rect",Ua.cbbg),ul.ensureSingle(n,"g",Ua.cbfills),ul.ensureSingle(n,"g",Ua.cblines),ul.ensureSingle(n,"g",Ua.cbaxis,function(o){o.classed(Ua.crisp,!0)}),ul.ensureSingle(n,"g",Ua.cbtitleunshift,function(o){o.append("g").classed(Ua.cbtitle,!0)}),ul.ensureSingle(n,"rect",Ua.cboutline);var i=wpe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Ape(n,a,e)}),t.exit().each(function(a){B3.autoMargin(e,a._id)}).remove(),t.order()}function xpe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(x){return vO(x,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?mpe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f<t.length;f++){var c=t[f];if(o=c[0].trace,!!o._module){var h=o._module.colorbar;if(o.visible===!0&&h)for(var d=Array.isArray(h),m=d?h:[h],p=0;p<m.length;p++){l=m[p];var y=l.container;i=y?o[y]:o,i&&i.showscale&&(n=s(i.colorbar),n._id="cb"+o.uid+(d&&y?"-"+y:""),n._traceIndex=o.index,n._propPrefix=(y?y+".":"")+"colorbar.",n._meta=o._meta,u(),a.push(n))}}}for(var b in r._colorAxes)if(i=r[b],i.showscale){var C=r._colorAxes[b];n=s(i.colorbar),n._id="cb"+b,n._propPrefix=b+".colorbar.",n._meta=r._meta,l={min:"cmin",max:"cmax"},C[0]!=="heatmap"&&(o=C[1],l.calc=o._module.colorbar.calc),u(),a.push(n)}return a}var y8=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],cO=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function wpe(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,o=r.thickness,l=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,h=r.yanchor,d=r.xpad,m=r.ypad,p=r.x,y=a?r.y:1-r.y,b=r.yref==="paper",C=r.xref==="paper",x=t._fullLayout,_=x._size,M=r._fillcolor,T=r._line,A=r.title,E=A.side,P=r._zrange||Z0.extent((typeof M=="function"?M:T.color).domain()),z=typeof T.color=="function"?T.color:function(){return T.color},B=typeof M=="function"?M:function(){return M},X=r._levels,I=Mpe(t,r,P),V=I.fill,H=I.line,Q=Math.round(o*(l==="fraction"?a?_.w:_.h:1)),oe=Q/(a?_.w:_.h),re=Math.round(n*(i==="fraction"?a?_.h:_.w:1)),te=re/(a?_.h:_.w),ie=C?_.w:t._fullLayout.width,ce=b?_.h:t._fullLayout.height,Me=Math.round(a?p*ie+d:y*ce+m),De={center:.5,right:1}[c]||0,Ie={top:1,middle:.5}[h]||0,Ue=a?p-De*oe:y-Ie*oe,ke=a?y-Ie*te:p-De*te,je=Math.round(a?ce*(1-ke):ie*ke);r._lenFrac=te,r._thickFrac=oe,r._uFrac=Ue,r._vFrac=ke;var W=r._axis=Tpe(t,r,P);W.position=oe+(a?p+d/_.w:y+m/_.h);var ee=["top","bottom"].indexOf(E)!==-1;if(a&&ee&&(W.title.side=E,W.titlex=p+d/_.w,W.titley=ke+(A.side==="top"?te-m/_.h:m/_.h)),!a&&!ee&&(W.title.side=E,W.titley=y+m/_.h,W.titlex=ke+d/_.w),T.color&&r.tickmode==="auto"){W.tickmode="linear",W.tick0=X.start;var me=X.size,K=ul.constrain(re/50,4,15)+1,J=(P[1]-P[0])/((r.nticks||K)*me);if(J>1){var ue=Math.pow(10,Math.floor(Math.log(J)/Math.LN10));me*=ue*ul.roundUp(J/ue,[2,5,10]),(Math.abs(X.start)/X.size+1e-6)%1<2e-6&&(W.tick0=0)}W.dtick=me}var _e=a?m/_.h:d/_.w;W.domain=cO(y8([ke,ke+te],_e),_e),W.setScale(),e.attr("transform",rs(Math.round(_.l),Math.round(_.t)));var Ne=e.select("."+Ua.cbtitleunshift).attr("transform",rs(-Math.round(_.l),-Math.round(_.t))),Je=W.ticklabelposition,ar=W.title.font.size,tr=e.select("."+Ua.cbaxis),fr,Re=0,sr=0;function hr(Te,Oe){var Ar={propContainer:W,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+Ua.cbtitle)},Br=Te.charAt(0)==="h"?Te.slice(1):"h"+Te;e.selectAll("."+Br+",."+Br+"-math-group").remove(),dpe.draw(t,Te,vO(Ar,Oe||{}))}function dr(){if(a&&ee||!a&&!ee){var Te,Oe;E==="top"&&(Te=d+_.l+ie*p,Oe=m+_.t+ce*(1-ke-te)+3+ar*.75),E==="bottom"&&(Te=d+_.l+ie*p,Oe=m+_.t+ce*(1-ke)-3-ar*.25),E==="right"&&(Oe=m+_.t+ce*y+3+ar*.75,Te=d+_.l+ie*ke),hr(W._id+"title",{attributes:{x:Te,y:Oe,"text-anchor":a?"start":"middle"}})}}function Ze(){if(a&&!ee||!a&&ee){var Te=W.position||0,Oe=W._offset+W._length/2,Ar,Br;if(E==="right")Br=Oe,Ar=_.l+ie*Te+10+ar*(W.showticklabels?1:.5);else if(Ar=Oe,E==="bottom"&&(Br=_.t+ce*Te+10+(Je.indexOf("inside")===-1?W.tickfont.size:0)+(W.ticks!=="inside"&&r.ticklen||0)),E==="top"){var Qe=A.text.split("<br>").length;Br=_.t+ce*Te+10-Q-sO*ar*Qe}hr((a?"h":"v")+W._id+"title",{avoid:{selection:Z0.select(t).selectAll("g."+W._id+"tick"),side:E,offsetTop:a?0:_.t,offsetLeft:a?_.l:0,maxShift:a?x.width:x.height},attributes:{x:Ar,y:Br,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function cr(){if(!a&&!ee||a&&ee){var Te=e.select("."+Ua.cbtitle),Oe=Te.select("text"),Ar=[-s/2,s/2],Br=Te.select(".h"+W._id+"title-math-group").node(),Qe=15.6;Oe.node()&&(Qe=parseInt(Oe.node().style.fontSize,10)*sO);var Be;if(Br?(Be=es.bBox(Br),sr=Be.width,Re=Be.height,Re>Qe&&(Ar[1]-=(Re-Qe)/2)):Oe.node()&&!Oe.classed(Ua.jsPlaceholder)&&(Be=es.bBox(Oe.node()),sr=Be.width,Re=Be.height),a){if(Re){if(Re+=5,E==="top")W.domain=cO(W.domain,Re/_.h),Ar[1]*=-1;else{W.domain=y8(W.domain,Re/_.h);var Xe=ppe.lineCount(Oe);Ar[1]+=(1-Xe)*Qe}Te.attr("transform",rs(Ar[0],Ar[1])),W.setScale()}}else sr&&(E==="right"&&(W.domain=y8(W.domain,(sr+ar/2)/_.w)),Te.attr("transform",rs(Ar[0],Ar[1])),W.setScale())}e.selectAll("."+Ua.cbfills+",."+Ua.cblines).attr("transform",a?rs(0,Math.round(_.h*(1-W.domain[1]))):rs(Math.round(_.w*W.domain[0]),0)),tr.attr("transform",a?rs(0,Math.round(-_.t)):rs(Math.round(-_.l),0));var yr=e.select("."+Ua.cbfills).selectAll("rect."+Ua.cbfill).attr("style","").data(V);yr.enter().append("rect").classed(Ua.cbfill,!0).attr("style",""),yr.exit().remove();var Cr=P.map(W.c2p).map(Math.round).sort(function(Or,rr){return Or-rr});yr.each(function(Or,rr){var Sr=[rr===0?P[0]:(V[rr]+V[rr-1])/2,rr===V.length-1?P[1]:(V[rr]+V[rr+1])/2].map(W.c2p).map(Math.round);a&&(Sr[1]=ul.constrain(Sr[1]+(Sr[1]>Sr[0])?1:-1,Cr[0],Cr[1]));var vr=Z0.select(this).attr(a?"x":"y",Me).attr(a?"y":"x",Z0.min(Sr)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(Z0.max(Sr)-Z0.min(Sr),2));if(r._fillgradient)es.gradient(vr,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var jr=B(Or).replace("e-","");vr.attr("fill",F2.hexString(jr))}});var pr=e.select("."+Ua.cblines).selectAll("path."+Ua.cbline).data(T.color&&T.width?H:[]);pr.enter().append("path").classed(Ua.cbline,!0),pr.exit().remove(),pr.each(function(Or){var rr=Me,Sr=Math.round(W.c2p(Or))+T.width/2%1;Z0.select(this).attr("d","M"+(a?rr+","+Sr:Sr+","+rr)+(a?"h":"v")+Q).call(es.lineGroupStyle,T.width,z(Or),T.dash)}),tr.selectAll("g."+W._id+"tick,path").remove();var xr=Me+Q+(s||0)/2-(r.ticks==="outside"?1:0),Rr=Yu.calcTicks(W),Er=Yu.getTickSigns(W)[2];return Yu.drawTicks(t,W,{vals:W.ticks==="inside"?Yu.clipEnds(W,Rr):Rr,layer:tr,path:Yu.makeTickPath(W,xr,Er),transFn:Yu.makeTransTickFn(W)}),Yu.drawLabels(t,W,{vals:Rr,layer:tr,transFn:Yu.makeTransTickLabelFn(W),labelFns:Yu.makeLabelFns(W,xr)})}function Lr(){var Te,Oe=Q+s/2;Je.indexOf("inside")===-1&&(Te=es.bBox(tr.node()),Oe+=a?Te.width:Te.height),fr=Ne.select("text");var Ar=0,Br=a&&E==="top",Qe=!a&&E==="right",Be=0;if(fr.node()&&!fr.classed(Ua.jsPlaceholder)){var Xe,yr=Ne.select(".h"+W._id+"title-math-group").node();yr&&(a&&ee||!a&&!ee)?(Te=es.bBox(yr),Ar=Te.width,Xe=Te.height):(Te=es.bBox(Ne.node()),Ar=Te.right-_.l-(a?Me:je),Xe=Te.bottom-_.t-(a?je:Me),!a&&E==="top"&&(Oe+=Te.height,Be=Te.height)),Qe&&(fr.attr("transform",rs(Ar/2+ar/2,0)),Ar*=2),Oe=Math.max(Oe,a?Ar:Xe)}var Cr=(a?d:m)*2+Oe+u+s/2,pr=0;!a&&A.text&&h==="bottom"&&y<=0&&(pr=Cr/2,Cr+=pr,Be+=pr),x._hColorbarMoveTitle=pr,x._hColorbarMoveCBTitle=Be;var xr=u+s,Rr=(a?Me:je)-xr/2-(a?d:0),Er=(a?je:Me)-(a?re:m+Be-pr);e.select("."+Ua.cbbg).attr("x",Rr).attr("y",Er).attr(a?"width":"height",Math.max(Cr-pr,2)).attr(a?"height":"width",Math.max(re+xr,2)).call(F2.fill,f).call(F2.stroke,r.bordercolor).style("stroke-width",u);var Or=Qe?Math.max(Ar-10,0):0;e.selectAll("."+Ua.cboutline).attr("x",(a?Me:je+d)+Or).attr("y",(a?je+m-re:Me)+(Br?Re:0)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(re-(a?2*m+Re:2*d+Or),2)).call(F2.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var rr=a?De*Cr:0,Sr=a?0:(1-Ie)*Cr-Be;if(rr=C?_.l-rr:-rr,Sr=b?_.t-Sr:-Sr,e.attr("transform",rs(rr,Sr)),!a&&(u||F2.opacity(f)&&!F2.equals(x.paper_bgcolor,f))){var vr=tr.selectAll("text"),jr=vr[0].length,Qr=e.select("."+Ua.cbbg).node(),qr=es.bBox(Qr),Wr=es.getTranslate(e),Ae=2;vr.each(function(ma,ra){var xn=0,on=jr-1;if(ra===xn||ra===on){var Wn=es.bBox(this),Jr=es.getTranslate(this),ua;if(ra===on){var zt=Wn.right+Jr.x,ga=qr.right+Wr.x+je-u-Ae+p;ua=ga-zt,ua>0&&(ua=0)}else if(ra===xn){var ba=Wn.left+Jr.x,_a=qr.left+Wr.x+je+u+Ae;ua=_a-ba,ua<0&&(ua=0)}ua&&(jr<3?this.setAttribute("transform","translate("+ua+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Pe={},ur=uO[c],gr=fO[c],It=uO[h],Yt=fO[h],ia=Cr-Q;a?(i==="pixels"?(Pe.y=y,Pe.t=re*It,Pe.b=re*Yt):(Pe.t=Pe.b=0,Pe.yt=y+n*It,Pe.yb=y-n*Yt),l==="pixels"?(Pe.x=p,Pe.l=Cr*ur,Pe.r=Cr*gr):(Pe.l=ia*ur,Pe.r=ia*gr,Pe.xl=p-o*ur,Pe.xr=p+o*gr)):(i==="pixels"?(Pe.x=p,Pe.l=re*ur,Pe.r=re*gr):(Pe.l=Pe.r=0,Pe.xl=p+n*ur,Pe.xr=p-n*gr),l==="pixels"?(Pe.y=1-y,Pe.t=Cr*It,Pe.b=Cr*Yt):(Pe.t=ia*It,Pe.b=ia*Yt,Pe.yt=y-o*It,Pe.yb=y+o*Yt));var Ta=r.y<.5?"b":"t",Ht=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Zt={r:x.width-Rr-rr,l:Rr+Pe.r,b:x.height-Er-Sr,t:Er+Pe.b};C&&b?B3.autoMargin(t,r._id,Pe):C?t._fullLayout._reservedMargin[r._id][Ta]=Zt[Ta]:b||a?t._fullLayout._reservedMargin[r._id][Ht]=Zt[Ht]:t._fullLayout._reservedMargin[r._id][Ta]=Zt[Ta]}return ul.syncOrAsync([B3.previousPromises,dr,cr,Ze,B3.previousPromises,Lr],t)}function Ape(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;N3.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),g8(e)},moveFn:function(u,f){e.attr("transform",o+rs(u,f)),l=N3.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=N3.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=N3.getCursor(l,s,r.xanchor,r.yanchor);g8(e,c)},doneFn:function(){if(g8(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?lO.call("_guiRestyle",t,u,r._traceIndex):lO.call("_guiRelayout",t,u)}}})}function Mpe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o<c&&n.push(o);if(r._fillgradient)i=[0];else if(typeof r._fillcolor=="function"){var h=r._filllevels;if(h)for(s=h.end+h.size/100,u=h.size,l=0;l<1e5&&(o=h.start+l*u,!(u>0?o>=s:o<=s));l++)o>t[0]&&o<t[1]&&i.push(o);else i=n.map(function(d){return d-a.size/2}),i.push(i[i.length-1]+a.size)}else r._fillcolor&&typeof r._fillcolor=="string"&&(i=[0]);return a.size<0&&(n.reverse(),i.reverse()),{line:n,fill:i}}function Tpe(e,r,t){var a=e._fullLayout,n=r.orientation==="v",i={type:"linear",range:t,tickmode:r.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:r.ticks,ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,showticklabels:r.showticklabels,labelalias:r.labelalias,ticklabelposition:r.ticklabelposition,ticklabeloverflow:r.ticklabeloverflow,ticklabelstep:r.ticklabelstep,tickfont:r.tickfont,tickangle:r.tickangle,tickformat:r.tickformat,exponentformat:r.exponentformat,minexponent:r.minexponent,separatethousands:r.separatethousands,showexponent:r.showexponent,showtickprefix:r.showtickprefix,tickprefix:r.tickprefix,showticksuffix:r.showticksuffix,ticksuffix:r.ticksuffix,title:r.title,showline:!0,anchor:"free",side:n?"right":"bottom",position:1},o=n?"y":"x",l={type:"linear",_id:o+r._id},s={letter:o,font:a.font,noAutotickangles:o==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:a.calendar};function u(f,c){return ul.coerce(i,l,bpe,f,c)}return gpe(i,l,u,s,a),ype(i,l,u,s),l}hO.exports={draw:_pe}});var mO=le((y8e,pO)=>{"use strict";pO.exports={moduleType:"component",name:"colorbar",attributes:Wp(),supplyDefaults:y6(),draw:dO().draw,hasColorbar:l6()}});var yO=le((b8e,gO)=>{"use strict";gO.exports={moduleType:"component",name:"legend",layoutAttributes:hb(),supplyLayoutDefaults:pb(),draw:Eb(),style:Cb()}});var _O=le((_8e,bO)=>{"use strict";bO.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var wO=le((x8e,xO)=>{"use strict";xO.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var x8=le((w8e,kO)=>{"use strict";var kpe=_t(),TO=mr(),_8=TO.extendFlat,AO=TO.extendDeep;function MO(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Cpe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}kO.exports=function(r,t){var a,n=r.data,i=r.layout,o=AO([],n),l=AO({},i,MO(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(a=0;a<u.length;a++)Cpe(u[a])&&(l[u[a]].title={text:""});for(a=0;a<o.length;a++){var f=o[a];f.showscale=!1,f.marker&&(f.marker.showscale=!1),kpe.traceIs(f,"pie-like")&&(f.textposition="none")}}if(Array.isArray(t.annotations))for(a=0;a<t.annotations.length;a++)l.annotations.push(t.annotations[a]);var c=Object.keys(l).filter(function(y){return y.match(/^scene\d*$/)});if(c.length){var h={};for(t.tileClass==="thumbnail"&&(h={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),a=0;a<c.length;a++){var d=l[c[a]];d.xaxis||(d.xaxis={}),d.yaxis||(d.yaxis={}),d.zaxis||(d.zaxis={}),_8(d.xaxis,h),_8(d.yaxis,h),_8(d.zaxis,h),d._scene=null}}var m=document.createElement("div");t.tileClass&&(m.className=t.tileClass);var p={gd:m,td:m,layout:l,data:o,config:{staticPlot:t.staticPlot===void 0?!0:t.staticPlot,plotGlPixelRatio:t.plotGlPixelRatio===void 0?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showTips:t.showTips||!1}};return t.setBackground!=="transparent"&&(p.config.setBackground=t.setBackground||"opaque"),p.gd.defaultLayout=MO(t.tileClass),p}});var DO=le((A8e,SO)=>{"use strict";var Spe=zp().EventEmitter,Dpe=_t(),Fpe=mr(),CO=_c(),Epe=x8(),Lpe=Og(),qpe=Ug();function Ppe(e,r){var t=new Spe,a=Epe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=CO.getDelay(n._fullLayout);setTimeout(function(){var s=Lpe(n),u=document.createElement("canvas");u.id=Fpe.randstr(),t=qpe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=CO.getRedrawFunc(n);return Dpe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}SO.exports=Ppe});var LO=le((M8e,EO)=>{"use strict";var FO=_c(),Rpe={getDelay:FO.getDelay,getRedrawFunc:FO.getRedrawFunc,clone:x8(),toSVG:Og(),svgToImg:Ug(),toImage:DO(),downloadImage:$7()};EO.exports=Rpe});var PO=le(Vu=>{"use strict";Vu.version=Q2().version;N_();wk();var zpe=_t(),ad=Vu.register=zpe.register,A8=BR(),qO=Object.keys(A8);for(I3=0;I3<qO.length;I3++)E2=qO[I3],E2.charAt(0)!=="_"&&(Vu[E2]=A8[E2]),ad({moduleType:"apiMethod",name:E2,fn:A8[E2]});var E2,I3;ad($N());ad([xB(),RB(),Iu(),eI(),hI(),PI(),QI(),gH(),PH(),HH(),nO(),Qp(),mO(),yO(),Yl(),a7()]);ad([_O(),wO()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(ad(window.PlotlyLocales),delete window.PlotlyLocales);Vu.Icons=Hm();var H3=Yl(),w8=Sn();Vu.Plots={resize:w8.resize,graphJson:w8.graphJson,sendDataToCloud:w8.sendDataToCloud};Vu.Fx={hover:H3.hover,unhover:H3.unhover,loneHover:H3.loneHover,loneUnhover:H3.loneUnhover};Vu.Snapshot=LO();Vu.PlotSchema=I1()});var zO=le((k8e,RO)=>{"use strict";RO.exports=PO()});var nd=le((C8e,OO)=>{"use strict";var{hovertemplateAttrs:Npe,texttemplateAttrs:Bpe,templatefallbackAttrs:NO}=Gf(),Ipe=k7(),Xs=bc(),Hpe=Go(),BO=G1(),Ope=Cs().dash,Lc=Tn().extendFlat,Upe=Yo().overrideAll,fl=Xs.marker,IO=Xs.line,HO=fl.line;OO.exports=Upe({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:Lc({},Xs.mode,{dflt:"markers"}),text:Lc({},Xs.text,{}),texttemplate:Bpe({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:NO({editType:"plot"}),hovertext:Lc({},Xs.hovertext,{}),textfont:Xs.textfont,textposition:Xs.textposition,line:{color:IO.color,width:IO.width,dash:Ope},connectgaps:Xs.connectgaps,marker:Lc({symbol:fl.symbol,opacity:fl.opacity,angle:fl.angle,angleref:Lc({},fl.angleref,{values:["previous","up","north"]}),standoff:fl.standoff,size:fl.size,sizeref:fl.sizeref,sizemin:fl.sizemin,sizemode:fl.sizemode,colorbar:fl.colorbar,line:Lc({width:HO.width,dash:HO.dash},BO("marker.line")),gradient:fl.gradient},BO("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Ipe(),selected:Xs.selected,unselected:Xs.unselected,hoverinfo:Lc({},Hpe.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:Npe(),hovertemplatefallback:NO()},"calc","nested")});var GO=le((S8e,UO)=>{"use strict";var M8=mr(),T8=_i(),Gpe=Q7(),Ype=e9(),Vpe=r9(),Xpe=t9(),jpe=nd();UO.exports=function(r,t,a,n){function i(d,m){return M8.coerce(r,t,jpe,d,m)}var o=i("locations"),l;if(o&&o.length){var s=i("geojson"),u;(typeof s=="string"&&s!==""||M8.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="geojson-id"&&i("featureidkey"),l=o.length}else{var c=i("lon")||[],h=i("lat")||[];l=Math.min(c.length,h.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("mode"),T8.hasMarkers(t)&&Gpe(r,t,a,n,i,{gradient:!0}),T8.hasLines(t)&&(Ype(r,t,a,n,i),i("connectgaps")),T8.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),Vpe(r,t,n,i)),i("fill"),t.fill!=="none"&&Xpe(r,t,a,i),M8.coerceSelectionMarkerOpacity(t,i)}});var XO=le((D8e,VO)=>{"use strict";var YO=Oa();VO.exports=function(r,t,a){var n={},i=a[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return n.lonLabel=YO.tickText(o,o.c2l(l[0]),!0).text,n.latLabel=YO.tickText(o,o.c2l(l[1]),!0).text,n}});var JO=le((F8e,$O)=>{"use strict";var k8=Wt(),jO=(Ya(),Tr($a)).BADNUM,Wpe=i9(),Zpe=Bh(),$pe=$g(),Jpe=mr().isArrayOrTypedArray,WO=mr()._;function ZO(e){return e&&typeof e=="string"}$O.exports=function(r,t){var a=Jpe(t.locations),n=a?t.locations.length:t._length,i=new Array(n),o;t.geojson?o=function(h){return ZO(h)||k8(h)}:o=ZO;for(var l=0;l<n;l++){var s=i[l]={};if(a){var u=t.locations[l];s.loc=o(u)?u:null}else{var f=t.lon[l],c=t.lat[l];k8(f)&&k8(c)?s.lonlat=[+f,+c]:s.lonlat=[jO,jO]}}return Zpe(i,t),Wpe(r,t),$pe(i,t),n&&(i[0].t={labels:{lat:WO(r,"lat:")+" ",lon:WO(r,"lon:")+" "}}),i}});var id={};Ha(id,{axesNames:()=>Qpe,clipPad:()=>nme,fillLayers:()=>fme,fitboundsIncompatible:()=>tme,landColor:()=>ome,lataxisSpan:()=>rme,layerNameToAdjective:()=>dme,layers:()=>vme,layersForChoropleth:()=>hme,lineLayers:()=>cme,locationmodeToLayer:()=>sme,lonaxisSpan:()=>eme,precision:()=>ime,projNames:()=>Kpe,scopeDefaults:()=>ame,sphereSVG:()=>ume,waterColor:()=>lme});var Kpe,Qpe,eme,rme,tme,ame,nme,ime,ome,lme,sme,ume,fme,cme,vme,hme,dme,od=Ia(()=>{"use strict";Kpe={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},Qpe=["lonaxis","lataxis"],eme={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},rme={"conic conformal":150,stereographic:179.5,"*":180},tme=new Set(["albers usa","craig","peirce quincuncial","satellite"]),ame={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}},nme=.001,ime=.1,ome="#F0DC82",lme="#3399FF",sme={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},ume={type:"Sphere"},fme={ocean:1,land:1,lakes:1},cme={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},vme=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],hme=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","lakes","rivers","frontplot"],dme={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var C8=le((O3,KO)=>{(function(e,r){typeof O3=="object"&&typeof KO!="undefined"?r(O3):(e=e||self,r(e.topojson=e.topojson||{}))})(O3,function(e){"use strict";function r(x){return x}function t(x){if(x==null)return r;var _,M,T=x.scale[0],A=x.scale[1],E=x.translate[0],P=x.translate[1];return function(z,B){B||(_=M=0);var X=2,I=z.length,V=new Array(I);for(V[0]=(_+=z[0])*T+E,V[1]=(M+=z[1])*A+P;X<I;)V[X]=z[X],++X;return V}}function a(x){var _=t(x.transform),M,T=1/0,A=T,E=-T,P=-T;function z(X){X=_(X),X[0]<T&&(T=X[0]),X[0]>E&&(E=X[0]),X[1]<A&&(A=X[1]),X[1]>P&&(P=X[1])}function B(X){switch(X.type){case"GeometryCollection":X.geometries.forEach(B);break;case"Point":z(X.coordinates);break;case"MultiPoint":X.coordinates.forEach(z);break}}x.arcs.forEach(function(X){for(var I=-1,V=X.length,H;++I<V;)H=_(X[I],I),H[0]<T&&(T=H[0]),H[0]>E&&(E=H[0]),H[1]<A&&(A=H[1]),H[1]>P&&(P=H[1])});for(M in x.objects)B(x.objects[M]);return[T,A,E,P]}function n(x,_){for(var M,T=x.length,A=T-_;A<--T;)M=x[A],x[A++]=x[T],x[T]=M}function i(x,_){return typeof _=="string"&&(_=x.objects[_]),_.type==="GeometryCollection"?{type:"FeatureCollection",features:_.geometries.map(function(M){return o(x,M)})}:o(x,_)}function o(x,_){var M=_.id,T=_.bbox,A=_.properties==null?{}:_.properties,E=l(x,_);return M==null&&T==null?{type:"Feature",properties:A,geometry:E}:T==null?{type:"Feature",id:M,properties:A,geometry:E}:{type:"Feature",id:M,bbox:T,properties:A,geometry:E}}function l(x,_){var M=t(x.transform),T=x.arcs;function A(I,V){V.length&&V.pop();for(var H=T[I<0?~I:I],Q=0,oe=H.length;Q<oe;++Q)V.push(M(H[Q],Q));I<0&&n(V,oe)}function E(I){return M(I)}function P(I){for(var V=[],H=0,Q=I.length;H<Q;++H)A(I[H],V);return V.length<2&&V.push(V[0]),V}function z(I){for(var V=P(I);V.length<4;)V.push(V[0]);return V}function B(I){return I.map(z)}function X(I){var V=I.type,H;switch(V){case"GeometryCollection":return{type:V,geometries:I.geometries.map(X)};case"Point":H=E(I.coordinates);break;case"MultiPoint":H=I.coordinates.map(E);break;case"LineString":H=P(I.arcs);break;case"MultiLineString":H=I.arcs.map(P);break;case"Polygon":H=B(I.arcs);break;case"MultiPolygon":H=I.arcs.map(B);break;default:return null}return{type:V,coordinates:H}}return X(_)}function s(x,_){var M={},T={},A={},E=[],P=-1;_.forEach(function(X,I){var V=x.arcs[X<0?~X:X],H;V.length<3&&!V[1][0]&&!V[1][1]&&(H=_[++P],_[P]=X,_[I]=H)}),_.forEach(function(X){var I=z(X),V=I[0],H=I[1],Q,oe;if(Q=A[V])if(delete A[Q.end],Q.push(X),Q.end=H,oe=T[H]){delete T[oe.start];var re=oe===Q?Q:Q.concat(oe);T[re.start=Q.start]=A[re.end=oe.end]=re}else T[Q.start]=A[Q.end]=Q;else if(Q=T[H])if(delete T[Q.start],Q.unshift(X),Q.start=V,oe=A[V]){delete A[oe.end];var te=oe===Q?Q:oe.concat(Q);T[te.start=oe.start]=A[te.end=Q.end]=te}else T[Q.start]=A[Q.end]=Q;else Q=[X],T[Q.start=V]=A[Q.end=H]=Q});function z(X){var I=x.arcs[X<0?~X:X],V=I[0],H;return x.transform?(H=[0,0],I.forEach(function(Q){H[0]+=Q[0],H[1]+=Q[1]})):H=I[I.length-1],X<0?[H,V]:[V,H]}function B(X,I){for(var V in X){var H=X[V];delete I[H.start],delete H.start,delete H.end,H.forEach(function(Q){M[Q<0?~Q:Q]=1}),E.push(H)}}return B(A,T),B(T,A),_.forEach(function(X){M[X<0?~X:X]||E.push([X])}),E}function u(x){return l(x,f.apply(this,arguments))}function f(x,_,M){var T,A,E;if(arguments.length>1)T=c(x,_,M);else for(A=0,T=new Array(E=x.arcs.length);A<E;++A)T[A]=A;return{type:"MultiLineString",arcs:s(x,T)}}function c(x,_,M){var T=[],A=[],E;function P(V){var H=V<0?~V:V;(A[H]||(A[H]=[])).push({i:V,g:E})}function z(V){V.forEach(P)}function B(V){V.forEach(z)}function X(V){V.forEach(B)}function I(V){switch(E=V,V.type){case"GeometryCollection":V.geometries.forEach(I);break;case"LineString":z(V.arcs);break;case"MultiLineString":case"Polygon":B(V.arcs);break;case"MultiPolygon":X(V.arcs);break}}return I(_),A.forEach(M==null?function(V){T.push(V[0].i)}:function(V){M(V[0].g,V[V.length-1].g)&&T.push(V[0].i)}),T}function h(x){for(var _=-1,M=x.length,T,A=x[M-1],E=0;++_<M;)T=A,A=x[_],E+=T[0]*A[1]-T[1]*A[0];return Math.abs(E)}function d(x){return l(x,m.apply(this,arguments))}function m(x,_){var M={},T=[],A=[];_.forEach(E);function E(B){switch(B.type){case"GeometryCollection":B.geometries.forEach(E);break;case"Polygon":P(B.arcs);break;case"MultiPolygon":B.arcs.forEach(P);break}}function P(B){B.forEach(function(X){X.forEach(function(I){(M[I=I<0?~I:I]||(M[I]=[])).push(B)})}),T.push(B)}function z(B){return h(l(x,{type:"Polygon",arcs:[B]}).coordinates[0])}return T.forEach(function(B){if(!B._){var X=[],I=[B];for(B._=1,A.push(X);B=I.pop();)X.push(B),B.forEach(function(V){V.forEach(function(H){M[H<0?~H:H].forEach(function(Q){Q._||(Q._=1,I.push(Q))})})})}}),T.forEach(function(B){delete B._}),{type:"MultiPolygon",arcs:A.map(function(B){var X=[],I;if(B.forEach(function(re){re.forEach(function(te){te.forEach(function(ie){M[ie<0?~ie:ie].length<2&&X.push(ie)})})}),X=s(x,X),(I=X.length)>1)for(var V=1,H=z(X[0]),Q,oe;V<I;++V)(Q=z(X[V]))>H&&(oe=X[0],X[0]=X[V],X[V]=oe,H=Q);return X}).filter(function(B){return B.length>0})}}function p(x,_){for(var M=0,T=x.length;M<T;){var A=M+T>>>1;x[A]<_?M=A+1:T=A}return M}function y(x){var _={},M=x.map(function(){return[]});function T(re,te){re.forEach(function(ie){ie<0&&(ie=~ie);var ce=_[ie];ce?ce.push(te):_[ie]=[te]})}function A(re,te){re.forEach(function(ie){T(ie,te)})}function E(re,te){re.type==="GeometryCollection"?re.geometries.forEach(function(ie){E(ie,te)}):re.type in P&&P[re.type](re.arcs,te)}var P={LineString:T,MultiLineString:A,Polygon:A,MultiPolygon:function(re,te){re.forEach(function(ie){A(ie,te)})}};x.forEach(E);for(var z in _)for(var B=_[z],X=B.length,I=0;I<X;++I)for(var V=I+1;V<X;++V){var H=B[I],Q=B[V],oe;(oe=M[H])[z=p(oe,Q)]!==Q&&oe.splice(z,0,Q),(oe=M[Q])[z=p(oe,H)]!==H&&oe.splice(z,0,H)}return M}function b(x){if(x==null)return r;var _,M,T=x.scale[0],A=x.scale[1],E=x.translate[0],P=x.translate[1];return function(z,B){B||(_=M=0);var X=2,I=z.length,V=new Array(I),H=Math.round((z[0]-E)/T),Q=Math.round((z[1]-P)/A);for(V[0]=H-_,_=H,V[1]=Q-M,M=Q;X<I;)V[X]=z[X],++X;return V}}function C(x,_){if(x.transform)throw new Error("already quantized");if(!_||!_.scale){if(!((P=Math.floor(_))>=2))throw new Error("n must be \u22652");B=x.bbox||a(x);var M=B[0],T=B[1],A=B[2],E=B[3],P;_={scale:[A-M?(A-M)/(P-1):1,E-T?(E-T)/(P-1):1],translate:[M,T]}}else B=x.bbox;var z=b(_),B,X,I=x.objects,V={};function H(re){return z(re)}function Q(re){var te;switch(re.type){case"GeometryCollection":te={type:"GeometryCollection",geometries:re.geometries.map(Q)};break;case"Point":te={type:"Point",coordinates:H(re.coordinates)};break;case"MultiPoint":te={type:"MultiPoint",coordinates:re.coordinates.map(H)};break;default:return re}return re.id!=null&&(te.id=re.id),re.bbox!=null&&(te.bbox=re.bbox),re.properties!=null&&(te.properties=re.properties),te}function oe(re){var te=0,ie=1,ce=re.length,Me,De=new Array(ce);for(De[0]=z(re[0],0);++te<ce;)((Me=z(re[te],te))[0]||Me[1])&&(De[ie++]=Me);return ie===1&&(De[ie++]=[0,0]),De.length=ie,De}for(X in I)V[X]=Q(I[X]);return{type:"Topology",bbox:B,transform:_,objects:V,arcs:x.arcs.map(oe)}}e.bbox=a,e.feature=i,e.merge=d,e.mergeArcs=m,e.mesh=u,e.meshArcs=f,e.neighbors=y,e.quantize=C,e.transform=t,e.untransform=b,Object.defineProperty(e,"__esModule",{value:!0})})});var U3=le((E8e,QO)=>{"use strict";var S8=QO.exports={},pme=(od(),Tr(id)).locationmodeToLayer,mme=C8().feature;S8.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};S8.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};S8.getTopojsonFeatures=function(e,r){var t=pme[e.locationmode],a=r.objects[t];return mme(r,a).features}});var eU=le(ld=>{"use strict";var gme=(Ya(),Tr($a)).BADNUM;ld.calcTraceToLineCoords=function(e){for(var r=e[0].trace,t=r.connectgaps,a=[],n=[],i=0;i<e.length;i++){var o=e[i],l=o.lonlat;l[0]!==gme?n.push(l):!t&&n.length>0&&(a.push(n),n=[])}return n.length>0&&a.push(n),a};ld.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};ld.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var r=new Array(e.length),t=0;t<e.length;t++)r[t]=[e[t]];return{type:"MultiPolygon",coordinates:r}};ld.makeBlank=function(){return{type:"Point",coordinates:[]}}});var iU=le((q8e,nU)=>{"use strict";var F8=Object.defineProperty,yme=Object.getOwnPropertyDescriptor,bme=Object.getOwnPropertyNames,_me=Object.prototype.hasOwnProperty,xme=(e,r)=>{for(var t in r)F8(e,t,{get:r[t],enumerable:!0})},wme=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of bme(r))!_me.call(e,n)&&n!==t&&F8(e,n,{get:()=>r[n],enumerable:!(a=yme(r,n))||a.enumerable});return e},Ame=e=>wme(F8({},"__esModule",{value:!0}),e),rU={};xme(rU,{COUNTRIES:()=>tU,byAlpha2:()=>Cme,byAlpha3:()=>kme,byM49:()=>Sme,createLookup:()=>aU,lookup:()=>Mme,lookupAlpha3:()=>Tme,sanitize:()=>D8});nU.exports=Ame(rU);var tU=[{iso3:"ABW",iso2:"AW",m49:"533",name:"Aruba",aliases:["\u{1F1E6}\u{1F1FC}","country of aruba","land aruba","pais aruba"]},{iso3:"AFG",iso2:"AF",m49:"004",name:"Afghanistan",aliases:["\u{1F1E6}\u{1F1EB}","affghanistan","affghanisthan","affghaunistan","afghania","afghanisthan","afghaunistan","afghaunistaun","afgoniston","de afghanistan islami jumhuriyat","owganystan","\u0430\u0444\u0493\u043E\u043D\u0438\u0441\u0442\u043E\u043D","\u0623\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u062F \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646 \u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u0647\u0648\u0631\u06CC\u062A"]},{iso3:"AGO",iso2:"AO",m49:"024",name:"Angola",aliases:["\u{1F1E6}\u{1F1F4}","republic of angola","republica de angola"]},{iso3:"AIA",iso2:"AI",m49:"660",name:"Anguilla",aliases:["\u{1F1E6}\u{1F1EE}","malliouhana"]},{iso3:"ALA",iso2:"AX",m49:"248",name:"\xC5land Islands",aliases:["\u{1F1E6}\u{1F1FD}","aaland","aaland islands","ahvenanmaa","aland","aland isles","aland region","alands lan","landskapet aland"]},{iso3:"ALB",iso2:"AL",m49:"008",name:"Albania",aliases:["\u{1F1E6}\u{1F1F1}","peoples republic of albania","peoples socialist republic of albania","republic of albania","republika e shqiperise","shqiperi","shqiperia","shqiperise","socialist republic of albania"]},{iso3:"AND",iso2:"AD",m49:"020",name:"Andorra",aliases:["\u{1F1E6}\u{1F1E9}","el pais dels pirineus","les valls dandorra","principality of andorra","principality of the valleys of andorra","principat dandorra","valls dandorra"]},{iso3:"ARE",iso2:"AE",m49:"784",name:"United Arab Emirates",aliases:["\u{1F1E6}\u{1F1EA}","emirates","uae","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"ARG",iso2:"AR",m49:"032",name:"Argentina",aliases:["\u{1F1E6}\u{1F1F7}","argentine republic","nacion argentina","republic of argentina","republica argentina"]},{iso3:"ARM",iso2:"AM",m49:"051",name:"Armenia",aliases:["\u{1F1E6}\u{1F1F2}","hayastan","hayastani hanrapetutyun","republic of armenia","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576\u056B \u0570\u0561\u0576\u0580\u0561\u057A\u0565\u057F\u0578\u0582\u0569\u0575\u0578\u0582\u0576","\u0570\u0561\u0575\u0584","\u0570\u0570"]},{iso3:"ASM",iso2:"AS",m49:"016",name:"American Samoa",aliases:["\u{1F1E6}\u{1F1F8}","amerika samoa","east samoa","samoa american","samoa united states","territory of american samoa","us samoa"]},{iso3:"ATA",iso2:"AQ",m49:"010",name:"Antarctica",aliases:["\u{1F1E6}\u{1F1F6}","antarctica treaty area"]},{iso3:"ATF",iso2:"TF",m49:"260",name:"French Southern Territories",aliases:["\u{1F1F9}\u{1F1EB}","taaf","terres australes et antarctiques francaises","terres australes francaises","terres australes francaises les","territoire des terres australes et antarctiques francaises"]},{iso3:"ATG",iso2:"AG",m49:"028",name:"Antigua and Barbuda",aliases:["\u{1F1E6}\u{1F1EC}","antigua","antigua barbuda","barbuda"]},{iso3:"AUS",iso2:"AU",m49:"036",name:"Australia",aliases:["\u{1F1E6}\u{1F1FA}","commonwealth of australia","new holland","new hollandia","nova hollandia"]},{iso3:"AUT",iso2:"AT",m49:"040",name:"Austria",aliases:["\u{1F1E6}\u{1F1F9}","osterreich","republic of austria","republik osterreich","zweite republik"]},{iso3:"AZE",iso2:"AZ",m49:"031",name:"Azerbaijan",aliases:["\u{1F1E6}\u{1F1FF}","az\u0259rbaycan","az\u0259rbaycan respublikas\u0131","republic of azerbaijan"]},{iso3:"BDI",iso2:"BI",m49:"108",name:"Burundi",aliases:["\u{1F1E7}\u{1F1EE}","gouvernement du burundi","la republique du burundi","republic of burundi","republika yu burundi","republika yuburundi","republique du burundi","repuburika yuburundi","uburundi"]},{iso3:"BEL",iso2:"BE",m49:"056",name:"Belgium",aliases:["\u{1F1E7}\u{1F1EA}","belg","belgie","belgien","belgique","kingdom of belgium","konigreich belgien","koninkrijk belgie","royaume de belgique"]},{iso3:"BEN",iso2:"BJ",m49:"204",name:"Benin",aliases:["\u{1F1E7}\u{1F1EF}","dahomey","la republique du benin","republic of benin","republique du benin"]},{iso3:"BES",iso2:"BQ",m49:"535",name:"Bonaire, Sint Eustatius and Saba",aliases:["\u{1F1E7}\u{1F1F6}","bes eilanden","bes islands","bijzondere gemeente","bonaire","bonaire saint eustatius and saba","bonaire sint eustatius en saba","caraibisch nederland","caribbean netherlands","caribisch nederland","hulanda karibense","islanan bes","netherlands antilles","saba","sint eustatius"]},{iso3:"BFA",iso2:"BF",m49:"854",name:"Burkina Faso",aliases:["\u{1F1E7}\u{1F1EB}","republic of burkina faso","republic of upper volta"]},{iso3:"BGD",iso2:"BD",m49:"050",name:"Bangladesh",aliases:["\u{1F1E7}\u{1F1E9}","bangla desh","east pakistan","gonaoprojatontri bangladesh","peoples republic of bangladesh","\u0997\u09A3\u09AA\u09CD\u09B0\u099C\u09BE\u09A4\u09A8\u09CD\u09A4\u09CD\u09B0\u09C0 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE \u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BF\u09A1\u09BF"]},{iso3:"BGR",iso2:"BG",m49:"100",name:"Bulgaria",aliases:["\u{1F1E7}\u{1F1EC}","bulgarian republic","republic of bulgaria","republika bulgaria","republika bulgariya","\u0431\u0433","\u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F"]},{iso3:"BHR",iso2:"BH",m49:"048",name:"Bahrain",aliases:["\u{1F1E7}\u{1F1ED}","bahrein islands","kingdom of bahrain","\u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646"]},{iso3:"BHS",iso2:"BS",m49:"044",name:"Bahamas",aliases:["\u{1F1E7}\u{1F1F8}","bahama islands","bahamas the","commonwealth of the bahamas"]},{iso3:"BIH",iso2:"BA",m49:"070",name:"Bosnia and Herzegovina",aliases:["\u{1F1E7}\u{1F1E6}","bosna","bosna i hercegovina","bosnia","bosnia and hercegovina","bosnia herzegovina","hercegovina","herzegovina","\u0431\u0438\u0445","\u0431\u043E\u0441\u043D\u0430","\u0431\u043E\u0441\u043D\u0430 \u0438 \u0445\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430","\u0431\u0445"]},{iso3:"BLM",iso2:"BL",m49:"652",name:"Saint Barth\xE9lemy",aliases:["\u{1F1E7}\u{1F1F1}","collectivite doutre mer de saint barthelemy","collectivite territoriale de saint barthelemy","collectivity of saint barthelemy","saint barth","saint barths","saint barts","saint bartz"]},{iso3:"BLR",iso2:"BY",m49:"112",name:"Belarus",aliases:["\u{1F1E7}\u{1F1FE}","republic of belarus","respublika belarus","respublika byelarus","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F \u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u0430\u044F \u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u0438\u044F","\u0440\u0431","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C"]},{iso3:"BLZ",iso2:"BZ",m49:"084",name:"Belize",aliases:["\u{1F1E7}\u{1F1FF}"]},{iso3:"BMU",iso2:"BM",m49:"060",name:"Bermuda",aliases:["\u{1F1E7}\u{1F1F2}","barmuda","barmuda i","barmuda isl","barmuda islands","barmudas","bermoothes","bermuda islands","bermudas","bermudian islands","colony of bermuda","devils isles","isle of devils","somers islands","somers isles","summers isles","territory of bermuda","virgineola"]},{iso3:"BOL",iso2:"BO",m49:"068",name:"Bolivia (Plurinational State of)",aliases:["\u{1F1E7}\u{1F1F4}","bolivia","bulibiya","estado plurinacional de bolivia","plurinational state of bolivia","puliwya","republic of bolivia","republica de bolivia","volivia","wuliwiya","wuliwya"]},{iso3:"BRA",iso2:"BR",m49:"076",name:"Brazil",aliases:["\u{1F1E7}\u{1F1F7}","brasil","federative republic of brazil","pindorama","republica federativa do brasil"]},{iso3:"BRB",iso2:"BB",m49:"052",name:"Barbados",aliases:["\u{1F1E7}\u{1F1E7}","barbadoes"]},{iso3:"BRN",iso2:"BN",m49:"096",name:"Brunei Darussalam",aliases:["\u{1F1E7}\u{1F1F3}","brunei","nation of brunei the abode of peace","negara brunei darussalam"]},{iso3:"BTN",iso2:"BT",m49:"064",name:"Bhutan",aliases:["\u{1F1E7}\u{1F1F9}","kingdom of bhutan","\u0F60\u0F56\u0FB2\u0F74\u0F42","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F0B\u0F61\u0F74\u0F63\u0F0B","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F61\u0F74\u0F63\u0F0B\u0F0B"]},{iso3:"BVT",iso2:"BV",m49:"074",name:"Bouvet Island",aliases:["\u{1F1E7}\u{1F1FB}"]},{iso3:"BWA",iso2:"BW",m49:"072",name:"Botswana",aliases:["\u{1F1E7}\u{1F1FC}","lefatshe la botswana","republic of botswana"]},{iso3:"CAF",iso2:"CF",m49:"140",name:"Central African Republic",aliases:["\u{1F1E8}\u{1F1EB}","centrafricaine republique","centrafrique","central africa","kodorosese ti beafrika","la republique","rep centrafrique","republique centrafricaine"]},{iso3:"CAN",iso2:"CA",m49:"124",name:"Canada",aliases:["\u{1F1E8}\u{1F1E6}","le canada"]},{iso3:"CCK",iso2:"CC",m49:"166",name:"Cocos (Keeling) Islands",aliases:["\u{1F1E8}\u{1F1E8}","cocos islands","keeling islands","territory of the cocos keeling islands"]},{iso3:"CHE",iso2:"CH",m49:"756",name:"Switzerland",aliases:["\u{1F1E8}\u{1F1ED}","confederation helvetique","confederation suisse","confederazione elvetica","confederazione svizzera","confederaziun svizra","confoederatio helvetica","conf\u0153deratio helvetica","eidgenossenschaft","elvezia","helvetie","la confederation suisse","schweiz","schweizerische eidgenossenschaft","suisse","svizra","svizzera","swiss","swiss confederation"]},{iso3:"CHL",iso2:"CL",m49:"152",name:"Chile",aliases:["\u{1F1E8}\u{1F1F1}","republic of chile","republica de chile"]},{iso3:"CHN",iso2:"CN",m49:"156",name:"China",aliases:["\u{1F1E8}\u{1F1F3}","china pr","peoples republic of china","pr china","prc","\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD","\u4E2D\u56FD"]},{iso3:"CIV",iso2:"CI",m49:"384",name:"C\xF4te d'Ivoire",aliases:["\u{1F1E8}\u{1F1EE}","cote ivoire","ivory coast","republic of cote divoire","republic of ivory coast","republic of the ivory coast","republique de cote divoire"]},{iso3:"CMR",iso2:"CM",m49:"120",name:"Cameroon",aliases:["\u{1F1E8}\u{1F1F2}","cameroun","la republique du cameroun","republic of cameroon","republique du cameroun"]},{iso3:"COD",iso2:"CD",m49:"180",name:"Democratic Republic of the Congo",aliases:["\u{1F1E8}\u{1F1E9}","congo belge","congo democratic republic of the","congo kinshasa","dem rep congo","dem republic of congo","dem republic of the congo","democratic republic of congo","dr congo","drc","rd congo","rep demcongo","republic of the congo","republique democratique du congo","republique du zaire","zaire"]},{iso3:"COG",iso2:"CG",m49:"178",name:"Congo",aliases:["\u{1F1E8}\u{1F1EC}","congo brazza","congo brazzaville","congo republic","rep congo","republic of congo","republique du congo"]},{iso3:"COK",iso2:"CK",m49:"184",name:"Cook Islands",aliases:["\u{1F1E8}\u{1F1F0}","cook group","hervey islands"]},{iso3:"COL",iso2:"CO",m49:"170",name:"Colombia",aliases:["\u{1F1E8}\u{1F1F4}","republic of colombia","republica de colombia"]},{iso3:"COM",iso2:"KM",m49:"174",name:"Comoros",aliases:["\u{1F1F0}\u{1F1F2}","comores","comores archipel","etat comorien","lunion des comores","republique des comores","republique federale et islamique des comores","republique federale islamique des comores","territoire des comores","union des comores","union of the comoros","\u0625\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631","\u0627\u062A\u062D\u0627\u062F \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u0627\u0644\u0627\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631\u064A","\u0627\u0644\u0642\u0645\u0631","\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0627\u062A\u062D\u0627\u062F\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631\u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"CPV",iso2:"CV",m49:"132",name:"Cabo Verde",aliases:["\u{1F1E8}\u{1F1FB}","cape verde","cape verde islands","kab verd","kabu verdi","kauberdi","republic of cabo verde","republic of cape verde","republica de cabo verde"]},{iso3:"CRI",iso2:"CR",m49:"188",name:"Costa Rica",aliases:["\u{1F1E8}\u{1F1F7}","republic of costa rica","republica de costa rica"]},{iso3:"CUB",iso2:"CU",m49:"192",name:"Cuba",aliases:["\u{1F1E8}\u{1F1FA}","isla juana","republic of cuba","republica de cuba"]},{iso3:"CUW",iso2:"CW",m49:"531",name:"Cura\xE7ao",aliases:["\u{1F1E8}\u{1F1FC}","corsou","corsouw","corsow","country of curacao","curacau","curacoa","curazao","cura\u03C2ao","curocao","island territory of curacao","korsou","land curacao","pais korsou"]},{iso3:"CXR",iso2:"CX",m49:"162",name:"Christmas Island",aliases:["\u{1F1E8}\u{1F1FD}","christmas island other territories","christmas island other territories australia","territory of christmas island"]},{iso3:"CYM",iso2:"KY",m49:"136",name:"Cayman Islands",aliases:["\u{1F1F0}\u{1F1FE}","caymans"]},{iso3:"CYP",iso2:"CY",m49:"196",name:"Cyprus",aliases:["\u{1F1E8}\u{1F1FE}","greek administration of southern cyprus","greek cypriot state","guney k\u0131br\u0131s","guney k\u0131br\u0131s rum cumhuriyeti","guney k\u0131br\u0131s rum kesimi","guney k\u0131br\u0131s rum yonetimi","kipriaki dhimokratia","k\u0131br\u0131s","k\u0131br\u0131s cumhuriyeti","k\u0131br\u0131s rum kesimi","kypriaki dimokratia","kypros","republic of cyprus","\u03BA\u03C5\u03C0\u03C1\u03B9\u03B1\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1","\u03BA\u03C5\u03C0\u03C1\u03BF\u03C2"]},{iso3:"CZE",iso2:"CZ",m49:"203",name:"Czechia",aliases:["\u{1F1E8}\u{1F1FF}","ceska republika","ceske kraje","ceske uzemi","ceske zeme","cesko","cr","czech republic"]},{iso3:"DEU",iso2:"DE",m49:"276",name:"Germany",aliases:["\u{1F1E9}\u{1F1EA}","br deutschland","bundesrepublik","bundesrepublik deutschland","deutschland","federal republic of germany"]},{iso3:"DJI",iso2:"DJ",m49:"262",name:"Djibouti",aliases:["\u{1F1E9}\u{1F1EF}","la republique de djibouti","republic of djibouti","republique de djibouti","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u064A\u0628\u0648\u062A\u064A","\u062C\u064A\u0628\u0648\u062A\u064A"]},{iso3:"DMA",iso2:"DM",m49:"212",name:"Dominica",aliases:["\u{1F1E9}\u{1F1F2}","commonwealth of dominica","island of dominica","waitu kubuli"]},{iso3:"DNK",iso2:"DK",m49:"208",name:"Denmark",aliases:["\u{1F1E9}\u{1F1F0}","dania","danmark","denmark proper","kongeriget danmark","metropolitan denmark"]},{iso3:"DOM",iso2:"DO",m49:"214",name:"Dominican Republic",aliases:["\u{1F1E9}\u{1F1F4}","dominicana","domrep","haiti espanol","quisqueya","republica de santo domingo","republica dominicana","santo domingo"]},{iso3:"DZA",iso2:"DZ",m49:"012",name:"Algeria",aliases:["\u{1F1E9}\u{1F1FF}","peoples democratic republic of algeria","\u0627\u0644\u062C\u0632\u0627\u0626\u0631","\u0627\u0644\u062C\u0632\u0627\u064A\u0631","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062C\u0632\u0627\u0626\u0631\u064A\u0629 \u0627\u0644\u062F\u064A\u0645\u0642\u0631\u0627\u0637\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629","\u0627\u0644\u062F\u0632\u0627\u064A\u0631","\u062F\u0632\u0627\u064A\u0631"]},{iso3:"ECU",iso2:"EC",m49:"218",name:"Ecuador",aliases:["\u{1F1EA}\u{1F1E8}","ecuadorian state","el ecuador","estado ecuatoriano","republic of ecuador","republic of equator","republic of the equator","republica del ecuador"]},{iso3:"EGY",iso2:"EG",m49:"818",name:"Egypt",aliases:["\u{1F1EA}\u{1F1EC}","arab rep egypt","arab republic of egypt","rep egypt","republic of egypt","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0645\u0635\u0631 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0645\u0635\u0631"]},{iso3:"ERI",iso2:"ER",m49:"232",name:"Eritrea",aliases:["\u{1F1EA}\u{1F1F7}","ertra","hagere ertra","hagere iertra","iertra","iritriya","state of eritrea","\u0625\u0631\u062A\u0631\u064A\u0627","\u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u064A\u0631\u064A\u0627","\u0627\u0631\u064A\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u1203\u1308\u1228 \u12A4\u122D\u1275\u122B","\u12A4\u122D\u1275\u122B"]},{iso3:"ESH",iso2:"EH",m49:"732",name:"Western Sahara",aliases:["\u{1F1EA}\u{1F1ED}","southern provinces","spanish sahara","west sahara"]},{iso3:"ESP",iso2:"ES",m49:"724",name:"Spain",aliases:["\u{1F1EA}\u{1F1F8}","espana","estado espanol","kingdom of spain","reino de espana"]},{iso3:"EST",iso2:"EE",m49:"233",name:"Estonia",aliases:["\u{1F1EA}\u{1F1EA}","eesti","eesti noukogude sotsialistlik vabariik","eesti vabariik","estland","republic of estonia"]},{iso3:"ETH",iso2:"ET",m49:"231",name:"Ethiopia",aliases:["\u{1F1EA}\u{1F1F9}","federal democratic republic of ethiopia","ityopiya","yeityopiya federalawi demokrasiyawi ripeblik","yeityopiya hizbawi dimokrasiyawi ripublik","\u12A2\u1275\u12EE\u1335\u12EB","\u12E8\u12A2\u1275\u12EE\u1335\u12EB \u134C\u12F4\u122B\u120B\u12CA \u12F4\u121E\u12AD\u122B\u1232\u12EB\u12CA \u122A\u1350\u1265\u120A\u12AD"]},{iso3:"FIN",iso2:"FI",m49:"246",name:"Finland",aliases:["\u{1F1EB}\u{1F1EE}","republic of finland","republiken finland","suomen tasavalta","suomi"]},{iso3:"FJI",iso2:"FJ",m49:"242",name:"Fiji",aliases:["\u{1F1EB}\u{1F1EF}","fiji ganarajya","matanitu ko viti","matanitu tugalala o viti","republic of fiji","republic of the fiji islands","viti"]},{iso3:"FLK",iso2:"FK",m49:"238",name:"Falkland Islands (Malvinas)",aliases:["\u{1F1EB}\u{1F1F0}","colony of the falkland islands","falkland islands","falklands","islas malvinas","malvinas","malvinas islands"]},{iso3:"FRA",iso2:"FR",m49:"250",name:"France",aliases:["\u{1F1EB}\u{1F1F7}","fr","french republic","la france","la republique francaise","lhexagone","republique francaise"]},{iso3:"FRO",iso2:"FO",m49:"234",name:"Faroe Islands",aliases:["\u{1F1EB}\u{1F1F4}","faer oer","f\xE6r\xF8","faeroe is","faeroe islands","faeroe isles","f\xE6r\xF8erne","faeroes","far oer","faroe island","faroe isles","faroes","faroese islands","f\xF8roya","f\xF8royar","f\xF8royum"]},{iso3:"FSM",iso2:"FM",m49:"583",name:"Micronesia (Federated States of)",aliases:["\u{1F1EB}\u{1F1F2}","fed sts micronesia","fed sts of micronesia","federated states of micronesia","federated states of micronesia fsm","micronesia"]},{iso3:"GAB",iso2:"GA",m49:"266",name:"Gabon",aliases:["\u{1F1EC}\u{1F1E6}","gabonese republic","la republique gabonaise","le gabon","republique du gabon","republique gabonaise"]},{iso3:"GBR",iso2:"GB",m49:"826",name:"United Kingdom of Great Britain and Northern Ireland",aliases:["\u{1F1EC}\u{1F1E7}","britain","england","great britain","great britain and northern ireland","northern ireland","scotland","uk","united kingdom","wales"]},{iso3:"GEO",iso2:"GE",m49:"268",name:"Georgia",aliases:["\u{1F1EC}\u{1F1EA}","georgia country","republic of georgia","sakartvelo","\u049B\u044B\u0440\u04AD\u0442\u04D9\u044B\u043B\u0430","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD\u10E1 \u10E0\u10D4\u10E1\u10DE\u10E3\u10D1\u10DA\u10D8\u10D9\u10D0"]},{iso3:"GGY",iso2:"GG",m49:"831",name:"Guernsey",aliases:["\u{1F1EC}\u{1F1EC}","bailiwick of guernsey","bailliage de guernesey","bailliage de guernesi","giernesi","great britain guernsey","guernesey","lisia"]},{iso3:"GHA",iso2:"GH",m49:"288",name:"Ghana",aliases:["\u{1F1EC}\u{1F1ED}","republic of ghana"]},{iso3:"GIB",iso2:"GI",m49:"292",name:"Gibraltar",aliases:["\u{1F1EC}\u{1F1EE}","rock of gibraltar"]},{iso3:"GIN",iso2:"GN",m49:"324",name:"Guinea",aliases:["\u{1F1EC}\u{1F1F3}","guinee","guinee conakry","republic of guinea","republique de guinee"]},{iso3:"GLP",iso2:"GP",m49:"312",name:"Guadeloupe",aliases:["\u{1F1EC}\u{1F1F5}"]},{iso3:"GMB",iso2:"GM",m49:"270",name:"Gambia",aliases:["\u{1F1EC}\u{1F1F2}","islamic republic of the gambia","republic of the gambia"]},{iso3:"GNB",iso2:"GW",m49:"624",name:"Guinea-Bissau",aliases:["\u{1F1EC}\u{1F1FC}","guine bissau","republic of guinea bissau","republica da guine bissau"]},{iso3:"GNQ",iso2:"GQ",m49:"226",name:"Equatorial Guinea",aliases:["\u{1F1EC}\u{1F1F6}","guine equatorial","guinea ecuatorial","guinea espanola","guinee equat","guinee equatoriale","la republique de guinee equatoriale","posesiones espanolas del golfo de guinea","provincia de la guinea ecuatorial","republic of equatorial guinea","republica da guine equatorial","republica de guinea ecuatorial","territorios espanoles del golfo de guinea"]},{iso3:"GRC",iso2:"GR",m49:"300",name:"Greece",aliases:["\u{1F1EC}\u{1F1F7}","ellada","ellas","elliniki dhimokratia","elliniki dimokratia","greek republic","hellas","hellas greece","hellenic republic","vasilion tis ellados","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1\u03C2","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03BF\u03C2","\u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B1\u03C2","\u03B5\u03BB\u03BB\u03B1\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1"]},{iso3:"GRD",iso2:"GD",m49:"308",name:"Grenada",aliases:["\u{1F1EC}\u{1F1E9}"]},{iso3:"GRL",iso2:"GL",m49:"304",name:"Greenland",aliases:["\u{1F1EC}\u{1F1F1}","kalaallit nunaat"]},{iso3:"GTM",iso2:"GT",m49:"320",name:"Guatemala",aliases:["\u{1F1EC}\u{1F1F9}","republic of guatemala","republica de guatemala"]},{iso3:"GUF",iso2:"GF",m49:"254",name:"French Guiana",aliases:["\u{1F1EC}\u{1F1EB}","fr 973","guiana","guiana france","guyane","guyane francaise","gwiyann","gwiyann franse","lagwiyann"]},{iso3:"GUM",iso2:"GU",m49:"316",name:"Guam",aliases:["\u{1F1EC}\u{1F1FA}","guahan","guam usa","islan guahan","island of guam","territory of guam"]},{iso3:"GUY",iso2:"GY",m49:"328",name:"Guyana",aliases:["\u{1F1EC}\u{1F1FE}","co operative republic of guyana","republic of guyana"]},{iso3:"HKG",iso2:"HK",m49:"344",name:"Hong Kong",aliases:["\u{1F1ED}\u{1F1F0}","hksar","hong kong sar","hong kong special administrative region","hong kong special administrative region of the peoples republic of china","hongkong"]},{iso3:"HMD",iso2:"HM",m49:"334",name:"Heard Island and McDonald Islands",aliases:["\u{1F1ED}\u{1F1F2}","heard","heard & mcdonald islands","heard and macdonald islands","heard island","himi","mcdonald","mcdonald island","territory of heard island and mcdonald islands"]},{iso3:"HND",iso2:"HN",m49:"340",name:"Honduras",aliases:["\u{1F1ED}\u{1F1F3}","guaymuras","higueras","honduran republic","republic of honduras","republica de honduras"]},{iso3:"HRV",iso2:"HR",m49:"191",name:"Croatia",aliases:["\u{1F1ED}\u{1F1F7}","hrvatska","republic of croatia","republika hrvatska"]},{iso3:"HTI",iso2:"HT",m49:"332",name:"Haiti",aliases:["\u{1F1ED}\u{1F1F9}","ayiti","haitian republic","la republique dhaiti","repiblik d ayiti","republic of haiti","republique dhaiti"]},{iso3:"HUN",iso2:"HU",m49:"348",name:"Hungary",aliases:["\u{1F1ED}\u{1F1FA}","a magyar koztarsasag","a magyar nepkoztarsasag","harmadik magyar koztarsasag","magyar koztarsasag","magyar nepkoztarsasag","magyarorszag","mo"]},{iso3:"IDN",iso2:"ID",m49:"360",name:"Indonesia",aliases:["\u{1F1EE}\u{1F1E9}","negara kesatuan republik indonesia","nkri","republic of indonesia","republik indonesia"]},{iso3:"IMN",iso2:"IM",m49:"833",name:"Isle of Man",aliases:["\u{1F1EE}\u{1F1F2}","ellan vannin","i man","i mann","i mannin","isle of mann","mann","mannin","manx"]},{iso3:"IND",iso2:"IN",m49:"356",name:"India",aliases:["\u{1F1EE}\u{1F1F3}","al hind","bharat","bharat ganarajya","bharata","bharatvarsh","hindoostan","hindustan","indostan","republic of india","tenjiku","tianzhu","\u0906\u0930\u094D\u092F\u0935\u0930\u094D\u0924","\u0907\u0902\u0921\u093F\u092F\u093E","\u0907\u0923\u094D\u0921\u093F\u092F\u093E","\u092D\u093E\u0930\u0924","\u092D\u093E\u0930\u0924 \u0917\u0923\u0930\u093E\u091C\u094D\u092F","\u092D\u093E\u0930\u0924\u0935\u0930\u094D\u0937","\u0939\u093F\u0902\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u094B\u0938\u094D\u0924\u093E\u0928"]},{iso3:"IOT",iso2:"IO",m49:"086",name:"British Indian Ocean Territory",aliases:["\u{1F1EE}\u{1F1F4}","biot"]},{iso3:"IRL",iso2:"IE",m49:"372",name:"Ireland",aliases:["\u{1F1EE}\u{1F1EA}","eire","hibernia","irish republic","poblacht na heireann","republic of ireland","southern ireland"]},{iso3:"IRN",iso2:"IR",m49:"364",name:"Iran (Islamic Republic of)",aliases:["\u{1F1EE}\u{1F1F7}","iran","islamic rep iran","islamic republic of iran","persia","\u0627\u06CC\u0631\u0627\u0646","\u0627\u06CC\u0631\u0627\u0646\u0632\u0645\u06CC\u0646","\u067E\u0627\u0631\u0633","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u064A\u0631\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u06CC\u0631\u0627\u0646","\u0643\u0634\u0648\u0631 \u0634\u0627\u0647\u0646\u0634\u0627\u0647\u06CC \u0627\u064A\u0631\u0627\u0646"]},{iso3:"IRQ",iso2:"IQ",m49:"368",name:"Iraq",aliases:["\u{1F1EE}\u{1F1F6}","eraq","iraqe","komar i eraq","republic of iraq","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642\u064A\u0629","\u0627\u0644\u0639\u0631\u0627\u0642","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642","\u0639\u0631\u0627\u0642","\u0639\u06CE\u0631\u0627\u0642"]},{iso3:"ISL",iso2:"IS",m49:"352",name:"Iceland",aliases:["\u{1F1EE}\u{1F1F8}","icelandic republic","island","ly\xF0veldi\xF0 island","republic of iceland","ysland"]},{iso3:"ISR",iso2:"IL",m49:"376",name:"Israel",aliases:["\u{1F1EE}\u{1F1F1}","erez yisrael","medinat yisrael","state of israel","yisrael","\u05D9\u05E9\u05E8\u05D0\u05DC","\u05DE\u05D3\u05D9\u05E0\u05EA \u05D9\u05E9\u05E8\u05D0\u05DC"]},{iso3:"ITA",iso2:"IT",m49:"380",name:"Italy",aliases:["\u{1F1EE}\u{1F1F9}","il bel paese","italia","italian republic","repubblica italiana","republic of italy"]},{iso3:"JAM",iso2:"JM",m49:"388",name:"Jamaica",aliases:["\u{1F1EF}\u{1F1F2}","commonwealth of jamaica","jamieka","jomieka","jumieka"]},{iso3:"JEY",iso2:"JE",m49:"832",name:"Jersey",aliases:["\u{1F1EF}\u{1F1EA}","bailliage de jerri","bailliage de jersey","balliwick of jersey","i iersey","i jersey","iersey","iersey i","isle of jersey","jerri","jersey i","jersey island"]},{iso3:"JOR",iso2:"JO",m49:"400",name:"Jordan",aliases:["\u{1F1EF}\u{1F1F4}","giordania","hashemite kingdom of jordan","kingdom of jordan","state of jordan","yarden","\u0627\u0644\u0623\u0631\u062F\u0646","\u0627\u0644\u0627\u0631\u062F\u0646","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0623\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0627\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629"]},{iso3:"JPN",iso2:"JP",m49:"392",name:"Japan",aliases:["\u{1F1EF}\u{1F1F5}","state of japan","\u3042\u304D\u3064\u3057\u307E","\u304A\u304A\u3084\u3057\u307E","\u3057\u304D\u3057\u307E","\u30B8\u30E3\u30D1\u30F3","\u3057\u3093\u3057\u3085\u3046","\u306B\u3063\u307D\u3093","\u306B\u3063\u307D\u3093\u3053\u304F","\u306B\u307B\u3093","\u306B\u307B\u3093\u3053\u304F","\u3072\u3044\u305A\u308B\u304F\u306B","\u3075\u305D\u3046","\u5927\u516B\u5DDE","\u6276\u6728\u4E4B\u5730","\u6276\u6851","\u6276\u6851\u56FD","\u6577\u5CF6","\u65E5\u51FA\u308B\u56FD","\u65E5\u672C","\u6991\u6728\u4E4B\u5730","\u745E\u7A42\u56FD","\u795E\u5DDE","\u79CB\u6D25\u5CF6","\u8466\u539F\u4E2D\u56FD"]},{iso3:"KAZ",iso2:"KZ",m49:"398",name:"Kazakhstan",aliases:["\u{1F1F0}\u{1F1FF}","qazaqstan","qazaqstan respublikasy","republic of kazakhstan","\u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u0440\u043A"]},{iso3:"KEN",iso2:"KE",m49:"404",name:"Kenya",aliases:["\u{1F1F0}\u{1F1EA}","jamhuri ya kenya","republic of kenya"]},{iso3:"KGZ",iso2:"KG",m49:"417",name:"Kyrgyzstan",aliases:["\u{1F1F0}\u{1F1EC}","kyrgyz republic","kyrgyz respublikasy","kyrgyzstan respublikasy","\u043A\u0440","\u043A\u044B\u0440\u0433\u044B\u0437 \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u043A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D"]},{iso3:"KHM",iso2:"KH",m49:"116",name:"Cambodia",aliases:["\u{1F1F0}\u{1F1ED}","camboya","campuchia","kambodzha","kamboja","kampuchea","kingdom of cambodia","\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6","\u1796\u17D2\u179A\u17C7\u179A\u17B6\u1787\u17B6\u178E\u17B6\u1785\u1780\u17D2\u179A\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6"]},{iso3:"KIR",iso2:"KI",m49:"296",name:"Kiribati",aliases:["\u{1F1F0}\u{1F1EE}","republic of kiribati"]},{iso3:"KNA",iso2:"KN",m49:"659",name:"Saint Kitts and Nevis",aliases:["\u{1F1F0}\u{1F1F3}","federation of saint christopher and nevis","federation of saint kitts and nevis","kitts & nevis","nevis","saint christopher","saint christopher and nevis","saint kitts"]},{iso3:"KOR",iso2:"KR",m49:"410",name:"Republic of Korea",aliases:["\u{1F1F0}\u{1F1F7}","korea","korea republic","korea republic of","korea south","rep korea","s korea","south korea","taehan minguk","\uB0A8\uC870\uC120","\uB0A8\uD55C","\uB300\uD55C","\uB300\uD55C\uBBFC\uAD6D","\uCF54\uB9AC\uC544","\uD55C\uAD6D"]},{iso3:"KWT",iso2:"KW",m49:"414",name:"Kuwait",aliases:["\u{1F1F0}\u{1F1FC}","state of kuwait","\u0627\u0644\u0643\u0648\u064A\u062A","\u062F\u0648\u0644\u0629 \u0627\u0644\u0643\u0648\u064A\u062A"]},{iso3:"LAO",iso2:"LA",m49:"418",name:"Lao People's Democratic Republic",aliases:["\u{1F1F1}\u{1F1E6}","laos","sathalanalat paxathipatai paxaxon lao","\u0EAA\u0EB2\u0E97\u0EB2\u0EA5\u0EB0\u0E99\u0EB0\u0EA5\u0EB1\u0E94 \u0E9B\u0EB0\u0E8A\u0EB2\u0E97\u0EB4\u0E9B\u0EB0\u0EC4\u0E95 \u0E9B\u0EB0\u0E8A\u0EB2\u0E8A\u0EBB\u0E99\u0EA5\u0EB2\u0EA7","\u0E9B\u0EB0\u0EC0\u0E97\u0E94\u0EA5\u0EB2\u0EA7","\u0EA5\u0EB2\u0EA7"]},{iso3:"LBN",iso2:"LB",m49:"422",name:"Lebanon",aliases:["\u{1F1F1}\u{1F1E7}","lebanese republic","republic of lebanon","state of lebanon","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u0628\u0646\u0627\u0646\u064A\u0629","\u0644\u0628\u0646\u0627\u0646"]},{iso3:"LBR",iso2:"LR",m49:"430",name:"Liberia",aliases:["\u{1F1F1}\u{1F1F7}","liber","republic of liberia"]},{iso3:"LBY",iso2:"LY",m49:"434",name:"Libya",aliases:["\u{1F1F1}\u{1F1FE}","state of libya","\u0627\u0644\u062C\u0645\u0627\u0647\u064A\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629 \u0627\u0644\u0625\u0634\u062A\u0631\u0627\u0643\u064A\u0629","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A","\u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A\u0646","\u062F\u0648\u0644\u0629 \u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u0628\u064A\u0627","\u0644\u064A\u0628\u064A","\u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u064A\u0629"]},{iso3:"LCA",iso2:"LC",m49:"662",name:"Saint Lucia",aliases:["\u{1F1F1}\u{1F1E8}","hewanorra","iyonola"]},{iso3:"LIE",iso2:"LI",m49:"438",name:"Liechtenstein",aliases:["\u{1F1F1}\u{1F1EE}","furstentum lichtenstein","furstentum liechtenstein","principality of liechtenstein"]},{iso3:"LKA",iso2:"LK",m49:"144",name:"Sri Lanka",aliases:["\u{1F1F1}\u{1F1F0}","ceylan","ceylon","democratic socialist republic of sri lanka","ilankaic cananayaka cocalicak kutiyarcu","lankava","prajatantravadi samajavadi janarajaya sri lanka","serendib","srilanka","taprobane","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0B9A\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0BB7\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B88\u0BB4\u0BAE\u0BCD","\u0B9A\u0BBF\u0BB2\u0BCB\u0BA9\u0BCD","\u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF \u0DB4\u0DCA\u0DBB\u0DA2\u0DCF\u0DAD\u0DB1\u0DCA\u0DAD\u0DCA\u0DBB\u0DC0\u0DCF\u0DAF\u0DD3 \u0DC3\u0DB8\u0DCF\u0DA2\u0DC0\u0DCF\u0DAF\u0DD3 \u0DA2\u0DB1\u0DBB\u0DA2\u0DBA","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0"]},{iso3:"LSO",iso2:"LS",m49:"426",name:"Lesotho",aliases:["\u{1F1F1}\u{1F1F8}","kingdom of lesotho","mmuso wa lesotho","mountain kingdom"]},{iso3:"LTU",iso2:"LT",m49:"440",name:"Lithuania",aliases:["\u{1F1F1}\u{1F1F9}","lietuva","lietuvos respublika","republic of lithuania"]},{iso3:"LUX",iso2:"LU",m49:"442",name:"Luxembourg",aliases:["\u{1F1F1}\u{1F1FA}","grand duche","grand duche de luxembourg","grand duchy of luxembourg","gro\xDFherzogtum luxemburg","groussherzogtum letzebuerg","le grand duche de luxembourg","letzebuerg","letzebuerger land","lux","luxemburg"]},{iso3:"LVA",iso2:"LV",m49:"428",name:"Latvia",aliases:["\u{1F1F1}\u{1F1FB}","latveja","latvejas republika","latvian republic","latvija","latvijas republika","letm\u043E","letm\u043E vabam\u043E","republic of latvia"]},{iso3:"MAC",iso2:"MO",m49:"446",name:"Macao",aliases:["\u{1F1F2}\u{1F1F4}","aomen","macao sar","macao special administrative region","macao special administrative region of the peoples republic of china","macau","macau rae da china","macau sar","macau special administrative region","macau special administrative region of the peoples republic of china","raem","regiao administrativa especial de macau","regiao administrativa especial de macau da republica popular da china","\u4E2D\u570B\u6FB3\u9580\u7279\u5225\u884C\u653F\u5340","\u6FB3\u9580"]},{iso3:"MAF",iso2:"MF",m49:"663",name:"Saint Martin (French Part)",aliases:["\u{1F1F2}\u{1F1EB}","collectivite de saint martin","collectivity of saint martin","saint martin","saint martin antilles francaises","saint martin france"]},{iso3:"MAR",iso2:"MA",m49:"504",name:"Morocco",aliases:["\u{1F1F2}\u{1F1E6}","kingdom of morocco","\u0627\u0644\u0645\u063A\u0631\u0628","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0645\u063A\u0631\u0628\u064A\u0629","\u2D30\u2D4E\u2D53\u2D54 \u2D4F \u2D61\u2D30\u2D3D\u2D53\u2D5B","\u2D30\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31","\u2D5C\u2D30\u2D33\u2D4D\u2D37\u2D49\u2D5C \u2D4F \u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31"]},{iso3:"MCO",iso2:"MC",m49:"492",name:"Monaco",aliases:["\u{1F1F2}\u{1F1E8}","fort hercule","la principaute de monaco","monaco rattachee au district de menton en 1793","munegu","principality and diocese of monaco","principality of monaco","principatu de munegu","principaute de monaco"]},{iso3:"MDA",iso2:"MD",m49:"498",name:"Republic of Moldova",aliases:["\u{1F1F2}\u{1F1E9}","moldavia","moldova","moldova republic of","moldova republica","r moldova","rep moldova","republica moldova","\u043C\u043E\u043B\u0434\u043E\u0432\u0430"]},{iso3:"MDG",iso2:"MG",m49:"450",name:"Madagascar",aliases:["\u{1F1F2}\u{1F1EC}","la republique de madagascar","madagasikara","repoblikani madagasikara","republic of madagascar","republique de madagascar"]},{iso3:"MDV",iso2:"MV",m49:"462",name:"Maldives",aliases:["\u{1F1F2}\u{1F1FB}","dhivehi raajjeyge jumhooriyyaa","republic of maldives","\u078B\u07A8\u0788\u07AC\u0780\u07A8 \u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07AA\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7"]},{iso3:"MEX",iso2:"MX",m49:"484",name:"Mexico",aliases:["\u{1F1F2}\u{1F1FD}","estados unidos mejicanos","estados unidos mexicanos","mejico","mexican republic","mexican united states","mexihco","mexihko","mexika sentik wexteyowalko","mexiko","mexko","mexko axkayotl","mexko tlalli","nueva espana","republica mejicana","republica mexicana","united mexican states","united states of mexico"]},{iso3:"MHL",iso2:"MH",m49:"584",name:"Marshall Islands",aliases:["\u{1F1F2}\u{1F1ED}","aelon kein ad","aolepan aorokin majel","jolet jen anij","majel","majol","republic of the marshall islands"]},{iso3:"MKD",iso2:"MK",m49:"807",name:"North Macedonia",aliases:["\u{1F1F2}\u{1F1F0}","former yugoslav republic of macedonia","fyr macedonia","fyrom","irjm","ish republika jugosllave e maqedonise","macedonia","macedonia former yugoslav republic of","macedonia fyr","maqedoni","maqedonia","maqedonia e veriut","republic of macedonia","republic of north macedonia","republika e maqedonise","republika e maqedonise se veriut","\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u043C","\u0440\u0441\u043C","\u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430"]},{iso3:"MLI",iso2:"ML",m49:"466",name:"Mali",aliases:["\u{1F1F2}\u{1F1F1}","maali","republic of mali"]},{iso3:"MLT",iso2:"MT",m49:"470",name:"Malta",aliases:["\u{1F1F2}\u{1F1F9}","malta island","repubblika ta malta","republic of malta"]},{iso3:"MMR",iso2:"MM",m49:"104",name:"Myanmar",aliases:["\u{1F1F2}\u{1F1F2}","burma","pyidaungzu myanma naingngandaw","pyidaungzu thammada myanma naingngandaw","republic of the union of myanmar","union of burma","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u200C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1017\u1019\u102C\u1015\u103C\u100A\u103A","\u1019\u103C\u1014\u103A\u1019\u102C","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1019\u103C\u1014\u103A\u1019\u102C\u1015\u103C\u100A\u103A"]},{iso3:"MNE",iso2:"ME",m49:"499",name:"Montenegro",aliases:["\u{1F1F2}\u{1F1EA}","crna cora","\u0446\u0440\u043D\u0430 \u0433\u043E\u0440\u0430"]},{iso3:"MNG",iso2:"MN",m49:"496",name:"Mongolia",aliases:["\u{1F1F2}\u{1F1F3}","bugd nayramdah mongol ard uls","mongol uls","state of mongolia","\u043C\u043E\u043D\u0433\u043E\u043B","\u043C\u043E\u043D\u0433\u043E\u043B \u0443\u043B\u0441","\u182E\u1824\u1829\u182D\u1824\u182F \u1824\u182F\u1824\u1830"]},{iso3:"MNP",iso2:"MP",m49:"580",name:"Northern Mariana Islands",aliases:["\u{1F1F2}\u{1F1F5}","cnmi","commonwealth of the northern maria islands","commonwealth of the northern mariana islands","northern marianas","notte marianas","sankattan siha na islas marianas"]},{iso3:"MOZ",iso2:"MZ",m49:"508",name:"Mozambique",aliases:["\u{1F1F2}\u{1F1FF}","mocambique","republic of mozambique","republica de mocambique"]},{iso3:"MRT",iso2:"MR",m49:"478",name:"Mauritania",aliases:["\u{1F1F2}\u{1F1F7}","islamic republic of mauritania","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629 \u0627\u0644\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0629","\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627"]},{iso3:"MSR",iso2:"MS",m49:"500",name:"Montserrat",aliases:["\u{1F1F2}\u{1F1F8}","island of montserrat"]},{iso3:"MTQ",iso2:"MQ",m49:"474",name:"Martinique",aliases:["\u{1F1F2}\u{1F1F6}","territorial collectivity of martinique"]},{iso3:"MUS",iso2:"MU",m49:"480",name:"Mauritius",aliases:["\u{1F1F2}\u{1F1FA}","ile maurice","la republique de maurice","maurice","moris","republic of mauritius","republique de maurice"]},{iso3:"MWI",iso2:"MW",m49:"454",name:"Malawi",aliases:["\u{1F1F2}\u{1F1FC}","republic of malawi"]},{iso3:"MYS",iso2:"MY",m49:"458",name:"Malaysia",aliases:["\u{1F1F2}\u{1F1FE}","federation of malaysia","malaysia federation","negara seberang tambak","persekutuan malaysia"]},{iso3:"MYT",iso2:"YT",m49:"175",name:"Mayotte",aliases:["\u{1F1FE}\u{1F1F9}","departement de mayotte","departement region de mayotte","department of mayotte"]},{iso3:"NAM",iso2:"NA",m49:"516",name:"Namibia",aliases:["\u{1F1F3}\u{1F1E6}","republic of namibia"]},{iso3:"NCL",iso2:"NC",m49:"540",name:"New Caledonia",aliases:["\u{1F1F3}\u{1F1E8}","caledonie","kanaky","kanaky nouvelle caledonie","nouvelle caledonie","territoire de la nouvelle caledonie et dependances","territoire des nouvelle caledonie et dependances","territory of new caledonia and dependencies"]},{iso3:"NER",iso2:"NE",m49:"562",name:"Niger",aliases:["\u{1F1F3}\u{1F1EA}","jamhuriyar nijar","nijar","republic niger","republic of niger","republic of the niger"]},{iso3:"NFK",iso2:"NF",m49:"574",name:"Norfolk Island",aliases:["\u{1F1F3}\u{1F1EB}","norfolk island australia","norfolk island other territories","norfolk island other territories australia","territory of norfolk island"]},{iso3:"NGA",iso2:"NG",m49:"566",name:"Nigeria",aliases:["\u{1F1F3}\u{1F1EC}","federal republic of nigeria","naija"]},{iso3:"NIC",iso2:"NI",m49:"558",name:"Nicaragua",aliases:["\u{1F1F3}\u{1F1EE}","republic of nicaragua","republica de nicaragua"]},{iso3:"NIU",iso2:"NU",m49:"570",name:"Niue",aliases:["\u{1F1F3}\u{1F1FA}"]},{iso3:"NLD",iso2:"NL",m49:"528",name:"Kingdom of the Netherlands",aliases:["\u{1F1F3}\u{1F1F1}","hollandt","kingdom of netherlands","koninkrijk der nederlanden","nederland","nederlanden","nederlandt","netherlands","netherlands kingdom of the"]},{iso3:"NOR",iso2:"NO",m49:"578",name:"Norway",aliases:["\u{1F1F3}\u{1F1F4}","kingdom of norway","kongeriket noreg","kongeriket norge","noreg","norge"]},{iso3:"NPL",iso2:"NP",m49:"524",name:"Nepal",aliases:["\u{1F1F3}\u{1F1F5}","bal bo","bal poi yul","bal yul","balbo","balpo","balpo yul","nipal","sanghiya loktantrik ganatantra nepal","\u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930\u093E\u0924\u094D\u092E\u0915 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u0940\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932"]},{iso3:"NRU",iso2:"NR",m49:"520",name:"Naoero",aliases:["\u{1F1F3}\u{1F1F7}","nauru","pleasant island","republic of naoero","republic of nauru"]},{iso3:"NZL",iso2:"NZ",m49:"554",name:"New Zealand",aliases:["\u{1F1F3}\u{1F1FF}","aotearoa","aotearoa new zealand","dominion of new zealand"]},{iso3:"OMN",iso2:"OM",m49:"512",name:"Oman",aliases:["\u{1F1F4}\u{1F1F2}","sultanate of oman","uman","\u0633\u0644\u0637\u0646\u0629 \u0639\u0645\u0627\u0646","\u0639\u0645\u0627\u0646"]},{iso3:"PAK",iso2:"PK",m49:"586",name:"Pakistan",aliases:["\u{1F1F5}\u{1F1F0}","hoi quoc","islamic republic of pakistan","republic of pakistan","tay hoi","\u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u06C1\u0648\u0631\u06CC\u06C1 \u067E\u0627\u06A9\u0633\u062A\u0627\u0646","\u0628\u0627\u06A9\u0633\u062A\u0627\u0646","\u067E\u0627\u06A9\u0633\u062A\u0627\u0646"]},{iso3:"PAN",iso2:"PA",m49:"591",name:"Panama",aliases:["\u{1F1F5}\u{1F1E6}","republic of panama","republica de panama"]},{iso3:"PCN",iso2:"PN",m49:"612",name:"Pitcairn",aliases:["\u{1F1F5}\u{1F1F3}","occas island","pisskern ali\u0435n","pitcairn henderson ducie and oeno islands","pitcairn island","pitcairn islands","pitkern ailen"]},{iso3:"PER",iso2:"PE",m49:"604",name:"Peru",aliases:["\u{1F1F5}\u{1F1EA}","piruw","piruw ripuwlika","republic of peru","republica del peru"]},{iso3:"PHL",iso2:"PH",m49:"608",name:"Philippines",aliases:["\u{1F1F5}\u{1F1ED}","philippine islands","republic of the philippines"]},{iso3:"PLW",iso2:"PW",m49:"585",name:"Palau",aliases:["\u{1F1F5}\u{1F1FC}","belau","peeloo","pelew","pelew islands","pellew","republic of belau","republic of palau","\u30D1\u30E9\u30AA","\u30D1\u30E9\u30AA\u5171\u548C\u56FD"]},{iso3:"PNG",iso2:"PG",m49:"598",name:"Papua New Guinea",aliases:["\u{1F1F5}\u{1F1EC}","independent state of papua new guinea","papua niugini"]},{iso3:"POL",iso2:"PL",m49:"616",name:"Poland",aliases:["\u{1F1F5}\u{1F1F1}","polska","republic of poland","rzeczpospolita polska"]},{iso3:"PRI",iso2:"PR",m49:"630",name:"Puerto Rico",aliases:["\u{1F1F5}\u{1F1F7}","boriken","borinquen","boriquen","commonwealth of puerto rico","estado libre asociado de puerto rico","free associated state of puerto rico","isla del encanto","island of enchantment","isle of enchantment","mancomunidad de puerto rico","porto rico","territorio de puerto rico","territorio estadounidense de puerto rico","territory of porto rico","territory of puerto rico"]},{iso3:"PRK",iso2:"KP",m49:"408",name:"Democratic People's Republic of Korea",aliases:["\u{1F1F0}\u{1F1F5}","choson minjujuui inmin konghwaguk","dpr korea","dprk","korea democratic peoples republic of","n korea","north korea","\uACF5\uD654\uAD6D","\uBD81\uC870\uC120","\uBD81\uD55C","\uC870\uC120","\uC870\uC120\uBBFC\uC8FC\uC8FC\uC758\uC778\uBBFC\uACF5\uD654\uAD6D"]},{iso3:"PRT",iso2:"PT",m49:"620",name:"Portugal",aliases:["\u{1F1F5}\u{1F1F9}","republica portuguesa"]},{iso3:"PRY",iso2:"PY",m49:"600",name:"Paraguay",aliases:["\u{1F1F5}\u{1F1FE}","paraguai","republic of paraguay","republica del paraguay","teta paraguai"]},{iso3:"PSE",iso2:"PS",m49:"275",name:"State of Palestine",aliases:["\u{1F1F5}\u{1F1F8}","palestine","palestine state of","palestinian authority","palestinian national authority","palestinian territory","west bank and gaza","\u0623\u0631\u0627\u0636\u064A \u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0623\u0631\u0627\u0636\u064A \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0648\u0637\u0646\u064A\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0636\u0641\u0629 \u0627\u0644\u063A\u0631\u0628\u064A\u0629 \u0648\u0642\u0637\u0627\u0639 \u063A\u0632\u0629","\u062F\u0648\u0644\u0629 \u0641\u0644\u0633\u0637\u064A\u0646","\u0641\u0644\u0633\u0637\u064A\u0646"]},{iso3:"PYF",iso2:"PF",m49:"258",name:"French Polynesia",aliases:["\u{1F1F5}\u{1F1EB}","f oh","french establishments in oceania","french oceania","french settlements in oceania","polynesie francaise","territoire de la polynesie francaise","territory of french polynesia"]},{iso3:"QAT",iso2:"QA",m49:"634",name:"Qatar",aliases:["\u{1F1F6}\u{1F1E6}","state of qatar","\u0625\u0645\u0627\u0631\u0629 \u0642\u0637\u0631","\u062F\u0648\u0644\u0629 \u0642\u0637\u0631","\u0642\u0637\u0631"]},{iso3:"REU",iso2:"RE",m49:"638",name:"R\xE9union",aliases:["\u{1F1F7}\u{1F1EA}","ile bourbon","ile de la reunion","la reunion","re","region reunion","reunion island"]},{iso3:"ROU",iso2:"RO",m49:"642",name:"Romania",aliases:["\u{1F1F7}\u{1F1F4}"]},{iso3:"RUS",iso2:"RU",m49:"643",name:"Russian Federation",aliases:["\u{1F1F7}\u{1F1FA}","federation of russia","russia","\u0440\u043E\u0441\u0441\u0438\u0438\u0441\u043A\u0430\u044F \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044F","\u0440\u043E\u0441\u0441\u0438\u044F","\u0440\u0444"]},{iso3:"RWA",iso2:"RW",m49:"646",name:"Rwanda",aliases:["\u{1F1F7}\u{1F1FC}","igihugu cyimisozi igihumbi","jamhuri ya rwanda","la republique du rwanda","land of a thousand hills","republic of rwanda","republika yu rwanda","republique du rwanda","republique rwandaise","repubulika yu rwanda","u rwanda"]},{iso3:"SAU",iso2:"SA",m49:"682",name:"Saudi Arabia",aliases:["\u{1F1F8}\u{1F1E6}","kingdom of saudi arabia","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0647","\u0627\u0644\u0645\u0645\u0644\u0643\u0647 \u0627\u0644\u0639\u0631\u0628\u064A\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0628\u0644\u0627\u062F \u0627\u0644\u062D\u0631\u0645\u064A\u0646 \u0627\u0644\u0634\u0631\u064A\u0641\u064A\u0646","\u062F\u0648\u0644\u0629 \u0622\u0644 \u0633\u0639\u0648\u062F","\u0633\u0639\u0648\u062F\u064A\u0629","\u0633\u0639\u0648\u062F\u064A\u0647","\u0645\u0646\u0628\u0639 \u0627\u0644\u0631\u0633\u0627\u0644\u0629","\u0645\u0647\u0628\u0637 \u0627\u0644\u0648\u062D\u064A"]},{iso3:"SDN",iso2:"SD",m49:"729",name:"Sudan",aliases:["\u{1F1F8}\u{1F1E9}","al sudan","as sudan","north sudan","republic of sudan","republic of the sudan","soudan","\u0627\u0644\u0633\u0648\u062F\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0633\u0648\u062F\u0627\u0646"]},{iso3:"SEN",iso2:"SN",m49:"686",name:"Senegal",aliases:["\u{1F1F8}\u{1F1F3}","la republique du senegal","republic of senegal","republique du senegal","sen","senegaal"]},{iso3:"SGP",iso2:"SG",m49:"702",name:"Singapore",aliases:["\u{1F1F8}\u{1F1EC}","garden city","lion city","republic of singapore","republik singapura","singapore city","singapura","spore","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BC8","\u0BB8\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BC2\u0BB0\u0BCD"]},{iso3:"SGS",iso2:"GS",m49:"239",name:"South Georgia and the South Sandwich Islands",aliases:["\u{1F1EC}\u{1F1F8}","falkland islands dependencies","sgssi","south georgia","south georgia & south sandwich islands","south sandwich islands"]},{iso3:"SHN",iso2:"SH",m49:"654",name:"Saint Helena",aliases:["\u{1F1F8}\u{1F1ED}","ascension","saint helena and dependencies","saint helena ascension and tristan da cunha","tristan da cunha"]},{iso3:"SJM",iso2:"SJ",m49:"744",name:"Svalbard and Jan Mayen Islands",aliases:["\u{1F1F8}\u{1F1EF}","jan mayen","svalbard","svalbard and jan mayen","svalbard og jan mayen"]},{iso3:"SLB",iso2:"SB",m49:"090",name:"Solomon Islands",aliases:["\u{1F1F8}\u{1F1E7}"]},{iso3:"SLE",iso2:"SL",m49:"694",name:"Sierra Leone",aliases:["\u{1F1F8}\u{1F1F1}","republic of sierra leone"]},{iso3:"SLV",iso2:"SV",m49:"222",name:"El Salvador",aliases:["\u{1F1F8}\u{1F1FB}","republic of el salvador","republica de el salvador","salvador"]},{iso3:"SMR",iso2:"SM",m49:"674",name:"San Marino",aliases:["\u{1F1F8}\u{1F1F2}","most serene republic of san marino","repubblica di san marino","serenissima repubblica di san marino"]},{iso3:"SOM",iso2:"SO",m49:"706",name:"Somalia",aliases:["\u{1F1F8}\u{1F1F4}","as sumal","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jamhuuriyadda soomaaliyeed","soomaaliya","soomaaliyeey toosoo","\u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u062F\u064A\u0645\u0648\u0642\u0631\u0627\u0637\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u0641\u064A\u062F\u0631\u0627\u0644\u064A\u0629","\u0635\u0648\u0645\u0627\u0644"]},{iso3:"SPM",iso2:"PM",m49:"666",name:"Saint Pierre and Miquelon",aliases:["\u{1F1F5}\u{1F1F2}","collectivite territoriale de saint pierre et miquelon","miquelon","saint pierre","saint pierre et miquelon","territorial collectivity of saint pierre and miquelon"]},{iso3:"SRB",iso2:"RS",m49:"688",name:"Serbia",aliases:["\u{1F1F7}\u{1F1F8}","republic of serbia","republika srbija","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0440\u0431\u0438\u0458\u0430","\u0441\u0440\u0431\u0438\u0458\u0430"]},{iso3:"SSD",iso2:"SS",m49:"728",name:"South Sudan",aliases:["\u{1F1F8}\u{1F1F8}","republic of south sudan","southern sudan"]},{iso3:"STP",iso2:"ST",m49:"678",name:"Sao Tome and Principe",aliases:["\u{1F1F8}\u{1F1F9}","democratic republic of sao tome and principe","principe","republica democratica de sao tome e principe","sao tome","sao tome e principe","sao tome og principe"]},{iso3:"SUR",iso2:"SR",m49:"740",name:"Suriname",aliases:["\u{1F1F8}\u{1F1F7}","dutch guiana","republic of surinam","republic of suriname","republiek suriname","surinam","surrinam"]},{iso3:"SVK",iso2:"SK",m49:"703",name:"Slovakia",aliases:["\u{1F1F8}\u{1F1F0}","slovak republic","slovenska republika","slovensko"]},{iso3:"SVN",iso2:"SI",m49:"705",name:"Slovenia",aliases:["\u{1F1F8}\u{1F1EE}","republic of slovenia","republika slovenija","slovenija"]},{iso3:"SWE",iso2:"SE",m49:"752",name:"Sweden",aliases:["\u{1F1F8}\u{1F1EA}","kingdom of sweden","konungadomet sverige","konungariket sverige","kungadomet sverige","kungariket sverige","sverige","swedish kingdom"]},{iso3:"SWZ",iso2:"SZ",m49:"748",name:"Eswatini",aliases:["\u{1F1F8}\u{1F1FF}","kingdom of eswatini","kingdom of swaziland","swaziland","umbuso weswatini"]},{iso3:"SXM",iso2:"SX",m49:"534",name:"Sint Maarten (Dutch part)",aliases:["\u{1F1F8}\u{1F1FD}","country of sint maarten","eilandgebied sint maarten","land sint maarten","saint maarten","saint martin dutch part","sint maarten","sint martin"]},{iso3:"SYC",iso2:"SC",m49:"690",name:"Seychelles",aliases:["\u{1F1F8}\u{1F1E8}","la republique des seychelles","repiblik sesel","republic of seychelles","republique des seychelles"]},{iso3:"SYR",iso2:"SY",m49:"760",name:"Syrian Arab Republic",aliases:["\u{1F1F8}\u{1F1FE}","surya","syria","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0648\u0631\u064A\u0629","\u0627\u0644\u0634\u0627\u0645","\u0633\u0648\u0631\u064A\u0627","\u0633\u0648\u0631\u064A\u0629"]},{iso3:"TCA",iso2:"TC",m49:"796",name:"Turks and Caicos Islands",aliases:["\u{1F1F9}\u{1F1E8}","caicos","caicos islands","turks","turks & caicos","turks islands"]},{iso3:"TCD",iso2:"TD",m49:"148",name:"Chad",aliases:["\u{1F1F9}\u{1F1E9}","la republique du tchad","republic of chad","republique du tchad","tchad","\u062A\u0634\u0627\u062F","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062A\u0634\u0627\u062F"]},{iso3:"TGO",iso2:"TG",m49:"768",name:"Togo",aliases:["\u{1F1F9}\u{1F1EC}","la republique togolaise","republique togolaise","togolese republic"]},{iso3:"THA",iso2:"TH",m49:"764",name:"Thailand",aliases:["\u{1F1F9}\u{1F1ED}","kingdom of siam","kingdom of thailand","siam","thai","\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E2A\u0E22\u0E32\u0E21","\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E2A\u0E22\u0E32\u0E21","\u0E2A\u0E22\u0E32\u0E21"]},{iso3:"TJK",iso2:"TJ",m49:"762",name:"Tajikistan",aliases:["\u{1F1F9}\u{1F1EF}","jumhurii tojikiston","republic of tajikistan","\u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D","\u0442\u04B7","\u0442\u04B7\u043A","\u04B7\u0442","\u04B7\u0443\u043C\u04B3\u0443\u0440\u0438\u0438 \u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D"]},{iso3:"TKL",iso2:"TK",m49:"772",name:"Tokelau",aliases:["\u{1F1F9}\u{1F1F0}","tokelau islands","union islands"]},{iso3:"TKM",iso2:"TM",m49:"795",name:"Turkmenistan",aliases:["\u{1F1F9}\u{1F1F2}"]},{iso3:"TLS",iso2:"TL",m49:"626",name:"Timor-Leste",aliases:["\u{1F1F9}\u{1F1F1}","democratic republic of timor leste","east timor","republica democratica de timor leste","republika demokratika timor lorosae","timor loro sae","timor lorosae"]},{iso3:"TON",iso2:"TO",m49:"776",name:"Tonga",aliases:["\u{1F1F9}\u{1F1F4}","friendly islands","kingdom of tonga","puleanga fakatui o tonga","tonga islands"]},{iso3:"TTO",iso2:"TT",m49:"780",name:"Trinidad and Tobago",aliases:["\u{1F1F9}\u{1F1F9}","republic of trinidad and tobago","tobago","trinidad"]},{iso3:"TUN",iso2:"TN",m49:"788",name:"Tunisia",aliases:["\u{1F1F9}\u{1F1F3}","republic of tunisia","tunisian republic","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062A\u0648\u0646\u0633\u064A\u0629","\u062A\u0648\u0646\u0633","\u062A\u0648\u0646\u0633 \u0627\u0644\u062E\u0636\u0631\u0627\u0621"]},{iso3:"TUR",iso2:"TR",m49:"792",name:"T\xFCrkiye",aliases:["\u{1F1F9}\u{1F1F7}","republic of turkey","republic of turkiye","turkey","turkiye cumhuriyeti"]},{iso3:"TUV",iso2:"TV",m49:"798",name:"Tuvalu",aliases:["\u{1F1F9}\u{1F1FB}","ellice islands"]},{iso3:"TWN",iso2:"TW",m49:"158",name:"Taiwan",aliases:["\u{1F1F9}\u{1F1FC}","chinese republic","chinese taipei","chunghwa minkuo","chunghwa minkwo","conghwaminku","cunghwa minkwo","cyukamingkok","formosa","nanasian","nationalist china","republic of china","republic of china taiwan","roc","taivang","taiwan province of china","taiwan roc","taywan","taywang","teywan","\u4E2D\u83EF\u6C11\u570B","\u4E2D\u83EF\u6C11\u570B\uFF08\u81FA\u7063\uFF09","\u4E2D\u83EF\u81FA\u5317","\u53F0\u7063","\u81FA\u6F8E\u91D1\u99AC","\u81FA\u7063"]},{iso3:"TZA",iso2:"TZ",m49:"834",name:"United Republic of Tanzania",aliases:["\u{1F1F9}\u{1F1FF}","jamhuri ya muungano wa tanganyika na zanzibar","jamhuri ya muungano wa tanzania","tanzania","tanzania jamhuri ya muungano wa","tanzania united republic of","united republic of tanganyika and zanzibar"]},{iso3:"UGA",iso2:"UG",m49:"800",name:"Uganda",aliases:["\u{1F1FA}\u{1F1EC}","jamhuri ya uganda","lulu ya afrika","ouganda","pearl of africa","republic of uganda","ugandah"]},{iso3:"UKR",iso2:"UA",m49:"804",name:"Ukraine",aliases:["\u{1F1FA}\u{1F1E6}","ukr","ukraina","ukrainia","ukrayina","\u0432\u043A\u0440\u0430\u0456\u043D\u0430","\u0443\u043A\u0440\u0430\u0456\u043D\u0430"]},{iso3:"UMI",iso2:"UM",m49:"581",name:"United States Minor Outlying Islands",aliases:["\u{1F1FA}\u{1F1F2}","us minor outlying islands","us outlying islands","usmoi"]},{iso3:"URY",iso2:"UY",m49:"858",name:"Uruguay",aliases:["\u{1F1FA}\u{1F1FE}","eastern republic of uruguay","oriental republic of uruguay"]},{iso3:"USA",iso2:"US",m49:"840",name:"United States of America",aliases:["\u{1F1FA}\u{1F1F8}","amelika","amelika hui pu ia","amelika huipuia","amelika mokuaina hui pu ia","america","eeuu","eeuu de america","estados unidos","estados unidos de america","los estados","los estados unidos","los estados unidos de america","mokuaina hui pu ia","union americana","united states","us","us of a","us of america","usa"]},{iso3:"UZB",iso2:"UZ",m49:"860",name:"Uzbekistan",aliases:["\u{1F1FA}\u{1F1FF}","ozbek","ozbekiston","ozbekiston respublikasi","republic of uzbekistan","uzbekiston respublikasi"]},{iso3:"VAT",iso2:"VA",m49:"336",name:"Holy See",aliases:["\u{1F1FB}\u{1F1E6}","citta del vaticano","civitas vaticana","colle vaticano","papal state","santa sede citta del vaticano","state of vatican city","stato della citta del vaticano","status civitatis vaticanae","status civitatis vatican\xE6","vatican","vatican city","vatican city state","vaticano"]},{iso3:"VCT",iso2:"VC",m49:"670",name:"Saint Vincent and the Grenadines",aliases:["\u{1F1FB}\u{1F1E8}","grenadines","saint vincent","saint vincent and grenadines"]},{iso3:"VEN",iso2:"VE",m49:"862",name:"Venezuela (Bolivarian Republic of)",aliases:["\u{1F1FB}\u{1F1EA}","bolivarian republic of venezuela","br venezuela","estados unidos de venezuela","rb venezuela","republic of venezuela","republica bolivariana de venezuela","republica de venezuela","venezuela"]},{iso3:"VGB",iso2:"VG",m49:"092",name:"British Virgin Islands",aliases:["\u{1F1FB}\u{1F1EC}","bvi","virgin islands british","virgin islands of the united kingdom","virgin islands united kingdom"]},{iso3:"VIR",iso2:"VI",m49:"850",name:"United States Virgin Islands",aliases:["\u{1F1FB}\u{1F1EE}","american virgin islands","us virgin islands","virgin islands of the united states","virgin islands us"]},{iso3:"VNM",iso2:"VN",m49:"704",name:"Viet Nam",aliases:["\u{1F1FB}\u{1F1F3}","chxhcn viet nam","chxhcnvn","cong hoa xa hoi chu nghia viet nam","socialist republic of viet nam","socialist republic of vietnam","vietnam"]},{iso3:"VUT",iso2:"VU",m49:"548",name:"Vanuatu",aliases:["\u{1F1FB}\u{1F1FA}","la republique du vanuatu","republic of vanuatu","republique de vanuatu","ripablik blong vanuatu"]},{iso3:"WLF",iso2:"WF",m49:"876",name:"Wallis and Futuna Islands",aliases:["\u{1F1FC}\u{1F1EB}","collectivite des iles wallis et futuna","emeni simete","futuna","iles wallis et futuna","makape papilio","territoire de wallis et futuna","territoire des iles wallis et futuna","wallis","wallis & futuna","wallis et futuna"]},{iso3:"WSM",iso2:"WS",m49:"882",name:"Samoa",aliases:["\u{1F1FC}\u{1F1F8}","independent state of samoa","malo saoloto tutoatasi o samoa","samoa i sisifo","western samoa"]},{iso3:"YEM",iso2:"YE",m49:"887",name:"Yemen",aliases:["\u{1F1FE}\u{1F1EA}","rep yemen","republic of yemen","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u064A\u0645\u0646\u064A\u0629","\u0627\u0644\u064A\u0645\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u064A\u0645\u0646"]},{iso3:"ZAF",iso2:"ZA",m49:"710",name:"South Africa",aliases:["\u{1F1FF}\u{1F1E6}","aferika borwa","aforika borwa","afrika boroa","afrika borwa","afrika dzonga","afurika tshipembe","emzantsi afrika","iningizimu afrika","iriphabhulikhi ye ningizimu afrika","iriphabhulikhi yeningizimu afrika","iriphabhuliki yase ningizimu afrika","iriphabliki yasemzantsi afrika","iriphabliki yaseningizimu afrika","iriphabliki yom zantsi afrika","isewula afrika","repabliki ya afrika borwa","rephaboliki ya aforika borwa","rephaboliki ya afrika borwa","republic of south africa","republiek van suid afrika","riphabliki ra afrika dzonga","rsa","suid afrika","umzansi","umzantsi afrika","unie van suid afrika","union of south africa"]},{iso3:"ZMB",iso2:"ZM",m49:"894",name:"Zambia",aliases:["\u{1F1FF}\u{1F1F2}","northern rhodesia","republic of zambia"]},{iso3:"ZWE",iso2:"ZW",m49:"716",name:"Zimbabwe",aliases:["\u{1F1FF}\u{1F1FC}","ezimbabwe","izimbabwe","republic of zimbabwe","rhodesia","southern rhodesia","zimbabwe rhodesia","zimbagwe"]}];function D8(e){return e.normalize("NFD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").toLowerCase().replace(/[\u064B-\u065F]/g,"").replace(/['\u2018\u2019\u02BB\u02BC\u02BD\u02C8\u2032`]/g,"").replace(/&/g," and ").replace(/([,(])\s*the\b/g,"$1").replace(/[.(),[\]]/g,"").replace(/[-\u2013\u2014]/g," ").replace(/\bst\b/g,"saint").trim().replace(/\s+/g," ").replace(/^the\s+/,"")}function aU(e){let r=new Map,t=new Map,a=new Map;for(let l of e)r.set(l.iso3,l),l.iso2&&t.set(l.iso2,l),l.m49&&a.set(l.m49,l);let n=new Map;for(let l of e)for(let s of[l.name,...l.aliases]){let u=D8(s),f=n.get(u);if(f!==void 0&&f!==l.iso3)throw new Error(`Duplicate name/alias "${u}": ${f} vs ${l.iso3}`);n.set(u,l.iso3)}function i(l){if(l==null)return;let s=String(l).trim();if(!s)return;if(/^\d+$/.test(s)){let f=a.get(String(parseInt(s,10)).padStart(3,"0"));if(f)return f}if(/^[A-Za-z]{2}$/.test(s)){let f=t.get(s.toUpperCase());if(f)return f}if(/^[A-Za-z]{3}$/.test(s)){let f=r.get(s.toUpperCase());if(f)return f}let u=n.get(D8(s));return u===void 0?void 0:r.get(u)}function o(l){var s;return(s=i(l))==null?void 0:s.iso3}return{lookup:i,lookupAlpha3:o,byAlpha3:r,byAlpha2:t,byM49:a}}var sd=aU(tU),Mme=sd.lookup,Tme=sd.lookupAlpha3,kme=sd.byAlpha3,Cme=sd.byAlpha2,Sme=sd.byM49});var X3=le(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var mn=63710088e-1,L8={centimeters:mn*100,centimetres:mn*100,cm:mn*100,degrees:360/(2*Math.PI),deg:360/(2*Math.PI),feet:mn*3.28084,ft:mn*3.28084,inches:mn*39.37,in:mn*39.37,kilometers:mn/1e3,kilometres:mn/1e3,km:mn/1e3,meters:mn,metres:mn,m:mn,miles:mn/1609.344,mi:mn/1609.344,millimeters:mn*1e3,millimetres:mn*1e3,mm:mn*1e3,nauticalmiles:mn/1852,nmi:mn/1852,radians:1,rad:1,yards:mn*1.0936,yd:mn*1.0936},E8={acres:247105e-9,ac:247105e-9,centimeters:1e4,centimetres:1e4,cm:1e4,feet:10.763910417,ft:10.763910417,hectares:1e-4,ha:1e-4,inches:1550.003100006,in:1550.003100006,kilometers:1e-6,kilometres:1e-6,km:1e-6,meters:1,metres:1,m:1,miles:386e-9,mi:386e-9,nauticalmiles:29155334959812285e-23,nmi:29155334959812285e-23,millimeters:1e6,millimetres:1e6,mm:1e6,yards:1.195990046,yd:1.195990046};function $0(e,r,t={}){let a={type:"Feature"};return(t.id===0||t.id)&&(a.id=t.id),t.bbox&&(a.bbox=t.bbox),a.properties=r||{},a.geometry=e,a}function Dme(e,r,t={}){switch(e){case"Point":return q8(r).geometry;case"LineString":return R8(r).geometry;case"Polygon":return P8(r).geometry;case"MultiPoint":return lU(r).geometry;case"MultiLineString":return oU(r).geometry;case"MultiPolygon":return sU(r).geometry;default:throw new Error(e+" is invalid")}}function q8(e,r,t={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Y3(e[0])||!Y3(e[1]))throw new Error("coordinates must contain numbers");return $0({type:"Point",coordinates:e},r,t)}function Fme(e,r,t={}){return V3(e.map(a=>q8(a,r)),t)}function P8(e,r,t={}){for(let n of e){if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(n[n.length-1].length!==n[0].length)throw new Error("First and last Position are not equivalent.");for(let i=0;i<n[n.length-1].length;i++)if(n[n.length-1][i]!==n[0][i])throw new Error("First and last Position are not equivalent.")}return $0({type:"Polygon",coordinates:e},r,t)}function Eme(e,r,t={}){return V3(e.map(a=>P8(a,r)),t)}function R8(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return $0({type:"LineString",coordinates:e},r,t)}function Lme(e,r,t={}){return V3(e.map(a=>R8(a,r)),t)}function V3(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function oU(e,r,t={}){return $0({type:"MultiLineString",coordinates:e},r,t)}function lU(e,r,t={}){return $0({type:"MultiPoint",coordinates:e},r,t)}function sU(e,r,t={}){return $0({type:"MultiPolygon",coordinates:e},r,t)}function qme(e,r,t={}){return $0({type:"GeometryCollection",geometries:e},r,t)}function Pme(e,r=0){if(r&&!(r>=0))throw new Error("precision must be a positive number");let t=Math.pow(10,r||0);return Math.round(e*t)/t}function uU(e,r="kilometers"){let t=L8[r];if(!t)throw new Error(r+" units is invalid");return e*t}function z8(e,r="kilometers"){let t=L8[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Rme(e,r){return fU(z8(e,r))}function zme(e){let r=e%360;return r<0&&(r+=360),r}function Nme(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function fU(e){return e%(2*Math.PI)*180/Math.PI}function Bme(e){return e%360*Math.PI/180}function Ime(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return uU(z8(e,r),t)}function Hme(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let a=E8[r];if(!a)throw new Error("invalid original units");let n=E8[t];if(!n)throw new Error("invalid final units");return e/a*n}function Y3(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Ome(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function G3(e){delete e.bbox,e.type==="Feature"?e.geometry&&G3(e.geometry):e.type==="FeatureCollection"?e.features.forEach(G3):e.type==="GeometryCollection"&&e.geometries.forEach(G3)}function Ume(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(r=>{if(!Y3(r))throw new Error("bbox must only contain numbers")})}function Gme(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}pa.areaFactors=E8;pa.azimuthToBearing=Nme;pa.bearingToAzimuth=zme;pa.convertArea=Hme;pa.convertLength=Ime;pa.degreesToRadians=Bme;pa.earthRadius=mn;pa.factors=L8;pa.feature=$0;pa.featureCollection=V3;pa.geometry=Dme;pa.geometryCollection=qme;pa.isNumber=Y3;pa.isObject=Ome;pa.lengthToDegrees=Rme;pa.lengthToRadians=z8;pa.lineString=R8;pa.lineStrings=Lme;pa.multiLineString=oU;pa.multiPoint=lU;pa.multiPolygon=sU;pa.point=q8;pa.points=Fme;pa.polygon=P8;pa.polygons=Eme;pa.radiansToDegrees=fU;pa.radiansToLength=uU;pa.removeBbox=G3;pa.round=Pme;pa.validateBBox=Ume;pa.validateId=Gme});var W3=le(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});var Ci=X3();function ud(e,r,t){if(e!==null)for(var a,n,i,o,l,s,u,f=0,c=0,h,d=e.type,m=d==="FeatureCollection",p=d==="Feature",y=m?e.features.length:1,b=0;b<y;b++){u=m?e.features[b].geometry:p?e.geometry:e,h=u?u.type==="GeometryCollection":!1,l=h?u.geometries.length:1;for(var C=0;C<l;C++){var x=0,_=0;if(o=h?u.geometries[C]:u,o!==null){s=o.coordinates;var M=o.type;switch(f=t&&(M==="Polygon"||M==="MultiPolygon")?1:0,M){case null:break;case"Point":if(r(s,c,b,x,_)===!1)return!1;c++,x++;break;case"LineString":case"MultiPoint":for(a=0;a<s.length;a++){if(r(s[a],c,b,x,_)===!1)return!1;c++,M==="MultiPoint"&&x++}M==="LineString"&&x++;break;case"Polygon":case"MultiLineString":for(a=0;a<s.length;a++){for(n=0;n<s[a].length-f;n++){if(r(s[a][n],c,b,x,_)===!1)return!1;c++}M==="MultiLineString"&&x++,M==="Polygon"&&_++}M==="Polygon"&&x++;break;case"MultiPolygon":for(a=0;a<s.length;a++){for(_=0,n=0;n<s[a].length;n++){for(i=0;i<s[a][n].length-f;i++){if(r(s[a][n][i],c,b,x,_)===!1)return!1;c++}_++}x++}break;case"GeometryCollection":for(a=0;a<o.geometries.length;a++)if(ud(o.geometries[a],r,t)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Yme(e,r,t,a){var n=t;return ud(e,function(i,o,l,s,u){o===0&&t===void 0?n=i:n=r(n,i,o,l,s,u)},a),n}function cU(e,r){var t;switch(e.type){case"FeatureCollection":for(t=0;t<e.features.length&&r(e.features[t].properties,t)!==!1;t++);break;case"Feature":r(e.properties,0);break}}function Vme(e,r,t){var a=t;return cU(e,function(n,i){i===0&&t===void 0?a=n:a=r(a,n,i)}),a}function vU(e,r){if(e.type==="Feature")r(e,0);else if(e.type==="FeatureCollection")for(var t=0;t<e.features.length&&r(e.features[t],t)!==!1;t++);}function Xme(e,r,t){var a=t;return vU(e,function(n,i){i===0&&t===void 0?a=n:a=r(a,n,i)}),a}function jme(e){var r=[];return ud(e,function(t){r.push(t)}),r}function N8(e,r){var t,a,n,i,o,l,s,u,f,c,h=0,d=e.type==="FeatureCollection",m=e.type==="Feature",p=d?e.features.length:1;for(t=0;t<p;t++){for(l=d?e.features[t].geometry:m?e.geometry:e,u=d?e.features[t].properties:m?e.properties:{},f=d?e.features[t].bbox:m?e.bbox:void 0,c=d?e.features[t].id:m?e.id:void 0,s=l?l.type==="GeometryCollection":!1,o=s?l.geometries.length:1,n=0;n<o;n++){if(i=s?l.geometries[n]:l,i===null){if(r(null,h,u,f,c)===!1)return!1;continue}switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(r(i,h,u,f,c)===!1)return!1;break}case"GeometryCollection":{for(a=0;a<i.geometries.length;a++)if(r(i.geometries[a],h,u,f,c)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}h++}}function Wme(e,r,t){var a=t;return N8(e,function(n,i,o,l,s){i===0&&t===void 0?a=n:a=r(a,n,i,o,l,s)}),a}function j3(e,r){N8(e,function(t,a,n,i,o){var l=t===null?null:t.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return r(Ci.feature.call(void 0,t,n,{bbox:i,id:o}),a,0)===!1?!1:void 0}var s;switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon";break}for(var u=0;u<t.coordinates.length;u++){var f=t.coordinates[u],c={type:s,coordinates:f};if(r(Ci.feature.call(void 0,c,n),a,u)===!1)return!1}})}function Zme(e,r,t){var a=t;return j3(e,function(n,i,o){i===0&&o===0&&t===void 0?a=n:a=r(a,n,i,o)}),a}function hU(e,r){j3(e,function(t,a,n){var i=0;if(t.geometry){var o=t.geometry.type;if(!(o==="Point"||o==="MultiPoint")){var l,s=0,u=0,f=0;if(ud(t,function(c,h,d,m,p){if(l===void 0||a>s||m>u||p>f){l=c,s=a,u=m,f=p,i=0;return}var y=Ci.lineString.call(void 0,[l,c],t.properties);if(r(y,a,n,p,i)===!1)return!1;i++,l=c})===!1)return!1}}})}function $me(e,r,t){var a=t,n=!1;return hU(e,function(i,o,l,s,u){n===!1&&t===void 0?a=i:a=r(a,i,o,l,s,u),n=!0}),a}function dU(e,r){if(!e)throw new Error("geojson is required");j3(e,function(t,a,n){if(t.geometry!==null){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(r(t,a,n,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l<o.length;l++)if(r(Ci.lineString.call(void 0,o[l],t.properties),a,n,l)===!1)return!1;break}}})}function Jme(e,r,t){var a=t;return dU(e,function(n,i,o,l){i===0&&t===void 0?a=n:a=r(a,n,i,o,l)}),a}function Kme(e,r){if(r=r||{},!Ci.isObject.call(void 0,r))throw new Error("options is invalid");var t=r.featureIndex||0,a=r.multiFeatureIndex||0,n=r.geometryIndex||0,i=r.segmentIndex||0,o=r.properties,l;switch(e.type){case"FeatureCollection":t<0&&(t=e.features.length+t),o=o||e.features[t].properties,l=e.features[t].geometry;break;case"Feature":o=o||e.properties,l=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":l=e;break;default:throw new Error("geojson is invalid")}if(l===null)return null;var s=l.coordinates;switch(l.type){case"Point":case"MultiPoint":return null;case"LineString":return i<0&&(i=s.length+i-1),Ci.lineString.call(void 0,[s[i],s[i+1]],o,r);case"Polygon":return n<0&&(n=s.length+n),i<0&&(i=s[n].length+i-1),Ci.lineString.call(void 0,[s[n][i],s[n][i+1]],o,r);case"MultiLineString":return a<0&&(a=s.length+a),i<0&&(i=s[a].length+i-1),Ci.lineString.call(void 0,[s[a][i],s[a][i+1]],o,r);case"MultiPolygon":return a<0&&(a=s.length+a),n<0&&(n=s[a].length+n),i<0&&(i=s[a][n].length-i-1),Ci.lineString.call(void 0,[s[a][n][i],s[a][n][i+1]],o,r)}throw new Error("geojson is invalid")}function Qme(e,r){if(r=r||{},!Ci.isObject.call(void 0,r))throw new Error("options is invalid");var t=r.featureIndex||0,a=r.multiFeatureIndex||0,n=r.geometryIndex||0,i=r.coordIndex||0,o=r.properties,l;switch(e.type){case"FeatureCollection":t<0&&(t=e.features.length+t),o=o||e.features[t].properties,l=e.features[t].geometry;break;case"Feature":o=o||e.properties,l=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":l=e;break;default:throw new Error("geojson is invalid")}if(l===null)return null;var s=l.coordinates;switch(l.type){case"Point":return Ci.point.call(void 0,s,o,r);case"MultiPoint":return a<0&&(a=s.length+a),Ci.point.call(void 0,s[a],o,r);case"LineString":return i<0&&(i=s.length+i),Ci.point.call(void 0,s[i],o,r);case"Polygon":return n<0&&(n=s.length+n),i<0&&(i=s[n].length+i),Ci.point.call(void 0,s[n][i],o,r);case"MultiLineString":return a<0&&(a=s.length+a),i<0&&(i=s[a].length+i),Ci.point.call(void 0,s[a][i],o,r);case"MultiPolygon":return a<0&&(a=s.length+a),n<0&&(n=s[a].length+n),i<0&&(i=s[a][n].length-i),Ci.point.call(void 0,s[a][n][i],o,r)}throw new Error("geojson is invalid")}Xn.coordAll=jme;Xn.coordEach=ud;Xn.coordReduce=Yme;Xn.featureEach=vU;Xn.featureReduce=Xme;Xn.findPoint=Qme;Xn.findSegment=Kme;Xn.flattenEach=j3;Xn.flattenReduce=Zme;Xn.geomEach=N8;Xn.geomReduce=Wme;Xn.lineEach=dU;Xn.lineReduce=Jme;Xn.propEach=cU;Xn.propReduce=Vme;Xn.segmentEach=hU;Xn.segmentReduce=$me});var bU=le(Z3=>{"use strict";Object.defineProperty(Z3,"__esModule",{value:!0});var pU=X3(),ege=W3();function yU(e){return ege.geomReduce.call(void 0,e,(r,t)=>r+rge(t),0)}function rge(e){let r=0,t;switch(e.type){case"Polygon":return mU(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)r+=mU(e.coordinates[t]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}function mU(e){let r=0;if(e&&e.length>0){r+=Math.abs(gU(e[0]));for(let t=1;t<e.length;t++)r-=Math.abs(gU(e[t]))}return r}var tge=pU.earthRadius*pU.earthRadius/2,B8=Math.PI/180;function gU(e){let r=e.length-1;if(r<=2)return 0;let t=0,a=0;for(;a<r;){let n=e[a],i=e[a+1===r?0:a+1],o=e[a+2>=r?(a+2)%r:a+2],l=n[0]*B8,s=i[1]*B8,u=o[0]*B8;t+=(u-l)*Math.sin(s),a++}return t*tge}var age=yU;Z3.area=yU;Z3.default=age});var xU=le($3=>{"use strict";Object.defineProperty($3,"__esModule",{value:!0});var nge=X3(),ige=W3();function _U(e,r={}){let t=0,a=0,n=0;return ige.coordEach.call(void 0,e,function(i){t+=i[0],a+=i[1],n++},!0),nge.point.call(void 0,[t/n,a/n],r.properties)}var oge=_U;$3.centroid=_U;$3.default=oge});var AU=le((J3,wU)=>{(function(e,r){r(typeof J3=="object"&&typeof wU!="undefined"?J3:e.d3=e.d3||{})})(J3,(function(e){"use strict";function r(W,ee){return W<ee?-1:W>ee?1:W>=ee?0:NaN}function t(W){return W.length===1&&(W=a(W)),{left:function(ee,me,K,J){for(K==null&&(K=0),J==null&&(J=ee.length);K<J;){var ue=K+J>>>1;W(ee[ue],me)<0?K=ue+1:J=ue}return K},right:function(ee,me,K,J){for(K==null&&(K=0),J==null&&(J=ee.length);K<J;){var ue=K+J>>>1;W(ee[ue],me)>0?J=ue:K=ue+1}return K}}}function a(W){return function(ee,me){return r(W(ee),me)}}var n=t(r),i=n.right,o=n.left;function l(W,ee){ee==null&&(ee=s);for(var me=0,K=W.length-1,J=W[0],ue=new Array(K<0?0:K);me<K;)ue[me]=ee(J,J=W[++me]);return ue}function s(W,ee){return[W,ee]}function u(W,ee,me){var K=W.length,J=ee.length,ue=new Array(K*J),_e,Ne,Je,ar;for(me==null&&(me=s),_e=Je=0;_e<K;++_e)for(ar=W[_e],Ne=0;Ne<J;++Ne,++Je)ue[Je]=me(ar,ee[Ne]);return ue}function f(W,ee){return ee<W?-1:ee>W?1:ee>=W?0:NaN}function c(W){return W===null?NaN:+W}function h(W,ee){var me=W.length,K=0,J=-1,ue=0,_e,Ne,Je=0;if(ee==null)for(;++J<me;)isNaN(_e=c(W[J]))||(Ne=_e-ue,ue+=Ne/++K,Je+=Ne*(_e-ue));else for(;++J<me;)isNaN(_e=c(ee(W[J],J,W)))||(Ne=_e-ue,ue+=Ne/++K,Je+=Ne*(_e-ue));if(K>1)return Je/(K-1)}function d(W,ee){var me=h(W,ee);return me&&Math.sqrt(me)}function m(W,ee){var me=W.length,K=-1,J,ue,_e;if(ee==null){for(;++K<me;)if((J=W[K])!=null&&J>=J)for(ue=_e=J;++K<me;)(J=W[K])!=null&&(ue>J&&(ue=J),_e<J&&(_e=J))}else for(;++K<me;)if((J=ee(W[K],K,W))!=null&&J>=J)for(ue=_e=J;++K<me;)(J=ee(W[K],K,W))!=null&&(ue>J&&(ue=J),_e<J&&(_e=J));return[ue,_e]}var p=Array.prototype,y=p.slice,b=p.map;function C(W){return function(){return W}}function x(W){return W}function _(W,ee,me){W=+W,ee=+ee,me=(J=arguments.length)<2?(ee=W,W=0,1):J<3?1:+me;for(var K=-1,J=Math.max(0,Math.ceil((ee-W)/me))|0,ue=new Array(J);++K<J;)ue[K]=W+K*me;return ue}var M=Math.sqrt(50),T=Math.sqrt(10),A=Math.sqrt(2);function E(W,ee,me){var K,J=-1,ue,_e,Ne;if(ee=+ee,W=+W,me=+me,W===ee&&me>0)return[W];if((K=ee<W)&&(ue=W,W=ee,ee=ue),(Ne=P(W,ee,me))===0||!isFinite(Ne))return[];if(Ne>0)for(W=Math.ceil(W/Ne),ee=Math.floor(ee/Ne),_e=new Array(ue=Math.ceil(ee-W+1));++J<ue;)_e[J]=(W+J)*Ne;else for(W=Math.floor(W*Ne),ee=Math.ceil(ee*Ne),_e=new Array(ue=Math.ceil(W-ee+1));++J<ue;)_e[J]=(W-J)/Ne;return K&&_e.reverse(),_e}function P(W,ee,me){var K=(ee-W)/Math.max(0,me),J=Math.floor(Math.log(K)/Math.LN10),ue=K/Math.pow(10,J);return J>=0?(ue>=M?10:ue>=T?5:ue>=A?2:1)*Math.pow(10,J):-Math.pow(10,-J)/(ue>=M?10:ue>=T?5:ue>=A?2:1)}function z(W,ee,me){var K=Math.abs(ee-W)/Math.max(0,me),J=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),ue=K/J;return ue>=M?J*=10:ue>=T?J*=5:ue>=A&&(J*=2),ee<W?-J:J}function B(W){return Math.ceil(Math.log(W.length)/Math.LN2)+1}function X(){var W=x,ee=m,me=B;function K(J){var ue,_e=J.length,Ne,Je=new Array(_e);for(ue=0;ue<_e;++ue)Je[ue]=W(J[ue],ue,J);var ar=ee(Je),tr=ar[0],fr=ar[1],Re=me(Je,tr,fr);Array.isArray(Re)||(Re=z(tr,fr,Re),Re=_(Math.ceil(tr/Re)*Re,fr,Re));for(var sr=Re.length;Re[0]<=tr;)Re.shift(),--sr;for(;Re[sr-1]>fr;)Re.pop(),--sr;var hr=new Array(sr+1),dr;for(ue=0;ue<=sr;++ue)dr=hr[ue]=[],dr.x0=ue>0?Re[ue-1]:tr,dr.x1=ue<sr?Re[ue]:fr;for(ue=0;ue<_e;++ue)Ne=Je[ue],tr<=Ne&&Ne<=fr&&hr[i(Re,Ne,0,sr)].push(J[ue]);return hr}return K.value=function(J){return arguments.length?(W=typeof J=="function"?J:C(J),K):W},K.domain=function(J){return arguments.length?(ee=typeof J=="function"?J:C([J[0],J[1]]),K):ee},K.thresholds=function(J){return arguments.length?(me=typeof J=="function"?J:Array.isArray(J)?C(y.call(J)):C(J),K):me},K}function I(W,ee,me){if(me==null&&(me=c),!!(K=W.length)){if((ee=+ee)<=0||K<2)return+me(W[0],0,W);if(ee>=1)return+me(W[K-1],K-1,W);var K,J=(K-1)*ee,ue=Math.floor(J),_e=+me(W[ue],ue,W),Ne=+me(W[ue+1],ue+1,W);return _e+(Ne-_e)*(J-ue)}}function V(W,ee,me){return W=b.call(W,c).sort(r),Math.ceil((me-ee)/(2*(I(W,.75)-I(W,.25))*Math.pow(W.length,-1/3)))}function H(W,ee,me){return Math.ceil((me-ee)/(3.5*d(W)*Math.pow(W.length,-1/3)))}function Q(W,ee){var me=W.length,K=-1,J,ue;if(ee==null){for(;++K<me;)if((J=W[K])!=null&&J>=J)for(ue=J;++K<me;)(J=W[K])!=null&&J>ue&&(ue=J)}else for(;++K<me;)if((J=ee(W[K],K,W))!=null&&J>=J)for(ue=J;++K<me;)(J=ee(W[K],K,W))!=null&&J>ue&&(ue=J);return ue}function oe(W,ee){var me=W.length,K=me,J=-1,ue,_e=0;if(ee==null)for(;++J<me;)isNaN(ue=c(W[J]))?--K:_e+=ue;else for(;++J<me;)isNaN(ue=c(ee(W[J],J,W)))?--K:_e+=ue;if(K)return _e/K}function re(W,ee){var me=W.length,K=-1,J,ue=[];if(ee==null)for(;++K<me;)isNaN(J=c(W[K]))||ue.push(J);else for(;++K<me;)isNaN(J=c(ee(W[K],K,W)))||ue.push(J);return I(ue.sort(r),.5)}function te(W){for(var ee=W.length,me,K=-1,J=0,ue,_e;++K<ee;)J+=W[K].length;for(ue=new Array(J);--ee>=0;)for(_e=W[ee],me=_e.length;--me>=0;)ue[--J]=_e[me];return ue}function ie(W,ee){var me=W.length,K=-1,J,ue;if(ee==null){for(;++K<me;)if((J=W[K])!=null&&J>=J)for(ue=J;++K<me;)(J=W[K])!=null&&ue>J&&(ue=J)}else for(;++K<me;)if((J=ee(W[K],K,W))!=null&&J>=J)for(ue=J;++K<me;)(J=ee(W[K],K,W))!=null&&ue>J&&(ue=J);return ue}function ce(W,ee){for(var me=ee.length,K=new Array(me);me--;)K[me]=W[ee[me]];return K}function Me(W,ee){if(me=W.length){var me,K=0,J=0,ue,_e=W[J];for(ee==null&&(ee=r);++K<me;)(ee(ue=W[K],_e)<0||ee(_e,_e)!==0)&&(_e=ue,J=K);if(ee(_e,_e)===0)return J}}function De(W,ee,me){for(var K=(me==null?W.length:me)-(ee=ee==null?0:+ee),J,ue;K;)ue=Math.random()*K--|0,J=W[K+ee],W[K+ee]=W[ue+ee],W[ue+ee]=J;return W}function Ie(W,ee){var me=W.length,K=-1,J,ue=0;if(ee==null)for(;++K<me;)(J=+W[K])&&(ue+=J);else for(;++K<me;)(J=+ee(W[K],K,W))&&(ue+=J);return ue}function Ue(W){if(!(ue=W.length))return[];for(var ee=-1,me=ie(W,ke),K=new Array(me);++ee<me;)for(var J=-1,ue,_e=K[ee]=new Array(ue);++J<ue;)_e[J]=W[J][ee];return K}function ke(W){return W.length}function je(){return Ue(arguments)}e.bisect=i,e.bisectRight=i,e.bisectLeft=o,e.ascending=r,e.bisector=t,e.cross=u,e.descending=f,e.deviation=d,e.extent=m,e.histogram=X,e.thresholdFreedmanDiaconis=V,e.thresholdScott=H,e.thresholdSturges=B,e.max=Q,e.mean=oe,e.median=re,e.merge=te,e.min=ie,e.pairs=l,e.permute=ce,e.quantile=I,e.range=_,e.scan=Me,e.shuffle=De,e.sum=Ie,e.ticks=E,e.tickIncrement=P,e.tickStep=z,e.transpose=Ue,e.variance=h,e.zip=je,Object.defineProperty(e,"__esModule",{value:!0})}))});var Q3=le((K3,MU)=>{(function(e,r){typeof K3=="object"&&typeof MU!="undefined"?r(K3,AU()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(K3,(function(e,r){"use strict";function t(){return new a}function a(){this.reset()}a.prototype={constructor:a,reset:function(){this.s=this.t=0},add:function(O){i(n,O,this.t),i(this,n.s,this.s),this.s?this.t+=n.t:this.s=n.t},valueOf:function(){return this.s}};var n=new a;function i(O,$,he){var se=O.s=$+he,we=se-$,He=se-we;O.t=$-He+(he-we)}var o=1e-6,l=1e-12,s=Math.PI,u=s/2,f=s/4,c=s*2,h=180/s,d=s/180,m=Math.abs,p=Math.atan,y=Math.atan2,b=Math.cos,C=Math.ceil,x=Math.exp,_=Math.log,M=Math.pow,T=Math.sin,A=Math.sign||function(O){return O>0?1:O<0?-1:0},E=Math.sqrt,P=Math.tan;function z(O){return O>1?0:O<-1?s:Math.acos(O)}function B(O){return O>1?u:O<-1?-u:Math.asin(O)}function X(O){return(O=T(O/2))*O}function I(){}function V(O,$){O&&Q.hasOwnProperty(O.type)&&Q[O.type](O,$)}var H={Feature:function(O,$){V(O.geometry,$)},FeatureCollection:function(O,$){for(var he=O.features,se=-1,we=he.length;++se<we;)V(he[se].geometry,$)}},Q={Sphere:function(O,$){$.sphere()},Point:function(O,$){O=O.coordinates,$.point(O[0],O[1],O[2])},MultiPoint:function(O,$){for(var he=O.coordinates,se=-1,we=he.length;++se<we;)O=he[se],$.point(O[0],O[1],O[2])},LineString:function(O,$){oe(O.coordinates,$,0)},MultiLineString:function(O,$){for(var he=O.coordinates,se=-1,we=he.length;++se<we;)oe(he[se],$,0)},Polygon:function(O,$){re(O.coordinates,$)},MultiPolygon:function(O,$){for(var he=O.coordinates,se=-1,we=he.length;++se<we;)re(he[se],$)},GeometryCollection:function(O,$){for(var he=O.geometries,se=-1,we=he.length;++se<we;)V(he[se],$)}};function oe(O,$,he){var se=-1,we=O.length-he,He;for($.lineStart();++se<we;)He=O[se],$.point(He[0],He[1],He[2]);$.lineEnd()}function re(O,$){var he=-1,se=O.length;for($.polygonStart();++he<se;)oe(O[he],$,1);$.polygonEnd()}function te(O,$){O&&H.hasOwnProperty(O.type)?H[O.type](O,$):V(O,$)}var ie=t(),ce=t(),Me,De,Ie,Ue,ke,je={point:I,lineStart:I,lineEnd:I,polygonStart:function(){ie.reset(),je.lineStart=W,je.lineEnd=ee},polygonEnd:function(){var O=+ie;ce.add(O<0?c+O:O),this.lineStart=this.lineEnd=this.point=I},sphere:function(){ce.add(c)}};function W(){je.point=me}function ee(){K(Me,De)}function me(O,$){je.point=K,Me=O,De=$,O*=d,$*=d,Ie=O,Ue=b($=$/2+f),ke=T($)}function K(O,$){O*=d,$*=d,$=$/2+f;var he=O-Ie,se=he>=0?1:-1,we=se*he,He=b($),We=T($),er=ke*We,nr=Ue*He+er*b(we),br=er*se*T(we);ie.add(y(br,nr)),Ie=O,Ue=He,ke=We}function J(O){return ce.reset(),te(O,je),ce*2}function ue(O){return[y(O[1],O[0]),B(O[2])]}function _e(O){var $=O[0],he=O[1],se=b(he);return[se*b($),se*T($),T(he)]}function Ne(O,$){return O[0]*$[0]+O[1]*$[1]+O[2]*$[2]}function Je(O,$){return[O[1]*$[2]-O[2]*$[1],O[2]*$[0]-O[0]*$[2],O[0]*$[1]-O[1]*$[0]]}function ar(O,$){O[0]+=$[0],O[1]+=$[1],O[2]+=$[2]}function tr(O,$){return[O[0]*$,O[1]*$,O[2]*$]}function fr(O){var $=E(O[0]*O[0]+O[1]*O[1]+O[2]*O[2]);O[0]/=$,O[1]/=$,O[2]/=$}var Re,sr,hr,dr,Ze,cr,Lr,Te,Oe=t(),Ar,Br,Qe={point:Be,lineStart:yr,lineEnd:Cr,polygonStart:function(){Qe.point=pr,Qe.lineStart=xr,Qe.lineEnd=Rr,Oe.reset(),je.polygonStart()},polygonEnd:function(){je.polygonEnd(),Qe.point=Be,Qe.lineStart=yr,Qe.lineEnd=Cr,ie<0?(Re=-(hr=180),sr=-(dr=90)):Oe>o?dr=90:Oe<-o&&(sr=-90),Br[0]=Re,Br[1]=hr},sphere:function(){Re=-(hr=180),sr=-(dr=90)}};function Be(O,$){Ar.push(Br=[Re=O,hr=O]),$<sr&&(sr=$),$>dr&&(dr=$)}function Xe(O,$){var he=_e([O*d,$*d]);if(Te){var se=Je(Te,he),we=[se[1],-se[0],0],He=Je(we,se);fr(He),He=ue(He);var We=O-Ze,er=We>0?1:-1,nr=He[0]*h*er,br,$e=m(We)>180;$e^(er*Ze<nr&&nr<er*O)?(br=He[1]*h,br>dr&&(dr=br)):(nr=(nr+360)%360-180,$e^(er*Ze<nr&&nr<er*O)?(br=-He[1]*h,br<sr&&(sr=br)):($<sr&&(sr=$),$>dr&&(dr=$))),$e?O<Ze?Er(Re,O)>Er(Re,hr)&&(hr=O):Er(O,hr)>Er(Re,hr)&&(Re=O):hr>=Re?(O<Re&&(Re=O),O>hr&&(hr=O)):O>Ze?Er(Re,O)>Er(Re,hr)&&(hr=O):Er(O,hr)>Er(Re,hr)&&(Re=O)}else Ar.push(Br=[Re=O,hr=O]);$<sr&&(sr=$),$>dr&&(dr=$),Te=he,Ze=O}function yr(){Qe.point=Xe}function Cr(){Br[0]=Re,Br[1]=hr,Qe.point=Be,Te=null}function pr(O,$){if(Te){var he=O-Ze;Oe.add(m(he)>180?he+(he>0?360:-360):he)}else cr=O,Lr=$;je.point(O,$),Xe(O,$)}function xr(){je.lineStart()}function Rr(){pr(cr,Lr),je.lineEnd(),m(Oe)>o&&(Re=-(hr=180)),Br[0]=Re,Br[1]=hr,Te=null}function Er(O,$){return($-=O)<0?$+360:$}function Or(O,$){return O[0]-$[0]}function rr(O,$){return O[0]<=O[1]?O[0]<=$&&$<=O[1]:$<O[0]||O[1]<$}function Sr(O){var $,he,se,we,He,We,er;if(dr=hr=-(Re=sr=1/0),Ar=[],te(O,Qe),he=Ar.length){for(Ar.sort(Or),$=1,se=Ar[0],He=[se];$<he;++$)we=Ar[$],rr(se,we[0])||rr(se,we[1])?(Er(se[0],we[1])>Er(se[0],se[1])&&(se[1]=we[1]),Er(we[0],se[1])>Er(se[0],se[1])&&(se[0]=we[0])):He.push(se=we);for(We=-1/0,he=He.length-1,$=0,se=He[he];$<=he;se=we,++$)we=He[$],(er=Er(se[1],we[0]))>We&&(We=er,Re=we[0],hr=se[1])}return Ar=Br=null,Re===1/0||sr===1/0?[[NaN,NaN],[NaN,NaN]]:[[Re,sr],[hr,dr]]}var vr,jr,Qr,qr,Wr,Ae,Pe,ur,gr,It,Yt,ia,Ta,Ht,Zt,ma,ra={sphere:I,point:xn,lineStart:Wn,lineEnd:zt,polygonStart:function(){ra.lineStart=ga,ra.lineEnd=ba},polygonEnd:function(){ra.lineStart=Wn,ra.lineEnd=zt}};function xn(O,$){O*=d,$*=d;var he=b($);on(he*b(O),he*T(O),T($))}function on(O,$,he){++vr,Qr+=(O-Qr)/vr,qr+=($-qr)/vr,Wr+=(he-Wr)/vr}function Wn(){ra.point=Jr}function Jr(O,$){O*=d,$*=d;var he=b($);Ht=he*b(O),Zt=he*T(O),ma=T($),ra.point=ua,on(Ht,Zt,ma)}function ua(O,$){O*=d,$*=d;var he=b($),se=he*b(O),we=he*T(O),He=T($),We=y(E((We=Zt*He-ma*we)*We+(We=ma*se-Ht*He)*We+(We=Ht*we-Zt*se)*We),Ht*se+Zt*we+ma*He);jr+=We,Ae+=We*(Ht+(Ht=se)),Pe+=We*(Zt+(Zt=we)),ur+=We*(ma+(ma=He)),on(Ht,Zt,ma)}function zt(){ra.point=xn}function ga(){ra.point=_a}function ba(){Vt(ia,Ta),ra.point=xn}function _a(O,$){ia=O,Ta=$,O*=d,$*=d,ra.point=Vt;var he=b($);Ht=he*b(O),Zt=he*T(O),ma=T($),on(Ht,Zt,ma)}function Vt(O,$){O*=d,$*=d;var he=b($),se=he*b(O),we=he*T(O),He=T($),We=Zt*He-ma*we,er=ma*se-Ht*He,nr=Ht*we-Zt*se,br=E(We*We+er*er+nr*nr),$e=B(br),lr=br&&-$e/br;gr+=lr*We,It+=lr*er,Yt+=lr*nr,jr+=$e,Ae+=$e*(Ht+(Ht=se)),Pe+=$e*(Zt+(Zt=we)),ur+=$e*(ma+(ma=He)),on(Ht,Zt,ma)}function Na(O){vr=jr=Qr=qr=Wr=Ae=Pe=ur=gr=It=Yt=0,te(O,ra);var $=gr,he=It,se=Yt,we=$*$+he*he+se*se;return we<l&&($=Ae,he=Pe,se=ur,jr<o&&($=Qr,he=qr,se=Wr),we=$*$+he*he+se*se,we<l)?[NaN,NaN]:[y(he,$)*h,B(se/E(we))*h]}function wn(O){return function(){return O}}function ya(O,$){function he(se,we){return se=O(se,we),$(se[0],se[1])}return O.invert&&$.invert&&(he.invert=function(se,we){return se=$.invert(se,we),se&&O.invert(se[0],se[1])}),he}function na(O,$){return[m(O)>s?O+Math.round(-O/c)*c:O,$]}na.invert=na;function Ea(O,$,he){return(O%=c)?$||he?ya(Eo(O),Bi($,he)):Eo(O):$||he?Bi($,he):na}function Da(O){return function($,he){return $+=O,[$>s?$-c:$<-s?$+c:$,he]}}function Eo(O){var $=Da(O);return $.invert=Da(-O),$}function Bi(O,$){var he=b(O),se=T(O),we=b($),He=T($);function We(er,nr){var br=b(nr),$e=b(er)*br,lr=T(er)*br,ir=T(nr),Mr=ir*he+$e*se;return[y(lr*we-Mr*He,$e*he-ir*se),B(Mr*we+lr*He)]}return We.invert=function(er,nr){var br=b(nr),$e=b(er)*br,lr=T(er)*br,ir=T(nr),Mr=ir*we-lr*He;return[y(lr*we+ir*He,$e*he+Mr*se),B(Mr*he-$e*se)]},We}function $s(O){O=Ea(O[0]*d,O[1]*d,O.length>2?O[2]*d:0);function $(he){return he=O(he[0]*d,he[1]*d),he[0]*=h,he[1]*=h,he}return $.invert=function(he){return he=O.invert(he[0]*d,he[1]*d),he[0]*=h,he[1]*=h,he},$}function as(O,$,he,se,we,He){if(he){var We=b($),er=T($),nr=se*he;we==null?(we=$+se*c,He=$-nr/2):(we=vl(We,we),He=vl(We,He),(se>0?we<He:we>He)&&(we+=se*c));for(var br,$e=we;se>0?$e>He:$e<He;$e-=nr)br=ue([We,-er*b($e),-er*T($e)]),O.point(br[0],br[1])}}function vl(O,$){$=_e($),$[0]-=O,fr($);var he=z(-$[1]);return((-$[2]<0?-he:he)+c-o)%c}function Js(){var O=wn([0,0]),$=wn(90),he=wn(6),se,we,He={point:We};function We(nr,br){se.push(nr=we(nr,br)),nr[0]*=h,nr[1]*=h}function er(){var nr=O.apply(this,arguments),br=$.apply(this,arguments)*d,$e=he.apply(this,arguments)*d;return se=[],we=Ea(-nr[0]*d,-nr[1]*d,0).invert,as(He,br,$e,1),nr={type:"Polygon",coordinates:[se]},se=we=null,nr}return er.center=function(nr){return arguments.length?(O=typeof nr=="function"?nr:wn([+nr[0],+nr[1]]),er):O},er.radius=function(nr){return arguments.length?($=typeof nr=="function"?nr:wn(+nr),er):$},er.precision=function(nr){return arguments.length?(he=typeof nr=="function"?nr:wn(+nr),er):he},er}function hl(){var O=[],$;return{point:function(he,se,we){$.push([he,se,we])},lineStart:function(){O.push($=[])},lineEnd:I,rejoin:function(){O.length>1&&O.push(O.pop().concat(O.shift()))},result:function(){var he=O;return O=[],$=null,he}}}function rn(O,$){return m(O[0]-$[0])<o&&m(O[1]-$[1])<o}function Ii(O,$,he,se){this.x=O,this.z=$,this.o=he,this.e=se,this.v=!1,this.n=this.p=null}function dl(O,$,he,se,we){var He=[],We=[],er,nr;if(O.forEach(function(Fr){if(!((lt=Fr.length-1)<=0)){var lt,rt=Fr[0],ut=Fr[lt],ft;if(rn(rt,ut)){if(!rt[2]&&!ut[2]){for(we.lineStart(),er=0;er<lt;++er)we.point((rt=Fr[er])[0],rt[1]);we.lineEnd();return}ut[0]+=2*o}He.push(ft=new Ii(rt,Fr,null,!0)),We.push(ft.o=new Ii(rt,null,ft,!1)),He.push(ft=new Ii(ut,Fr,null,!1)),We.push(ft.o=new Ii(ut,null,ft,!0))}}),!!He.length){for(We.sort($),Hi(He),Hi(We),er=0,nr=We.length;er<nr;++er)We[er].e=he=!he;for(var br=He[0],$e,lr;;){for(var ir=br,Mr=!0;ir.v;)if((ir=ir.n)===br)return;$e=ir.z,we.lineStart();do{if(ir.v=ir.o.v=!0,ir.e){if(Mr)for(er=0,nr=$e.length;er<nr;++er)we.point((lr=$e[er])[0],lr[1]);else se(ir.x,ir.n.x,1,we);ir=ir.n}else{if(Mr)for($e=ir.p.z,er=$e.length-1;er>=0;--er)we.point((lr=$e[er])[0],lr[1]);else se(ir.x,ir.p.x,-1,we);ir=ir.p}ir=ir.o,$e=ir.z,Mr=!Mr}while(!ir.v);we.lineEnd()}}}function Hi(O){if($=O.length){for(var $,he=0,se=O[0],we;++he<$;)se.n=we=O[he],we.p=se,se=we;se.n=we=O[0],we.p=se}}var Si=t();function ns(O){return m(O[0])<=s?O[0]:A(O[0])*((m(O[0])+s)%c-s)}function is(O,$){var he=ns($),se=$[1],we=T(se),He=[T(he),-b(he),0],We=0,er=0;Si.reset(),we===1?se=u+o:we===-1&&(se=-u-o);for(var nr=0,br=O.length;nr<br;++nr)if(lr=($e=O[nr]).length)for(var $e,lr,ir=$e[lr-1],Mr=ns(ir),Fr=ir[1]/2+f,lt=T(Fr),rt=b(Fr),ut=0;ut<lr;++ut,Mr=Pr,lt=vt,rt=xt,ir=ft){var ft=$e[ut],Pr=ns(ft),Gr=ft[1]/2+f,vt=T(Gr),xt=b(Gr),Xt=Pr-Mr,la=Xt>=0?1:-1,$t=la*Xt,xa=$t>s,Lt=lt*vt;if(Si.add(y(Lt*la*T($t),rt*xt+Lt*b($t))),We+=xa?Xt+la*c:Xt,xa^Mr>=he^Pr>=he){var An=Je(_e(ir),_e(ft));fr(An);var ja=Je(He,An);fr(ja);var wa=(xa^Xt>=0?-1:1)*B(ja[2]);(se>wa||se===wa&&(An[0]||An[1]))&&(er+=xa^Xt>=0?1:-1)}}return(We<-o||We<o&&Si<-o)^er&1}function Ks(O,$,he,se){return function(we){var He=$(we),We=hl(),er=$(We),nr=!1,br,$e,lr,ir={point:Mr,lineStart:lt,lineEnd:rt,polygonStart:function(){ir.point=ut,ir.lineStart=ft,ir.lineEnd=Pr,$e=[],br=[]},polygonEnd:function(){ir.point=Mr,ir.lineStart=lt,ir.lineEnd=rt,$e=r.merge($e);var Gr=is(br,se);$e.length?(nr||(we.polygonStart(),nr=!0),dl($e,Qs,Gr,he,we)):Gr&&(nr||(we.polygonStart(),nr=!0),we.lineStart(),he(null,null,1,we),we.lineEnd()),nr&&(we.polygonEnd(),nr=!1),$e=br=null},sphere:function(){we.polygonStart(),we.lineStart(),he(null,null,1,we),we.lineEnd(),we.polygonEnd()}};function Mr(Gr,vt){O(Gr,vt)&&we.point(Gr,vt)}function Fr(Gr,vt){He.point(Gr,vt)}function lt(){ir.point=Fr,He.lineStart()}function rt(){ir.point=Mr,He.lineEnd()}function ut(Gr,vt){lr.push([Gr,vt]),er.point(Gr,vt)}function ft(){er.lineStart(),lr=[]}function Pr(){ut(lr[0][0],lr[0][1]),er.lineEnd();var Gr=er.clean(),vt=We.result(),xt,Xt=vt.length,la,$t,xa;if(lr.pop(),br.push(lr),lr=null,!!Xt){if(Gr&1){if($t=vt[0],(la=$t.length-1)>0){for(nr||(we.polygonStart(),nr=!0),we.lineStart(),xt=0;xt<la;++xt)we.point((xa=$t[xt])[0],xa[1]);we.lineEnd()}return}Xt>1&&Gr&2&&vt.push(vt.pop().concat(vt.shift())),$e.push(vt.filter(os))}}return ir}}function os(O){return O.length>1}function Qs(O,$){return((O=O.x)[0]<0?O[1]-u-o:u-O[1])-(($=$.x)[0]<0?$[1]-u-o:u-$[1])}var ot=Ks(function(){return!0},st,Ur,[-s,-u]);function st(O){var $=NaN,he=NaN,se=NaN,we;return{lineStart:function(){O.lineStart(),we=1},point:function(He,We){var er=He>0?s:-s,nr=m(He-$);m(nr-s)<o?(O.point($,he=(he+We)/2>0?u:-u),O.point(se,he),O.lineEnd(),O.lineStart(),O.point(er,he),O.point(He,he),we=0):se!==er&&nr>=s&&(m($-se)<o&&($-=se*o),m(He-er)<o&&(He-=er*o),he=Gt($,he,He,We),O.point(se,he),O.lineEnd(),O.lineStart(),O.point(er,he),we=0),O.point($=He,he=We),se=er},lineEnd:function(){O.lineEnd(),$=he=NaN},clean:function(){return 2-we}}}function Gt(O,$,he,se){var we,He,We=T(O-he);return m(We)>o?p((T($)*(He=b(se))*T(he)-T(se)*(we=b($))*T(O))/(we*He*We)):($+se)/2}function Ur(O,$,he,se){var we;if(O==null)we=he*u,se.point(-s,we),se.point(0,we),se.point(s,we),se.point(s,0),se.point(s,-we),se.point(0,-we),se.point(-s,-we),se.point(-s,0),se.point(-s,we);else if(m(O[0]-$[0])>o){var He=O[0]<$[0]?s:-s;we=he*He/2,se.point(-He,we),se.point(0,we),se.point(He,we)}else se.point($[0],$[1])}function gn(O){var $=b(O),he=6*d,se=$>0,we=m($)>o;function He($e,lr,ir,Mr){as(Mr,O,he,ir,$e,lr)}function We($e,lr){return b($e)*b(lr)>$}function er($e){var lr,ir,Mr,Fr,lt;return{lineStart:function(){Fr=Mr=!1,lt=1},point:function(rt,ut){var ft=[rt,ut],Pr,Gr=We(rt,ut),vt=se?Gr?0:br(rt,ut):Gr?br(rt+(rt<0?s:-s),ut):0;if(!lr&&(Fr=Mr=Gr)&&$e.lineStart(),Gr!==Mr&&(Pr=nr(lr,ft),(!Pr||rn(lr,Pr)||rn(ft,Pr))&&(ft[2]=1)),Gr!==Mr)lt=0,Gr?($e.lineStart(),Pr=nr(ft,lr),$e.point(Pr[0],Pr[1])):(Pr=nr(lr,ft),$e.point(Pr[0],Pr[1],2),$e.lineEnd()),lr=Pr;else if(we&&lr&&se^Gr){var xt;!(vt&ir)&&(xt=nr(ft,lr,!0))&&(lt=0,se?($e.lineStart(),$e.point(xt[0][0],xt[0][1]),$e.point(xt[1][0],xt[1][1]),$e.lineEnd()):($e.point(xt[1][0],xt[1][1]),$e.lineEnd(),$e.lineStart(),$e.point(xt[0][0],xt[0][1],3)))}Gr&&(!lr||!rn(lr,ft))&&$e.point(ft[0],ft[1]),lr=ft,Mr=Gr,ir=vt},lineEnd:function(){Mr&&$e.lineEnd(),lr=null},clean:function(){return lt|(Fr&&Mr)<<1}}}function nr($e,lr,ir){var Mr=_e($e),Fr=_e(lr),lt=[1,0,0],rt=Je(Mr,Fr),ut=Ne(rt,rt),ft=rt[0],Pr=ut-ft*ft;if(!Pr)return!ir&&$e;var Gr=$*ut/Pr,vt=-$*ft/Pr,xt=Je(lt,rt),Xt=tr(lt,Gr),la=tr(rt,vt);ar(Xt,la);var $t=xt,xa=Ne(Xt,$t),Lt=Ne($t,$t),An=xa*xa-Lt*(Ne(Xt,Xt)-1);if(!(An<0)){var ja=E(An),wa=tr($t,(-xa-ja)/Lt);if(ar(wa,Xt),wa=ue(wa),!ir)return wa;var Vr=$e[0],jt=lr[0],tn=$e[1],Ln=lr[1],di;jt<Vr&&(di=Vr,Vr=jt,jt=di);var vo=jt-Vr,Xi=m(vo-s)<o,Cl=Xi||vo<o;if(!Xi&&Ln<tn&&(di=tn,tn=Ln,Ln=di),Cl?Xi?tn+Ln>0^wa[1]<(m(wa[0]-Vr)<o?tn:Ln):tn<=wa[1]&&wa[1]<=Ln:vo>s^(Vr<=wa[0]&&wa[0]<=jt)){var Ei=tr($t,(-xa+ja)/Lt);return ar(Ei,Xt),[wa,ue(Ei)]}}}function br($e,lr){var ir=se?O:s-O,Mr=0;return $e<-ir?Mr|=1:$e>ir&&(Mr|=2),lr<-ir?Mr|=4:lr>ir&&(Mr|=8),Mr}return Ks(We,er,He,se?[0,-O]:[-s,O-s])}function oa(O,$,he,se,we,He){var We=O[0],er=O[1],nr=$[0],br=$[1],$e=0,lr=1,ir=nr-We,Mr=br-er,Fr;if(Fr=he-We,!(!ir&&Fr>0)){if(Fr/=ir,ir<0){if(Fr<$e)return;Fr<lr&&(lr=Fr)}else if(ir>0){if(Fr>lr)return;Fr>$e&&($e=Fr)}if(Fr=we-We,!(!ir&&Fr<0)){if(Fr/=ir,ir<0){if(Fr>lr)return;Fr>$e&&($e=Fr)}else if(ir>0){if(Fr<$e)return;Fr<lr&&(lr=Fr)}if(Fr=se-er,!(!Mr&&Fr>0)){if(Fr/=Mr,Mr<0){if(Fr<$e)return;Fr<lr&&(lr=Fr)}else if(Mr>0){if(Fr>lr)return;Fr>$e&&($e=Fr)}if(Fr=He-er,!(!Mr&&Fr<0)){if(Fr/=Mr,Mr<0){if(Fr>lr)return;Fr>$e&&($e=Fr)}else if(Mr>0){if(Fr<$e)return;Fr<lr&&(lr=Fr)}return $e>0&&(O[0]=We+$e*ir,O[1]=er+$e*Mr),lr<1&&($[0]=We+lr*ir,$[1]=er+lr*Mr),!0}}}}}var Ga=1e9,Xa=-Ga;function Un(O,$,he,se){function we(br,$e){return O<=br&&br<=he&&$<=$e&&$e<=se}function He(br,$e,lr,ir){var Mr=0,Fr=0;if(br==null||(Mr=We(br,lr))!==(Fr=We($e,lr))||nr(br,$e)<0^lr>0)do ir.point(Mr===0||Mr===3?O:he,Mr>1?se:$);while((Mr=(Mr+lr+4)%4)!==Fr);else ir.point($e[0],$e[1])}function We(br,$e){return m(br[0]-O)<o?$e>0?0:3:m(br[0]-he)<o?$e>0?2:1:m(br[1]-$)<o?$e>0?1:0:$e>0?3:2}function er(br,$e){return nr(br.x,$e.x)}function nr(br,$e){var lr=We(br,1),ir=We($e,1);return lr!==ir?lr-ir:lr===0?$e[1]-br[1]:lr===1?br[0]-$e[0]:lr===2?br[1]-$e[1]:$e[0]-br[0]}return function(br){var $e=br,lr=hl(),ir,Mr,Fr,lt,rt,ut,ft,Pr,Gr,vt,xt,Xt={point:la,lineStart:An,lineEnd:ja,polygonStart:xa,polygonEnd:Lt};function la(Vr,jt){we(Vr,jt)&&$e.point(Vr,jt)}function $t(){for(var Vr=0,jt=0,tn=Mr.length;jt<tn;++jt)for(var Ln=Mr[jt],di=1,vo=Ln.length,Xi=Ln[0],Cl,Ei,Sl=Xi[0],xs=Xi[1];di<vo;++di)Cl=Sl,Ei=xs,Xi=Ln[di],Sl=Xi[0],xs=Xi[1],Ei<=se?xs>se&&(Sl-Cl)*(se-Ei)>(xs-Ei)*(O-Cl)&&++Vr:xs<=se&&(Sl-Cl)*(se-Ei)<(xs-Ei)*(O-Cl)&&--Vr;return Vr}function xa(){$e=lr,ir=[],Mr=[],xt=!0}function Lt(){var Vr=$t(),jt=xt&&Vr,tn=(ir=r.merge(ir)).length;(jt||tn)&&(br.polygonStart(),jt&&(br.lineStart(),He(null,null,1,br),br.lineEnd()),tn&&dl(ir,er,Vr,He,br),br.polygonEnd()),$e=br,ir=Mr=Fr=null}function An(){Xt.point=wa,Mr&&Mr.push(Fr=[]),vt=!0,Gr=!1,ft=Pr=NaN}function ja(){ir&&(wa(lt,rt),ut&&Gr&&lr.rejoin(),ir.push(lr.result())),Xt.point=la,Gr&&$e.lineEnd()}function wa(Vr,jt){var tn=we(Vr,jt);if(Mr&&Fr.push([Vr,jt]),vt)lt=Vr,rt=jt,ut=tn,vt=!1,tn&&($e.lineStart(),$e.point(Vr,jt));else if(tn&&Gr)$e.point(Vr,jt);else{var Ln=[ft=Math.max(Xa,Math.min(Ga,ft)),Pr=Math.max(Xa,Math.min(Ga,Pr))],di=[Vr=Math.max(Xa,Math.min(Ga,Vr)),jt=Math.max(Xa,Math.min(Ga,jt))];oa(Ln,di,O,$,he,se)?(Gr||($e.lineStart(),$e.point(Ln[0],Ln[1])),$e.point(di[0],di[1]),tn||$e.lineEnd(),xt=!1):tn&&($e.lineStart(),$e.point(Vr,jt),xt=!1)}ft=Vr,Pr=jt,Gr=tn}return Xt}}function pl(){var O=0,$=0,he=960,se=500,we,He,We;return We={stream:function(er){return we&&He===er?we:we=Un(O,$,he,se)(He=er)},extent:function(er){return arguments.length?(O=+er[0][0],$=+er[0][1],he=+er[1][0],se=+er[1][1],we=He=null,We):[[O,$],[he,se]]}}}var ls=t(),ss,Oi,Lo,ml={sphere:I,point:I,lineStart:us,lineEnd:I,polygonStart:I,polygonEnd:I};function us(){ml.point=of,ml.lineEnd=eu}function eu(){ml.point=ml.lineEnd=I}function of(O,$){O*=d,$*=d,ss=O,Oi=T($),Lo=b($),ml.point=Uc}function Uc(O,$){O*=d,$*=d;var he=T($),se=b($),we=m(O-ss),He=b(we),We=T(we),er=se*We,nr=Lo*he-Oi*se*He,br=Oi*he+Lo*se*He;ls.add(y(E(er*er+nr*nr),br)),ss=O,Oi=he,Lo=se}function ru(O){return ls.reset(),te(O,ml),+ls}var tu=[null,null],au={type:"LineString",coordinates:tu};function gl(O,$){return tu[0]=O,tu[1]=$,ru(au)}var qo={Feature:function(O,$){return oo(O.geometry,$)},FeatureCollection:function(O,$){for(var he=O.features,se=-1,we=he.length;++se<we;)if(oo(he[se].geometry,$))return!0;return!1}},Po={Sphere:function(){return!0},Point:function(O,$){return lf(O.coordinates,$)},MultiPoint:function(O,$){for(var he=O.coordinates,se=-1,we=he.length;++se<we;)if(lf(he[se],$))return!0;return!1},LineString:function(O,$){return ju(O.coordinates,$)},MultiLineString:function(O,$){for(var he=O.coordinates,se=-1,we=he.length;++se<we;)if(ju(he[se],$))return!0;return!1},Polygon:function(O,$){return fs(O.coordinates,$)},MultiPolygon:function(O,$){for(var he=O.coordinates,se=-1,we=he.length;++se<we;)if(fs(he[se],$))return!0;return!1},GeometryCollection:function(O,$){for(var he=O.geometries,se=-1,we=he.length;++se<we;)if(oo(he[se],$))return!0;return!1}};function oo(O,$){return O&&Po.hasOwnProperty(O.type)?Po[O.type](O,$):!1}function lf(O,$){return gl(O,$)===0}function ju(O,$){for(var he,se,we,He=0,We=O.length;He<We;He++){if(se=gl(O[He],$),se===0||He>0&&(we=gl(O[He],O[He-1]),we>0&&he<=we&&se<=we&&(he+se-we)*(1-Math.pow((he-se)/we,2))<l*we))return!0;he=se}return!1}function fs(O,$){return!!is(O.map(sf),Gc($))}function sf(O){return O=O.map(Gc),O.pop(),O}function Gc(O){return[O[0]*d,O[1]*d]}function nu(O,$){return(O&&qo.hasOwnProperty(O.type)?qo[O.type]:oo)(O,$)}function lo(O,$,he){var se=r.range(O,$-o,he).concat($);return function(we){return se.map(function(He){return[we,He]})}}function iu(O,$,he){var se=r.range(O,$-o,he).concat($);return function(we){return se.map(function(He){return[He,we]})}}function Yc(){var O,$,he,se,we,He,We,er,nr=10,br=nr,$e=90,lr=360,ir,Mr,Fr,lt,rt=2.5;function ut(){return{type:"MultiLineString",coordinates:ft()}}function ft(){return r.range(C(se/$e)*$e,he,$e).map(Fr).concat(r.range(C(er/lr)*lr,We,lr).map(lt)).concat(r.range(C($/nr)*nr,O,nr).filter(function(Pr){return m(Pr%$e)>o}).map(ir)).concat(r.range(C(He/br)*br,we,br).filter(function(Pr){return m(Pr%lr)>o}).map(Mr))}return ut.lines=function(){return ft().map(function(Pr){return{type:"LineString",coordinates:Pr}})},ut.outline=function(){return{type:"Polygon",coordinates:[Fr(se).concat(lt(We).slice(1),Fr(he).reverse().slice(1),lt(er).reverse().slice(1))]}},ut.extent=function(Pr){return arguments.length?ut.extentMajor(Pr).extentMinor(Pr):ut.extentMinor()},ut.extentMajor=function(Pr){return arguments.length?(se=+Pr[0][0],he=+Pr[1][0],er=+Pr[0][1],We=+Pr[1][1],se>he&&(Pr=se,se=he,he=Pr),er>We&&(Pr=er,er=We,We=Pr),ut.precision(rt)):[[se,er],[he,We]]},ut.extentMinor=function(Pr){return arguments.length?($=+Pr[0][0],O=+Pr[1][0],He=+Pr[0][1],we=+Pr[1][1],$>O&&(Pr=$,$=O,O=Pr),He>we&&(Pr=He,He=we,we=Pr),ut.precision(rt)):[[$,He],[O,we]]},ut.step=function(Pr){return arguments.length?ut.stepMajor(Pr).stepMinor(Pr):ut.stepMinor()},ut.stepMajor=function(Pr){return arguments.length?($e=+Pr[0],lr=+Pr[1],ut):[$e,lr]},ut.stepMinor=function(Pr){return arguments.length?(nr=+Pr[0],br=+Pr[1],ut):[nr,br]},ut.precision=function(Pr){return arguments.length?(rt=+Pr,ir=lo(He,we,90),Mr=iu($,O,rt),Fr=lo(er,We,90),lt=iu(se,he,rt),ut):rt},ut.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function ou(){return Yc()()}function B2(O,$){var he=O[0]*d,se=O[1]*d,we=$[0]*d,He=$[1]*d,We=b(se),er=T(se),nr=b(He),br=T(He),$e=We*b(he),lr=We*T(he),ir=nr*b(we),Mr=nr*T(we),Fr=2*B(E(X(He-se)+We*nr*X(we-he))),lt=T(Fr),rt=Fr?function(ut){var ft=T(ut*=Fr)/lt,Pr=T(Fr-ut)/lt,Gr=Pr*$e+ft*ir,vt=Pr*lr+ft*Mr,xt=Pr*er+ft*br;return[y(vt,Gr)*h,y(xt,E(Gr*Gr+vt*vt))*h]}:function(){return[he*h,se*h]};return rt.distance=Fr,rt}function yl(O){return O}var uf=t(),cs=t(),Vc,Ro,zo,ff,Ui={point:I,lineStart:I,lineEnd:I,polygonStart:function(){Ui.lineStart=I2,Ui.lineEnd=H2},polygonEnd:function(){Ui.lineStart=Ui.lineEnd=Ui.point=I,uf.add(m(cs)),cs.reset()},result:function(){var O=uf/2;return uf.reset(),O}};function I2(){Ui.point=so}function so(O,$){Ui.point=vs,Vc=zo=O,Ro=ff=$}function vs(O,$){cs.add(ff*O-zo*$),zo=O,ff=$}function H2(){vs(Vc,Ro)}var uo=1/0,bl=uo,_l=-uo,xl=_l,No={point:lu,lineStart:I,lineEnd:I,polygonStart:I,polygonEnd:I,result:function(){var O=[[uo,bl],[_l,xl]];return _l=xl=-(bl=uo=1/0),O}};function lu(O,$){O<uo&&(uo=O),O>_l&&(_l=O),$<bl&&(bl=$),$>xl&&(xl=$)}var Wu=0,su=0,uu=0,wl=0,hs=0,ds=0,Zu=0,$u=0,Di=0,Ju,Ku,ti,yn,Gn={point:fo,lineStart:fu,lineEnd:cf,polygonStart:function(){Gn.lineStart=Xc,Gn.lineEnd=O2},polygonEnd:function(){Gn.point=fo,Gn.lineStart=fu,Gn.lineEnd=cf},result:function(){var O=Di?[Zu/Di,$u/Di]:ds?[wl/ds,hs/ds]:uu?[Wu/uu,su/uu]:[NaN,NaN];return Wu=su=uu=wl=hs=ds=Zu=$u=Di=0,O}};function fo(O,$){Wu+=O,su+=$,++uu}function fu(){Gn.point=Al}function Al(O,$){Gn.point=ps,fo(ti=O,yn=$)}function ps(O,$){var he=O-ti,se=$-yn,we=E(he*he+se*se);wl+=we*(ti+O)/2,hs+=we*(yn+$)/2,ds+=we,fo(ti=O,yn=$)}function cf(){Gn.point=fo}function Xc(){Gn.point=U2}function O2(){vf(Ju,Ku)}function U2(O,$){Gn.point=vf,fo(Ju=ti=O,Ku=yn=$)}function vf(O,$){var he=O-ti,se=$-yn,we=E(he*he+se*se);wl+=we*(ti+O)/2,hs+=we*(yn+$)/2,ds+=we,we=yn*O-ti*$,Zu+=we*(ti+O),$u+=we*(yn+$),Di+=we*3,fo(ti=O,yn=$)}function hf(O){this._context=O}hf.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,$){switch(this._point){case 0:{this._context.moveTo(O,$),this._point=1;break}case 1:{this._context.lineTo(O,$);break}default:{this._context.moveTo(O+this._radius,$),this._context.arc(O,$,this._radius,0,c);break}}},result:I};var df=t(),pf,jc,Wc,cu,vu,Gi={point:I,lineStart:function(){Gi.point=Qu},lineEnd:function(){pf&&hu(jc,Wc),Gi.point=I},polygonStart:function(){pf=!0},polygonEnd:function(){pf=null},result:function(){var O=+df;return df.reset(),O}};function Qu(O,$){Gi.point=hu,jc=cu=O,Wc=vu=$}function hu(O,$){cu-=O,vu-=$,df.add(E(cu*cu+vu*vu)),cu=O,vu=$}function e0(){this._string=[]}e0.prototype={_radius:4.5,_circle:Zc(4.5),pointRadius:function(O){return(O=+O)!==this._radius&&(this._radius=O,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(O,$){switch(this._point){case 0:{this._string.push("M",O,",",$),this._point=1;break}case 1:{this._string.push("L",O,",",$);break}default:{this._circle==null&&(this._circle=Zc(this._radius)),this._string.push("M",O,",",$,this._circle);break}}},result:function(){if(this._string.length){var O=this._string.join("");return this._string=[],O}else return null}};function Zc(O){return"m0,"+O+"a"+O+","+O+" 0 1,1 0,"+-2*O+"a"+O+","+O+" 0 1,1 0,"+2*O+"z"}function mf(O,$){var he=4.5,se,we;function He(We){return We&&(typeof he=="function"&&we.pointRadius(+he.apply(this,arguments)),te(We,se(we))),we.result()}return He.area=function(We){return te(We,se(Ui)),Ui.result()},He.measure=function(We){return te(We,se(Gi)),Gi.result()},He.bounds=function(We){return te(We,se(No)),No.result()},He.centroid=function(We){return te(We,se(Gn)),Gn.result()},He.projection=function(We){return arguments.length?(se=We==null?(O=null,yl):(O=We).stream,He):O},He.context=function(We){return arguments.length?(we=We==null?($=null,new e0):new hf($=We),typeof he!="function"&&we.pointRadius(he),He):$},He.pointRadius=function(We){return arguments.length?(he=typeof We=="function"?We:(we.pointRadius(+We),+We),He):he},He.projection(O).context($)}function G2(O){return{stream:Bo(O)}}function Bo(O){return function($){var he=new r0;for(var se in O)he[se]=O[se];return he.stream=$,he}}function r0(){}r0.prototype={constructor:r0,point:function(O,$){this.stream.point(O,$)},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 ms(O,$,he){var se=O.clipExtent&&O.clipExtent();return O.scale(150).translate([0,0]),se!=null&&O.clipExtent(null),te(he,O.stream(No)),$(No.result()),se!=null&&O.clipExtent(se),O}function du(O,$,he){return ms(O,function(se){var we=$[1][0]-$[0][0],He=$[1][1]-$[0][1],We=Math.min(we/(se[1][0]-se[0][0]),He/(se[1][1]-se[0][1])),er=+$[0][0]+(we-We*(se[1][0]+se[0][0]))/2,nr=+$[0][1]+(He-We*(se[1][1]+se[0][1]))/2;O.scale(150*We).translate([er,nr])},he)}function pu(O,$,he){return du(O,[[0,0],$],he)}function gf(O,$,he){return ms(O,function(se){var we=+$,He=we/(se[1][0]-se[0][0]),We=(we-He*(se[1][0]+se[0][0]))/2,er=-He*se[0][1];O.scale(150*He).translate([We,er])},he)}function Io(O,$,he){return ms(O,function(se){var we=+$,He=we/(se[1][1]-se[0][1]),We=-He*se[0][0],er=(we-He*(se[1][1]+se[0][1]))/2;O.scale(150*He).translate([We,er])},he)}var $c=16,yf=b(30*d);function Jc(O,$){return+$?t0(O,$):bf(O)}function bf(O){return Bo({point:function($,he){$=O($,he),this.stream.point($[0],$[1])}})}function t0(O,$){function he(se,we,He,We,er,nr,br,$e,lr,ir,Mr,Fr,lt,rt){var ut=br-se,ft=$e-we,Pr=ut*ut+ft*ft;if(Pr>4*$&<--){var Gr=We+ir,vt=er+Mr,xt=nr+Fr,Xt=E(Gr*Gr+vt*vt+xt*xt),la=B(xt/=Xt),$t=m(m(xt)-1)<o||m(He-lr)<o?(He+lr)/2:y(vt,Gr),xa=O($t,la),Lt=xa[0],An=xa[1],ja=Lt-se,wa=An-we,Vr=ft*ja-ut*wa;(Vr*Vr/Pr>$||m((ut*ja+ft*wa)/Pr-.5)>.3||We*ir+er*Mr+nr*Fr<yf)&&(he(se,we,He,We,er,nr,Lt,An,$t,Gr/=Xt,vt/=Xt,xt,lt,rt),rt.point(Lt,An),he(Lt,An,$t,Gr,vt,xt,br,$e,lr,ir,Mr,Fr,lt,rt))}}return function(se){var we,He,We,er,nr,br,$e,lr,ir,Mr,Fr,lt,rt={point:ut,lineStart:ft,lineEnd:Gr,polygonStart:function(){se.polygonStart(),rt.lineStart=vt},polygonEnd:function(){se.polygonEnd(),rt.lineStart=ft}};function ut(la,$t){la=O(la,$t),se.point(la[0],la[1])}function ft(){lr=NaN,rt.point=Pr,se.lineStart()}function Pr(la,$t){var xa=_e([la,$t]),Lt=O(la,$t);he(lr,ir,$e,Mr,Fr,lt,lr=Lt[0],ir=Lt[1],$e=la,Mr=xa[0],Fr=xa[1],lt=xa[2],$c,se),se.point(lr,ir)}function Gr(){rt.point=ut,se.lineEnd()}function vt(){ft(),rt.point=xt,rt.lineEnd=Xt}function xt(la,$t){Pr(we=la,$t),He=lr,We=ir,er=Mr,nr=Fr,br=lt,rt.point=Pr}function Xt(){he(lr,ir,$e,Mr,Fr,lt,He,We,we,er,nr,br,$c,se),rt.lineEnd=Gr,Gr()}return rt}}var _f=Bo({point:function(O,$){this.stream.point(O*d,$*d)}});function xf(O){return Bo({point:function($,he){var se=O($,he);return this.stream.point(se[0],se[1])}})}function Y2(O,$,he,se,we){function He(We,er){return We*=se,er*=we,[$+O*We,he-O*er]}return He.invert=function(We,er){return[(We-$)/O*se,(he-er)/O*we]},He}function wf(O,$,he,se,we,He){var We=b(He),er=T(He),nr=We*O,br=er*O,$e=We/O,lr=er/O,ir=(er*he-We*$)/O,Mr=(er*$+We*he)/O;function Fr(lt,rt){return lt*=se,rt*=we,[nr*lt-br*rt+$,he-br*lt-nr*rt]}return Fr.invert=function(lt,rt){return[se*($e*lt-lr*rt+ir),we*(Mr-lr*lt-$e*rt)]},Fr}function Yi(O){return Af(function(){return O})()}function Af(O){var $,he=150,se=480,we=250,He=0,We=0,er=0,nr=0,br=0,$e,lr=0,ir=1,Mr=1,Fr=null,lt=ot,rt=null,ut,ft,Pr,Gr=yl,vt=.5,xt,Xt,la,$t,xa;function Lt(Vr){return la(Vr[0]*d,Vr[1]*d)}function An(Vr){return Vr=la.invert(Vr[0],Vr[1]),Vr&&[Vr[0]*h,Vr[1]*h]}Lt.stream=function(Vr){return $t&&xa===Vr?$t:$t=_f(xf($e)(lt(xt(Gr(xa=Vr)))))},Lt.preclip=function(Vr){return arguments.length?(lt=Vr,Fr=void 0,wa()):lt},Lt.postclip=function(Vr){return arguments.length?(Gr=Vr,rt=ut=ft=Pr=null,wa()):Gr},Lt.clipAngle=function(Vr){return arguments.length?(lt=+Vr?gn(Fr=Vr*d):(Fr=null,ot),wa()):Fr*h},Lt.clipExtent=function(Vr){return arguments.length?(Gr=Vr==null?(rt=ut=ft=Pr=null,yl):Un(rt=+Vr[0][0],ut=+Vr[0][1],ft=+Vr[1][0],Pr=+Vr[1][1]),wa()):rt==null?null:[[rt,ut],[ft,Pr]]},Lt.scale=function(Vr){return arguments.length?(he=+Vr,ja()):he},Lt.translate=function(Vr){return arguments.length?(se=+Vr[0],we=+Vr[1],ja()):[se,we]},Lt.center=function(Vr){return arguments.length?(He=Vr[0]%360*d,We=Vr[1]%360*d,ja()):[He*h,We*h]},Lt.rotate=function(Vr){return arguments.length?(er=Vr[0]%360*d,nr=Vr[1]%360*d,br=Vr.length>2?Vr[2]%360*d:0,ja()):[er*h,nr*h,br*h]},Lt.angle=function(Vr){return arguments.length?(lr=Vr%360*d,ja()):lr*h},Lt.reflectX=function(Vr){return arguments.length?(ir=Vr?-1:1,ja()):ir<0},Lt.reflectY=function(Vr){return arguments.length?(Mr=Vr?-1:1,ja()):Mr<0},Lt.precision=function(Vr){return arguments.length?(xt=Jc(Xt,vt=Vr*Vr),wa()):E(vt)},Lt.fitExtent=function(Vr,jt){return du(Lt,Vr,jt)},Lt.fitSize=function(Vr,jt){return pu(Lt,Vr,jt)},Lt.fitWidth=function(Vr,jt){return gf(Lt,Vr,jt)},Lt.fitHeight=function(Vr,jt){return Io(Lt,Vr,jt)};function ja(){var Vr=wf(he,0,0,ir,Mr,lr).apply(null,$(He,We)),jt=(lr?wf:Y2)(he,se-Vr[0],we-Vr[1],ir,Mr,lr);return $e=Ea(er,nr,br),Xt=ya($,jt),la=ya($e,Xt),xt=Jc(Xt,vt),wa()}function wa(){return $t=xa=null,Lt}return function(){return $=O.apply(this,arguments),Lt.invert=$.invert&&An,ja()}}function gs(O){var $=0,he=s/3,se=Af(O),we=se($,he);return we.parallels=function(He){return arguments.length?se($=He[0]*d,he=He[1]*d):[$*h,he*h]},we}function Mf(O){var $=b(O);function he(se,we){return[se*$,T(we)/$]}return he.invert=function(se,we){return[se/$,B(we*$)]},he}function Kc(O,$){var he=T(O),se=(he+T($))/2;if(m(se)<o)return Mf(O);var we=1+he*(2*se-he),He=E(we)/se;function We(er,nr){var br=E(we-2*se*T(nr))/se;return[br*T(er*=se),He-br*b(er)]}return We.invert=function(er,nr){var br=He-nr,$e=y(er,m(br))*A(br);return br*se<0&&($e-=s*A(er)*A(br)),[$e/se,B((we-(er*er+br*br)*se*se)/(2*se))]},We}function Ml(){return gs(Kc).scale(155.424).center([0,33.6442])}function Qc(){return Ml().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function V2(O){var $=O.length;return{point:function(he,se){for(var we=-1;++we<$;)O[we].point(he,se)},sphere:function(){for(var he=-1;++he<$;)O[he].sphere()},lineStart:function(){for(var he=-1;++he<$;)O[he].lineStart()},lineEnd:function(){for(var he=-1;++he<$;)O[he].lineEnd()},polygonStart:function(){for(var he=-1;++he<$;)O[he].polygonStart()},polygonEnd:function(){for(var he=-1;++he<$;)O[he].polygonEnd()}}}function X2(){var O,$,he=Qc(),se,we=Ml().rotate([154,0]).center([-2,58.5]).parallels([55,65]),He,We=Ml().rotate([157,0]).center([-3,19.9]).parallels([8,18]),er,nr,br={point:function(ir,Mr){nr=[ir,Mr]}};function $e(ir){var Mr=ir[0],Fr=ir[1];return nr=null,se.point(Mr,Fr),nr||(He.point(Mr,Fr),nr)||(er.point(Mr,Fr),nr)}$e.invert=function(ir){var Mr=he.scale(),Fr=he.translate(),lt=(ir[0]-Fr[0])/Mr,rt=(ir[1]-Fr[1])/Mr;return(rt>=.12&&rt<.234&<>=-.425&<<-.214?we:rt>=.166&&rt<.234&<>=-.214&<<-.115?We:he).invert(ir)},$e.stream=function(ir){return O&&$===ir?O:O=V2([he.stream($=ir),we.stream(ir),We.stream(ir)])},$e.precision=function(ir){return arguments.length?(he.precision(ir),we.precision(ir),We.precision(ir),lr()):he.precision()},$e.scale=function(ir){return arguments.length?(he.scale(ir),we.scale(ir*.35),We.scale(ir),$e.translate(he.translate())):he.scale()},$e.translate=function(ir){if(!arguments.length)return he.translate();var Mr=he.scale(),Fr=+ir[0],lt=+ir[1];return se=he.translate(ir).clipExtent([[Fr-.455*Mr,lt-.238*Mr],[Fr+.455*Mr,lt+.238*Mr]]).stream(br),He=we.translate([Fr-.307*Mr,lt+.201*Mr]).clipExtent([[Fr-.425*Mr+o,lt+.12*Mr+o],[Fr-.214*Mr-o,lt+.234*Mr-o]]).stream(br),er=We.translate([Fr-.205*Mr,lt+.212*Mr]).clipExtent([[Fr-.214*Mr+o,lt+.166*Mr+o],[Fr-.115*Mr-o,lt+.234*Mr-o]]).stream(br),lr()},$e.fitExtent=function(ir,Mr){return du($e,ir,Mr)},$e.fitSize=function(ir,Mr){return pu($e,ir,Mr)},$e.fitWidth=function(ir,Mr){return gf($e,ir,Mr)},$e.fitHeight=function(ir,Mr){return Io($e,ir,Mr)};function lr(){return O=$=null,$e}return $e.scale(1070)}function co(O){return function($,he){var se=b($),we=b(he),He=O(se*we);return[He*we*T($),He*T(he)]}}function Vi(O){return function($,he){var se=E($*$+he*he),we=O(se),He=T(we),We=b(we);return[y($*He,se*We),B(se&&he*He/se)]}}var ai=co(function(O){return E(2/(1+O))});ai.invert=Vi(function(O){return 2*B(O/2)});function j2(){return Yi(ai).scale(124.75).clipAngle(180-.001)}var ys=co(function(O){return(O=z(O))&&O/T(O)});ys.invert=Vi(function(O){return O});function e1(){return Yi(ys).scale(79.4188).clipAngle(180-.001)}function hi(O,$){return[O,_(P((u+$)/2))]}hi.invert=function(O,$){return[O,2*p(x($))-u]};function r1(){return t1(hi).scale(961/c)}function t1(O){var $=Yi(O),he=$.center,se=$.scale,we=$.translate,He=$.clipExtent,We=null,er,nr,br;$.scale=function(lr){return arguments.length?(se(lr),$e()):se()},$.translate=function(lr){return arguments.length?(we(lr),$e()):we()},$.center=function(lr){return arguments.length?(he(lr),$e()):he()},$.clipExtent=function(lr){return arguments.length?(lr==null?We=er=nr=br=null:(We=+lr[0][0],er=+lr[0][1],nr=+lr[1][0],br=+lr[1][1]),$e()):We==null?null:[[We,er],[nr,br]]};function $e(){var lr=s*se(),ir=$($s($.rotate()).invert([0,0]));return He(We==null?[[ir[0]-lr,ir[1]-lr],[ir[0]+lr,ir[1]+lr]]:O===hi?[[Math.max(ir[0]-lr,We),er],[Math.min(ir[0]+lr,nr),br]]:[[We,Math.max(ir[1]-lr,er)],[nr,Math.min(ir[1]+lr,br)]])}return $e()}function mu(O){return P((u+O)/2)}function a1(O,$){var he=b(O),se=O===$?T(O):_(he/b($))/_(mu($)/mu(O)),we=he*M(mu(O),se)/se;if(!se)return hi;function He(We,er){we>0?er<-u+o&&(er=-u+o):er>u-o&&(er=u-o);var nr=we/M(mu(er),se);return[nr*T(se*We),we-nr*b(se*We)]}return He.invert=function(We,er){var nr=we-er,br=A(se)*E(We*We+nr*nr),$e=y(We,m(nr))*A(nr);return nr*se<0&&($e-=s*A(We)*A(nr)),[$e/se,2*p(M(we/br,1/se))-u]},He}function a0(){return gs(a1).scale(109.5).parallels([30,30])}function gu(O,$){return[O,$]}gu.invert=gu;function n0(){return Yi(gu).scale(152.63)}function yu(O,$){var he=b(O),se=O===$?T(O):(he-b($))/($-O),we=he/se+O;if(m(se)<o)return gu;function He(We,er){var nr=we-er,br=se*We;return[nr*T(br),we-nr*b(br)]}return He.invert=function(We,er){var nr=we-er,br=y(We,m(nr))*A(nr);return nr*se<0&&(br-=s*A(We)*A(nr)),[br/se,we-A(se)*E(We*We+nr*nr)]},He}function W2(){return gs(yu).scale(131.154).center([0,13.9389])}var bu=1.340264,Tl=-.081106,_u=893e-6,kl=.003796,bs=E(3)/2,i0=12;function xu(O,$){var he=B(bs*T($)),se=he*he,we=se*se*se;return[O*b(he)/(bs*(bu+3*Tl*se+we*(7*_u+9*kl*se))),he*(bu+Tl*se+we*(_u+kl*se))]}xu.invert=function(O,$){for(var he=$,se=he*he,we=se*se*se,He=0,We,er,nr;He<i0&&(er=he*(bu+Tl*se+we*(_u+kl*se))-$,nr=bu+3*Tl*se+we*(7*_u+9*kl*se),he-=We=er/nr,se=he*he,we=se*se*se,!(m(We)<l));++He);return[bs*O*(bu+3*Tl*se+we*(7*_u+9*kl*se))/b(he),B(T(he)/bs)]};function n1(){return Yi(xu).scale(177.158)}function o0(O,$){var he=b($),se=b(O)*he;return[he*T(O)/se,T($)/se]}o0.invert=Vi(p);function i1(){return Yi(o0).scale(144.049).clipAngle(60)}function o1(){var O=1,$=0,he=0,se=1,we=1,He=0,We,er,nr=null,br,$e,lr,ir=1,Mr=1,Fr=Bo({point:function(Gr,vt){var xt=Pr([Gr,vt]);this.stream.point(xt[0],xt[1])}}),lt=yl,rt,ut;function ft(){return ir=O*se,Mr=O*we,rt=ut=null,Pr}function Pr(Gr){var vt=Gr[0]*ir,xt=Gr[1]*Mr;if(He){var Xt=xt*We-vt*er;vt=vt*We+xt*er,xt=Xt}return[vt+$,xt+he]}return Pr.invert=function(Gr){var vt=Gr[0]-$,xt=Gr[1]-he;if(He){var Xt=xt*We+vt*er;vt=vt*We-xt*er,xt=Xt}return[vt/ir,xt/Mr]},Pr.stream=function(Gr){return rt&&ut===Gr?rt:rt=Fr(lt(ut=Gr))},Pr.postclip=function(Gr){return arguments.length?(lt=Gr,nr=br=$e=lr=null,ft()):lt},Pr.clipExtent=function(Gr){return arguments.length?(lt=Gr==null?(nr=br=$e=lr=null,yl):Un(nr=+Gr[0][0],br=+Gr[0][1],$e=+Gr[1][0],lr=+Gr[1][1]),ft()):nr==null?null:[[nr,br],[$e,lr]]},Pr.scale=function(Gr){return arguments.length?(O=+Gr,ft()):O},Pr.translate=function(Gr){return arguments.length?($=+Gr[0],he=+Gr[1],ft()):[$,he]},Pr.angle=function(Gr){return arguments.length?(He=Gr%360*d,er=T(He),We=b(He),ft()):He*h},Pr.reflectX=function(Gr){return arguments.length?(se=Gr?-1:1,ft()):se<0},Pr.reflectY=function(Gr){return arguments.length?(we=Gr?-1:1,ft()):we<0},Pr.fitExtent=function(Gr,vt){return du(Pr,Gr,vt)},Pr.fitSize=function(Gr,vt){return pu(Pr,Gr,vt)},Pr.fitWidth=function(Gr,vt){return gf(Pr,Gr,vt)},Pr.fitHeight=function(Gr,vt){return Io(Pr,Gr,vt)},Pr}function Tf(O,$){var he=$*$,se=he*he;return[O*(.8707-.131979*he+se*(-.013791+se*(.003971*he-.001529*se))),$*(1.007226+he*(.015085+se*(-.044475+.028874*he-.005916*se)))]}Tf.invert=function(O,$){var he=$,se=25,we;do{var He=he*he,We=He*He;he-=we=(he*(1.007226+He*(.015085+We*(-.044475+.028874*He-.005916*We)))-$)/(1.007226+He*(.015085*3+We*(-.044475*7+.028874*9*He-.005916*11*We)))}while(m(we)>o&&--se>0);return[O/(.8707+(He=he*he)*(-.131979+He*(-.013791+He*He*He*(.003971-.001529*He)))),he]};function l0(){return Yi(Tf).scale(175.295)}function ln(O,$){return[b($)*T(O),T($)]}ln.invert=Vi(B);function Fi(){return Yi(ln).scale(249.5).clipAngle(90+o)}function _s(O,$){var he=b($),se=1+b(O)*he;return[he*T(O)/se,T($)/se]}_s.invert=Vi(function(O){return 2*p(O)});function s0(){return Yi(_s).scale(250).clipAngle(142)}function wu(O,$){return[_(P((u+$)/2)),-O]}wu.invert=function(O,$){return[-$,2*p(x(O))-u]};function kf(){var O=t1(wu),$=O.center,he=O.rotate;return O.center=function(se){return arguments.length?$([-se[1],se[0]]):(se=$(),[se[1],-se[0]])},O.rotate=function(se){return arguments.length?he([se[0],se[1],se.length>2?se[2]+90:90]):(se=he(),[se[0],se[1],se[2]-90])},he([0,0,90]).scale(159.155)}e.geoAlbers=Qc,e.geoAlbersUsa=X2,e.geoArea=J,e.geoAzimuthalEqualArea=j2,e.geoAzimuthalEqualAreaRaw=ai,e.geoAzimuthalEquidistant=e1,e.geoAzimuthalEquidistantRaw=ys,e.geoBounds=Sr,e.geoCentroid=Na,e.geoCircle=Js,e.geoClipAntimeridian=ot,e.geoClipCircle=gn,e.geoClipExtent=pl,e.geoClipRectangle=Un,e.geoConicConformal=a0,e.geoConicConformalRaw=a1,e.geoConicEqualArea=Ml,e.geoConicEqualAreaRaw=Kc,e.geoConicEquidistant=W2,e.geoConicEquidistantRaw=yu,e.geoContains=nu,e.geoDistance=gl,e.geoEqualEarth=n1,e.geoEqualEarthRaw=xu,e.geoEquirectangular=n0,e.geoEquirectangularRaw=gu,e.geoGnomonic=i1,e.geoGnomonicRaw=o0,e.geoGraticule=Yc,e.geoGraticule10=ou,e.geoIdentity=o1,e.geoInterpolate=B2,e.geoLength=ru,e.geoMercator=r1,e.geoMercatorRaw=hi,e.geoNaturalEarth1=l0,e.geoNaturalEarth1Raw=Tf,e.geoOrthographic=Fi,e.geoOrthographicRaw=ln,e.geoPath=mf,e.geoProjection=Yi,e.geoProjectionMutator=Af,e.geoRotation=$s,e.geoStereographic=s0,e.geoStereographicRaw=_s,e.geoStream=te,e.geoTransform=G2,e.geoTransverseMercator=kf,e.geoTransverseMercatorRaw=wu,Object.defineProperty(e,"__esModule",{value:!0})}))});var CU=le((B8e,kU)=>{"use strict";var TU={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},lge=new Set(Object.values(TU));kU.exports={usaLocationAbbreviations:lge,usaLocationList:TU}});var SU={};Ha(SU,{COUNTRIES_X:()=>sge});var sge,DU=Ia(()=>{"use strict";sge=[{iso3:"XAC",iso2:"",m49:"",name:"Aksai Chin",aliases:[]},{iso3:"XAP",iso2:"",m49:"",name:"Arunachal Pradesh",aliases:[]},{iso3:"XBT",iso2:"",m49:"",name:"Bir Tawil",aliases:[]},{iso3:"XHT",iso2:"",m49:"",name:"Halaib Triangle",aliases:[]},{iso3:"XIT",iso2:"",m49:"",name:"Ilemi Triangle",aliases:[]},{iso3:"XJK",iso2:"",m49:"",name:"Jammu and Kashmir",aliases:[]}]});var L2=le((I8e,LU)=>{"use strict";var uge=Ft(),{COUNTRIES:fge,createLookup:cge}=iU(),{area:vge}=bU(),{centroid:hge}=xU(),{coordAll:dge}=W3(),{geoBounds:pge}=Q3(),mge=Ap(),J0=Cu(),gge=c0(),yge=ev(),ey=hg(),{usaLocationAbbreviations:bge,usaLocationList:_ge}=CU(),{COUNTRIES_X:xge}=(DU(),Tr(SU)),{lookupAlpha3:wge}=cge([...fge,...xge]),Age={"ISO-3":mge,"USA-states":Tge,"country names":Mge};function Mge(e){let r=wge(e);return r||(J0.log("Unrecognized country name: "+e+"."),!1)}function Tge(e){e=e.trim();let r=bge.has(e.toUpperCase())?e.toUpperCase():_ge[e.toLowerCase()];return r||(J0.log("Unrecognized US location: "+e+"."),!1)}function kge(e,r,t){var n;if(!r||typeof r!="string")return!1;let a=Age[e](r);if(a){let i;if(e==="USA-states"){i=[];for(let o of t)((n=o==null?void 0:o.properties)==null?void 0:n.gu)==="USA"&&i.push(o)}else i=t;for(let o of i)if(o.id===a)return o;J0.log(`Location with id ${a} does not have a matching topojson feature at this resolution.`)}return!1}var ry=360;function I8(e){for(let r=0;r<e.length-1;r++)if(e[r][0]>0&&e[r+1][0]<0)return r;return null}function Cge(e){var r=e.geometry,t=r.coordinates,a=e.id,n=[],i,o,l,s;switch(a==="RUS"||a==="FJI"?i=function(u){var f;if(I8(u)===null)f=u;else for(f=new Array(u.length),s=0;s<u.length;s++)f[s]=[u[s][0]<0?u[s][0]+ry:u[s][0],u[s][1]];n.push(ey.tester(f))}:a==="ATA"?i=function(u){var f=I8(u);if(f===null)return n.push(ey.tester(u));var c=new Array(u.length+1),h=0;for(s=0;s<u.length;s++)s>f?c[h++]=[u[s][0]+ry,u[s][1]]:s===f?(c[h++]=u[s],c[h++]=[u[s][0],-90]):c[h++]=u[s];var d=ey.tester(c);d.pts.pop(),n.push(d)}:i=function(u){n.push(ey.tester(u))},r.type){case"MultiPolygon":for(o=0;o<t.length;o++)for(l=0;l<t[o].length;l++)i(t[o][l]);break;case"Polygon":for(o=0;o<t.length;o++)i(t[o]);break}return n}function H8(e){var r=e.geojson,t=window.PlotlyGeoAssets||{},a=typeof r=="string"?t[r]:r;return gge(a)?a:(J0.error("Oops ... something went wrong when fetching "+r),!1)}function Sge(e){var r=e[0].trace,t=H8(r);if(!t)return!1;var a={},n=[],i;for(i=0;i<r._length;i++){var o=e[i];(o.loc||o.loc===0)&&(a[o.loc]=o)}function l(f){var c=yge(f,r.featureidkey||"id").get(),h=a[c];if(h){var d=f.geometry;if(d.type==="Polygon"||d.type==="MultiPolygon"){var m={type:"Feature",id:c,geometry:d,properties:{}};m.properties.ct=Dge(m),isNaN(m.properties.ct[0])&&J0.log(["Location",h.loc,"has no polygon with positive area.","Its centroid could not be computed,","so hover and selection will not work for it."].join(" ")),h.fIn=f,h.fOut=m,n.push(m)}else J0.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete a[c]}switch(t.type){case"FeatureCollection":var s=t.features;for(i=0;i<s.length;i++)l(s[i]);break;case"Feature":l(t);break;default:return J0.warn(["Invalid GeoJSON type",(t.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var u in a)J0.log(["Location *"+u+"*","does not have a matching feature with id-key","*"+r.featureidkey+"*."].join(" "));return n}function Dge(e){var r=e.geometry,t;if(r.type==="MultiPolygon")for(var a=r.coordinates,n=0,i=0;i<a.length;i++){var o={type:"Polygon",coordinates:a[i]},l=vge(o);l>n&&(n=l,t=o)}else t=r;return!t||!t.coordinates.some(s=>s.length>0)?[NaN,NaN]:hge(t).geometry.coordinates}function Fge(e){var r=window.PlotlyGeoAssets||{},t=[];function a(s){return new Promise(function(u,f){uge.json(s,function(c,h){if(c){delete r[s];var d=c.status===404?'GeoJSON at URL "'+s+'" does not exist.':"Unexpected error while fetching from "+s;return f(new Error(d))}return r[s]=h,u(h)})})}function n(s){return new Promise(function(u,f){var c=0,h=setInterval(function(){if(r[s]&&r[s]!=="pending")return clearInterval(h),u(r[s]);if(c>100)return clearInterval(h),f("Unexpected error while fetching from "+s);c++},50)})}for(var i=0;i<e.length;i++){var o=e[i][0].trace,l=o.geojson;typeof l=="string"&&(r[l]?r[l]==="pending"&&t.push(n(l)):(r[l]="pending",t.push(a(l))))}return t}var Ege=e=>U8(O8(e));function O8(e){try{return dge(e)}catch(r){return[]}}function U8(e){if(e.length===0)return null;if(e.length===1){let[i,o]=e[0];return[i,o,i,o]}let[[r,t],[a,n]]=pge({type:"MultiPoint",coordinates:e});return[r,t,EU([r,a])[1],n]}var Lge=(e,r)=>r.fitbounds==="geojson"&&e.locationmode==="geojson-id",FU=(e,r)=>Lge(e,r)?O8(H8(e)):[],qge=(e,r)=>U8(FU(e,r));function EU([e,r]){return[e,e>r?r+ry:r]}LU.exports={locationToFeature:kge,feature2polygons:Cge,getTraceGeojson:H8,extractTraceFeature:Sge,fetchTraceGeoData:Fge,boundsOfCoords:U8,computeBbox:Ege,coordsOf:O8,doesCrossAntiMeridian:I8,fitGeojsonBbox:qge,fitGeojsonCoords:FU,unwrapLonRange:EU,ANTIMERIDIAN_LON_SHIFT:ry}});var G8=le((H8e,RU)=>{"use strict";var Pge=Ft(),Rge=ha(),qU=qt(),PU=Gh(),zge=PU.stylePoints,Nge=PU.styleText;RU.exports=function(r,t){t&&Bge(r,t)};function Bge(e,r){var t=r[0].trace,a=r[0].node3;a.style("opacity",r[0].trace.opacity),zge(a,t,e),Nge(a,t,e),a.selectAll("path.js-line").style("fill","none").each(function(n){var i=Pge.select(this),o=n.trace,l=o.line||{};i.call(qU.stroke,l.color).call(Rge.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(qU.fill,o.fillcolor)})}});var ny=le((O8e,BU)=>{"use strict";var zU=Ft(),ty=mr(),Ige=U3().getTopojsonFeatures,Y8=eU(),ay=L2(),NU=L0().findExtremes,X8=(Ya(),Tr($a)).BADNUM,Hge=Jg().calcMarkerSize,V8=_i(),Oge=G8();function Uge(e,r,t){var a=r.layers.frontplot.select(".scatterlayer"),n=ty.makeTraceGroups(a,t,"trace scattergeo");function i(o,l){o.lonlat[0]===X8&&zU.select(l).remove()}n.selectAll("*").remove(),n.each(function(o){var l=zU.select(this),s=o[0].trace;if(V8.hasLines(s)||s.fill!=="none"){var u=Y8.calcTraceToLineCoords(o),f=s.fill!=="none"?Y8.makePolygon(u):Y8.makeLine(u);l.selectAll("path.js-line").data([{geojson:f,trace:s}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}V8.hasMarkers(s)&&l.selectAll("path.point").data(ty.identity).enter().append("path").classed("point",!0).each(function(c){i(c,this)}),V8.hasText(s)&&l.selectAll("g").data(ty.identity).enter().append("g").append("text").each(function(c){i(c,this)}),Oge(e,o)})}function Gge(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t._length,o,l;if(ty.isArrayOrTypedArray(t.locations)){var s=t.locationmode,u=s==="geojson-id"?ay.extractTraceFeature(e):Ige(t,n.topojson);for(o=0;o<i;o++){l=e[o];var f=s==="geojson-id"?l.fOut:ay.locationToFeature(s,l.loc,u);l.lonlat=f?f.properties.ct:[X8,X8]}}var c={padded:!0},h,d;let m=ay.fitGeojsonBbox(t,a);if(m){let[p,y,b,C]=m;h=[p,b],d=[y,C]}else{for(h=new Array(i),d=new Array(i),o=0;o<i;o++)l=e[o],h[o]=l.lonlat[0],d[o]=l.lonlat[1];c.ppad=Hge(t,i)}t._extremes.lon=NU(a.lonaxis._ax,h,c),t._extremes.lat=NU(a.lataxis._ax,d,c)}function Yge(e,r){let t=ay.fitGeojsonCoords(e[0].trace,r);if(t.length)return t;let a=[];for(let n of e)n.lonlat&&isFinite(n.lonlat[0])&&a.push(n.lonlat);return a}BU.exports={calcGeoJSON:Gge,fitCoords:Yge,plot:Uge}});var HU=le((U8e,IU)=>{"use strict";var Vge=Yl(),Xge=(Ya(),Tr($a)).BADNUM,jge=x9(),Wge=mr().fillText,Zge=nd();IU.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.xa,l=r.ya,s=r.subplot,u=s.projection.isLonLatOverEdges,f=s.project;function c(C){var x=C.lonlat;if(x[0]===Xge||u(x))return 1/0;var _=f(x),M=f([t,a]),T=Math.abs(_[0]-M[0]),A=Math.abs(_[1]-M[1]),E=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(T*T+A*A)-E,1-3/E)}if(Vge.getClosest(n,c,r),r.index!==!1){var h=n[r.index],d=h.lonlat,m=[o.c2p(d),l.c2p(d)],p=h.mrc||1;r.x0=m[0]-p,r.x1=m[0]+p,r.y0=m[1]-p,r.y1=m[1]+p,r.loc=h.loc,r.lon=d[0],r.lat=d[1];var y={};y[i.geo]={_subplot:s};var b=i._module.formatLabels(h,i,y);return r.lonLabel=b.lonLabel,r.latLabel=b.latLabel,r.color=jge(i,h),r.extraText=$ge(i,h,r,n[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function $ge(e,r,t,a){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,i=n==="all"?Zge.hoverinfo.flags:n.split("+"),o=i.indexOf("location")!==-1&&Array.isArray(e.locations),l=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=i.indexOf("text")!==-1,f=[];function c(h){return h+"\xB0"}return o?f.push(r.loc):l&&s?f.push("("+c(t.latLabel)+", "+c(t.lonLabel)+")"):l?f.push(a.lon+c(t.lonLabel)):s&&f.push(a.lat+c(t.latLabel)),u&&Wge(r,e,f),f.join("<br>")}});var UU=le((G8e,OU)=>{"use strict";OU.exports=function(r,t,a,n,i){r.lon=t.lon,r.lat=t.lat,r.location=t.loc?t.loc:null;var o=n[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r}});var VU=le((Y8e,YU)=>{"use strict";var GU=_i(),Jge=(Ya(),Tr($a)).BADNUM;YU.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,h,d=!GU.hasMarkers(l)&&!GU.hasText(l);if(d)return[];if(t===!1)for(h=0;h<a.length;h++)a[h].selected=0;else for(h=0;h<a.length;h++)s=a[h],u=s.lonlat,u[0]!==Jge&&(f=n.c2p(u),c=i.c2p(u),t.contains([f,c],null,h,r)?(o.push({pointNumber:h,lon:u[0],lat:u[1]}),s.selected=1):s.selected=0);return o}});var jU=le((iy,XU)=>{(function(e,r){r(typeof iy=="object"&&typeof XU!="undefined"?iy:e.d3=e.d3||{})})(iy,(function(e){"use strict";function r(W,ee){return W<ee?-1:W>ee?1:W>=ee?0:NaN}function t(W){return W.length===1&&(W=a(W)),{left:function(ee,me,K,J){for(K==null&&(K=0),J==null&&(J=ee.length);K<J;){var ue=K+J>>>1;W(ee[ue],me)<0?K=ue+1:J=ue}return K},right:function(ee,me,K,J){for(K==null&&(K=0),J==null&&(J=ee.length);K<J;){var ue=K+J>>>1;W(ee[ue],me)>0?J=ue:K=ue+1}return K}}}function a(W){return function(ee,me){return r(W(ee),me)}}var n=t(r),i=n.right,o=n.left;function l(W,ee){ee==null&&(ee=s);for(var me=0,K=W.length-1,J=W[0],ue=new Array(K<0?0:K);me<K;)ue[me]=ee(J,J=W[++me]);return ue}function s(W,ee){return[W,ee]}function u(W,ee,me){var K=W.length,J=ee.length,ue=new Array(K*J),_e,Ne,Je,ar;for(me==null&&(me=s),_e=Je=0;_e<K;++_e)for(ar=W[_e],Ne=0;Ne<J;++Ne,++Je)ue[Je]=me(ar,ee[Ne]);return ue}function f(W,ee){return ee<W?-1:ee>W?1:ee>=W?0:NaN}function c(W){return W===null?NaN:+W}function h(W,ee){var me=W.length,K=0,J=-1,ue=0,_e,Ne,Je=0;if(ee==null)for(;++J<me;)isNaN(_e=c(W[J]))||(Ne=_e-ue,ue+=Ne/++K,Je+=Ne*(_e-ue));else for(;++J<me;)isNaN(_e=c(ee(W[J],J,W)))||(Ne=_e-ue,ue+=Ne/++K,Je+=Ne*(_e-ue));if(K>1)return Je/(K-1)}function d(W,ee){var me=h(W,ee);return me&&Math.sqrt(me)}function m(W,ee){var me=W.length,K=-1,J,ue,_e;if(ee==null){for(;++K<me;)if((J=W[K])!=null&&J>=J)for(ue=_e=J;++K<me;)(J=W[K])!=null&&(ue>J&&(ue=J),_e<J&&(_e=J))}else for(;++K<me;)if((J=ee(W[K],K,W))!=null&&J>=J)for(ue=_e=J;++K<me;)(J=ee(W[K],K,W))!=null&&(ue>J&&(ue=J),_e<J&&(_e=J));return[ue,_e]}var p=Array.prototype,y=p.slice,b=p.map;function C(W){return function(){return W}}function x(W){return W}function _(W,ee,me){W=+W,ee=+ee,me=(J=arguments.length)<2?(ee=W,W=0,1):J<3?1:+me;for(var K=-1,J=Math.max(0,Math.ceil((ee-W)/me))|0,ue=new Array(J);++K<J;)ue[K]=W+K*me;return ue}var M=Math.sqrt(50),T=Math.sqrt(10),A=Math.sqrt(2);function E(W,ee,me){var K,J=-1,ue,_e,Ne;if(ee=+ee,W=+W,me=+me,W===ee&&me>0)return[W];if((K=ee<W)&&(ue=W,W=ee,ee=ue),(Ne=P(W,ee,me))===0||!isFinite(Ne))return[];if(Ne>0)for(W=Math.ceil(W/Ne),ee=Math.floor(ee/Ne),_e=new Array(ue=Math.ceil(ee-W+1));++J<ue;)_e[J]=(W+J)*Ne;else for(W=Math.floor(W*Ne),ee=Math.ceil(ee*Ne),_e=new Array(ue=Math.ceil(W-ee+1));++J<ue;)_e[J]=(W-J)/Ne;return K&&_e.reverse(),_e}function P(W,ee,me){var K=(ee-W)/Math.max(0,me),J=Math.floor(Math.log(K)/Math.LN10),ue=K/Math.pow(10,J);return J>=0?(ue>=M?10:ue>=T?5:ue>=A?2:1)*Math.pow(10,J):-Math.pow(10,-J)/(ue>=M?10:ue>=T?5:ue>=A?2:1)}function z(W,ee,me){var K=Math.abs(ee-W)/Math.max(0,me),J=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),ue=K/J;return ue>=M?J*=10:ue>=T?J*=5:ue>=A&&(J*=2),ee<W?-J:J}function B(W){return Math.ceil(Math.log(W.length)/Math.LN2)+1}function X(){var W=x,ee=m,me=B;function K(J){var ue,_e=J.length,Ne,Je=new Array(_e);for(ue=0;ue<_e;++ue)Je[ue]=W(J[ue],ue,J);var ar=ee(Je),tr=ar[0],fr=ar[1],Re=me(Je,tr,fr);Array.isArray(Re)||(Re=z(tr,fr,Re),Re=_(Math.ceil(tr/Re)*Re,fr,Re));for(var sr=Re.length;Re[0]<=tr;)Re.shift(),--sr;for(;Re[sr-1]>fr;)Re.pop(),--sr;var hr=new Array(sr+1),dr;for(ue=0;ue<=sr;++ue)dr=hr[ue]=[],dr.x0=ue>0?Re[ue-1]:tr,dr.x1=ue<sr?Re[ue]:fr;for(ue=0;ue<_e;++ue)Ne=Je[ue],tr<=Ne&&Ne<=fr&&hr[i(Re,Ne,0,sr)].push(J[ue]);return hr}return K.value=function(J){return arguments.length?(W=typeof J=="function"?J:C(J),K):W},K.domain=function(J){return arguments.length?(ee=typeof J=="function"?J:C([J[0],J[1]]),K):ee},K.thresholds=function(J){return arguments.length?(me=typeof J=="function"?J:Array.isArray(J)?C(y.call(J)):C(J),K):me},K}function I(W,ee,me){if(me==null&&(me=c),!!(K=W.length)){if((ee=+ee)<=0||K<2)return+me(W[0],0,W);if(ee>=1)return+me(W[K-1],K-1,W);var K,J=(K-1)*ee,ue=Math.floor(J),_e=+me(W[ue],ue,W),Ne=+me(W[ue+1],ue+1,W);return _e+(Ne-_e)*(J-ue)}}function V(W,ee,me){return W=b.call(W,c).sort(r),Math.ceil((me-ee)/(2*(I(W,.75)-I(W,.25))*Math.pow(W.length,-1/3)))}function H(W,ee,me){return Math.ceil((me-ee)/(3.5*d(W)*Math.pow(W.length,-1/3)))}function Q(W,ee){var me=W.length,K=-1,J,ue;if(ee==null){for(;++K<me;)if((J=W[K])!=null&&J>=J)for(ue=J;++K<me;)(J=W[K])!=null&&J>ue&&(ue=J)}else for(;++K<me;)if((J=ee(W[K],K,W))!=null&&J>=J)for(ue=J;++K<me;)(J=ee(W[K],K,W))!=null&&J>ue&&(ue=J);return ue}function oe(W,ee){var me=W.length,K=me,J=-1,ue,_e=0;if(ee==null)for(;++J<me;)isNaN(ue=c(W[J]))?--K:_e+=ue;else for(;++J<me;)isNaN(ue=c(ee(W[J],J,W)))?--K:_e+=ue;if(K)return _e/K}function re(W,ee){var me=W.length,K=-1,J,ue=[];if(ee==null)for(;++K<me;)isNaN(J=c(W[K]))||ue.push(J);else for(;++K<me;)isNaN(J=c(ee(W[K],K,W)))||ue.push(J);return I(ue.sort(r),.5)}function te(W){for(var ee=W.length,me,K=-1,J=0,ue,_e;++K<ee;)J+=W[K].length;for(ue=new Array(J);--ee>=0;)for(_e=W[ee],me=_e.length;--me>=0;)ue[--J]=_e[me];return ue}function ie(W,ee){var me=W.length,K=-1,J,ue;if(ee==null){for(;++K<me;)if((J=W[K])!=null&&J>=J)for(ue=J;++K<me;)(J=W[K])!=null&&ue>J&&(ue=J)}else for(;++K<me;)if((J=ee(W[K],K,W))!=null&&J>=J)for(ue=J;++K<me;)(J=ee(W[K],K,W))!=null&&ue>J&&(ue=J);return ue}function ce(W,ee){for(var me=ee.length,K=new Array(me);me--;)K[me]=W[ee[me]];return K}function Me(W,ee){if(me=W.length){var me,K=0,J=0,ue,_e=W[J];for(ee==null&&(ee=r);++K<me;)(ee(ue=W[K],_e)<0||ee(_e,_e)!==0)&&(_e=ue,J=K);if(ee(_e,_e)===0)return J}}function De(W,ee,me){for(var K=(me==null?W.length:me)-(ee=ee==null?0:+ee),J,ue;K;)ue=Math.random()*K--|0,J=W[K+ee],W[K+ee]=W[ue+ee],W[ue+ee]=J;return W}function Ie(W,ee){var me=W.length,K=-1,J,ue=0;if(ee==null)for(;++K<me;)(J=+W[K])&&(ue+=J);else for(;++K<me;)(J=+ee(W[K],K,W))&&(ue+=J);return ue}function Ue(W){if(!(ue=W.length))return[];for(var ee=-1,me=ie(W,ke),K=new Array(me);++ee<me;)for(var J=-1,ue,_e=K[ee]=new Array(ue);++J<ue;)_e[J]=W[J][ee];return K}function ke(W){return W.length}function je(){return Ue(arguments)}e.bisect=i,e.bisectRight=i,e.bisectLeft=o,e.ascending=r,e.bisector=t,e.cross=u,e.descending=f,e.deviation=d,e.extent=m,e.histogram=X,e.thresholdFreedmanDiaconis=V,e.thresholdScott=H,e.thresholdSturges=B,e.max=Q,e.mean=oe,e.median=re,e.merge=te,e.min=ie,e.pairs=l,e.permute=ce,e.quantile=I,e.range=_,e.scan=Me,e.shuffle=De,e.sum=Ie,e.ticks=E,e.tickIncrement=P,e.tickStep=z,e.transpose=Ue,e.variance=h,e.zip=je,Object.defineProperty(e,"__esModule",{value:!0})}))});var ZU=le((oy,WU)=>{(function(e,r){typeof oy=="object"&&typeof WU!="undefined"?r(oy,Q3(),jU()):r(e.d3=e.d3||{},e.d3,e.d3)})(oy,(function(e,r,t){"use strict";var a=Math.abs,n=Math.atan,i=Math.atan2,o=Math.cos,l=Math.exp,s=Math.floor,u=Math.log,f=Math.max,c=Math.min,h=Math.pow,d=Math.round,m=Math.sign||function(k){return k>0?1:k<0?-1:0},p=Math.sin,y=Math.tan,b=1e-6,C=1e-12,x=Math.PI,_=x/2,M=x/4,T=Math.SQRT1_2,A=H(2),E=H(x),P=x*2,z=180/x,B=x/180;function X(k){return k?k/Math.sin(k):1}function I(k){return k>1?_:k<-1?-_:Math.asin(k)}function V(k){return k>1?0:k<-1?x:Math.acos(k)}function H(k){return k>0?Math.sqrt(k):0}function Q(k){return k=l(2*k),(k-1)/(k+1)}function oe(k){return(l(k)-l(-k))/2}function re(k){return(l(k)+l(-k))/2}function te(k){return u(k+H(k*k+1))}function ie(k){return u(k+H(k*k-1))}function ce(k){var D=y(k/2),q=2*u(o(k/2))/(D*D);function R(G,U){var j=o(G),ve=o(U),de=p(U),fe=ve*j,pe=-((1-fe?u((1+fe)/2)/(1-fe):-.5)+q/(1+fe));return[pe*ve*p(G),pe*de]}return R.invert=function(G,U){var j=H(G*G+U*U),ve=-k/2,de=50,fe;if(!j)return[0,0];do{var pe=ve/2,xe=o(pe),Se=p(pe),ze=Se/xe,Ke=-u(a(xe));ve-=fe=(2/ze*Ke-q*ze-j)/(-Ke/(Se*Se)+1-q/(2*xe*xe))*(xe<0?.7:1)}while(a(fe)>b&&--de>0);var or=p(ve);return[i(G*or,j*o(ve)),I(U*or/j)]},R}function Me(){var k=_,D=r.geoProjectionMutator(ce),q=D(k);return q.radius=function(R){return arguments.length?D(k=R*B):k*z},q.scale(179.976).clipAngle(147)}function De(k,D){var q=o(D),R=X(V(q*o(k/=2)));return[2*q*p(k)*R,p(D)*R]}De.invert=function(k,D){if(!(k*k+4*D*D>x*x+b)){var q=k,R=D,G=25;do{var U=p(q),j=p(q/2),ve=o(q/2),de=p(R),fe=o(R),pe=p(2*R),xe=de*de,Se=fe*fe,ze=j*j,Ke=1-Se*ve*ve,or=Ke?V(fe*ve)*H(kr=1/Ke):kr=0,kr,Kr=2*or*fe*j-k,ct=or*de-D,ht=kr*(Se*ze+or*fe*ve*xe),pt=kr*(.5*U*pe-or*2*de*j),yt=kr*.25*(pe*j-or*de*Se*U),fa=kr*(xe*ve+or*ze*fe),Fa=pt*yt-fa*ht;if(!Fa)break;var Ot=(ct*pt-Kr*fa)/Fa,Wa=(Kr*yt-ct*ht)/Fa;q-=Ot,R-=Wa}while((a(Ot)>b||a(Wa)>b)&&--G>0);return[q,R]}};function Ie(){return r.geoProjection(De).scale(152.63)}function Ue(k){var D=p(k),q=o(k),R=k>=0?1:-1,G=y(R*k),U=(1+D-q)/2;function j(ve,de){var fe=o(de),pe=o(ve/=2);return[(1+fe)*p(ve),(R*de>-i(pe,G)-.001?0:-R*10)+U+p(de)*q-(1+fe)*D*pe]}return j.invert=function(ve,de){var fe=0,pe=0,xe=50;do{var Se=o(fe),ze=p(fe),Ke=o(pe),or=p(pe),kr=1+Ke,Kr=kr*ze-ve,ct=U+or*q-kr*D*Se-de,ht=kr*Se/2,pt=-ze*or,yt=D*kr*ze/2,fa=q*Ke+D*Se*or,Fa=pt*yt-fa*ht,Ot=(ct*pt-Kr*fa)/Fa/2,Wa=(Kr*yt-ct*ht)/Fa;a(Wa)>2&&(Wa/=2),fe-=Ot,pe-=Wa}while((a(Ot)>b||a(Wa)>b)&&--xe>0);return R*pe>-i(o(fe),G)-.001?[fe*2,pe]:null},j}function ke(){var k=20*B,D=k>=0?1:-1,q=y(D*k),R=r.geoProjectionMutator(Ue),G=R(k),U=G.stream;return G.parallel=function(j){return arguments.length?(q=y((D=(k=j*B)>=0?1:-1)*k),R(k)):k*z},G.stream=function(j){var ve=G.rotate(),de=U(j),fe=(G.rotate([0,0]),U(j)),pe=G.precision();return G.rotate(ve),de.sphere=function(){fe.polygonStart(),fe.lineStart();for(var xe=D*-180;D*xe<180;xe+=D*90)fe.point(xe,D*90);if(k)for(;D*(xe-=3*D*pe)>=-180;)fe.point(xe,D*-i(o(xe*B/2),q)*z);fe.lineEnd(),fe.polygonEnd()},de},G.scale(218.695).center([0,28.0974])}function je(k,D){var q=y(D/2),R=H(1-q*q),G=1+R*o(k/=2),U=p(k)*R/G,j=q/G,ve=U*U,de=j*j;return[4/3*U*(3+ve-3*de),4/3*j*(3+3*ve-de)]}je.invert=function(k,D){if(k*=3/8,D*=3/8,!k&&a(D)>1)return null;var q=k*k,R=D*D,G=1+q+R,U=H((G-H(G*G-4*D*D))/2),j=I(U)/3,ve=U?ie(a(D/U))/3:te(a(k))/3,de=o(j),fe=re(ve),pe=fe*fe-de*de;return[m(k)*2*i(oe(ve)*de,.25-pe),m(D)*2*i(fe*p(j),.25+pe)]};function W(){return r.geoProjection(je).scale(66.1603)}var ee=H(8),me=u(1+A);function K(k,D){var q=a(D);return q<M?[k,u(y(M+D/2))]:[k*o(q)*(2*A-1/p(q)),m(D)*(2*A*(q-M)-u(y(q/2)))]}K.invert=function(k,D){if((U=a(D))<me)return[k,2*n(l(D))-_];var q=M,R=25,G,U;do{var j=o(q/2),ve=y(q/2);q-=G=(ee*(q-M)-u(ve)-U)/(ee-j*j/(2*ve))}while(a(G)>C&&--R>0);return[k/(o(q)*(ee-1/p(q))),m(D)*q]};function J(){return r.geoProjection(K).scale(112.314)}function ue(k){var D=2*x/k;function q(R,G){var U=r.geoAzimuthalEquidistantRaw(R,G);if(a(R)>_){var j=i(U[1],U[0]),ve=H(U[0]*U[0]+U[1]*U[1]),de=D*d((j-_)/D)+_,fe=i(p(j-=de),2-o(j));j=de+I(x/ve*p(fe))-fe,U[0]=ve*o(j),U[1]=ve*p(j)}return U}return q.invert=function(R,G){var U=H(R*R+G*G);if(U>_){var j=i(G,R),ve=D*d((j-_)/D)+_,de=j>ve?-1:1,fe=U*o(ve-j),pe=1/y(de*V((fe-x)/H(x*(x-2*fe)+U*U)));j=ve+2*n((pe+de*H(pe*pe-3))/3),R=U*o(j),G=U*p(j)}return r.geoAzimuthalEquidistantRaw.invert(R,G)},q}function _e(){var k=5,D=r.geoProjectionMutator(ue),q=D(k),R=q.stream,G=.01,U=-o(G*B),j=p(G*B);return q.lobes=function(ve){return arguments.length?D(k=+ve):k},q.stream=function(ve){var de=q.rotate(),fe=R(ve),pe=(q.rotate([0,0]),R(ve));return q.rotate(de),fe.sphere=function(){pe.polygonStart(),pe.lineStart();for(var xe=0,Se=360/k,ze=2*x/k,Ke=90-180/k,or=_;xe<k;++xe,Ke-=Se,or-=ze)pe.point(i(j*o(or),U)*z,I(j*p(or))*z),Ke<-90?(pe.point(-90,-180-Ke-G),pe.point(-90,-180-Ke+G)):(pe.point(90,Ke+G),pe.point(90,Ke-G));pe.lineEnd(),pe.polygonEnd()},fe},q.scale(87.8076).center([0,17.1875]).clipAngle(180-.001)}function Ne(k,D){if(arguments.length<2&&(D=k),D===1)return r.geoAzimuthalEqualAreaRaw;if(D===1/0)return Je;function q(R,G){var U=r.geoAzimuthalEqualAreaRaw(R/D,G);return U[0]*=k,U}return q.invert=function(R,G){var U=r.geoAzimuthalEqualAreaRaw.invert(R/k,G);return U[0]*=D,U},q}function Je(k,D){return[k*o(D)/o(D/=2),2*p(D)]}Je.invert=function(k,D){var q=2*I(D/2);return[k*o(q/2)/o(q),q]};function ar(){var k=2,D=r.geoProjectionMutator(Ne),q=D(k);return q.coefficient=function(R){return arguments.length?D(k=+R):k},q.scale(169.529)}function tr(k,D,q){var R=100,G,U,j;q=q===void 0?0:+q,D=+D;do U=k(q),j=k(q+b),U===j&&(j=U+b),q-=G=-1*b*(U-D)/(U-j);while(R-- >0&&a(G)>b);return R<0?NaN:q}function fr(k,D,q){return D===void 0&&(D=40),q===void 0&&(q=C),function(R,G,U,j){var ve,de,fe;U=U===void 0?0:+U,j=j===void 0?0:+j;for(var pe=0;pe<D;pe++){var xe=k(U,j),Se=xe[0]-R,ze=xe[1]-G;if(a(Se)<q&&a(ze)<q)break;var Ke=Se*Se+ze*ze;if(Ke>ve){U-=de/=2,j-=fe/=2;continue}ve=Ke;var or=(U>0?-1:1)*q,kr=(j>0?-1:1)*q,Kr=k(U+or,j),ct=k(U,j+kr),ht=(Kr[0]-xe[0])/or,pt=(Kr[1]-xe[1])/or,yt=(ct[0]-xe[0])/kr,fa=(ct[1]-xe[1])/kr,Fa=fa*ht-pt*yt,Ot=(a(Fa)<.5?.5:1)/Fa;if(de=(ze*yt-Se*fa)*Ot,fe=(Se*pt-ze*ht)*Ot,U+=de,j+=fe,a(de)<q&&a(fe)<q)break}return[U,j]}}function Re(){var k=Ne(1.68,2),D=1.4,q=12;function R(G,U){if(G+U<-D){var j=(G-U+1.6)*(G+U+D)/8;G+=j,U-=.8*j*p(U+x/2)}var ve=k(G,U),de=(1-o(G*U))/q;return ve[1]<0&&(ve[0]*=1+de),ve[1]>0&&(ve[1]*=1+de/1.5*ve[0]*ve[0]),ve}return R.invert=fr(R),R}function sr(){return r.geoProjection(Re()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function hr(k,D){var q=k*p(D),R=30,G;do D-=G=(D+p(D)-q)/(1+o(D));while(a(G)>b&&--R>0);return D/2}function dr(k,D,q){function R(G,U){return[k*G*o(U=hr(q,U)),D*p(U)]}return R.invert=function(G,U){return U=I(U/D),[G/(k*o(U)),I((2*U+p(2*U))/q)]},R}var Ze=dr(A/_,A,x);function cr(){return r.geoProjection(Ze).scale(169.529)}var Lr=2.00276,Te=1.11072;function Oe(k,D){var q=hr(x,D);return[Lr*k/(1/o(D)+Te/o(q)),(D+A*p(q))/Lr]}Oe.invert=function(k,D){var q=Lr*D,R=D<0?-M:M,G=25,U,j;do j=q-A*p(R),R-=U=(p(2*R)+2*R-x*p(j))/(2*o(2*R)+2+x*o(j)*A*o(R));while(a(U)>b&&--G>0);return j=q-A*p(R),[k*(1/o(j)+Te/o(R))/Lr,j]};function Ar(){return r.geoProjection(Oe).scale(160.857)}function Br(k){var D=0,q=r.geoProjectionMutator(k),R=q(D);return R.parallel=function(G){return arguments.length?q(D=G*B):D*z},R}function Qe(k,D){return[k*o(D),D]}Qe.invert=function(k,D){return[k/o(D),D]};function Be(){return r.geoProjection(Qe).scale(152.63)}function Xe(k){if(!k)return Qe;var D=1/y(k);function q(R,G){var U=D+k-G,j=U&&R*o(G)/U;return[U*p(j),D-U*o(j)]}return q.invert=function(R,G){var U=H(R*R+(G=D-G)*G),j=D+k-U;return[U/o(j)*i(R,G),j]},q}function yr(){return Br(Xe).scale(123.082).center([0,26.1441]).parallel(45)}function Cr(k){function D(q,R){var G=_-R,U=G&&q*k*p(G)/G;return[G*p(U)/k,_-G*o(U)]}return D.invert=function(q,R){var G=q*k,U=_-R,j=H(G*G+U*U),ve=i(G,U);return[(j?j/p(j):1)*ve/k,_-j]},D}function pr(){var k=.5,D=r.geoProjectionMutator(Cr),q=D(k);return q.fraction=function(R){return arguments.length?D(k=+R):k},q.scale(158.837)}var xr=dr(1,4/x,x);function Rr(){return r.geoProjection(xr).scale(152.63)}function Er(k,D,q,R,G,U){var j=o(U),ve;if(a(k)>1||a(U)>1)ve=V(q*G+D*R*j);else{var de=p(k/2),fe=p(U/2);ve=2*I(H(de*de+D*R*fe*fe))}return a(ve)>b?[ve,i(R*p(U),D*G-q*R*j)]:[0,0]}function Or(k,D,q){return V((k*k+D*D-q*q)/(2*k*D))}function rr(k){return k-2*x*s((k+x)/(2*x))}function Sr(k,D,q){for(var R=[[k[0],k[1],p(k[1]),o(k[1])],[D[0],D[1],p(D[1]),o(D[1])],[q[0],q[1],p(q[1]),o(q[1])]],G=R[2],U,j=0;j<3;++j,G=U)U=R[j],G.v=Er(U[1]-G[1],G[3],G[2],U[3],U[2],U[0]-G[0]),G.point=[0,0];var ve=Or(R[0].v[0],R[2].v[0],R[1].v[0]),de=Or(R[0].v[0],R[1].v[0],R[2].v[0]),fe=x-ve;R[2].point[1]=0,R[0].point[0]=-(R[1].point[0]=R[0].v[0]/2);var pe=[R[2].point[0]=R[0].point[0]+R[2].v[0]*o(ve),2*(R[0].point[1]=R[1].point[1]=R[2].v[0]*p(ve))];function xe(Se,ze){var Ke=p(ze),or=o(ze),kr=new Array(3),Kr;for(Kr=0;Kr<3;++Kr){var ct=R[Kr];if(kr[Kr]=Er(ze-ct[1],ct[3],ct[2],or,Ke,Se-ct[0]),!kr[Kr][0])return ct.point;kr[Kr][1]=rr(kr[Kr][1]-ct.v[1])}var ht=pe.slice();for(Kr=0;Kr<3;++Kr){var pt=Kr==2?0:Kr+1,yt=Or(R[Kr].v[0],kr[Kr][0],kr[pt][0]);kr[Kr][1]<0&&(yt=-yt),Kr?Kr==1?(yt=de-yt,ht[0]-=kr[Kr][0]*o(yt),ht[1]-=kr[Kr][0]*p(yt)):(yt=fe-yt,ht[0]+=kr[Kr][0]*o(yt),ht[1]+=kr[Kr][0]*p(yt)):(ht[0]+=kr[Kr][0]*o(yt),ht[1]-=kr[Kr][0]*p(yt))}return ht[0]/=3,ht[1]/=3,ht}return xe}function vr(k){return k[0]*=B,k[1]*=B,k}function jr(){return Qr([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Qr(k,D,q){var R=r.geoCentroid({type:"MultiPoint",coordinates:[k,D,q]}),G=[-R[0],-R[1]],U=r.geoRotation(G),j=Sr(vr(U(k)),vr(U(D)),vr(U(q)));j.invert=fr(j);var ve=r.geoProjection(j).rotate(G),de=ve.center;return delete ve.rotate,ve.center=function(fe){return arguments.length?de(U(fe)):U.invert(de())},ve.clipAngle(90)}function qr(k,D){var q=H(1-p(D));return[2/E*k*q,E*(1-q)]}qr.invert=function(k,D){var q=(q=D/E-1)*q;return[q>0?k*H(x/q)/2:0,I(1-q)]};function Wr(){return r.geoProjection(qr).scale(95.6464).center([0,30])}function Ae(k){var D=y(k);function q(R,G){return[R,(R?R/p(R):1)*(p(G)*o(R)-D*o(G))]}return q.invert=D?function(R,G){R&&(G*=p(R)/R);var U=o(R);return[R,2*i(H(U*U+D*D-G*G)-U,D-G)]}:function(R,G){return[R,I(R?G*y(R)/R:G)]},q}function Pe(){return Br(Ae).scale(249.828).clipAngle(90)}var ur=H(3);function gr(k,D){return[ur*k*(2*o(2*D/3)-1)/E,ur*E*p(D/3)]}gr.invert=function(k,D){var q=3*I(D/(ur*E));return[E*k/(ur*(2*o(2*q/3)-1)),q]};function It(){return r.geoProjection(gr).scale(156.19)}function Yt(k){var D=o(k);function q(R,G){return[R*D,p(G)/D]}return q.invert=function(R,G){return[R/D,I(G*D)]},q}function ia(){return Br(Yt).parallel(38.58).scale(195.044)}function Ta(k){var D=o(k);function q(R,G){return[R*D,(1+D)*y(G/2)]}return q.invert=function(R,G){return[R/D,n(G/(1+D))*2]},q}function Ht(){return Br(Ta).scale(124.75)}function Zt(k,D){var q=H(8/(3*x));return[q*k*(1-a(D)/x),q*D]}Zt.invert=function(k,D){var q=H(8/(3*x)),R=D/q;return[k/(q*(1-a(R)/x)),R]};function ma(){return r.geoProjection(Zt).scale(165.664)}function ra(k,D){var q=H(4-3*p(a(D)));return[2/H(6*x)*k*q,m(D)*H(2*x/3)*(2-q)]}ra.invert=function(k,D){var q=2-a(D)/H(2*x/3);return[k*H(6*x)/(2*q),m(D)*I((4-q*q)/3)]};function xn(){return r.geoProjection(ra).scale(165.664)}function on(k,D){var q=H(x*(4+x));return[2/q*k*(1+H(1-4*D*D/(x*x))),4/q*D]}on.invert=function(k,D){var q=H(x*(4+x))/2;return[k*q/(1+H(1-D*D*(4+x)/(4*x))),D*q/2]};function Wn(){return r.geoProjection(on).scale(180.739)}function Jr(k,D){var q=(2+_)*p(D);D/=2;for(var R=0,G=1/0;R<10&&a(G)>b;R++){var U=o(D);D-=G=(D+p(D)*(U+2)-q)/(2*U*(1+U))}return[2/H(x*(4+x))*k*(1+o(D)),2*H(x/(4+x))*p(D)]}Jr.invert=function(k,D){var q=D*H((4+x)/x)/2,R=I(q),G=o(R);return[k/(2/H(x*(4+x))*(1+G)),I((R+q*(G+2))/(2+_))]};function ua(){return r.geoProjection(Jr).scale(180.739)}function zt(k,D){return[k*(1+o(D))/H(2+x),2*D/H(2+x)]}zt.invert=function(k,D){var q=H(2+x),R=D*q/2;return[q*k/(1+o(R)),R]};function ga(){return r.geoProjection(zt).scale(173.044)}function ba(k,D){for(var q=(1+_)*p(D),R=0,G=1/0;R<10&&a(G)>b;R++)D-=G=(D+p(D)-q)/(1+o(D));return q=H(2+x),[k*(1+o(D))/q,2*D/q]}ba.invert=function(k,D){var q=1+_,R=H(q/2);return[k*2*R/(1+o(D*=R)),I((D+p(D))/q)]};function _a(){return r.geoProjection(ba).scale(173.044)}var Vt=3+2*A;function Na(k,D){var q=p(k/=2),R=o(k),G=H(o(D)),U=o(D/=2),j=p(D)/(U+A*R*G),ve=H(2/(1+j*j)),de=H((A*U+(R+q)*G)/(A*U+(R-q)*G));return[Vt*(ve*(de-1/de)-2*u(de)),Vt*(ve*j*(de+1/de)-2*n(j))]}Na.invert=function(k,D){if(!(U=je.invert(k/1.2,D*1.065)))return null;var q=U[0],R=U[1],G=20,U;k/=Vt,D/=Vt;do{var j=q/2,ve=R/2,de=p(j),fe=o(j),pe=p(ve),xe=o(ve),Se=o(R),ze=H(Se),Ke=pe/(xe+A*fe*ze),or=Ke*Ke,kr=H(2/(1+or)),Kr=A*xe+(fe+de)*ze,ct=A*xe+(fe-de)*ze,ht=Kr/ct,pt=H(ht),yt=pt-1/pt,fa=pt+1/pt,Fa=kr*yt-2*u(pt)-k,Ot=kr*Ke*fa-2*n(Ke)-D,Wa=pe&&T*ze*de*or/pe,qn=(A*fe*xe+ze)/(2*(xe+A*fe*ze)*(xe+A*fe*ze)*ze),Li=-.5*Ke*kr*kr*kr,Dl=Li*Wa,Au=Li*qn,Zn=(Zn=2*xe+A*ze*(fe-de))*Zn*pt,$n=(A*fe*xe*ze+Se)/Zn,po=-(A*de*pe)/(ze*Zn),Fl=yt*Dl-2*$n/pt+kr*($n+$n/ht),El=yt*Au-2*po/pt+kr*(po+po/ht),Ll=Ke*fa*Dl-2*Wa/(1+or)+kr*fa*Wa+kr*Ke*($n-$n/ht),ws=Ke*fa*Au-2*qn/(1+or)+kr*fa*qn+kr*Ke*(po-po/ht),Ho=El*Ll-ws*Fl;if(!Ho)break;var Mu=(Ot*El-Fa*ws)/Ho,Df=(Fa*Ll-Ot*Fl)/Ho;q-=Mu,R=f(-_,c(_,R-Df))}while((a(Mu)>b||a(Df)>b)&&--G>0);return a(a(R)-_)<b?[0,R]:G&&[q,R]};function wn(){return r.geoProjection(Na).scale(62.5271)}var ya=o(35*B);function na(k,D){var q=y(D/2);return[k*ya*H(1-q*q),(1+ya)*q]}na.invert=function(k,D){var q=D/(1+ya);return[k&&k/(ya*H(1-q*q)),2*n(q)]};function Ea(){return r.geoProjection(na).scale(137.152)}function Da(k,D){var q=D/2,R=o(q);return[2*k/E*o(D)*R*R,E*y(q)]}Da.invert=function(k,D){var q=n(D/E),R=o(q),G=2*q;return[k*E/2/(o(G)*R*R),G]};function Eo(){return r.geoProjection(Da).scale(135.264)}function Bi(k){var D=1-k,q=U(x,0)[0]-U(-x,0)[0],R=U(0,_)[1]-U(0,-_)[1],G=H(2*R/q);function U(de,fe){var pe=o(fe),xe=p(fe);return[pe/(D+k*pe)*de,D*fe+k*xe]}function j(de,fe){var pe=U(de,fe);return[pe[0]*G,pe[1]/G]}function ve(de){return j(0,de)[1]}return j.invert=function(de,fe){var pe=tr(ve,fe),xe=de/G*(k+D/o(pe));return[xe,pe]},j}function $s(){var k=.5,D=r.geoProjectionMutator(Bi),q=D(k);return q.alpha=function(R){return arguments.length?D(k=+R):k},q.scale(168.725)}function as(k){return[k[0]/2,I(y(k[1]/2*B))*z]}function vl(k){return[k[0]*2,2*n(p(k[1]*B))*z]}function Js(k){k==null&&(k=r.geoOrthographic);var D=k(),q=r.geoEquirectangular().scale(z).precision(0).clipAngle(null).translate([0,0]);function R(U){return D(as(U))}D.invert&&(R.invert=function(U){return vl(D.invert(U))}),R.stream=function(U){var j=D.stream(U),ve=q.stream({point:function(de,fe){j.point(de/2,I(y(-fe/2*B))*z)},lineStart:function(){j.lineStart()},lineEnd:function(){j.lineEnd()},polygonStart:function(){j.polygonStart()},polygonEnd:function(){j.polygonEnd()}});return ve.sphere=j.sphere,ve};function G(U){R[U]=function(){return arguments.length?(D[U].apply(D,arguments),R):D[U]()}}return R.rotate=function(U){return arguments.length?(q.rotate(U),R):q.rotate()},R.center=function(U){return arguments.length?(D.center(as(U)),R):vl(D.center())},G("angle"),G("clipAngle"),G("clipExtent"),G("fitExtent"),G("fitHeight"),G("fitSize"),G("fitWidth"),G("scale"),G("translate"),G("precision"),R.scale(249.5)}function hl(k,D){var q=2*x/D,R=k*k;function G(U,j){var ve=r.geoAzimuthalEquidistantRaw(U,j),de=ve[0],fe=ve[1],pe=de*de+fe*fe;if(pe>R){var xe=H(pe),Se=i(fe,de),ze=q*d(Se/q),Ke=Se-ze,or=k*o(Ke),kr=(k*p(Ke)-Ke*p(or))/(_-or),Kr=rn(Ke,kr),ct=(x-k)/Ii(Kr,or,x);de=xe;var ht=50,pt;do de-=pt=(k+Ii(Kr,or,de)*ct-xe)/(Kr(de)*ct);while(a(pt)>b&&--ht>0);fe=Ke*p(de),de<_&&(fe-=kr*(de-_));var yt=p(ze),fa=o(ze);ve[0]=de*fa-fe*yt,ve[1]=de*yt+fe*fa}return ve}return G.invert=function(U,j){var ve=U*U+j*j;if(ve>R){var de=H(ve),fe=i(j,U),pe=q*d(fe/q),xe=fe-pe;U=de*o(xe),j=de*p(xe);for(var Se=U-_,ze=p(U),Ke=j/ze,or=U<_?1/0:0,kr=10;;){var Kr=k*p(Ke),ct=k*o(Ke),ht=p(ct),pt=_-ct,yt=(Kr-Ke*ht)/pt,fa=rn(Ke,yt);if(a(or)<C||!--kr)break;Ke-=or=(Ke*ze-yt*Se-j)/(ze-Se*2*(pt*(ct+Ke*Kr*o(ct)-ht)-Kr*(Kr-Ke*ht))/(pt*pt))}de=k+Ii(fa,ct,U)*(x-k)/Ii(fa,ct,x),fe=pe+Ke,U=de*o(fe),j=de*p(fe)}return r.geoAzimuthalEquidistantRaw.invert(U,j)},G}function rn(k,D){return function(q){var R=k*o(q);return q<_&&(R-=D),H(1+R*R)}}function Ii(k,D,q){for(var R=50,G=(q-D)/R,U=k(D)+k(q),j=1,ve=D;j<R;++j)U+=2*k(ve+=G);return U*.5*G}function dl(){var k=6,D=30*B,q=o(D),R=p(D),G=r.geoProjectionMutator(hl),U=G(D,k),j=U.stream,ve=.01,de=-o(ve*B),fe=p(ve*B);return U.radius=function(pe){return arguments.length?(q=o(D=pe*B),R=p(D),G(D,k)):D*z},U.lobes=function(pe){return arguments.length?G(D,k=+pe):k},U.stream=function(pe){var xe=U.rotate(),Se=j(pe),ze=(U.rotate([0,0]),j(pe));return U.rotate(xe),Se.sphere=function(){ze.polygonStart(),ze.lineStart();for(var Ke=0,or=2*x/k,kr=0;Ke<k;++Ke,kr-=or)ze.point(i(fe*o(kr),de)*z,I(fe*p(kr))*z),ze.point(i(R*o(kr-or/2),q)*z,I(R*p(kr-or/2))*z);ze.lineEnd(),ze.polygonEnd()},Se},U.rotate([90,-40]).scale(91.7095).clipAngle(180-.001)}function Hi(k,D,q,R,G,U,j,ve){arguments.length<8&&(ve=0);function de(fe,pe){if(!pe)return[k*fe/x,0];var xe=pe*pe,Se=k+xe*(D+xe*(q+xe*R)),ze=pe*(G-1+xe*(U-ve+xe*j)),Ke=(Se*Se+ze*ze)/(2*ze),or=fe*I(Se/Ke)/x;return[Ke*p(or),pe*(1+xe*ve)+Ke*(1-o(or))]}return de.invert=function(fe,pe){var xe=x*fe/k,Se=pe,ze,Ke,or=50;do{var kr=Se*Se,Kr=k+kr*(D+kr*(q+kr*R)),ct=Se*(G-1+kr*(U-ve+kr*j)),ht=Kr*Kr+ct*ct,pt=2*ct,yt=ht/pt,fa=yt*yt,Fa=I(Kr/yt)/x,Ot=xe*Fa,Wa=Kr*Kr,qn=(2*D+kr*(4*q+kr*6*R))*Se,Li=G+kr*(3*U+kr*5*j),Dl=2*(Kr*qn+ct*(Li-1)),Au=2*(Li-1),Zn=(Dl*pt-ht*Au)/(pt*pt),$n=o(Ot),po=p(Ot),Fl=yt*$n,El=yt*po,Ll=xe/x*(1/H(1-Wa/fa))*(qn*yt-Kr*Zn)/fa,ws=El-fe,Ho=Se*(1+kr*ve)+yt-Fl-pe,Mu=Zn*po+Fl*Ll,Df=Fl*Fa,v=1+Zn-(Zn*$n-El*Ll),g=El*Fa,w=Mu*g-v*Df;if(!w)break;xe-=ze=(Ho*Mu-ws*v)/w,Se-=Ke=(ws*g-Ho*Df)/w}while((a(ze)>b||a(Ke)>b)&&--or>0);return[xe,Se]},de}var Si=Hi(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function ns(){return r.geoProjection(Si).scale(149.995)}var is=Hi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Ks(){return r.geoProjection(is).scale(153.93)}var os=Hi(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Qs(){return r.geoProjection(os).scale(130.945)}function ot(k,D){var q=k*k,R=D*D;return[k*(1-.162388*R)*(.87-952426e-9*q*q),D*(1+R/12)]}ot.invert=function(k,D){var q=k,R=D,G=50,U;do{var j=R*R;R-=U=(R*(1+j/12)-D)/(1+j/4)}while(a(U)>b&&--G>0);G=50,k/=1-.162388*j;do{var ve=(ve=q*q)*ve;q-=U=(q*(.87-952426e-9*ve)-k)/(.87-.00476213*ve)}while(a(U)>b&&--G>0);return[q,R]};function st(){return r.geoProjection(ot).scale(131.747)}var Gt=Hi(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ur(){return r.geoProjection(Gt).scale(131.087)}function gn(k){var D=k(_,0)[0]-k(-_,0)[0];function q(R,G){var U=R>0?-.5:.5,j=k(R+U*x,G);return j[0]-=U*D,j}return k.invert&&(q.invert=function(R,G){var U=R>0?-.5:.5,j=k.invert(R+U*D,G),ve=j[0]-U*x;return ve<-x?ve+=2*x:ve>x&&(ve-=2*x),j[0]=ve,j}),q}function oa(k,D){var q=m(k),R=m(D),G=o(D),U=o(k)*G,j=p(k)*G,ve=p(R*D);k=a(i(j,ve)),D=I(U),a(k-_)>b&&(k%=_);var de=Ga(k>x/4?_-k:k,D);return k>x/4&&(ve=de[0],de[0]=-de[1],de[1]=-ve),de[0]*=q,de[1]*=-R,de}oa.invert=function(k,D){a(k)>1&&(k=m(k)*2-k),a(D)>1&&(D=m(D)*2-D);var q=m(k),R=m(D),G=-q*k,U=-R*D,j=U/G<1,ve=Xa(j?U:G,j?G:U),de=ve[0],fe=ve[1],pe=o(fe);return j&&(de=-_-de),[q*(i(p(de)*pe,-p(fe))+x),R*I(o(de)*pe)]};function Ga(k,D){if(D===_)return[0,0];var q=p(D),R=q*q,G=R*R,U=1+G,j=1+3*G,ve=1-G,de=I(1/H(U)),fe=ve+R*U*de,pe=(1-q)/fe,xe=H(pe),Se=pe*U,ze=H(Se),Ke=xe*ve,or,kr;if(k===0)return[0,-(Ke+R*ze)];var Kr=o(D),ct=1/Kr,ht=2*q*Kr,pt=(-3*R+de*j)*ht,yt=(-fe*Kr-(1-q)*pt)/(fe*fe),fa=.5*yt/xe,Fa=ve*fa-2*R*xe*ht,Ot=R*U*yt+pe*j*ht,Wa=-ct*ht,qn=-ct*Ot,Li=-2*ct*Fa,Dl=4*k/x,Au;if(k>.222*x||D<x/4&&k>.175*x){if(or=(Ke+R*H(Se*(1+G)-Ke*Ke))/(1+G),k>x/4)return[or,or];var Zn=or,$n=.5*or;or=.5*($n+Zn),kr=50;do{var po=H(Se-or*or),Fl=or*(Li+Wa*po)+qn*I(or/ze)-Dl;if(!Fl)break;Fl<0?$n=or:Zn=or,or=.5*($n+Zn)}while(a(Zn-$n)>b&&--kr>0)}else{or=b,kr=25;do{var El=or*or,Ll=H(Se-El),ws=Li+Wa*Ll,Ho=or*ws+qn*I(or/ze)-Dl,Mu=ws+(qn-Wa*El)/Ll;or-=Au=Ll?Ho/Mu:0}while(a(Au)>b&&--kr>0)}return[or,-Ke-R*H(Se-or*or)]}function Xa(k,D){for(var q=0,R=1,G=.5,U=50;;){var j=G*G,ve=H(G),de=I(1/H(1+j)),fe=1-j+G*(1+j)*de,pe=(1-ve)/fe,xe=H(pe),Se=pe*(1+j),ze=xe*(1-j),Ke=Se-k*k,or=H(Ke),kr=D+ze+G*or;if(a(R-q)<C||--U===0||kr===0)break;kr>0?q=G:R=G,G=.5*(q+R)}if(!U)return null;var Kr=I(ve),ct=o(Kr),ht=1/ct,pt=2*ve*ct,yt=(-3*G+de*(1+3*j))*pt,fa=(-fe*ct-(1-ve)*yt)/(fe*fe),Fa=.5*fa/xe,Ot=(1-j)*Fa-2*G*xe*pt,Wa=-2*ht*Ot,qn=-ht*pt,Li=-ht*(G*(1+j)*fa+pe*(1+3*j)*pt);return[x/4*(k*(Wa+qn*or)+Li*I(k/H(Se))),Kr]}function Un(){return r.geoProjection(gn(oa)).scale(239.75)}function pl(k,D,q){var R,G,U;return k?(R=ls(k,q),D?(G=ls(D,1-q),U=G[1]*G[1]+q*R[0]*R[0]*G[0]*G[0],[[R[0]*G[2]/U,R[1]*R[2]*G[0]*G[1]/U],[R[1]*G[1]/U,-R[0]*R[2]*G[0]*G[2]/U],[R[2]*G[1]*G[2]/U,-q*R[0]*R[1]*G[0]/U]]):[[R[0],0],[R[1],0],[R[2],0]]):(G=ls(D,1-q),[[0,G[0]/G[1]],[1/G[1],0],[G[2]/G[1],0]])}function ls(k,D){var q,R,G,U,j;if(D<b)return U=p(k),R=o(k),q=D*(k-U*R)/4,[U-q*R,R+q*U,1-D*U*U/2,k-q];if(D>=1-b)return q=(1-D)/4,R=re(k),U=Q(k),G=1/R,j=R*oe(k),[U+q*(j-k)/(R*R),G-q*U*G*(j-k),G+q*U*G*(j+k),2*n(l(k))-_+q*(j-k)/R];var ve=[1,0,0,0,0,0,0,0,0],de=[H(D),0,0,0,0,0,0,0,0],fe=0;for(R=H(1-D),j=1;a(de[fe]/ve[fe])>b&&fe<8;)q=ve[fe++],de[fe]=(q-R)/2,ve[fe]=(q+R)/2,R=H(q*R),j*=2;G=j*ve[fe]*k;do U=de[fe]*p(R=G)/ve[fe],G=(I(U)+G)/2;while(--fe);return[p(G),U=o(G),U/o(G-R),G]}function ss(k,D,q){var R=a(k),G=a(D),U=oe(G);if(R){var j=1/p(R),ve=1/(y(R)*y(R)),de=-(ve+q*(U*U*j*j)-1+q),fe=(q-1)*ve,pe=(-de+H(de*de-4*fe))/2;return[Oi(n(1/H(pe)),q)*m(k),Oi(n(H((pe/ve-1)/q)),1-q)*m(D)]}return[0,Oi(n(U),1-q)*m(D)]}function Oi(k,D){if(!D)return k;if(D===1)return u(y(k/2+M));for(var q=1,R=H(1-D),G=H(D),U=0;a(G)>b;U++){if(k%x){var j=n(R*y(k)/q);j<0&&(j+=x),k+=j+~~(k/x)*x}else k+=k;G=(q+R)/2,R=H(q*R),G=((q=G)-R)/2}return k/(h(2,U)*q)}function Lo(k,D){var q=(A-1)/(A+1),R=H(1-q*q),G=Oi(_,R*R),U=-1,j=u(y(x/4+a(D)/2)),ve=l(U*j)/H(q),de=ml(ve*o(U*k),ve*p(U*k)),fe=ss(de[0],de[1],R*R);return[-fe[1],(D>=0?1:-1)*(.5*G-fe[0])]}function ml(k,D){var q=k*k,R=D+1,G=1-q-D*D;return[.5*((k>=0?_:-_)-i(G,2*k)),-.25*u(G*G+4*q)+.5*u(R*R+q)]}function us(k,D){var q=D[0]*D[0]+D[1]*D[1];return[(k[0]*D[0]+k[1]*D[1])/q,(k[1]*D[0]-k[0]*D[1])/q]}Lo.invert=function(k,D){var q=(A-1)/(A+1),R=H(1-q*q),G=Oi(_,R*R),U=-1,j=pl(.5*G-D,-k,R*R),ve=us(j[0],j[1]),de=i(ve[1],ve[0])/U;return[de,2*n(l(.5/U*u(q*ve[0]*ve[0]+q*ve[1]*ve[1])))-_]};function eu(){return r.geoProjection(gn(Lo)).scale(151.496)}function of(k){var D=p(k),q=o(k),R=Uc(k);R.invert=Uc(-k);function G(U,j){var ve=R(U,j);U=ve[0],j=ve[1];var de=p(j),fe=o(j),pe=o(U),xe=V(D*de+q*fe*pe),Se=p(xe),ze=a(Se)>b?xe/Se:1;return[ze*q*p(U),(a(U)>_?ze:-ze)*(D*fe-q*de*pe)]}return G.invert=function(U,j){var ve=H(U*U+j*j),de=-p(ve),fe=o(ve),pe=ve*fe,xe=-j*de,Se=ve*D,ze=H(pe*pe+xe*xe-Se*Se),Ke=i(pe*Se+xe*ze,xe*Se-pe*ze),or=(ve>_?-1:1)*i(U*de,ve*o(Ke)*fe+j*p(Ke)*de);return R.invert(or,Ke)},G}function Uc(k){var D=p(k),q=o(k);return function(R,G){var U=o(G),j=o(R)*U,ve=p(R)*U,de=p(G);return[i(ve,j*q-de*D),I(de*q+j*D)]}}function ru(){var k=0,D=r.geoProjectionMutator(of),q=D(k),R=q.rotate,G=q.stream,U=r.geoCircle();return q.parallel=function(j){if(!arguments.length)return k*z;var ve=q.rotate();return D(k=j*B).rotate(ve)},q.rotate=function(j){return arguments.length?(R.call(q,[j[0],j[1]-k*z]),U.center([-j[0],-j[1]]),q):(j=R.call(q),j[1]+=k*z,j)},q.stream=function(j){return j=G(j),j.sphere=function(){j.polygonStart();var ve=.01,de=U.radius(90-ve)().coordinates[0],fe=de.length-1,pe=-1,xe;for(j.lineStart();++pe<fe;)j.point((xe=de[pe])[0],xe[1]);for(j.lineEnd(),de=U.radius(90+ve)().coordinates[0],fe=de.length-1,j.lineStart();--pe>=0;)j.point((xe=de[pe])[0],xe[1]);j.lineEnd(),j.polygonEnd()},j},q.scale(79.4187).parallel(45).clipAngle(180-.001)}var tu=3,au=I(1-1/tu)*z,gl=Yt(0);function qo(k){var D=au*B,q=qr(x,D)[0]-qr(-x,D)[0],R=gl(0,D)[1],G=qr(0,D)[1],U=E-G,j=P/k,ve=4/P,de=R+U*U*4/P;function fe(pe,xe){var Se,ze=a(xe);if(ze>D){var Ke=c(k-1,f(0,s((pe+x)/j)));pe+=x*(k-1)/k-Ke*j,Se=qr(pe,ze),Se[0]=Se[0]*P/q-P*(k-1)/(2*k)+Ke*P/k,Se[1]=R+(Se[1]-G)*4*U/P,xe<0&&(Se[1]=-Se[1])}else Se=gl(pe,xe);return Se[0]*=ve,Se[1]/=de,Se}return fe.invert=function(pe,xe){pe/=ve,xe*=de;var Se=a(xe);if(Se>R){var ze=c(k-1,f(0,s((pe+x)/j)));pe=(pe+x*(k-1)/k-ze*j)*q/P;var Ke=qr.invert(pe,.25*(Se-R)*P/U+G);return Ke[0]-=x*(k-1)/k-ze*j,xe<0&&(Ke[1]=-Ke[1]),Ke}return gl.invert(pe,xe)},fe}function Po(k,D){return[k,D&1?90-b:au]}function oo(k,D){return[k,D&1?-90+b:-au]}function lf(k){return[k[0]*(1-b),k[1]]}function ju(k){var D=[].concat(t.range(-180,180+k/2,k).map(Po),t.range(180,-180-k/2,-k).map(oo));return{type:"Polygon",coordinates:[k===180?D.map(lf):D]}}function fs(){var k=4,D=r.geoProjectionMutator(qo),q=D(k),R=q.stream;return q.lobes=function(G){return arguments.length?D(k=+G):k},q.stream=function(G){var U=q.rotate(),j=R(G),ve=(q.rotate([0,0]),R(G));return q.rotate(U),j.sphere=function(){r.geoStream(ju(180/k),ve)},j},q.scale(239.75)}function sf(k){var D=1+k,q=p(1/D),R=I(q),G=2*H(x/(U=x+4*R*D)),U,j=.5*G*(D+H(k*(2+k))),ve=k*k,de=D*D;function fe(pe,xe){var Se=1-p(xe),ze,Ke;if(Se&&Se<2){var or=_-xe,kr=25,Kr;do{var ct=p(or),ht=o(or),pt=R+i(ct,D-ht),yt=1+de-2*D*ht;or-=Kr=(or-ve*R-D*ct+yt*pt-.5*Se*U)/(2*D*ct*pt)}while(a(Kr)>C&&--kr>0);ze=G*H(yt),Ke=pe*pt/x}else ze=G*(k+Se),Ke=pe*R/x;return[ze*p(Ke),j-ze*o(Ke)]}return fe.invert=function(pe,xe){var Se=pe*pe+(xe-=j)*xe,ze=(1+de-Se/(G*G))/(2*D),Ke=V(ze),or=p(Ke),kr=R+i(or,D-ze);return[I(pe/H(Se))*x/kr,I(1-2*(Ke-ve*R-D*or+(1+de-2*D*ze)*kr)/U)]},fe}function Gc(){var k=1,D=r.geoProjectionMutator(sf),q=D(k);return q.ratio=function(R){return arguments.length?D(k=+R):k},q.scale(167.774).center([0,18.67])}var nu=.7109889596207567,lo=.0528035274542;function iu(k,D){return D>-nu?(k=Ze(k,D),k[1]+=lo,k):Qe(k,D)}iu.invert=function(k,D){return D>-nu?Ze.invert(k,D-lo):Qe.invert(k,D)};function Yc(){return r.geoProjection(iu).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function ou(k,D){return a(D)>nu?(k=Ze(k,D),k[1]-=D>0?lo:-lo,k):Qe(k,D)}ou.invert=function(k,D){return a(D)>nu?Ze.invert(k,D+(D>0?lo:-lo)):Qe.invert(k,D)};function B2(){return r.geoProjection(ou).scale(152.63)}function yl(k,D,q,R){var G=H(4*x/(2*q+(1+k-D/2)*p(2*q)+(k+D)/2*p(4*q)+D/2*p(6*q))),U=H(R*p(q)*H((1+k*o(2*q)+D*o(4*q))/(1+k+D))),j=q*de(1);function ve(xe){return H(1+k*o(2*xe)+D*o(4*xe))}function de(xe){var Se=xe*q;return(2*Se+(1+k-D/2)*p(2*Se)+(k+D)/2*p(4*Se)+D/2*p(6*Se))/q}function fe(xe){return ve(xe)*p(xe)}var pe=function(xe,Se){var ze=q*tr(de,j*p(Se)/q,Se/x);isNaN(ze)&&(ze=q*m(Se));var Ke=G*ve(ze);return[Ke*U*xe/x*o(ze),Ke/U*p(ze)]};return pe.invert=function(xe,Se){var ze=tr(fe,Se*U/G);return[xe*x/(o(ze)*G*U*ve(ze)),I(q*de(ze/q)/j)]},q===0&&(G=H(R/x),pe=function(xe,Se){return[xe*G,p(Se)/G]},pe.invert=function(xe,Se){return[xe/G,I(Se*G)]}),pe}function uf(){var k=1,D=0,q=45*B,R=2,G=r.geoProjectionMutator(yl),U=G(k,D,q,R);return U.a=function(j){return arguments.length?G(k=+j,D,q,R):k},U.b=function(j){return arguments.length?G(k,D=+j,q,R):D},U.psiMax=function(j){return arguments.length?G(k,D,q=+j*B,R):q*z},U.ratio=function(j){return arguments.length?G(k,D,q,R=+j):R},U.scale(180.739)}function cs(k,D,q,R,G,U,j,ve,de,fe,pe){if(pe.nanEncountered)return NaN;var xe,Se,ze,Ke,or,kr,Kr,ct,ht,pt;if(xe=q-D,Se=k(D+xe*.25),ze=k(q-xe*.25),isNaN(Se)){pe.nanEncountered=!0;return}if(isNaN(ze)){pe.nanEncountered=!0;return}return Ke=xe*(R+4*Se+G)/12,or=xe*(G+4*ze+U)/12,kr=Ke+or,pt=(kr-j)/15,fe>de?(pe.maxDepthCount++,kr+pt):Math.abs(pt)<ve?kr+pt:(Kr=D+xe*.5,ct=cs(k,D,Kr,R,Se,G,Ke,ve*.5,de,fe+1,pe),isNaN(ct)?(pe.nanEncountered=!0,NaN):(ht=cs(k,Kr,q,G,ze,U,or,ve*.5,de,fe+1,pe),isNaN(ht)?(pe.nanEncountered=!0,NaN):ct+ht))}function Vc(k,D,q,R,G){var U={maxDepthCount:0,nanEncountered:!1};R===void 0&&(R=1e-8),G===void 0&&(G=20);var j=k(D),ve=k(.5*(D+q)),de=k(q),fe=(j+4*ve+de)*(q-D)/6,pe=cs(k,D,q,j,ve,de,fe,R,G,1,U);return pe}function Ro(k,D,q){function R(ze){return k+(1-k)*h(1-h(ze,D),1/D)}function G(ze){return Vc(R,0,ze,1e-4)}for(var U=1/G(1),j=1e3,ve=(1+1e-8)*U,de=[],fe=0;fe<=j;fe++)de.push(G(fe/j)*ve);function pe(ze){var Ke=0,or=j,kr=j>>1;do de[kr]>ze?or=kr:Ke=kr,kr=Ke+or>>1;while(kr>Ke);var Kr=de[kr+1]-de[kr];return Kr&&(Kr=(ze-de[kr+1])/Kr),(kr+1+Kr)/j}var xe=2*pe(1)/x*U/q,Se=function(ze,Ke){var or=pe(a(p(Ke))),kr=R(or)*ze;return or/=xe,[kr,Ke>=0?or:-or]};return Se.invert=function(ze,Ke){var or;return Ke*=xe,a(Ke)<1&&(or=m(Ke)*I(G(a(Ke))*U)),[ze/R(a(Ke)),or]},Se}function zo(){var k=0,D=2.5,q=1.183136,R=r.geoProjectionMutator(Ro),G=R(k,D,q);return G.alpha=function(U){return arguments.length?R(k=+U,D,q):k},G.k=function(U){return arguments.length?R(k,D=+U,q):D},G.gamma=function(U){return arguments.length?R(k,D,q=+U):q},G.scale(152.63)}function ff(k,D){return a(k[0]-D[0])<b&&a(k[1]-D[1])<b}function Ui(k,D){for(var q=-1,R=k.length,G=k[0],U,j,ve,de=[];++q<R;){U=k[q],j=(U[0]-G[0])/D,ve=(U[1]-G[1])/D;for(var fe=0;fe<D;++fe)de.push([G[0]+fe*j,G[1]+fe*ve]);G=U}return de.push(U),de}function I2(k){var D=[],q,R,G,U,j,ve,de,fe=k[0].length;for(de=0;de<fe;++de)q=k[0][de],R=q[0][0],G=q[0][1],U=q[1][1],j=q[2][0],ve=q[2][1],D.push(Ui([[R+b,G+b],[R+b,U-b],[j-b,U-b],[j-b,ve+b]],30));for(de=k[1].length-1;de>=0;--de)q=k[1][de],R=q[0][0],G=q[0][1],U=q[1][1],j=q[2][0],ve=q[2][1],D.push(Ui([[j-b,ve-b],[j-b,U+b],[R+b,U+b],[R+b,G-b]],30));return{type:"Polygon",coordinates:[t.merge(D)]}}function so(k,D,q){var R,G;function U(de,fe){for(var pe=fe<0?-1:1,xe=D[+(fe<0)],Se=0,ze=xe.length-1;Se<ze&&de>xe[Se][2][0];++Se);var Ke=k(de-xe[Se][1][0],fe);return Ke[0]+=k(xe[Se][1][0],pe*fe>pe*xe[Se][0][1]?xe[Se][0][1]:fe)[0],Ke}q?U.invert=q(U):k.invert&&(U.invert=function(de,fe){for(var pe=G[+(fe<0)],xe=D[+(fe<0)],Se=0,ze=pe.length;Se<ze;++Se){var Ke=pe[Se];if(Ke[0][0]<=de&&de<Ke[1][0]&&Ke[0][1]<=fe&&fe<Ke[1][1]){var or=k.invert(de-k(xe[Se][1][0],0)[0],fe);return or[0]+=xe[Se][1][0],ff(U(or[0],or[1]),[de,fe])?or:null}}});var j=r.geoProjection(U),ve=j.stream;return j.stream=function(de){var fe=j.rotate(),pe=ve(de),xe=(j.rotate([0,0]),ve(de));return j.rotate(fe),pe.sphere=function(){r.geoStream(R,xe)},pe},j.lobes=function(de){return arguments.length?(R=I2(de),D=de.map(function(fe){return fe.map(function(pe){return[[pe[0][0]*B,pe[0][1]*B],[pe[1][0]*B,pe[1][1]*B],[pe[2][0]*B,pe[2][1]*B]]})}),G=D.map(function(fe){return fe.map(function(pe){var xe=k(pe[0][0],pe[0][1])[0],Se=k(pe[2][0],pe[2][1])[0],ze=k(pe[1][0],pe[0][1])[1],Ke=k(pe[1][0],pe[1][1])[1],or;return ze>Ke&&(or=ze,ze=Ke,Ke=or),[[xe,ze],[Se,Ke]]})}),j):D.map(function(fe){return fe.map(function(pe){return[[pe[0][0]*z,pe[0][1]*z],[pe[1][0]*z,pe[1][1]*z],[pe[2][0]*z,pe[2][1]*z]]})})},D!=null&&j.lobes(D),j}var vs=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function H2(){return so(Oe,vs).scale(160.857)}var uo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function bl(){return so(ou,uo).scale(152.63)}var _l=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function xl(){return so(Ze,_l).scale(169.529)}var No=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function lu(){return so(Ze,No).scale(169.529).rotate([20,0])}var Wu=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function su(){return so(iu,Wu,fr).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var uu=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function wl(){return so(Qe,uu).scale(152.63).rotate([-20,0])}function hs(k,D){return[3/P*k*H(x*x/3-D*D),D]}hs.invert=function(k,D){return[P/3*k/H(x*x/3-D*D),D]};function ds(){return r.geoProjection(hs).scale(158.837)}function Zu(k){function D(q,R){if(a(a(R)-_)<b)return[0,R<0?-2:2];var G=p(R),U=h((1+G)/(1-G),k/2),j=.5*(U+1/U)+o(q*=k);return[2*p(q)/j,(U-1/U)/j]}return D.invert=function(q,R){var G=a(R);if(a(G-2)<b)return q?null:[0,m(R)*_];if(G>2)return null;q/=2,R/=2;var U=q*q,j=R*R,ve=2*R/(1+U+j);return ve=h((1+ve)/(1-ve),1/k),[i(2*q,1-U-j)/k,I((ve-1)/(ve+1))]},D}function $u(){var k=.5,D=r.geoProjectionMutator(Zu),q=D(k);return q.spacing=function(R){return arguments.length?D(k=+R):k},q.scale(124.75)}var Di=x/A;function Ju(k,D){return[k*(1+H(o(D)))/2,D/(o(D/2)*o(k/6))]}Ju.invert=function(k,D){var q=a(k),R=a(D),G=b,U=_;R<Di?U*=R/Di:G+=6*V(Di/R);for(var j=0;j<25;j++){var ve=p(U),de=H(o(U)),fe=p(U/2),pe=o(U/2),xe=p(G/6),Se=o(G/6),ze=.5*G*(1+de)-q,Ke=U/(pe*Se)-R,or=de?-.25*G*ve/de:0,kr=.5*(1+de),Kr=(1+.5*U*fe/pe)/(pe*Se),ct=U/pe*(xe/6)/(Se*Se),ht=or*ct-Kr*kr,pt=(ze*ct-Ke*kr)/ht,yt=(Ke*or-ze*Kr)/ht;if(U-=pt,G-=yt,a(pt)<b&&a(yt)<b)break}return[k<0?-G:G,D<0?-U:U]};function Ku(){return r.geoProjection(Ju).scale(97.2672)}function ti(k,D){var q=k*k,R=D*D;return[k*(.975534+R*(-.119161+q*-.0143059+R*-.0547009)),D*(1.00384+q*(.0802894+R*-.02855+q*199025e-9)+R*(.0998909+R*-.0491032))]}ti.invert=function(k,D){var q=m(k)*x,R=D/2,G=50;do{var U=q*q,j=R*R,ve=q*R,de=q*(.975534+j*(-.119161+U*-.0143059+j*-.0547009))-k,fe=R*(1.00384+U*(.0802894+j*-.02855+U*199025e-9)+j*(.0998909+j*-.0491032))-D,pe=.975534-j*(.119161+3*U*.0143059+j*.0547009),xe=-ve*(2*.119161+4*.0547009*j+2*.0143059*U),Se=ve*(2*.0802894+4*199025e-9*U+2*-.02855*j),ze=1.00384+U*(.0802894+199025e-9*U)+j*(3*(.0998909-.02855*U)-5*.0491032*j),Ke=xe*Se-ze*pe,or=(fe*xe-de*ze)/Ke,kr=(de*Se-fe*pe)/Ke;q-=or,R-=kr}while((a(or)>b||a(kr)>b)&&--G>0);return G&&[q,R]};function yn(){return r.geoProjection(ti).scale(139.98)}function Gn(k,D){return[p(k)/o(D),y(D)*o(k)]}Gn.invert=function(k,D){var q=k*k,R=D*D,G=R+1,U=q+G,j=k?T*H((U-H(U*U-4*q))/q):1/H(G);return[I(k*j),m(D)*V(j)]};function fo(){return r.geoProjection(Gn).scale(144.049).clipAngle(90-.001)}function fu(k){var D=o(k),q=y(M+k/2);function R(G,U){var j=U-k,ve=a(j)<b?G*D:a(ve=M+U/2)<b||a(a(ve)-_)<b?0:G*j/u(y(ve)/q);return[ve,j]}return R.invert=function(G,U){var j,ve=U+k;return[a(U)<b?G/D:a(j=M+ve/2)<b||a(a(j)-_)<b?0:G*u(y(j)/q)/U,ve]},R}function Al(){return Br(fu).parallel(40).scale(158.837)}function ps(k,D){return[k,1.25*u(y(M+.4*D))]}ps.invert=function(k,D){return[k,2.5*n(l(.8*D))-.625*x]};function cf(){return r.geoProjection(ps).scale(108.318)}function Xc(k){var D=k.length-1;function q(R,G){for(var U=o(G),j=2/(1+U*o(R)),ve=j*U*p(R),de=j*p(G),fe=D,pe=k[fe],xe=pe[0],Se=pe[1],ze;--fe>=0;)pe=k[fe],xe=pe[0]+ve*(ze=xe)-de*Se,Se=pe[1]+ve*Se+de*ze;return xe=ve*(ze=xe)-de*Se,Se=ve*Se+de*ze,[xe,Se]}return q.invert=function(R,G){var U=20,j=R,ve=G;do{for(var de=D,fe=k[de],pe=fe[0],xe=fe[1],Se=0,ze=0,Ke;--de>=0;)fe=k[de],Se=pe+j*(Ke=Se)-ve*ze,ze=xe+j*ze+ve*Ke,pe=fe[0]+j*(Ke=pe)-ve*xe,xe=fe[1]+j*xe+ve*Ke;Se=pe+j*(Ke=Se)-ve*ze,ze=xe+j*ze+ve*Ke,pe=j*(Ke=pe)-ve*xe-R,xe=j*xe+ve*Ke-G;var or=Se*Se+ze*ze,kr,Kr;j-=kr=(pe*Se+xe*ze)/or,ve-=Kr=(xe*Se-pe*ze)/or}while(a(kr)+a(Kr)>b*b&&--U>0);if(U){var ct=H(j*j+ve*ve),ht=2*n(ct*.5),pt=p(ht);return[i(j*pt,ct*o(ht)),ct?I(ve*pt/ct):0]}},q}var O2=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],U2=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],vf=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],hf=[[.9245,0],[0,0],[.01943,0]],df=[[.721316,0],[0,0],[-.00881625,-.00617325]];function pf(){return Gi(O2,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function jc(){return Gi(U2,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Wc(){return Gi(vf,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function cu(){return Gi(hf,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function vu(){return Gi(df,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Gi(k,D){var q=r.geoProjection(Xc(k)).rotate(D).clipAngle(90),R=r.geoRotation(D),G=q.center;return delete q.rotate,q.center=function(U){return arguments.length?G(R(U)):R.invert(G())},q}var Qu=H(6),hu=H(7);function e0(k,D){var q=I(7*p(D)/(3*Qu));return[Qu*k*(2*o(2*q/3)-1)/hu,9*p(q/3)/hu]}e0.invert=function(k,D){var q=3*I(D*hu/9);return[k*hu/(Qu*(2*o(2*q/3)-1)),I(p(q)*3*Qu/7)]};function Zc(){return r.geoProjection(e0).scale(164.859)}function mf(k,D){for(var q=(1+T)*p(D),R=D,G=0,U;G<25&&(R-=U=(p(R/2)+p(R)-q)/(.5*o(R/2)+o(R)),!(a(U)<b));G++);return[k*(1+2*o(R)/o(R/2))/(3*A),2*H(3)*p(R/2)/H(2+A)]}mf.invert=function(k,D){var q=D*H(2+A)/(2*H(3)),R=2*I(q);return[3*A*k/(1+2*o(R)/o(R/2)),I((q+p(R))/(1+T))]};function G2(){return r.geoProjection(mf).scale(188.209)}function Bo(k,D){for(var q=H(6/(4+x)),R=(1+x/4)*p(D),G=D/2,U=0,j;U<25&&(G-=j=(G/2+p(G)-R)/(.5+o(G)),!(a(j)<b));U++);return[q*(.5+o(G))*k/1.5,q*G]}Bo.invert=function(k,D){var q=H(6/(4+x)),R=D/q;return a(a(R)-_)<b&&(R=R<0?-_:_),[1.5*k/(q*(.5+o(R))),I((R/2+p(R))/(1+x/4))]};function r0(){return r.geoProjection(Bo).scale(166.518)}function ms(k,D){var q=D*D,R=q*q,G=q*R;return[k*(.84719-.13063*q+G*G*(-.04515+.05494*q-.02326*R+.00331*G)),D*(1.01183+R*R*(-.02625+.01926*q-.00396*R))]}ms.invert=function(k,D){var q=D,R=25,G,U,j,ve;do U=q*q,j=U*U,q-=G=(q*(1.01183+j*j*(-.02625+.01926*U-.00396*j))-D)/(1.01183+j*j*(9*-.02625+11*.01926*U+13*-.00396*j));while(a(G)>C&&--R>0);return U=q*q,j=U*U,ve=U*j,[k/(.84719-.13063*U+ve*ve*(-.04515+.05494*U-.02326*j+.00331*ve)),q]};function du(){return r.geoProjection(ms).scale(175.295)}function pu(k,D){return[k*(1+o(D))/2,2*(D-y(D/2))]}pu.invert=function(k,D){for(var q=D/2,R=0,G=1/0;R<10&&a(G)>b;++R){var U=o(D/2);D-=G=(D-y(D/2)-q)/(1-.5/(U*U))}return[2*k/(1+o(D)),D]};function gf(){return r.geoProjection(pu).scale(152.63)}var Io=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function $c(){return so(Ne(1/0),Io).rotate([20,0]).scale(152.63)}function yf(k,D){var q=p(D),R=o(D),G=m(k);if(k===0||a(D)===_)return[0,D];if(D===0)return[k,0];if(a(k)===_)return[k*R,_*q];var U=x/(2*k)-2*k/x,j=2*D/x,ve=(1-j*j)/(q-j),de=U*U,fe=ve*ve,pe=1+de/fe,xe=1+fe/de,Se=(U*q/ve-U/2)/pe,ze=(fe*q/de+ve/2)/xe,Ke=Se*Se+R*R/pe,or=ze*ze-(fe*q*q/de+ve*q-1)/xe;return[_*(Se+H(Ke)*G),_*(ze+H(or<0?0:or)*m(-D*U)*G)]}yf.invert=function(k,D){k/=_,D/=_;var q=k*k,R=D*D,G=q+R,U=x*x;return[k?(G-1+H((1-G)*(1-G)+4*q))/(2*k)*_:0,tr(function(j){return G*(x*p(j)-2*j)*x+4*j*j*(D-p(j))+2*x*j-U*D},0)]};function Jc(){return r.geoProjection(yf).scale(127.267)}var bf=1.0148,t0=.23185,_f=-.14499,xf=.02406,Y2=bf,wf=5*t0,Yi=7*_f,Af=9*xf,gs=1.790857183;function Mf(k,D){var q=D*D;return[k,D*(bf+q*q*(t0+q*(_f+xf*q)))]}Mf.invert=function(k,D){D>gs?D=gs:D<-gs&&(D=-gs);var q=D,R;do{var G=q*q;q-=R=(q*(bf+G*G*(t0+G*(_f+xf*G)))-D)/(Y2+G*G*(wf+G*(Yi+Af*G)))}while(a(R)>b);return[k,q]};function Kc(){return r.geoProjection(Mf).scale(139.319)}function Ml(k,D){if(a(D)<b)return[k,0];var q=y(D),R=k*p(D);return[p(R)/q,D+(1-o(R))/q]}Ml.invert=function(k,D){if(a(D)<b)return[k,0];var q=k*k+D*D,R=D*.5,G=10,U;do{var j=y(R),ve=1/o(R),de=q-2*D*R+R*R;R-=U=(j*de+2*(R-D))/(2+de*ve*ve+2*(R-D)*j)}while(a(U)>b&&--G>0);return j=y(R),[(a(D)<a(R+1/j)?I(k*j):m(D)*m(k)*(V(a(k*j))+_))/p(R),R]};function Qc(){return r.geoProjection(Ml).scale(103.74)}function V2(k,D){var q=Vi(k[1],k[0]),R=Vi(D[1],D[0]),G=j2(q,R),U=ai(q)/ai(R);return co([1,0,k[0][0],0,1,k[0][1]],co([U,0,0,0,U,0],co([o(G),p(G),0,-p(G),o(G),0],[1,0,-D[0][0],0,1,-D[0][1]])))}function X2(k){var D=1/(k[0]*k[4]-k[1]*k[3]);return[D*k[4],-D*k[1],D*(k[1]*k[5]-k[2]*k[4]),-D*k[3],D*k[0],D*(k[2]*k[3]-k[0]*k[5])]}function co(k,D){return[k[0]*D[0]+k[1]*D[3],k[0]*D[1]+k[1]*D[4],k[0]*D[2]+k[1]*D[5]+k[2],k[3]*D[0]+k[4]*D[3],k[3]*D[1]+k[4]*D[4],k[3]*D[2]+k[4]*D[5]+k[5]]}function Vi(k,D){return[k[0]-D[0],k[1]-D[1]]}function ai(k){return H(k[0]*k[0]+k[1]*k[1])}function j2(k,D){return i(k[0]*D[1]-k[1]*D[0],k[0]*D[0]+k[1]*D[1])}function ys(k,D,q){R(k,{transform:null});function R(fe,pe){if(fe.edges=t1(fe.face),pe.face){var xe=fe.shared=r1(fe.face,pe.face),Se=V2(xe.map(pe.project),xe.map(fe.project));fe.transform=pe.transform?co(pe.transform,Se):Se;for(var ze=pe.edges,Ke=0,or=ze.length;Ke<or;++Ke)hi(xe[0],ze[Ke][1])&&hi(xe[1],ze[Ke][0])&&(ze[Ke]=fe),hi(xe[0],ze[Ke][0])&&hi(xe[1],ze[Ke][1])&&(ze[Ke]=fe);for(ze=fe.edges,Ke=0,or=ze.length;Ke<or;++Ke)hi(xe[0],ze[Ke][0])&&hi(xe[1],ze[Ke][1])&&(ze[Ke]=pe),hi(xe[0],ze[Ke][1])&&hi(xe[1],ze[Ke][0])&&(ze[Ke]=pe)}else fe.transform=pe.transform;return fe.children&&fe.children.forEach(function(kr){R(kr,fe)}),fe}function G(fe,pe){var xe=D(fe,pe),Se=xe.project([fe*z,pe*z]),ze;return(ze=xe.transform)?[ze[0]*Se[0]+ze[1]*Se[1]+ze[2],-(ze[3]*Se[0]+ze[4]*Se[1]+ze[5])]:(Se[1]=-Se[1],Se)}mu(k)&&(G.invert=function(fe,pe){var xe=U(k,[fe,-pe]);return xe&&(xe[0]*=B,xe[1]*=B,xe)});function U(fe,pe){var xe=fe.project.invert,Se=fe.transform,ze=pe;if(Se&&(Se=X2(Se),ze=[Se[0]*ze[0]+Se[1]*ze[1]+Se[2],Se[3]*ze[0]+Se[4]*ze[1]+Se[5]]),xe&&fe===j(Ke=xe(ze)))return Ke;for(var Ke,or=fe.children,kr=0,Kr=or&&or.length;kr<Kr;++kr)if(Ke=U(or[kr],pe))return Ke}function j(fe){return D(fe[0]*B,fe[1]*B)}var ve=r.geoProjection(G),de=ve.stream;return ve.stream=function(fe){var pe=ve.rotate(),xe=de(fe),Se=(ve.rotate([0,0]),de(fe));return ve.rotate(pe),xe.sphere=function(){Se.polygonStart(),Se.lineStart(),e1(Se,k),Se.lineEnd(),Se.polygonEnd()},xe},ve.angle(q==null?-30:q*z)}function e1(k,D,q){var R,G=D.edges,U=G.length,j,ve={type:"MultiPoint",coordinates:D.face},de=D.face.filter(function(or){return a(or[1])!==90}),fe=r.geoBounds({type:"MultiPoint",coordinates:de}),pe=!1,xe=-1,Se=fe[1][0]-fe[0][0],ze=Se===180||Se===360?[(fe[0][0]+fe[1][0])/2,(fe[0][1]+fe[1][1])/2]:r.geoCentroid(ve);if(q)for(;++xe<U&&G[xe]!==q;);++xe;for(var Ke=0;Ke<U;++Ke)j=G[(Ke+xe)%U],Array.isArray(j)?(pe||(k.point((R=r.geoInterpolate(j[0],ze)(b))[0],R[1]),pe=!0),k.point((R=r.geoInterpolate(j[1],ze)(b))[0],R[1])):(pe=!1,j!==q&&e1(k,j,D))}function hi(k,D){return k&&D&&k[0]===D[0]&&k[1]===D[1]}function r1(k,D){for(var q,R,G=k.length,U=null,j=0;j<G;++j){q=k[j];for(var ve=D.length;--ve>=0;)if(R=D[ve],q[0]===R[0]&&q[1]===R[1]){if(U)return[U,q];U=q}}}function t1(k){for(var D=k.length,q=[],R=k[D-1],G=0;G<D;++G)q.push([R,R=k[G]]);return q}function mu(k){return k.project.invert||k.children&&k.children.some(mu)}var a1=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],a0=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map(function(k){return k.map(function(D){return a1[D]})});function gu(k){k=k||function(q){var R=r.geoCentroid({type:"MultiPoint",coordinates:q});return r.geoGnomonic().scale(1).translate([0,0]).rotate([-R[0],-R[1]])};var D=a0.map(function(q){return{face:q,project:k(q)}});return[-1,0,0,1,0,1,4,5].forEach(function(q,R){var G=D[q];G&&(G.children||(G.children=[])).push(D[R])}),ys(D[0],function(q,R){return D[q<-x/2?R<0?6:4:q<0?R<0?2:0:q<x/2?R<0?3:1:R<0?7:5]}).angle(-30).scale(101.858).center([0,45])}var n0=2/H(3);function yu(k,D){var q=qr(k,D);return[q[0]*n0,q[1]]}yu.invert=function(k,D){return qr.invert(k/n0,D)};function W2(k){k=k||function(q){var R=r.geoCentroid({type:"MultiPoint",coordinates:q});return r.geoProjection(yu).translate([0,0]).scale(1).rotate(R[1]>0?[-R[0],0]:[180-R[0],180])};var D=a0.map(function(q){return{face:q,project:k(q)}});return[-1,0,0,1,0,1,4,5].forEach(function(q,R){var G=D[q];G&&(G.children||(G.children=[])).push(D[R])}),ys(D[0],function(q,R){return D[q<-x/2?R<0?6:4:q<0?R<0?2:0:q<x/2?R<0?3:1:R<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])}function bu(k){k=k||function(j){var ve=j.length===6?r.geoCentroid({type:"MultiPoint",coordinates:j}):j[0];return r.geoGnomonic().scale(1).translate([0,0]).rotate([-ve[0],-ve[1]])};var D=a0.map(function(j){for(var ve=j.map(bs),de=ve.length,fe=ve[de-1],pe,xe=[],Se=0;Se<de;++Se)pe=ve[Se],xe.push(kl([fe[0]*.9486832980505138+pe[0]*.31622776601683794,fe[1]*.9486832980505138+pe[1]*.31622776601683794,fe[2]*.9486832980505138+pe[2]*.31622776601683794]),kl([pe[0]*.9486832980505138+fe[0]*.31622776601683794,pe[1]*.9486832980505138+fe[1]*.31622776601683794,pe[2]*.9486832980505138+fe[2]*.31622776601683794])),fe=pe;return xe}),q=[],R=[-1,0,0,1,0,1,4,5];D.forEach(function(j,ve){for(var de=a0[ve],fe=de.length,pe=q[ve]=[],xe=0;xe<fe;++xe)D.push([de[xe],j[(xe*2+2)%(2*fe)],j[(xe*2+1)%(2*fe)]]),R.push(ve),pe.push(_u(bs(j[(xe*2+2)%(2*fe)]),bs(j[(xe*2+1)%(2*fe)])))});var G=D.map(function(j){return{project:k(j),face:j}});R.forEach(function(j,ve){var de=G[j];de&&(de.children||(de.children=[])).push(G[ve])});function U(j,ve){var de=o(ve),fe=[de*o(j),de*p(j),p(ve)],pe=j<-x/2?ve<0?6:4:j<0?ve<0?2:0:j<x/2?ve<0?3:1:ve<0?7:5,xe=q[pe];return G[Tl(xe[0],fe)<0?8+3*pe:Tl(xe[1],fe)<0?8+3*pe+1:Tl(xe[2],fe)<0?8+3*pe+2:pe]}return ys(G[0],U).angle(-30).scale(110.625).center([0,45])}function Tl(k,D){for(var q=0,R=k.length,G=0;q<R;++q)G+=k[q]*D[q];return G}function _u(k,D){return[k[1]*D[2]-k[2]*D[1],k[2]*D[0]-k[0]*D[2],k[0]*D[1]-k[1]*D[0]]}function kl(k){return[i(k[1],k[0])*z,I(f(-1,c(1,k[2])))*z]}function bs(k){var D=k[0]*B,q=k[1]*B,R=o(q);return[R*o(D),R*p(D),p(q)]}function i0(){}function xu(k){if((q=k.length)<4)return!1;for(var D=0,q,R=k[q-1][1]*k[0][0]-k[q-1][0]*k[0][1];++D<q;)R+=k[D-1][1]*k[D][0]-k[D-1][0]*k[D][1];return R<=0}function n1(k,D){for(var q=D[0],R=D[1],G=!1,U=0,j=k.length,ve=j-1;U<j;ve=U++){var de=k[U],fe=de[0],pe=de[1],xe=k[ve],Se=xe[0],ze=xe[1];pe>R^ze>R&&q<(Se-fe)*(R-pe)/(ze-pe)+fe&&(G=!G)}return G}function o0(k,D){var q=D.stream,R;if(!q)throw new Error("invalid projection");switch(k&&k.type){case"Feature":R=o1;break;case"FeatureCollection":R=i1;break;default:R=l0;break}return R(k,q)}function i1(k,D){return{type:"FeatureCollection",features:k.features.map(function(q){return o1(q,D)})}}function o1(k,D){return{type:"Feature",id:k.id,properties:k.properties,geometry:l0(k.geometry,D)}}function Tf(k,D){return{type:"GeometryCollection",geometries:k.geometries.map(function(q){return l0(q,D)})}}function l0(k,D){if(!k)return null;if(k.type==="GeometryCollection")return Tf(k,D);var q;switch(k.type){case"Point":q=_s;break;case"MultiPoint":q=_s;break;case"LineString":q=s0;break;case"MultiLineString":q=s0;break;case"Polygon":q=wu;break;case"MultiPolygon":q=wu;break;case"Sphere":q=wu;break;default:return null}return r.geoStream(k,D(q)),q.result()}var ln=[],Fi=[],_s={point:function(k,D){ln.push([k,D])},result:function(){var k=ln.length?ln.length<2?{type:"Point",coordinates:ln[0]}:{type:"MultiPoint",coordinates:ln}:null;return ln=[],k}},s0={lineStart:i0,point:function(k,D){ln.push([k,D])},lineEnd:function(){ln.length&&(Fi.push(ln),ln=[])},result:function(){var k=Fi.length?Fi.length<2?{type:"LineString",coordinates:Fi[0]}:{type:"MultiLineString",coordinates:Fi}:null;return Fi=[],k}},wu={polygonStart:i0,lineStart:i0,point:function(k,D){ln.push([k,D])},lineEnd:function(){var k=ln.length;if(k){do ln.push(ln[0].slice());while(++k<4);Fi.push(ln),ln=[]}},polygonEnd:i0,result:function(){if(!Fi.length)return null;var k=[],D=[];return Fi.forEach(function(q){xu(q)?k.push([q]):D.push(q)}),D.forEach(function(q){var R=q[0];k.some(function(G){if(n1(G[0],R))return G.push(q),!0})||k.push([q])}),Fi=[],k.length?k.length>1?{type:"MultiPolygon",coordinates:k}:{type:"Polygon",coordinates:k[0]}:null}};function kf(k){var D=k(_,0)[0]-k(-_,0)[0];function q(R,G){var U=a(R)<_,j=k(U?R:R>0?R-x:R+x,G),ve=(j[0]-j[1])*T,de=(j[0]+j[1])*T;if(U)return[ve,de];var fe=D*T,pe=ve>0^de>0?-1:1;return[pe*ve-m(de)*fe,pe*de-m(ve)*fe]}return k.invert&&(q.invert=function(R,G){var U=(R+G)*T,j=(G-R)*T,ve=a(U)<.5*D&&a(j)<.5*D;if(!ve){var de=D*T,fe=U>0^j>0?-1:1,pe=-fe*R+(j>0?1:-1)*de,xe=-fe*G+(U>0?1:-1)*de;U=(-pe-xe)*T,j=(pe-xe)*T}var Se=k.invert(U,j);return ve||(Se[0]+=U>0?x:-x),Se}),r.geoProjection(q).rotate([-90,-90,45]).clipAngle(180-.001)}function O(){return kf(oa).scale(176.423)}function $(){return kf(Lo).scale(111.48)}function he(k,D){if(!(0<=(D=+D)&&D<=20))throw new Error("invalid digits");function q(fe){var pe=fe.length,xe=2,Se=new Array(pe);for(Se[0]=+fe[0].toFixed(D),Se[1]=+fe[1].toFixed(D);xe<pe;)Se[xe]=fe[xe],++xe;return Se}function R(fe){return fe.map(q)}function G(fe){for(var pe=q(fe[0]),xe=[pe],Se=1;Se<fe.length;Se++){var ze=q(fe[Se]);(ze.length>2||ze[0]!=pe[0]||ze[1]!=pe[1])&&(xe.push(ze),pe=ze)}return xe.length===1&&fe.length>1&&xe.push(q(fe[fe.length-1])),xe}function U(fe){return fe.map(G)}function j(fe){if(fe==null)return fe;var pe;switch(fe.type){case"GeometryCollection":pe={type:"GeometryCollection",geometries:fe.geometries.map(j)};break;case"Point":pe={type:"Point",coordinates:q(fe.coordinates)};break;case"MultiPoint":pe={type:fe.type,coordinates:R(fe.coordinates)};break;case"LineString":pe={type:fe.type,coordinates:G(fe.coordinates)};break;case"MultiLineString":case"Polygon":pe={type:fe.type,coordinates:U(fe.coordinates)};break;case"MultiPolygon":pe={type:"MultiPolygon",coordinates:fe.coordinates.map(U)};break;default:return fe}return fe.bbox!=null&&(pe.bbox=fe.bbox),pe}function ve(fe){var pe={type:"Feature",properties:fe.properties,geometry:j(fe.geometry)};return fe.id!=null&&(pe.id=fe.id),fe.bbox!=null&&(pe.bbox=fe.bbox),pe}if(k!=null)switch(k.type){case"Feature":return ve(k);case"FeatureCollection":{var de={type:"FeatureCollection",features:k.features.map(ve)};return k.bbox!=null&&(de.bbox=k.bbox),de}default:return j(k)}return k}function se(k){var D=p(k);function q(R,G){var U=D?y(R*D/2)/D:R/2;if(!G)return[2*U,-k];var j=2*n(U*p(G)),ve=1/y(G);return[p(j)*ve,G+(1-o(j))*ve-k]}return q.invert=function(R,G){if(a(G+=k)<b)return[D?2*n(D*R/2)/D:R,0];var U=R*R+G*G,j=0,ve=10,de;do{var fe=y(j),pe=1/o(j),xe=U-2*G*j+j*j;j-=de=(fe*xe+2*(j-G))/(2+xe*pe*pe+2*(j-G)*fe)}while(a(de)>b&&--ve>0);var Se=R*(fe=y(j)),ze=y(a(G)<a(j+1/fe)?I(Se)*.5:V(Se)*.5+x/4)/p(j);return[D?2*n(D*ze)/D:2*ze,j]},q}function we(){return Br(se).scale(131.215)}var He=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];He.forEach(function(k){k[1]*=1.0144});function We(k,D){var q=c(18,a(D)*36/x),R=s(q),G=q-R,U=(xe=He[R])[0],j=xe[1],ve=(xe=He[++R])[0],de=xe[1],fe=(xe=He[c(19,++R)])[0],pe=xe[1],xe;return[k*(ve+G*(fe-U)/2+G*G*(fe-2*ve+U)/2),(D>0?_:-_)*(de+G*(pe-j)/2+G*G*(pe-2*de+j)/2)]}We.invert=function(k,D){var q=D/_,R=q*90,G=c(18,a(R/5)),U=f(0,s(G));do{var j=He[U][1],ve=He[U+1][1],de=He[c(19,U+2)][1],fe=de-j,pe=de-2*ve+j,xe=2*(a(q)-ve)/fe,Se=pe/fe,ze=xe*(1-Se*xe*(1-2*Se*xe));if(ze>=0||U===1){R=(D>=0?5:-5)*(ze+G);var Ke=50,or;do G=c(18,a(R)/5),U=s(G),ze=G-U,j=He[U][1],ve=He[U+1][1],de=He[c(19,U+2)][1],R-=(or=(D>=0?_:-_)*(ve+ze*(de-j)/2+ze*ze*(de-2*ve+j)/2)-D)*z;while(a(or)>C&&--Ke>0);break}}while(--U>=0);var kr=He[U][0],Kr=He[U+1][0],ct=He[c(19,U+2)][0];return[k/(Kr+ze*(ct-kr)/2+ze*ze*(ct-2*Kr+kr)/2),R*B]};function er(){return r.geoProjection(We).scale(152.63)}function nr(k){function D(q,R){var G=o(R),U=(k-1)/(k-G*o(q));return[U*G*p(q),U*p(R)]}return D.invert=function(q,R){var G=q*q+R*R,U=H(G),j=(k-H(1-G*(k+1)/(k-1)))/((k-1)/U+U/(k-1));return[i(q*j,U*H(1-j*j)),U?I(R*j/U):0]},D}function br(k,D){var q=nr(k);if(!D)return q;var R=o(D),G=p(D);function U(j,ve){var de=q(j,ve),fe=de[1],pe=fe*G/(k-1)+R;return[de[0]*R/pe,fe/pe]}return U.invert=function(j,ve){var de=(k-1)/(k-1-ve*G);return q.invert(de*j,de*ve*R)},U}function $e(){var k=2,D=0,q=r.geoProjectionMutator(br),R=q(k,D);return R.distance=function(G){return arguments.length?q(k=+G,D):k},R.tilt=function(G){return arguments.length?q(k,D=G*B):D*z},R.scale(432.147).clipAngle(V(1/k)*z-1e-6)}var lr=1e-4,ir=1e4,Mr=-180,Fr=Mr+lr,lt=180,rt=lt-lr,ut=-90,ft=ut+lr,Pr=90,Gr=Pr-lr;function vt(k){return k.length>0}function xt(k){return Math.floor(k*ir)/ir}function Xt(k){return k===ut||k===Pr?[0,k]:[Mr,xt(k)]}function la(k){var D=k[0],q=k[1],R=!1;return D<=Fr?(D=Mr,R=!0):D>=rt&&(D=lt,R=!0),q<=ft?(q=ut,R=!0):q>=Gr&&(q=Pr,R=!0),R?[D,q]:k}function $t(k){return k.map(la)}function xa(k,D,q){for(var R=0,G=k.length;R<G;++R){var U=k[R].slice();q.push({index:-1,polygon:D,ring:U});for(var j=0,ve=U.length;j<ve;++j){var de=U[j],fe=de[0],pe=de[1];if(fe<=Fr||fe>=rt||pe<=ft||pe>=Gr){U[j]=la(de);for(var xe=j+1;xe<ve;++xe){var Se=U[xe],ze=Se[0],Ke=Se[1];if(ze>Fr&&ze<rt&&Ke>ft&&Ke<Gr)break}if(xe===j+1)continue;if(j){var or={index:-1,polygon:D,ring:U.slice(0,j+1)};or.ring[or.ring.length-1]=Xt(pe),q[q.length-1]=or}else q.pop();if(xe>=ve)break;q.push({index:-1,polygon:D,ring:U=U.slice(xe-1)}),U[0]=Xt(U[0][1]),j=-1,ve=U.length}}}}function Lt(k){var D,q=k.length,R={},G={},U,j,ve,de,fe;for(D=0;D<q;++D){if(U=k[D],j=U.ring[0],de=U.ring[U.ring.length-1],j[0]===de[0]&&j[1]===de[1]){U.polygon.push(U.ring),k[D]=null;continue}U.index=D,R[j]=G[de]=U}for(D=0;D<q;++D)if(U=k[D],U){if(j=U.ring[0],de=U.ring[U.ring.length-1],ve=G[j],fe=R[de],delete R[j],delete G[de],j[0]===de[0]&&j[1]===de[1]){U.polygon.push(U.ring);continue}ve?(delete G[j],delete R[ve.ring[0]],ve.ring.pop(),k[ve.index]=null,U={index:-1,polygon:ve.polygon,ring:ve.ring.concat(U.ring)},ve===fe?U.polygon.push(U.ring):(U.index=q++,k.push(R[U.ring[0]]=G[U.ring[U.ring.length-1]]=U))):fe?(delete R[de],delete G[fe.ring[fe.ring.length-1]],U.ring.pop(),U={index:q++,polygon:fe.polygon,ring:U.ring.concat(fe.ring)},k[fe.index]=null,k.push(R[U.ring[0]]=G[U.ring[U.ring.length-1]]=U)):(U.ring.push(U.ring[0]),U.polygon.push(U.ring))}}function An(k){var D={type:"Feature",geometry:ja(k.geometry)};return k.id!=null&&(D.id=k.id),k.bbox!=null&&(D.bbox=k.bbox),k.properties!=null&&(D.properties=k.properties),D}function ja(k){if(k==null)return k;var D,q,R,G;switch(k.type){case"GeometryCollection":D={type:"GeometryCollection",geometries:k.geometries.map(ja)};break;case"Point":D={type:"Point",coordinates:la(k.coordinates)};break;case"MultiPoint":case"LineString":D={type:k.type,coordinates:$t(k.coordinates)};break;case"MultiLineString":D={type:"MultiLineString",coordinates:k.coordinates.map($t)};break;case"Polygon":{var U=[];xa(k.coordinates,U,q=[]),Lt(q),D={type:"Polygon",coordinates:U};break}case"MultiPolygon":{q=[],R=-1,G=k.coordinates.length;for(var j=new Array(G);++R<G;)xa(k.coordinates[R],j[R]=[],q);Lt(q),D={type:"MultiPolygon",coordinates:j.filter(vt)};break}default:return k}return k.bbox!=null&&(D.bbox=k.bbox),D}function wa(k){if(k==null)return k;switch(k.type){case"Feature":return An(k);case"FeatureCollection":{var D={type:"FeatureCollection",features:k.features.map(An)};return k.bbox!=null&&(D.bbox=k.bbox),D}default:return ja(k)}}function Vr(k,D){var q=y(D/2),R=p(M*q);return[k*(.74482-.34588*R*R),1.70711*q]}Vr.invert=function(k,D){var q=D/1.70711,R=p(M*q);return[k/(.74482-.34588*R*R),2*n(q)]};function jt(){return r.geoProjection(Vr).scale(146.153)}function tn(k,D,q){var R=r.geoInterpolate(D,q),G=R(.5),U=r.geoRotation([-G[0],-G[1]])(D),j=R.distance/2,ve=-I(p(U[1]*B)/p(j)),de=[-G[0],-G[1],-(U[0]>0?x-ve:ve)*z],fe=r.geoProjection(k(j)).rotate(de),pe=r.geoRotation(de),xe=fe.center;return delete fe.rotate,fe.center=function(Se){return arguments.length?xe(pe(Se)):pe.invert(xe())},fe.clipAngle(90)}function Ln(k){var D=o(k);function q(R,G){var U=r.geoGnomonicRaw(R,G);return U[0]*=D,U}return q.invert=function(R,G){return r.geoGnomonicRaw.invert(R/D,G)},q}function di(){return vo([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function vo(k,D){return tn(Ln,k,D)}function Xi(k){if(!(k*=2))return r.geoAzimuthalEquidistantRaw;var D=-k/2,q=-D,R=k*k,G=y(q),U=.5/p(q);function j(ve,de){var fe=V(o(de)*o(ve-D)),pe=V(o(de)*o(ve-q)),xe=de<0?-1:1;return fe*=fe,pe*=pe,[(fe-pe)/(2*k),xe*H(4*R*pe-(R-fe+pe)*(R-fe+pe))/(2*k)]}return j.invert=function(ve,de){var fe=de*de,pe=o(H(fe+(Se=ve+D)*Se)),xe=o(H(fe+(Se=ve+q)*Se)),Se,ze;return[i(ze=pe-xe,Se=(pe+xe)*G),(de<0?-1:1)*V(H(Se*Se+ze*ze)*U)]},j}function Cl(){return Ei([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ei(k,D){return tn(Xi,k,D)}function Sl(k,D){if(a(D)<b)return[k,0];var q=a(D/_),R=I(q);if(a(k)<b||a(a(D)-_)<b)return[0,m(D)*x*y(R/2)];var G=o(R),U=a(x/k-k/x)/2,j=U*U,ve=G/(q+G-1),de=ve*(2/q-1),fe=de*de,pe=fe+j,xe=ve-fe,Se=j+ve;return[m(k)*x*(U*xe+H(j*xe*xe-pe*(ve*ve-fe)))/pe,m(D)*x*(de*Se-U*H((j+1)*pe-Se*Se))/pe]}Sl.invert=function(k,D){if(a(D)<b)return[k,0];if(a(k)<b)return[0,_*p(2*n(D/x))];var q=(k/=x)*k,R=(D/=x)*D,G=q+R,U=G*G,j=-a(D)*(1+G),ve=j-2*R+q,de=-2*j+1+2*R+U,fe=R/de+(2*ve*ve*ve/(de*de*de)-9*j*ve/(de*de))/27,pe=(j-ve*ve/(3*de))/de,xe=2*H(-pe/3),Se=V(3*fe/(pe*xe))/3;return[x*(G-1+H(1+2*(q-R)+U))/(2*k),m(D)*x*(-xe*o(Se+x/3)-ve/(3*de))]};function xs(){return r.geoProjection(Sl).scale(79.4183)}function u0(k,D){if(a(D)<b)return[k,0];var q=a(D/_),R=I(q);if(a(k)<b||a(a(D)-_)<b)return[0,m(D)*x*y(R/2)];var G=o(R),U=a(x/k-k/x)/2,j=U*U,ve=G*(H(1+j)-U*G)/(1+j*q*q);return[m(k)*x*ve,m(D)*x*H(1-ve*(2*U+ve))]}u0.invert=function(k,D){if(!k)return[0,_*p(2*n(D/x))];var q=a(k/x),R=(1-q*q-(D/=x)*D)/(2*q),G=R*R,U=H(G+1);return[m(k)*x*(U-R),m(D)*_*p(2*i(H((1-2*R*q)*(R+U)-q),H(U+R+q)))]};function l1(){return r.geoProjection(u0).scale(79.4183)}function s1(k,D){if(a(D)<b)return[k,0];var q=D/_,R=I(q);if(a(k)<b||a(a(D)-_)<b)return[0,x*y(R/2)];var G=(x/k-k/x)/2,U=q/(1+o(R));return[x*(m(k)*H(G*G+1-U*U)-G),x*U]}s1.invert=function(k,D){if(!D)return[k,0];var q=D/x,R=(x*x*(1-q*q)-k*k)/(2*x*k);return[k?x*(m(k)*H(R*R+1)-R):0,_*p(2*n(q))]};function gd(){return r.geoProjection(s1).scale(79.4183)}function Cf(k,D){if(!D)return[k,0];var q=a(D);if(!k||q===_)return[0,D];var R=q/_,G=R*R,U=(8*R-G*(G+2)-5)/(2*G*(R-1)),j=U*U,ve=R*U,de=G+j+2*ve,fe=R+3*U,pe=k/_,xe=pe+1/pe,Se=m(a(k)-_)*H(xe*xe-4),ze=Se*Se,Ke=de*(G+j*ze-1)+(1-G)*(G*(fe*fe+4*j)+12*ve*j+4*j*j),or=(Se*(de+j-1)+2*H(Ke))/(4*de+ze);return[m(k)*_*or,m(D)*_*H(1+Se*a(or)-or*or)]}Cf.invert=function(k,D){var q;if(!k||!D)return[k,D];D/=x;var R=m(k)*k/_,G=(R*R-1+4*D*D)/a(R),U=G*G,j=2*D,ve=50;do{var de=j*j,fe=(8*j-de*(de+2)-5)/(2*de*(j-1)),pe=(3*j-de*j-10)/(2*de*j),xe=fe*fe,Se=j*fe,ze=j+fe,Ke=ze*ze,or=j+3*fe,kr=Ke*(de+xe*U-1)+(1-de)*(de*(or*or+4*xe)+xe*(12*Se+4*xe)),Kr=-2*ze*(4*Se*xe+(1-4*de+3*de*de)*(1+pe)+xe*(-6+14*de-U+(-8+8*de-2*U)*pe)+Se*(-8+12*de+(-10+10*de-U)*pe)),ct=H(kr),ht=G*(Ke+xe-1)+2*ct-R*(4*Ke+U),pt=G*(2*fe*pe+2*ze*(1+pe))+Kr/ct-8*ze*(G*(-1+xe+Ke)+2*ct)*(1+pe)/(U+4*Ke);j-=q=ht/pt}while(q>b&&--ve>0);return[m(k)*(H(G*G+4)+G)*x/4,_*j]};function ho(){return r.geoProjection(Cf).scale(127.16)}function yd(k,D,q,R,G){function U(j,ve){var de=q*p(R*ve),fe=H(1-de*de),pe=H(2/(1+fe*o(j*=G)));return[k*fe*pe*p(j),D*de*pe]}return U.invert=function(j,ve){var de=j/k,fe=ve/D,pe=H(de*de+fe*fe),xe=2*I(pe/2);return[i(j*y(xe),k*pe)/G,pe&&I(ve*p(xe)/(D*q*pe))/R]},U}function bd(k,D,q,R){var G=x/3;k=f(k,b),D=f(D,b),k=c(k,_),D=c(D,x-b),q=f(q,0),q=c(q,100-b),R=f(R,b);var U=q/100+1,j=R/100,ve=V(U*o(G))/G,de=p(k)/p(ve*_),fe=D/x,pe=H(j*p(k/2)/p(D/2)),xe=pe/H(fe*de*ve),Se=1/(pe*H(fe*de*ve));return yd(xe,Se,de,ve,fe)}function u1(){var k=65*B,D=60*B,q=20,R=200,G=r.geoProjectionMutator(bd),U=G(k,D,q,R);return U.poleline=function(j){return arguments.length?G(k=+j*B,D,q,R):k*z},U.parallels=function(j){return arguments.length?G(k,D=+j*B,q,R):D*z},U.inflation=function(j){return arguments.length?G(k,D,q=+j,R):q},U.ratio=function(j){return arguments.length?G(k,D,q,R=+j):R},U.scale(163.775)}function Z2(){return u1().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var _d=4*x+3*H(3),xd=2*H(2*x*H(3)/_d),wd=dr(xd*H(3)/x,xd,_d/6);function f1(){return r.geoProjection(wd).scale(176.84)}function Sf(k,D){return[k*H(1-3*D*D/(x*x)),D]}Sf.invert=function(k,D){return[k/H(1-3*D*D/(x*x)),D]};function Ad(){return r.geoProjection(Sf).scale(152.63)}function $2(k,D){var q=o(D),R=o(k)*q,G=1-R,U=o(k=i(p(k)*q,-p(D))),j=p(k);return q=H(1-R*R),[j*q-U*G,-U*q-j*G]}$2.invert=function(k,D){var q=(k*k+D*D)/-2,R=H(-q*(2+q)),G=D*q+k*R,U=k*q-D*R,j=H(U*U+G*G);return[i(R*G,j*(1+q)),j?-I(R*U/j):0]};function Ay(){return r.geoProjection($2).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function J2(k,D){var q=De(k,D);return[(q[0]+k/_)/2,(q[1]+D)/2]}J2.invert=function(k,D){var q=k,R=D,G=25;do{var U=o(R),j=p(R),ve=p(2*R),de=j*j,fe=U*U,pe=p(q),xe=o(q/2),Se=p(q/2),ze=Se*Se,Ke=1-fe*xe*xe,or=Ke?V(U*xe)*H(kr=1/Ke):kr=0,kr,Kr=.5*(2*or*U*Se+q/_)-k,ct=.5*(or*j+R)-D,ht=.5*kr*(fe*ze+or*U*xe*de)+.5/_,pt=kr*(pe*ve/4-or*j*Se),yt=.125*kr*(ve*Se-or*j*fe*pe),fa=.5*kr*(de*xe+or*ze*U)+.5,Fa=pt*yt-fa*ht,Ot=(ct*pt-Kr*fa)/Fa,Wa=(Kr*yt-ct*ht)/Fa;q-=Ot,R-=Wa}while((a(Ot)>b||a(Wa)>b)&&--G>0);return[q,R]};function ji(){return r.geoProjection(J2).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=Me,e.geoAiryRaw=ce,e.geoAitoff=Ie,e.geoAitoffRaw=De,e.geoArmadillo=ke,e.geoArmadilloRaw=Ue,e.geoAugust=W,e.geoAugustRaw=je,e.geoBaker=J,e.geoBakerRaw=K,e.geoBerghaus=_e,e.geoBerghausRaw=ue,e.geoBertin1953=sr,e.geoBertin1953Raw=Re,e.geoBoggs=Ar,e.geoBoggsRaw=Oe,e.geoBonne=yr,e.geoBonneRaw=Xe,e.geoBottomley=pr,e.geoBottomleyRaw=Cr,e.geoBromley=Rr,e.geoBromleyRaw=xr,e.geoChamberlin=Qr,e.geoChamberlinRaw=Sr,e.geoChamberlinAfrica=jr,e.geoCollignon=Wr,e.geoCollignonRaw=qr,e.geoCraig=Pe,e.geoCraigRaw=Ae,e.geoCraster=It,e.geoCrasterRaw=gr,e.geoCylindricalEqualArea=ia,e.geoCylindricalEqualAreaRaw=Yt,e.geoCylindricalStereographic=Ht,e.geoCylindricalStereographicRaw=Ta,e.geoEckert1=ma,e.geoEckert1Raw=Zt,e.geoEckert2=xn,e.geoEckert2Raw=ra,e.geoEckert3=Wn,e.geoEckert3Raw=on,e.geoEckert4=ua,e.geoEckert4Raw=Jr,e.geoEckert5=ga,e.geoEckert5Raw=zt,e.geoEckert6=_a,e.geoEckert6Raw=ba,e.geoEisenlohr=wn,e.geoEisenlohrRaw=Na,e.geoFahey=Ea,e.geoFaheyRaw=na,e.geoFoucaut=Eo,e.geoFoucautRaw=Da,e.geoFoucautSinusoidal=$s,e.geoFoucautSinusoidalRaw=Bi,e.geoGilbert=Js,e.geoGingery=dl,e.geoGingeryRaw=hl,e.geoGinzburg4=ns,e.geoGinzburg4Raw=Si,e.geoGinzburg5=Ks,e.geoGinzburg5Raw=is,e.geoGinzburg6=Qs,e.geoGinzburg6Raw=os,e.geoGinzburg8=st,e.geoGinzburg8Raw=ot,e.geoGinzburg9=Ur,e.geoGinzburg9Raw=Gt,e.geoGringorten=Un,e.geoGringortenRaw=oa,e.geoGuyou=eu,e.geoGuyouRaw=Lo,e.geoHammer=ar,e.geoHammerRaw=Ne,e.geoHammerRetroazimuthal=ru,e.geoHammerRetroazimuthalRaw=of,e.geoHealpix=fs,e.geoHealpixRaw=qo,e.geoHill=Gc,e.geoHillRaw=sf,e.geoHomolosine=B2,e.geoHomolosineRaw=ou,e.geoHufnagel=uf,e.geoHufnagelRaw=yl,e.geoHyperelliptical=zo,e.geoHyperellipticalRaw=Ro,e.geoInterrupt=so,e.geoInterruptedBoggs=H2,e.geoInterruptedHomolosine=bl,e.geoInterruptedMollweide=xl,e.geoInterruptedMollweideHemispheres=lu,e.geoInterruptedSinuMollweide=su,e.geoInterruptedSinusoidal=wl,e.geoKavrayskiy7=ds,e.geoKavrayskiy7Raw=hs,e.geoLagrange=$u,e.geoLagrangeRaw=Zu,e.geoLarrivee=Ku,e.geoLarriveeRaw=Ju,e.geoLaskowski=yn,e.geoLaskowskiRaw=ti,e.geoLittrow=fo,e.geoLittrowRaw=Gn,e.geoLoximuthal=Al,e.geoLoximuthalRaw=fu,e.geoMiller=cf,e.geoMillerRaw=ps,e.geoModifiedStereographic=Gi,e.geoModifiedStereographicRaw=Xc,e.geoModifiedStereographicAlaska=pf,e.geoModifiedStereographicGs48=jc,e.geoModifiedStereographicGs50=Wc,e.geoModifiedStereographicMiller=cu,e.geoModifiedStereographicLee=vu,e.geoMollweide=cr,e.geoMollweideRaw=Ze,e.geoMtFlatPolarParabolic=Zc,e.geoMtFlatPolarParabolicRaw=e0,e.geoMtFlatPolarQuartic=G2,e.geoMtFlatPolarQuarticRaw=mf,e.geoMtFlatPolarSinusoidal=r0,e.geoMtFlatPolarSinusoidalRaw=Bo,e.geoNaturalEarth2=du,e.geoNaturalEarth2Raw=ms,e.geoNellHammer=gf,e.geoNellHammerRaw=pu,e.geoInterruptedQuarticAuthalic=$c,e.geoNicolosi=Jc,e.geoNicolosiRaw=yf,e.geoPatterson=Kc,e.geoPattersonRaw=Mf,e.geoPolyconic=Qc,e.geoPolyconicRaw=Ml,e.geoPolyhedral=ys,e.geoPolyhedralButterfly=gu,e.geoPolyhedralCollignon=W2,e.geoPolyhedralWaterman=bu,e.geoProject=o0,e.geoGringortenQuincuncial=O,e.geoPeirceQuincuncial=$,e.geoPierceQuincuncial=$,e.geoQuantize=he,e.geoQuincuncial=kf,e.geoRectangularPolyconic=we,e.geoRectangularPolyconicRaw=se,e.geoRobinson=er,e.geoRobinsonRaw=We,e.geoSatellite=$e,e.geoSatelliteRaw=br,e.geoSinuMollweide=Yc,e.geoSinuMollweideRaw=iu,e.geoSinusoidal=Be,e.geoSinusoidalRaw=Qe,e.geoStitch=wa,e.geoTimes=jt,e.geoTimesRaw=Vr,e.geoTwoPointAzimuthal=vo,e.geoTwoPointAzimuthalRaw=Ln,e.geoTwoPointAzimuthalUsa=di,e.geoTwoPointEquidistant=Ei,e.geoTwoPointEquidistantRaw=Xi,e.geoTwoPointEquidistantUsa=Cl,e.geoVanDerGrinten=xs,e.geoVanDerGrintenRaw=Sl,e.geoVanDerGrinten2=l1,e.geoVanDerGrinten2Raw=u0,e.geoVanDerGrinten3=gd,e.geoVanDerGrinten3Raw=s1,e.geoVanDerGrinten4=ho,e.geoVanDerGrinten4Raw=Cf,e.geoWagner=u1,e.geoWagner7=Z2,e.geoWagnerRaw=bd,e.geoWagner4=f1,e.geoWagner4Raw=wd,e.geoWagner6=Ad,e.geoWagner6Raw=Sf,e.geoWiechel=Ay,e.geoWiechelRaw=$2,e.geoWinkel3=ji,e.geoWinkel3Raw=J2,Object.defineProperty(e,"__esModule",{value:!0})}))});var eG=le((V8e,QU)=>{"use strict";var en=Ft(),j8=mr(),Kge=_t(),q2=Math.PI/180,qc=180/Math.PI,Z8={cursor:"pointer"},$8={cursor:"auto"};function Qge(e,r){var t=e.projection,a;return r._isScoped?a=e3e:r._isClipped?a=t3e:a=r3e,a(e,t)}QU.exports=Qge;function J8(e,r){return en.behavior.zoom().translate(r.translate()).scaleExtent(r.scaleExtent()).scale(r.scale())}function K8(e,r,t){var a=e.id,n=e.graphDiv,i=n.layout,o=i[a],l=n._fullLayout,s=l[a],u={},f={};function c(h,d){u[a+"."+h]=j8.nestedProperty(o,h).get(),Kge.call("_storeDirectGUIEdit",i,l._preGUI,u);var m=j8.nestedProperty(s,h);m.get()!==d&&(m.set(d),j8.nestedProperty(o,h).set(d),f[a+"."+h]=d)}t(c),c("projection.scale",r.scale()/e.fitScale),c("fitbounds",!1),n.emit("plotly_relayout",f)}function e3e(e,r){var t=J8(e,r);function a(){en.select(this).style(Z8)}function n(){r.scale(en.event.scale).translate(en.event.translate),e.render(!0);var l=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":l[0],"geo.center.lat":l[1]})}function i(l){var s=r.invert(e.midPt);l("center.lon",s[0]),l("center.lat",s[1])}function o(){en.select(this).style($8),K8(e,r,i)}return t.on("zoomstart",a).on("zoom",n).on("zoomend",o),t}function r3e(e,r){var t=J8(e,r),a=2,n,i,o,l,s,u,f,c,h;function d(x){return r.invert(x)}function m(x){var _=d(x);if(!_)return!0;var M=r(_);return Math.abs(M[0]-x[0])>a||Math.abs(M[1]-x[1])>a}function p(){en.select(this).style(Z8);let{x,y:_,width:M,height:T}=this.getBBox();n=en.event.sourceEvent?en.mouse(this):[x+M/2,_+T/2],i=r.rotate(),o=r.translate(),l=i,s=d(n)}function y(){let{x,y:_,width:M,height:T}=this.getBBox();if(u=en.event.sourceEvent?en.mouse(this):[x+M/2,_+T/2],m(n)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(en.event.scale),r.translate([o[0],en.event.translate[1]]),s?d(u)&&(c=d(u),f=[l[0]+(c[0]-s[0]),i[1],i[2]],r.rotate(f),l=f):(n=u,s=d(n)),h=!0,e.render(!0);var A=r.rotate(),E=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":E[0],"geo.center.lat":E[1],"geo.projection.rotation.lon":-A[0]})}function b(){en.select(this).style($8),h&&K8(e,r,C)}function C(x){var _=r.rotate(),M=r.invert(e.midPt);x("projection.rotation.lon",-_[0]),x("center.lon",M[0]),x("center.lat",M[1])}return t.on("zoomstart",p).on("zoom",y).on("zoomend",b),t}function t3e(e,r){var t={r:r.rotate(),k:r.scale()},a=J8(e,r),n=f3e(a,"zoomstart","zoom","zoomend"),i=0,o=a.on,l;a.on("zoomstart",function(){en.select(this).style(Z8);let{x:h,y:d,width:m,height:p}=this.getBBox(),y=en.event.sourceEvent?en.mouse(this):[h+m/2,d+p/2],b=r.rotate(),C=b,x=r.translate(),_=a3e(b);l=ly(r,y),o.call(a,"zoom",function(){let{x:M,y:T,width:A,height:E}=this.getBBox(),P=en.event.sourceEvent?en.mouse(this):[M+A/2,T+E/2];if(r.scale(t.k=en.event.scale),!l)y=P,l=ly(r,y);else if(ly(r,P)){r.rotate(b).translate(x);var z=ly(r,P),B=i3e(l,z),X=l3e(n3e(_,B)),I=t.r=o3e(X,l,C);(!isFinite(I[0])||!isFinite(I[1])||!isFinite(I[2]))&&(I=C),r.rotate(I),C=I}u(n.of(this,arguments))}),s(n.of(this,arguments))}).on("zoomend",function(){en.select(this).style($8),o.call(a,"zoom",null),f(n.of(this,arguments)),K8(e,r,c)}).on("zoom.redraw",function(){e.render(!0);var h=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function s(h){i++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function f(h){--i||h({type:"zoomend"})}function c(h){var d=r.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return en.rebind(a,n,"on")}function ly(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&s3e(t)}function a3e(e){var r=.5*e[0]*q2,t=.5*e[1]*q2,a=.5*e[2]*q2,n=Math.sin(r),i=Math.cos(r),o=Math.sin(t),l=Math.cos(t),s=Math.sin(a),u=Math.cos(a);return[i*l*u+n*o*s,n*l*u-i*o*s,i*o*u+n*l*s,i*l*s-n*o*u]}function n3e(e,r){var t=e[0],a=e[1],n=e[2],i=e[3],o=r[0],l=r[1],s=r[2],u=r[3];return[t*o-a*l-n*s-i*u,t*l+a*o+n*u-i*s,t*s-a*u+n*o+i*l,t*u+a*s-n*l+i*o]}function i3e(e,r){if(!(!e||!r)){var t=u3e(e,r),a=Math.sqrt(KU(t,t)),n=.5*Math.acos(Math.max(-1,Math.min(1,KU(e,r)))),i=Math.sin(n)/a;return a&&[Math.cos(n),t[2]*i,-t[1]*i,t[0]*i]}}function o3e(e,r,t){var a=W8(r,2,e[0]);a=W8(a,1,e[1]),a=W8(a,0,e[2]-t[2]);var n=r[0],i=r[1],o=r[2],l=a[0],s=a[1],u=a[2],f=Math.atan2(i,n)*qc,c=Math.sqrt(n*n+i*i),h,d;Math.abs(s)>c?(d=(s>0?90:-90)-f,h=0):(d=Math.asin(s/c)*qc-f,h=Math.sqrt(c*c-s*s));var m=180-d-2*f,p=(Math.atan2(u,l)-Math.atan2(o,h))*qc,y=(Math.atan2(u,l)-Math.atan2(o,-h))*qc,b=$U(t[0],t[1],d,p),C=$U(t[0],t[1],m,y);return b<=C?[d,p,t[2]]:[m,y,t[2]]}function $U(e,r,t,a){var n=JU(t-e),i=JU(a-r);return Math.sqrt(n*n+i*i)}function JU(e){return(e%360+540)%360-180}function W8(e,r,t){var a=t*q2,n=e.slice(),i=r===0?1:0,o=r===2?1:2,l=Math.cos(a),s=Math.sin(a);return n[i]=e[i]*l-e[o]*s,n[o]=e[o]*l+e[i]*s,n}function l3e(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*qc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*qc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*qc]}function s3e(e){var r=e[0]*q2,t=e[1]*q2,a=Math.cos(t);return[a*Math.cos(r),a*Math.sin(r),Math.sin(t)]}function KU(e,r){for(var t=0,a=0,n=e.length;a<n;++a)t+=e[a]*r[a];return t}function u3e(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function f3e(e){for(var r=0,t=arguments.length,a=[];++r<t;)a.push(arguments[r]);var n=en.dispatch.apply(null,a);return n.of=function(i,o){return function(l){var s;try{s=l.sourceEvent=en.event,l.target=e,en.event=l,n[l.type].apply(i,o)}finally{en.event=s}}},n}});var sG=le((X8e,lG)=>{"use strict";var js=Ft(),r_=Q3(),c3e=r_.geoPath,v3e=r_.geoDistance,h3e=ZU(),d3e=_t(),cd=mr(),p3e=cd.strTranslate,sy=qt(),fd=ha(),rG=Yl(),m3e=Sn(),e_=Oa(),{concatExtremes:g3e,getAutoRange:tG,makePadFn:aG}=L0(),Q8=Zo(),y3e=Iu().prepSelect,b3e=Iu().clearOutline,_3e=Iu().selectOnClick,x3e=eG(),Ni=(od(),Tr(id)),t_=L2(),{unwrapLonRange:w3e}=t_,iG=U3(),A3e=C8().feature;function oG(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var ts=oG.prototype;lG.exports=function(r){return new oG(r)};ts.plot=function(e,r,t,a){var n=this;if(a)return n.update(e,r,!0);n._geoCalcData=e,n._fullLayout=r;var i=r[this.id],o=[],l=!1;for(var s in Ni.layerNameToAdjective)if(s!=="frame"&&i["show"+s]){l=!0;break}for(var u=!1,f=0;f<e.length;f++){var c=e[0][0].trace;c._geo=n,c.locationmode&&(l=!0);var h=c.marker;if(h){var d=h.angle,m=h.angleref;(d||m==="north"||m==="previous")&&(u=!0)}}if(this._hasMarkerAngles=u,l){var p=iG.getTopojsonName(i);(n.topojson===null||p!==n.topojsonName)&&(n.topojsonName=p,PlotlyGeoAssets.topojson[n.topojsonName]===void 0&&o.push(n.fetchTopojson()))}o=o.concat(t_.fetchTraceGeoData(e)),t.push(new Promise(function(y,b){Promise.all(o).then(function(){n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(e,r),y()}).catch(b)}))};ts.fetchTopojson=function(){var e=this,r=iG.getTopojsonPath(e.topojsonURL,e.topojsonName);return new Promise(function(t,a){js.json(r,function(n,i){if(n)return n.status===404?a(new Error(["plotly.js could not find topojson file at",r+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):a(new Error(["unexpected error while fetching topojson file at",r].join(" ")));PlotlyGeoAssets.topojson[e.topojsonName]=i,t()})})};ts.update=function(e,r,t){var a=r[this.id];this.hasChoropleth=!1;for(var n=0;n<e.length;n++){var i=e[n],o=i[0].trace;o.type==="choropleth"&&(this.hasChoropleth=!0),o.visible===!0&&o._length>0&&o._module.calcGeoJSON(i,r)}if(!t){var l=this.updateProjection(e,r);if(l)return;(!this.viewInitial||this.scope!==a.scope)&&this.saveViewInitial(a)}this.scope=a.scope,this.updateBaseLayers(r,a),this.updateDims(r,a),this.updateFx(r,a),m3e.generalUpdatePerTraceModule(this.graphDiv,this,e,a);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};ts.updateProjection=function(e,r){var t=this.graphDiv,a=r[this.id],n=r._size,i=a.domain,o=a.projection,l=a.lonaxis,s=a.lataxis,u=l._ax,f=s._ax,c=this.projection=M3e(a),h=[[n.l+n.w*i.x[0],n.t+n.h*(1-i.y[1])],[n.l+n.w*i.x[1],n.t+n.h*(1-i.y[0])]],d=a.center||{},m=o.rotation||{},p=l.range||[],y=s.range||[];if(a.fitbounds){u._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],u.range=tG(t,u),f.range=tG(t,f);let H=[];for(let Ue of e){let ke=Ue[0].trace;ke.visible===!0&&ke._module.fitCoords&&H.push(ke._module.fitCoords(Ue,a))}let Q=g3e(t,u),oe=Q.min.reduce((Ue,{val:ke})=>Math.min(Ue,ke),1/0),te=Q.max.reduce((Ue,{val:ke})=>Math.max(Ue,ke),-1/0)-oe,ie=t_.boundsOfCoords(H.flat()),[ce,,Me]=ie||[],De=Me-ce;if(!!ie&&(te>360||te<360&&De<te)){let Ue=aG(r,u,0),ke=aG(r,u,1),je=Q.min.reduce((J,ue)=>Math.max(J,Ue(ue)),0),W=Q.max.reduce((J,ue)=>Math.max(J,ke(ue)),0),ee=u._length-je-W,me=ee>u._length/10?De*u._length/ee:De,K=(ce+Me)/2;u.range=[K-me/2,K+me/2]}var b=(u.range[0]+u.range[1])/2,C=(f.range[0]+f.range[1])/2;if(a._isScoped)d={lon:b,lat:C};else if(a._isClipped){d={lon:b,lat:C},m={lon:b,lat:C,roll:m.roll};var x=o.type,_=Ni.lonaxisSpan[x]/2||180,M=Ni.lataxisSpan[x]/2||90;p=[b-_,b+_],y=[C-M,C+M]}else d={lon:b,lat:C},m={lon:b,lat:m.lat,roll:m.roll}}c.center([d.lon-m.lon,d.lat-m.lat]).rotate([-m.lon,-m.lat,m.roll]).parallels(o.parallels);var T=nG(p,y);c.fitExtent(h,T);var A=this.bounds=c.getBounds(T),E=this.fitScale=c.scale(),P=c.translate();if(c.scaleExtent=()=>{var oe;let{minscale:H}=o,Q=(oe=o.maxscale)!=null?oe:1/0;return[E*Math.min(H,Q),E*Math.max(H,Q)]},a.fitbounds){var z=c.getBounds(nG(u.range,f.range)),B=Math.min((A[1][0]-A[0][0])/(z[1][0]-z[0][0]),(A[1][1]-A[0][1])/(z[1][1]-z[0][1]));isFinite(B)?c.scale(B*E):cd.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*E);var X=this.midPt=[(A[0][0]+A[1][0])/2,(A[0][1]+A[1][1])/2];if(c.translate([P[0]+(X[0]-P[0]),P[1]+(X[1]-P[1])]).clipExtent(A),a._isAlbersUsa){var I=c([d.lon,d.lat]);if(I){var V=c.translate();c.translate([V[0]-(I[0]-V[0]),V[1]-(I[1]-V[1])])}}};ts.updateBaseLayers=function(e,r){var t=this,a=t.topojson,n=t.layers,i=t.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function l(h){return!!Ni.lineLayers[h]}function s(h){return!!Ni.fillLayers[h]}var u=this.hasChoropleth?Ni.layersForChoropleth:Ni.layers,f=u.filter(function(h){return l(h)||s(h)?r["show"+h]:o(h)?r[h].showgrid:!0}),c=t.framework.selectAll(".layer").data(f,String);c.exit().each(function(h){delete n[h],delete i[h],js.select(this).remove()}),c.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=n[h]=js.select(this);h==="bg"?t.bgRect=d.append("rect").style("pointer-events","all"):o(h)?i[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):l(h)?i[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):s(h)&&(i[h]=d.append("path").style("stroke","none"))}),c.order(),c.each(function(h){var d=i[h],m=Ni.layerNameToAdjective[h];h==="frame"?d.datum(Ni.sphereSVG):l(h)||s(h)?d.datum(A3e(a,a.objects[h])):o(h)&&d.datum(T3e(h,r,e)).call(sy.stroke,r[h].gridcolor).call(fd.dashLine,r[h].griddash,r[h].gridwidth),l(h)?d.call(sy.stroke,r[m+"color"]).call(fd.dashLine,"",r[m+"width"]):s(h)&&d.call(sy.fill,r[m+"color"])})};ts.updateDims=function(e,r){var t=this.bounds,a=(r.framewidth||0)/2,n=t[0][0]-a,i=t[0][1]-a,o=t[1][0]-n+a,l=t[1][1]-i+a;fd.setRect(this.clipRect,n,i,o,l),this.bgRect.call(fd.setRect,n,i,o,l).call(sy.fill,r.bgcolor),this.xaxis._offset=n,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};ts.updateFx=function(e,r){var t=this,a=t.graphDiv,n=t.bgRect,i=e.dragmode,o=e.clickmode;if(t.isStatic)return;function l(){var c=t.viewInitial,h={};for(var d in c)h[t.id+"."+d]=c[d];d3e.call("_guiRelayout",a,h),a.emit("plotly_doubleclick",null)}function s(c){return t.projection.invert([c[0]+t.xaxis._offset,c[1]+t.yaxis._offset])}var u=function(c,h){if(h.isRect){var d=c.range={};d[t.id]=[s([h.xmin,h.ymin]),s([h.xmax,h.ymax])]}else{var m=c.lassoPoints={};m[t.id]=h.map(s)}},f={element:t.bgRect.node(),gd:a,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:u},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id,clickFn:function(c){c===2&&b3e(a)}};if(i==="pan"){n.node().onmousedown=null;let c=x3e(t,r);if(n.call(c),!js.event){let h=t.projection.scale(),[d,m]=t.projection.scaleExtent();(h<d||h>m)&&c.event(n)}n.on("dblclick.zoom",l),a._context._scrollZoom.geo||n.on("wheel.zoom",null)}else(i==="select"||i==="lasso")&&(n.on(".zoom",null),f.prepFn=function(c,h,d){y3e(c,h,d,f,i)},Q8.init(f));n.on("mousemove",function(){var c=t.projection.invert(cd.getPositionFromD3Event());if(!c)return Q8.unhover(a,js.event);t.xaxis.p2c=function(){return c[0]},t.yaxis.p2c=function(){return c[1]},rG.hover(a,js.event,t.id)}),n.on("mouseout",function(){a._dragging||Q8.unhover(a,js.event)}),n.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&_3e(js.event,a,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&rG.click(a,js.event))})};ts.makeFramework=function(){var e=this,r=e.graphDiv,t=r._fullLayout,a="clip"+t._uid+e.id;e.clipDef=t._clips.append("clipPath").attr("id",a),e.clipRect=e.clipDef.append("rect"),e.framework=js.select(e.container).append("g").attr("class","geo "+e.id).call(fd.setClipUrl,a,r),e.project=function(n){var i=e.projection(n);return i?[i[0]-e.xaxis._offset,i[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(n){return e.project(n)[0]}},e.yaxis={_id:"y",c2p:function(n){return e.project(n)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},e_.setConvert(e.mockAxis,t)};ts.saveViewInitial=function(e){var r=e.center||{},t=e.projection,a=t.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":t.scale};var n;e._isScoped?n={"center.lon":r.lon,"center.lat":r.lat}:e._isClipped?n={"projection.rotation.lon":a.lon,"projection.rotation.lat":a.lat,"center.lon":r.lon,"center.lat":r.lat}:n={"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":a.lon},cd.extendFlat(this.viewInitial,n)};ts.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};ts._render=function(){var e=this.projection,r=e.getPath(),t;function a(i){var o=e(i.lonlat);return o?p3e(o[0],o[1]):null}function n(i){return e.isLonLatOverEdges(i.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",function(i){return r(i.geojson)});for(t in this.dataPoints)this.dataPoints[t].attr("display",n).attr("transform",a)};function M3e(e){var r=e.projection,t=r.type,a=Ni.projNames[t];a="geo"+cd.titleCase(a);for(var n=r_[a]||h3e[a],i=n(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?Ni.lonaxisSpan[t]/2:null,l=["center","rotate","parallels","clipExtent"],s=function(c){return c?i:[]},u=0;u<l.length;u++){var f=l[u];typeof i[f]!="function"&&(i[f]=s)}return i.isLonLatOverEdges=function(c){if(i(c)===null)return!0;if(o){var h=i.rotate(),d=v3e(c,[-h[0],-h[1]]),m=o*Math.PI/180;return d>m}else return!1},i.getPath=function(){return c3e().projection(i)},i.getBounds=function(c){return i.getPath().bounds(c)},i.precision(Ni.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-Ni.clipPad),i}function T3e(e,r,t){var a=1e-6,n=2.5,i=r[e],o=Ni.scopeDefaults[r.scope],l,s,u;e==="lonaxis"?(l=o.lonaxisRange,s=o.lataxisRange,u=function(C,x){return[C,x]}):e==="lataxis"&&(l=o.lataxisRange,s=o.lonaxisRange,u=function(C,x){return[x,C]});var f={type:"linear",range:[l[0],l[1]-a],tick0:i.tick0,dtick:i.dtick};e_.setConvert(f,t);var c=e_.calcTicks(f);!r.isScoped&&e==="lonaxis"&&c.pop();for(var h=c.length,d=new Array(h),m=0;m<h;m++)for(var p=c[m].x,y=d[m]=[],b=s[0];b<s[1]+n;b+=n)y.push(u(p,b));return{type:"MultiLineString",coordinates:d}}function nG(e,r){var t=Ni.clipPad;let[a,n]=w3e([e[0]+t,e[1]-t]);var i=r[0]+t,o=r[1]-t,l=(n-a)/4;return{type:"Polygon",coordinates:[[[a,i],[a,o],[a+l,o],[a+2*l,o],[a+3*l,o],[n,o],[n,i],[n-l,i],[n-2*l,i],[n-3*l,i],[a,i]]]}}});var a_=le((j8e,cG)=>{"use strict";var R2=zl(),k3e=R3().attributes,C3e=Cs().dash,P2=(od(),Tr(id)),S3e=Yo().overrideAll,uG=(Tp(),Tr(Mp)).default,fG={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:R2.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:C3e},D3e=cG.exports=S3e({domain:k3e({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:"locations",editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:uG(P2.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:uG(P2.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1},minscale:{valType:"number",min:0,dflt:0},maxscale:{valType:"number",min:0,dflt:null}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:R2.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:P2.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:P2.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:P2.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:P2.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:R2.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:R2.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:R2.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:R2.background},lonaxis:fG,lataxis:fG},"plot","from-root");D3e.uirevision={valType:"any",editType:"none"}});var hG=le((W8e,vG)=>{"use strict";var F3e=mr(),E3e=ka(),L3e=R3().defaults;vG.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),h,d;function m(C,x){return F3e.coerce(h,d,o,C,x)}for(var p=0;p<f;p++){var y=u[p];r[y]?h=r[y]:h=r[y]={},d=E3e.newContainer(t,y,c),n.noUirevision||m("uirevision",t.uirevision);var b={};b[s]=[p/f,(p+1)/f],L3e(d,t,m,b),n.id=y,l(h,d,m,n)}}});var mG=le((Z8e,pG)=>{"use strict";var uy=mr(),q3e=hG(),P3e=Rv().getSubplotData,{unwrapLonRange:R3e}=L2(),vd=(od(),Tr(id)),z3e=a_(),dG=vd.axesNames;pG.exports=function(r,t,a){q3e(r,t,a,{type:"geo",attributes:z3e,handleDefaults:N3e,fullData:a,partition:"y"})};function N3e(e,r,t,a){var n=P3e(a.fullData,"geo",a.id),i=n.map(function(ie){return ie.index}),o=t("resolution"),l=t("scope"),s=vd.scopeDefaults[l],u=t("projection.type",s.projType),f=r._isAlbersUsa=u==="albers usa";f&&(l=r.scope="usa");var c=r._isScoped=l!=="world",h=r._isSatellite=u==="satellite",d=r._isConic=u.indexOf("conic")!==-1||u==="albers",m=r._isClipped=!!vd.lonaxisSpan[u];if(e.visible===!1){var p=uy.extendDeep({},r._template);p.showcoastlines=!1,p.showcountries=!1,p.showframe=!1,p.showlakes=!1,p.showland=!1,p.showocean=!1,p.showrivers=!1,p.showsubunits=!1,p.lonaxis&&(p.lonaxis.showgrid=!1),p.lataxis&&(p.lataxis.showgrid=!1),r._template=p}for(var y=t("visible"),b,C=0;C<dG.length;C++){var x=dG[C],_=[30,10][C],M;if(c)M=s[x+"Range"];else{var T=vd[x+"Span"],A=(T[u]||T["*"])/2,E=t("projection.rotation."+x.slice(0,3),s.projRotate[C]);M=[E-A,E+A]}var P=t(x+".range",M);t(x+".tick0"),t(x+".dtick",_),b=t(x+".showgrid",y?void 0:!1),b&&(t(x+".gridcolor"),t(x+".gridwidth"),t(x+".griddash")),r[x]._ax={type:"linear",_id:x.slice(0,3),_traceIndices:i,setScale:uy.identity,c2l:uy.identity,r2l:uy.identity,autorange:!0,range:P.slice(),_m:1,_input:{}}}var z=r.lonaxis.range,B=r.lataxis.range;let[X,I]=R3e(z);var V=(X+I)/2,H;if(!f){var Q=c?s.projRotate:[V,0,0];H=t("projection.rotation.lon",Q[0]),t("projection.rotation.lat",Q[1]),t("projection.rotation.roll",Q[2]),b=t("showcoastlines",!c&&y),b&&(t("coastlinecolor"),t("coastlinewidth")),b=t("showocean",y?void 0:!1),b&&t("oceancolor")}var oe,re;if(f?(oe=-96.6,re=38.7):(oe=c?V:H,re=(B[0]+B[1])/2),t("center.lon",oe),t("center.lat",re),h&&(t("projection.tilt"),t("projection.distance")),d){var te=s.projParallels||[0,60];t("projection.parallels",te)}if(t("projection.scale"),t("projection.minscale"),t("projection.maxscale"),b=t("showland",y?void 0:!1),b&&t("landcolor"),b=t("showlakes",y?void 0:!1),b&&t("lakecolor"),b=t("showrivers",y?void 0:!1),b&&(t("rivercolor"),t("riverwidth")),b=t("showcountries",c&&l!=="usa"&&y),b&&(t("countrycolor"),t("countrywidth")),(l==="usa"||l==="north america"&&o===50)&&(t("showsubunits",y),t("subunitcolor"),t("subunitwidth")),c||(b=t("showframe",y),b&&(t("framecolor"),t("framewidth"))),t("bgcolor"),t("fitbounds"),r.fitbounds){let ie=e.center||{},ce=e.projection||{},Me=ce.rotation||{},De=e.lonaxis||{},Ie=e.lataxis||{},Ue=[{dst:r.center,key:"lon",src:ie},{dst:r.center,key:"lat",src:ie},{dst:r.projection,key:"scale",src:ce}];c||(m?Ue.push({dst:r.projection.rotation,key:"lon",src:Me},{dst:r.projection.rotation,key:"lat",src:Me},{dst:r.lonaxis,key:"range",src:De},{dst:r.lataxis,key:"range",src:Ie}):Ue.push({dst:r.projection.rotation,key:"lon",src:Me})),m||Ue.push({key:"range",src:De},{key:"range",src:Ie}),Ue.some(({src:je,key:W})=>je[W]!=null)||vd.fitboundsIncompatible.has(u)?r.fitbounds=!1:Ue.forEach(({dst:je,key:W})=>je&&(je[W]=null))}}});var n_=le(($8e,bG)=>{"use strict";var B3e=Rv().getSubplotCalcData,I3e=mr().counterRegex,H3e=sG(),Ws="geo",gG=I3e(Ws),yG={};yG[Ws]={valType:"subplotid",dflt:Ws,editType:"calc"};function O3e(e){for(var r=e._fullLayout,t=e.calcdata,a=r._subplots[Ws],n=0;n<a.length;n++){var i=a[n],o=B3e(t,Ws,i),l=r[i],s=l._subplot;s||(s=H3e({id:i,graphDiv:e,container:r._geolayer.node(),topojsonURL:e._context.topojsonURL,staticPlot:e._context.staticPlot}),r[i]._subplot=s),s.plot(o,r,e._promises)}}function U3e(e,r,t,a){for(var n=a._subplots[Ws]||[],i=0;i<n.length;i++){var o=n[i],l=a[o]._subplot;!r[o]&&l&&(l.framework.remove(),l.clipDef.remove())}}function G3e(e){for(var r=e._fullLayout,t=r._subplots[Ws],a=0;a<t.length;a++){var n=r[t[a]],i=n._subplot;i.updateFx(r,n)}}bG.exports={attr:Ws,name:Ws,idRoot:Ws,idRegex:gG,attrRegex:gG,attributes:yG,layoutAttributes:a_(),supplyLayoutDefaults:mG(),plot:O3e,updateFx:G3e,clean:U3e}});var xG=le((J8e,_G)=>{"use strict";_G.exports={attributes:nd(),supplyDefaults:GO(),colorbar:g9(),formatLabels:XO(),calc:JO(),calcGeoJSON:ny().calcGeoJSON,fitCoords:ny().fitCoords,plot:ny().plot,style:G8(),styleOnSelect:Gh().styleOnSelect,hoverPoints:HU(),eventData:UU(),selectPoints:VU(),moduleType:"trace",name:"scattergeo",basePlotModule:n_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var AG=le((K8e,wG)=>{"use strict";wG.exports=xG()});var fy=le((Q8e,kG)=>{"use strict";var{hovertemplateAttrs:Y3e,templatefallbackAttrs:V3e}=Gf(),Q0=nd(),X3e=G1(),MG=Go(),j3e=zl().defaultLine,K0=Tn().extendFlat,TG=Q0.marker.line;kG.exports=K0({locations:{valType:"data_array",editType:"calc"},locationmode:Q0.locationmode,z:{valType:"data_array",editType:"calc"},geojson:K0({},Q0.geojson,{}),featureidkey:Q0.featureidkey,text:K0({},Q0.text,{}),hovertext:K0({},Q0.hovertext,{}),marker:{line:{color:K0({},TG.color,{dflt:j3e}),width:K0({},TG.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:Q0.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Q0.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:K0({},MG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Y3e(),hovertemplatefallback:V3e(),showlegend:K0({},MG.showlegend,{dflt:!1})},X3e("",{cLetter:"z",editTypeOverride:"calc"}))});var SG=le((e_e,CG)=>{"use strict";var cy=mr(),W3e=Y1(),Z3e=fy();CG.exports=function(r,t,a,n){function i(h,d){return cy.coerce(r,t,Z3e,h,d)}var o=i("locations"),l=i("z");if(!(o&&o.length&&cy.isArrayOrTypedArray(l)&&l.length)){t.visible=!1;return}t._length=Math.min(o.length,l.length);var s=i("geojson"),u;(typeof s=="string"&&s!==""||cy.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="geojson-id"&&i("featureidkey"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var c=i("marker.line.width");c&&i("marker.line.color"),i("marker.opacity"),W3e(r,t,n,i,{prefix:"",cLetter:"z"}),cy.coerceSelectionMarkerOpacity(t,i)}});var FG=le((r_e,DG)=>{"use strict";DG.exports={min:"zmin",max:"zmax"}});var PG=le((t_e,qG)=>{"use strict";var EG=Wt(),$3e=(Ya(),Tr($a)).BADNUM,J3e=Jp(),K3e=Bh(),Q3e=$g();function LG(e){return e&&typeof e=="string"}qG.exports=function(r,t){var a=t._length,n=new Array(a),i;t.geojson?i=function(f){return LG(f)||EG(f)}:i=LG;for(var o=0;o<a;o++){var l=n[o]={},s=t.locations[o],u=t.z[o];i(s)&&EG(u)?(l.loc=s,l.z=u):(l.loc=null,l.z=$3e),l.index=o}return K3e(n,t),J3e(r,t,{vals:t.z,containerStr:"",cLetter:"z"}),Q3e(n,t),n}});var vy=le((a_e,zG)=>{"use strict";var eye=Ft(),rye=qt(),i_=ha(),tye=Qp();function aye(e,r){r&&RG(e,r)}function RG(e,r){var t=r[0].trace,a=r[0].node3,n=a.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=tye.makeColorScaleFuncFromTrace(t);n.each(function(s){eye.select(this).attr("fill",l(s.z)).call(rye.stroke,s.mlc||o.color).call(i_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),i_.selectedPointStyle(n,t)}function nye(e,r){var t=r[0].node3,a=r[0].trace;a.selectedpoints?i_.selectedPointStyle(t.selectAll(".choroplethlocation"),a):RG(e,r)}zG.exports={style:aye,styleOnSelect:nye}});var hy=le((n_e,IG)=>{"use strict";var iye=Ft(),NG=mr(),Pc=L2(),oye=U3().getTopojsonFeatures,BG=L0().findExtremes,lye=vy().style;function sye(e,r,t){var a=r.layers.backplot.select(".choroplethlayer");NG.makeTraceGroups(a,t,"trace choropleth").each(function(n){var i=iye.select(this),o=i.selectAll("path.choroplethlocation").data(NG.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),lye(e,n)})}function uye(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t.locationmode,o=t._length,l=i==="geojson-id"?Pc.extractTraceFeature(e):oye(t,n.topojson);let s=Pc.fitGeojsonBbox(t,a);for(var u=[],f=[],c=0;c<o;c++){var h=e[c],d=i==="geojson-id"?h.fOut:Pc.locationToFeature(i,h.loc,l);if(d){if(h.geojson=d,h.ct=d.properties.ct,h._polygons=Pc.feature2polygons(d),!s){let p=Pc.computeBbox(d);if(p){let[y,b,C,x]=p;u.push(y,C),f.push(b,x)}}}else h.geojson=null}if(s){let[p,y,b,C]=s;u=[p,b],f=[y,C]}var m={padded:!0};t._extremes.lon=BG(a.lonaxis._ax,u,m),t._extremes.lat=BG(a.lataxis._ax,f,m)}function fye(e,r){let t=Pc.fitGeojsonCoords(e[0].trace,r);if(t.length)return t;let a=[];for(let n of e)n.geojson&&a.push(Pc.coordsOf(n.geojson));return a.flat()}IG.exports={calcGeoJSON:uye,fitCoords:fye,plot:sye}});var OG=le((i_e,HG)=>{"use strict";var cye=Oa(),vye=fy(),hye=mr().fillText,{ANTIMERIDIAN_LON_SHIFT:dye}=L2();HG.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.subplot,l,s,u,f,c=[t,a];let h=[t+dye,a];for(s=0;s<n.length;s++)if(l=n[s],f=!1,l._polygons){for(u=0;u<l._polygons.length;u++)l._polygons[u].contains(c)&&(f=!f),l._polygons[u].contains(h)&&(f=!f);if(f)break}if(!(!f||!l))return r.x0=r.x1=r.xa.c2p(l.ct),r.y0=r.y1=r.ya.c2p(l.ct),r.index=l.index,r.location=l.loc,r.z=l.z,r.zLabel=cye.tickText(o.mockAxis,o.mockAxis.c2l(l.z),"hover").text,r.hovertemplate=l.hovertemplate,pye(r,i,l),[r]};function pye(e,r,t){if(!r.hovertemplate){var a=t.hi||r.hoverinfo,n=String(t.loc),i=a==="all"?vye.hoverinfo.flags:a.split("+"),o=i.indexOf("name")!==-1,l=i.indexOf("location")!==-1,s=i.indexOf("z")!==-1,u=i.indexOf("text")!==-1,f=!o&&l,c=[];f?e.nameOverride=n:(o&&(e.nameOverride=r.name),l&&c.push(n)),s&&c.push(e.zLabel),u&&hye(t,r,c),e.extraText=c.join("<br>")}}});var GG=le((o_e,UG)=>{"use strict";UG.exports=function(r,t,a,n,i){r.location=t.location,r.z=t.z;var o=n[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r.ct=o.ct,r}});var VG=le((l_e,YG)=>{"use strict";YG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s,u,f,c;if(t===!1)for(l=0;l<a.length;l++)a[l].selected=0;else for(l=0;l<a.length;l++)s=a[l],u=s.ct,u&&(f=n.c2p(u),c=i.c2p(u),t.contains([f,c],null,l,r)?(o.push({pointNumber:l,lon:u[0],lat:u[1]}),s.selected=1):s.selected=0);return o}});var jG=le((s_e,XG)=>{"use strict";XG.exports={attributes:fy(),supplyDefaults:SG(),colorbar:FG(),calc:PG(),calcGeoJSON:hy().calcGeoJSON,fitCoords:hy().fitCoords,plot:hy().plot,style:vy().style,styleOnSelect:vy().styleOnSelect,hoverPoints:OG(),eventData:GG(),selectPoints:VG(),moduleType:"trace",name:"choropleth",basePlotModule:n_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var ZG=le((u_e,WG)=>{"use strict";WG.exports=jG()});var ci=le((f_e,JG)=>{"use strict";var $G=Object.getOwnPropertySymbols,mye=Object.prototype.hasOwnProperty,gye=Object.prototype.propertyIsEnumerable;function yye(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function bye(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}JG.exports=bye()?Object.assign:function(e,r){for(var t,a=yye(e),n,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var o in t)mye.call(t,o)&&(a[o]=t[o]);if($G){n=$G(t);for(var l=0;l<n.length;l++)gye.call(t,n[l])&&(a[n[l]]=t[n[l]])}}return a}});var vi=le((c_e,QG)=>{var py=ci();function KG(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}py(KG.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function o_(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Et.local.invalidDate||Et.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function dy(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}py(o_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Et.local.invalidDate||Et.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Et.local.differentCalendars||Et.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+dy(Math.abs(this.year()),4)+"-"+dy(this.month(),2)+"-"+dy(this.day(),2)}});function l_(){this.shortYearCutoff="+10"}py(l_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Et.local.invalidDate||Et.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new o_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Et.local.invalidYear||Et.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Et.local.invalidYear||Et.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+dy(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Et.local.invalidYear||Et.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Et.local.invalidMonth||Et.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Et.local.invalidMonth||Et.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Et.local.invalidYear||Et.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Et.local.invalidDate||Et.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Et.local.invalidDate||Et.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Et.local.invalidDate||Et.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Et.local.invalidDate||Et.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;o<f.minMonth;)i--,o+=f.monthsInYear(i);for(var c=f.monthsInYear(i);o>c-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Et.local.invalidDate||Et.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth<this.monthsInYear(n)&&t>=this.minDay&&t-this.minDay<this.daysInMonth(n)}return this._validateLevel--,a},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Et.local.invalidDate||Et.regionalOptions[""].invalidDate);return Et.instance().fromJD(this.toJD(a)).toJSDate()},fromJSDate:function(e){return this.fromJD(Et.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,a){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(Et.local.differentCalendars||Et.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,e.calendar().local.name);return e}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(e,r,t))throw a.replace(/\{0\}/,this.local.name);var n=this.newDate(e,r,t);return this._validateLevel--,n}catch(i){throw this._validateLevel--,i}}});function s_(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}s_.prototype=new l_;py(s_.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Et.local.invalidYear||Et.regionalOptions[""].invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===0&&(t%100!==0||t%400===0)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Et.local.invalidMonth||Et.regionalOptions[""].invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Et.local.invalidDate||Et.regionalOptions[""].invalidDate);e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<3&&(r+=12,e--);var n=Math.floor(e/100),i=2-n+Math.floor(n/4);return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t+i-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=Math.floor((r-186721625e-2)/36524.25);t=r+1+t-Math.floor(t/4);var a=t+1524,n=Math.floor((a-122.1)/365.25),i=Math.floor(365.25*n),o=Math.floor((a-i)/30.6001),l=a-i-Math.floor(o*30.6001),s=o-(o>13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Et.local.invalidDate||Et.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Et=QG.exports=new KG;Et.cdate=o_;Et.baseCalendar=l_;Et.calendars.gregorian=s_});var eY=le(()=>{var u_=ci(),jn=vi();u_(jn.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});jn.local=jn.regionalOptions[""];u_(jn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});u_(jn.baseCalendar.prototype,{UNIX_EPOCH:jn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:jn.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw jn.local.invalidFormat||jn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(_,M){for(var T=1;x+T<e.length&&e.charAt(x+T)===_;)T++;return x+=T-1,Math.floor(T/(M||1))>1},f=function(_,M,T,A){var E=""+M;if(u(_,A))for(;E.length<T;)E="0"+E;return E},c=function(_,M,T,A){return u(_)?A[M]:T[M]},h=this,d=function(_){return typeof i=="function"?i.call(h,_,u("m")):y(f("m",_.month(),2))},m=function(_,M){return M?typeof l=="function"?l.call(h,_):l[_.month()-h.minMonth]:typeof o=="function"?o.call(h,_):o[_.month()-h.minMonth]},p=this.local.digits,y=function(_){return t.localNumbers&&p?p(_):_},b="",C=!1,x=0;x<e.length;x++)if(C)e.charAt(x)==="'"&&!u("'")?C=!1:b+=e.charAt(x);else switch(e.charAt(x)){case"d":b+=y(f("d",r.day(),2));break;case"D":b+=c("D",r.dayOfWeek(),a,n);break;case"o":b+=f("o",r.dayOfYear(),3);break;case"w":b+=f("w",r.weekOfYear(),2);break;case"m":b+=d(r);break;case"M":b+=m(r,u("M"));break;case"y":b+=u("y",2)?r.year():(r.year()%100<10?"0":"")+r.year()%100;break;case"Y":u("Y",2),b+=r.formatYear();break;case"J":b+=r.toJD();break;case"@":b+=(r.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":b+=(r.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":u("'")?b+="'":C=!0;break;default:b+=e.charAt(x)}return b},parseDate:function(e,r,t){if(r==null)throw jn.local.invalidArguments||jn.regionalOptions[""].invalidArguments;if(r=typeof r=="object"?r.toString():r+"",r==="")return null;e=e||this.local.dateFormat,t=t||{};var a=t.shortYearCutoff||this.shortYearCutoff;a=typeof a!="string"?a:this.today().year()%100+parseInt(a,10);for(var n=t.dayNamesShort||this.local.dayNamesShort,i=t.dayNames||this.local.dayNames,o=t.parseMonth||this.local.parseMonth,l=t.monthNumbers||this.local.monthNumbers,s=t.monthNamesShort||this.local.monthNamesShort,u=t.monthNames||this.local.monthNames,f=-1,c=-1,h=-1,d=-1,m=-1,p=!1,y=!1,b=function(X,I){for(var V=1;P+V<e.length&&e.charAt(P+V)===X;)V++;return P+=V-1,Math.floor(V/(I||1))>1},C=function(X,I){var V=b(X,I),H=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(X)+1],Q=new RegExp("^-?\\d{1,"+H+"}"),oe=r.substring(E).match(Q);if(!oe)throw(jn.local.missingNumberAt||jn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,E);return E+=oe[0].length,parseInt(oe[0],10)},x=this,_=function(){if(typeof l=="function"){b("m");var X=l.call(x,r.substring(E));return E+=X.length,X}return C("m")},M=function(X,I,V,H){for(var Q=b(X,H)?V:I,oe=0;oe<Q.length;oe++)if(r.substr(E,Q[oe].length).toLowerCase()===Q[oe].toLowerCase())return E+=Q[oe].length,oe+x.minMonth;throw(jn.local.unknownNameAt||jn.regionalOptions[""].unknownNameAt).replace(/\{0\}/,E)},T=function(){if(typeof u=="function"){var X=b("M")?u.call(x,r.substring(E)):s.call(x,r.substring(E));return E+=X.length,X}return M("M",s,u)},A=function(){if(r.charAt(E)!==e.charAt(P))throw(jn.local.unexpectedLiteralAt||jn.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,E);E++},E=0,P=0;P<e.length;P++)if(y)e.charAt(P)==="'"&&!b("'")?y=!1:A();else switch(e.charAt(P)){case"d":d=C("d");break;case"D":M("D",n,i);break;case"o":m=C("o");break;case"w":C("w");break;case"m":h=_();break;case"M":h=T();break;case"y":var z=P;p=!b("y",2),P=z,c=C("y",2);break;case"Y":c=C("Y",2);break;case"J":f=C("J")+.5,r.charAt(E)==="."&&(E++,C("J"));break;case"@":f=C("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=C("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":E=r.length;break;case"'":b("'")?A():y=!0;break;default:A()}if(E<r.length)throw jn.local.unexpectedText||jn.regionalOptions[""].unexpectedText;if(c===-1?c=this.today().year():c<100&&p&&(c+=a===-1?1900:this.today().year()-this.today().year()%100-(c<=a?0:100)),typeof h=="string"&&(h=o.call(this,c,h)),m>-1){h=1,d=m;for(var B=this.daysInMonth(c,h);d>B;B=this.daysInMonth(c,h))h++,d-=B}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var rY=le(()=>{var ef=vi(),_ye=ci(),f_=ef.instance();function my(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}my.prototype=new ef.baseCalendar;_ye(my.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(wye);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(Aye);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(Mye);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw ef.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw ef.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r<t?n=r+1:n=r:n=r+1,n},intercalaryMonth:function(e){e=this._validateYear(e);var r=rf[e-rf[0]],t=r>>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,ef.local.invalidyear),n=tf[a-tf[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=f_.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=rf[e-rf[0]],a=t>>13,n=a?12:11;if(r>n)throw ef.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,ef.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=kye(e,i,t,n);return f_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=f_.fromJD(e),t=Tye(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(xye),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(my.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var xye=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,wye=/^\d?\d[iI]?/m,Aye=/^闰?十?[一二三四五六七八九]?月/m,Mye=/^闰?十?[一二三四五六七八九]?/m;ef.calendars.chinese=my;var rf=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],tf=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Tye(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=tf[n.year-tf[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=tf[i.year-tf[0]];var c=u>>9&4095,h=u>>5&15,d=u&31,m,p=new Date(c,h-1,d),y=new Date(n.year,n.month-1,n.day);m=Math.round((y-p)/(24*3600*1e3));var b=rf[i.year-rf[0]],C;for(C=0;C<13;C++){var x=b&1<<12-C?30:29;if(m<x)break;m-=x}var _=b>>13;return!_||C<_?(i.isIntercalary=!1,i.month=1+C):C===_?(i.isIntercalary=!0,i.month=C):(i.isIntercalary=!1,i.month=C),i.day=1+m,i}function kye(e,r,t,a,n){var i,o;if(typeof e=="object")o=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var h=rf[o.year-rf[0]],d=h>>13,m;d&&(o.month>d||o.isIntercalary)?m=o.month:m=o.month-1;for(var p=0;p<m;p++){var y=h&1<<12-p?30:29;c+=y}var b=tf[o.year-tf[0]],C=b>>9&4095,x=b>>5&15,_=b&31,M=new Date(C,x-1,_+c);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var tY=le(()=>{var Rc=vi(),Cye=ci();function c_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}c_.prototype=new Rc.baseCalendar;Cye(c_.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Rc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Rc.local.invalidYear||Rc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Rc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Rc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Rc.calendars.coptic=c_});var aY=le(()=>{var Xu=vi(),Sye=ci();function v_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v_.prototype=new Xu.baseCalendar;Sye(v_.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return{century:Dye[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var Dye={20:"Fruitbat",21:"Anchovy"};Xu.calendars.discworld=v_});var nY=le(()=>{var zc=vi(),Fye=ci();function h_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h_.prototype=new zc.baseCalendar;Fye(h_.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,zc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,zc.local.invalidYear||zc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,zc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,zc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});zc.calendars.ethiopian=h_});var iY=le(()=>{var af=vi(),Eye=ci();function d_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}d_.prototype=new af.baseCalendar;Eye(d_.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,af.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,gy(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,af.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,af.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,af.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&gy(this.daysInYear(e),10)===5?30:r===9&&gy(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,af.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,af.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o<r;o++)i+=this.daysInMonth(e,o)}else for(var o=7;o<r;o++)i+=this.daysInMonth(e,o);return i},_delay1:function(e){var r=Math.floor((235*e-234)/19),t=12084+13753*r,a=r*29+Math.floor(t/25920);return gy(3*(a+1),7)<3&&a++,a},_delay2:function(e){var r=this._delay1(e-1),t=this._delay1(e),a=this._delay1(e+1);return a-t===356?2:t-r===382?1:0},fromJD:function(e){e=Math.floor(e)+.5;for(var r=Math.floor((e-this.jdEpoch)*98496/35975351)-1;e>=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=e<this.toJD(r,1,1)?7:1;e>this.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function gy(e,r){return e-r*Math.floor(e/r)}af.calendars.hebrew=d_});var oY=le(()=>{var hd=vi(),Lye=ci();function p_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}p_.prototype=new hd.baseCalendar;Lye(p_.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,hd.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,hd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,hd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});hd.calendars.islamic=p_});var lY=le(()=>{var dd=vi(),qye=ci();function m_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m_.prototype=new dd.baseCalendar;qye(m_.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,dd.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,dd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,dd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});dd.calendars.julian=m_});var uY=le(()=>{var cl=vi(),Pye=ci();function y_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y_.prototype=new cl.baseCalendar;Pye(y_.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t<e.length;t++){var a=parseInt(e[t],10);if(Math.abs(a)>19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,cl.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,cl.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,cl.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,cl.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,cl.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=g_(e+8+340,365);return[Math.floor(r/20)+1,g_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[sY(e+20,20),sY(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,cl.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function g_(e,r){return e-r*Math.floor(e/r)}function sY(e,r){return g_(e-1,r)+1}cl.calendars.mayan=y_});var cY=le(()=>{var Nc=vi(),Rye=ci();function b_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b_.prototype=new Nc.baseCalendar;var fY=Nc.instance("gregorian");Rye(b_.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Nc.local.invalidYear||Nc.regionalOptions[""].invalidYear);return fY.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Nc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Nc.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o<a.month();o++)i+=this.daysPerMonth[o-1];return i+fY.toJD(n+1468,3,13)},fromJD:function(e){e=Math.floor(e+.5);for(var r=Math.floor((e-(this.jdEpoch-1))/366);e>=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Nc.calendars.nanakshahi=b_});var vY=le(()=>{var Bc=vi(),zye=ci();function __(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}__.prototype=new Bc.baseCalendar;zye(__.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bc.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Bc.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Bc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Bc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Bc.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t<e+2;t++)typeof this.NEPALI_CALENDAR_DATA[t]=="undefined"&&(this.NEPALI_CALENDAR_DATA[t]=r)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}});Bc.calendars.nepali=__});var hY=le(()=>{var z2=vi(),Nye=ci();function by(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function yy(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}by.prototype=new z2.baseCalendar;Nye(by.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,z2.local.invalidYear);return yy(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,z2.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,z2.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i<e;i++)yy(i)&&n++;else if(e<0)for(var i=e;i<0;i++)yy(i)&&n--;return t+(r<=7?(r-1)*31:(r-1)*30+6)+(e>0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,yy(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});z2.calendars.persian=by;z2.calendars.jalali=by});var dY=le(()=>{var Ic=vi(),Bye=ci(),_y=Ic.instance();function x_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x_.prototype=new Ic.baseCalendar;Bye(x_.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Ic.local.invalidYear),t=this._t2gYear(r.year());return _y.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Ic.local.invalidYear),n=this._t2gYear(a.year());return _y.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ic.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ic.local.invalidDate),n=this._t2gYear(a.year());return _y.toJD(n,a.month(),a.day())},fromJD:function(e){var r=_y.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Ic.calendars.taiwan=x_});var pY=le(()=>{var Hc=vi(),Iye=ci(),xy=Hc.instance();function w_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w_.prototype=new Hc.baseCalendar;Iye(w_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Hc.local.invalidYear),t=this._t2gYear(r.year());return xy.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Hc.local.invalidYear),n=this._t2gYear(a.year());return xy.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Hc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Hc.local.invalidDate),n=this._t2gYear(a.year());return xy.toJD(n,a.month(),a.day())},fromJD:function(e){var r=xy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Hc.calendars.thai=w_});var mY=le(()=>{var Oc=vi(),Hye=ci();function A_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A_.prototype=new Oc.baseCalendar;Hye(A_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Oc.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Oc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;i<nf.length;i++){if(nf[i]>a)return nf[n]-nf[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Oc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+nf[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;a<nf.length&&!(nf[a]>r);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-nf[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Oc.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Oc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Oc.calendars.ummalqura=A_;var nf=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var yY=le((U_e,gY)=>{"use strict";gY.exports=vi();eY();rY();tY();aY();nY();iY();oY();lY();uY();cY();vY();hY();dY();pY();mY()});var TY=le((G_e,MY)=>{"use strict";var _Y=yY(),pd=mr(),xY=(Ya(),Tr($a)),Oye=xY.EPOCHJD,Uye=xY.ONEDAY,k_={valType:"enumerated",values:pd.sortObjectKeys(_Y.calendars),editType:"calc",dflt:"gregorian"},wY=function(e,r,t,a){var n={};return n[t]=k_,pd.coerce(e,r,n,t,a)},Gye=function(e,r,t,a){for(var n=0;n<t.length;n++)wY(e,r,t[n]+"calendar",a.calendar)},Yye={chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},Vye={chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},Xye={chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},wy="##",jye={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:wy,w:wy,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function Wye(e,r,t){for(var a=Math.floor((r+.05)/Uye)+Oye,n=AY(t).fromJD(a),i=0,o,l,s,u,f;(i=e.indexOf("%",i))!==-1;)o=e.charAt(i+1),o==="0"||o==="-"||o==="_"?(s=3,l=e.charAt(i+2),o==="_"&&(o="-")):(l=o,o="0",s=2),u=jye[l],u?(u===wy?f=wy:f=n.formatDate(u[o]),e=e.slice(0,i)+f+e.slice(i+s),i+=f.length):i+=s;return e}var bY={};function AY(e){var r=bY[e];return r||(r=bY[e]=_Y.instance(e),r)}function md(e){return pd.extendFlat({},k_,{description:e})}function C_(e){return"Sets the calendar system to use with `"+e+"` date data."}var T_={xcalendar:md(C_("x"))},Zs=pd.extendFlat({},T_,{ycalendar:md(C_("y"))}),M_=pd.extendFlat({},Zs,{zcalendar:md(C_("z"))}),N2=md(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));MY.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:Zs,bar:Zs,box:Zs,heatmap:Zs,contour:Zs,histogram:Zs,histogram2d:Zs,histogram2dcontour:Zs,scatter3d:M_,surface:M_,mesh3d:M_,scattergl:Zs,ohlc:T_,candlestick:T_},layout:{calendar:md(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:N2},yaxis:{calendar:N2},scene:{xaxis:{calendar:N2},yaxis:{calendar:N2},zaxis:{calendar:N2}},polar:{radialaxis:{calendar:N2}}}},layoutAttributes:k_,handleDefaults:wY,handleTraceDefaults:Gye,CANONICAL_SUNDAY:Vye,CANONICAL_TICK:Yye,DFLTRANGE:Xye,getCal:AY,worldCalFmt:Wye}});var CY=le((Y_e,kY)=>{"use strict";kY.exports=TY()});var Zye=le((V_e,DY)=>{var SY=zO();SY.register([AG(),ZG(),CY()]);DY.exports=SY});return Zye();})();
/*! Bundled license information:
native-promise-only/lib/npo.src.js:
(*! Native Promise Only
v0.8.1 (c) Kyle Simpson
MIT License: http://getify.mit-license.org
*)
polybooljs/index.js:
(*
* @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
* @license MIT
* @preserve Project Home: https://github.com/voidqk/polybooljs
*)
object-assign/index.js:
(*
object-assign
(c) Sindre Sorhus
@license MIT
*)
*/
window.Plotly = Plotly;
return Plotly;
}));