plotly.js
Version:
The open source javascript graphing library that powers plotly
50 lines • 1.28 MB
JavaScript
/**
* plotly.js (finance - minified) v4.0.0
* 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 pQ=Object.create;var m0=Object.defineProperty,mQ=Object.defineProperties,yQ=Object.getOwnPropertyDescriptor,gQ=Object.getOwnPropertyDescriptors,bQ=Object.getOwnPropertyNames,n9=Object.getOwnPropertySymbols,xQ=Object.getPrototypeOf,l9=Object.prototype.hasOwnProperty,_Q=Object.prototype.propertyIsEnumerable;var i9=(e,r,t)=>r in e?m0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,st=(e,r)=>{for(var t in r||(r={}))l9.call(r,t)&&i9(e,t,r[t]);if(n9)for(var t of n9(r))_Q.call(r,t)&&i9(e,t,r[t]);return e},qt=(e,r)=>mQ(e,gQ(r));var rt=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var B=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},rf=(e,r)=>{for(var t in r)m0(e,t,{get:r[t],enumerable:!0})},o9=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of bQ(r))!l9.call(e,n)&&n!==t&&m0(e,n,{get:()=>r[n],enumerable:!(a=yQ(r,n))||a.enumerable});return e};var u2=(e,r,t)=>(t=e!=null?pQ(xQ(e)):{},o9(r||!e||!e.__esModule?m0(t,"default",{value:e,enumerable:!0}):t,e)),Ga=e=>o9(m0({},"__esModule",{value:!0}),e);var y0=B(s9=>{"use strict";s9.version="4.0.0"});var f9=B((u9,xh)=>{(function(r,t,a){t[r]=t[r]||a(),typeof xh!="undefined"&&xh.exports&&(xh.exports=t[r])})("Promise",typeof window!="undefined"?window:u9,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,w,b,M){return Object.defineProperty(_,w,{value:b,writable:!0,configurable:M!==!1})}}catch(x){r=function(w,b,M){return w[b]=M,w}}a=(function(){var _,w,b;function M(k,A){this.fn=k,this.self=A,this.next=void 0}return{add:function(A,S){b=new M(A,S),w?w.next=b:_=b,w=b,b=void 0},drain:function(){var A=_;for(_=w=t=void 0;A;)A.fn.call(A.self),A=A.next}}})();function l(x,_){a.add(x,_),t||(t=i(a.drain))}function o(x){var _,w=typeof x;return x!=null&&(w=="object"||w=="function")&&(_=x.then),typeof _=="function"?_:!1}function s(){for(var x=0;x<this.chain.length;x++)u(this,this.state===1?this.chain[x].success:this.chain[x].failure,this.chain[x]);this.chain.length=0}function u(x,_,w){var b,M;try{_===!1?w.reject(x.msg):(_===!0?b=x.msg:b=_.call(void 0,x.msg),b===w.promise?w.reject(TypeError("Promise-chain cycle")):(M=o(b))?M.call(b,w.resolve,w.reject):w.resolve(b))}catch(k){w.reject(k)}}function f(x){var _,w=this;if(!w.triggered){w.triggered=!0,w.def&&(w=w.def);try{(_=o(x))?l(function(){var b=new h(w);try{_.call(x,function(){f.apply(b,arguments)},function(){c.apply(b,arguments)})}catch(M){c.call(b,M)}}):(w.msg=x,w.state=1,w.chain.length>0&&l(s,w))}catch(b){c.call(new h(w),b)}}}function c(x){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=x,_.state=2,_.chain.length>0&&l(s,_))}function v(x,_,w,b){for(var M=0;M<_.length;M++)(function(A){x.resolve(_[A]).then(function(D){w(A,D)},b)})(M)}function h(x){this.def=x,this.triggered=!1}function p(x){this.promise=x,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(x){if(typeof x!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(b,M){var k={success:typeof b=="function"?b:!0,failure:typeof M=="function"?M:!1};return k.promise=new this.constructor(function(S,D){if(typeof S!="function"||typeof D!="function")throw TypeError("Not a function");k.resolve=S,k.reject=D}),_.chain.push(k),_.state!==0&&l(s,_),k.promise},this.catch=function(b){return this.then(void 0,b)};try{x.call(void 0,function(b){f.call(_,b)},function(b){c.call(_,b)})}catch(w){c.call(_,w)}}var y=r({},"constructor",m,!1);return m.prototype=y,r(y,"__NPO__",0,!1),r(m,"resolve",function(_){var w=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");M(_)})}),r(m,"reject",function(_){return new this(function(b,M){if(typeof b!="function"||typeof M!="function")throw TypeError("Not a function");M(_)})}),r(m,"all",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):_.length===0?w.resolve([]):new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");var A=_.length,S=Array(A),D=0;v(w,_,function(R,N){S[R]=N,++D===A&&M(S)},k)})}),r(m,"race",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");v(w,_,function(S,D){M(D)},k)})}),m})});var Dr=B((V_e,_h)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(d){return r.call(d)},a=self.document;function n(d){return d&&(d.ownerDocument||d.document||d).documentElement}function i(d){return d&&(d.ownerDocument&&d.ownerDocument.defaultView||d.document&&d||d.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(d){t=function(g){for(var T=g.length,C=new Array(T);T--;)C[T]=g[T];return C}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(d){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(g,T){o.call(this,g,T+"")},l.setAttributeNS=function(g,T,C){s.call(this,g,T,C+"")},u.setProperty=function(g,T,C){f.call(this,g,T+"",C)}}e.ascending=c;function c(d,g){return d<g?-1:d>g?1:d>=g?0:NaN}e.descending=function(d,g){return g<d?-1:g>d?1:g>=d?0:NaN},e.min=function(d,g){var T=-1,C=d.length,L,q;if(arguments.length===1){for(;++T<C;)if((q=d[T])!=null&&q>=q){L=q;break}for(;++T<C;)(q=d[T])!=null&&L>q&&(L=q)}else{for(;++T<C;)if((q=g.call(d,d[T],T))!=null&&q>=q){L=q;break}for(;++T<C;)(q=g.call(d,d[T],T))!=null&&L>q&&(L=q)}return L},e.max=function(d,g){var T=-1,C=d.length,L,q;if(arguments.length===1){for(;++T<C;)if((q=d[T])!=null&&q>=q){L=q;break}for(;++T<C;)(q=d[T])!=null&&q>L&&(L=q)}else{for(;++T<C;)if((q=g.call(d,d[T],T))!=null&&q>=q){L=q;break}for(;++T<C;)(q=g.call(d,d[T],T))!=null&&q>L&&(L=q)}return L},e.extent=function(d,g){var T=-1,C=d.length,L,q,z;if(arguments.length===1){for(;++T<C;)if((q=d[T])!=null&&q>=q){L=z=q;break}for(;++T<C;)(q=d[T])!=null&&(L>q&&(L=q),z<q&&(z=q))}else{for(;++T<C;)if((q=g.call(d,d[T],T))!=null&&q>=q){L=z=q;break}for(;++T<C;)(q=g.call(d,d[T],T))!=null&&(L>q&&(L=q),z<q&&(z=q))}return[L,z]};function v(d){return d===null?NaN:+d}function h(d){return!isNaN(d)}e.sum=function(d,g){var T=0,C=d.length,L,q=-1;if(arguments.length===1)for(;++q<C;)h(L=+d[q])&&(T+=L);else for(;++q<C;)h(L=+g.call(d,d[q],q))&&(T+=L);return T},e.mean=function(d,g){var T=0,C=d.length,L,q=-1,z=C;if(arguments.length===1)for(;++q<C;)h(L=v(d[q]))?T+=L:--z;else for(;++q<C;)h(L=v(g.call(d,d[q],q)))?T+=L:--z;if(z)return T/z},e.quantile=function(d,g){var T=(d.length-1)*g+1,C=Math.floor(T),L=+d[C-1],q=T-C;return q?L+q*(d[C]-L):L},e.median=function(d,g){var T=[],C=d.length,L,q=-1;if(arguments.length===1)for(;++q<C;)h(L=v(d[q]))&&T.push(L);else for(;++q<C;)h(L=v(g.call(d,d[q],q)))&&T.push(L);if(T.length)return e.quantile(T.sort(c),.5)},e.variance=function(d,g){var T=d.length,C=0,L,q,z=0,P=-1,F=0;if(arguments.length===1)for(;++P<T;)h(L=v(d[P]))&&(q=L-C,C+=q/++F,z+=q*(L-C));else for(;++P<T;)h(L=v(g.call(d,d[P],P)))&&(q=L-C,C+=q/++F,z+=q*(L-C));if(F>1)return z/(F-1)},e.deviation=function(){var d=e.variance.apply(this,arguments);return d&&Math.sqrt(d)};function p(d){return{left:function(g,T,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=g.length);C<L;){var q=C+L>>>1;d(g[q],T)<0?C=q+1:L=q}return C},right:function(g,T,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=g.length);C<L;){var q=C+L>>>1;d(g[q],T)>0?L=q:C=q+1}return C}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(d){return p(d.length===1?function(g,T){return c(d(g),T)}:d)},e.shuffle=function(d,g,T){(C=arguments.length)<3&&(T=d.length,C<2&&(g=0));for(var C=T-g,L,q;C;)q=Math.random()*C--|0,L=d[C+g],d[C+g]=d[q+g],d[q+g]=L;return d},e.permute=function(d,g){for(var T=g.length,C=new Array(T);T--;)C[T]=d[g[T]];return C},e.pairs=function(d){for(var g=0,T=d.length-1,C,L=d[0],q=new Array(T<0?0:T);g<T;)q[g]=[C=L,L=d[++g]];return q},e.transpose=function(d){if(!(q=d.length))return[];for(var g=-1,T=e.min(d,y),C=new Array(T);++g<T;)for(var L=-1,q,z=C[g]=new Array(q);++L<q;)z[L]=d[L][g];return C};function y(d){return d.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(d){var g=[];for(var T in d)g.push(T);return g},e.values=function(d){var g=[];for(var T in d)g.push(d[T]);return g},e.entries=function(d){var g=[];for(var T in d)g.push({key:T,value:d[T]});return g},e.merge=function(d){for(var g=d.length,T,C=-1,L=0,q,z;++C<g;)L+=d[C].length;for(q=new Array(L);--g>=0;)for(z=d[g],T=z.length;--T>=0;)q[--L]=z[T];return q};var x=Math.abs;e.range=function(d,g,T){if(arguments.length<3&&(T=1,arguments.length<2&&(g=d,d=0)),(g-d)/T===1/0)throw new Error("infinite range");var C=[],L=_(x(T)),q=-1,z;if(d*=L,g*=L,T*=L,T<0)for(;(z=d+T*++q)>g;)C.push(z/L);else for(;(z=d+T*++q)<g;)C.push(z/L);return C};function _(d){for(var g=1;d*g%1;)g*=10;return g}function w(d,g){for(var T in g)Object.defineProperty(d.prototype,T,{value:g[T],enumerable:!1})}e.map=function(d,g){var T=new b;if(d instanceof b)d.forEach(function(P,F){T.set(P,F)});else if(Array.isArray(d)){var C=-1,L=d.length,q;if(arguments.length===1)for(;++C<L;)T.set(C,d[C]);else for(;++C<L;)T.set(g.call(d,q=d[C],C),q)}else for(var z in d)T.set(z,d[z]);return T};function b(){this._=Object.create(null)}var M="__proto__",k="\0";w(b,{has:D,get:function(d){return this._[A(d)]},set:function(d,g){return this._[A(d)]=g},remove:E,keys:R,values:function(){var d=[];for(var g in this._)d.push(this._[g]);return d},entries:function(){var d=[];for(var g in this._)d.push({key:S(g),value:this._[g]});return d},size:N,empty:I,forEach:function(d){for(var g in this._)d.call(this,S(g),this._[g])}});function A(d){return(d+="")===M||d[0]===k?k+d:d}function S(d){return(d+="")[0]===k?d.slice(1):d}function D(d){return A(d)in this._}function E(d){return(d=A(d))in this._&&delete this._[d]}function R(){var d=[];for(var g in this._)d.push(S(g));return d}function N(){var d=0;for(var g in this._)++d;return d}function I(){for(var d in this._)return!1;return!0}e.nest=function(){var d={},g=[],T=[],C,L;function q(P,F,W){if(W>=g.length)return L?L.call(d,F):C?F.sort(C):F;for(var J=-1,Q=F.length,j=g[W++],fe,xe,ee,ne=new b,le;++J<Q;)(le=ne.get(fe=j(xe=F[J])))?le.push(xe):ne.set(fe,[xe]);return P?(xe=P(),ee=function(ge,_e){xe.set(ge,q(P,_e,W))}):(xe={},ee=function(ge,_e){xe[ge]=q(P,_e,W)}),ne.forEach(ee),xe}function z(P,F){if(F>=g.length)return P;var W=[],J=T[F++];return P.forEach(function(Q,j){W.push({key:Q,values:z(j,F)})}),J?W.sort(function(Q,j){return J(Q.key,j.key)}):W}return d.map=function(P,F){return q(F,P,0)},d.entries=function(P){return z(q(e.map,P,0),0)},d.key=function(P){return g.push(P),d},d.sortKeys=function(P){return T[g.length-1]=P,d},d.sortValues=function(P){return C=P,d},d.rollup=function(P){return L=P,d},d},e.set=function(d){var g=new H;if(d)for(var T=0,C=d.length;T<C;++T)g.add(d[T]);return g};function H(){this._=Object.create(null)}w(H,{has:D,add:function(d){return this._[A(d+="")]=!0,d},remove:E,values:R,size:N,empty:I,forEach:function(d){for(var g in this._)d.call(this,S(g))}}),e.behavior={};function O(d){return d}e.rebind=function(d,g){for(var T=1,C=arguments.length,L;++T<C;)d[L=arguments[T]]=G(d,g,g[L]);return d};function G(d,g,T){return function(){var C=T.apply(g,arguments);return C===g?d:C}}function Y(d,g){if(g in d)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var T=0,C=V.length;T<C;++T){var L=V[T]+g;if(L in d)return L}}var V=["webkit","ms","moz","Moz","o","O"];function U(){}e.dispatch=function(){for(var d=new Z,g=-1,T=arguments.length;++g<T;)d[arguments[g]]=X(d);return d};function Z(){}Z.prototype.on=function(d,g){var T=d.indexOf("."),C="";if(T>=0&&(C=d.slice(T+1),d=d.slice(0,T)),d)return arguments.length<2?this[d].on(C):this[d].on(C,g);if(arguments.length===2){if(g==null)for(d in this)this.hasOwnProperty(d)&&this[d].on(C,null);return this}};function X(d){var g=[],T=new b;function C(){for(var L=g,q=-1,z=L.length,P;++q<z;)(P=L[q].on)&&P.apply(this,arguments);return d}return C.on=function(L,q){var z=T.get(L),P;return arguments.length<2?z&&z.on:(z&&(z.on=null,g=g.slice(0,P=g.indexOf(z)).concat(g.slice(P+1)),T.remove(L)),q&&g.push(T.set(L,{on:q})),d)},C}e.event=null;function $(){e.event.preventDefault()}function ae(){for(var d=e.event,g;g=d.sourceEvent;)d=g;return d}function ie(d){for(var g=new Z,T=0,C=arguments.length;++T<C;)g[arguments[T]]=X(g);return g.of=function(L,q){return function(z){try{var P=z.sourceEvent=e.event;z.target=d,e.event=z,g[z.type].apply(L,q)}finally{e.event=P}}},g}e.requote=function(d){return d.replace(ve,"\\$&")};var ve=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,K={}.__proto__?function(d,g){d.__proto__=g}:function(d,g){for(var T in g)d[T]=g[T]};function he(d){return K(d,ce),d}var oe=function(d,g){return g.querySelector(d)},be=function(d,g){return g.querySelectorAll(d)},me=function(d,g){var T=d.matches||d[Y(d,"matchesSelector")];return me=function(C,L){return T.call(C,L)},me(d,g)};typeof Sizzle=="function"&&(oe=function(d,g){return Sizzle(d,g)[0]||null},be=Sizzle,me=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var ce=e.selection.prototype=[];ce.select=function(d){var g=[],T,C,L,q;d=Me(d);for(var z=-1,P=this.length;++z<P;){g.push(T=[]),T.parentNode=(L=this[z]).parentNode;for(var F=-1,W=L.length;++F<W;)(q=L[F])?(T.push(C=d.call(q,q.__data__,F,z)),C&&"__data__"in q&&(C.__data__=q.__data__)):T.push(null)}return he(g)};function Me(d){return typeof d=="function"?d:function(){return oe(d,this)}}ce.selectAll=function(d){var g=[],T,C;d=De(d);for(var L=-1,q=this.length;++L<q;)for(var z=this[L],P=-1,F=z.length;++P<F;)(C=z[P])&&(g.push(T=t(d.call(C,C.__data__,P,L))),T.parentNode=C);return he(g)};function De(d){return typeof d=="function"?d:function(){return be(d,this)}}var Te="http://www.w3.org/1999/xhtml",Pe={svg:"http://www.w3.org/2000/svg",xhtml:Te,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:Pe,qualify:function(d){var g=d.indexOf(":"),T=d;return g>=0&&(T=d.slice(0,g))!=="xmlns"&&(d=d.slice(g+1)),Pe.hasOwnProperty(T)?{space:Pe[T],local:d}:d}},ce.attr=function(d,g){if(arguments.length<2){if(typeof d=="string"){var T=this.node();return d=e.ns.qualify(d),d.local?T.getAttributeNS(d.space,d.local):T.getAttribute(d)}for(g in d)this.each(Se(g,d[g]));return this}return this.each(Se(d,g))};function Se(d,g){d=e.ns.qualify(d);function T(){this.removeAttribute(d)}function C(){this.removeAttributeNS(d.space,d.local)}function L(){this.setAttribute(d,g)}function q(){this.setAttributeNS(d.space,d.local,g)}function z(){var F=g.apply(this,arguments);F==null?this.removeAttribute(d):this.setAttribute(d,F)}function P(){var F=g.apply(this,arguments);F==null?this.removeAttributeNS(d.space,d.local):this.setAttributeNS(d.space,d.local,F)}return g==null?d.local?C:T:typeof g=="function"?d.local?P:z:d.local?q:L}function ke(d){return d.trim().replace(/\s+/g," ")}ce.classed=function(d,g){if(arguments.length<2){if(typeof d=="string"){var T=this.node(),C=(d=Ge(d)).length,L=-1;if(g=T.classList){for(;++L<C;)if(!g.contains(d[L]))return!1}else for(g=T.getAttribute("class");++L<C;)if(!ze(d[L]).test(g))return!1;return!0}for(g in d)this.each(Ce(g,d[g]));return this}return this.each(Ce(d,g))};function ze(d){return new RegExp("(?:^|\\s+)"+e.requote(d)+"(?:\\s+|$)","g")}function Ge(d){return(d+"").trim().split(/^|\s+/)}function Ce(d,g){d=Ge(d).map($e);var T=d.length;function C(){for(var q=-1;++q<T;)d[q](this,g)}function L(){for(var q=-1,z=g.apply(this,arguments);++q<T;)d[q](this,z)}return typeof g=="function"?L:C}function $e(d){var g=ze(d);return function(T,C){if(L=T.classList)return C?L.add(d):L.remove(d);var L=T.getAttribute("class")||"";C?(g.lastIndex=0,g.test(L)||T.setAttribute("class",ke(L+" "+d))):T.setAttribute("class",ke(L.replace(g," ")))}}ce.style=function(d,g,T){var C=arguments.length;if(C<3){if(typeof d!="string"){C<2&&(g="");for(T in d)this.each(Ke(T,d[T],g));return this}if(C<2){var L=this.node();return i(L).getComputedStyle(L,null).getPropertyValue(d)}T=""}return this.each(Ke(d,g,T))};function Ke(d,g,T){function C(){this.style.removeProperty(d)}function L(){this.style.setProperty(d,g,T)}function q(){var z=g.apply(this,arguments);z==null?this.style.removeProperty(d):this.style.setProperty(d,z,T)}return g==null?C:typeof g=="function"?q:L}ce.property=function(d,g){if(arguments.length<2){if(typeof d=="string")return this.node()[d];for(g in d)this.each(Xe(g,d[g]));return this}return this.each(Xe(d,g))};function Xe(d,g){function T(){delete this[d]}function C(){this[d]=g}function L(){var q=g.apply(this,arguments);q==null?delete this[d]:this[d]=q}return g==null?T:typeof g=="function"?L:C}ce.text=function(d){return arguments.length?this.each(typeof d=="function"?function(){var g=d.apply(this,arguments);this.textContent=g==null?"":g}:d==null?function(){this.textContent=""}:function(){this.textContent=d}):this.node().textContent},ce.html=function(d){return arguments.length?this.each(typeof d=="function"?function(){var g=d.apply(this,arguments);this.innerHTML=g==null?"":g}:d==null?function(){this.innerHTML=""}:function(){this.innerHTML=d}):this.node().innerHTML},ce.append=function(d){return d=Ae(d),this.select(function(){return this.appendChild(d.apply(this,arguments))})};function Ae(d){function g(){var C=this.ownerDocument,L=this.namespaceURI;return L===Te&&C.documentElement.namespaceURI===Te?C.createElement(d):C.createElementNS(L,d)}function T(){return this.ownerDocument.createElementNS(d.space,d.local)}return typeof d=="function"?d:(d=e.ns.qualify(d)).local?T:g}ce.insert=function(d,g){return d=Ae(d),g=Me(g),this.select(function(){return this.insertBefore(d.apply(this,arguments),g.apply(this,arguments)||null)})},ce.remove=function(){return this.each(Re)};function Re(){var d=this.parentNode;d&&d.removeChild(this)}ce.data=function(d,g){var T=-1,C=this.length,L,q;if(!arguments.length){for(d=new Array(C=(L=this[0]).length);++T<C;)(q=L[T])&&(d[T]=q.__data__);return d}function z(J,Q){var j,fe=J.length,xe=Q.length,ee=Math.min(fe,xe),ne=new Array(xe),le=new Array(xe),ge=new Array(fe),_e,se;if(g){var Be=new b,nr=new Array(fe),fr;for(j=-1;++j<fe;)(_e=J[j])&&(Be.has(fr=g.call(_e,_e.__data__,j))?ge[j]=_e:Be.set(fr,_e),nr[j]=fr);for(j=-1;++j<xe;)(_e=Be.get(fr=g.call(Q,se=Q[j],j)))?_e!==!0&&(ne[j]=_e,_e.__data__=se):le[j]=Qe(se),Be.set(fr,!0);for(j=-1;++j<fe;)j in nr&&Be.get(nr[j])!==!0&&(ge[j]=J[j])}else{for(j=-1;++j<ee;)_e=J[j],se=Q[j],_e?(_e.__data__=se,ne[j]=_e):le[j]=Qe(se);for(;j<xe;++j)le[j]=Qe(Q[j]);for(;j<fe;++j)ge[j]=J[j]}le.update=ne,le.parentNode=ne.parentNode=ge.parentNode=J.parentNode,P.push(le),F.push(ne),W.push(ge)}var P=dr([]),F=he([]),W=he([]);if(typeof d=="function")for(;++T<C;)z(L=this[T],d.call(L,L.parentNode.__data__,T));else for(;++T<C;)z(L=this[T],d);return F.enter=function(){return P},F.exit=function(){return W},F};function Qe(d){return{__data__:d}}ce.datum=function(d){return arguments.length?this.property("__data__",d):this.property("__data__")},ce.filter=function(d){var g=[],T,C,L;typeof d!="function"&&(d=re(d));for(var q=0,z=this.length;q<z;q++){g.push(T=[]),T.parentNode=(C=this[q]).parentNode;for(var P=0,F=C.length;P<F;P++)(L=C[P])&&d.call(L,L.__data__,P,q)&&T.push(L)}return he(g)};function re(d){return function(){return me(this,d)}}ce.order=function(){for(var d=-1,g=this.length;++d<g;)for(var T=this[d],C=T.length-1,L=T[C],q;--C>=0;)(q=T[C])&&(L&&L!==q.nextSibling&&L.parentNode.insertBefore(q,L),L=q);return this},ce.sort=function(d){d=ye.apply(this,arguments);for(var g=-1,T=this.length;++g<T;)this[g].sort(d);return this.order()};function ye(d){return arguments.length||(d=c),function(g,T){return g&&T?d(g.__data__,T.__data__):!g-!T}}ce.each=function(d){return Ve(this,function(g,T,C){d.call(g,g.__data__,T,C)})};function Ve(d,g){for(var T=0,C=d.length;T<C;T++)for(var L=d[T],q=0,z=L.length,P;q<z;q++)(P=L[q])&&g(P,q,T);return d}ce.call=function(d){var g=t(arguments);return d.apply(g[0]=this,g),this},ce.empty=function(){return!this.node()},ce.node=function(){for(var d=0,g=this.length;d<g;d++)for(var T=this[d],C=0,L=T.length;C<L;C++){var q=T[C];if(q)return q}return null},ce.size=function(){var d=0;return Ve(this,function(){++d}),d};function dr(d){return K(d,Ee),d}var Ee=[];e.selection.enter=dr,e.selection.enter.prototype=Ee,Ee.append=ce.append,Ee.empty=ce.empty,Ee.node=ce.node,Ee.call=ce.call,Ee.size=ce.size,Ee.select=function(d){for(var g=[],T,C,L,q,z,P=-1,F=this.length;++P<F;){L=(q=this[P]).update,g.push(T=[]),T.parentNode=q.parentNode;for(var W=-1,J=q.length;++W<J;)(z=q[W])?(T.push(L[W]=C=d.call(q.parentNode,z.__data__,W,P)),C.__data__=z.__data__):T.push(null)}return he(g)},Ee.insert=function(d,g){return arguments.length<2&&(g=pe(this)),ce.insert.call(this,d,g)};function pe(d){var g,T;return function(C,L,q){var z=d[q].update,P=z.length,F;for(q!=T&&(T=q,g=0),L>=g&&(g=L+1);!(F=z[g])&&++g<P;);return F}}e.select=function(d){var g;return typeof d=="string"?(g=[oe(d,a)],g.parentNode=a.documentElement):(g=[d],g.parentNode=n(d)),he([g])},e.selectAll=function(d){var g;return typeof d=="string"?(g=t(be(d,a)),g.parentNode=a.documentElement):(g=t(d),g.parentNode=null),he([g])},ce.on=function(d,g,T){var C=arguments.length;if(C<3){if(typeof d!="string"){C<2&&(g=!1);for(T in d)this.each(we(T,d[T],g));return this}if(C<2)return(C=this.node()["__on"+d])&&C._;T=!1}return this.each(we(d,g,T))};function we(d,g,T){var C="__on"+d,L=d.indexOf("."),q=We;L>0&&(d=d.slice(0,L));var z=Oe.get(d);z&&(d=z,q=Ie);function P(){var J=this[C];J&&(this.removeEventListener(d,J,J.$),delete this[C])}function F(){var J=q(g,t(arguments));P.call(this),this.addEventListener(d,this[C]=J,J.$=T),J._=g}function W(){var J=new RegExp("^__on([^.]+)"+e.requote(d)+"$"),Q;for(var j in this)if(Q=j.match(J)){var fe=this[j];this.removeEventListener(Q[1],fe,fe.$),delete this[j]}}return L?g?F:P:g?U:W}var Oe=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Oe.forEach(function(d){"on"+d in a&&Oe.remove(d)});function We(d,g){return function(T){var C=e.event;e.event=T,g[0]=this.__data__;try{d.apply(this,g)}finally{e.event=C}}}function Ie(d,g){var T=We(d,g);return function(C){var L=this,q=C.relatedTarget;(!q||q!==L&&!(q.compareDocumentPosition(L)&8))&&T.call(L,C)}}var Ue,ar=0;function ir(d){var g=".dragsuppress-"+ ++ar,T="click"+g,C=e.select(i(d)).on("touchmove"+g,$).on("dragstart"+g,$).on("selectstart"+g,$);if(Ue==null&&(Ue="onselectstart"in d?!1:Y(d.style,"userSelect")),Ue){var L=n(d).style,q=L[Ue];L[Ue]="none"}return function(z){if(C.on(g,null),Ue&&(L[Ue]=q),z){var P=function(){C.on(T,null)};C.on(T,function(){$(),P()},!0),setTimeout(P,0)}}}e.mouse=function(d){return qe(d,ae())};var ur=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function qe(d,g){g.changedTouches&&(g=g.changedTouches[0]);var T=d.ownerSVGElement||d;if(T.createSVGPoint){var C=T.createSVGPoint();if(ur<0){var L=i(d);if(L.scrollX||L.scrollY){T=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var q=T[0][0].getScreenCTM();ur=!(q.f||q.e),T.remove()}}return ur?(C.x=g.pageX,C.y=g.pageY):(C.x=g.clientX,C.y=g.clientY),C=C.matrixTransform(d.getScreenCTM().inverse()),[C.x,C.y]}var z=d.getBoundingClientRect();return[g.clientX-z.left-d.clientLeft,g.clientY-z.top-d.clientTop]}e.touch=function(d,g,T){if(arguments.length<3&&(T=g,g=ae().changedTouches),g){for(var C=0,L=g.length,q;C<L;++C)if((q=g[C]).identifier===T)return qe(d,q)}},e.behavior.drag=function(){var d=ie(L,"drag","dragstart","dragend"),g=null,T=q(U,e.mouse,i,"mousemove","mouseup"),C=q(Je,e.touch,O,"touchmove","touchend");function L(){this.on("mousedown.drag",T).on("touchstart.drag",C)}function q(z,P,F,W,J){return function(){var Q=this,j=e.event.target.correspondingElement||e.event.target,fe=Q.parentNode,xe=d.of(Q,arguments),ee=0,ne=z(),le=".drag"+(ne==null?"":"-"+ne),ge,_e=e.select(F(j)).on(W+le,nr).on(J+le,fr),se=ir(j),Be=P(fe,ne);g?(ge=g.apply(Q,arguments),ge=[ge.x-Be[0],ge.y-Be[1]]):ge=[0,0],xe({type:"dragstart"});function nr(){var or=P(fe,ne),yr,gr;or&&(yr=or[0]-Be[0],gr=or[1]-Be[1],ee|=yr|gr,Be=or,xe({type:"drag",x:or[0]+ge[0],y:or[1]+ge[1],dx:yr,dy:gr}))}function fr(){P(fe,ne)&&(_e.on(W+le,null).on(J+le,null),se(ee),xe({type:"dragend"}))}}}return L.origin=function(z){return arguments.length?(g=z,L):g},e.rebind(L,d,"on")};function Je(){return e.event.changedTouches[0].identifier}e.touches=function(d,g){return arguments.length<2&&(g=ae().touches),g?t(g).map(function(T){var C=qe(d,T);return C.identifier=T.identifier,C}):[]};var Fe=1e-6,hr=Fe*Fe,br=Math.PI,sr=2*br,pr=sr-Fe,te=br/2,de=br/180,Ne=180/br;function Ye(d){return d>0?1:d<0?-1:0}function Kr(d,g,T){return(g[0]-d[0])*(T[1]-d[1])-(g[1]-d[1])*(T[0]-d[0])}function ut(d){return d>1?0:d<-1?br:Math.acos(d)}function pt(d){return d>1?te:d<-1?-te:Math.asin(d)}function Yt(d){return((d=Math.exp(d))-1/d)/2}function Rt(d){return((d=Math.exp(d))+1/d)/2}function Aa(d){return((d=Math.exp(2*d))-1)/(d+1)}function mn(d){return(d=Math.sin(d/2))*d}var oa=Math.SQRT2,fn=2,Pn=4;e.interpolateZoom=function(d,g){var T=d[0],C=d[1],L=d[2],q=g[0],z=g[1],P=g[2],F=q-T,W=z-C,J=F*F+W*W,Q,j;if(J<hr)j=Math.log(P/L)/oa,Q=function(ge){return[T+ge*F,C+ge*W,L*Math.exp(oa*ge*j)]};else{var fe=Math.sqrt(J),xe=(P*P-L*L+Pn*J)/(2*L*fn*fe),ee=(P*P-L*L-Pn*J)/(2*P*fn*fe),ne=Math.log(Math.sqrt(xe*xe+1)-xe),le=Math.log(Math.sqrt(ee*ee+1)-ee);j=(le-ne)/oa,Q=function(ge){var _e=ge*j,se=Rt(ne),Be=L/(fn*fe)*(se*Aa(oa*_e+ne)-Yt(ne));return[T+Be*F,C+Be*W,L*se/Rt(oa*_e+ne)]}}return Q.duration=j*1e3,Q},e.behavior.zoom=function(){var d={x:0,y:0,k:1},g,T,C,L=[960,500],q=Rn,z=250,P=0,F="mousedown.zoom",W="mousemove.zoom",J="mouseup.zoom",Q,j="touchstart.zoom",fe,xe=ie(_e,"zoomstart","zoom","zoomend"),ee,ne,le,ge;mt||(mt="onwheel"in a?(mr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(mr=function(){return e.event.wheelDelta},"mousewheel"):(mr=function(){return-e.event.detail},"MozMousePixelScroll"));function _e(rr){rr.on(F,qr).on(mt+".zoom",Zt).on("dblclick.zoom",lt).on(j,jr)}_e.event=function(rr){rr.each(function(){var Nr=xe.of(this,arguments),Fr=d;ys?e.select(this).transition().each("start.zoom",function(){d=this.__chart__||{x:0,y:0,k:1},gr(Nr)}).tween("zoom:zoom",function(){var et=L[0],Nt=L[1],fa=T?T[0]:et/2,Ea=T?T[1]:Nt/2,Ka=e.interpolateZoom([(fa-d.x)/d.k,(Ea-d.y)/d.k,et/d.k],[(fa-Fr.x)/Fr.k,(Ea-Fr.y)/Fr.k,et/Fr.k]);return function(cn){var Qa=Ka(cn),yn=et/Qa[2];this.__chart__=d={x:fa-Qa[0]*yn,y:Ea-Qa[1]*yn,k:yn},zr(Nr)}}).each("interrupt.zoom",function(){_r(Nr)}).each("end.zoom",function(){_r(Nr)}):(this.__chart__=d,gr(Nr),zr(Nr),_r(Nr))})},_e.translate=function(rr){return arguments.length?(d={x:+rr[0],y:+rr[1],k:d.k},yr(),_e):[d.x,d.y]},_e.scale=function(rr){return arguments.length?(d={x:d.x,y:d.y,k:null},nr(+rr),yr(),_e):d.k},_e.scaleExtent=function(rr){return arguments.length?(q=rr==null?Rn:[+rr[0],+rr[1]],_e):q},_e.center=function(rr){return arguments.length?(C=rr&&[+rr[0],+rr[1]],_e):C},_e.size=function(rr){return arguments.length?(L=rr&&[+rr[0],+rr[1]],_e):L},_e.duration=function(rr){return arguments.length?(z=+rr,_e):z},_e.x=function(rr){return arguments.length?(ne=rr,ee=rr.copy(),d={x:0,y:0,k:1},_e):ne},_e.y=function(rr){return arguments.length?(ge=rr,le=rr.copy(),d={x:0,y:0,k:1},_e):ge};function se(rr){return[(rr[0]-d.x)/d.k,(rr[1]-d.y)/d.k]}function Be(rr){return[rr[0]*d.k+d.x,rr[1]*d.k+d.y]}function nr(rr){d.k=Math.max(q[0],Math.min(q[1],rr))}function fr(rr,Nr){Nr=Be(Nr),d.x+=rr[0]-Nr[0],d.y+=rr[1]-Nr[1]}function or(rr,Nr,Fr,et){rr.__chart__={x:d.x,y:d.y,k:d.k},nr(Math.pow(2,et)),fr(T=Nr,Fr),rr=e.select(rr),z>0&&(rr=rr.transition().duration(z)),rr.call(_e.event)}function yr(){ne&&ne.domain(ee.range().map(function(rr){return(rr-d.x)/d.k}).map(ee.invert)),ge&&ge.domain(le.range().map(function(rr){return(rr-d.y)/d.k}).map(le.invert))}function gr(rr){P++||rr({type:"zoomstart"})}function zr(rr){yr(),rr({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function _r(rr){--P||(rr({type:"zoomend"}),T=null)}function qr(){var rr=this,Nr=xe.of(rr,arguments),Fr=0,et=e.select(i(rr)).on(W,Ea).on(J,Ka),Nt=se(e.mouse(rr)),fa=ir(rr);mh.call(rr),gr(Nr);function Ea(){Fr=1,fr(e.mouse(rr),Nt),zr(Nr)}function Ka(){et.on(W,null).on(J,null),fa(Fr),_r(Nr)}}function jr(){var rr=this,Nr=xe.of(rr,arguments),Fr={},et=0,Nt,fa=".zoom-"+e.event.changedTouches[0].identifier,Ea="touchmove"+fa,Ka="touchend"+fa,cn=[],Qa=e.select(rr),yn=ir(rr);gn(),gr(Nr),Qa.on(F,null).on(j,gn);function Ya(){var qi=e.touches(rr);return Nt=d.k,qi.forEach(function(Pa){Pa.identifier in Fr&&(Fr[Pa.identifier]=se(Pa))}),qi}function gn(){var qi=e.event.target;e.select(qi).on(Ea,gs).on(Ka,hQ),cn.push(qi);for(var Pa=e.event.changedTouches,ti=0,il=Pa.length;ti<il;++ti)Fr[Pa[ti].identifier]=null;var ai=Ya(),ef=Date.now();if(ai.length===1){if(ef-fe<500){var bs=ai[0];or(rr,bs,Fr[bs.identifier],Math.floor(Math.log(d.k)/Math.LN2)+1),$()}fe=ef}else if(ai.length>1){var bs=ai[0],so=ai[1],bh=bs[0]-so[0],a9=bs[1]-so[1];et=bh*bh+a9*a9}}function gs(){var qi=e.touches(rr),Pa,ti,il,ai;mh.call(rr);for(var ef=0,bs=qi.length;ef<bs;++ef,ai=null)if(il=qi[ef],ai=Fr[il.identifier]){if(ti)break;Pa=il,ti=ai}if(ai){var so=(so=il[0]-Pa[0])*so+(so=il[1]-Pa[1])*so,bh=et&&Math.sqrt(so/et);Pa=[(Pa[0]+il[0])/2,(Pa[1]+il[1])/2],ti=[(ti[0]+ai[0])/2,(ti[1]+ai[1])/2],nr(bh*Nt)}fe=null,fr(Pa,ti),zr(Nr)}function hQ(){if(e.event.touches.length){for(var qi=e.event.changedTouches,Pa=0,ti=qi.length;Pa<ti;++Pa)delete Fr[qi[Pa].identifier];for(var il in Fr)return void Ya()}e.selectAll(cn).on(fa,null),Qa.on(F,qr).on(j,jr),yn(),_r(Nr)}}function Zt(){var rr=xe.of(this,arguments);Q?clearTimeout(Q):(mh.call(this),g=se(T=C||e.mouse(this)),gr(rr)),Q=setTimeout(function(){Q=null,_r(rr)},50),$(),nr(Math.pow(2,mr()*.002)*d.k),fr(T,g),zr(rr)}function lt(){var rr=e.mouse(this),Nr=Math.log(d.k)/Math.LN2;or(this,rr,se(rr),e.event.shiftKey?Math.ceil(Nr)-1:Math.floor(Nr)+1)}return e.rebind(_e,xe,"on")};var Rn=[0,1/0],mr,mt;e.color=Qr;function Qr(){}Qr.prototype.toString=function(){return this.rgb()+""},e.hsl=xt;function xt(d,g,T){return this instanceof xt?(this.h=+d,this.s=+g,void(this.l=+T)):arguments.length<2?d instanceof xt?new xt(d.h,d.s,d.l):Qd(""+d,jd,xt):new xt(d,g,T)}var zt=xt.prototype=new Qr;zt.brighter=function(d){return d=Math.pow(.7,arguments.length?d:1),new xt(this.h,this.s,this.l/d)},zt.darker=function(d){return d=Math.pow(.7,arguments.length?d:1),new xt(this.h,this.s,d*this.l)},zt.rgb=function(){return St(this.h,this.s,this.l)};function St(d,g,T){var C,L;d=isNaN(d)?0:(d%=360)<0?d+360:d,g=isNaN(g)||g<0?0:g>1?1:g,T=T<0?0:T>1?1:T,L=T<=.5?T*(1+g):T+g-T*g,C=2*T-L;function q(P){return P>360?P-=360:P<0&&(P+=360),P<60?C+(L-C)*P/60:P<180?L:P<240?C+(L-C)*(240-P)/60:C}function z(P){return Math.round(q(P)*255)}return new Ja(z(d+120),z(d),z(d-120))}e.hcl=ft;function ft(d,g,T){return this instanceof ft?(this.h=+d,this.c=+g,void(this.l=+T)):arguments.length<2?d instanceof ft?new ft(d.h,d.c,d.l):d instanceof Wt?$d(d.l,d.a,d.b):$d((d=eh((d=e.rgb(d)).r,d.g,d.b)).l,d.a,d.b):new ft(d,g,T)}var sa=ft.prototype=new Qr;sa.brighter=function(d){return new ft(this.h,this.c,Math.min(100,this.l+_t*(arguments.length?d:1)))},sa.darker=function(d){return new ft(this.h,this.c,Math.max(0,this.l-_t*(arguments.length?d:1)))},sa.rgb=function(){return jn(this.h,this.c,this.l).rgb()};function jn(d,g,T){return isNaN(d)&&(d=0),isNaN(g)&&(g=0),new Wt(T,Math.cos(d*=de)*g,Math.sin(d)*g)}e.lab=Wt;function Wt(d,g,T){return this instanceof Wt?(this.l=+d,this.a=+g,void(this.b=+T)):arguments.length<2?d instanceof Wt?new Wt(d.l,d.a,d.b):d instanceof ft?jn(d.h,d.c,d.l):eh((d=Ja(d)).r,d.g,d.b):new Wt(d,g,T)}var _t=18,ta=.95047,aa=1,ds=1.08883,io=Wt.prototype=new Qr;io.brighter=function(d){return new Wt(Math.min(100,this.l+_t*(arguments.length?d:1)),this.a,this.b)},io.darker=function(d){return new Wt(Math.max(0,this.l-_t*(arguments.length?d:1)),this.a,this.b)},io.rgb=function(){return Jd(this.l,this.a,this.b)};function Jd(d,g,T){var C=(d+16)/116,L=C+g/500,q=C-T/200;return L=t0(L)*ta,C=t0(C)*aa,q=t0(q)*ds,new Ja(n0(3.2404542*L-1.5371385*C-.4985314*q),n0(-.969266*L+1.8760108*C+.041556*q),n0(.0556434*L-.2040259*C+1.0572252*q))}function $d(d,g,T){return d>0?new ft(Math.atan2(T,g)*Ne,Math.sqrt(g*g+T*T),d):new ft(NaN,NaN,d)}function t0(d){return d>.206893034?d*d*d:(d-4/29)/7.787037}function a0(d){return d>.008856?Math.pow(d,1/3):7.787037*d+4/29}function n0(d){return Math.round(255*(d<=.00304?12.92*d:1.055*Math.pow(d,1/2.4)-.055))}e.rgb=Ja;function Ja(d,g,T){return this instanceof Ja?(this.r=~~d,this.g=~~g,void(this.b=~~T)):arguments.length<2?d instanceof Ja?new Ja(d.r,d.g,d.b):Qd(""+d,Ja,St):new Ja(d,g,T)}function Kd(d){return new Ja(d>>16,d>>8&255,d&255)}function Xu(d){return Kd(d)+""}var Wu=Ja.prototype=new Qr;Wu.brighter=function(d){d=Math.pow(.7,arguments.length?d:1);var g=this.r,T=this.g,C=this.b,L=30;return!g&&!T&&!C?new Ja(L,L,L):(g&&g<L&&(g=L),T&&T<L&&(T=L),C&&C<L&&(C=L),new Ja(Math.min(255,g/d),Math.min(255,T/d),Math.min(255,C/d)))},Wu.darker=function(d){return d=Math.pow(.7,arguments.length?d:1),new Ja(d*this.r,d*this.g,d*this.b)},Wu.hsl=function(){return jd(this.r,this.g,this.b)},Wu.toString=function(){return"#"+lo(this.r)+lo(this.g)+lo(this.b)};function lo(d){return d<16?"0"+Math.max(0,d).toString(16):Math.min(255,d).toString(16)}function Qd(d,g,T){var C=0,L=0,q=0,z,P,F;if(z=/([a-z]+)\((.*)\)/.exec(d=d.toLowerCase()),z)switch(P=z[2].split(","),z[1]){case"hsl":return T(parseFloat(P[0]),parseFloat(P[1])/100,parseFloat(P[2])/100);case"rgb":return g(l0(P[0]),l0(P[1]),l0(P[2]))}return(F=Tr.get(d))?g(F.r,F.g,F.b):(d!=null&&d.charAt(0)==="#"&&!isNaN(F=parseInt(d.slice(1),16))&&(d.length===4?(C=(F&3840)>>4,C=C>>4|C,L=F&240,L=L>>4|L,q=F&15,q=q<<4|q):d.length===7&&(C=(F&16711680)>>16,L=(F&65280)>>8,q=F&255)),g(C,L,q))}function jd(d,g,T){var C=Math.min(d/=255,g/=255,T/=255),L=Math.max(d,g,T),q=L-C,z,P,F=(L+C)/2;return q?(P=F<.5?q/(L+C):q/(2-L-C),d==L?z=(g-T)/q+(g<T?6:0):g==L?z=(T-d)/q+2:z=(d-g)/q+4,z*=60):(z=NaN,P=F>0&&F<1?0:z),new xt(z,P,F)}function eh(d,g,T){d=i0(d),g=i0(g),T=i0(T);var C=a0((.4124564*d+.3575761*g+.1804375*T)/ta),L=a0((.2126729*d+.7151522*g+.072175*T)/aa),q=a0((.0193339*d+.119192*g+.9503041*T)/ds);return Wt(116*L-16,500*(C-L),200*(L-q))}function i0(d){return(d/=255)<=.04045?d/12.92:Math.pow((d+.055)/1.055,2.4)}function l0(d){var g=parseFloat(d);return d.charAt(d.length-1)==="%"?Math.round(g*2.55):g}var Tr=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});Tr.forEach(function(d,g){Tr.set(d,Kd(g))});function wr(d){return typeof d=="function"?d:function(){return d}}e.functor=wr,e.xhr=nt(O);function nt(d){return function(g,T,C){return arguments.length===2&&typeof T=="function"&&(C=T,T=null),lr(g,T,d,C)}}function lr(d,g,T,C){var L={},q=e.dispatch("beforesend","progress","load","error"),z={},P=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in P)&&/^(http(s)?:)?\/\//.test(d)&&(P=new XDomainRequest),"onload"in P?P.onload=P.onerror=W:P.onreadystatechange=function(){P.readyState>3&&W()};function W(){var J=P.status,Q;if(!J&&wt(P)||J>=200&&J<300||J===304){try{Q=T.call(L,P)}catch(j){q.error.call(L,j);return}q.load.call(L,Q)}else q.error.call(L,P)}return P.onprogress=function(J){var Q=e.event;e.event=J;try{q.progress.call(L,P)}finally{e.event=Q}},L.header=function(J,Q){return J=(J+"").toLowerCase(),arguments.length<2?z[J]:(Q==null?delete z[J]:z[J]=Q+"",L)},L.mimeType=function(J){return arguments.length?(g=J==null?null:J+"",L):g},L.responseType=function(J){return arguments.length?(F=J,L):F},L.response=function(J){return T=J,L},["get","post"].forEach(function(J){L[J]=function(){return L.send.apply(L,[J].concat(t(arguments)))}}),L.send=function(J,Q,j){if(arguments.length===2&&typeof Q=="function"&&(j=Q,Q=null),P.open(J,d,!0),g!=null&&!("accept"in z)&&(z.accept=g+",*/*"),P.setRequestHeader)for(var fe in z)P.setRequestHeader(fe,z[fe]);return g!=null&&P.overrideMimeType&&P.overrideMimeType(g),F!=null&&(P.responseType=F),j!=null&&L.on("error",j).on("load",function(xe){j(null,xe)}),q.beforesend.call(L,P),P.send(Q==null?null:Q),L},L.abort=function(){return P.abort(),L},e.rebind(L,q,"on"),C==null?L:L.get($a(C))}function $a(d){return d.length===1?function(g,T){d(g==null?T:null)}:d}function wt(d){var g=d.responseType;return g&&g!=="text"?d.response:d.responseText}e.dsv=function(d,g){var T=new RegExp('["'+d+`
]`),C=d.charCodeAt(0);function L(W,J,Q){arguments.length<3&&(Q=J,J=null);var j=lr(W,g,J==null?q:z(J),Q);return j.row=function(fe){return arguments.length?j.response((J=fe)==null?q:z(fe)):J},j}function q(W){return L.parse(W.responseText)}function z(W){return function(J){return L.parse(J.responseText,W)}}L.parse=function(W,J){var Q;return L.parseRows(W,function(j,fe){if(Q)return Q(j,fe-1);var xe=function(ee){for(var ne={},le=j.length,ge=0;ge<le;++ge)ne[j[ge]]=ee[ge];return ne};Q=J?function(ee,ne){return J(xe(ee),ne)}:xe})},L.parseRows=function(W,J){var Q={},j={},fe=[],xe=W.length,ee=0,ne=0,le,ge;function _e(){if(ee>=xe)return j;if(ge)return ge=!1,Q;var Be=ee;if(W.charCodeAt(Be)===34){for(var nr=Be;nr++<xe;)if(W.charCodeAt(nr)===34){if(W.charCodeAt(nr+1)!==34)break;++nr}ee=nr+2;var fr=W.charCodeAt(nr+1);return fr===13?(ge=!0,W.charCodeAt(nr+2)===10&&++ee):fr===10&&(ge=!0),W.slice(Be+1,nr).replace(/""/g,'"')}for(;ee<xe;){var fr=W.charCodeAt(ee++),or=1;if(fr===10)ge=!0;else if(fr===13)ge=!0,W.charCodeAt(ee)===10&&(++ee,++or);else if(fr!==C)continue;return W.slice(Be,ee-or)}return W.slice(Be)}for(;(le=_e())!==j;){for(var se=[];le!==Q&&le!==j;)se.push(le),le=_e();J&&(se=J(se,ne++))==null||fe.push(se)}return fe},L.format=function(W){if(Array.isArray(W[0]))return L.formatRows(W);var J=new H,Q=[];return W.forEach(function(j){for(var fe in j)J.has(fe)||Q.push(J.add(fe))}),[Q.map(F).join(d)].concat(W.map(function(j){return Q.map(function(fe){return F(j[fe])}).join(d)})).join(`
`)},L.formatRows=function(W){return W.map(P).join(`
`)};function P(W){return W.map(F).join(d)}function F(W){return T.test(W)?'"'+W.replace(/\"/g,'""')+'"':W}return L},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var qa,Da,ei,hs,G7=this[Y(this,"requestAnimationFrame")]||function(d){setTimeout(d,17)};e.timer=function(){rh.apply(this,arguments)};function rh(d,g,T){var C=arguments.length;C<2&&(g=0),C<3&&(T=Date.now());var L=T+g,q={c:d,t:L,n:null};return Da?Da.n=q:qa=q,Da=q,ei||(hs=clearTimeout(hs),ei=1,G7(zg)),q}function zg(){var d=U7(),g=V7()-d;g>24?(isFinite(g)&&(clearTimeout(hs),hs=setTimeout(zg,g)),ei=0):(ei=1,G7(zg))}e.timer.flush=function(){U7(),V7()};function U7(){for(var d=Date.now(),g=qa;g;)d>=g.t&&g.c(d-g.t)&&(g.c=null),g=g.n;return d}function V7(){for(var d,g=qa,T=1/0;g;)g.c?(g.t<T&&(T=g.t),g=(d=g).n):g=d?d.n=g.n:qa=g.n;return Da=d,T}e.round=function(d,g){return g?Math.round(d*(g=Math.pow(10,g)))/g:Math.round(d)},e.geom={};function Zu(d){return d[0]}function o0(d){return d[1]}e.geom.hull=function(d){var g=Zu,T=o0;if(arguments.length)return C(d);function C(L){if(L.length<3)return[];var q=wr(g),z=wr(T),P,F=L.length,W=[],J=[];for(P=0;P<F;P++)W.push([+q.call(this,L[P],P),+z.call(this,L[P],P),P]);for(W.sort(y$),P=0;P<F;P++)J.push([W[P][0],-W[P][1]]);var Q=X7(W),j=X7(J),fe=j[0]===Q[0],xe=j[j.length-1]===Q[Q.length-1],ee=[];for(P=Q.length-1;P>=0;--P)ee.push(L[W[Q[P]][2]]);for(P=+fe;P<j.length-xe;++P)ee.push(L[W[j[P]][2]]);return ee}return C.x=function(L){return arguments.length?(g=L,C):g},C.y=function(L){return arguments.length?(T=L,C):T},C};function X7(d){for(var g=d.length,T=[0,1],C=2,L=2;L<g;L++){for(;C>1&&Kr(d[T[C-2]],d[T[C-1]],d[L])<=0;)--C;T[C++]=L}return T.slice(0,C)}function y$(d,g){return d[0]-g[0]||d[1]-g[1]}e.geom.polygon=function(d){return K(d,th),d};var th=e.geom.polygon.prototype=[];th.area=function(){for(var d=-1,g=this.length,T,C=this[g-1],L=0;++d<g;)T=C,C=this[d],L+=T[1]*C[0]-T[0]*C[1];return L*.5},th.centroid=function(d){var g=-1,T=this.length,C=0,L=0,q,z=this[T-1],P;for(arguments.length||(d=-1/(6*this.area()));++g<T;)q=z,z=this[g],P=q[0]*z[1]-z[0]*q[1],C+=(q[0]+z[0])*P,L+=(q[1]+z[1])*P;return[C*d,L*d]},th.clip=function(d){for(var g,T=W7(d),C=-1,L=this.length-W7(this),q,z,P=this[L-1],F,W,J;++C<L;){for(g=d.slice(),d.length=0,F=this[C],W=g[(z=g.length-T)-1],q=-1;++q<z;)J=g[q],Ng(J,P,F)?(Ng(W,P,F)||d.push(Fg(W,J,P,F)),d.push(J)):Ng(W,P,F)&&d.push(Fg(W,J,P,F)),W=J;T&&d.push(d[0]),P=F}return d};function Ng(d,g,T){return(T[0]-g[0])*(d[1]-g[1])<(T[1]-g[1])*(d[0]-g[0])}function Fg(d,g,T,C){var L=d[0],q=T[0],z=g[0]-L,P=C[0]-q,F=d[1],W=T[1],J=g[1]-F,Q=C[1]-W,j=(P*(F-W)-Q*(L-q))/(Q*z-P*J);return[L+j*z,F+j*J]}function W7(d){var g=d[0],T=d[d.length-1];return!(g[0]-T[0]||g[1]-T[1])}var Ju,ps,$u,Z7=[],Ig,s0,J7=[];function g$(){ih(this),this.edge=this.site=this.circle=null}function $7(d){var g=Z7.pop()||new g$;return g.site=d,g}function Hg(d){Qu(d),$u.remove(d),Z7.push(d),ih(d)}function b$(d){var g=d.circle,T=g.x,C=g.cy,L={x:T,y:C},q=d.P,z=d.N,P=[d];Hg(d);for(var F=q;F.circle&&x(T-F.circle.x)<Fe&&x(C-F.circle.cy)<Fe;)q=F.P,P.unshift(F),Hg(F),F=q;P.unshift(F),Qu(F);for(var W=z;W.circle&&x(T-W.circle.x)<Fe&&x(C-W.circle.cy)<Fe;)z=W.N,P.push(W),Hg(W),W=z;P.push(W),Qu(W);var J=P.length,Q;for(Q=1;Q<J;++Q)W=P[Q],F=P[Q-1],ah(W.edge,F.site,W.site,L);F=P[0],W=P[J-1],W.edge=u0(F.site,W.site,null,L),Ku(F),Ku(W)}function x$(d){for(var g=d.x,T=d.y,C,L,q,z,P=$u._;P;)if(q=K7(P,T)-g,q>Fe)P=P.L;else if(z=g-_$(P,T),z>Fe){if(!P.R){C=P;break}P=P.R}else{q>-Fe?(C=P.P,L=P):z>-Fe?(C=P,L=P.N):C=L=P;break}var F=$7(d);if($u.insert(C,F),!(!C&&!L)){if(C===L){Qu(C),L=$7(C.site),$u.insert(F,L),F.edge=L.edge=u0(C.site,F.site),Ku(C),Ku(L);return}if(!L){F.edge=u0(C.site,F.site);return}Qu(C),Qu(L);var W=C.site,J=W.x,Q=W.y,j=d.x-J,fe=d.y-Q,xe=L.site,ee=xe.x-J,ne=xe.y-Q,le=2*(j*ne-fe*ee),ge=j*j+fe*fe,_e=ee*ee+ne*ne,se={x:(ne*ge-fe*_e)/le+J,y:(j*_e-ee*ge)/le+Q};ah(L.edge,W,xe,se),F.edge=u0(W,d,null,se),L.edge=u0(d,xe,null,se),Ku(C),Ku(L)}}function K7(d,g){var T=d.site,C=T.x,L=T.y,q=L-g;if(!q)return C;var z=d.P;if(!z)return-1/0;T=z.site;var P=T.x,F=T.y,W=F-g;if(!W)return P;var J=P-C,Q=1/q-1/W,j=J/W;return Q?(-j+Math.sqrt(j*j-2*Q*(J*J/(-2*W)-F+W/2+L-q/2)))/Q+C:(C+P)/2}function _$(d,g){var T=d.N;if(T)return K7(T,g);var C=d.site;return C.y===g?C.x:1/0}function Q7(d){this.site=d,this.edges=[]}Q7.prototype.prepare=function(){for(var d=this.edges,g=d.length,T;g--;)T=d[g].edge,(!T.b||!T.a)&&d.splice(g,1);return d.sort(j7),d.length};function w$(d){for(var g=d[0][0],T=d[1][0],C=d[0][1],L=d[1][1],q,z,P,F,W=ps,J=W.length,Q,j,fe,xe,ee,ne;J--;)if(Q=W[J],!(!Q||!Q.prepare()))for(fe=Q.edges,xe=fe.length,j=0;j<xe;)ne=fe[j].end(),P=ne.x,F=ne.y,ee=fe[++j%xe].start(),q=ee.x,z=ee.y,(x(P-q)>Fe||x(F-z)>Fe)&&(fe.splice(j,0,new nh(C$(Q.site,ne,x(P-g)<Fe&&L-F>Fe?{x:g,y:x(q-g)<Fe?z:L}:x(F-L)<Fe&&T-P>Fe?{x:x(z-L)<Fe?q:T,y:L}:x(P-T)<Fe&&F-C>Fe?{x:T,y:x(q-T)<Fe?z:C}:x(F-C)<Fe&&P-g>Fe?{x:x(z-C)<Fe?q:g,y:C}:null),Q.site,null)),++xe)}function j7(d,g){return g.angle-d.angle}function T$(){ih(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ku(d){var g=d.P,T=d.N;if(!(!g||!T)){var C=g.site,L=d.site,q=T.site;if(C!==q){var z=L.x,P=L.y,F=C.x-z,W=C.y-P,J=q.x-z,ne=q.y-P,Q=2*(F*ne-W*J);if(!(Q>=-hr)){var j=F*F+W*W,fe=J*J+ne*ne,xe=(ne*j-W*fe)/Q,ee=(F*fe-J*j)/Q,ne=ee+P,le=J7.pop()||new T$;le.arc=d,le.site=L,le.x=xe+z,le.y=ne+Math.sqrt(xe*xe+ee*ee),le.cy=ne,d.circle=le;for(var ge=null,_e=s0._;_e;)if(le.y<_e.y||le.y===_e.y&&le.x<=_e.x)if(_e.L)_e=_e.L;else{ge=_e.P;break}else if(_e.R)_e=_e.R;else{ge=_e;break}s0.insert(ge,le),ge||(Ig=le)}}}}function Qu(d){var g=d.circle;g&&(g.P||(Ig=g.N),s0.remove(g),J7.push(g),ih(g),d.circle=null)}function M$(d,g,T,C){return function(L){var q=L.a,z=L.b,P=q.x,F=q.y,W=z.x,J=z.y,Q=0,j=1,fe=W-P,xe=J-F,ee;if(ee=d-P,!(!fe&&ee>0)){if(ee/=fe,fe<0){if(ee<Q)return;ee<j&&(j=ee)}else if(fe>0){if(ee>j)return;ee>Q&&(Q=ee)}if(ee=T-P,!(!fe&&ee<0)){if(ee/=fe,fe<0){if(ee>j)return;ee>Q&&(Q=ee)}else if(fe>0){if(ee<Q)return;ee<j&&(j=ee)}if(ee=g-F,!(!xe&&ee>0)){if(ee/=xe,xe<0){if(ee<Q)return;ee<j&&(j=ee)}else if(xe>0){if(ee>j)return;ee>Q&&(Q=ee)}if(ee=C-F,!(!xe&&ee<0)){if(ee/=xe,xe<0){if(ee>j)return;ee>Q&&(Q=ee)}else if(xe>0){if(ee<Q)return;ee<j&&(j=ee)}return Q>0&&(L.a={x:P+Q*fe,y:F+Q*xe}),j<1&&(L.b={x:P+j*fe,y:F+j*xe}),L}}}}}}function A$(d){for(var g=Ju,T=M$(d[0][0],d[0][1],d[1][0],d[1][1]),C=g.length,L;C--;)L=g[C],(!k$(L,d)||!T(L)||x(L.a.x-L.b.x)<Fe&&x(L.a.y-L.b.y)<Fe)&&(L.a=L.b=null,g.splice(C,1))}function k$(d,g){var T=d.b;if(T)return!0;var C=d.a,L=g[0][0],q=g[1][0],z=g[0][1],P=g[1][1],F=d.l,W=d.r,J=F.x,Q=F.y,j=W.x,fe=W.y,xe=(J+j)/2,ee=(Q+fe)/2,ne,le;if(fe===Q){if(xe<L||xe>=q)return;if(J>j){if(!C)C={x:xe,y:z};else if(C.y>=P)return;T={x:xe,y:P}}else{if(!C)C={x:xe,y:P};else if(C.y<z)return;T={x:xe,y:z}}}else if(ne=(J-j)/(fe-Q),le=ee-ne*xe,ne<-1||ne>1)if(J>j){if(!C)C={x:(z-le)/ne,y:z};else if(C.y>=P)return;T={x:(P-le)/ne,y:P}}else{if(!C)C={x:(P-le)/ne,y:P};else if(C.y<z)return;T={x:(z-le)/ne,y:z}}else if(Q<fe){if(!C)C={x:L,y:ne*L+le};else if(C.x>=q)return;T={x:q,y:ne*q+le}}else{if(!C)C={x:q,y:ne*q+le};else if(C.x<L)return;T={x:L,y:ne*L+le}}return d.a=C,d.b=T,!0}function e8(d,g){this.l=d,this.r=g,this.a=this.b=null}function u0(d,g,T,C){var L=new e8(d,g);return Ju.push(L),T&&ah(L,d,g,T),C&&ah(L,g,d,C),ps[d.i].edges.push(new nh(L,d,g)),ps[g.i].edges.push(new nh(L,g,d)),L}function C$(d,g,T){var C=new e8(d,null);return C.a=g,C.b=T,Ju.push(C),C}function ah(d,g,T,C){!d.a&&!d.b?(d.a=C,d.l=g,d.r=T):d.l===T?d.b=C:d.a=C}function nh(d,g,T){var C=d.a,L=d.b;this.edge=d,this.site=g,this.angle=T?Math.atan2(T.y-g.y,T.x-g.x):d.l===g?Math.atan2(L.x-C.x,C.y-L.y):Math.atan2(C.x-L.x,L.y-C.y)}nh.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 Og(){this._=null}function ih(d){d.U=d.C=d.L=d.R=d.P=d.N=null}Og.prototype={insert:function(d,g){var T,C,L;if(d){if(g.P=d,g.N=d.N,d.N&&(d.N.P=g),d.N=g,d.R){for(d=d.R;d.L;)d=d.L;d.L=g}else d.R=g;T=d}else this._?(d=r8(this._),g.P=null,g.N=d,d.P=d.L=g,T=d):(g.P=g.N=null,this._=g,T=null);for(g.L=g.R=null,g.U=T,g.C=!0,d=g;T&&T.C;)C=T.U,T===C.L?(L=C.R,L&&L.C?(T.C=L.C=!1,C.C=!0,d=C):(d===T.R&&(f0(this,T),d=T,T=d.U),T.C=!1,C.C=!0,c0(this,C))):(L=C.L,L&&L.C?(T.C=L.C=!1,C.C=!0,d=C):(d===T.L&&(c0(this,T),d=T,T=d.U),T.C=!1,C.C=!0,f0(this,C))),T=d.U;this._.C=!1},remove:function(d){d.N&&(d.N.P=d.P),d.P&&(d.P.N=d.N),d.N=d.P=null;var g=d.U,T,C=d.L,L=d.R,q,z;if(C?L?q=r8(L):q=C:q=L,g?g.L===d?g.L=q:g.R=q:this._=q,C&&L?(z=q.C,q.C=d.C,q.L=C,C.U=q,q!==L?(g=q.U,q.U=d.U,d=q.R,g.L=d,q.R=L,L.U=q):(q.U=g,g=q,d=q.R)):(z=d.C,d=q),d&&(d.U=g),!z){if(d&&d.C){d.C=!1;return}do{if(d===this._)break;if(d===g.L){if(T=g.R,T.C&&(T.C=!1,g.C=!0,f0(this,g),T=g.R),T.L&&T.L.C||T.R&&T.R.C){(!T.R||!T.R.C)&&(T.L.C=!1,T.C=!0,c0(this,T),T=g.R),T.C=g.C,g.C=T.R.C=!1,f0(this,g),d=this._;break}}else if(T=g.L,T.C&&(T.C=!1,g.C=!0,c0(this,g),T=g.L),T.L&&T.L.C||T.R&&T.R.C){(!T.L||!T.L.C)&&(T.R.C=!1,T.C=!0,f0(this,T),T=g.L),T.C=g.C,g.C=T.L.C=!1,c0(this,g),d=this._;break}T.C=!0,d=g,g=g.U}while(!d.C);d&&(d.C=!1)}}};function f0(d,g){var T=g,C=g.R,L=T.U;L?L.L===T?L.L=C:L.R=C:d._=C,C.U=L,T.U=C,T.R=C.L,T.R&&(T.R.U=T),C.L=T}function c0(d,g){var T=g,C=g.L,L=T.U;L?L.L===T?L.L=C:L.R=C:d._=C,C.U=L,T.U=C,T.L=C.R,T.L&&(T.L.U=T),C.R=T}function r8(d){for(;d.L;)d=d.L;return d}function Bg(d,g){var T=d.sort(L$).pop(),C,L,q;for(Ju=[],ps=new Array(d.length),$u=new Og,s0=new Og;;)if(q=Ig,T&&(!q||T.y<q.y||T.y===q.y&&T.x<q.x))(T.x!==C||T.y!==L)&&(ps[T.i]=new Q7(T),x$(T),C=T.x,L=T.y),T=d.pop();else if(q)b$(q.arc);else break;g&&(A$(g),w$(g));var z={cells:ps,edges:Ju};return $u=s0=Ju=ps=null,z}function L$(d,g){return g.y-d.y||g.x-d.x}e.geom.voronoi=function(d){var g=Zu,T=o0,C=g,L=T,q=lh;if(d)return z(d);function z(F){var W=new Array(F.length),J=q[0][0],Q=q[0][1],j=q[1][0],fe=q[1][1];return Bg(P(F),q).cells.forEach(function(xe,ee){var ne=xe.edges,le=xe.site,ge=W[ee]=ne.length?ne.map(function(_e){var se=_e.start();return[se.x,se.y]}):le.x>=J&&le.x<=j&&le.y>=Q&&le.y<=fe?[[J,fe],[j,fe],[j,Q],[J,Q]]:[];ge.point=F[ee]}),W}function P(F){return F.map(function(W,J){return{x:Math.round(C(W,J)/Fe)*Fe,y:Math.round(L(W,J)/Fe)*Fe,i:J}})}return z.links=function(F){return Bg(P(F)).edges.filter(function(W){return W.l&&W.r}).map(function(W){return{source:F[W.l.i],target:F[W.r.i]}})},z.triangles=function(F){var W=[];return Bg(P(F)).cells.forEach(function(J,Q){for(var j=J.site,fe=J.edges.sort(j7),xe=-1,ee=fe.length,ne,le,ge=fe[ee-1].edge,_e=ge.l===j?ge.r:ge.l;++xe<ee;)ne=ge,le=_e,ge=fe[xe].edge,_e=ge.l===j?ge.r:ge.l,Q<le.i&&Q<_e.i&&S$(j,le,_e)<0&&W.push([F[Q],F[le.i],F[_e.i]])}),W},z.x=function(F){return arguments.length?(C=wr(g=F),z):g},z.y=function(F){return arguments.length?(L=wr(T=F),z):T},z.clipExtent=function(F){return arguments.length?(q=F==null?lh:F,z):q===lh?null:q},z.size=function(F){return arguments.length?z.clipExtent(F&&[[0,0],F]):q===lh?null:q&&q[1]},z};var lh=[[-1e6,-1e6],[1e6,1e6]];function S$(d,g,T){return(d.x-T.x)*(g.y-d.y)-(d.x-g.x)*(T.y-d.y)}e.geom.delaunay=function(d){return e.geom.voronoi().triangles(d)},e.geom.quadtree=function(d,g,T,C,L){var q=Zu,z=o0,P;if(P=arguments.length)return q=q$,z=D$,P===3&&(L=T,C=g,T=g=0),F(d);function F(W){var J,Q=wr(q),j=wr(z),fe,xe,ee,ne,le,ge,_e,se;if(g!=null)le=g,ge=T,_e=C,se=L;else if(_e=se=-(le=ge=1/0),fe=[],xe=[],ne=W.length,P)for(ee=0;ee<ne;++ee)J=W[ee],J.x<le&&(le=J.x),J.y<ge&&(ge=J.y),J.x>_e&&(_e=J.x),J.y>se&&(se=J.y),fe.push(J.x),xe.push(J.y);else for(ee=0;ee<ne;++ee){var Be=+Q(J=W[ee],ee),nr=+j(J,ee);Be<le&&(le=Be),nr<ge&&(ge=nr),Be>_e&&(_e=Be),nr>se&&(se=nr),fe.push(Be),xe.push(nr)}var fr=_e-le,or=se-ge;fr>or?se=ge+fr:_e=le+or;function yr(_r,qr,jr,Zt,lt,rr,Nr,Fr){if(!(isNaN(jr)||isNaN(Zt)))if(_r.leaf){var et=_r.x,Nt=_r.y;if(et!=null)if(x(et-jr)+x(Nt-Zt)<.01)gr(_r,qr,jr,Zt,lt,rr,Nr,Fr);else{var fa=_r.point;_r.x=_r.y=_r.point=null,gr(_r,fa,et,Nt,lt,rr,Nr,Fr),gr(_r,qr,jr,Zt,lt,rr,Nr,Fr)}else _r.x=jr,_r.y=Zt,_r.point=qr}else gr(_r,qr,jr,Zt,lt,rr,Nr,Fr)}function gr(_r,qr,jr,Zt,lt,rr,Nr,Fr){var et=(lt+Nr)*.5,Nt=(rr+Fr)*.5,fa=jr>=et,Ea=Zt>=Nt,Ka=Ea<<1|fa;_r.leaf=!1,_r=_r.nodes[Ka]||(_r.nodes[Ka]=t8()),fa?lt=et:Nr=et,Ea?rr=Nt:Fr=Nt,yr(_r,qr,jr,Zt,lt,rr,Nr,Fr)}var zr=t8();if(zr.add=function(_r){yr(zr,_r,+Q(_r,++ee),+j(_r,ee),le,ge,_e,se)},zr.visit=function(_r){v0(_r,zr,le,ge,_e,se)},zr.find=function(_r){return E$(zr,_r[0],_r[1],le,ge,_e,se)},ee=-1,g==null){for(;++ee<ne;)yr(zr,W[ee],fe[ee],xe[ee],le,ge,_e,se);--ee}else W.forEach(zr.add);return fe=xe=W=J=null,zr}return F.x=function(W){return arguments.length?(q=W,F):q},F.y=function(W){return arguments.length?(z=W,F):z},F.extent=function(W){return arguments.length?(W==null?g=T=C=L=null:(g=+W[0][0],T=+W[0][1],C=+W[1][0],L=+W[1][1]),F):g==null?null:[[g,T],[C,L]]},F.size=function(W){return arguments.length?(W==null?g=T=C=L=null:(g=T=0,C=+W[0],L=+W[1]),F):g==null?null:[C-g,L-T]},F};function q$(d){return d.x}function D$(d){return d.y}function t8(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function v0(d,g,T,C,L,q){if(!d(g,T,C,L,q)){var z=(T+L)*.5,P=(C+q)*.5,F=g.nodes;F[0]&&v0(d,F[0],T,C,z,P),F[1]&&v0(d,F[1],z,C,L,P),F[2]&&v0(d,F[2],T,P,z,q),F[3]&&v0(d,F[3],z,P,L,q)}}function E$(d,g,T,C,L,q,z){var P=1/0,F;return(function W(J,Q,j,fe,xe){if(!(Q>q||j>z||fe<C||xe<L)){if(ee=J.point){var ee,ne=g-J.x,le=T-J.y,ge=ne*ne+le*le;if(ge<P){var _e=Math.sqrt(P=ge);C=g-_e,L=T-_e,q=g+_e,z=T+_e,F=ee}}for(var se=J.nodes,Be=(Q+fe)*.5,nr=(j+xe)*.5,fr=g>=Be,or=T>=nr,yr=or<<1|fr,gr=yr+4;yr<gr;++yr)if(J=se[yr&3])switch(yr&3){case 0:W(J,Q,j,Be,nr);break;case 1:W(J,Be,j,fe,nr);break;case 2:W(J,Q,nr,Be,xe);break;case 3:W(J,Be,nr,fe,xe);break}}})(d,C,L,q,z),F}e.interpolateRgb=Yg;function Yg(d,g){d=e.rgb(d),g=e.rgb(g);var T=d.r,C=d.g,L=d.b,q=g.r-T,z=g.g-C,P=g.b-L;return function(F){return"#"+lo(Math.round(T+q*F))+lo(Math.round(C+z*F))+lo(Math.round(L+P*F))}}e.interpolateObject=a8;function a8(d,g){var T={},C={},L;for(L in d)L in g?T[L]=ms(d[L],g[L]):C[L]=d[L];for(L in g)L in d||(C[L]=g[L]);return function(q){for(L in T)C[L]=T[L](q);return C}}e.interpolateNumber=El;function El(d,g){return d=+d,g=+g,function(T){return d*(1-T)+g*T}}e.interpolateString=n8;function n8(d,g){var T=Gg.lastIndex=Ug.lastIndex=0,C,L,q,z=-1,P=[],F=[];for(d=d+"",g=g+"";(C=Gg.exec(d))&&(L=Ug.exec(g));)(q=L.index)>T&&(q=g.slice(T,q),P[z]?P[z]+=q:P[++z]=q),(C=C[0])===(L=L[0])?P[z]?P[z]+=L:P[++z]=L:(P[++z]=null,F.push({i:z,x:El(C,L)})),T=Ug.lastIndex;return T<g.length&&(q=g.slice(T),P[z]?P[z]+=q:P[++z]=q),P.length<2?F[0]?(g=F[0].x,function(W){return g(W)+""}):function(){return g}:(g=F.length,function(W){for(var J=0,Q;J<g;++J)P[(Q=F[J]).i]=Q.x(W);return P.join("")})}var Gg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ug=new RegExp(Gg.source,"g");e.interpolate=ms;function ms(d,g){for(var T=e.interpolators.length,C;--T>=0&&!(C=e.interpolators[T](d,g)););return C}e.interpolators=[function(d,g){var T=typeof g;return(T==="string"?Tr.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?Yg:n8:g instanceof Qr?Yg:Array.isArray(g)?oh:T==="object"&&isNaN(g)?a8:El)(d,g)}],e.interpolateArray=oh;function oh(d,g){var T=[],C=[],L=d.length,q=g.length,z=Math.min(d.length,g.length),P;for(P=0;P<z;++P)T.push(ms(d[P],g[P]));for(;P<L;++P)C[P]=d[P];for(;P<q;++P)C[P]=g[P];return function(F){for(P=0;P<z;++P)C[P]=T[P](F);return C}}var i8=function(){return O},P$=e.map({linear:i8,poly:H$,quad:function(){return N$},cubic:function(){return F$},sin:function(){return O$},exp:function(){return B$},circle:function(){return Y$},elastic:G$,back:U$,bounce:function(){return V$}}),R$=e.map({in:O,out:l8,"in-out":o8,"out-in":function(d){return o8(l8(d))}});e.ease=function(d){var g=d.indexOf("-"),T=g>=0?d.slice(0,g):d,C=g>=0?d.slice(g+1):"in";return T=P$.get(T)||i8,C=R$.get(C)||O,z$(C(T.apply(null,r.call(arguments,1))))};function z$(d){return function(g){return g<=0?0:g>=1?1:d(g)}}function l8(d){return function(g){return 1-d(1-g)}}function o8(d){return function(g){return .5*(g<.5?d(2*g):2-d(2-2*g))}}function N$(d){return d*d}function F$(d){return d*d*d}function I$(d){if(d<=0)return 0;if(d>=1)return 1;var g=d*d,T=g*d;return 4*(d<.5?T:3*(d-g)+T-.75)}function H$(d){return function(g){return Math.pow(g,d)}}function O$(d){return 1-Math.cos(d*te)}function B$(d){return Math.pow(2,10*(d-1))}function Y$(d){return 1-Math.sqrt(1-d*d)}function G$(d,g){var T;return arguments.length<2&&(g=.45),arguments.length?T=g/sr*Math.asin(1/d):(d=1,T=g/4),function(C){return 1+d*Math.pow(2,-10*C)*Math.sin((C-T)*sr/g)}}function U$(d){return d||(d=1.70158),function(g){return g*g*((d+1)*g-d)}}function V$(d){return d<1/2.75?7.5625*d*d:d<2/2.75?7.5625*(d-=1.5/2.75)*d+.75:d<2.5/2.75?7.5625*(d-=2.25/2.75)*d+.9375:7.5625*(d-=2.625/2.75)*d+.984375}e.interpolateHcl=X$;function X$(d,g){d=e.hcl(d),g=e.hcl(g);var T=d.h,C=d.c,L=d.l,q=g.h-T,z=g.c-C,P=g.l-L;return isNaN(z)&&(z=0,C=isNaN(C)?g.c:C),isNaN(q)?(q=0,T=isNaN(T)?g.h:T):q>180?q-=360:q<-180&&(q+=360),function(F){return jn(T+q*F,C+z*F,L+P*F)+""}}e.interpolateHsl=W$;function W$(d,g){d=e.hsl(d),g=e.hsl(g);var T=d.h,C=d.s,L=d.l,q=g.h-T,z=g.s-C,P=g.l-L;return isNaN(z)&&(z=0,C=isNaN(C)?g.s:C),isNaN(q)?(q=0,T=isNaN(T)?g.h:T):q>180?q-=360:q<-180&&(q+=360),function(F){return St(T+q*F,C+z*F,L+P*F)+""}}e.interpolateLab=Z$;function Z$(d,g){d=e.lab(d),g=e.lab(g);var T=d.l,C=d.a,L=d.b,q=g.l-T,z=g.a-C,P=g.b-L;return function(F){return Jd(T+q*F,C+z*F,L+P*F)+""}}e.interpolateRound=s8;function s8(d,g){return g-=d,function(T){return Math.round(d+g*T)}}e.transform=function(d){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(T){if(T!=null){g.setAttribute("transform",T);var C=g.transform.baseVal.consolidate()}return new u8(C?C.matrix:$$)})(d)};function u8(d){var g=[d.a,d.b],T=[d.c,d.d],C=c8(g),L=f8(g,T),q=c8(J$(T,g,-L))||0;g[0]*T[1]<T[0]*g[1]&&(g[0]*=-1,g[1]*=-1,C*=-1,L*=-1),this.rotate=(C?Math.atan2(g[1],g[0]):Math.atan2(-T[0],T[1]))*Ne,this.translate=[d.e,d.f],this.scale=[C,q],this.skew=q?Math.atan2(L,q)*Ne:0}u8.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function f8(d,g){return d[0]*g[0]+d[1]*g[1]}function c8(d){var g=Math.sqrt(f8(d,d));return g&&(d[0]/=g,d[1]/=g),g}function J$(d,g,T){return d[0]+=T*g[0],d[1]+=T*g[1],d}var $$={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=v8;function ju(d){return d.length?d.pop()+",":""}function K$(d,g,T,C){if(d[0]!==g[0]||d[1]!==g[1]){var L=T.push("translate(",null,",",null,")");C.push({i:L-4,x:El(d[0],g[0])},{i:L-2,x:El(d[1],g[1])})}else(g[0]||g[1])&&T.push("translate("+g+")")}function Q$(d,g,T,C){d!==g?(d-g>180?g+=360:g-d>180&&(d+=360),C.push({i:T.push(ju(T)+"rotate(",null,")")-2,x:El(d,g)})):g&&T.push(ju(T)+"rotate("+g+")")}function j$(d,g,T,C){d!==g?C.push({i:T.push(ju(T)+"skewX(",null,")")-2,x:El(d,g)}):g&&T.push(ju(T)+"skewX("+g+")")}function eK(d,g,T,C){if(d[0]!==g[0]||d[1]!==g[1]){var L=T.push(ju(T)+"scale(",null,",",null,")");C.push({i:L-4,x:El(d[0],g[0])},{i:L-2,x:El(d[1],g[1])})}else(g[0]!==1||g[1]!==1)&&T.push(ju(T)+"scale("+g+")")}function v8(d,g){var T=[],C=[];return d=e.transform(d),g=e.transform(g),K$(d.translate,g.translate,T,C),Q$(d.rotate,g.rotate,T,C),j$(d.skew,g.skew,T,C),eK(d.scale,g.scale,T,C),d=g=null,function(L){for(var q=-1,z=C.length,P;++q<z;)T[(P=C[q]).i]=P.x(L);return T.join("")}}function rK(d,g){return g=(g-=d=+d)||1/g,function(T){return(T-d)/g}}function tK(d,g){return g=(g-=d=+d)||1/g,function(T){return Math.max(0,Math.min(1,(T-d)/g))}}e.layout={},e.layout.bundle=function(){return function(d){for(var g=[],T=-1,C=d.length;++T<C;)g.push(aK(d[T]));return g}};function aK(d){for(var g=d.source,T=d.target,C=nK(g,T),L=[g];g!==C;)g=g.parent,L.push(g);for(var q=L.length;T!==C;)L.splice(q,0,T),T=T.parent;return L}function d8(d){for(var g=[],T=d.parent;T!=null;)g.push(d),d=T,T=T.parent;return g.push(d),g}function nK(d,g){if(d===g)return d;for(var T=d8(d),C=d8(g),L=T.pop(),q=C.pop(),z=null;L===q;)z=L,L=T.pop(),q=C.pop();return z}e.layout.chord=function(){var d={},g,T,C,L,q=0,z,P,F;function W(){var Q={},j=[],fe=e.range(L),xe=[],ee,ne,le,ge,_e;for(g=[],T=[],ee=0,ge=-1;++ge<L;){for(ne=0,_e=-1;++_e<L;)ne+=C[ge][_e];j.push(ne),xe.push(e.range(L)),ee+=ne}for(z&&fe.sort(function(zr,_r){return z(j[zr],j[_r])}),P&&xe.forEach(function(zr,_r){zr.sort(function(qr,jr){return P(C[_r][qr],C[_r][jr])})}),ee=(sr-q*L)/ee,ne=0,ge=-1;++ge<L;){for(le=ne,_e=-1;++_e<L;){var se=fe[ge],Be=xe[se][_e],nr=C[se][Be],fr=ne,or=ne+=nr*ee;Q[se+"-"+Be]={index:se,subindex:Be,startAngle:fr,endAngle:or,value:nr}}T[se]={index:se,startAngle:le,endAngle:ne,value:j[se]},ne+=q}for(ge=-1;++ge<L;)for(_e=ge-1;++_e<L;){var yr=Q[ge+"-"+_e],gr=Q[_e+"-"+ge];(yr.value||gr.value)&&g.push(yr.value<gr.value?{source:gr,target:yr}:{source:yr,target:gr})}F&&J()}function J(){g.sort(function(Q,j){return F((Q.source.value+Q.target.value)/2,(j.source.value+j.target.value)/2)})}return d.matrix=function(Q){return arguments.length?(L=(C=Q)&&C.length,g=T=null,d):C},d.padding=function(Q){return arguments.length?(q=Q,g=T=null,d):q},d.sortGroups=function(Q){return arguments.length?(z=Q,g=T=null,d):z},d.sortSubgroups=function(Q){return arguments.length?(P=Q,g=null,d):P},d.sortChords=function(Q){return arguments.length?(F=Q,g&&J(),d):F},d.chords=function(){return g||W(),g},d.groups=function(){return T||W(),T},d},e.layout.force=function(){var d={},g=e.dispatch("start","tick","end"),T,C=[1,1],L,q,z=.9,P=uK,F=fK,W=-30,J=cK,Q=.1,j=.64,fe=[],xe=[],ee,ne,le;function ge(se){return function(Be,nr,fr,or){if(Be.point!==se){var yr=Be.cx-se.x,gr=Be.cy-se.y,zr=or-nr,_r=yr*yr+gr*gr;if(zr*zr/j<_r){if(_r<J){var qr=Be.charge/_r;se.px-=yr*qr,se.py-=gr*qr}return!0}if(Be.point&&_r&&_r<J){var qr=Be.pointCharge/_r;se.px-=yr*qr,se.py-=gr*qr}}return!Be.charge}}d.tick=function(){if((q*=.99)<.005)return T=null,g.end({type:"end",alpha:q=0}),!0;var se=fe.length,Be=xe.length,nr,fr,or,yr,gr,zr,_r,qr,jr;for(fr=0;fr<Be;++fr)or=xe[fr],yr=or.source,gr=or.target,qr=gr.x-yr.x,jr=gr.y-yr.y,(zr=qr*qr+jr*jr)&&(zr=q*ne[fr]*((zr=Math.sqrt(zr))-ee[fr])/zr,qr*=zr,jr*=zr,gr.x-=qr*(_r=yr.weight+gr.weight?yr.weight/(yr.weight+gr.weight):.5),gr.y-=jr*_r,yr.x+=qr*(_r=1-_r),yr.y+=jr*_r);if((_r=q*Q)&&(qr=C[0]/2,jr=C[1]/2,fr=-1,_r))for(;++fr<se;)or=fe[fr],or.x+=(qr-or.x)*_r,or.y+=(jr-or.y)*_r;if(W)for(h8(nr=e.geom.quadtree(fe),q,le),fr=-1;++fr<se;)(or=fe[fr]).fixed||nr.visit(ge(or));for(fr=-1;++fr<se;)or=fe[fr],or.fixed?(or.x=or.px,or.y=or.py):(or.x-=(or.px-(or.px=or.x))*z,or.y-=(or.py-(or.py=or.y))*z);g.tick({type:"tick",alpha:q})},d.nodes=function(se){return arguments.length?(fe=se,d):fe},d.links=function(se){return arguments.length?(xe=se,d):xe},d.size=function(se){return arguments.length?(C=se,d):C},d.linkDistance=function(se){return arguments.length?(P=typeof se=="function"?se:+se,d):P},d.distance=d.linkDistance,d.linkStrength=function(se){return arguments.length?(F=typeof se=="function"?se:+se,d):F},d.friction=function(se){return arguments.length?(z=+se,d):z},d.charge=function(se){return arguments.length?(W=typeof se=="function"?se:+se,d):W},d.chargeDistance=function(se){return arguments.length?(J=se*se,d):Math.sqrt(J)},d.gravity=function(se){return arguments.length?(Q=+se,d):Q},d.theta=function(se){return arguments.length?(j=se*se,d):Math.sqrt(j)},d.alpha=function(se){return arguments.length?(se=+se,q?se>0?q=se:(T.c=null,T.t=NaN,T=null,g.end({type:"end",alpha:q=0})):se>0&&(g.start({type:"start",alpha:q=se}),T=rh(d.tick)),d):q},d.start=function(){var se,Be=fe.length,nr=xe.length,fr=C[0],or=C[1],yr,gr;for(se=0;se<Be;++se)(gr=fe[se]).index=se,gr.weight=0;for(se=0;se<nr;++se)gr=xe[se],typeof gr.source=="number"&&(gr.source=fe[gr.source]),typeof gr.target=="number"&&(gr.target=fe[gr.target]),++gr.source.weight,++gr.target.weight;for(se=0;se<Be;++se)gr=fe[se],isNaN(gr.x)&&(gr.x=zr("x",fr)),isNaN(gr.y)&&(gr.y=zr("y",or)),isNaN(gr.px)&&(gr.px=gr.x),isNaN(gr.py)&&(gr.py=gr.y);if(ee=[],typeof P=="function")for(se=0;se<nr;++se)ee[se]=+P.call(this,xe[se],se);else for(se=0;se<nr;++se)ee[se]=P;if(ne=[],typeof F=="function")for(se=0;se<nr;++se)ne[se]=+F.call(this,xe[se],se);else for(se=0;se<nr;++se)ne[se]=F;if(le=[],typeof W=="function")for(se=0;se<Be;++se)le[se]=+W.call(this,fe[se],se);else for(se=0;se<Be;++se)le[se]=W;function zr(_r,qr){if(!yr){for(yr=new Array(Be),lt=0;lt<Be;++lt)yr[lt]=[];for(lt=0;lt<nr;++lt){var jr=xe[lt];yr[jr.source.index].push(jr.target),yr[jr.target.index].push(jr.source)}}for(var Zt=yr[se],lt=-1,rr=Zt.length,Nr;++lt<rr;)if(!isNaN(Nr=Zt[lt][_r]))return Nr;return Math.random()*qr}return d.resume()},d.resume=function(){return d.alpha(.1)},d.stop=function(){return d.alpha(0)},d.drag=function(){if(L||(L=e.behavior.drag().origin(O).on("dragstart.force",iK).on("drag.force",_e).on("dragend.force",lK)),!arguments.length)return L;this.on("mouseover.force",oK).on("mouseout.force",sK).call(L)};function _e(se){se.px=e.event.x,se.py=e.event.y,d.resume()}return e.rebind(d,g,"on")};function iK(d){d.fixed|=2}function lK(d){d.fixed&=-7}function oK(d){d.fixed|=4,d.px=d.x,d.py=d.y}function sK(d){d.fixed&=-5}function h8(d,g,T){var C=0,L=0;if(d.charge=0,!d.leaf)for(var q=d.nodes,z=q.length,P=-1,F;++P<z;)F=q[P],F!=null&&(h8(F,g,T),d.charge+=F.charge,C+=F.charge*F.cx,L+=F.charge*F.cy);if(d.point){d.leaf||(d.point.x+=Math.random()-.5,d.point.y+=Math.random()-.5);var W=g*T[d.point.index];d.charge+=d.pointCharge=W,C+=W*d.point.x,L+=W*d.point.y}d.cx=C/d.charge,d.cy=L/d.charge}var uK=20,fK=1,cK=1/0;e.layout.hierarchy=function(){var d=hK,g=vK,T=dK;function C(L){var q=[L],z=[],P;for(L.depth=0;(P=q.pop())!=null;)if(z.push(P),(W=g.call(C,P,P.depth))&&(F=W.length)){for(var F,W,J;--F>=0;)q.push(J=W[F]),J.parent=P,J.depth=P.depth+1;T&&(P.value=0),P.children=W}else T&&(P.value=+T.call(C,P,P.depth)||0),delete P.children;return nl(L,function(Q){var j,fe;d&&(j=Q.children)&&j.sort(d),T&&(fe=Q.parent)&&(fe.value+=Q.value)}),z}return C.sort=function(L){return arguments.length?(d=L,C):d},C.children=function(L){return arguments.length?(g=L,C):g},C.value=function(L){return arguments.length?(T=L,C):T},C.revalue=function(L){return T&&(h0(L,function(q){q.children&&(q.value=0)}),nl(L,function(q){var z;q.children||(q.value=+T.call(C,q,q.depth)||0),(z=q.parent)&&(z.value+=q.value)})),L},C};function d0(d,g){return e.rebind(d,g,"sort","children","value"),d.nodes=d,d.links=pK,d}function h0(d,g){for(var T=[d];(d=T.pop())!=null;)if(g(d),(L=d.children)&&(C=L.length))for(var C,L;--C>=0;)T.push(L[C])}function nl(d,g){for(var T=[d],C=[];(d=T.pop())!=null;)if(C.push(d),(z=d.children)&&(q=z.length))for(var L=-1,q,z;++L<q;)T.push(z[L]);for(;(d=C.pop())!=null;)g(d)}function vK(d){return d.children}function dK(d){return d.value}function hK(d,g){return g.value-d.value}function pK(d){return e.merge(d.map(function(g){return(g.children||[]).map(function(T){return{source:g,target:T}})}))}e.layout.partition=function(){var d=e.layout.hierarchy(),g=[1,1];function T(q,z,P,F){var W=q.children;if(q.x=z,q.y=q.depth*F,q.dx=P,q.dy=F,W&&(Q=W.length)){var J=-1,Q,j,fe;for(P=q.value?P/q.value:0;++J<Q;)T(j=W[J],z,fe=j.value*P,F),z+=fe}}function C(q){var z=q.children,P=0;if(z&&(W=z.length))for(var F=-1,W;++F<W;)P=Math.max(P,C(z[F]));return 1+P}function L(q,z){var P=d.call(this,q,z);return T(P[0],0,g[0],g[1]/C(P[0])),P}return L.size=function(q){return arguments.length?(g=q,L):g},d0(L,d)},e.layout.pie=function(){var d=Number,g=p8,T=0,C=sr,L=0;function q(z){var P=z.length,F=z.map(function(ge,_e){return+d.call(q,ge,_e)}),W=+(typeof T=="function"?T.apply(this,arguments):T),J=(typeof C=="function"?C.apply(this,arguments):C)-W,Q=Math.min(Math.abs(J)/P,+(typeof L=="function"?L.apply(this,arguments):L)),j=Q*(J<0?-1:1),fe=e.sum(F),xe=fe?(J-P*j)/fe:0,ee=e.range(P),ne=[],le;return g!=null&&ee.sort(g===p8?function(ge,_e){return F[_e]-F[ge]}:function(ge,_e){return g(z[ge],z[_e])}),ee.forEach(function(ge){ne[ge]={data:z[ge],value:le=F[ge],startAngle:W,endAngle:W+=le*xe+j,padAngle:Q}}),ne}return q.value=function(z){return arguments.length?(d=z,q):d},q.sort=function(z){return arguments.length?(g=z,q):g},q.startAngle=function(z){return arguments.length?(T=z,q):T},q.endAngle=function(z){return arguments.length?(C=z,q):C},q.padAngle=function(z){return arguments.length?(L=z,q):L},q};var p8={};e.layout.stack=function(){var d=O,g=Vg,T=Xg,C=gK,L=mK,q=yK;function z(P,F){if(!(xe=P.length))return P;var W=P.map(function(ge,_e){return d.call(z,ge,_e)}),J=W.map(function(ge){return ge.map(function(_e,se){return[L.call(z,_e,se),q.call(z,_e,se)]})}),Q=g.call(z,J,F);W=e.permute(W,Q),J=e.permute(J,Q);var j=T.call(z,J,F),fe=W[0].length,xe,ee,ne,le;for(ne=0;ne<fe;++ne)for(C.call(z,W[0][ne],le=j[ne],J[0][ne][1]),ee=1;ee<xe;++ee)C.call(z,W[ee][ne],le+=J[ee-1][ne][1],J[ee][ne][1]);return P}return z.values=function(P){return arguments.length?(d=P,z):d},z.order=function(P){return arguments.length?(g=typeof P=="function"?P:bK.get(P)||Vg,z):g},z.offset=function(P){return arguments.length?(T=typeof P=="function"?P:xK.get(P)||Xg,z):T},z.x=function(P){return arguments.length?(L=P,z):L},z.y=function(P){return arguments.length?(q=P,z):q},z.out=function(P){return arguments.length?(C=P,z):C},z};function mK(d){return d.x}function yK(d){return d.y}function gK(d,g,T){d.y0=g,d.y=T}var bK=e.map({"inside-out":function(d){var g=d.length,T,C,L=d.map(_K),q=d.map(wK),z=e.range(g).sort(function(Q,j){return L[Q]-L[j]}),P=0,F=0,W=[],J=[];for(T=0;T<g;++T)C=z[T],P<F?(P+=q[C],W.push(C)):(F+=q[C],J.push(C));return J.reverse().concat(W)},reverse:function(d){return e.range(d.length).reverse()},default:Vg}),xK=e.map({silhouette:function(d){var g=d.length,T=d[0].length,C=[],L=0,q,z,P,F=[];for(z=0;z<T;++z){for(q=0,P=0;q<g;q++)P+=d[q][z][1];P>L&&(L=P),C.push(P)}for(z=0;z<T;++z)F[z]=(L-C[z])/2;return F},wiggle:function(d){var g=d.length,T=d[0],C=T.length,L,q,z,P,F,W,J,Q,j,fe=[];for(fe[0]=Q=j=0,q=1;q<C;++q){for(L=0,P=0;L<g;++L)P+=d[L][q][1];for(L=0,F=0,J=T[q][0]-T[q-1][0];L<g;++L){for(z=0,W=(d[L][q][1]-d[L][q-1][1])/(2*J);z<L;++z)W+=(d[z][q][1]-d[z][q-1][1])/J;F+=W*d[L][q][1]}fe[q]=Q-=P?F/P*J:0,Q<j&&(j=Q)}for(q=0;q<C;++q)fe[q]-=j;return fe},expand:function(d){var g=d.length,T=d[0].length,C=1/g,L,q,z,P=[];for(q=0;q<T;++q){for(L=0,z=0;L<g;L++)z+=d[L][q][1];if(z)for(L=0;L<g;L++)d[L][q][1]/=z;else for(L=0;L<g;L++)d[L][q][1]=C}for(q=0;q<T;++q)P[q]=0;return P},zero:Xg});function Vg(d){return e.range(d.length)}function Xg(d){for(var g=-1,T=d[0].length,C=[];++g<T;)C[g]=0;return C}function _K(d){for(var g=1,T=0,C=d[0][1],L,q=d.length;g<q;++g)(L=d[g][1])>C&&(T=g,C=L);return T}function wK(d){return d.reduce(TK,0)}function TK(d,g){return d+g[1]}e.layout.histogram=function(){var d=!0,g=Number,T=AK,C=MK;function L(q,j){for(var P=[],F=q.map(g,this),W=T.call(this,F,j),J=C.call(this,W,F,j),Q,j=-1,fe=F.length,xe=J.length-1,ee=d?1:1/fe,ne;++j<xe;)Q=P[j]=[],Q.dx=J[j+1]-(Q.x=J[j]),Q.y=0;if(xe>0)for(j=-1;++j<fe;)ne=F[j],ne>=W[0]&&ne<=W[1]&&(Q=P[e.bisect(J,ne,1,xe)-1],Q.y+=ee,Q.push(q[j]));return P}return L.value=function(q){return arguments.length?(g=q,L):g},L.range=function(q){return arguments.length?(T=wr(q),L):T},L.bins=function(q){return arguments.length?(C=typeof q=="number"?function(z){return m8(z,q)}:wr(q),L):C},L.frequency=function(q){return arguments.length?(d=!!q,L):d},L};function MK(d,g){return m8(d,Math.ceil(Math.log(g.length)/Math.LN2+1))}function m8(d,g){for(var T=-1,C=+d[0],L=(d[1]-C)/g,q=[];++T<=g;)q[T]=L*T+C;return q}function AK(d){return[e.min(d),e.max(d)]}e.layout.pack=function(){var d=e.layout.hierarchy().sort(kK),g=0,T=[1,1],C;function L(q,z){var P=d.call(this,q,z),F=P[0],W=T[0],J=T[1],Q=C==null?Math.sqrt:typeof C=="function"?C:function(){return C};if(F.x=F.y=0,nl(F,function(fe){fe.r=+Q(fe.value)}),nl(F,b8),g){var j=g*(C?1:Math.max(2*F.r/W,2*F.r/J))/2;nl(F,function(fe){fe.r+=j}),nl(F,b8),nl(F,function(fe){fe.r-=j})}return x8(F,W/2,J/2,C?1:1/Math.max(2*F.r/W,2*F.r/J)),P}return L.size=function(q){return arguments.length?(T=q,L):T},L.radius=function(q){return arguments.length?(C=q==null||typeof q=="function"?q:+q,L):C},L.padding=function(q){return arguments.length?(g=+q,L):g},d0(L,d)};function kK(d,g){return d.value-g.value}function Wg(d,g){var T=d._pack_next;d._pack_next=g,g._pack_prev=d,g._pack_next=T,T._pack_prev=g}function y8(d,g){d._pack_next=g,g._pack_prev=d}function g8(d,g){var T=g.x-d.x,C=g.y-d.y,L=d.r+g.r;return .999*L*L>T*T+C*C}function b8(d){if(!(g=d.children)||!(j=g.length))return;var g,T=1/0,C=-1/0,L=1/0,q=-1/0,z,P,F,W,J,Q,j;function fe(se){T=Math.min(se.x-se.r,T),C=Math.max(se.x+se.r,C),L=Math.min(se.y-se.r,L),q=Math.max(se.y+se.r,q)}if(g.forEach(CK),z=g[0],z.x=-z.r,z.y=0,fe(z),j>1&&(P=g[1],P.x=P.r,P.y=0,fe(P),j>2))for(F=g[2],_8(z,P,F),fe(F),Wg(z,F),z._pack_prev=F,Wg(F,P),P=z._pack_next,W=3;W<j;W++){_8(z,P,F=g[W]);var xe=0,ee=1,ne=1;for(J=P._pack_next;J!==P;J=J._pack_next,ee++)if(g8(J,F)){xe=1;break}if(xe==1)for(Q=z._pack_prev;Q!==J._pack_prev&&!g8(Q,F);Q=Q._pack_prev,ne++);xe?(ee<ne||ee==ne&&P.r<z.r?y8(z,P=J):y8(z=Q,P),W--):(Wg(z,F),P=F,fe(F))}var le=(T+C)/2,ge=(L+q)/2,_e=0;for(W=0;W<j;W++)F=g[W],F.x-=le,F.y-=ge,_e=Math.max(_e,F.r+Math.sqrt(F.x*F.x+F.y*F.y));d.r=_e,g.forEach(LK)}function CK(d){d._pack_next=d._pack_prev=d}function LK(d){delete d._pack_next,delete d._pack_prev}function x8(d,g,T,C){var L=d.children;if(d.x=g+=C*d.x,d.y=T+=C*d.y,d.r*=C,L)for(var q=-1,z=L.length;++q<z;)x8(L[q],g,T,C)}function _8(d,g,T){var C=d.r+T.r,L=g.x-d.x,q=g.y-d.y;if(C&&(L||q)){var z=g.r+T.r,P=L*L+q*q;z*=z,C*=C;var F=.5+(C-z)/(2*P),W=Math.sqrt(Math.max(0,2*z*(C+P)-(C-=P)*C-z*z))/(2*P);T.x=d.x+F*L+W*q,T.y=d.y+F*q-W*L}else T.x=d.x+C,T.y=d.y}e.layout.tree=function(){var d=e.layout.hierarchy().sort(null).value(null),g=w8,T=[1,1],C=null;function L(J,Q){var j=d.call(this,J,Q),fe=j[0],xe=q(fe);if(nl(xe,z),xe.parent.m=-xe.z,h0(xe,P),C)h0(fe,W);else{var ee=fe,ne=fe,le=fe;h0(fe,function(Be){Be.x<ee.x&&(ee=Be),Be.x>ne.x&&(ne=Be),Be.depth>le.depth&&(le=Be)});var ge=g(ee,ne)/2-ee.x,_e=T[0]/(ne.x+g(ne,ee)/2+ge),se=T[1]/(le.depth||1);h0(fe,function(Be){Be.x=(Be.x+ge)*_e,Be.y=Be.depth*se})}return j}function q(J){for(var Q={A:null,children:[J]},j=[Q],fe;(fe=j.pop())!=null;)for(var xe=fe.children,ee,ne=0,le=xe.length;ne<le;++ne)j.push((xe[ne]=ee={_:xe[ne],parent:fe,children:(ee=xe[ne].children)&&ee.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:ne}).a=ee);return Q.children[0]}function z(J){var Q=J.children,j=J.parent.children,fe=J.i?j[J.i-1]:null;if(Q.length){qK(J);var xe=(Q[0].z+Q[Q.length-1].z)/2;fe?(J.z=fe.z+g(J._,fe._),J.m=J.z-xe):J.z=xe}else fe&&(J.z=fe.z+g(J._,fe._));J.parent.A=F(J,fe,J.parent.A||j[0])}function P(J){J._.x=J.z+J.parent.m,J.m+=J.parent.m}function F(J,Q,j){if(Q){for(var fe=J,xe=J,ee=Q,ne=fe.parent.children[0],le=fe.m,ge=xe.m,_e=ee.m,se=ne.m,Be;ee=Jg(ee),fe=Zg(fe),ee&&fe;)ne=Zg(ne),xe=Jg(xe),xe.a=J,Be=ee.z+_e-fe.z-le+g(ee._,fe._),Be>0&&(SK(DK(ee,J,j),J,Be),le+=Be,ge+=Be),_e+=ee.m,le+=fe.m,se+=ne.m,ge+=xe.m;ee&&!Jg(xe)&&(xe.t=ee,xe.m+=_e-ge),fe&&!Zg(ne)&&(ne.t=fe,ne.m+=le-se,j=J)}return j}function W(J){J.x*=T[0],J.y=J.depth*T[1]}return L.separation=function(J){return arguments.length?(g=J,L):g},L.size=function(J){return arguments.length?(C=(T=J)==null?W:null,L):C?null:T},L.nodeSize=function(J){return arguments.length?(C=(T=J)==null?null:W,L):C?T:null},d0(L,d)};function w8(d,g){return d.parent==g.parent?1:2}function Zg(d){var g=d.children;return g.length?g[0]:d.t}function Jg(d){var g=d.children,T;return(T=g.length)?g[T-1]:d.t}function SK(d,g,T){var C=T/(g.i-d.i);g.c-=C,g.s+=T,d.c+=C,g.z+=T,g.m+=T}function qK(d){for(var g=0,T=0,C=d.children,L=C.length,q;--L>=0;)q=C[L],q.z+=g,q.m+=g,g+=q.s+(T+=q.c)}function DK(d,g,T){return d.a.parent===g.parent?d.a:T}e.layout.cluster=function(){var d=e.layout.hierarchy().sort(null).value(null),g=w8,T=[1,1],C=!1;function L(q,z){var P=d.call(this,q,z),F=P[0],W,J=0;nl(F,function(ee){var ne=ee.children;ne&&ne.length?(ee.x=PK(ne),ee.y=EK(ne)):(ee.x=W?J+=g(ee,W):0,ee.y=0,W=ee)});var Q=T8(F),j=M8(F),fe=Q.x-g(Q,j)/2,xe=j.x+g(j,Q)/2;return nl(F,C?function(ee){ee.x=(ee.x-F.x)*T[0],ee.y=(F.y-ee.y)*T[1]}:function(ee){ee.x=(ee.x-fe)/(xe-fe)*T[0],ee.y=(1-(F.y?ee.y/F.y:1))*T[1]}),P}return L.separation=function(q){return arguments.length?(g=q,L):g},L.size=function(q){return arguments.length?(C=(T=q)==null,L):C?null:T},L.nodeSize=function(q){return arguments.length?(C=(T=q)!=null,L):C?T:null},d0(L,d)};function EK(d){return 1+e.max(d,function(g){return g.y})}function PK(d){return d.reduce(function(g,T){return g+T.x},0)/d.length}function T8(d){var g=d.children;return g&&g.length?T8(g[0]):d}function M8(d){var g=d.children,T;return g&&(T=g.length)?M8(g[T-1]):d}e.layout.treemap=function(){var d=e.layout.hierarchy(),g=Math.round,T=[1,1],C=null,L=$g,q=!1,z,P="squarify",F=.5*(1+Math.sqrt(5));function W(ee,ne){for(var le=-1,ge=ee.length,_e,se;++le<ge;)se=(_e=ee[le]).value*(ne<0?0:ne),_e.area=isNaN(se)||se<=0?0:se}function J(ee){var ne=ee.children;if(ne&&ne.length){var le=L(ee),ge=[],_e=ne.slice(),se,Be=1/0,nr,fr=P==="slice"?le.dx:P==="dice"?le.dy:P==="slice-dice"?ee.depth&1?le.dy:le.dx:Math.min(le.dx,le.dy),or;for(W(_e,le.dx*le.dy/ee.value),ge.area=0;(or=_e.length)>0;)ge.push(se=_e[or-1]),ge.area+=se.area,P!=="squarify"||(nr=j(ge,fr))<=Be?(_e.pop(),Be=nr):(ge.area-=ge.pop().area,fe(ge,fr,le,!1),fr=Math.min(le.dx,le.dy),ge.length=ge.area=0,Be=1/0);ge.length&&(fe(ge,fr,le,!0),ge.length=ge.area=0),ne.forEach(J)}}function Q(ee){var ne=ee.children;if(ne&&ne.length){var le=L(ee),ge=ne.slice(),_e,se=[];for(W(ge,le.dx*le.dy/ee.value),se.area=0;_e=ge.pop();)se.push(_e),se.area+=_e.area,_e.z!=null&&(fe(se,_e.z?le.dx:le.dy,le,!ge.length),se.length=se.area=0);ne.forEach(Q)}}function j(ee,ne){for(var le=ee.area,ge,_e=0,se=1/0,Be=-1,nr=ee.length;++Be<nr;)(ge=ee[Be].area)&&(ge<se&&(se=ge),ge>_e&&(_e=ge));return le*=le,ne*=ne,le?Math.max(ne*_e*F/le,le/(ne*se*F)):1/0}function fe(ee,ne,le,ge){var _e=-1,se=ee.length,Be=le.x,nr=le.y,fr=ne?g(ee.area/ne):0,or;if(ne==le.dx){for((ge||fr>le.dy)&&(fr=le.dy);++_e<se;)or=ee[_e],or.x=Be,or.y=nr,or.dy=fr,Be+=or.dx=Math.min(le.x+le.dx-Be,fr?g(or.area/fr):0);or.z=!0,or.dx+=le.x+le.dx-Be,le.y+=fr,le.dy-=fr}else{for((ge||fr>le.dx)&&(fr=le.dx);++_e<se;)or=ee[_e],or.x=Be,or.y=nr,or.dx=fr,nr+=or.dy=Math.min(le.y+le.dy-nr,fr?g(or.area/fr):0);or.z=!1,or.dy+=le.y+le.dy-nr,le.x+=fr,le.dx-=fr}}function xe(ee){var ne=z||d(ee),le=ne[0];return le.x=le.y=0,le.value?(le.dx=T[0],le.dy=T[1]):le.dx=le.dy=0,z&&d.revalue(le),W([le],le.dx*le.dy/le.value),(z?Q:J)(le),q&&(z=ne),ne}return xe.size=function(ee){return arguments.length?(T=ee,xe):T},xe.padding=function(ee){if(!arguments.length)return C;function ne(_e){var se=ee.call(xe,_e,_e.depth);return se==null?$g(_e):A8(_e,typeof se=="number"?[se,se,se,se]:se)}function le(_e){return A8(_e,ee)}var ge;return L=(C=ee)==null?$g:(ge=typeof ee)=="function"?ne:(ge==="number"&&(ee=[ee,ee,ee,ee]),le),xe},xe.round=function(ee){return arguments.length?(g=ee?Math.round:Number,xe):g!=Number},xe.sticky=function(ee){return arguments.length?(q=ee,z=null,xe):q},xe.ratio=function(ee){return arguments.length?(F=ee,xe):F},xe.mode=function(ee){return arguments.length?(P=ee+"",xe):P},d0(xe,d)};function $g(d){return{x:d.x,y:d.y,dx:d.dx,dy:d.dy}}function A8(d,g){var T=d.x+g[3],C=d.y+g[0],L=d.dx-g[1]-g[3],q=d.dy-g[0]-g[2];return L<0&&(T+=L/2,L=0),q<0&&(C+=q/2,q=0),{x:T,y:C,dx:L,dy:q}}e.random={normal:function(d,g){var T=arguments.length;return T<2&&(g=1),T<1&&(d=0),function(){var C,L,q;do C=Math.random()*2-1,L=Math.random()*2-1,q=C*C+L*L;while(!q||q>1);return d+g*C*Math.sqrt(-2*Math.log(q)/q)}},logNormal:function(){var d=e.random.normal.apply(e,arguments);return function(){return Math.exp(d())}},bates:function(d){var g=e.random.irwinHall(d);return function(){return g()/d}},irwinHall:function(d){return function(){for(var g=0,T=0;T<d;T++)g+=Math.random();return g}}},e.scale={};function sh(d){var g=d[0],T=d[d.length-1];return g<T?[g,T]:[T,g]}function uh(d){return d.rangeExtent?d.rangeExtent():sh(d.range())}function RK(d,g,T,C){var L=T(d[0],d[1]),q=C(g[0],g[1]);return function(z){return q(L(z))}}function Kg(d,g){var T=0,C=d.length-1,L=d[T],q=d[C],z;return q<L&&(z=T,T=C,C=z,z=L,L=q,q=z),d[T]=g.floor(L),d[C]=g.ceil(q),d}function k8(d){return d?{floor:function(g){return Math.floor(g/d)*d},ceil:function(g){return Math.ceil(g/d)*d}}:zK}var zK={floor:O,ceil:O};function NK(d,g,T,C){var L=[],q=[],z=0,P=Math.min(d.length,g.length)-1;for(d[P]<d[0]&&(d=d.slice().reverse(),g=g.slice().reverse());++z<=P;)L.push(T(d[z-1],d[z])),q.push(C(g[z-1],g[z]));return function(F){var W=e.bisect(d,F,1,P)-1;return q[W](L[W](F))}}e.scale.linear=function(){return C8([0,1],[0,1],ms,!1)};function C8(d,g,T,C){var L,q;function z(){var F=Math.min(d.length,g.length)>2?NK:RK,W=C?tK:rK;return L=F(d,g,W,T),q=F(g,d,W,ms),P}function P(F){return L(F)}return P.invert=function(F){return q(F)},P.domain=function(F){return arguments.length?(d=F.map(Number),z()):d},P.range=function(F){return arguments.length?(g=F,z()):g},P.rangeRound=function(F){return P.range(F).interpolate(s8)},P.clamp=function(F){return arguments.length?(C=F,z()):C},P.interpolate=function(F){return arguments.length?(T=F,z()):T},P.ticks=function(F){return jg(d,F)},P.tickFormat=function(F,W){return d3_scale_linearTickFormat(d,F,W)},P.nice=function(F){return S8(d,F),z()},P.copy=function(){return C8(d,g,T,C)},z()}function L8(d,g){return e.rebind(d,g,"range","rangeRound","interpolate","clamp")}function S8(d,g){return Kg(d,k8(Qg(d,g)[2])),Kg(d,k8(Qg(d,g)[2])),d}function Qg(d,g){g==null&&(g=10);var T=sh(d),C=T[1]-T[0],L=Math.pow(10,Math.floor(Math.log(C/g)/Math.LN10)),q=g/C*L;return q<=.15?L*=10:q<=.35?L*=5:q<=.75&&(L*=2),T[0]=Math.ceil(T[0]/L)*L,T[1]=Math.floor(T[1]/L)*L+L*.5,T[2]=L,T}function jg(d,g){return e.range.apply(e,Qg(d,g))}var FK={s:1,g:1,p:1,r:1,e:1};function q8(d){return-Math.floor(Math.log(d)/Math.LN10+.01)}function Y_e(d,g){var T=q8(g[2]);return d in FK?Math.abs(T-q8(Math.max(x(g[0]),x(g[1]))))+ +(d!=="e"):T-(d==="%")*2}e.scale.log=function(){return D8(e.scale.linear().domain([0,1]),10,!0,[1,10])};function D8(d,g,T,C){function L(P){return(T?Math.log(P<0?0:P):-Math.log(P>0?0:-P))/Math.log(g)}function q(P){return T?Math.pow(g,P):-Math.pow(g,-P)}function z(P){return d(L(P))}return z.invert=function(P){return q(d.invert(P))},z.domain=function(P){return arguments.length?(T=P[0]>=0,d.domain((C=P.map(Number)).map(L)),z):C},z.base=function(P){return arguments.length?(g=+P,d.domain(C.map(L)),z):g},z.nice=function(){var P=Kg(C.map(L),T?Math:IK);return d.domain(P),C=P.map(q),z},z.ticks=function(){var P=sh(C),F=[],W=P[0],J=P[1],Q=Math.floor(L(W)),j=Math.ceil(L(J)),fe=g%1?2:g;if(isFinite(j-Q)){if(T){for(;Q<j;Q++)for(var xe=1;xe<fe;xe++)F.push(q(Q)*xe);F.push(q(Q))}else for(F.push(q(Q));Q++<j;)for(var xe=fe-1;xe>0;xe--)F.push(q(Q)*xe);for(Q=0;F[Q]<W;Q++);for(j=F.length;F[j-1]>J;j--);F=F.slice(Q,j)}return F},z.copy=function(){return D8(d.copy(),g,T,C)},L8(z,d)}var IK={floor:function(d){return-Math.ceil(-d)},ceil:function(d){return-Math.floor(-d)}};e.scale.pow=function(){return E8(e.scale.linear(),1,[0,1])};function E8(d,g,T){var C=fh(g),L=fh(1/g);function q(z){return d(C(z))}return q.invert=function(z){return L(d.invert(z))},q.domain=function(z){return arguments.length?(d.domain((T=z.map(Number)).map(C)),q):T},q.ticks=function(z){return jg(T,z)},q.tickFormat=function(z,P){return d3_scale_linearTickFormat(T,z,P)},q.nice=function(z){return q.domain(S8(T,z))},q.exponent=function(z){return arguments.length?(C=fh(g=z),L=fh(1/g),d.domain(T.map(C)),q):g},q.copy=function(){return E8(d.copy(),g,T)},L8(q,d)}function fh(d){return function(g){return g<0?-Math.pow(-g,d):Math.pow(g,d)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return P8([],{t:"range",a:[[]]})};function P8(d,g){var T,C,L;function q(P){return C[((T.get(P)||(g.t==="range"?T.set(P,d.push(P)):NaN))-1)%C.length]}function z(P,F){return e.range(d.length).map(function(W){return P+F*W})}return q.domain=function(P){if(!arguments.length)return d;d=[],T=new b;for(var F=-1,W=P.length,J;++F<W;)T.has(J=P[F])||T.set(J,d.push(J));return q[g.t].apply(q,g.a)},q.range=function(P){return arguments.length?(C=P,L=0,g={t:"range",a:arguments},q):C},q.rangePoints=function(P,F){arguments.length<2&&(F=0);var W=P[0],J=P[1],Q=d.length<2?(W=(W+J)/2,0):(J-W)/(d.length-1+F);return C=z(W+Q*F/2,Q),L=0,g={t:"rangePoints",a:arguments},q},q.rangeRoundPoints=function(P,F){arguments.length<2&&(F=0);var W=P[0],J=P[1],Q=d.length<2?(W=J=Math.round((W+J)/2),0):(J-W)/(d.length-1+F)|0;return C=z(W+Math.round(Q*F/2+(J-W-(d.length-1+F)*Q)/2),Q),L=0,g={t:"rangeRoundPoints",a:arguments},q},q.rangeBands=function(P,F,W){arguments.length<2&&(F=0),arguments.length<3&&(W=F);var J=P[1]<P[0],Q=P[J-0],j=P[1-J],fe=(j-Q)/(d.length-F+2*W);return C=z(Q+fe*W,fe),J&&C.reverse(),L=fe*(1-F),g={t:"rangeBands",a:arguments},q},q.rangeRoundBands=function(P,F,W){arguments.length<2&&(F=0),arguments.length<3&&(W=F);var J=P[1]<P[0],Q=P[J-0],j=P[1-J],fe=Math.floor((j-Q)/(d.length-F+2*W));return C=z(Q+Math.round((j-Q-(d.length-F)*fe)/2),fe),J&&C.reverse(),L=Math.round(fe*(1-F)),g={t:"rangeRoundBands",a:arguments},q},q.rangeBand=function(){return L},q.rangeExtent=function(){return sh(g.a[0])},q.copy=function(){return P8(d,g)},q.domain(d)}e.scale.category10=function(){return e.scale.ordinal().range(HK)},e.scale.category20=function(){return e.scale.ordinal().range(OK)},e.scale.category20b=function(){return e.scale.ordinal().range(BK)},e.scale.category20c=function(){return e.scale.ordinal().range(YK)};var HK=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Xu),OK=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Xu),BK=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Xu),YK=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Xu);e.scale.quantile=function(){return R8([],[])};function R8(d,g){var T;function C(){var q=0,z=g.length;for(T=[];++q<z;)T[q-1]=e.quantile(d,q/z);return L}function L(q){if(!isNaN(q=+q))return g[e.bisect(T,q)]}return L.domain=function(q){return arguments.length?(d=q.map(v).filter(h).sort(c),C()):d},L.range=function(q){return arguments.length?(g=q,C()):g},L.quantiles=function(){return T},L.invertExtent=function(q){return q=g.indexOf(q),q<0?[NaN,NaN]:[q>0?T[q-1]:d[0],q<T.length?T[q]:d[d.length-1]]},L.copy=function(){return R8(d,g)},C()}e.scale.quantize=function(){return z8(0,1,[0,1])};function z8(d,g,T){var C,L;function q(P){return T[Math.max(0,Math.min(L,Math.floor(C*(P-d))))]}function z(){return C=T.length/(g-d),L=T.length-1,q}return q.domain=function(P){return arguments.length?(d=+P[0],g=+P[P.length-1],z()):[d,g]},q.range=function(P){return arguments.length?(T=P,z()):T},q.invertExtent=function(P){return P=T.indexOf(P),P=P<0?NaN:P/C+d,[P,P+1/C]},q.copy=function(){return z8(d,g,T)},z()}e.scale.threshold=function(){return N8([.5],[0,1])};function N8(d,g){function T(C){if(C<=C)return g[e.bisect(d,C)]}return T.domain=function(C){return arguments.length?(d=C,T):d},T.range=function(C){return arguments.length?(g=C,T):g},T.invertExtent=function(C){return C=g.indexOf(C),[d[C-1],d[C]]},T.copy=function(){return N8(d,g)},T}e.scale.identity=function(){return F8([0,1])};function F8(d){function g(T){return+T}return g.invert=g,g.domain=g.range=function(T){return arguments.length?(d=T.map(g),g):d},g.ticks=function(T){return jg(d,T)},g.tickFormat=function(T,C){return d3_scale_linearTickFormat(d,T,C)},g.copy=function(){return F8(d)},g}e.svg={};function GK(){return 0}e.svg.arc=function(){var d=UK,g=VK,T=GK,C=ch,L=I8,q=H8,z=XK;function P(){var W=Math.max(0,+d.apply(this,arguments)),J=Math.max(0,+g.apply(this,arguments)),Q=L.apply(this,arguments)-te,j=q.apply(this,arguments)-te,fe=Math.abs(j-Q),xe=Q>j?0:1;if(J<W&&(ee=J,J=W,W=ee),fe>=pr)return F(J,xe)+(W?F(W,1-xe):"")+"Z";var ee,ne,le,ge,_e=0,se=0,Be,nr,fr,or,yr,gr,zr,_r,qr=[];if((ge=(+z.apply(this,arguments)||0)/2)&&(le=C===ch?Math.sqrt(W*W+J*J):+C.apply(this,arguments),xe||(se*=-1),J&&(se=pt(le/J*Math.sin(ge))),W&&(_e=pt(le/W*Math.sin(ge)))),J){Be=J*Math.cos(Q+se),nr=J*Math.sin(Q+se),fr=J*Math.cos(j-se),or=J*Math.sin(j-se);var jr=Math.abs(j-Q-2*se)<=br?0:1;if(se&&vh(Be,nr,fr,or)===xe^jr){var Zt=(Q+j)/2;Be=J*Math.cos(Zt),nr=J*Math.sin(Zt),fr=or=null}}else Be=nr=0;if(W){yr=W*Math.cos(j-_e),gr=W*Math.sin(j-_e),zr=W*Math.cos(Q+_e),_r=W*Math.sin(Q+_e);var lt=Math.abs(Q-j+2*_e)<=br?0:1;if(_e&&vh(yr,gr,zr,_r)===1-xe^lt){var rr=(Q+j)/2;yr=W*Math.cos(rr),gr=W*Math.sin(rr),zr=_r=null}}else yr=gr=0;if(fe>Fe&&(ee=Math.min(Math.abs(J-W)/2,+T.apply(this,arguments)))>.001){ne=W<J^xe?0:1;var Nr=ee,Fr=ee;if(fe<br){var et=zr==null?[yr,gr]:fr==null?[Be,nr]:Fg([Be,nr],[zr,_r],[fr,or],[yr,gr]),Nt=Be-et[0],fa=nr-et[1],Ea=fr-et[0],Ka=or-et[1],cn=1/Math.sin(Math.acos((Nt*Ea+fa*Ka)/(Math.sqrt(Nt*Nt+fa*fa)*Math.sqrt(Ea*Ea+Ka*Ka)))/2),Qa=Math.sqrt(et[0]*et[0]+et[1]*et[1]);Fr=Math.min(ee,(W-Qa)/(cn-1)),Nr=Math.min(ee,(J-Qa)/(cn+1))}if(fr!=null){var yn=dh(zr==null?[yr,gr]:[zr,_r],[Be,nr],J,Nr,xe),Ya=dh([fr,or],[yr,gr],J,Nr,xe);ee===Nr?qr.push("M",yn[0],"A",Nr,",",Nr," 0 0,",ne," ",yn[1],"A",J,",",J," 0 ",1-xe^vh(yn[1][0],yn[1][1],Ya[1][0],Ya[1][1]),",",xe," ",Ya[1],"A",Nr,",",Nr," 0 0,",ne," ",Ya[0]):qr.push("M",yn[0],"A",Nr,",",Nr," 0 1,",ne," ",Ya[0])}else qr.push("M",Be,",",nr);if(zr!=null){var gn=dh([Be,nr],[zr,_r],W,-Fr,xe),gs=dh([yr,gr],fr==null?[Be,nr]:[fr,or],W,-Fr,xe);ee===Fr?qr.push("L",gs[0],"A",Fr,",",Fr," 0 0,",ne," ",gs[1],"A",W,",",W," 0 ",xe^vh(gs[1][0],gs[1][1],gn[1][0],gn[1][1]),",",1-xe," ",gn[1],"A",Fr,",",Fr," 0 0,",ne," ",gn[0]):qr.push("L",gs[0],"A",Fr,",",Fr," 0 0,",ne," ",gn[0])}else qr.push("L",yr,",",gr)}else qr.push("M",Be,",",nr),fr!=null&&qr.push("A",J,",",J," 0 ",jr,",",xe," ",fr,",",or),qr.push("L",yr,",",gr),zr!=null&&qr.push("A",W,",",W," 0 ",lt,",",1-xe," ",zr,",",_r);return qr.push("Z"),qr.join("")}function F(W,J){return"M0,"+W+"A"+W+","+W+" 0 1,"+J+" 0,"+-W+"A"+W+","+W+" 0 1,"+J+" 0,"+W}return P.innerRadius=function(W){return arguments.length?(d=wr(W),P):d},P.outerRadius=function(W){return arguments.length?(g=wr(W),P):g},P.cornerRadius=function(W){return arguments.length?(T=wr(W),P):T},P.padRadius=function(W){return arguments.length?(C=W==ch?ch:wr(W),P):C},P.startAngle=function(W){return arguments.length?(L=wr(W),P):L},P.endAngle=function(W){return arguments.length?(q=wr(W),P):q},P.padAngle=function(W){return arguments.length?(z=wr(W),P):z},P.centroid=function(){var W=(+d.apply(this,arguments)+ +g.apply(this,arguments))/2,J=(+L.apply(this,arguments)+ +q.apply(this,arguments))/2-te;return[Math.cos(J)*W,Math.sin(J)*W]},P};var ch="auto";function UK(d){return d.innerRadius}function VK(d){return d.outerRadius}function I8(d){return d.startAngle}function H8(d){return d.endAngle}function XK(d){return d&&d.padAngle}function vh(d,g,T,C){return(d-T)*g-(g-C)*d>0?0:1}function dh(d,g,T,C,L){var q=d[0]-g[0],z=d[1]-g[1],P=(L?C:-C)/Math.sqrt(q*q+z*z),F=P*z,W=-P*q,J=d[0]+F,Q=d[1]+W,j=g[0]+F,fe=g[1]+W,xe=(J+j)/2,ee=(Q+fe)/2,ne=j-J,le=fe-Q,ge=ne*ne+le*le,_e=T-C,se=J*fe-j*Q,Be=(le<0?-1:1)*Math.sqrt(Math.max(0,_e*_e*ge-se*se)),nr=(se*le-ne*Be)/ge,fr=(-se*ne-le*Be)/ge,or=(se*le+ne*Be)/ge,yr=(-se*ne+le*Be)/ge,gr=nr-xe,zr=fr-ee,_r=or-xe,qr=yr-ee;return gr*gr+zr*zr>_r*_r+qr*qr&&(nr=or,fr=yr),[[nr-F,fr-W],[nr*T/_e,fr*T/_e]]}function O8(){return!0}function B8(d){var g=Zu,T=o0,C=O8,L=Si,q=L.key,z=.7;function P(F){var W=[],J=[],Q=-1,j=F.length,fe,xe=wr(g),ee=wr(T);function ne(){W.push("M",L(d(J),z))}for(;++Q<j;)C.call(this,fe=F[Q],Q)?J.push([+xe.call(this,fe,Q),+ee.call(this,fe,Q)]):J.length&&(ne(),J=[]);return J.length&&ne(),W.length?W.join(""):null}return P.x=function(F){return arguments.length?(g=F,P):g},P.y=function(F){return arguments.length?(T=F,P):T},P.defined=function(F){return arguments.length?(C=F,P):C},P.interpolate=function(F){return arguments.length?(typeof F=="function"?q=L=F:q=(L=e2.get(F)||Si).key,P):q},P.tension=function(F){return arguments.length?(z=F,P):z},P}e.svg.line=function(){return B8(O)};var e2=e.map({linear:Si,"linear-closed":Y8,step:WK,"step-before":r2,"step-after":t2,basis:G8,"basis-open":KK,"basis-closed":QK,bundle:jK,cardinal:$K,"cardinal-open":ZK,"cardinal-closed":JK,monotone:tQ});e2.forEach(function(d,g){g.key=d,g.closed=/-closed$/.test(d)});function Si(d){return d.length>1?d.join("L"):d+"Z"}function Y8(d){return d.join("L")+"Z"}function WK(d){for(var g=0,T=d.length,C=d[0],L=[C[0],",",C[1]];++g<T;)L.push("H",(C[0]+(C=d[g])[0])/2,"V",C[1]);return T>1&&L.push("H",C[0]),L.join("")}function r2(d){for(var g=0,T=d.length,C=d[0],L=[C[0],",",C[1]];++g<T;)L.push("V",(C=d[g])[1],"H",C[0]);return L.join("")}function t2(d){for(var g=0,T=d.length,C=d[0],L=[C[0],",",C[1]];++g<T;)L.push("H",(C=d[g])[0],"V",C[1]);return L.join("")}function ZK(d,g){return d.length<4?Si(d):d[1]+hh(d.slice(1,-1),a2(d,g))}function JK(d,g){return d.length<3?Y8(d):d[0]+hh((d.push(d[0]),d),a2([d[d.length-2]].concat(d,[d[1]]),g))}function $K(d,g){return d.length<3?Si(d):d[0]+hh(d,a2(d,g))}function hh(d,g){if(g.length<1||d.length!=g.length&&d.length!=g.length+2)return Si(d);var T=d.length!=g.length,C="",L=d[0],q=d[1],z=g[0],P=z,F=1;if(T&&(C+="Q"+(q[0]-z[0]*2/3)+","+(q[1]-z[1]*2/3)+","+q[0]+","+q[1],L=d[1],F=2),g.length>1){P=g[1],q=d[F],F++,C+="C"+(L[0]+z[0])+","+(L[1]+z[1])+","+(q[0]-P[0])+","+(q[1]-P[1])+","+q[0]+","+q[1];for(var W=2;W<g.length;W++,F++)q=d[F],P=g[W],C+="S"+(q[0]-P[0])+","+(q[1]-P[1])+","+q[0]+","+q[1]}if(T){var J=d[F];C+="Q"+(q[0]+P[0]*2/3)+","+(q[1]+P[1]*2/3)+","+J[0]+","+J[1]}return C}function a2(d,g){for(var T=[],C=(1-g)/2,L,q=d[0],z=d[1],P=1,F=d.length;++P<F;)L=q,q=z,z=d[P],T.push([C*(z[0]-L[0]),C*(z[1]-L[1])]);return T}function G8(d){if(d.length<3)return Si(d);var g=1,T=d.length,C=d[0],L=C[0],q=C[1],z=[L,L,L,(C=d[1])[0]],P=[q,q,q,C[1]],F=[L,",",q,"L",ri(oo,z),",",ri(oo,P)];for(d.push(d[T-1]);++g<=T;)C=d[g],z.shift(),z.push(C[0]),P.shift(),P.push(C[1]),n2(F,z,P);return d.pop(),F.push("L",C),F.join("")}function KK(d){if(d.length<4)return Si(d);for(var g=[],T=-1,C=d.length,L,q=[0],z=[0];++T<3;)L=d[T],q.push(L[0]),z.push(L[1]);for(g.push(ri(oo,q)+","+ri(oo,z)),--T;++T<C;)L=d[T],q.shift(),q.push(L[0]),z.shift(),z.push(L[1]),n2(g,q,z);return g.join("")}function QK(d){for(var g,T=-1,C=d.length,L=C+4,q,z=[],P=[];++T<4;)q=d[T%C],z.push(q[0]),P.push(q[1]);for(g=[ri(oo,z),",",ri(oo,P)],--T;++T<L;)q=d[T%C],z.shift(),z.push(q[0]),P.shift(),P.push(q[1]),n2(g,z,P);return g.join("")}function jK(d,g){var T=d.length-1;if(T)for(var C=d[0][0],L=d[0][1],q=d[T][0]-C,z=d[T][1]-L,P=-1,F,W;++P<=T;)F=d[P],W=P/T,F[0]=g*F[0]+(1-g)*(C+W*q),F[1]=g*F[1]+(1-g)*(L+W*z);return G8(d)}function ri(d,g){return d[0]*g[0]+d[1]*g[1]+d[2]*g[2]+d[3]*g[3]}var U8=[0,2/3,1/3,0],V8=[0,1/3,2/3,0],oo=[0,1/6,2/3,1/6];function n2(d,g,T){d.push("C",ri(U8,g),",",ri(U8,T),",",ri(V8,g),",",ri(V8,T),",",ri(oo,g),",",ri(oo,T))}function i2(d,g){return(g[1]-d[1])/(g[0]-d[0])}function eQ(d){for(var g=0,T=d.length-1,C=[],L=d[0],q=d[1],z=C[0]=i2(L,q);++g<T;)C[g]=(z+(z=i2(L=q,q=d[g+1])))/2;return C[g]=z,C}function rQ(d){for(var g=[],T,C,L,q,z=eQ(d),P=-1,F=d.length-1;++P<F;)T=i2(d[P],d[P+1]),x(T)<Fe?z[P]=z[P+1]=0:(C=z[P]/T,L=z[P+1]/T,q=C*C+L*L,q>9&&(q=T*3/Math.sqrt(q),z[P]=q*C,z[P+1]=q*L));for(P=-1;++P<=F;)q=(d[Math.min(F,P+1)][0]-d[Math.max(0,P-1)][0])/(6*(1+z[P]*z[P])),g.push([q||0,z[P]*q||0]);return g}function tQ(d){return d.length<3?Si(d):d[0]+hh(d,rQ(d))}e.svg.line.radial=function(){var d=B8(X8);return d.radius=d.x,delete d.x,d.angle=d.y,delete d.y,d};function X8(d){for(var g,T=-1,C=d.length,L,q;++T<C;)g=d[T],L=g[0],q=g[1]-te,g[0]=L*Math.cos(q),g[1]=L*Math.sin(q);return d}function W8(d){var g=Zu,T=Zu,C=0,L=o0,q=O8,z=Si,P=z.key,F=z,W="L",J=.7;function Q(j){var fe=[],xe=[],ee=[],ne=-1,le=j.length,ge,_e=wr(g),se=wr(C),Be=g===T?function(){return fr}:wr(T),nr=C===L?function(){return or}:wr(L),fr,or;function yr(){fe.push("M",z(d(ee),J),W,F(d(xe.reverse()),J),"Z")}for(;++ne<le;)q.call(this,ge=j[ne],ne)?(xe.push([fr=+_e.call(this,ge,ne),or=+se.call(this,ge,ne)]),ee.push([+Be.call(this,ge,ne),+nr.call(this,ge,ne)])):xe.length&&(yr(),xe=[],ee=[]);return xe.length&&yr(),fe.length?fe.join(""):null}return Q.x=function(j){return arguments.length?(g=T=j,Q):T},Q.x0=function(j){return arguments.length?(g=j,Q):g},Q.x1=function(j){return arguments.length?(T=j,Q):T},Q.y=function(j){return arguments.length?(C=L=j,Q):L},Q.y0=function(j){return arguments.length?(C=j,Q):C},Q.y1=function(j){return arguments.length?(L=j,Q):L},Q.defined=function(j){return arguments.length?(q=j,Q):q},Q.interpolate=function(j){return arguments.length?(typeof j=="function"?P=z=j:P=(z=e2.get(j)||Si).key,F=z.reverse||z,W=z.closed?"M":"L",Q):P},Q.tension=function(j){return arguments.length?(J=j,Q):J},Q}r2.reverse=t2,t2.reverse=r2,e.svg.area=function(){return W8(O)},e.svg.area.radial=function(){var d=W8(X8);return d.radius=d.x,delete d.x,d.innerRadius=d.x0,delete d.x0,d.outerRadius=d.x1,delete d.x1,d.angle=d.y,delete d.y,d.startAngle=d.y0,delete d.y0,d.endAngle=d.y1,delete d.y1,d};function Z8(d){return d.source}function J8(d){return d.target}e.svg.chord=function(){var d=Z8,g=J8,T=aQ,C=I8,L=H8;function q(J,Q){var j=z(this,d,J,Q),fe=z(this,g,J,Q);return"M"+j.p0+F(j.r,j.p1,j.a1-j.a0)+(P(j,fe)?W(j.r,j.p1,j.r,j.p0):W(j.r,j.p1,fe.r,fe.p0)+F(fe.r,fe.p1,fe.a1-fe.a0)+W(fe.r,fe.p1,j.r,j.p0))+"Z"}function z(J,Q,j,fe){var xe=Q.call(J,j,fe),ee=T.call(J,xe,fe),ne=C.call(J,xe,fe)-te,le=L.call(J,xe,fe)-te;return{r:ee,a0:ne,a1:le,p0:[ee*Math.cos(ne),ee*Math.sin(ne)],p1:[ee*Math.cos(le),ee*Math.sin(le)]}}function P(J,Q){return J.a0==Q.a0&&J.a1==Q.a1}function F(J,Q,j){return"A"+J+","+J+" 0 "+ +(j>br)+",1 "+Q}function W(J,Q,j,fe){return"Q 0,0 "+fe}return q.radius=function(J){return arguments.length?(T=wr(J),q):T},q.source=function(J){return arguments.length?(d=wr(J),q):d},q.target=function(J){return arguments.length?(g=wr(J),q):g},q.startAngle=function(J){return arguments.length?(C=wr(J),q):C},q.endAngle=function(J){return arguments.length?(L=wr(J),q):L},q};function aQ(d){return d.radius}e.svg.diagonal=function(){var d=Z8,g=J8,T=$8;function C(L,q){var z=d.call(this,L,q),P=g.call(this,L,q),F=(z.y+P.y)/2,W=[z,{x:z.x,y:F},{x:P.x,y:F},P];return W=W.map(T),"M"+W[0]+"C"+W[1]+" "+W[2]+" "+W[3]}return C.source=function(L){return arguments.length?(d=wr(L),C):d},C.target=function(L){return arguments.length?(g=wr(L),C):g},C.projection=function(L){return arguments.length?(T=L,C):T},C};function $8(d){return[d.x,d.y]}e.svg.diagonal.radial=function(){var d=e.svg.diagonal(),g=$8,T=d.projection;return d.projection=function(C){return arguments.length?T(nQ(g=C)):g},d};function nQ(d){return function(){var g=d.apply(this,arguments),T=g[0],C=g[1]-te;return[T*Math.cos(C),T*Math.sin(C)]}}e.svg.symbol=function(){var d=lQ,g=iQ;function T(C,L){return(Q8.get(d.call(this,C,L))||K8)(g.call(this,C,L))}return T.type=function(C){return arguments.length?(d=wr(C),T):d},T.size=function(C){return arguments.length?(g=wr(C),T):g},T};function iQ(){return 64}function lQ(){return"circle"}function K8(d){var g=Math.sqrt(d/br);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var Q8=e.map({circle:K8,cross:function(d){var g=Math.sqrt(d/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(d){var g=Math.sqrt(d/(2*j8)),T=g*j8;return"M0,"+-g+"L"+T+",0 0,"+g+" "+-T+",0Z"},square:function(d){var g=Math.sqrt(d)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(d){var g=Math.sqrt(d/ph),T=g*ph/2;return"M0,"+T+"L"+g+","+-T+" "+-g+","+-T+"Z"},"triangle-up":function(d){var g=Math.sqrt(d/ph),T=g*ph/2;return"M0,"+-T+"L"+g+","+T+" "+-g+","+T+"Z"}});e.svg.symbolTypes=Q8.keys();var ph=Math.sqrt(3),j8=Math.tan(30*de);ce.transition=function(d){for(var g=ys||++r9,T=o2(d),C=[],L,q,z=yh||{time:Date.now(),ease:I$,delay:0,duration:250},P=-1,F=this.length;++P<F;){C.push(L=[]);for(var W=this[P],J=-1,Q=W.length;++J<Q;)(q=W[J])&&gh(q,J,T,g,z),L.push(q)}return p0(C,T,g)},ce.interrupt=function(d){return this.each(d==null?mh:e9(o2(d)))};var mh=e9(o2());function e9(d){return function(){var g,T,C;(g=this[d])&&(C=g[T=g.active])&&(C.timer.c=null,C.timer.t=NaN,--g.count?delete g[T]:delete this[d],g.active+=.5,C.event&&C.event.interrupt.call(this,this.__data__,C.index))}}function p0(d,g,T){return K(d,ua),d.namespace=g,d.id=T,d}var ua=[],r9=0,ys,yh;ua.call=ce.call,ua.empty=ce.empty,ua.node=ce.node,ua.size=ce.size,e.transition=function(d,g){return d&&d.transition?ys?d.transition(g):d:e.selection().transition(d)},e.transition.prototype=ua,ua.select=function(d){var g=this.id,T=this.namespace,C=[],L,q,z;d=Me(d);for(var P=-1,F=this.length;++P<F;){C.push(L=[]);for(var W=this[P],J=-1,Q=W.length;++J<Q;)(z=W[J])&&(q=d.call(z,z.__data__,J,P))?("__data__"in z&&(q.__data__=z.__data__),gh(q,J,T,g,z[T][g]),L.push(q)):L.push(null)}return p0(C,T,g)},ua.selectAll=function(d){var g=this.id,T=this.namespace,C=[],L,q,z,P,F;d=De(d);for(var W=-1,J=this.length;++W<J;)for(var Q=this[W],j=-1,fe=Q.length;++j<fe;)if(z=Q[j]){F=z[T][g],q=d.call(z,z.__data__,j,W),C.push(L=[]);for(var xe=-1,ee=q.length;++xe<ee;)(P=q[xe])&&gh(P,xe,T,g,F),L.push(P)}return p0(C,T,g)},ua.filter=function(d){var g=[],T,C,L;typeof d!="function"&&(d=re(d));for(var q=0,z=this.length;q<z;q++){g.push(T=[]);for(var C=this[q],P=0,F=C.length;P<F;P++)(L=C[P])&&d.call(L,L.__data__,P,q)&&T.push(L)}return p0(g,this.namespace,this.id)},ua.tween=function(d,g){var T=this.id,C=this.namespace;return arguments.length<2?this.node()[C][T].tween.get(d):Ve(this,g==null?function(L){L[C][T].tween.remove(d)}:function(L){L[C][T].tween.set(d,g)})};function l2(d,g,T,C){var L=d.id,q=d.namespace;return Ve(d,typeof T=="function"?function(z,P,F){z[q][L].tween.set(g,C(T.call(z,z.__data__,P,F)))}:(T=C(T),function(z){z[q][L].tween.set(g,T)}))}ua.attr=function(d,g){if(arguments.length<2){for(g in d)this.attr(g,d[g]);return this}var T=d=="transform"?v8:ms,C=e.ns.qualify(d);function L(){this.removeAttribute(C)}function q(){this.removeAttributeNS(C.space,C.local)}function z(F){return F==null?L:(F+="",function(){var W=this.getAttribute(C),J;return W!==F&&(J=T(W,F),function(Q){this.setAttribute(C,J(Q))})})}function P(F){return F==null?q:(F+="",function(){var W=this.getAttributeNS(C.space,C.local),J;return W!==F&&(J=T(W,F),function(Q){this.setAttributeNS(C.space,C.local,J(Q))})})}return l2(this,"attr."+d,g,C.local?P:z)},ua.attrTween=function(d,g){var T=e.ns.qualify(d);function C(q,z){var P=g.call(this,q,z,this.getAttribute(T));return P&&function(F){this.setAttribute(T,P(F))}}function L(q,z){var P=g.call(this,q,z,this.getAttributeNS(T.space,T.local));return P&&function(F){this.setAttributeNS(T.space,T.local,P(F))}}return this.tween("attr."+d,T.local?L:C)},ua.style=function(d,g,T){var C=arguments.length;if(C<3){if(typeof d!="string"){C<2&&(g="");for(T in d)this.style(T,d[T],g);return this}T=""}function L(){this.style.removeProperty(d)}function q(z){return z==null?L:(z+="",function(){var P=i(this).getComputedStyle(this,null).getPropertyValue(d),F;return P!==z&&(F=ms(P,z),function(W){this.style.setProperty(d,F(W),T)})})}return l2(this,"style."+d,g,q)},ua.styleTween=function(d,g,T){arguments.length<3&&(T="");function C(L,q){var z=g.call(this,L,q,i(this).getComputedStyle(this,null).getPropertyValue(d));return z&&function(P){this.style.setProperty(d,z(P),T)}}return this.tween("style."+d,C)},ua.text=function(d){return l2(this,"text",d,oQ)};function oQ(d){return d==null&&(d=""),function(){this.textContent=d}}ua.remove=function(){var d=this.namespace;return this.each("end.transition",function(){var g;this[d].count<2&&(g=this.parentNode)&&g.removeChild(this)})},ua.ease=function(d){var g=this.id,T=this.namespace;return arguments.length<1?this.node()[T][g].ease:(typeof d!="function"&&(d=e.ease.apply(e,arguments)),Ve(this,function(C){C[T][g].ease=d}))},ua.delay=function(d){var g=this.id,T=this.namespace;return arguments.length<1?this.node()[T][g].delay:Ve(this,typeof d=="function"?function(C,L,q){C[T][g].delay=+d.call(C,C.__data__,L,q)}:(d=+d,function(C){C[T][g].delay=d}))},ua.duration=function(d){var g=this.id,T=this.namespace;return arguments.length<1?this.node()[T][g].duration:Ve(this,typeof d=="function"?function(C,L,q){C[T][g].duration=Math.max(1,d.call(C,C.__data__,L,q))}:(d=Math.max(1,d),function(C){C[T][g].duration=d}))},ua.each=function(d,g){var T=this.id,C=this.namespace;if(arguments.length<2){var L=yh,q=ys;try{ys=T,Ve(this,function(z,P,F){yh=z[C][T],d.call(z,z.__data__,P,F)})}finally{yh=L,ys=q}}else Ve(this,function(z){var P=z[C][T];(P.event||(P.event=e.dispatch("start","end","interrupt"))).on(d,g)});return this},ua.transition=function(){for(var d=this.id,g=++r9,T=this.namespace,C=[],L,q,z,P,F=0,W=this.length;F<W;F++){C.push(L=[]);for(var q=this[F],J=0,Q=q.length;J<Q;J++)(z=q[J])&&(P=z[T][d],gh(z,J,T,g,{time:P.time,ease:P.ease,delay:P.delay+P.duration,duration:P.duration})),L.push(z)}return p0(C,T,g)};function o2(d){return d==null?"__transition__":"__transition_"+d+"__"}function gh(d,g,T,C,L){var q=d[T]||(d[T]={active:0,count:0}),z=q[C],P,F,W,J,Q;function j(ee){var ne=z.delay;if(F.t=ne+P,ne<=ee)return fe(ee-ne);F.c=fe}function fe(ee){var ne=q.active,le=q[ne];le&&(le.timer.c=null,le.timer.t=NaN,--q.count,delete q[ne],le.event&&le.event.interrupt.call(d,d.__data__,le.index));for(var ge in q)if(+ge<C){var _e=q[ge];_e.timer.c=null,_e.timer.t=NaN,--q.count,delete q[ge]}F.c=xe,rh(function(){return F.c&&xe(ee||1)&&(F.c=null,F.t=NaN),1},0,P),q.active=C,z.event&&z.event.start.call(d,d.__data__,g),Q=[],z.tween.forEach(function(se,Be){(Be=Be.call(d,d.__data__,g))&&Q.push(Be)}),J=z.ease,W=z.duration}function xe(ee){for(var ne=ee/W,le=J(ne),ge=Q.length;ge>0;)Q[--ge].call(d,le);if(ne>=1)return z.event&&z.event.end.call(d,d.__data__,g),--q.count?delete q[C]:delete d[T],1}z||(P=L.time,F=rh(j,0,P),z=q[C]={tween:new b,time:P,timer:F,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++q.count)}e.svg.axis=function(){var d=e.scale.linear(),g=t9,T=6,C=6,L=3,q=[10],z=null,P;function F(W){W.each(function(){var J=e.select(this),Q=this.__chart__||d,j=this.__chart__=d.copy(),fe=z==null?j.ticks?j.ticks.apply(j,q):j.domain():z,xe=P==null?j.tickFormat?j.tickFormat.apply(j,q):O:P,ee=J.selectAll(".tick").data(fe,j),ne=ee.enter().insert("g",".domain").attr("class","tick").style("opacity",Fe),le=e.transition(ee.exit()).style("opacity",Fe).remove(),ge=e.transition(ee.order()).style("opacity",1),_e=Math.max(T,0)+L,se,Be=uh(j),nr=J.selectAll(".domain").data([0]),fr=(nr.enter().append("path").attr("class","domain"),e.transition(nr));ne.append("line"),ne.append("text");var or=ne.select("line"),yr=ge.select("line"),gr=ee.select("text").text(xe),zr=ne.select("text"),_r=ge.select("text"),qr=g==="top"||g==="left"?-1:1,jr,Zt,lt,rr;if(g==="bottom"||g==="top"?(se=uQ,jr="x",lt="y",Zt="x2",rr="y2",gr.attr("dy",qr<0?"0em":".71em").style("text-anchor","middle"),fr.attr("d","M"+Be[0]+","+qr*C+"V0H"+Be[1]+"V"+qr*C)):(se=fQ,jr="y",lt="x",Zt="y2",rr="x2",gr.attr("dy",".32em").style("text-anchor",qr<0?"end":"start"),fr.attr("d","M"+qr*C+","+Be[0]+"H0V"+Be[1]+"H"+qr*C)),or.attr(rr,qr*T),zr.attr(lt,qr*_e),yr.attr(Zt,0).attr(rr,qr*T),_r.attr(jr,0).attr(lt,qr*_e),j.rangeBand){var Nr=j,Fr=Nr.rangeBand()/2;Q=j=function(et){return Nr(et)+Fr}}else Q.rangeBand?Q=j:le.call(se,j,Q);ne.call(se,Q,j),ge.call(se,j,j)})}return F.scale=function(W){return arguments.length?(d=W,F):d},F.orient=function(W){return arguments.length?(g=W in sQ?W+"":t9,F):g},F.ticks=function(){return arguments.length?(q=t(arguments),F):q},F.tickValues=function(W){return arguments.length?(z=W,F):z},F.tickFormat=function(W){return arguments.length?(P=W,F):P},F.tickSize=function(W){var J=arguments.length;return J?(T=+W,C=+arguments[J-1],F):T},F.innerTickSize=function(W){return arguments.length?(T=+W,F):T},F.outerTickSize=function(W){return arguments.length?(C=+W,F):C},F.tickPadding=function(W){return arguments.length?(L=+W,F):L},F.tickSubdivide=function(){return arguments.length&&F},F};var t9="bottom",sQ={top:1,right:1,bottom:1,left:1};function uQ(d,g,T){d.attr("transform",function(C){var L=g(C);return"translate("+(isFinite(L)?L:T(C))+",0)"})}function fQ(d,g,T){d.attr("transform",function(C){var L=g(C);return"translate(0,"+(isFinite(L)?L:T(C))+")"})}e.svg.brush=function(){var d=ie(J,"brushstart","brush","brushend"),g=null,T=null,C=[0,0],L=[0,0],q,z,P=!0,F=!0,W=s2[0];function J(ee){ee.each(function(){var ne=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",xe).on("touchstart.brush",xe),le=ne.selectAll(".background").data([0]);le.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ne.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ge=ne.selectAll(".resize").data(W,O);ge.exit().remove(),ge.enter().append("g").attr("class",function(nr){return"resize "+nr}).style("cursor",function(nr){return cQ[nr]}).append("rect").attr("x",function(nr){return/[ew]$/.test(nr)?-3:null}).attr("y",function(nr){return/^[ns]/.test(nr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ge.style("display",J.empty()?"none":null);var _e=e.transition(ne),se=e.transition(le),Be;g&&(Be=uh(g),se.attr("x",Be[0]).attr("width",Be[1]-Be[0]),j(_e)),T&&(Be=uh(T),se.attr("y",Be[0]).attr("height",Be[1]-Be[0]),fe(_e)),Q(_e)})}J.event=function(ee){ee.each(function(){var ne=d.of(this,arguments),le={x:C,y:L,i:q,j:z},ge=this.__chart__||le;this.__chart__=le,ys?e.select(this).transition().each("start.brush",function(){q=ge.i,z=ge.j,C=ge.x,L=ge.y,ne({type:"brushstart"})}).tween("brush:brush",function(){var _e=oh(C,le.x),se=oh(L,le.y);return q=z=null,function(Be){C=le.x=_e(Be),L=le.y=se(Be),ne({type:"brush",mode:"resize"})}}).each("end.brush",function(){q=le.i,z=le.j,ne({type:"brush",mode:"resize"}),ne({type:"brushend"})}):(ne({type:"brushstart"}),ne({type:"brush",mode:"resize"}),ne({type:"brushend"}))})};function Q(ee){ee.selectAll(".resize").attr("transform",function(ne){return"translate("+C[+/e$/.test(ne)]+","+L[+/^s/.test(ne)]+")"})}function j(ee){ee.select(".extent").attr("x",C[0]),ee.selectAll(".extent,.n>rect,.s>rect").attr("width",C[1]-C[0])}function fe(ee){ee.select(".extent").attr("y",L[0]),ee.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function xe(){var ee=this,ne=e.select(e.event.target),le=d.of(ee,arguments),ge=e.select(ee),_e=ne.datum(),se=!/^(n|s)$/.test(_e)&&g,Be=!/^(e|w)$/.test(_e)&&T,nr=ne.classed("extent"),fr=ir(ee),or,yr=e.mouse(ee),gr,zr=e.select(i(ee)).on("keydown.brush",jr).on("keyup.brush",Zt);if(e.event.changedTouches?zr.on("touchmove.brush",lt).on("touchend.brush",Nr):zr.on("mousemove.brush",lt).on("mouseup.brush",Nr),ge.interrupt().selectAll("*").interrupt(),nr)yr[0]=C[0]-yr[0],yr[1]=L[0]-yr[1];else if(_e){var _r=+/w$/.test(_e),qr=+/^n/.test(_e);gr=[C[1-_r]-yr[0],L[1-qr]-yr[1]],yr[0]=C[_r],yr[1]=L[qr]}else e.event.altKey&&(or=yr.slice());ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ne.style("cursor")),le({type:"brushstart"}),lt();function jr(){e.event.keyCode==32&&(nr||(or=null,yr[0]-=C[1],yr[1]-=L[1],nr=2),$())}function Zt(){e.event.keyCode==32&&nr==2&&(yr[0]+=C[1],yr[1]+=L[1],nr=0,$())}function lt(){var Fr=e.mouse(ee),et=!1;gr&&(Fr[0]+=gr[0],Fr[1]+=gr[1]),nr||(e.event.altKey?(or||(or=[(C[0]+C[1])/2,(L[0]+L[1])/2]),yr[0]=C[+(Fr[0]<or[0])],yr[1]=L[+(Fr[1]<or[1])]):or=null),se&&rr(Fr,g,0)&&(j(ge),et=!0),Be&&rr(Fr,T,1)&&(fe(ge),et=!0),et&&(Q(ge),le({type:"brush",mode:nr?"move":"resize"}))}function rr(Fr,et,Nt){var fa=uh(et),Ea=fa[0],Ka=fa[1],cn=yr[Nt],Qa=Nt?L:C,yn=Qa[1]-Qa[0],Ya,gn;if(nr&&(Ea-=cn,Ka-=yn+cn),Ya=(Nt?F:P)?Math.max(Ea,Math.min(Ka,Fr[Nt])):Fr[Nt],nr?gn=(Ya+=cn)+yn:(or&&(cn=Math.max(Ea,Math.min(Ka,2*or[Nt]-Ya))),cn<Ya?(gn=Ya,Ya=cn):gn=cn),Qa[0]!=Ya||Qa[1]!=gn)return Nt?z=null:q=null,Qa[0]=Ya,Qa[1]=gn,!0}function Nr(){lt(),ge.style("pointer-events","all").selectAll(".resize").style("display",J.empty()?"none":null),e.select("body").style("cursor",null),zr.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),fr(),le({type:"brushend"})}}return J.x=function(ee){return arguments.length?(g=ee,W=s2[!g<<1|!T],J):g},J.y=function(ee){return arguments.length?(T=ee,W=s2[!g<<1|!T],J):T},J.clamp=function(ee){return arguments.length?(g&&T?(P=!!ee[0],F=!!ee[1]):g?P=!!ee:T&&(F=!!ee),J):g&&T?[P,F]:g?P:T?F:null},J.extent=function(ee){var ne,le,ge,_e,se;return arguments.length?(g&&(ne=ee[0],le=ee[1],T&&(ne=ne[0],le=le[0]),q=[ne,le],g.invert&&(ne=g(ne),le=g(le)),le<ne&&(se=ne,ne=le,le=se),(ne!=C[0]||le!=C[1])&&(C=[ne,le])),T&&(ge=ee[0],_e=ee[1],g&&(ge=ge[1],_e=_e[1]),z=[ge,_e],T.invert&&(ge=T(ge),_e=T(_e)),_e<ge&&(se=ge,ge=_e,_e=se),(ge!=L[0]||_e!=L[1])&&(L=[ge,_e])),J):(g&&(q?(ne=q[0],le=q[1]):(ne=C[0],le=C[1],g.invert&&(ne=g.invert(ne),le=g.invert(le)),le<ne&&(se=ne,ne=le,le=se))),T&&(z?(ge=z[0],_e=z[1]):(ge=L[0],_e=L[1],T.invert&&(ge=T.invert(ge),_e=T.invert(_e)),_e<ge&&(se=ge,ge=_e,_e=se))),g&&T?[[ne,ge],[le,_e]]:g?[ne,le]:T&&[ge,_e])},J.clear=function(){return J.empty()||(C=[0,0],L=[0,0],q=z=null),J},J.empty=function(){return!!g&&C[0]==C[1]||!!T&&L[0]==L[1]},e.rebind(J,d,"on")};var cQ={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},s2=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=nt(function(d){return d.responseText}),e.json=function(d,g){return lr(d,"application/json",vQ,g)};function vQ(d){return JSON.parse(d.responseText)}e.html=function(d,g){return lr(d,"text/html",dQ,g)};function dQ(d){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(d.responseText)}e.xml=nt(function(d){return d.responseXML}),typeof _h=="object"&&_h.exports?_h.exports=e:this.d3=e}).apply(self)});var f2=B((wh,c9)=>{(function(e,r){typeof wh=="object"&&typeof c9!="undefined"?r(wh):(e=e||self,r(e.d3=e.d3||{}))})(wh,function(e){"use strict";var r=new Date,t=new Date;function a(re,ye,Ve,dr){function Ee(pe){return re(pe=arguments.length===0?new Date:new Date(+pe)),pe}return Ee.floor=function(pe){return re(pe=new Date(+pe)),pe},Ee.ceil=function(pe){return re(pe=new Date(pe-1)),ye(pe,1),re(pe),pe},Ee.round=function(pe){var we=Ee(pe),Oe=Ee.ceil(pe);return pe-we<Oe-pe?we:Oe},Ee.offset=function(pe,we){return ye(pe=new Date(+pe),we==null?1:Math.floor(we)),pe},Ee.range=function(pe,we,Oe){var We=[],Ie;if(pe=Ee.ceil(pe),Oe=Oe==null?1:Math.floor(Oe),!(pe<we)||!(Oe>0))return We;do We.push(Ie=new Date(+pe)),ye(pe,Oe),re(pe);while(Ie<pe&&pe<we);return We},Ee.filter=function(pe){return a(function(we){if(we>=we)for(;re(we),!pe(we);)we.setTime(we-1)},function(we,Oe){if(we>=we)if(Oe<0)for(;++Oe<=0;)for(;ye(we,-1),!pe(we););else for(;--Oe>=0;)for(;ye(we,1),!pe(we););})},Ve&&(Ee.count=function(pe,we){return r.setTime(+pe),t.setTime(+we),re(r),re(t),Math.floor(Ve(r,t))},Ee.every=function(pe){return pe=Math.floor(pe),!isFinite(pe)||!(pe>0)?null:pe>1?Ee.filter(dr?function(we){return dr(we)%pe===0}:function(we){return Ee.count(0,we)%pe===0}):Ee}),Ee}var n=a(function(){},function(re,ye){re.setTime(+re+ye)},function(re,ye){return ye-re});n.every=function(re){return re=Math.floor(re),!isFinite(re)||!(re>0)?null:re>1?a(function(ye){ye.setTime(Math.floor(ye/re)*re)},function(ye,Ve){ye.setTime(+ye+Ve*re)},function(ye,Ve){return(Ve-ye)/re}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(re){re.setTime(re-re.getMilliseconds())},function(re,ye){re.setTime(+re+ye*l)},function(re,ye){return(ye-re)/l},function(re){return re.getUTCSeconds()}),v=c.range,h=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*l)},function(re,ye){re.setTime(+re+ye*o)},function(re,ye){return(ye-re)/o},function(re){return re.getMinutes()}),p=h.range,m=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*l-re.getMinutes()*o)},function(re,ye){re.setTime(+re+ye*s)},function(re,ye){return(ye-re)/s},function(re){return re.getHours()}),y=m.range,x=a(function(re){re.setHours(0,0,0,0)},function(re,ye){re.setDate(re.getDate()+ye)},function(re,ye){return(ye-re-(ye.getTimezoneOffset()-re.getTimezoneOffset())*o)/u},function(re){return re.getDate()-1}),_=x.range;function w(re){return a(function(ye){ye.setDate(ye.getDate()-(ye.getDay()+7-re)%7),ye.setHours(0,0,0,0)},function(ye,Ve){ye.setDate(ye.getDate()+Ve*7)},function(ye,Ve){return(Ve-ye-(Ve.getTimezoneOffset()-ye.getTimezoneOffset())*o)/f})}var b=w(0),M=w(1),k=w(2),A=w(3),S=w(4),D=w(5),E=w(6),R=b.range,N=M.range,I=k.range,H=A.range,O=S.range,G=D.range,Y=E.range,V=a(function(re){re.setDate(1),re.setHours(0,0,0,0)},function(re,ye){re.setMonth(re.getMonth()+ye)},function(re,ye){return ye.getMonth()-re.getMonth()+(ye.getFullYear()-re.getFullYear())*12},function(re){return re.getMonth()}),U=V.range,Z=a(function(re){re.setMonth(0,1),re.setHours(0,0,0,0)},function(re,ye){re.setFullYear(re.getFullYear()+ye)},function(re,ye){return ye.getFullYear()-re.getFullYear()},function(re){return re.getFullYear()});Z.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(ye){ye.setFullYear(Math.floor(ye.getFullYear()/re)*re),ye.setMonth(0,1),ye.setHours(0,0,0,0)},function(ye,Ve){ye.setFullYear(ye.getFullYear()+Ve*re)})};var X=Z.range,$=a(function(re){re.setUTCSeconds(0,0)},function(re,ye){re.setTime(+re+ye*o)},function(re,ye){return(ye-re)/o},function(re){return re.getUTCMinutes()}),ae=$.range,ie=a(function(re){re.setUTCMinutes(0,0,0)},function(re,ye){re.setTime(+re+ye*s)},function(re,ye){return(ye-re)/s},function(re){return re.getUTCHours()}),ve=ie.range,K=a(function(re){re.setUTCHours(0,0,0,0)},function(re,ye){re.setUTCDate(re.getUTCDate()+ye)},function(re,ye){return(ye-re)/u},function(re){return re.getUTCDate()-1}),he=K.range;function oe(re){return a(function(ye){ye.setUTCDate(ye.getUTCDate()-(ye.getUTCDay()+7-re)%7),ye.setUTCHours(0,0,0,0)},function(ye,Ve){ye.setUTCDate(ye.getUTCDate()+Ve*7)},function(ye,Ve){return(Ve-ye)/f})}var be=oe(0),me=oe(1),ce=oe(2),Me=oe(3),De=oe(4),Te=oe(5),Pe=oe(6),Se=be.range,ke=me.range,ze=ce.range,Ge=Me.range,Ce=De.range,$e=Te.range,Ke=Pe.range,Xe=a(function(re){re.setUTCDate(1),re.setUTCHours(0,0,0,0)},function(re,ye){re.setUTCMonth(re.getUTCMonth()+ye)},function(re,ye){return ye.getUTCMonth()-re.getUTCMonth()+(ye.getUTCFullYear()-re.getUTCFullYear())*12},function(re){return re.getUTCMonth()}),Ae=Xe.range,Re=a(function(re){re.setUTCMonth(0,1),re.setUTCHours(0,0,0,0)},function(re,ye){re.setUTCFullYear(re.getUTCFullYear()+ye)},function(re,ye){return ye.getUTCFullYear()-re.getUTCFullYear()},function(re){return re.getUTCFullYear()});Re.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(ye){ye.setUTCFullYear(Math.floor(ye.getUTCFullYear()/re)*re),ye.setUTCMonth(0,1),ye.setUTCHours(0,0,0,0)},function(ye,Ve){ye.setUTCFullYear(ye.getUTCFullYear()+Ve*re)})};var Qe=Re.range;e.timeDay=x,e.timeDays=_,e.timeFriday=D,e.timeFridays=G,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=h,e.timeMinutes=p,e.timeMonday=M,e.timeMondays=N,e.timeMonth=V,e.timeMonths=U,e.timeSaturday=E,e.timeSaturdays=Y,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=b,e.timeSundays=R,e.timeThursday=S,e.timeThursdays=O,e.timeTuesday=k,e.timeTuesdays=I,e.timeWednesday=A,e.timeWednesdays=H,e.timeWeek=b,e.timeWeeks=R,e.timeYear=Z,e.timeYears=X,e.utcDay=K,e.utcDays=he,e.utcFriday=Te,e.utcFridays=$e,e.utcHour=ie,e.utcHours=ve,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=$,e.utcMinutes=ae,e.utcMonday=me,e.utcMondays=ke,e.utcMonth=Xe,e.utcMonths=Ae,e.utcSaturday=Pe,e.utcSaturdays=Ke,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=be,e.utcSundays=Se,e.utcThursday=De,e.utcThursdays=Ce,e.utcTuesday=ce,e.utcTuesdays=ze,e.utcWednesday=Me,e.utcWednesdays=Ge,e.utcWeek=be,e.utcWeeks=Se,e.utcYear=Re,e.utcYears=Qe,Object.defineProperty(e,"__esModule",{value:!0})})});var tf=B((Th,v9)=>{(function(e,r){typeof Th=="object"&&typeof v9!="undefined"?r(Th,f2()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Th,function(e,r){"use strict";function t(te){if(0<=te.y&&te.y<100){var de=new Date(-1,te.m,te.d,te.H,te.M,te.S,te.L);return de.setFullYear(te.y),de}return new Date(te.y,te.m,te.d,te.H,te.M,te.S,te.L)}function a(te){if(0<=te.y&&te.y<100){var de=new Date(Date.UTC(-1,te.m,te.d,te.H,te.M,te.S,te.L));return de.setUTCFullYear(te.y),de}return new Date(Date.UTC(te.y,te.m,te.d,te.H,te.M,te.S,te.L))}function n(te,de,Ne){return{y:te,m:de,d:Ne,H:0,M:0,S:0,L:0}}function i(te){var de=te.dateTime,Ne=te.date,Ye=te.time,Kr=te.periods,ut=te.days,pt=te.shortDays,Yt=te.months,Rt=te.shortMonths,Aa=v(Kr),mn=h(Kr),oa=v(ut),fn=h(ut),Pn=v(pt),Rn=h(pt),mr=v(Yt),mt=h(Yt),Qr=v(Rt),xt=h(Rt),zt={a:a0,A:n0,b:Ja,B:Kd,c:null,d:V,e:V,f:ae,g:Te,G:Se,H:U,I:Z,j:X,L:$,m:ie,M:ve,p:Xu,q:Wu,Q:ir,s:ur,S:K,u:he,U:oe,V:me,w:ce,W:Me,x:null,X:null,y:De,Y:Pe,Z:ke,"%":ar},St={a:lo,A:Qd,b:jd,B:eh,c:null,d:ze,e:ze,f:Xe,g:Oe,G:Ie,H:Ge,I:Ce,j:$e,L:Ke,m:Ae,M:Re,p:i0,q:l0,Q:ir,s:ur,S:Qe,u:re,U:ye,V:dr,w:Ee,W:pe,x:null,X:null,y:we,Y:We,Z:Ue,"%":ar},ft={a:ta,A:aa,b:ds,B:io,c:Jd,d:S,e:S,f:H,g:b,G:w,H:E,I:E,j:D,L:I,m:A,M:R,p:_t,q:k,Q:G,s:Y,S:N,u:m,U:y,V:x,w:p,W:_,x:$d,X:t0,y:b,Y:w,Z:M,"%":O};zt.x=sa(Ne,zt),zt.X=sa(Ye,zt),zt.c=sa(de,zt),St.x=sa(Ne,St),St.X=sa(Ye,St),St.c=sa(de,St);function sa(Tr,wr){return function(nt){var lr=[],$a=-1,wt=0,qa=Tr.length,Da,ei,hs;for(nt instanceof Date||(nt=new Date(+nt));++$a<qa;)Tr.charCodeAt($a)===37&&(lr.push(Tr.slice(wt,$a)),(ei=l[Da=Tr.charAt(++$a)])!=null?Da=Tr.charAt(++$a):ei=Da==="e"?" ":"0",(hs=wr[Da])&&(Da=hs(nt,ei)),lr.push(Da),wt=$a+1);return lr.push(Tr.slice(wt,$a)),lr.join("")}}function jn(Tr,wr){return function(nt){var lr=n(1900,void 0,1),$a=Wt(lr,Tr,nt+="",0),wt,qa;if($a!=nt.length)return null;if("Q"in lr)return new Date(lr.Q);if("s"in lr)return new Date(lr.s*1e3+("L"in lr?lr.L:0));if(wr&&!("Z"in lr)&&(lr.Z=0),"p"in lr&&(lr.H=lr.H%12+lr.p*12),lr.m===void 0&&(lr.m="q"in lr?lr.q:0),"V"in lr){if(lr.V<1||lr.V>53)return null;"w"in lr||(lr.w=1),"Z"in lr?(wt=a(n(lr.y,0,1)),qa=wt.getUTCDay(),wt=qa>4||qa===0?r.utcMonday.ceil(wt):r.utcMonday(wt),wt=r.utcDay.offset(wt,(lr.V-1)*7),lr.y=wt.getUTCFullYear(),lr.m=wt.getUTCMonth(),lr.d=wt.getUTCDate()+(lr.w+6)%7):(wt=t(n(lr.y,0,1)),qa=wt.getDay(),wt=qa>4||qa===0?r.timeMonday.ceil(wt):r.timeMonday(wt),wt=r.timeDay.offset(wt,(lr.V-1)*7),lr.y=wt.getFullYear(),lr.m=wt.getMonth(),lr.d=wt.getDate()+(lr.w+6)%7)}else("W"in lr||"U"in lr)&&("w"in lr||(lr.w="u"in lr?lr.u%7:"W"in lr?1:0),qa="Z"in lr?a(n(lr.y,0,1)).getUTCDay():t(n(lr.y,0,1)).getDay(),lr.m=0,lr.d="W"in lr?(lr.w+6)%7+lr.W*7-(qa+5)%7:lr.w+lr.U*7-(qa+6)%7);return"Z"in lr?(lr.H+=lr.Z/100|0,lr.M+=lr.Z%100,a(lr)):t(lr)}}function Wt(Tr,wr,nt,lr){for(var $a=0,wt=wr.length,qa=nt.length,Da,ei;$a<wt;){if(lr>=qa)return-1;if(Da=wr.charCodeAt($a++),Da===37){if(Da=wr.charAt($a++),ei=ft[Da in l?wr.charAt($a++):Da],!ei||(lr=ei(Tr,nt,lr))<0)return-1}else if(Da!=nt.charCodeAt(lr++))return-1}return lr}function _t(Tr,wr,nt){var lr=Aa.exec(wr.slice(nt));return lr?(Tr.p=mn[lr[0].toLowerCase()],nt+lr[0].length):-1}function ta(Tr,wr,nt){var lr=Pn.exec(wr.slice(nt));return lr?(Tr.w=Rn[lr[0].toLowerCase()],nt+lr[0].length):-1}function aa(Tr,wr,nt){var lr=oa.exec(wr.slice(nt));return lr?(Tr.w=fn[lr[0].toLowerCase()],nt+lr[0].length):-1}function ds(Tr,wr,nt){var lr=Qr.exec(wr.slice(nt));return lr?(Tr.m=xt[lr[0].toLowerCase()],nt+lr[0].length):-1}function io(Tr,wr,nt){var lr=mr.exec(wr.slice(nt));return lr?(Tr.m=mt[lr[0].toLowerCase()],nt+lr[0].length):-1}function Jd(Tr,wr,nt){return Wt(Tr,de,wr,nt)}function $d(Tr,wr,nt){return Wt(Tr,Ne,wr,nt)}function t0(Tr,wr,nt){return Wt(Tr,Ye,wr,nt)}function a0(Tr){return pt[Tr.getDay()]}function n0(Tr){return ut[Tr.getDay()]}function Ja(Tr){return Rt[Tr.getMonth()]}function Kd(Tr){return Yt[Tr.getMonth()]}function Xu(Tr){return Kr[+(Tr.getHours()>=12)]}function Wu(Tr){return 1+~~(Tr.getMonth()/3)}function lo(Tr){return pt[Tr.getUTCDay()]}function Qd(Tr){return ut[Tr.getUTCDay()]}function jd(Tr){return Rt[Tr.getUTCMonth()]}function eh(Tr){return Yt[Tr.getUTCMonth()]}function i0(Tr){return Kr[+(Tr.getUTCHours()>=12)]}function l0(Tr){return 1+~~(Tr.getUTCMonth()/3)}return{format:function(Tr){var wr=sa(Tr+="",zt);return wr.toString=function(){return Tr},wr},parse:function(Tr){var wr=jn(Tr+="",!1);return wr.toString=function(){return Tr},wr},utcFormat:function(Tr){var wr=sa(Tr+="",St);return wr.toString=function(){return Tr},wr},utcParse:function(Tr){var wr=jn(Tr+="",!0);return wr.toString=function(){return Tr},wr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(te,de,Ne){var Ye=te<0?"-":"",Kr=(Ye?-te:te)+"",ut=Kr.length;return Ye+(ut<Ne?new Array(Ne-ut+1).join(de)+Kr:Kr)}function c(te){return te.replace(u,"\\$&")}function v(te){return new RegExp("^(?:"+te.map(c).join("|")+")","i")}function h(te){for(var de={},Ne=-1,Ye=te.length;++Ne<Ye;)de[te[Ne].toLowerCase()]=Ne;return de}function p(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+1));return Ye?(te.w=+Ye[0],Ne+Ye[0].length):-1}function m(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+1));return Ye?(te.u=+Ye[0],Ne+Ye[0].length):-1}function y(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+2));return Ye?(te.U=+Ye[0],Ne+Ye[0].length):-1}function x(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+2));return Ye?(te.V=+Ye[0],Ne+Ye[0].length):-1}function _(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+2));return Ye?(te.W=+Ye[0],Ne+Ye[0].length):-1}function w(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+4));return Ye?(te.y=+Ye[0],Ne+Ye[0].length):-1}function b(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+2));return Ye?(te.y=+Ye[0]+(+Ye[0]>68?1900:2e3),Ne+Ye[0].length):-1}function M(te,de,Ne){var Ye=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(de.slice(Ne,Ne+6));return Ye?(te.Z=Ye[1]?0:-(Ye[2]+(Ye[3]||"00")),Ne+Ye[0].length):-1}function k(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+1));return Ye?(te.q=Ye[0]*3-3,Ne+Ye[0].length):-1}function A(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+2));return Ye?(te.m=Ye[0]-1,Ne+Ye[0].length):-1}function S(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+2));return Ye?(te.d=+Ye[0],Ne+Ye[0].length):-1}function D(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+3));return Ye?(te.m=0,te.d=+Ye[0],Ne+Ye[0].length):-1}function E(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+2));return Ye?(te.H=+Ye[0],Ne+Ye[0].length):-1}function R(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+2));return Ye?(te.M=+Ye[0],Ne+Ye[0].length):-1}function N(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+2));return Ye?(te.S=+Ye[0],Ne+Ye[0].length):-1}function I(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+3));return Ye?(te.L=+Ye[0],Ne+Ye[0].length):-1}function H(te,de,Ne){var Ye=o.exec(de.slice(Ne,Ne+6));return Ye?(te.L=Math.floor(Ye[0]/1e3),Ne+Ye[0].length):-1}function O(te,de,Ne){var Ye=s.exec(de.slice(Ne,Ne+1));return Ye?Ne+Ye[0].length:-1}function G(te,de,Ne){var Ye=o.exec(de.slice(Ne));return Ye?(te.Q=+Ye[0],Ne+Ye[0].length):-1}function Y(te,de,Ne){var Ye=o.exec(de.slice(Ne));return Ye?(te.s=+Ye[0],Ne+Ye[0].length):-1}function V(te,de){return f(te.getDate(),de,2)}function U(te,de){return f(te.getHours(),de,2)}function Z(te,de){return f(te.getHours()%12||12,de,2)}function X(te,de){return f(1+r.timeDay.count(r.timeYear(te),te),de,3)}function $(te,de){return f(te.getMilliseconds(),de,3)}function ae(te,de){return $(te,de)+"000"}function ie(te,de){return f(te.getMonth()+1,de,2)}function ve(te,de){return f(te.getMinutes(),de,2)}function K(te,de){return f(te.getSeconds(),de,2)}function he(te){var de=te.getDay();return de===0?7:de}function oe(te,de){return f(r.timeSunday.count(r.timeYear(te)-1,te),de,2)}function be(te){var de=te.getDay();return de>=4||de===0?r.timeThursday(te):r.timeThursday.ceil(te)}function me(te,de){return te=be(te),f(r.timeThursday.count(r.timeYear(te),te)+(r.timeYear(te).getDay()===4),de,2)}function ce(te){return te.getDay()}function Me(te,de){return f(r.timeMonday.count(r.timeYear(te)-1,te),de,2)}function De(te,de){return f(te.getFullYear()%100,de,2)}function Te(te,de){return te=be(te),f(te.getFullYear()%100,de,2)}function Pe(te,de){return f(te.getFullYear()%1e4,de,4)}function Se(te,de){var Ne=te.getDay();return te=Ne>=4||Ne===0?r.timeThursday(te):r.timeThursday.ceil(te),f(te.getFullYear()%1e4,de,4)}function ke(te){var de=te.getTimezoneOffset();return(de>0?"-":(de*=-1,"+"))+f(de/60|0,"0",2)+f(de%60,"0",2)}function ze(te,de){return f(te.getUTCDate(),de,2)}function Ge(te,de){return f(te.getUTCHours(),de,2)}function Ce(te,de){return f(te.getUTCHours()%12||12,de,2)}function $e(te,de){return f(1+r.utcDay.count(r.utcYear(te),te),de,3)}function Ke(te,de){return f(te.getUTCMilliseconds(),de,3)}function Xe(te,de){return Ke(te,de)+"000"}function Ae(te,de){return f(te.getUTCMonth()+1,de,2)}function Re(te,de){return f(te.getUTCMinutes(),de,2)}function Qe(te,de){return f(te.getUTCSeconds(),de,2)}function re(te){var de=te.getUTCDay();return de===0?7:de}function ye(te,de){return f(r.utcSunday.count(r.utcYear(te)-1,te),de,2)}function Ve(te){var de=te.getUTCDay();return de>=4||de===0?r.utcThursday(te):r.utcThursday.ceil(te)}function dr(te,de){return te=Ve(te),f(r.utcThursday.count(r.utcYear(te),te)+(r.utcYear(te).getUTCDay()===4),de,2)}function Ee(te){return te.getUTCDay()}function pe(te,de){return f(r.utcMonday.count(r.utcYear(te)-1,te),de,2)}function we(te,de){return f(te.getUTCFullYear()%100,de,2)}function Oe(te,de){return te=Ve(te),f(te.getUTCFullYear()%100,de,2)}function We(te,de){return f(te.getUTCFullYear()%1e4,de,4)}function Ie(te,de){var Ne=te.getUTCDay();return te=Ne>=4||Ne===0?r.utcThursday(te):r.utcThursday.ceil(te),f(te.getUTCFullYear()%1e4,de,4)}function Ue(){return"+0000"}function ar(){return"%"}function ir(te){return+te}function ur(te){return Math.floor(+te/1e3)}var qe;Je({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 Je(te){return qe=i(te),e.timeFormat=qe.format,e.timeParse=qe.parse,e.utcFormat=qe.utcFormat,e.utcParse=qe.utcParse,qe}var Fe="%Y-%m-%dT%H:%M:%S.%LZ";function hr(te){return te.toISOString()}var br=Date.prototype.toISOString?hr:e.utcFormat(Fe);function sr(te){var de=new Date(te);return isNaN(de)?null:de}var pr=+new Date("2000-01-01T00:00:00.000Z")?sr:e.utcParse(Fe);e.isoFormat=br,e.isoParse=pr,e.timeFormatDefaultLocale=Je,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var c2=B((Mh,d9)=>{(function(e,r){typeof Mh=="object"&&typeof d9!="undefined"?r(Mh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Mh,(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,S){if((D=(A=S?A.toExponential(S-1):A.toExponential()).indexOf("e"))<0)return null;var D,E=A.slice(0,D);return[E.length>1?E[0]+E.slice(2):E,+A.slice(D+1)]}function a(A){return A=t(Math.abs(A)),A?A[1]:NaN}function n(A,S){return function(D,E){for(var R=D.length,N=[],I=0,H=A[0],O=0;R>0&&H>0&&(O+H+1>E&&(H=Math.max(1,E-O)),N.push(D.substring(R-=H,R+H)),!((O+=H+1)>E));)H=A[I=(I+1)%A.length];return N.reverse().join(S)}}function i(A){return function(S){return S.replace(/[0-9]/g,function(D){return A[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(A){if(!(S=l.exec(A)))throw new Error("invalid format: "+A);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}o.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 S=A.length,D=1,E=-1,R;D<S;++D)switch(A[D]){case".":E=R=D;break;case"0":E===0&&(E=D),R=D;break;default:if(!+A[D])break e;E>0&&(E=0);break}return E>0?A.slice(0,E)+A.slice(R+1):A}var f;function c(A,S){var D=t(A,S);if(!D)return A+"";var E=D[0],R=D[1],N=R-(f=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1,I=E.length;return N===I?E:N>I?E+new Array(N-I+1).join("0"):N>0?E.slice(0,N)+"."+E.slice(N):"0."+new Array(1-N).join("0")+t(A,Math.max(0,S+N-1))[0]}function v(A,S){var D=t(A,S);if(!D)return A+"";var E=D[0],R=D[1];return R<0?"0."+new Array(-R).join("0")+E:E.length>R+1?E.slice(0,R+1)+"."+E.slice(R+1):E+new Array(R-E.length+2).join("0")}var h={"%":function(A,S){return(A*100).toFixed(S)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:r,e:function(A,S){return A.toExponential(S)},f:function(A,S){return A.toFixed(S)},g:function(A,S){return A.toPrecision(S)},o:function(A){return Math.round(A).toString(8)},p:function(A,S){return v(A*100,S)},r:v,s:c,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function p(A){return A}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(A){var S=A.grouping===void 0||A.thousands===void 0?p:n(m.call(A.grouping,Number),A.thousands+""),D=A.currency===void 0?"":A.currency[0]+"",E=A.currency===void 0?"":A.currency[1]+"",R=A.decimal===void 0?".":A.decimal+"",N=A.numerals===void 0?p:i(m.call(A.numerals,String)),I=A.percent===void 0?"%":A.percent+"",H=A.minus===void 0?"-":A.minus+"",O=A.nan===void 0?"NaN":A.nan+"";function G(V){V=o(V);var U=V.fill,Z=V.align,X=V.sign,$=V.symbol,ae=V.zero,ie=V.width,ve=V.comma,K=V.precision,he=V.trim,oe=V.type;oe==="n"?(ve=!0,oe="g"):h[oe]||(K===void 0&&(K=12),he=!0,oe="g"),(ae||U==="0"&&Z==="=")&&(ae=!0,U="0",Z="=");var be=$==="$"?D:$==="#"&&/[boxX]/.test(oe)?"0"+oe.toLowerCase():"",me=$==="$"?E:/[%p]/.test(oe)?I:"",ce=h[oe],Me=/[defgprs%]/.test(oe);K=K===void 0?6:/[gprs]/.test(oe)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function De(Te){var Pe=be,Se=me,ke,ze,Ge;if(oe==="c")Se=ce(Te)+Se,Te="";else{Te=+Te;var Ce=Te<0||1/Te<0;if(Te=isNaN(Te)?O:ce(Math.abs(Te),K),he&&(Te=u(Te)),Ce&&+Te==0&&X!=="+"&&(Ce=!1),Pe=(Ce?X==="("?X:H:X==="-"||X==="("?"":X)+Pe,Se=(oe==="s"?y[8+f/3]:"")+Se+(Ce&&X==="("?")":""),Me){for(ke=-1,ze=Te.length;++ke<ze;)if(Ge=Te.charCodeAt(ke),48>Ge||Ge>57){Se=(Ge===46?R+Te.slice(ke+1):Te.slice(ke))+Se,Te=Te.slice(0,ke);break}}}ve&&!ae&&(Te=S(Te,1/0));var $e=Pe.length+Te.length+Se.length,Ke=$e<ie?new Array(ie-$e+1).join(U):"";switch(ve&&ae&&(Te=S(Ke+Te,Ke.length?ie-Se.length:1/0),Ke=""),Z){case"<":Te=Pe+Te+Se+Ke;break;case"=":Te=Pe+Ke+Te+Se;break;case"^":Te=Ke.slice(0,$e=Ke.length>>1)+Pe+Te+Se+Ke.slice($e);break;default:Te=Ke+Pe+Te+Se;break}return N(Te)}return De.toString=function(){return V+""},De}function Y(V,U){var Z=G((V=o(V),V.type="f",V)),X=Math.max(-8,Math.min(8,Math.floor(a(U)/3)))*3,$=Math.pow(10,-X),ae=y[8+X/3];return function(ie){return Z($*ie)+ae}}return{format:G,formatPrefix:Y}}var _;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(A){return _=x(A),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function b(A){return Math.max(0,-a(Math.abs(A)))}function M(A,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(A)))}function k(A,S){return A=Math.abs(A),S=Math.abs(S)-A,Math.max(0,a(S)-a(A))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=x,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var p9=B((X_e,h9)=>{"use strict";h9.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 Br=B((W_e,m9)=>{"use strict";var wQ=p9();m9.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&wQ(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Dt=B((Z_e,y9)=>{"use strict";y9.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var v2=B((Ah,g9)=>{(function(e,r){typeof Ah=="object"&&typeof g9!="undefined"?r(Ah):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Ah,(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(l){var o=new Uint8Array(l),s,u=o.length,f="";for(s=0;s<u;s+=3)f+=r[o[s]>>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[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(l){var o=l.length*.75,s=l.length,u,f=0,c,v,h,p;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var m=new ArrayBuffer(o),y=new Uint8Array(m);for(u=0;u<s;u+=4)c=t[l.charCodeAt(u)],v=t[l.charCodeAt(u+1)],h=t[l.charCodeAt(u+2)],p=t[l.charCodeAt(u+3)],y[f++]=c<<2|v>>4,y[f++]=(v&15)<<4|h>>2,y[f++]=(h&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var xs=B((J_e,b9)=>{"use strict";b9.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 bn=B(Di=>{"use strict";var TQ=v2().decode,MQ=xs(),d2=Array.isArray,AQ=ArrayBuffer,kQ=DataView;function x9(e){return AQ.isView(e)&&!(e instanceof kQ)}Di.isTypedArray=x9;function kh(e){return d2(e)||x9(e)}Di.isArrayOrTypedArray=kh;function CQ(e){return!kh(e[0])}Di.isArray1D=CQ;Di.ensureArray=function(e,r){return d2(e)||(e=[]),e.length=r,e};var ka={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};ka.uint8c=ka.u1c;ka.uint8=ka.u1;ka.int8=ka.i1;ka.uint16=ka.u2;ka.int16=ka.i2;ka.uint32=ka.u4;ka.int32=ka.i4;ka.float32=ka.f4;ka.float64=ka.f8;function h2(e){return e.constructor===ArrayBuffer}Di.isArrayBuffer=h2;Di.decodeTypedArraySpec=function(e){var r=[],t=LQ(e),a=t.dtype,n=ka[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;h2(l)||(l=TQ(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,c=+o[0],v=i*c,h=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f<u;f++)r[f]=new n(l,h,c),h+=v;else if(s===3){u=+o[1];for(var p=+o[2],m=0;m<p;m++)for(r[m]=[],f=0;f<u;f++)r[m][f]=new n(l,h,c),h+=v}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=o.reverse().join(","),e._inputArray=r,r};Di.isTypedArraySpec=function(e){return MQ(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||h2(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function LQ(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}Di.concat=function(){var e=[],r=!0,t=0,a,n,i,l,o,s,u,f;for(i=0;i<arguments.length;i++)l=arguments[i],s=l.length,s&&(n?e.push(l):(n=l,o=s),d2(l)?a=!1:(r=!1,t?a!==l.constructor&&(a=!1):a=l.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++)l=e[i],u.set(l,o),o+=l.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(l=e[i],f=0;f<l.length;f++)u[o+f]=l[f];o+=f}return u};Di.maxRowLength=function(e){return _9(e,Math.max,0)};Di.minRowLength=function(e){return _9(e,Math.min,1/0)};function _9(e,r,t){if(kh(e))if(kh(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 Ch=B((K_e,k9)=>{"use strict";var w9=Br(),m2=bn().isArrayOrTypedArray;k9.exports=function(r,t){if(w9(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o<a.length;o++)if(String(a[o]).slice(0,2)==="__")throw"bad property string";for(o=0;o<a.length;){if(n=String(a[o]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),n){if(n[1])a[o]=n[1];else if(o===0)a.splice(0,1);else throw"bad property string";for(i=n[2].slice(1,-1).split("]["),l=0;l<i.length;l++)o++,a.splice(o,0,Number(i[l]))}o++}return typeof r!="object"?EQ(r,t,a):{set:M9(r,a,t),get:T9(r,a),astr:t,parts:a,obj:r}};function T9(e,r){return function(t){var a=e,n,i,l,o,s;for(o=0;o<r.length-1;o++){if(n=r[o],n===-1){for(i=!0,l=[],s=0;s<a.length;s++)l[s]=T9(a[s],r.slice(o+1))(t),l[s]!==l[0]&&(i=!1);return i?l[0]:l}if(typeof n=="number"&&!m2(a)||(a=a[n],typeof a!="object"||a===null))return}if(!(typeof a!="object"||a===null)&&(l=a[r[o]],!(!t&&l===null)))return l}}var SQ=/(^|\.)args\[/;function p2(e,r){return e===void 0||e===null&&!r.match(SQ)}function M9(e,r,t){return function(a){var n=e,i="",l=[[e,i]],o=p2(a,t),s,u;for(u=0;u<r.length-1;u++){if(s=r[u],typeof s=="number"&&!m2(n))throw"array index but container is not an array";if(s===-1){if(o=!DQ(n,r.slice(u+1),a,t),o)break;return}if(!A9(n,s,r[u+1],o))break;if(n=n[s],typeof n!="object"||n===null)throw"container is not an object";i=qQ(i,s),l.push([n,i])}if(o){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 qQ(e,r){var t=r;return w9(r)?t="["+r+"]":e&&(t="."+r),e+t}function DQ(e,r,t,a){var n=m2(t),i=!0,l=t,o=a.replace("-1",0),s=n?!1:p2(t,o),u=r[0],f;for(f=0;f<e.length;f++)o=a.replace("-1",f),n&&(l=t[f%t.length],s=p2(l,o)),s&&(i=!1),A9(e,f,u,s)&&M9(e[f],r,a.replace("-1",f))(l);return i}function A9(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function EQ(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var q9=B((Q_e,S9)=>{"use strict";var af=Ch(),PQ=/^\w*$/,RQ=0,C9=1,Lh=2,L9=3,_s=4;S9.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=af(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i<l.length;i++)u[l[i][a]]=i;var f=PQ.test(n),c={set:function(v,h){var p=h===null?_s:RQ;if(!l){if(!o||p===_s)return;l=[],o.set(l)}var m=u[v];if(m===void 0){if(p===_s)return;p=p|L9,m=l.length,u[v]=m}else h!==(f?l[m][n]:af(l[m],n).get())&&(p=p|Lh);var y=l[m]=l[m]||{};return y[a]=v,f?y[n]=h:af(y,n).set(h),h!==null&&(p=p&~_s),s[m]=s[m]|p,c},get:function(v){if(l){var h=u[v];if(h!==void 0)return f?l[h][n]:af(l[h],n).get()}},rename:function(v,h){var p=u[v];return p===void 0||(s[p]=s[p]|C9,u[h]=p,delete u[v],l[p][a]=h),c},remove:function(v){var h=u[v];if(h===void 0)return c;var p=l[h];if(Object.keys(p).length>2)return s[h]=s[h]|Lh,c.set(v,null);if(f){for(i=h;i<l.length;i++)s[i]=s[i]|L9;for(i=h;i<l.length;i++)u[l[i][a]]--;l.splice(h,1),delete u[v]}else af(p,n).set(null),s[h]=s[h]|Lh|_s;return c},constructUpdate:function(){for(var v,h,p={},m=Object.keys(s),y=0;y<m.length;y++)h=m[y],v=t+"["+h+"]",l[h]?(s[h]&C9&&(p[v+"."+a]=l[h][a]),s[h]&Lh&&(f?p[v+"."+n]=s[h]&_s?null:l[h][n]:p[v+"."+n]=s[h]&_s?null:af(l[h],n).get())):p[v]=null;return p}};return c}});var E9=B((j_e,D9)=>{"use strict";var zQ=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,NQ=/^[^\.\[\]]+$/;D9.exports=function(e,r){for(;r;){var t=e.match(zQ);if(t)e=t[1];else if(e.match(NQ))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 Sh=B((e7e,P9)=>{"use strict";var FQ=Br();P9.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 FQ(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var N9=B((r7e,z9)=>{"use strict";var R9=bn().isArrayOrTypedArray,g0=xs();z9.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(R9(n)&&R9(i)&&g0(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o<l;o++)i[o]!==n[o]&&g0(n[o])&&g0(i[o])&&e(i[o],n[o])}else g0(n)&&g0(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var nf={};rf(nf,{mod:()=>IQ,modHalf:()=>HQ});function IQ(e,r){let t=e%r;return t<0?t+r:t}function HQ(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var lf=rt(()=>{"use strict"});var Tt=B(_0=>{"use strict";var F9=xs(),b0=Array.isArray;function OQ(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}_0.extendFlat=function(...e){return x0(e,!1,!1,!1)};_0.extendDeep=function(...e){return x0(e,!0,!1,!1)};_0.extendDeepAll=function(...e){return x0(e,!0,!0,!1)};_0.extendDeepNoArrays=function(...e){return x0(e,!0,!1,!0)};function x0(e,r,t,a){var n=e[0],i=e.length,l,o,s,u,f,c,v;if(i===2&&b0(n)&&b0(e[1])&&n.length===0){if(v=OQ(e[1],n),v)return n;n.splice(0,n.length)}for(var h=1;h<i;h++){l=e[h];for(o in l)s=n[o],u=l[o],a&&b0(u)?n[o]=u:r&&u&&(F9(u)||(f=b0(u)))?(f?(f=!1,c=s&&b0(s)?s:[]):c=s&&F9(s)?s:{},n[o]=x0([c,u],r,t,a)):(typeof u!="undefined"||t)&&(n[o]=u)}return n}});var ma=B((a7e,I9)=>{"use strict";I9.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 w0=B((n7e,H9)=>{"use strict";H9.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var of=B((i7e,Y9)=>{"use strict";var O9=w0(),B9=ma(),y2=B9({editType:"none"});y2.family.dflt=O9.HOVERFONT;y2.size.dflt=O9.HOVERFONTSIZE;Y9.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:y2,grouptitlefont:B9({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 A0=B((l7e,G9)=>{"use strict";var BQ=ma(),T0=of().hoverlabel,M0=Tt().extendFlat;G9.exports={hoverlabel:{bgcolor:M0({},T0.bgcolor,{arrayOk:!0}),bordercolor:M0({},T0.bordercolor,{arrayOk:!0}),font:BQ({arrayOk:!0,editType:"none"}),align:M0({},T0.align,{arrayOk:!0}),namelength:M0({},T0.namelength,{arrayOk:!0}),showarrow:M0({},T0.showarrow),editType:"none"}}});var xn=B((o7e,U9)=>{"use strict";var YQ=ma(),GQ=A0();U9.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:YQ({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:GQ.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var NT=B((h7e,zT)=>{var u3=Object.defineProperty,UQ=Object.getOwnPropertyDescriptor,VQ=Object.getOwnPropertyNames,XQ=Object.prototype.hasOwnProperty,WQ=(e,r)=>{for(var t in r)u3(e,t,{get:r[t],enumerable:!0})},ZQ=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of VQ(r))!XQ.call(e,n)&&n!==t&&u3(e,n,{get:()=>r[n],enumerable:!(a=UQ(r,n))||a.enumerable});return e},JQ=e=>ZQ(u3({},"__esModule",{value:!0}),e),ew={};WQ(ew,{a98:()=>Ote,average:()=>Vj,averageAngle:()=>sl,averageNumber:()=>yw,blend:()=>Ure,blerp:()=>G2,clampChroma:()=>fte,clampGamut:()=>N3,clampRgb:()=>ute,colorsNamed:()=>tw,convertA98ToXyz65:()=>U2,convertCubehelixToRgb:()=>pw,convertDlchToLab65:()=>Ih,convertHsiToRgb:()=>Aw,convertHslToRgb:()=>Lw,convertHsvToRgb:()=>p3,convertHwbToRgb:()=>Ew,convertItpToXyz65:()=>X2,convertJabToJch:()=>Z2,convertJabToRgb:()=>_3,convertJabToXyz65:()=>b3,convertJchToJab:()=>J2,convertLab65ToDlch:()=>Hh,convertLab65ToRgb:()=>P0,convertLab65ToXyz65:()=>v3,convertLabToLch:()=>Pl,convertLabToRgb:()=>T3,convertLabToXyz50:()=>Jh,convertLchToLab:()=>Rl,convertLchuvToLuv:()=>k3,convertLrgbToOklab:()=>C3,convertLrgbToRgb:()=>Ls,convertLuvToLchuv:()=>A3,convertLuvToXyz50:()=>Bh,convertOkhslToOklab:()=>Q2,convertOkhsvToOklab:()=>e3,convertOklabToLrgb:()=>pf,convertOklabToOkhsl:()=>K2,convertOklabToOkhsv:()=>j2,convertOklabToRgb:()=>N0,convertP3ToXyz65:()=>r3,convertProphotoToXyz50:()=>n3,convertRec2020ToXyz65:()=>l3,convertRgbToCubehelix:()=>hw,convertRgbToHsi:()=>kw,convertRgbToHsl:()=>Sw,convertRgbToHsv:()=>m3,convertRgbToHwb:()=>Pw,convertRgbToJab:()=>x3,convertRgbToLab:()=>M3,convertRgbToLab65:()=>R0,convertRgbToLrgb:()=>Cs,convertRgbToOklab:()=>z0,convertRgbToXyb:()=>oT,convertRgbToXyz50:()=>hf,convertRgbToXyz65:()=>uo,convertRgbToYiq:()=>hT,convertXybToRgb:()=>sT,convertXyz50ToLab:()=>$h,convertXyz50ToLuv:()=>Oh,convertXyz50ToProphoto:()=>a3,convertXyz50ToRgb:()=>df,convertXyz50ToXyz65:()=>vT,convertXyz65ToA98:()=>V2,convertXyz65ToItp:()=>W2,convertXyz65ToJab:()=>g3,convertXyz65ToLab65:()=>d3,convertXyz65ToP3:()=>t3,convertXyz65ToRec2020:()=>i3,convertXyz65ToRgb:()=>fo,convertXyz65ToXyz50:()=>cT,convertYiqToRgb:()=>pT,converter:()=>Mt,cubehelix:()=>Bte,differenceCie76:()=>Ij,differenceCie94:()=>Hj,differenceCiede2000:()=>Oj,differenceCmc:()=>Bj,differenceEuclidean:()=>vf,differenceHueChroma:()=>E0,differenceHueNaive:()=>mw,differenceHueSaturation:()=>D0,differenceHyab:()=>Yj,differenceItp:()=>Uj,differenceKotsarenkoRamos:()=>Gj,displayable:()=>z3,dlab:()=>Yte,dlch:()=>Gte,easingGamma:()=>qT,easingInOutSine:()=>Ite,easingMidpoint:()=>TT,easingSmootherstep:()=>Nte,easingSmoothstep:()=>Pte,easingSmoothstepInverse:()=>Rte,filterBrightness:()=>bte,filterContrast:()=>xte,filterDeficiencyDeuter:()=>Dte,filterDeficiencyProt:()=>qte,filterDeficiencyTrit:()=>Ete,filterGrayscale:()=>Tte,filterHueRotate:()=>Ate,filterInvert:()=>Mte,filterSaturate:()=>wte,filterSepia:()=>_te,fixupAlpha:()=>ga,fixupHueDecreasing:()=>Pj,fixupHueIncreasing:()=>Ej,fixupHueLonger:()=>Dj,fixupHueShorter:()=>ol,formatCss:()=>Fre,formatHex:()=>Ire,formatHex8:()=>Hre,formatHsl:()=>Bre,formatRgb:()=>Ore,getMode:()=>ja,hsi:()=>Ute,hsl:()=>Vte,hsv:()=>Xte,hwb:()=>Wte,inGamut:()=>jh,interpolate:()=>jre,interpolateWith:()=>AT,interpolateWithPremultipliedAlpha:()=>ete,interpolatorLinear:()=>xr,interpolatorPiecewise:()=>vw,interpolatorSplineBasis:()=>CT,interpolatorSplineBasisClosed:()=>LT,interpolatorSplineMonotone:()=>ate,interpolatorSplineMonotone2:()=>nte,interpolatorSplineMonotoneClosed:()=>ite,interpolatorSplineNatural:()=>rte,interpolatorSplineNaturalClosed:()=>tte,itp:()=>Zte,jab:()=>Jte,jch:()=>$te,lab:()=>Kte,lab65:()=>Qte,lch:()=>jte,lch65:()=>eae,lchuv:()=>rae,lerp:()=>Ts,lrgb:()=>tae,luv:()=>aae,mapAlphaDivide:()=>wT,mapAlphaMultiply:()=>_T,mapTransferGamma:()=>Jre,mapTransferLinear:()=>E3,mapper:()=>F0,modeA98:()=>dw,modeCubehelix:()=>gw,modeDlab:()=>Tw,modeDlch:()=>Mw,modeHsi:()=>Cw,modeHsl:()=>h3,modeHsv:()=>y3,modeHwb:()=>zw,modeItp:()=>Iw,modeJab:()=>Hw,modeJch:()=>Ow,modeLab:()=>Kh,modeLab65:()=>Yw,modeLch:()=>Qh,modeLch65:()=>Uw,modeLchuv:()=>Ww,modeLrgb:()=>Zw,modeLuv:()=>Jw,modeOkhsl:()=>Kw,modeOkhsv:()=>Qw,modeOklab:()=>eT,modeOklch:()=>tT,modeP3:()=>aT,modeProphoto:()=>nT,modeRec2020:()=>iT,modeRgb:()=>ks,modeXyb:()=>uT,modeXyz50:()=>fT,modeXyz65:()=>dT,modeYiq:()=>mT,nearest:()=>dte,okhsl:()=>nae,okhsv:()=>iae,oklab:()=>lae,oklch:()=>oae,p3:()=>sae,parse:()=>uw,parseHex:()=>nw,parseHsl:()=>Dw,parseHslLegacy:()=>qw,parseHwb:()=>Rw,parseLab:()=>Bw,parseLch:()=>Gw,parseNamed:()=>aw,parseOklab:()=>jw,parseOklch:()=>rT,parseRgb:()=>fw,parseRgbLegacy:()=>iw,parseTransparent:()=>cw,prophoto:()=>uae,random:()=>Zre,rec2020:()=>fae,removeParser:()=>uj,rgb:()=>cae,round:()=>yT,samples:()=>ste,serializeHex:()=>D3,serializeHex8:()=>gT,serializeHsl:()=>xT,serializeRgb:()=>bT,toGamut:()=>cte,trilerp:()=>xj,unlerp:()=>bj,useMode:()=>ct,useParser:()=>ow,wcagContrast:()=>Hte,wcagLuminance:()=>s3,xyb:()=>vae,xyz50:()=>dae,xyz65:()=>hae,yiq:()=>pae});zT.exports=JQ(ew);var $Q=(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}}},rw=$Q,KQ={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},tw=KQ,QQ=e=>rw(tw[e.toLowerCase()],6),aw=QQ,jQ=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,ej=e=>{let r;return(r=e.match(jQ))?rw(parseInt(r[1],16),r[1].length):void 0},nw=ej,_n="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",s7e=`(?:${_n}|none)`,L0=`${_n}%`,u7e=`(?:${_n}%|none)`,f3=`(?:${_n}%|${_n})`,rj=`(?:${_n}%|${_n}|none)`,tj=`(?:${_n}(deg|grad|rad|turn)|${_n})`,f7e=`(?:${_n}(deg|grad|rad|turn)|${_n}|none)`,ff="\\s*,\\s*",c7e=new RegExp("^"+rj+"$"),aj=new RegExp(`^rgba?\\(\\s*${_n}${ff}${_n}${ff}${_n}\\s*(?:,\\s*${f3}\\s*)?\\)$`),nj=new RegExp(`^rgba?\\(\\s*${L0}${ff}${L0}${ff}${L0}\\s*(?:,\\s*${f3}\\s*)?\\)$`),ij=e=>{let r={mode:"rgb"},t;if(t=e.match(aj))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(nj))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},iw=ij,lj=(e,r)=>e===void 0?void 0:typeof e!="object"?uw(e):e.mode!==void 0?e:r?qt(st({},e),{mode:r}):void 0,Ei=lj,oj=(e="rgb")=>r=>(r=Ei(r,e))!==void 0?r.mode===e?r:ll[r.mode][e]?ll[r.mode][e](r):e==="rgb"?ll[r.mode].rgb(r):ll.rgb[e](ll[r.mode].rgb(r)):void 0,Mt=oj,ll={},lw={},cf=[],c3={},sj=e=>e,ct=e=>(ll[e.mode]=st(st({},ll[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{ll[r]||(ll[r]={}),ll[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=sj)}),lw[e.mode]=e,(e.parse||[]).forEach(r=>{ow(r,e.mode)}),Mt(e.mode)),ja=e=>lw[e],ow=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");c3[e]=r}else typeof e=="function"&&cf.indexOf(e)<0&&cf.push(e)},uj=e=>{if(typeof e=="string")delete c3[e];else if(typeof e=="function"){let r=cf.indexOf(e);r>0&&cf.splice(r,1)}},B2=/[^\x00-\x7F]|[a-zA-Z_]/,fj=/[^\x00-\x7F]|[-\w]/,cr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Hr=0;function qh(e){let r=e[Hr],t=e[Hr+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Hr+2]):r==="."?/\d/.test(t):/\d/.test(r)}function Y2(e){if(Hr>=e.length)return!1;let r=e[Hr];if(B2.test(r))return!0;if(r==="-"){if(e.length-Hr<2)return!1;let t=e[Hr+1];return!!(t==="-"||B2.test(t))}return!1}var cj={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function k0(e){let r="";if((e[Hr]==="-"||e[Hr]==="+")&&(r+=e[Hr++]),r+=Dh(e),e[Hr]==="."&&/\d/.test(e[Hr+1])&&(r+=e[Hr++]+Dh(e)),(e[Hr]==="e"||e[Hr]==="E")&&((e[Hr+1]==="-"||e[Hr+1]==="+")&&/\d/.test(e[Hr+2])?r+=e[Hr++]+e[Hr++]+Dh(e):/\d/.test(e[Hr+1])&&(r+=e[Hr++]+Dh(e))),Y2(e)){let t=Rh(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:cr.Hue,value:r*cj[t]}:void 0}return e[Hr]==="%"?(Hr++,{type:cr.Percentage,value:+r}):{type:cr.Number,value:+r}}function Dh(e){let r="";for(;/\d/.test(e[Hr]);)r+=e[Hr++];return r}function Rh(e){let r="";for(;Hr<e.length&&fj.test(e[Hr]);)r+=e[Hr++];return r}function vj(e){let r=Rh(e);return e[Hr]==="("?(Hr++,{type:cr.Function,value:r}):r==="none"?{type:cr.None,value:void 0}:{type:cr.Ident,value:r}}function dj(e=""){let r=e.trim(),t=[],a;for(Hr=0;Hr<r.length;){if(a=r[Hr++],a===`
`||a===" "||a===" "){for(;Hr<r.length&&(r[Hr]===`
`||r[Hr]===" "||r[Hr]===" ");)Hr++;continue}if(a===",")return;if(a===")"){t.push({type:cr.ParenClose});continue}if(a==="+"){if(Hr--,qh(r)){t.push(k0(r));continue}return}if(a==="-"){if(Hr--,qh(r)){t.push(k0(r));continue}if(Y2(r)){t.push({type:cr.Ident,value:Rh(r)});continue}return}if(a==="."){if(Hr--,qh(r)){t.push(k0(r));continue}return}if(a==="/"){for(;Hr<r.length&&(r[Hr]===`
`||r[Hr]===" "||r[Hr]===" ");)Hr++;let n;if(qh(r)&&(n=k0(r),n.type!==cr.Hue)){t.push({type:cr.Alpha,value:n});continue}if(Y2(r)&&Rh(r)==="none"){t.push({type:cr.Alpha,value:{type:cr.None,value:void 0}});continue}return}if(/\d/.test(a)){Hr--,t.push(k0(r));continue}if(B2.test(a)){Hr--,t.push(vj(r));continue}return}return t}function hj(e){e._i=0;let r=e[e._i++];if(!r||r.type!==cr.Function||r.value!=="color"||(r=e[e._i++],r.type!==cr.Ident))return;let t=c3[r.value];if(!t)return;let a={mode:t},n=sw(e,!1);if(!n)return;let i=ja(t).channels;for(let l=0,o,s;l<i.length;l++)o=n[l],s=i[l],o.type!==cr.None&&(a[s]=o.type===cr.Number?o.value:o.value/100,s==="alpha"&&(a[s]=Math.max(0,Math.min(1,a[s]))));return a}function sw(e,r){let t=[],a;for(;e._i<e.length;){if(a=e[e._i++],a.type===cr.None||a.type===cr.Number||a.type===cr.Alpha||a.type===cr.Percentage||r&&a.type===cr.Hue){t.push(a);continue}if(a.type===cr.ParenClose){if(e._i<e.length)return;continue}return}if(!(t.length<3||t.length>4)){if(t.length===4){if(t[3].type!==cr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:cr.None,value:void 0}),t.every(n=>n.type!==cr.Alpha)?t:void 0}}function pj(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==cr.Function)return;let a=sw(e,r);if(a)return a.unshift(t.value),a}var mj=e=>{if(typeof e!="string")return;let r=dj(e),t=r?pj(r,!0):void 0,a,n=0,i=cf.length;for(;n<i;)if((a=cf[n++](e,t))!==void 0)return a;return r?hj(r):void 0},uw=mj;function yj(e,r){if(!r||r[0]!=="rgb"&&r[0]!=="rgba")return;let t={mode:"rgb"},[,a,n,i,l]=r;if(!(a.type===cr.Hue||n.type===cr.Hue||i.type===cr.Hue))return a.type!==cr.None&&(t.r=a.type===cr.Number?a.value/255:a.value/100),n.type!==cr.None&&(t.g=n.type===cr.Number?n.value/255:n.value/100),i.type!==cr.None&&(t.b=i.type===cr.Number?i.value/255:i.value/100),l.type!==cr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===cr.Number?l.value:l.value/100))),t}var fw=yj,gj=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,cw=gj,Ts=(e,r,t)=>e+t*(r-e),bj=(e,r,t)=>(t-e)/(r-e),G2=(e,r,t,a,n,i)=>Ts(Ts(e,r,n),Ts(t,a,n),i),xj=(e,r,t,a,n,i,l,o,s,u,f)=>Ts(G2(e,r,t,a,s,u),G2(n,i,l,o,s,u),f),_j=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},vw=e=>r=>{let t=_j(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),l=t[i];return l===void 0?void 0:e(l[0],l[1],n-i)}},xr=vw(Ts),ga=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},wj={mode:"rgb",channels:["r","g","b","alpha"],parse:[fw,nw,iw,aw,cw,"srgb"],serialize:"srgb",interpolate:{r:xr,g:xr,b:xr,alpha:{use:xr,fixup:ga}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},ks=wj,g2=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),Tj=e=>{let r=g2(e.r),t=g2(e.g),a=g2(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},U2=Tj,b2=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),Mj=({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:b2(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:b2(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:b2(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},V2=Mj,x2=(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)},Aj=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:x2(e),g:x2(r),b:x2(t)};return a!==void 0&&(n.alpha=a),n},Cs=Aj,kj=e=>{let{r,g:t,b:a,alpha:n}=Cs(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},uo=kj,_2=(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},Cj=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:_2(e),g:_2(r),b:_2(t)};return a!==void 0&&(i.alpha=a),i},Ls=Cj,Lj=({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=Ls({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},fo=Lj,Sj=qt(st({},ks),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>V2(uo(e)),xyz65:V2},toMode:{rgb:e=>fo(U2(e)),xyz65:U2}}),dw=Sj,qj=e=>(e=e%360)<0?e+360:e,Ua=qj,Gh=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=Ua(t);return a===0||e[a-1]===void 0?i:r(i-Ua(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),[]),ol=e=>Gh(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),Dj=e=>Gh(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),Ej=e=>Gh(e,r=>r>=0?r:r+360),Pj=e=>Gh(e,r=>r<=0?r:r-360),Ra=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Rj=Math.PI/180,zj=180/Math.PI,V9=Ra[3]*Ra[4],X9=Ra[1]*Ra[4],W9=Ra[1]*Ra[2]-Ra[0]*Ra[3],Nj=({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=(W9*t+e*V9-r*X9)/(W9+V9-X9),i=t-n,l=(Ra[4]*(r-n)-Ra[2]*i)/Ra[3],o={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+l*l)/(Ra[4]*n*(1-n))};return o.s&&(o.h=Math.atan2(l,i)*zj-120),a!==void 0&&(o.alpha=a),o},hw=Nj,Fj=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*Rj,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),l=Math.cos(e),o=Math.sin(e);return n.r=t+i*(Ra[0]*l+Ra[1]*o),n.g=t+i*(Ra[2]*l+Ra[3]*o),n.b=t+i*(Ra[4]*l+Ra[5]*o),a!==void 0&&(n.alpha=a),n},pw=Fj,D0=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=Ua(e.h),a=Ua(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},mw=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=Ua(e.h),a=Ua(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},E0=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=Ua(e.h),a=Ua(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},vf=(e="rgb",r=[1,1,1,0])=>{let t=ja(e),a=t.channels,n=t.difference,i=Mt(e);return(l,o)=>{let s=i(l),u=i(o);return Math.sqrt(a.reduce((f,c,v)=>{let h=n[c]?n[c](s,u):s[c]-u[c];return f+(r[v]||0)*Math.pow(isNaN(h)?0:h,2)},0))}},Ij=()=>vf("lab65"),Hj=(e=1,r=.045,t=.015)=>{let a=Mt("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,c=Math.sqrt(u*u+f*f),v=o.l,h=o.a,p=o.b,m=Math.sqrt(h*h+p*p),y=Math.pow(s-v,2),x=Math.pow(c-m,2),_=Math.pow(u-h,2)+Math.pow(f-p,2)-x;return Math.sqrt(y/Math.pow(e,2)+x/Math.pow(1+r*c,2)+_/Math.pow(1+t*c,2))}},Oj=(e=1,r=1,t=1)=>{let a=Mt("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,c=Math.sqrt(u*u+f*f),v=o.l,h=o.a,p=o.b,m=Math.sqrt(h*h+p*p),y=(c+m)/2,x=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),_=u*(1+x),w=h*(1+x),b=Math.sqrt(_*_+f*f),M=Math.sqrt(w*w+p*p),k=Math.abs(_)+Math.abs(f)===0?0:Math.atan2(f,_);k+=(k<0)*2*Math.PI;let A=Math.abs(w)+Math.abs(p)===0?0:Math.atan2(p,w);A+=(A<0)*2*Math.PI;let S=v-s,D=M-b,E=b*M===0?0:A-k;E-=(E>Math.PI)*2*Math.PI,E+=(E<-Math.PI)*2*Math.PI;let R=2*Math.sqrt(b*M)*Math.sin(E/2),N=(s+v)/2,I=(b+M)/2,H;b*M===0?H=k+A:(H=(k+A)/2,H-=(Math.abs(k-A)>Math.PI)*Math.PI,H+=(H<0)*2*Math.PI);let O=Math.pow(N-50,2),G=1-.17*Math.cos(H-Math.PI/6)+.24*Math.cos(2*H)+.32*Math.cos(3*H+Math.PI/30)-.2*Math.cos(4*H-63*Math.PI/180),Y=1+.015*O/Math.sqrt(20+O),V=1+.045*I,U=1+.015*I*G,Z=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*H-275)/25,2)),X=2*Math.sqrt(Math.pow(I,7)/(Math.pow(I,7)+Math.pow(25,7))),$=-1*Math.sin(2*Z)*X;return Math.sqrt(Math.pow(S/(e*Y),2)+Math.pow(D/(r*V),2)+Math.pow(R/(t*U),2)+$*D/(r*V)*R/(t*U))}},Bj=(e=1,r=1)=>{let t=Mt("lab65");return(a,n)=>{let i=t(a),l=i.l,o=i.a,s=i.b,u=Math.sqrt(o*o+s*s),f=Math.atan2(s,o);f=f+2*Math.PI*(f<0);let c=t(n),v=c.l,h=c.a,p=c.b,m=Math.sqrt(h*h+p*p),y=Math.pow(l-v,2),x=Math.pow(u-m,2),_=Math.pow(o-h,2)+Math.pow(s-p,2)-x,w=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),b=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=l<16?.511:.040975*l/(1+.01765*l),k=.0638*u/(1+.0131*u)+.638,A=k*(w*b+1-w);return Math.sqrt(y/Math.pow(e*M,2)+x/Math.pow(r*k,2)+_/Math.pow(A,2))}},Yj=()=>{let e=Mt("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,l=a.a-n.a,o=a.b-n.b;return Math.abs(i)+Math.sqrt(l*l+o*o)}},Gj=()=>vf("yiq",[.5053,.299,.1957]),Uj=()=>vf("itp",[518400,129600,518400]),sl=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},yw=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},w2=e=>typeof e=="function";function Vj(e,r="rgb",t){let a=ja(r),n=e.map(Mt(r));return a.channels.reduce((i,l)=>{let o=n.map(s=>s[l]).filter(s=>s!==void 0);if(o.length){let s;w2(t)?s=t:t&&w2(t[l])?s=t[l]:a.average&&w2(a.average[l])?s=a.average[l]:s=yw,i[l]=s(o,l)}return i},{mode:r})}var Xj={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:hw},toMode:{rgb:pw},interpolate:{h:{use:xr,fixup:ol},s:xr,l:xr,alpha:{use:xr,fixup:ga}},difference:{h:D0},average:{h:sl}},gw=Xj,Wj=({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),l={mode:n,l:e,c:i};return i&&(l.h=Ua(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(l.alpha=a),l},Pl=Wj,Zj=({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},Rl=Zj,bw=Math.pow(29,3)/Math.pow(3,3),xw=Math.pow(6,3)/Math.pow(29,3),ya={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},uf={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},v7e=Math.pow(29,3)/Math.pow(3,3),d7e=Math.pow(6,3)/Math.pow(29,3),T2=e=>Math.pow(e,3)>xw?Math.pow(e,3):(116*e-16)/bw,Jj=({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,l=n-t/200,o={mode:"xyz65",x:T2(i)*uf.X,y:T2(n)*uf.Y,z:T2(l)*uf.Z};return a!==void 0&&(o.alpha=a),o},v3=Jj,$j=e=>fo(v3(e)),P0=$j,M2=e=>e>xw?Math.cbrt(e):(bw*e+16)/116,Kj=({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=M2(e/uf.X),i=M2(r/uf.Y),l=M2(t/uf.Z),o={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},d3=Kj,Qj=e=>{let r=d3(uo(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},R0=Qj,zh=1,_w=1,q0=26/180*Math.PI,Nh=Math.cos(q0),Fh=Math.sin(q0),ww=100/Math.log(139/100),jj=({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*zh/ww)-1)/.0039},i=(Math.exp(.0435*r*_w*zh)-1)/.075,l=i*Math.cos(t/180*Math.PI-q0),o=i*Math.sin(t/180*Math.PI-q0);return n.a=l*Nh-o/.83*Fh,n.b=l*Fh+o/.83*Nh,a!==void 0&&(n.alpha=a),n},Ih=jj,eee=({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*Nh+t*Fh,i=.83*(t*Nh-r*Fh),l=Math.sqrt(n*n+i*i),o={mode:"dlch",l:ww/zh*Math.log(1+.0039*e),c:Math.log(1+.075*l)/(.0435*_w*zh)};return o.c&&(o.h=Ua((Math.atan2(i,n)+q0)/Math.PI*180)),a!==void 0&&(o.alpha=a),o},Hh=eee,Z9=e=>Ih(Pl(e,"dlch")),J9=e=>Rl(Hh(e),"dlab"),ree={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Z9,rgb:e=>P0(Z9(e))},fromMode:{lab65:J9,rgb:e=>J9(R0(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:xr,a:xr,b:xr,alpha:{use:xr,fixup:ga}}},Tw=ree,tee={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Ih,dlab:e=>Rl(e,"dlab"),rgb:e=>P0(Ih(e))},fromMode:{lab65:Hh,dlab:e=>Pl(e,"dlch"),rgb:e=>Hh(R0(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:xr,c:xr,h:{use:xr,fixup:ol},alpha:{use:xr,fixup:ga}},difference:{h:E0},average:{h:sl}},Mw=tee;function Aw({h:e,s:r,i:t,alpha:a}){e=Ua(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 kw({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),l={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(l.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&&(l.alpha=a),l}var aee={mode:"hsi",toMode:{rgb:Aw},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:kw},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:xr,fixup:ol},s:xr,i:xr,alpha:{use:xr,fixup:ga}},difference:{h:D0},average:{h:sl}},Cw=aee;function Lw({h:e,s:r,l:t,alpha:a}){e=Ua(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),l;switch(Math.floor(e/60)){case 0:l={r:n,g:i,b:2*t-n};break;case 1:l={r:i,g:n,b:2*t-n};break;case 2:l={r:2*t-n,g:n,b:i};break;case 3:l={r:2*t-n,g:i,b:n};break;case 4:l={r:i,g:2*t-n,b:n};break;case 5:l={r:n,g:2*t-n,b:i};break;default:l={r:2*t-n,g:2*t-n,b:2*t-n}}return l.mode="rgb",a!==void 0&&(l.alpha=a),l}function Sw({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),l={mode:"hsl",s:n===i?0:(n-i)/(1-Math.abs(n+i-1)),l:.5*(n+i)};return n-i!==0&&(l.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&&(l.alpha=a),l}var nee=(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}},iee=nee,lee=new RegExp(`^hsla?\\(\\s*${tj}${ff}${L0}${ff}${L0}\\s*(?:,\\s*${f3}\\s*)?\\)$`),oee=e=>{let r=e.match(lee);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=iee(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},qw=oee;function see(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,l]=r;if(a.type!==cr.None){if(a.type===cr.Percentage)return;t.h=a.value}if(n.type!==cr.None){if(n.type===cr.Hue)return;t.s=n.value/100}if(i.type!==cr.None){if(i.type===cr.Hue)return;t.l=i.value/100}return l.type!==cr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===cr.Number?l.value:l.value/100))),t}var Dw=see,uee={mode:"hsl",toMode:{rgb:Lw},fromMode:{rgb:Sw},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Dw,qw],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:xr,fixup:ol},s:xr,l:xr,alpha:{use:xr,fixup:ga}},difference:{h:D0},average:{h:sl}},h3=uee;function p3({h:e,s:r,v:t,alpha:a}){e=Ua(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 m3({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),l={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(l.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&&(l.alpha=a),l}var fee={mode:"hsv",toMode:{rgb:p3},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:m3},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:xr,fixup:ol},s:xr,v:xr,alpha:{use:xr,fixup:ga}},difference:{h:D0},average:{h:sl}},y3=fee;function Ew({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 p3({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function Pw(e){let r=m3(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 cee(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,l]=r;if(a.type!==cr.None){if(a.type===cr.Percentage)return;t.h=a.value}if(n.type!==cr.None){if(n.type===cr.Hue)return;t.w=n.value/100}if(i.type!==cr.None){if(i.type===cr.Hue)return;t.b=i.value/100}return l.type!==cr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===cr.Number?l.value:l.value/100))),t}var Rw=cee,vee={mode:"hwb",toMode:{rgb:Ew},fromMode:{rgb:Pw},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Rw],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:xr,fixup:ol},w:xr,b:xr,alpha:{use:xr,fixup:ga}},difference:{h:mw},average:{h:sl}},zw=vee,Nw=203,Uh=.1593017578125,Fw=78.84375,Vh=.8359375,Xh=18.8515625,Wh=18.6875;function A2(e){if(e<0)return 0;let r=Math.pow(e,1/Fw);return 1e4*Math.pow(Math.max(0,r-Vh)/(Xh-Wh*r),1/Uh)}function k2(e){if(e<0)return 0;let r=Math.pow(e/1e4,Uh);return Math.pow((Vh+Xh*r)/(1+Wh*r),Fw)}var C2=e=>Math.max(e/Nw,0),dee=({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=A2(e+.008609037037932761*r+.11102962500302593*t),i=A2(e-.00860903703793275*r-.11102962500302599*t),l=A2(e+.5600313357106791*r-.32062717498731885*t),o={mode:"xyz65",x:C2(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*l),y:C2(.3647385209748074*n+.680566024947227*i-.0453045459220346*l),z:C2(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*l)};return a!==void 0&&(o.alpha=a),o},X2=dee,L2=(e=0)=>Math.max(e*Nw,0),hee=({x:e,y:r,z:t,alpha:a})=>{let n=L2(e),i=L2(r),l=L2(t),o=k2(.3592832590121217*n+.6976051147779502*i-.0358915932320289*l),s=k2(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*l),u=k2(.0070797844607477*n+.0748396662186366*i+.8433265453898765*l),f=.5*o+.5*s,c=1.61376953125*o-3.323486328125*s+1.709716796875*u,v=4.378173828125*o-4.24560546875*s-.132568359375*u,h={mode:"itp",i:f,t:c,p:v};return a!==void 0&&(h.alpha=a),h},W2=hee,pee={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:X2,rgb:e=>fo(X2(e))},fromMode:{xyz65:W2,rgb:e=>W2(uo(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:xr,t:xr,p:xr,alpha:{use:xr,fixup:ga}}},Iw=pee,mee=134.03437499999998,yee=16295499532821565e-27,S2=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Uh);return Math.pow((Vh+Xh*r)/(1+Wh*r),mee)},q2=(e=0)=>Math.max(e*203,0),gee=({x:e,y:r,z:t,alpha:a})=>{e=q2(e),r=q2(r),t=q2(t);let n=1.15*e-.15*t,i=.66*r+.34*e,l=S2(.41478972*n+.579999*i+.014648*t),o=S2(-.20151*n+1.120649*i+.0531008*t),s=S2(-.0166008*n+.2648*i+.6684799*t),u=(l+o)/2,f={mode:"jab",j:.44*u/(1-.56*u)-yee,a:3.524*l-4.066708*o+.542708*s,b:.199076*l+1.096799*o-1.295875*s};return a!==void 0&&(f.alpha=a),f},g3=gee,bee=134.03437499999998,$9=16295499532821565e-27,D2=e=>{if(e<0)return 0;let r=Math.pow(e,1/bee);return 1e4*Math.pow((Vh-r)/(Wh*r-Xh),1/Uh)},E2=e=>e/203,xee=({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+$9)/(.44+.56*(e+$9)),i=D2(n+.13860504*r+.058047316*t),l=D2(n-.13860504*r-.058047316*t),o=D2(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:E2(1.661373024652174*i-.914523081304348*l+.23136208173913045*o),y:E2(-.3250758611844533*i+1.571847026732543*l-.21825383453227928*o),z:E2(-.090982811*i-.31272829*l+1.5227666*o)};return a!==void 0&&(s.alpha=a),s},b3=xee,_ee=e=>{let r=g3(uo(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},x3=_ee,wee=e=>fo(b3(e)),_3=wee,Tee={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:x3,xyz65:g3},toMode:{rgb:_3,xyz65:b3},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:xr,a:xr,b:xr,alpha:{use:xr,fixup:ga}}},Hw=Tee,Mee=({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=Ua(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},Z2=Mee,Aee=({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},J2=Aee,kee={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:J2,rgb:e=>_3(J2(e))},fromMode:{rgb:e=>Z2(x3(e)),jab:Z2},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:xr,fixup:ol},c:xr,j:xr,alpha:{use:xr,fixup:ga}},difference:{h:E0},average:{h:sl}},Ow=kee,Zh=Math.pow(29,3)/Math.pow(3,3),w3=Math.pow(6,3)/Math.pow(29,3),P2=e=>Math.pow(e,3)>w3?Math.pow(e,3):(116*e-16)/Zh,Cee=({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,l=n-t/200,o={mode:"xyz50",x:P2(i)*ya.X,y:P2(n)*ya.Y,z:P2(l)*ya.Z};return a!==void 0&&(o.alpha=a),o},Jh=Cee,Lee=({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=Ls({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},df=Lee,See=e=>df(Jh(e)),T3=See,qee=e=>{let{r,g:t,b:a,alpha:n}=Cs(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},hf=qee,R2=e=>e>w3?Math.cbrt(e):(Zh*e+16)/116,Dee=({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=R2(e/ya.X),i=R2(r/ya.Y),l=R2(t/ya.Z),o={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},$h=Dee,Eee=e=>{let r=$h(hf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},M3=Eee;function Pee(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,l]=r;if(!(a.type===cr.Hue||n.type===cr.Hue||i.type===cr.Hue))return a.type!==cr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==cr.None&&(t.a=n.type===cr.Number?n.value:n.value*125/100),i.type!==cr.None&&(t.b=i.type===cr.Number?i.value:i.value*125/100),l.type!==cr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===cr.Number?l.value:l.value/100))),t}var Bw=Pee,Ree={mode:"lab",toMode:{xyz50:Jh,rgb:T3},fromMode:{xyz50:$h,rgb:M3},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Bw],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:xr,a:xr,b:xr,alpha:{use:xr,fixup:ga}}},Kh=Ree,zee=qt(st({},Kh),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:v3,rgb:P0},fromMode:{xyz65:d3,rgb:R0},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),Yw=zee;function Nee(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,l]=r;if(a.type!==cr.None){if(a.type===cr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==cr.None&&(t.c=Math.max(0,n.type===cr.Number?n.value:n.value*150/100)),i.type!==cr.None){if(i.type===cr.Percentage)return;t.h=i.value}return l.type!==cr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===cr.Number?l.value:l.value/100))),t}var Gw=Nee,Fee={mode:"lch",toMode:{lab:Rl,rgb:e=>T3(Rl(e))},fromMode:{rgb:e=>Pl(M3(e)),lab:Pl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Gw],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:xr,fixup:ol},c:xr,l:xr,alpha:{use:xr,fixup:ga}},difference:{h:E0},average:{h:sl}},Qh=Fee,Iee=qt(st({},Qh),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Rl(e,"lab65"),rgb:e=>P0(Rl(e,"lab65"))},fromMode:{rgb:e=>Pl(R0(e),"lch65"),lab65:e=>Pl(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Uw=Iee,Hee=({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=Ua(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},A3=Hee,Oee=({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},k3=Oee,Vw=(e,r,t)=>4*e/(e+15*r+3*t),Xw=(e,r,t)=>9*r/(e+15*r+3*t),Bee=Vw(ya.X,ya.Y,ya.Z),Yee=Xw(ya.X,ya.Y,ya.Z),Gee=e=>e<=w3?Zh*e:116*Math.cbrt(e)-16,Uee=({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=Gee(r/ya.Y),i=Vw(e,r,t),l=Xw(e,r,t);!isFinite(i)||!isFinite(l)?n=i=l=0:(i=13*n*(i-Bee),l=13*n*(l-Yee));let o={mode:"luv",l:n,u:i,v:l};return a!==void 0&&(o.alpha=a),o},Oh=Uee,Vee=(e,r,t)=>4*e/(e+15*r+3*t),Xee=(e,r,t)=>9*r/(e+15*r+3*t),Wee=Vee(ya.X,ya.Y,ya.Z),Zee=Xee(ya.X,ya.Y,ya.Z),Jee=({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)+Wee,i=t/(13*e)+Zee,l=ya.Y*(e<=8?e/Zh:Math.pow((e+16)/116,3)),o=l*(9*n)/(4*i),s=l*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:o,y:l,z:s};return a!==void 0&&(u.alpha=a),u},Bh=Jee,$ee=e=>A3(Oh(hf(e))),Kee=e=>df(Bh(k3(e))),Qee={mode:"lchuv",toMode:{luv:k3,rgb:Kee},fromMode:{rgb:$ee,luv:A3},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:xr,fixup:ol},c:xr,l:xr,alpha:{use:xr,fixup:ga}},difference:{h:E0},average:{h:sl}},Ww=Qee,jee=qt(st({},ks),{mode:"lrgb",toMode:{rgb:Ls},fromMode:{rgb:Cs},parse:["srgb-linear"],serialize:"srgb-linear"}),Zw=jee,ere={mode:"luv",toMode:{xyz50:Bh,rgb:e=>df(Bh(e))},fromMode:{xyz50:Oh,rgb:e=>Oh(hf(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:xr,u:xr,v:xr,alpha:{use:xr,fixup:ga}}},Jw=ere,rre=({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),l=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),o={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*l,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*l,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*l};return a!==void 0&&(o.alpha=a),o},C3=rre,tre=e=>{let r=C3(Cs(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},z0=tre,are=({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),l=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),o={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*l,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*l,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*l};return a!==void 0&&(o.alpha=a),o},pf=are,nre=e=>Ls(pf(e)),N0=nre;function $2(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function Yh(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function ire(e,r){let t,a,n,i,l,o,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,l=.56771245,o=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,l=.14503204,o=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,l=.00692167,o=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+l*e*r,c=.3963377774*e+.2158037573*r,v=-.1055613458*e-.0638541728*r,h=-.0894841775*e-1.291485548*r;{let p=1+f*c,m=1+f*v,y=1+f*h,x=p*p*p,_=m*m*m,w=y*y*y,b=3*c*p*p,M=3*v*m*m,k=3*h*y*y,A=6*c*c*p,S=6*v*v*m,D=6*h*h*y,E=o*x+s*_+u*w,R=o*b+s*M+u*k,N=o*A+s*S+u*D;f=f-E*R/(R*R-.5*E*N)}return f}function L3(e,r){let t=ire(e,r),a=pf({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 lre(e,r,t,a,n,i=null){i||(i=L3(e,r));let l;if((t-n)*i[1]-(i[0]-n)*a<=0)l=i[1]*n/(a*i[0]+i[1]*(n-t));else{l=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let o=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,v=o+s*u,h=o+s*f,p=o+s*c;{let m=n*(1-l)+l*t,y=l*a,x=m+y*u,_=m+y*f,w=m+y*c,b=x*x*x,M=_*_*_,k=w*w*w,A=3*v*x*x,S=3*h*_*_,D=3*p*w*w,E=6*v*v*x,R=6*h*h*_,N=6*p*p*w,I=4.0767416621*b-3.3077115913*M+.2309699292*k-1,H=4.0767416621*A-3.3077115913*S+.2309699292*D,O=4.0767416621*E-3.3077115913*R+.2309699292*N,G=H/(H*H-.5*I*O),Y=-I*G,V=-1.2684380046*b+2.6097574011*M-.3413193965*k-1,U=-1.2684380046*A+2.6097574011*S-.3413193965*D,Z=-1.2684380046*E+2.6097574011*R-.3413193965*N,X=U/(U*U-.5*V*Z),$=-V*X,ae=-.0041960863*b-.7034186147*M+1.707614701*k-1,ie=-.0041960863*A-.7034186147*S+1.707614701*D,ve=-.0041960863*E-.7034186147*R+1.707614701*N,K=ie/(ie*ie-.5*ae*ve),he=-ae*K;Y=G>=0?Y:1e6,$=X>=0?$:1e6,he=K>=0?he:1e6,l+=Math.min(Y,Math.min($,he))}}}return l}function S3(e,r,t=null){t||(t=L3(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function $w(e,r,t){let a=L3(r,t),n=lre(r,t,e,1,e,a),i=S3(r,t,a),l=.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)))),o=.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*l,f=(1-e)*o,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 K2(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:$2(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[l,o,s]=$w(r,t/i,a/i),u;if(i<o){let f=0,c=.8*l,v=1-c/o;u=(i-f)/(c+v*(i-f))*.8}else{let f=o,c=.2*o*o*1.25*1.25/l,v=1-c/(s-o);u=.8+.2*((i-f)/(c+v*(i-f)))}return u&&(n.s=u,n.h=Ua(Math.atan2(a,t)*180/Math.PI)),n}function Q2(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:Yh(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),l=Math.sin(r/180*Math.PI),[o,s,u]=$w(n.l,i,l),f,c,v,h;t<.8?(f=1.25*t,c=0,v=.8*o,h=1-v/s):(f=5*(t-.8),c=s,v=.2*s*s*1.25*1.25/o,h=1-v/(u-s));let p=c+f*v/(1-h*f);return n.a=p*i,n.b=p*l,n}var ore=qt(st({},h3),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:K2,rgb:e=>K2(z0(e))},toMode:{oklab:Q2,rgb:e=>N0(Q2(e))}}),Kw=ore;function j2(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,l=n?a/n:1,[o,s]=S3(i,l),u=.5,f=1-u/o,c=s/(n+r*s),v=c*r,h=c*n,p=Yh(v),m=h*p/v,y=pf({l:p,a:i*m,b:l*m}),x=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/x,n=n/x*$2(r)/r,r=$2(r);let _={mode:"okhsv",s:n?(u+s)*h/(s*u+s*f*h):0,v:r?r/v:0};return _.s&&(_.h=Ua(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(_.alpha=e.alpha),_}function e3(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),l=Math.sin(t/180*Math.PI),[o,s]=S3(i,l),u=.5,f=1-u/o,c=1-a*u/(u+s-s*f*a),v=a*s*u/(u+s-s*f*a),h=Yh(c),p=v*h/c,m=pf({l:h,a:i*p,b:l*p}),y=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),x=Yh(n*c),_=v*x/c;return r.l=x*y,r.a=_*i*y,r.b=_*l*y,r}var sre=qt(st({},y3),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:j2,rgb:e=>j2(z0(e))},toMode:{oklab:e3,rgb:e=>N0(e3(e))}}),Qw=sre;function ure(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,l]=r;if(!(a.type===cr.Hue||n.type===cr.Hue||i.type===cr.Hue))return a.type!==cr.None&&(t.l=Math.min(Math.max(0,a.type===cr.Number?a.value:a.value/100),1)),n.type!==cr.None&&(t.a=n.type===cr.Number?n.value:n.value*.4/100),i.type!==cr.None&&(t.b=i.type===cr.Number?i.value:i.value*.4/100),l.type!==cr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===cr.Number?l.value:l.value/100))),t}var jw=ure,fre=qt(st({},Kh),{mode:"oklab",toMode:{lrgb:pf,rgb:N0},fromMode:{lrgb:C3,rgb:z0},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[jw],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}`:""})`}),eT=fre;function cre(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,l]=r;if(a.type!==cr.None){if(a.type===cr.Hue)return;t.l=Math.min(Math.max(0,a.type===cr.Number?a.value:a.value/100),1)}if(n.type!==cr.None&&(t.c=Math.max(0,n.type===cr.Number?n.value:n.value*.4/100)),i.type!==cr.None){if(i.type===cr.Percentage)return;t.h=i.value}return l.type!==cr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===cr.Number?l.value:l.value/100))),t}var rT=cre,vre=qt(st({},Qh),{mode:"oklch",toMode:{oklab:e=>Rl(e,"oklab"),rgb:e=>N0(Rl(e,"oklab"))},fromMode:{rgb:e=>Pl(z0(e),"oklch"),oklab:e=>Pl(e,"oklch")},parse:[rT],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]}}),tT=vre,dre=e=>{let{r,g:t,b:a,alpha:n}=Cs(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},r3=dre,hre=({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=Ls({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},t3=hre,pre=qt(st({},ks),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>t3(uo(e)),xyz65:t3},toMode:{rgb:e=>fo(r3(e)),xyz65:r3}}),aT=pre,z2=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},mre=({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:z2(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:z2(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:z2(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},a3=mre,N2=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},yre=e=>{let r=N2(e.r),t=N2(e.g),a=N2(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},n3=yre,gre=qt(st({},ks),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:a3,rgb:e=>a3(hf(e))},toMode:{xyz50:n3,rgb:e=>df(n3(e))}}),nT=gre,K9=1.09929682680944,bre=.018053968510807,F2=e=>{let r=Math.abs(e);return r>bre?(Math.sign(e)||1)*(K9*Math.pow(r,.45)-(K9-1)):4.5*e},xre=({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:F2(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:F2(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:F2(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},i3=xre,Q9=1.09929682680944,_re=.018053968510807,I2=(e=0)=>{let r=Math.abs(e);return r<_re*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+Q9-1)/Q9,1/.45)},wre=e=>{let r=I2(e.r),t=I2(e.g),a=I2(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},l3=wre,Tre=qt(st({},ks),{mode:"rec2020",fromMode:{xyz65:i3,rgb:e=>i3(uo(e))},toMode:{xyz65:l3,rgb:e=>fo(l3(e))},parse:["rec2020"],serialize:"rec2020"}),iT=Tre,Ms=.0037930732552754493,lT=Math.cbrt(Ms),H2=e=>Math.cbrt(e)-lT,Mre=e=>{let{r,g:t,b:a,alpha:n}=Cs(e),i=H2(.3*r+.622*t+.078*a+Ms),l=H2(.23*r+.692*t+.078*a+Ms),o=H2(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Ms),s={mode:"xyb",x:(i-l)/2,y:(i+l)/2,b:o-(i+l)/2};return n!==void 0&&(s.alpha=n),s},oT=Mre,O2=e=>Math.pow(e+lT,3),Are=({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=O2(e+r)-Ms,i=O2(r-e)-Ms,l=O2(t+r)-Ms,o=Ls({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*l,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*l,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*l});return a!==void 0&&(o.alpha=a),o},sT=Are,kre={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:sT},fromMode:{rgb:oT},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:xr,y:xr,b:xr,alpha:{use:xr,fixup:ga}}},uT=kre,Cre={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:df,lab:$h},fromMode:{rgb:hf,lab:Jh},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:xr,y:xr,z:xr,alpha:{use:xr,fixup:ga}}},fT=Cre,Lre=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},cT=Lre,Sre=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},vT=Sre,qre={mode:"xyz65",toMode:{rgb:fo,xyz50:cT},fromMode:{rgb:uo,xyz50:vT},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:xr,y:xr,z:xr,alpha:{use:xr,fixup:ga}}},dT=qre,Dre=({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},hT=Dre,Ere=({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},pT=Ere,Pre={mode:"yiq",toMode:{rgb:pT},fromMode:{rgb:hT},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:xr,i:xr,q:xr,alpha:{use:xr,fixup:ga}}},mT=Pre,Rre=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,zre=(e=4)=>r=>typeof r=="number"?Rre(r,e):r,yT=zre,C0=yT(2),S0=e=>Math.max(0,Math.min(1,e||0)),As=e=>Math.round(S0(e)*255),q3=Mt("rgb"),Nre=Mt("hsl"),D3=e=>{if(e===void 0)return;let r=As(e.r),t=As(e.g),a=As(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},gT=e=>{if(e===void 0)return;let r=As(e.alpha!==void 0?e.alpha:1);return D3(e)+(256|r).toString(16).slice(1)},bT=e=>{if(e===void 0)return;let r=As(e.r),t=As(e.g),a=As(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${C0(S0(e.alpha))})`},xT=e=>{if(e===void 0)return;let r=C0(e.h||0),t=C0(S0(e.s)*100)+"%",a=C0(S0(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${C0(S0(e.alpha))})`},Fre=e=>{let r=Ei(e);if(!r)return;let t=ja(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)},Ire=e=>D3(q3(e)),Hre=e=>gT(q3(e)),Ore=e=>bT(q3(e)),Bre=e=>xT(Nre(e)),Yre={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},Gre=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:Yre[r],n=Mt(t),i=ja(t).channels;return e.map(o=>{let s=n(o);return s.alpha===void 0&&(s.alpha=1),s}).reduce((o,s)=>{if(o===void 0)return s;let u=s.alpha+o.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-o.alpha)*s[c]+s.alpha*o.alpha*a(o[c],s[c])+(1-s.alpha)*o.alpha*o[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},Ure=Gre,Vre=([e,r])=>e+Math.random()*(r-e),Xre=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),Wre=(e="rgb",r={})=>{let t=ja(e),a=Xre(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=Vre(a[i]||t.ranges[i])),n),{mode:e})},Zre=Wre,F0=(e,r="rgb",t=!1)=>{let a=r?ja(r).channels:null,n=r?Mt(r):Ei;return i=>{let l=n(i);if(!l)return;let o=(a||ja(l.mode).channels).reduce((u,f)=>{let c=e(l[f],f,l,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:l.mode});if(!t)return o;let s=Ei(i);return s&&s.mode!==o.mode?Mt(s.mode)(o):o}},_T=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,wT=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,E3=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,Jre=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,$re=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},Kre=$re,Qre=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),TT=Qre,Eh=e=>typeof e=="function",ws=e=>e&&typeof e=="object",j9=e=>typeof e=="number",MT=(e,r="rgb",t,a)=>{let n=ja(r),i=Mt(r),l=[],o=[],s={};e.forEach(v=>{Array.isArray(v)?(l.push(i(v[0])),o.push(v[1])):j9(v)||Eh(v)?s[o.length]=v:(l.push(i(v)),o.push(void 0))}),Kre(o);let u=n.channels.reduce((v,h)=>{let p;return ws(t)&&ws(t[h])&&t[h].fixup?p=t[h].fixup:ws(n.interpolate[h])&&n.interpolate[h].fixup?p=n.interpolate[h].fixup:p=m=>m,v[h]=p(l.map(m=>m[h])),v},{});if(a){let v=l.map((h,p)=>n.channels.reduce((m,y)=>(m[y]=u[y][p],m),{mode:r}));u=n.channels.reduce((h,p)=>(h[p]=v.map(m=>{let y=a(m[p],p,m,r);return isNaN(y)?void 0:y}),h),{})}let f=n.channels.reduce((v,h)=>{let p;return Eh(t)?p=t:ws(t)&&Eh(t[h])?p=t[h]:ws(t)&&ws(t[h])&&t[h].use?p=t[h].use:Eh(n.interpolate[h])?p=n.interpolate[h]:ws(n.interpolate[h])&&(p=n.interpolate[h].use),v[h]=p(u[h]),v},{}),c=l.length-1;return v=>{if(v=Math.min(Math.max(0,v),1),v<=o[0])return l[0];if(v>o[c])return l[c];let h=0;for(;o[h]<v;)h++;let p=o[h-1],m=o[h]-p,y=(v-p)/m,x=s[h]||s[0];x!==void 0&&(j9(x)&&(x=TT((x-p)/m)),y=x(y));let _=(h-1+y)/c;return n.channels.reduce((w,b)=>{let M=f[b](_);return M!==void 0&&(w[b]=M),w},{mode:r})}},jre=(e,r="rgb",t)=>MT(e,r,t),AT=(e,r)=>(t,a="rgb",n)=>{let i=r?F0(r,a):void 0,l=MT(t,a,n,e);return i?o=>i(l(o)):l},ete=AT(_T,wT),Ph=(e,r)=>(e+r)%r,kT=(e,r,t,a,n)=>{let i=n*n,l=i*n;return((1-3*n+3*i-l)*e+(4-6*i+3*l)*r+(1+3*n+3*i-3*l)*t+l*a)/6},CT=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return kT(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)},LT=e=>r=>{let t=e.length-1,a=Math.floor(r*t);return kT(e[Ph(a-1,e.length)],e[Ph(a,e.length)],e[Ph(a+1,e.length)],e[Ph(a+2,e.length)],(r-a/t)*t)},ST=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},rte=e=>CT(ST(e)),tte=e=>LT(ST(e)),sf=Math.sign,o3=Math.min,zn=Math.abs,P3=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?(sf(t[i-1])+sf(t[i]))*o3(zn(t[i-1]),zn(t[i]),.5*zn(a[i])):void 0);return[t,a,n]},R3=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let l;i>=1?l=a-1:l=Math.max(0,Math.floor(i*a));let o=i-l/a,s=o*o,u=s*o;return(r[l]+r[l+1]-2*t[l])*n*u+(3*t[l]-2*r[l]-r[l+1])*a*s+r[l]*o+e[l]}},ate=e=>{if(e.length<3)return xr(e);let r=e.length-1,[t,,a]=P3(e);return a[0]=t[0],a[r]=t[r-1],R3(e,a,t)},nte=e=>{if(e.length<3)return xr(e);let r=e.length-1,[t,a,n]=P3(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:zn(a[0])>2*zn(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:zn(a[r])>2*zn(t[r-1])?2*t[r-1]:a[r],R3(e,n,t)},ite=e=>{let r=e.length-1,[t,a,n]=P3(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,l=i;return n[0]=(sf(i)+sf(t[0]))*o3(zn(i),zn(t[0]),.5*zn(a[0])),n[r]=(sf(t[r-1])+sf(l))*o3(zn(t[r-1]),zn(l),.5*zn(a[r])),R3(e,n,t)},lte=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),qT=lte,ote=(e=2,r=1)=>{let t=qT(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},ste=ote,DT=Mt("rgb"),ET=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},PT=e=>ET(DT(e)),RT=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 z3(e){return RT(DT(e))}function jh(e="rgb"){let{gamut:r}=ja(e);if(!r)return a=>!0;let t=Mt(typeof r=="string"?r:e);return a=>RT(t(a))}function ute(e){return e=Ei(e),e===void 0||z3(e)?e:Mt(e.mode)(PT(e))}function N3(e="rgb"){let{gamut:r}=ja(e);if(!r)return i=>Ei(i);let t=typeof r=="string"?r:e,a=Mt(t),n=jh(t);return i=>{let l=Ei(i);if(!l)return;let o=a(l);if(n(o))return l;let s=ET(o);return l.mode===s.mode?s:Mt(l.mode)(s)}}function fte(e,r="lch",t="rgb"){e=Ei(e);let a=t==="rgb"?z3:jh(t),n=t==="rgb"?PT:N3(t);if(e===void 0||a(e))return e;let i=Mt(e.mode);e=Mt(r)(e);let l=qt(st({},e),{c:0});if(!a(l))return i(n(l));let o=0,s=e.c!==void 0?e.c:0,u=ja(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=l.c;for(;s-o>f;)l.c=o+(s-o)*.5,a(l)?(c=l.c,o=l.c):s=l.c;return i(a(l)?l:qt(st({},l),{c}))}function cte(e="rgb",r="oklch",t=vf("oklch"),a=.02){let n=Mt(e),i=ja(e);if(!i.gamut)return f=>n(f);let l=jh(e),o=N3(e),s=Mt(r),{ranges:u}=ja(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Ei(f),f===void 0)return;let c=st({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let y=qt(st({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=qt(st({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(l(c))return n(c);let v=0,h=c.c,p=(u.c[1]-u.c[0])/4e3,m=o(c);for(;h-v>p;)c.c=(v+h)*.5,m=o(c),l(c)||t&&a>0&&t(c,m)<=a?v=c.c:h=c.c;return n(l(c)?c:m)}}var vte=(e,r=vf(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,l=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(o=>{o.d=r(n,o.color)}),a.sort((o,s)=>o.d-s.d).slice(0,i).filter(o=>o.d<l).map(o=>e[o.i]))},dte=vte,F3=e=>Math.max(e,0),I3=e=>Math.max(Math.min(e,1),0),hte=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),pte=e=>{let r=1-I3(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]},mte=e=>{let r=F3(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]},yte=e=>{let r=1-I3(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]},gte=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]},e1=(e,r,t=!1)=>{let a=Mt(r),n=ja(r).channels;return i=>{let l=a(i);if(!l)return;let o={mode:r},s,u=n.length;for(let c=0;c<e.length;c++)s=n[Math.floor(c/u)],l[s]!==void 0&&(o[s]=(o[s]||0)+e[c]*(l[n[c%u]]||0));if(!t)return o;let f=Ei(i);return f&&o.mode!==f.mode?Mt(f.mode)(o):o}},bte=(e=1,r="rgb")=>{let t=F3(e);return F0(E3(t),r,!0)},xte=(e=1,r="rgb")=>{let t=F3(e);return F0(E3(t,(1-t)/2),r,!0)},_te=(e=1,r="rgb")=>e1(pte(e),r,!0),wte=(e=1,r="rgb")=>e1(mte(e),r,!0),Tte=(e=1,r="rgb")=>e1(yte(e),r,!0),Mte=(e=1,r="rgb")=>{let t=I3(e);return F0((a,n)=>n==="alpha"?a:hte(t,1-t,a),r,!0)},Ate=(e=0,r="rgb")=>e1(gte(e),r,!0),kte=Mt("rgb"),Cte=[[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]],Lte=[[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]],Ste=[[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]],H3=(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 l=e[a+1];i=i.map((o,s)=>Ts(i[s],l[s],n))}return l=>{let o=Ei(l);if(o===void 0)return;let{r:s,g:u,b:f}=kte(o),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 o.alpha!==void 0&&(c.alpha=o.alpha),Mt(o.mode)(c)}},qte=(e=1)=>H3(Cte,e),Dte=(e=1)=>H3(Lte,e),Ete=(e=1)=>H3(Ste,e),Pte=e=>e*e*(3-2*e),Rte=e=>.5-Math.sin(Math.asin(1-2*e)/3),zte=e=>e*e*e*(e*(e*6-15)+10),Nte=zte,Fte=e=>(1-Math.cos(e*Math.PI))/2,Ite=Fte;function s3(e){let r=Mt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function Hte(e,r){let t=s3(e),a=s3(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var Ote=ct(dw),Bte=ct(gw),Yte=ct(Tw),Gte=ct(Mw),Ute=ct(Cw),Vte=ct(h3),Xte=ct(y3),Wte=ct(zw),Zte=ct(Iw),Jte=ct(Hw),$te=ct(Ow),Kte=ct(Kh),Qte=ct(Yw),jte=ct(Qh),eae=ct(Uw),rae=ct(Ww),tae=ct(Zw),aae=ct(Jw),nae=ct(Kw),iae=ct(Qw),lae=ct(eT),oae=ct(tT),sae=ct(aT),uae=ct(nT),fae=ct(iT),cae=ct(ks),vae=ct(uT),dae=ct(fT),hae=ct(dT),pae=ct(mT)});var co=B((m7e,OT)=>{"use strict";var FT={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:300,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:{valType:"any",dflt:{}},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:{}}},IT={};function HT(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),HT(a,r[t]))}}HT(FT,IT);OT.exports={configAttributes:FT,dfltConfig:IT}});var B3=B((y7e,BT)=>{"use strict";var O3=Dr(),mae=Br(),I0=[];BT.exports=function(e,r,t){var o;if(((o=t==null?void 0:t._context)==null?void 0:o.displayNotifier)===!1||I0.indexOf(e)!==-1)return;I0.push(e);var a=1e3;mae(r)?a=r:r==="long"&&(a=3e3);var n=O3.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(I0);function l(s){s.duration(700).style("opacity",0).each("end",function(u){var f=I0.indexOf(u);f!==-1&&I0.splice(f,1),O3.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=O3.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(l)});for(var f=u.append("p"),c=s.split(/<br\s*\/?>/g),v=0;v<c.length;v++)v&&f.append("br"),f.append("span").text(c[v]);r==="stick"?u.transition().duration(350).style("opacity",1):u.transition().duration(700).style("opacity",1).transition().delay(a).call(l)})}});var vo=B((g7e,YT)=>{"use strict";var mf=co().dfltConfig,Y3=B3(),G3=YT.exports={};G3.log=function(){var e;if(mf.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(mf.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Y3(t.join("<br>"),"long")}};G3.warn=function(){var e;if(mf.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(mf.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Y3(t.join("<br>"),"stick")}};G3.error=function(){var e;if(mf.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(mf.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Y3(t.join("<br>"),"stick")}}});var ni=B(Ss=>{"use strict";Ss.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Ss.defaultLine="#444";Ss.lightLine="#eee";Ss.background="#fff";Ss.borderLine="#BEC8D9";Ss.lightFraction=1e3/11});var Ar=B((x7e,$T)=>{"use strict";var{converter:GT,formatHex:yae,formatRgb:gae,wcagContrast:bae,wcagLuminance:xae}=NT(),{isArrayOrTypedArray:_ae}=bn(),{warn:wae}=vo(),{background:O0,defaultLine:X3,defaults:Tae,lightLine:Mae}=ni(),UT=GT("rgb"),Aae=GT("hsl"),VT=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return UT(r)}catch(t){return}},en=e=>e>0?e>1?1:e:0,kae={mode:"rgb",r:0,g:0,b:0,alpha:1},U3=e=>Math.round(e*255e6)/255e6,XT=e=>qt(st({},e),{r:U3(e.r),g:U3(e.g),b:U3(e.b)}),Nn=e=>gae(XT(e)),Cae=e=>yae(XT(e)),Ft=(e,r)=>{var a;let t=VT(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&wae(`Invalid color specifier: "${e}". Defaulting to "#000"`),kae)},H0=e=>Nn(qt(st({},Ft(e)),{alpha:1})),Lae=e=>e?Ft(e).alpha:0,WT=e=>_ae(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),Sae=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,l=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:l>1?l/255:l}},qae=(e,r)=>{let t=WT(e)?Sae(e):Ft(e,!0),a=[en(t.r),en(t.g),en(t.b),en(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},Dae=(e,r)=>Nn(qt(st({},Ft(e)),{alpha:en(r)})),ZT=(e,r)=>{let t=Ft(e),a=t.alpha;if(a===1)return Nn(t);let n=Ft(r||O0),i=n.alpha,l=(o,s)=>(i===1?s:1-i+s*i)*(1-a)+o*a;return Nn({mode:"rgb",r:l(t.r,n.r),g:l(t.g,n.g),b:l(t.b,n.b)})},Eae=(e,r,t)=>{let a=Ft(e),n=Ft(r),i=(l,o)=>t*l+(1-t)*o;return Nn({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},V3=(e,r)=>{let t=Ft(e),a=Aae(t)||{mode:"hsl",h:0,s:0,l:0};return Nn(UT(qt(st({},a),{l:en((a.l*100+r)/100),alpha:t.alpha})))},r1=(e,r)=>bae(Ft(e),Ft(r)),JT=e=>r1(e,O0)>r1(e,X3),Pae=Nn(Ft(O0)),Rae=Nn(Ft(X3)),zae=(e,r,t)=>(Ft(e).alpha!==1&&(e=ZT(e,O0)),JT(e)?r?V3(e,r):Pae:t?V3(e,-t):Rae),Nae=(e,r)=>{e.style({stroke:H0(r),"stroke-opacity":Ft(r).alpha})},Fae=(e,r)=>{e.style({fill:H0(r),"fill-opacity":Ft(r).alpha})},Iae=(e,r)=>!!(e&&r&&H0(e)===H0(r)),Hae=e=>VT(e)!==void 0,Oae=(e,r)=>{r=r===0?0:r||10;let t=Ft(e),a=r/100;return Nn(qt(st({},t),{r:en(t.r+a),g:en(t.g+a),b:en(t.b+a)}))},Bae=(e,r,t)=>{let a=Ft(e),n=Ft(r),i=t/100,l=n.alpha-a.alpha,o=2*i-1,s=((o*l===-1?o:(o+l)/(1+o*l))+1)/2,u=1-s,f=(c,v)=>u*c+s*v;return Nn({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})},Yae=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=r1(e,n);i>a&&(a=i,t=Nn(Ft(n)))}return t},Gae=e=>Nn(Ft(e)),Uae=e=>Cae(Ft(e)).toUpperCase(),Vae=e=>{let r=Ft(e);return[en(r.r)*255,en(r.g)*255,en(r.b)*255,en(r.alpha)]},Xae=([e,r,t,a])=>Nn({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),Wae=e=>{let r=Ft(e);return xae({mode:"rgb",r:en(r.r),g:en(r.g),b:en(r.b)})};$T.exports={addOpacity:Dae,adjustLightness:V3,background:O0,brighten:Oae,combine:ZT,contrast:zae,defaultLine:X3,defaults:Tae,equals:Iae,fill:Fae,hexString:Uae,interpolate:Eae,isChannelArray:WT,isDark:JT,isValid:Hae,lightLine:Mae,luminosity:Wae,mix:Bae,mostReadable:Yae,normalize:qae,opacity:Lae,parse:Ft,rgb:H0,rgbaArray:Vae,rgbaArrayToString:Xae,rgbaString:Gae,stroke:Nae,wcagContrast:r1}});var qs=B((w7e,jT)=>{"use strict";var Zae=Ar(),t1={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)"]]},KT=t1.RdBu;function Jae(e,r){if(r||(r=KT),!e)return r;function t(){try{e=t1[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),QT(e)?e:r}function QT(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||!Zae.isValid(a[1]))return!1;r=+a[0]}return!0}function $ae(e){return t1[e]!==void 0?!0:QT(e)}jT.exports={scales:t1,defaultScale:KT,get:Jae,isValid:$ae}});var yf=B((T7e,eM)=>{"use strict";eM.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var gf={};rf(gf,{counter:()=>Kae});function Kae(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+W3+"y"+W3+n):new RegExp(i+e+W3+n)}var W3,bf=rt(()=>{"use strict";W3="([2-9]|[1-9][0-9]+)?"});var aM=B(wn=>{"use strict";var Z3=Br(),rM=Tt().extendFlat,Qae=xn(),jae=qs(),J3=Ar(),ene=yf().DESELECTDIM,xf=Ch(),tM=(bf(),Ga(gf)).counter,rne=(lf(),Ga(nf)).modHalf,Pi=bn().isArrayOrTypedArray,ho=bn().isTypedArraySpec,po=bn().decodeTypedArraySpec;wn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Pi(e)?e:ho(e)?po(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){ho(e)&&(e=po(e)),!Z3(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}ho(e)&&(e=po(e)),e%1||!Z3(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){ho(e)&&(e=po(e)),J3.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=>J3.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(jae.get(e,t))}},angle:{coerceFunction:function(e,r,t){ho(e)&&(e=po(e)),e==="auto"?r.set("auto"):Z3(e)?r.set(rne(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||tM(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&Pi(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:!!tM(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 l=n[i];a.flags.indexOf(l)===-1||n.indexOf(l)<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(ho(e)?po(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(_,w,b){var M,k={set:function(A){M=A}};return b===void 0&&(b=w.dflt),wn.valObjectMeta[w.valType].coerceFunction(_,k,b,w),M}if(ho(e)&&(e=po(e)),!Pi(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&Pi(e[0]),l=a.items,o=[],s=Array.isArray(l),u=s&&i&&Pi(l[0]),f=i&&s&&!u,c=s&&!f?l.length:e.length,v,h,p,m,y,x;if(t=Array.isArray(t)?t:[],i)for(v=0;v<c;v++)for(o[v]=[],p=Pi(e[v])?e[v]:[],f?y=l.length:s?y=l[v].length:y=p.length,h=0;h<y;h++)f?m=l[h]:s?m=l[v][h]:m=l,x=n(p[h],m,(t[v]||[])[h]),x!==void 0&&(o[v][h]=x);else for(v=0;v<c;v++)x=n(e[v],s?l[v]:l,t[v]),x!==void 0&&(o[v]=x);r.set(o)},validateFunction:function(e,r){if(!Pi(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(!Pi(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var l=0;l<e[i].length;l++)if(!a1(e[i][l],a?t[i][l]:t))return!1}else if(!a1(e[i],a?t[i]:t))return!1;return!0}}};wn.coerce=function(e,r,t,a,n){var i=xf(t,a).get(),l=xf(e,a),o=xf(r,a),s=l.get(),u=r._template;if(s===void 0&&u&&(s=xf(u,a).get(),u=0),n===void 0&&(n=i.dflt),i.arrayOk){if(Pi(s))return o.set(s),s;if(ho(s))return s=po(s),o.set(s),s}var f=wn.valObjectMeta[i.valType].coerceFunction;f(s,o,n,i);var c=o.get();return u&&c===n&&!a1(s,i)&&(s=xf(u,a).get(),f(s,o,n,i),c=o.get()),c};wn.coerce2=function(e,r,t,a,n){var i=xf(e,a),l=wn.coerce(e,r,t,a,n),o=i.get();return o!=null?l:!1};wn.coerceFont=function(e,r,t,a){a||(a={}),t=rM({},t),t=rM(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};wn.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 l=e(r+".fillmode"),o=l==="overlay";if(!a){var s=e(r+".bgcolor",o?t:void 0);e(r+".fgcolor",o?J3.contrast(s):t)}e(r+".fgopacity",o?.5:1)}};wn.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:Qae,i=n.hoverinfo,l;if(t._dataLength===1){var o=i.dflt==="all"?i.flags.slice():i.dflt.split("+");o.splice(o.indexOf("name"),1),l=o.join("+")}return wn.coerce(e,r,n,"hoverinfo",l)};wn.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!Pi(t)&&!e.selected&&!e.unselected&&(a=t,n=ene*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function a1(e,r){var t=wn.valObjectMeta[r.valType];if(r.arrayOk&&Pi(e))return!0;if(t.validateFunction)return t.validateFunction(e,r);var a={},n=a,i={set:function(l){n=l}};return t.coerceFunction(e,i,a,r),n!==a}wn.validate=a1});var n1=B((A7e,nM)=>{"use strict";nM.exports=function(){}});var $3=B((k7e,iM)=>{"use strict";iM.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 oM=B((C7e,lM)=>{lM.exports=tne;function tne(){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 uM=B((L7e,sM)=>{sM.exports=ane;function ane(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 cM=B((S7e,fM)=>{fM.exports=nne;function nne(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 K3=B((q7e,vM)=>{vM.exports=ine;function ine(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 hM=B((D7e,dM)=>{dM.exports=lne;function lne(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=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]=l,e[14]=o}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 mM=B((E7e,pM)=>{pM.exports=one;function one(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],h=r[11],p=r[12],m=r[13],y=r[14],x=r[15],_=t*o-a*l,w=t*s-n*l,b=t*u-i*l,M=a*s-n*o,k=a*u-i*o,A=n*u-i*s,S=f*m-c*p,D=f*y-v*p,E=f*x-h*p,R=c*y-v*m,N=c*x-h*m,I=v*x-h*y,H=_*I-w*N+b*R+M*E-k*D+A*S;return H?(H=1/H,e[0]=(o*I-s*N+u*R)*H,e[1]=(n*N-a*I-i*R)*H,e[2]=(m*A-y*k+x*M)*H,e[3]=(v*k-c*A-h*M)*H,e[4]=(s*E-l*I-u*D)*H,e[5]=(t*I-n*E+i*D)*H,e[6]=(y*b-p*A-x*w)*H,e[7]=(f*A-v*b+h*w)*H,e[8]=(l*N-o*E+u*S)*H,e[9]=(a*E-t*N-i*S)*H,e[10]=(p*k-m*b+x*_)*H,e[11]=(c*b-f*k-h*_)*H,e[12]=(o*D-l*R-s*S)*H,e[13]=(t*R-a*D+n*S)*H,e[14]=(m*w-p*M-y*_)*H,e[15]=(f*M-c*w+v*_)*H,e):null}});var gM=B((P7e,yM)=>{yM.exports=sne;function sne(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],h=r[11],p=r[12],m=r[13],y=r[14],x=r[15];return e[0]=o*(v*x-h*y)-c*(s*x-u*y)+m*(s*h-u*v),e[1]=-(a*(v*x-h*y)-c*(n*x-i*y)+m*(n*h-i*v)),e[2]=a*(s*x-u*y)-o*(n*x-i*y)+m*(n*u-i*s),e[3]=-(a*(s*h-u*v)-o*(n*h-i*v)+c*(n*u-i*s)),e[4]=-(l*(v*x-h*y)-f*(s*x-u*y)+p*(s*h-u*v)),e[5]=t*(v*x-h*y)-f*(n*x-i*y)+p*(n*h-i*v),e[6]=-(t*(s*x-u*y)-l*(n*x-i*y)+p*(n*u-i*s)),e[7]=t*(s*h-u*v)-l*(n*h-i*v)+f*(n*u-i*s),e[8]=l*(c*x-h*m)-f*(o*x-u*m)+p*(o*h-u*c),e[9]=-(t*(c*x-h*m)-f*(a*x-i*m)+p*(a*h-i*c)),e[10]=t*(o*x-u*m)-l*(a*x-i*m)+p*(a*u-i*o),e[11]=-(t*(o*h-u*c)-l*(a*h-i*c)+f*(a*u-i*o)),e[12]=-(l*(c*y-v*m)-f*(o*y-s*m)+p*(o*v-s*c)),e[13]=t*(c*y-v*m)-f*(a*y-n*m)+p*(a*v-n*c),e[14]=-(t*(o*y-s*m)-l*(a*y-n*m)+p*(a*s-n*o)),e[15]=t*(o*v-s*c)-l*(a*v-n*c)+f*(a*s-n*o),e}});var xM=B((R7e,bM)=>{bM.exports=une;function une(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],h=e[12],p=e[13],m=e[14],y=e[15],x=r*l-t*i,_=r*o-a*i,w=r*s-n*i,b=t*o-a*l,M=t*s-n*l,k=a*s-n*o,A=u*p-f*h,S=u*m-c*h,D=u*y-v*h,E=f*m-c*p,R=f*y-v*p,N=c*y-v*m;return x*N-_*R+w*E+b*D-M*S+k*A}});var wM=B((z7e,_M)=>{_M.exports=fne;function fne(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],h=r[10],p=r[11],m=r[12],y=r[13],x=r[14],_=r[15],w=t[0],b=t[1],M=t[2],k=t[3];return e[0]=w*a+b*o+M*c+k*m,e[1]=w*n+b*s+M*v+k*y,e[2]=w*i+b*u+M*h+k*x,e[3]=w*l+b*f+M*p+k*_,w=t[4],b=t[5],M=t[6],k=t[7],e[4]=w*a+b*o+M*c+k*m,e[5]=w*n+b*s+M*v+k*y,e[6]=w*i+b*u+M*h+k*x,e[7]=w*l+b*f+M*p+k*_,w=t[8],b=t[9],M=t[10],k=t[11],e[8]=w*a+b*o+M*c+k*m,e[9]=w*n+b*s+M*v+k*y,e[10]=w*i+b*u+M*h+k*x,e[11]=w*l+b*f+M*p+k*_,w=t[12],b=t[13],M=t[14],k=t[15],e[12]=w*a+b*o+M*c+k*m,e[13]=w*n+b*s+M*v+k*y,e[14]=w*i+b*u+M*h+k*x,e[15]=w*l+b*f+M*p+k*_,e}});var MM=B((N7e,TM)=>{TM.exports=cne;function cne(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,c,v,h,p,m,y,x;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]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],h=r[7],p=r[8],m=r[9],y=r[10],x=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=h,e[8]=p,e[9]=m,e[10]=y,e[11]=x,e[12]=l*a+f*n+p*i+r[12],e[13]=o*a+c*n+m*i+r[13],e[14]=s*a+v*n+y*i+r[14],e[15]=u*a+h*n+x*i+r[15]),e}});var kM=B((F7e,AM)=>{AM.exports=vne;function vne(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 LM=B((I7e,CM)=>{CM.exports=dne;function dne(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,c,v,h,p,m,y,x,_,w,b,M,k,A,S,D,E,R,N,I,H,O;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],h=r[2],p=r[3],m=r[4],y=r[5],x=r[6],_=r[7],w=r[8],b=r[9],M=r[10],k=r[11],A=n*n*f+u,S=i*n*f+l*s,D=l*n*f-i*s,E=n*i*f-l*s,R=i*i*f+u,N=l*i*f+n*s,I=n*l*f+i*s,H=i*l*f-n*s,O=l*l*f+u,e[0]=c*A+m*S+w*D,e[1]=v*A+y*S+b*D,e[2]=h*A+x*S+M*D,e[3]=p*A+_*S+k*D,e[4]=c*E+m*R+w*N,e[5]=v*E+y*R+b*N,e[6]=h*E+x*R+M*N,e[7]=p*E+_*R+k*N,e[8]=c*I+m*H+w*O,e[9]=v*I+y*H+b*O,e[10]=h*I+x*H+M*O,e[11]=p*I+_*H+k*O,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var qM=B((H7e,SM)=>{SM.exports=hne;function hne(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=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]=l*n+f*a,e[6]=o*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=c*n-o*a,e[11]=v*n-s*a,e}});var EM=B((O7e,DM)=>{DM.exports=pne;function pne(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=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]=l*n-f*a,e[2]=o*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+c*n,e[11]=s*a+v*n,e}});var RM=B((B7e,PM)=>{PM.exports=mne;function mne(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=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]=l*n+f*a,e[2]=o*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=c*n-o*a,e[7]=v*n-s*a,e}});var NM=B((Y7e,zM)=>{zM.exports=yne;function yne(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var IM=B((G7e,FM)=>{FM.exports=gne;function gne(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,c=a*s,v=a*u,h=n*s,p=n*u,m=i*u,y=l*o,x=l*s,_=l*u;return e[0]=1-(h+m),e[1]=c+_,e[2]=v-x,e[3]=0,e[4]=c-_,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=v+x,e[9]=p-y,e[10]=1-(f+h),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var OM=B((U7e,HM)=>{HM.exports=bne;function bne(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 YM=B((V7e,BM)=>{BM.exports=xne;function xne(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 UM=B((X7e,GM)=>{GM.exports=_ne;function _ne(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 XM=B((W7e,VM)=>{VM.exports=wne;function wne(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 ZM=B((Z7e,WM)=>{WM.exports=Tne;function Tne(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 $M=B((J7e,JM)=>{JM.exports=Mne;function Mne(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,c=a*o,v=n*l,h=n*o,p=n*s,m=i*l,y=i*o,x=i*s;return e[0]=1-c-p,e[1]=f+x,e[2]=v-y,e[3]=0,e[4]=f-x,e[5]=1-u-p,e[6]=h+m,e[7]=0,e[8]=v+y,e[9]=h-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var QM=B(($7e,KM)=>{KM.exports=Ane;function Ane(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,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)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var eA=B((K7e,jM)=>{jM.exports=kne;function kne(e,r,t,a,n){var i=1/Math.tan(r/2),l=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)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var tA=B((Q7e,rA)=>{rA.exports=Cne;function Cne(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),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]=-((l-o)*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 nA=B((j7e,aA)=>{aA.exports=Lne;function Lne(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,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)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var lA=B((e8e,iA)=>{var Sne=K3();iA.exports=qne;function qne(e,r,t,a){var n,i,l,o,s,u,f,c,v,h,p=r[0],m=r[1],y=r[2],x=a[0],_=a[1],w=a[2],b=t[0],M=t[1],k=t[2];return Math.abs(p-b)<1e-6&&Math.abs(m-M)<1e-6&&Math.abs(y-k)<1e-6?Sne(e):(f=p-b,c=m-M,v=y-k,h=1/Math.sqrt(f*f+c*c+v*v),f*=h,c*=h,v*=h,n=_*v-w*c,i=w*f-x*v,l=x*c-_*f,h=Math.sqrt(n*n+i*i+l*l),h?(h=1/h,n*=h,i*=h,l*=h):(n=0,i=0,l=0),o=c*l-v*i,s=v*n-f*l,u=f*i-c*n,h=Math.sqrt(o*o+s*s+u*u),h?(h=1/h,o*=h,s*=h,u*=h):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=l,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*m+l*y),e[13]=-(o*p+s*m+u*y),e[14]=-(f*p+c*m+v*y),e[15]=1,e)}});var sA=B((r8e,oA)=>{oA.exports=Dne;function Dne(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 Q3=B((t8e,uA)=>{uA.exports={create:oM(),clone:uM(),copy:cM(),identity:K3(),transpose:hM(),invert:mM(),adjoint:gM(),determinant:xM(),multiply:wM(),translate:MM(),scale:kM(),rotate:LM(),rotateX:qM(),rotateY:EM(),rotateZ:RM(),fromRotation:NM(),fromRotationTranslation:IM(),fromScaling:OM(),fromTranslation:YM(),fromXRotation:UM(),fromYRotation:XM(),fromZRotation:ZM(),fromQuat:$M(),frustum:QM(),perspective:eA(),perspectiveFromFieldOfView:tA(),ortho:nA(),lookAt:lA(),str:sA()}});var i1=B(Jt=>{"use strict";var Ene=Q3();Jt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};Jt.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};Jt.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]=Jt.dot(e[n],r);else if(r[0].length){var i=Jt.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=Jt.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};Jt.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};Jt.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]]};Jt.rotationXYMatrix=function(e,r,t){return Jt.dot(Jt.dot(Jt.translationMatrix(r,t),Jt.rotationMatrix(e)),Jt.translationMatrix(-r,-t))};Jt.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return Jt.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};Jt.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 Jt.dot(e,[t[0],t[1],1]).slice(0,2)}};Jt.apply2DTransform2=function(e){var r=Jt.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};Jt.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]};Jt.inverseTransformMatrix=function(e){var r=[];return Ene.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 B0=B((n8e,pA)=>{"use strict";var Pne=Dr(),fA=vo(),Rne=i1(),zne=Q3();function Nne(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 Fne(e){var r=Pne.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function cA(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function Ine(e,r){vA("global",e,r)}function vA(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):fA.warn("addStyleRule failed"):fA.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Hne(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&cA(t)}function One(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function Bne(e){var r=hA(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=dA(a);if(n){var i=Rne.convertCssMatrix(n);t=zne.multiply(t,t,i)}}),t}function dA(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 hA(e){for(var r=[];Yne(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Yne(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Gne(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}pA.exports={getGraphDiv:Nne,isPlotDiv:Fne,removeElement:cA,addStyleRule:Ine,addRelatedStyleRule:vA,deleteRelatedStyleRule:Hne,setStyleOnHover:One,getFullTransformMatrix:Bne,getElementTransformMatrix:dA,getElementAndAncestors:hA,equalDomRects:Gne}});var Y0=B((i8e,mA)=>{"use strict";mA.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 Ri=B((l8e,TA)=>{"use strict";var gA=Tt().extendFlat,Une=xs(),bA={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},xA={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Vne=bA.flags.slice().concat(["fullReplot"]),Xne=xA.flags.slice().concat("layoutReplot");TA.exports={traces:bA,layout:xA,traceFlags:function(){return yA(Vne)},layoutFlags:function(){return yA(Xne)},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:_A};function yA(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function _A(e,r,t){var a=gA({},e);for(var n in a){var i=a[n];Une(i)&&(a[n]=wA(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function wA(e,r,t,a){if(e.valType){var n=gA({},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]=wA(e.items[i],r,"from-root")}return n}else return _A(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var zi=B(j3=>{"use strict";j3.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};j3.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 e5=B((s8e,MA)=>{"use strict";MA.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Fn=B(_f=>{"use strict";var{DATE_FORMAT_LINK:Wne,FORMAT_LINK:Zne}=e5(),Jne=["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 $ne({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}".`,Zne,"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}".`,Wne,"for details on the date formatting syntax.",Jne].join(" ")}_f.templateFormatStringDescription=$ne;_f.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>st({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});_f.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>st({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});_f.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});_f.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var s1=B((c8e,qA)=>{"use strict";function mo(e,r){return r?r.d2l(e):e}function AA(e,r){return r?r.l2d(e):e}function Kne(e){return e.x0}function Qne(e){return e.x1}function jne(e){return e.y0}function eie(e){return e.y1}function kA(e){return e.x0shift||0}function CA(e){return e.x1shift||0}function LA(e){return e.y0shift||0}function SA(e){return e.y1shift||0}function l1(e,r){return mo(e.x1,r)+CA(e)-mo(e.x0,r)-kA(e)}function o1(e,r,t){return mo(e.y1,t)+SA(e)-mo(e.y0,t)-LA(e)}function rie(e,r){return Math.abs(l1(e,r))}function tie(e,r,t){return Math.abs(o1(e,r,t))}function aie(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(l1(e,r),2)+Math.pow(o1(e,r,t),2))}function nie(e,r){return AA((mo(e.x1,r)+CA(e)+mo(e.x0,r)+kA(e))/2,r)}function iie(e,r,t){return AA((mo(e.y1,t)+SA(e)+mo(e.y0,t)+LA(e))/2,t)}function lie(e,r,t){return e.type!=="line"?void 0:o1(e,r,t)/l1(e,r)}var oie=["x0","x1","y0","y1","dy","height","ycenter"],sie=["x0","x1","y0","y1","dx","width","xcenter"];qA.exports={x0:Kne,x1:Qne,y0:jne,y1:eie,slope:lie,dx:l1,dy:o1,width:rie,height:tie,length:aie,xcenter:nie,ycenter:iie,simpleXVariables:oie,simpleYVariables:sie}});var PA=B((v8e,EA)=>{"use strict";var uie=Ri().overrideAll,Ds=xn(),DA=ma(),fie=zi().dash,yo=Tt().extendFlat,{shapeTexttemplateAttrs:cie,templatefallbackAttrs:vie}=Fn(),die=s1();EA.exports=uie({newshape:{visible:yo({},Ds.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:yo({},Ds.legend,{}),legendgroup:yo({},Ds.legendgroup,{}),legendgrouptitle:{text:yo({},Ds.legendgrouptitle.text,{}),font:DA({})},legendrank:yo({},Ds.legendrank,{}),legendwidth:yo({},Ds.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:yo({},fie,{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:yo({},Ds.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:cie({newshape:!0},{keys:Object.keys(die)}),texttemplatefallback:vie({editType:"arraydraw"}),font:DA({}),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 zA=B((d8e,RA)=>{"use strict";var hie=zi().dash,pie=Tt().extendFlat;RA.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:pie({},hie,{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 u1=B((h8e,NA)=>{"use strict";NA.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 wf=B((p8e,OA)=>{"use strict";var r5=ma(),mie=Y0(),f1=ni(),FA=PA(),IA=zA(),yie=u1(),HA=Tt().extendFlat,c1=r5({editType:"calc"});c1.family.dflt='"Open Sans", verdana, arial, sans-serif';c1.size.dflt=12;c1.color.dflt=f1.defaultLine;OA.exports={font:c1,title:{text:{valType:"string",editType:"layoutstyle"},font:r5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:r5({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:HA(yie({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:f1.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:f1.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:f1.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:FA.newshape,activeshape:FA.activeshape,newselection:IA.newselection,activeselection:IA.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:HA({},mie.transition,{editType:"none"})}});var BA=B(()=>{(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)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width: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{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.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{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23333' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.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 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.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.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2333b5e5' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.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 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.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.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.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 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.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 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.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 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.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' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}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 xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.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 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.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 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.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 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.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' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.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 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.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 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.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 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.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' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.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{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.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{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top: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 xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%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);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.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{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.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-left-color:#fff;border-right:none}[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{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.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{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;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{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var Mr=B(Yr=>{"use strict";var t5=vo(),YA=n1(),GA=$3(),g8e=B0().addStyleRule,UA=Tt(),gie=xn(),bie=wf(),xie=UA.extendFlat,a5=UA.extendDeepAll;Yr.modules={};Yr.allCategories={};Yr.allTypes=[];Yr.subplotsRegistry={};Yr.componentsRegistry={};Yr.layoutArrayContainers=[];Yr.layoutArrayRegexes=[];Yr.traceLayoutAttributes={};Yr.localeRegistry={};Yr.apiMethodRegistry={};Yr.collectableSubplotTypes=null;Yr.register=function(r){if(Yr.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":_ie(a);break;case"component":Tie(a);break;case"locale":Mie(a);break;case"apiMethod":var n=a.name;Yr.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};Yr.getModule=function(e){var r=Yr.modules[ZA(e)];return r?r._module:!1};Yr.traceIs=function(e,r){if(e=ZA(e),e==="various")return!1;var t=Yr.modules[e];return t||(e&&t5.log("Unrecognized trace type "+e+"."),t=Yr.modules[gie.type.dflt]),!!t.categories[r]};Yr.getComponentMethod=function(e,r){var t=Yr.componentsRegistry[e];return t&&t[r]||YA};Yr.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return Yr.apiMethodRegistry[e].apply(null,r)};function _ie(e){var r=e.name,t=e.categories,a=e.meta;if(Yr.modules[r]){t5.log("Type "+r+" already registered");return}Yr.subplotsRegistry[e.basePlotModule.name]||wie(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,Yr.allCategories[t[i]]=!0;Yr.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(Yr.modules[r].meta=a),Yr.allTypes.push(r);for(var l in Yr.componentsRegistry)XA(l,r);e.layoutAttributes&&xie(Yr.traceLayoutAttributes,e.layoutAttributes);var o=e.basePlotModule,s=o.name;s==="map"&&BA(),(s==="geo"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function wie(e){var r=e.name;if(Yr.subplotsRegistry[r]){t5.log("Plot type "+r+" already registered.");return}VA(e),Yr.subplotsRegistry[r]=e;for(var t in Yr.componentsRegistry)WA(t,e.name)}function Tie(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;Yr.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&GA(Yr.layoutArrayContainers,r),VA(e));for(var t in Yr.modules)XA(r,t);for(var a in Yr.subplotsRegistry)WA(r,a);e.schema&&e.schema.layout&&a5(bie,e.schema.layout)}function Mie(e){var r=e.name,t=r.split("-")[0],a=e.dictionary,n=e.format,i=a&&Object.keys(a).length,l=n&&Object.keys(n).length,o=Yr.localeRegistry,s=o[r];if(s||(o[r]=s={}),t!==r){var u=o[t];u||(o[t]=u={}),i&&u.dictionary===s.dictionary&&(u.dictionary=a),l&&u.format===s.format&&(u.format=n)}i&&(s.dictionary=a),l&&(s.format=n)}function VA(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)GA(Yr.layoutArrayRegexes,r[t])}}function XA(e,r){var t=Yr.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&a5(Yr.modules[r]._module.attributes,a)}}function WA(e,r){var t=Yr.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=Yr.subplotsRegistry[r],n=a.layoutAttributes,i=a.attr==="subplot"?a.name:a.attr;Array.isArray(i)&&(i=i[0]);var l=t.subplots[i];n&&l&&a5(n,l)}}function ZA(e){return typeof e=="object"&&(e=e.type),e}});var ak=B($t=>{"use strict";var Aie=tf().timeFormat,rk=Br(),n5=vo(),bo=(lf(),Ga(nf)).mod,Af=Dt(),ii=Af.BADNUM,Tn=Af.ONEDAY,G0=Af.ONEHOUR,go=Af.ONEMIN,Mf=Af.ONESEC,U0=Af.EPOCHJD,zl=Mr(),JA=tf().utcFormat,kie=/^\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,Cie=/^\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,$A=new Date().getFullYear()-70;function Nl(e){return e&&zl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}$t.dateTick0=function(e,r){var t=Lie(e,!!r);if(r<2)return t;var a=$t.dateTime2ms(t,e);return a+=Tn*(r-1),$t.ms2DateTime(a,0,e)};function Lie(e,r){return Nl(e)?r?zl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:zl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}$t.dfltRange=function(e){return Nl(e)?zl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};$t.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var d1,h1;$t.dateTime2ms=function(e,r){if($t.isJSDate(e)){var t=e.getTimezoneOffset()*go,a=(e.getUTCMinutes()-e.getMinutes())*go+(e.getUTCSeconds()-e.getSeconds())*Mf+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*go;t=t-n/2+bo(a-t+n/2,n)}return e=Number(e)-t,e>=d1&&e<=h1?e:ii}if(typeof e!="string"&&typeof e!="number")return ii;e=String(e);var i=Nl(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.slice(1),r="");var o=i&&r.slice(0,7)==="chinese",s=e.match(o?Cie:kie);if(!s)return ii;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),h=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return ii;u=Number(u);var m;try{var y=zl.getComponentMethod("calendars","getCal")(r);if(o){var x=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,x),c)}else m=y.newDate(u,Number(f),c)}catch(w){return ii}return m?(m.toJD()-U0)*Tn+v*G0+h*go+p*Mf:ii}u.length===2?u=(Number(u)+2e3-$A)%100+$A:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,v,h));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?ii:_.getTime()+p*Mf};d1=$t.MIN_MS=$t.dateTime2ms("-9999");h1=$t.MAX_MS=$t.dateTime2ms("9999-12-31 23:59:59.9999");$t.isDateTime=function(e,r){return $t.dateTime2ms(e,r)!==ii};function Tf(e,r){return String(e+Math.pow(10,r)).slice(1)}var v1=90*Tn,KA=3*G0,QA=5*go;$t.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=d1&&e<=h1))return ii;r||(r=0);var a=Math.floor(bo(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(Nl(t)){var c=Math.floor(n/Tn)+U0,v=Math.floor(bo(e,Tn));try{i=zl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(h){i=JA("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;l=r<v1?Math.floor(v/G0):0,o=r<v1?Math.floor(v%G0/go):0,s=r<KA?Math.floor(v%go/Mf):0,u=r<QA?v%Mf*10+a:0}else f=new Date(n),i=JA("%Y-%m-%d")(f),l=r<v1?f.getUTCHours():0,o=r<v1?f.getUTCMinutes():0,s=r<KA?f.getUTCSeconds():0,u=r<QA?f.getUTCMilliseconds()*10+a:0;return tk(i,l,o,s,u)};$t.ms2DateTimeLocal=function(e){if(!(e>=d1+Tn&&e<=h1-Tn))return ii;var r=Math.floor(bo(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Aie("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return tk(a,n,i,l,o)};function tk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Tf(r,2)+":"+Tf(t,2),(a||n)&&(e+=":"+Tf(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Tf(n,i)}return e}$t.cleanDate=function(e,r,t){if(e===ii)return r;if($t.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Nl(t))return n5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=$t.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!$t.isDateTime(e,t))return n5.error("unrecognized date",e),r;return e};var Sie=/%\d?f/g,qie=/%h/g,Die={1:"1",2:"1",3:"2",4:"2"};function jA(e,r,t,a){e=e.replace(Sie,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(qie,function(){return Die[t("%q")(n)]}),Nl(a))try{e=zl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Eie=[59,59.9,59.99,59.999,59.9999];function Pie(e,r){var t=bo(e+.05,Tn),a=Tf(Math.floor(t/G0),2)+":"+Tf(bo(Math.floor(t/go),60),2);if(r!=="M"){rk(r)||(r=0);var n=Math.min(bo(e/Mf,60),Eie[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}$t.formatDate=function(e,r,t,a,n,i){if(n=Nl(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 Pie(e,t)+`
`+jA(i.dayMonthYear,e,a,n);return jA(r,e,a,n)};var ek=3*Tn;$t.incrementMonth=function(e,r,t){t=Nl(t)&&t;var a=bo(e,Tn);if(e=Math.round(e-a),t)try{var n=Math.round(e/Tn)+U0,i=zl.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-U0)*Tn+a}catch(s){n5.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+ek);return o.setUTCMonth(o.getUTCMonth()+r)+a-ek};$t.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=Nl(r)&&zl.getComponentMethod("calendars","getCal")(r),u=0;u<e.length;u++){if(o=e[u],!rk(o)){i++;continue}if(!(o%Tn))if(s)try{l=s.fromJD(o/Tn+U0),l.day()===1?l.month()===1?t++:a++:n++}catch(c){}else l=new Date(o),l.getUTCDate()===1?l.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 i5=B((_8e,nk)=>{"use strict";nk.exports=function(r){return r}});var o5=B(Fl=>{"use strict";var Rie=Br(),zie=vo(),Nie=i5(),Fie=Dt().BADNUM,l5=1e-9;Fl.findBin=function(e,r,t){if(Rie(r.start))return t?Math.ceil((e-r.start)/r.size-l5)-1:Math.floor((e-r.start)/r.size+l5);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?Iie:Hie:s=t?Bie:Oie,e+=l*l5*(t?-1:1)*(l>=0?1:-1);a<n&&i++<100;)o=Math.floor((a+n)/2),s(r[o],e)?a=o+1:n=o;return i>90&&zie.log("Long binary search..."),a-1};function Iie(e,r){return e<r}function Hie(e,r){return e<=r}function Oie(e,r){return e>r}function Bie(e,r){return e>=r}Fl.sorterAsc=function(e,r){return e-r};Fl.sorterDes=function(e,r){return r-e};Fl.distinctVals=function(e){var r=e.slice();r.sort(Fl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Fie;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};Fl.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a<n&&l++<100;)i=u((a+n)/2),r[i]<=e?a=i+o:n=i-s;return r[a]};Fl.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()};Fl.findIndexOfMin=function(e,r){r=r||Nie;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 s5={};rf(s5,{default:()=>Gie});function Yie(e){return Object.keys(e).sort()}var Gie,u5=rt(()=>{"use strict";Gie=Yie});var ik=B(Kt=>{"use strict";var V0=Br(),Uie=bn().isArrayOrTypedArray;Kt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),V0(r)||(r=!1),Uie(t[0])){for(i=new Array(a),n=0;n<a;n++)i[n]=Kt.aggNums(e,r,t[n]);t=i}for(n=0;n<a;n++)V0(r)?V0(t[n])&&(r=e(+r,+t[n])):r=t[n];return r};Kt.len=function(e){return Kt.aggNums(function(r){return r+1},0,e)};Kt.mean=function(e,r){return r||(r=Kt.len(e)),Kt.aggNums(function(t,a){return t+a},0,e)/r};Kt.geometricMean=function(e,r){return r||(r=Kt.len(e)),Math.pow(Kt.aggNums(function(t,a){return t*a},1,e),1/r)};Kt.midRange=function(e){if(!(e===void 0||e.length===0))return(Kt.aggNums(Math.max,null,e)+Kt.aggNums(Math.min,null,e))/2};Kt.variance=function(e,r,t){return r||(r=Kt.len(e)),V0(t)||(t=Kt.mean(e,r)),Kt.aggNums(function(a,n){return a+Math.pow(n-t,2)},0,e)/r};Kt.stdev=function(e,r,t){return Math.sqrt(Kt.variance(e,r,t))};Kt.median=function(e){var r=e.slice().sort();return Kt.interp(r,.5)};Kt.interp=function(e,r){if(!V0(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 fk=B((M8e,uk)=>{"use strict";var lk=(lf(),Ga(nf)),f5=lk.mod,Vie=lk.modHalf,X0=Math.PI,xo=2*X0;function Xie(e){return e/180*X0}function Wie(e){return e/X0*180}function c5(e){return Math.abs(e[1]-e[0])>xo-1e-14}function ok(e,r){return Vie(r-e,xo)}function Zie(e,r){return Math.abs(ok(e,r))}function sk(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=f5(t,xo),a=f5(a,xo),t>a&&(a+=xo);var n=f5(e,xo),i=n+xo;return n>=t&&n<=a||i>=t&&i<=a}function Jie(e,r,t,a){if(!sk(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 v5(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=c5([t,a]),s,u,f,c,v;o?(s=0,u=X0,f=xo):t<a?(s=t,f=a):(s=a,f=t),e<r?(c=e,v=r):(c=r,v=e);function h(x,_){return[x*Math.cos(_)+n,i-x*Math.sin(_)]}var p=Math.abs(f-s)<=X0?0:1;function m(x,_,w){return"A"+[x,x]+" "+[0,p,w]+" "+h(x,_)}var y;return o?c===null?y="M"+h(v,s)+m(v,u,0)+m(v,f,0)+"Z":y="M"+h(c,s)+m(c,u,0)+m(c,f,0)+"ZM"+h(v,s)+m(v,u,1)+m(v,f,1)+"Z":c===null?(y="M"+h(v,s)+m(v,f,0),l&&(y+="L0,0Z")):y="M"+h(c,s)+"L"+h(v,s)+m(v,f,0)+"L"+h(c,f)+m(c,s,1)+"Z",y}function $ie(e,r,t,a,n){return v5(null,e,r,t,a,n,0)}function Kie(e,r,t,a,n){return v5(null,e,r,t,a,n,1)}function Qie(e,r,t,a,n,i){return v5(e,r,t,a,n,i,1)}uk.exports={deg2rad:Xie,rad2deg:Wie,angleDelta:ok,angleDist:Zie,isFullCircle:c5,isAngleInsideSector:sk,isPtInsideSector:Jie,pathArc:$ie,pathSector:Kie,pathAnnulus:Qie}});var ck=B(Es=>{"use strict";Es.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Es.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Es.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Es.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Es.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Es.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var hk=B(Ps=>{"use strict";var d5=(lf(),Ga(nf)).mod;Ps.segmentsIntersect=dk;function dk(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,c=a-r,v=i-r,h=o-i,p=s*h-f*c;if(p===0)return null;var m=(u*h-f*v)/p,y=(u*c-s*v)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}Ps.segmentDistance=function(r,t,a,n,i,l,o,s){if(dk(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,c=o-i,v=s-l,h=u*u+f*f,p=c*c+v*v,m=Math.min(p1(u,f,h,i-r,l-t),p1(u,f,h,o-r,s-t),p1(c,v,p,r-i,t-l),p1(c,v,p,a-i,n-l));return Math.sqrt(m)};function p1(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var m1,h5,vk;Ps.getTextLocation=function(r,t,a,n){if((r!==h5||n!==vk)&&(m1={},h5=r,vk=n),m1[a])return m1[a];var i=r.getPointAtLength(d5(a-n/2,t)),l=r.getPointAtLength(d5(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(d5(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,c={x:u,y:f,theta:o};return m1[a]=c,c};Ps.clearLocationCache=function(){h5=null};Ps.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function h(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(v=y);var x=y.x<n?n-y.x:y.x>i?y.x-i:0,_=y.y<l?l-y.y:y.y>o?y.y-o:0;return Math.sqrt(x*x+_*_)}for(var p=h(s);p;){if(s+=p+a,s>f)return;p=h(s)}for(p=h(f);p;){if(f-=p+a,s>f)return;p=h(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};Ps.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,h,p;u<o;){if(v=(f+c)/2,h=r.getPointAtLength(v),p=h[a]-t,Math.abs(p)<l)return h;s*p>0?c=v:f=v,u++}return h}});var y1=B(W0=>{"use strict";var Il={};W0.throttle=function(r,t,a){var n=Il[r],i=Date.now();if(!n){for(var l in Il)Il[l].ts<i-6e4&&delete Il[l];n=Il[r]={ts:0,timer:null}}pk(n);function o(){a(),n.ts=Date.now(),n.onDone&&(n.onDone(),n.onDone=null)}if(i>n.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};W0.done=function(e){var r=Il[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};W0.clear=function(e){if(e)pk(Il[e]),delete Il[e];else for(var r in Il)W0.clear(r)};function pk(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var yk=B((L8e,mk)=>{"use strict";mk.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var gk=B((S8e,g1)=>{"use strict";g1.exports=p5;g1.exports.isMobile=p5;g1.exports.default=p5;var jie=/(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,ele=/CrOS/,rle=/android|ipad|playbook|silk/i;function p5(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=jie.test(r)&&!ele.test(r)||!!e.tablet&&rle.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var xk=B((q8e,bk)=>{"use strict";var tle=Br(),ale=gk();bk.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=nle(),typeof t!="string")return!0;var a=ale({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i<n.length;i++){var l=n[i];if(l.indexOf("Safari")!==-1)for(var o=i-1;o>-1;o--){var s=n[o];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(tle(u)&&(u=+u),u>=13)return!0}}}return a};function nle(){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 wk=B((D8e,_k)=>{"use strict";var ile=Dr();_k.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[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(l){l[0][i]=ile.select(this)}),n}});var Mk=B((E8e,Tk)=>{"use strict";var lle=Mr();Tk.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=lle.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var kk=B((P8e,Ak)=>{"use strict";Ak.exports=function(r){for(var t={},a=[],n=0,i=0;i<r.length;i++){var l=r[i];t[l]!==1&&(t[l]=1,a[n++]=l)}return a}});var Lk=B((R8e,Ck)=>{"use strict";Ck.exports=function(r){for(var t=ule(r)?sle:ole,a=[],n=0;n<r.length;n++){var i=r[n];t(i)&&a.push(i)}return a};function ole(e){return e.visible===!0}function sle(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function ule(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var qk=B((z8e,Sk)=>{"use strict";Sk.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 l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var Pk={};rf(Pk,{default:()=>vle});function cle(e){return typeof e=="string"&&(e=e.replace(fle,"")),(0,Dk.default)(e)?Number(e):Ek.BADNUM}var Dk,Ek,fle,vle,Rk=rt(()=>{"use strict";Dk=u2(Br()),Ek=u2(Dt()),fle=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;vle=cle});var Fk=B((N8e,Nk)=>{"use strict";var dle=/<[^>]*>/g,hle=/[\p{S}\p{P}]/gu,ple=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,mle=/�/g,yle=/\s+/g,b1="-",zk=b1.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),gle=new RegExp(zk+"{3,}","g"),ble=new RegExp(zk+"$","g"),xle=60;function _le(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}Nk.exports=function(r,t=xle){var a=_le(r!=null?r:"").replace(mle,"").replace(dle," ").replace(hle,n=>n===b1?n:"").toLowerCase().trim().replace(yle,b1).replace(ple,"").replace(gle,b1);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(ble,"")}});var Le=B((F8e,Jk)=>{"use strict";var Z0=Dr(),wle=tf().utcFormat,Tle=c2().format,Gk=Br(),Uk=Dt(),Vk=Uk.FP_SAFE,Mle=-Vk,Ik=Uk.BADNUM,ue=Jk.exports={};ue.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 Hk={};ue.warnBadFormat=function(e){var r=String(e);Hk[r]||(Hk[r]=1,ue.warn('encountered bad format: "'+r+'"'))};ue.noFormat=function(e){return String(e)};ue.numberFormat=function(e){var r;try{r=Tle(ue.adjustFormat(e))}catch(t){return ue.warnBadFormat(e),ue.noFormat}return r};ue.nestedProperty=Ch();ue.keyedContainer=q9();ue.relativeAttr=E9();ue.isPlainObject=xs();ue.toLogRange=Sh();ue.relinkPrivateKeys=N9();var _o=bn();ue.isArrayBuffer=_o.isArrayBuffer;ue.isTypedArray=_o.isTypedArray;ue.isArrayOrTypedArray=_o.isArrayOrTypedArray;ue.isArray1D=_o.isArray1D;ue.ensureArray=_o.ensureArray;ue.concat=_o.concat;ue.maxRowLength=_o.maxRowLength;ue.minRowLength=_o.minRowLength;var Xk=(lf(),Ga(nf));ue.mod=Xk.mod;ue.modHalf=Xk.modHalf;var wo=aM();ue.valObjectMeta=wo.valObjectMeta;ue.coerce=wo.coerce;ue.coerce2=wo.coerce2;ue.coerceFont=wo.coerceFont;ue.coercePattern=wo.coercePattern;ue.coerceHoverinfo=wo.coerceHoverinfo;ue.coerceSelectionMarkerOpacity=wo.coerceSelectionMarkerOpacity;ue.validate=wo.validate;var In=ak();ue.dateTime2ms=In.dateTime2ms;ue.isDateTime=In.isDateTime;ue.ms2DateTime=In.ms2DateTime;ue.ms2DateTimeLocal=In.ms2DateTimeLocal;ue.cleanDate=In.cleanDate;ue.isJSDate=In.isJSDate;ue.formatDate=In.formatDate;ue.incrementMonth=In.incrementMonth;ue.dateTick0=In.dateTick0;ue.dfltRange=In.dfltRange;ue.findExactDates=In.findExactDates;ue.MIN_MS=In.MIN_MS;ue.MAX_MS=In.MAX_MS;var Rs=o5();ue.findBin=Rs.findBin;ue.sorterAsc=Rs.sorterAsc;ue.sorterDes=Rs.sorterDes;ue.distinctVals=Rs.distinctVals;ue.roundUp=Rs.roundUp;ue.sort=Rs.sort;ue.findIndexOfMin=Rs.findIndexOfMin;ue.sortObjectKeys=(u5(),Ga(s5)).default;var Hl=ik();ue.aggNums=Hl.aggNums;ue.len=Hl.len;ue.mean=Hl.mean;ue.geometricMean=Hl.geometricMean;ue.median=Hl.median;ue.midRange=Hl.midRange;ue.variance=Hl.variance;ue.stdev=Hl.stdev;ue.interp=Hl.interp;var Ni=i1();ue.init2dArray=Ni.init2dArray;ue.transposeRagged=Ni.transposeRagged;ue.dot=Ni.dot;ue.translationMatrix=Ni.translationMatrix;ue.rotationMatrix=Ni.rotationMatrix;ue.rotationXYMatrix=Ni.rotationXYMatrix;ue.apply3DTransform=Ni.apply3DTransform;ue.apply2DTransform=Ni.apply2DTransform;ue.apply2DTransform2=Ni.apply2DTransform2;ue.convertCssMatrix=Ni.convertCssMatrix;ue.inverseTransformMatrix=Ni.inverseTransformMatrix;var ul=fk();ue.deg2rad=ul.deg2rad;ue.rad2deg=ul.rad2deg;ue.angleDelta=ul.angleDelta;ue.angleDist=ul.angleDist;ue.isFullCircle=ul.isFullCircle;ue.isAngleInsideSector=ul.isAngleInsideSector;ue.isPtInsideSector=ul.isPtInsideSector;ue.pathArc=ul.pathArc;ue.pathSector=ul.pathSector;ue.pathAnnulus=ul.pathAnnulus;var Cf=ck();ue.isLeftAnchor=Cf.isLeftAnchor;ue.isCenterAnchor=Cf.isCenterAnchor;ue.isRightAnchor=Cf.isRightAnchor;ue.isTopAnchor=Cf.isTopAnchor;ue.isMiddleAnchor=Cf.isMiddleAnchor;ue.isBottomAnchor=Cf.isBottomAnchor;var Lf=hk();ue.segmentsIntersect=Lf.segmentsIntersect;ue.segmentDistance=Lf.segmentDistance;ue.getTextLocation=Lf.getTextLocation;ue.clearLocationCache=Lf.clearLocationCache;ue.getVisibleSegment=Lf.getVisibleSegment;ue.findPointOnPath=Lf.findPointOnPath;var w1=Tt();ue.extendFlat=w1.extendFlat;ue.extendDeep=w1.extendDeep;ue.extendDeepAll=w1.extendDeepAll;ue.extendDeepNoArrays=w1.extendDeepNoArrays;var m5=vo();ue.log=m5.log;ue.warn=m5.warn;ue.error=m5.error;var Ale=(bf(),Ga(gf));ue.counterRegex=Ale.counter;var y5=y1();ue.throttle=y5.throttle;ue.throttleDone=y5.done;ue.clearThrottle=y5.clear;var Fi=B0();ue.getGraphDiv=Fi.getGraphDiv;ue.isPlotDiv=Fi.isPlotDiv;ue.removeElement=Fi.removeElement;ue.addStyleRule=Fi.addStyleRule;ue.addRelatedStyleRule=Fi.addRelatedStyleRule;ue.deleteRelatedStyleRule=Fi.deleteRelatedStyleRule;ue.setStyleOnHover=Fi.setStyleOnHover;ue.getFullTransformMatrix=Fi.getFullTransformMatrix;ue.getElementTransformMatrix=Fi.getElementTransformMatrix;ue.getElementAndAncestors=Fi.getElementAndAncestors;ue.equalDomRects=Fi.equalDomRects;ue.clearResponsive=yk();ue.preserveDrawingBuffer=xk();ue.makeTraceGroups=wk();ue._=Mk();ue.notifier=B3();ue.filterUnique=kk();ue.filterVisible=Lk();ue.pushUnique=$3();ue.increment=qk();ue.cleanNumber=(Rk(),Ga(Pk)).default;ue.slugify=Fk();ue.ensureNumber=function(r){return Gk(r)?(r=Number(r),r>Vk||r<Mle?Ik:r):Ik};ue.isIndex=function(e,r){return r!==void 0&&e>=r?!1:Gk(e)&&e>=0&&e%1===0};ue.noop=n1();ue.identity=i5();ue.repeat=function(e,r){for(var t=new Array(r),a=0;a<r;a++)t[a]=e;return t};ue.swapAttrs=function(e,r,t,a){t||(t="x"),a||(a="y");for(var n=0;n<r.length;n++){var i=r[n],l=ue.nestedProperty(e,i.replace("?",t)),o=ue.nestedProperty(e,i.replace("?",a)),s=l.get();l.set(o.get()),o.set(s)}};ue.raiseToTop=function(r){r.parentNode.appendChild(r)};ue.cancelTransition=function(e){return e.transition().duration(0)};ue.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};ue.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};ue.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o<i;o++)l[o]=r(e[o],t,a,n);return l};ue.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),l="",o,s,u;for(o=2;i===1/0;o*=2)i=Math.log(Math.pow(2,t/o))/Math.log(a)*o;var f=i-Math.floor(i);for(o=0;o<Math.floor(i);o++)u=Math.floor(Math.random()*a).toString(a),l=u+l;f&&(s=Math.pow(a,f),u=Math.floor(Math.random()*s).toString(a),l=u+l);var c=parseInt(l,a);return r&&r[l]||c!==1/0&&c>=Math.pow(2,t)?n>10?(ue.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};ue.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};ue.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),l=new Array(t),o,s,u,f;for(o=0;o<n;o++)i[o]=(1-Math.cos(Math.PI*(o+1)/r))/(2*r);for(o=0;o<t;o++){for(f=0,s=0;s<n;s++)u=o+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];l[o]=f}return l};ue.syncOrAsync=function(e,r,t){var a,n;function i(){return ue.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)};ue.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};ue.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i<t.length;i++)l=e[t[i]],l!=null?a=!0:n=!1;if(a&&!n)for(i=0;i<t.length;i++)e[t[i]]=r[t[i]]}};ue.mergeArray=function(e,r,t,a){var n=typeof a=="function";if(ue.isArrayOrTypedArray(e))for(var i=Math.min(e.length,r.length),l=0;l<i;l++){var o=e[l];r[l][t]=n?a(o):o}};ue.mergeArrayCastPositive=function(e,r,t){return ue.mergeArray(e,r,t,function(a){var n=+a;return isFinite(n)&&n>0?n:0})};ue.fillArray=function(e,r,t,a){if(a=a||ue.identity,ue.isArrayOrTypedArray(e))for(var n=0;n<r.length;n++)r[n][t]=a(e[n])};ue.castOption=function(e,r,t,a){a=a||ue.identity;var n=ue.nestedProperty(e,t).get();return ue.isArrayOrTypedArray(n)?Array.isArray(r)&&ue.isArrayOrTypedArray(n[r[0]])?a(n[r[0]][r[1]]):a(n[r]):n};ue.extractOption=function(e,r,t,a){if(t in e)return e[t];var n=ue.nestedProperty(r,a).get();if(!Array.isArray(n))return n};ue.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 l=a[i];if(ue.isIndex(l)||ue.isArrayOrTypedArray(l)&&ue.isIndex(l[0])&&ue.isIndex(l[1])){var o=l,s=t?t[o]:o;n(s)&&(e[s].selected=1)}}};ue.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var a=ue.nestedProperty(e,t).get();return ue.isArrayOrTypedArray(a)?a:!1}else if(ue.isArrayOrTypedArray(t))return t;return!1};function Wk(e,r,t){var a={};typeof r!="object"&&(r={});var n=t==="pieLike"?-1:3,i=Object.keys(e),l,o,s;for(l=0;l<i.length;l++)o=i[l],s=e[o],!(o.charAt(0)==="_"||typeof s=="function")&&(o==="module"?a[o]=s:Array.isArray(s)?o==="colorscale"||n===-1?a[o]=s.slice():a[o]=s.slice(0,n):ue.isTypedArray(s)?n===-1?a[o]=s.subarray():a[o]=s.subarray(0,n):s&&typeof s=="object"?a[o]=Wk(e[o],r[o],t):a[o]=s);for(i=Object.keys(r),l=0;l<i.length;l++)o=i[l],s=r[o],(typeof s!="object"||!(o in a)||typeof a[o]!="object")&&(a[o]=s);return a}ue.minExtend=Wk;ue.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};ue.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var kle=/Version\/[\d\.]+.*Safari/;ue.isSafari=function(){return kle.test(window.navigator.userAgent)};var Cle=/iPad|iPhone|iPod/;ue.isIOS=function(){return Cle.test(window.navigator.userAgent)};var Lle=/Macintosh.+AppleWebKit.+Gecko\)$/;ue.isMacWKWebView=()=>Lle.test(window.navigator.userAgent);var Sle=/Firefox\/(\d+)\.\d+/;ue.getFirefoxVersion=function(){var e=Sle.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};ue.isD3Selection=function(e){return e instanceof Z0.selection};ue.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};ue.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};ue.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i<t.length;i++){var l=t[i],o=null,s=t[i].match(/(.*)\[([0-9]+)\]/);s?(l=s[1],o=s[2],a=a[l]=[],i===t.length-1?a[o]=r:a[o]={},a=a[o]):(i===t.length-1?a[l]=r:a[l]={},a=a[l])}return n};var qle=/^([^\[\.]+)\.(.+)?/,Dle=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function x1(e){return e.slice(0,2)==="__"}ue.expandObjectPaths=function(e){var r,t,a,n,i,l,o;if(typeof e=="object"&&!Array.isArray(e)){for(t in e)if(e.hasOwnProperty(t))if(r=t.match(qle)){if(n=e[t],a=r[1],x1(a))continue;delete e[t],e[a]=ue.extendDeepNoArrays(e[a]||{},ue.objectFromPath(t,ue.expandObjectPaths(n))[a])}else if(r=t.match(Dle)){if(n=e[t],a=r[1],x1(a))continue;if(i=parseInt(r[2]),delete e[t],e[a]=e[a]||[],r[3]===".")o=r[4],l=e[a][i]=e[a][i]||{},ue.extendDeepNoArrays(l,ue.objectFromPath(o,ue.expandObjectPaths(n)));else{if(x1(a))continue;e[a][i]=ue.expandObjectPaths(n)}}else{if(x1(t))continue;e[t]=ue.expandObjectPaths(e[t])}}return e};ue.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),l=e.split("."),o=l[0],s=l.length>1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};ue.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Zk=/^\w*$/;ue.templateString=function(e,r){var t={};return e.replace(ue.TEMPLATE_STRING_REGEX,function(a,n){var i;return Zk.test(n)?i=r[n]:(t[n]=t[n]||ue.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Ele={max:10,count:0,name:"hovertemplate"};ue.hovertemplateString=e=>g5(qt(st({},e),{opts:Ele}));var Ple={max:10,count:0,name:"texttemplate"};ue.texttemplateString=e=>g5(qt(st({},e),{opts:Ple}));var Rle=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function zle(e){var r=e.match(Rle);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Nle={max:10,count:0,name:"texttemplate",parseMultDiv:!0};ue.texttemplateStringForShapes=e=>g5(qt(st({},e),{opts:Nle}));var Ok=/^[:|\|]/;function g5({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(ue.TEMPLATE_STRING_REGEX,(l,o,s)=>{let u=["xother","yother"].includes(o),f=["_xother","_yother"].includes(o),c=["_xother_","_yother_"].includes(o),v=["xother_","yother_"].includes(o),h=u||f||v||c;(f||c)&&(o=o.substring(1)),(v||c)&&(o=o.substring(0,o.length-1));let p=null,m=null;if(n.parseMultDiv){var y=zle(o);o=y.key,p=y.op,m=y.number}let x;if(h){if(a[o]===void 0)return"";x=a[o]}else for(let M of e)if(M){if(M.hasOwnProperty(o)){x=M[o];break}if(Zk.test(o)||(x=ue.nestedProperty(M,o).get(!0)),x!==void 0)break}if(x===void 0){let{count:M,max:k,name:A}=n,S=t===!1?l:t;return M<k&&ue.warn([`Variable '${o}' in ${A} could not be found!`,"Please verify that the template is correct.",`Using value: '${S}'.`].join(" ")),M===k&&ue.warn(`Too many '${A}' warnings - additional warnings will be suppressed.`),n.count++,S}if(p==="*"&&(x*=m),p==="/"&&(x/=m),s){var _;if(s[0]===":"&&(_=r?r.numberFormat:ue.numberFormat,x!==""&&(x=_(s.replace(Ok,""))(x))),s[0]==="|"){_=r?r.timeFormat:wle;var w=ue.dateTime2ms(x);x=ue.formatDate(w,s.replace(Ok,""),!1,_)}}else{var b=o+"Label";a.hasOwnProperty(b)&&(x=a[b])}return h&&(x="("+x+")",(f||c)&&(x=" "+x),(v||c)&&(x=x+" ")),x})}var _1=48,Bk=57;ue.subplotSort=function(e,r){for(var t=Math.min(e.length,r.length)+1,a=0,n=0,i=0;i<t;i++){var l=e.charCodeAt(i)||0,o=r.charCodeAt(i)||0,s=l>=_1&&l<=Bk,u=o>=_1&&o<=Bk;if(s&&(a=10*a+l-_1),u&&(n=10*n+o-_1),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var kf=2e9;ue.seedPseudoRandom=function(){kf=2e9};ue.pseudoRandom=function(){var e=kf;return kf=(69069*kf+1)%4294967296,Math.abs(kf-e)<429496729?ue.pseudoRandom():kf/4294967296};ue.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=ue.extractOption(e,r,"htx","hovertext");if(ue.isValidTextValue(n))return a(n);var i=ue.extractOption(e,r,"tx","text");if(ue.isValidTextValue(i))return a(i)};ue.isValidTextValue=function(e){return e||e===0};ue.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};ue.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};ue.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};ue.strRotate=function(e){return e?"rotate("+e+")":""};ue.strScale=function(e){return e!==1?"scale("+e+")":""};ue.getTextTransform=function(e){var r=e.noCenter,t=e.textX,a=e.textY,n=e.targetX,i=e.targetY,l=e.anchorX||0,o=e.anchorY||0,s=e.rotate,u=e.scale;return u?u>1&&(u=1):u=0,ue.strTranslate(n-u*(t+l),i-u*(a+o))+ue.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};ue.setTransormAndDisplay=function(e,r){e.attr("transform",ue.getTextTransform(r)),e.style("display",r.scale?null:"none")};ue.ensureUniformFontSize=function(e,r){var t=ue.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};ue.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)};ue.bigFont=function(e){return Math.round(1.2*e)};var Yk=ue.getFirefoxVersion(),Fle=Yk!==null&&Yk<86;ue.getPositionFromD3Event=function(){return Fle?[Z0.event.layerX,Z0.event.layerY]:[Z0.event.offsetX,Z0.event.offsetY]}});var Qk=B(()=>{"use strict";var Ile=Le(),$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(b5 in $k)Kk=b5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Ile.addStyleRule(Kk,$k[b5]);var Kk,b5});var x5=B((B8e,jk)=>{jk.exports=!0});var w5=B((Y8e,eC)=>{"use strict";var Hle=x5(),_5;typeof window.matchMedia=="function"?_5=!window.matchMedia("(hover: none)").matches:_5=Hle;eC.exports=_5});var A1=B((G8e,T5)=>{"use strict";var Sf=typeof Reflect=="object"?Reflect:null,rC=Sf&&typeof Sf.apply=="function"?Sf.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},T1;Sf&&typeof Sf.ownKeys=="function"?T1=Sf.ownKeys:Object.getOwnPropertySymbols?T1=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:T1=function(r){return Object.getOwnPropertyNames(r)};function Ole(e){console&&console.warn&&console.warn(e)}var aC=Number.isNaN||function(r){return r!==r};function At(){At.init.call(this)}T5.exports=At;T5.exports.once=Ule;At.EventEmitter=At;At.prototype._events=void 0;At.prototype._eventsCount=0;At.prototype._maxListeners=void 0;var tC=10;function M1(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(At,"defaultMaxListeners",{enumerable:!0,get:function(){return tC},set:function(e){if(typeof e!="number"||e<0||aC(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");tC=e}});At.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};At.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||aC(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 nC(e){return e._maxListeners===void 0?At.defaultMaxListeners:e._maxListeners}At.prototype.getMaxListeners=function(){return nC(this)};At.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 l;if(t.length>0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")rC(s,this,t);else for(var u=s.length,f=uC(s,u),a=0;a<u;++a)rC(f[a],this,t);return!0};function iC(e,r,t,a){var n,i,l;if(M1(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),l=i[r]),l===void 0)l=i[r]=t,++e._eventsCount;else if(typeof l=="function"?l=i[r]=a?[t,l]:[l,t]:a?l.unshift(t):l.push(t),n=nC(e),n>0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,Ole(o)}return e}At.prototype.addListener=function(r,t){return iC(this,r,t,!1)};At.prototype.on=At.prototype.addListener;At.prototype.prependListener=function(r,t){return iC(this,r,t,!0)};function Ble(){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 lC(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=Ble.bind(a);return n.listener=t,a.wrapFn=n,n}At.prototype.once=function(r,t){return M1(t),this.on(r,lC(this,r,t)),this};At.prototype.prependOnceListener=function(r,t){return M1(t),this.prependListener(r,lC(this,r,t)),this};At.prototype.removeListener=function(r,t){var a,n,i,l,o;if(M1(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,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():Yle(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};At.prototype.off=At.prototype.removeListener;At.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),l;for(n=0;n<i.length;++n)l=i[n],l!=="removeListener"&&this.removeAllListeners(l);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 oC(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?Gle(n):uC(n,n.length)}At.prototype.listeners=function(r){return oC(this,r,!0)};At.prototype.rawListeners=function(r){return oC(this,r,!1)};At.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):sC.call(e,r)};At.prototype.listenerCount=sC;function sC(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}At.prototype.eventNames=function(){return this._eventsCount>0?T1(this._events):[]};function uC(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e[a];return t}function Yle(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function Gle(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function Ule(e,r){return new Promise(function(t,a){function n(l){e.removeListener(r,i),a(l)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",n),t([].slice.call(arguments))}fC(e,r,i,{once:!0}),r!=="error"&&Vle(e,n,{once:!0})})}function Vle(e,r,t){typeof e.on=="function"&&fC(e,"error",r,t)}function fC(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 J0=B((U8e,cC)=>{"use strict";var M5=A1().EventEmitter,Xle={init:function(e){if(e._ev instanceof M5)return e;var r=new M5,t=new M5;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 l(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 o;for(o=0;o<i.length-1;o++)l(i[o]);return a=l(i[o]),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}};cC.exports=Xle});var hC=B((V8e,dC)=>{"use strict";var vC=Le(),Wle=co().dfltConfig;function Zle(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)?vC.extendDeep([],a):vC.extendDeepAll({},a):t[n]=a;return t}var Ol={};Ol.add=function(e,r,t,a,n){var i,l;if(e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},l=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(l,e.undoQueue.queue.length-l,i),e.undoQueue.index+=1):i=e.undoQueue.queue[l-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>Wle.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Ol.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Ol.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Ol.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++)Ol.plotDo(r,t.undo.calls[a],t.undo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1}};Ol.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++)Ol.plotDo(r,t.redo.calls[a],t.redo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};Ol.plotDo=function(e,r,t){e.autoplay=!0,t=Zle(e,t),r.apply(null,t)};dC.exports=Ol});var A5=B((X8e,pC)=>{"use strict";pC.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Ef=B(ca=>{"use strict";var li=Mr(),$0=Le(),C1=xn(),k5=wf(),Jle=A5(),$le=Y0(),Kle=co().configAttributes,mC=Ri(),Ii=$0.extendDeepAll,qf=$0.isPlainObject,Qle=$0.isArrayOrTypedArray,L1=$0.nestedProperty,jle=$0.valObjectMeta,C5="_isSubplotObj",S1="_isLinkedToArray",eoe="_arrayAttrRegexps",gC="_deprecated",L5=[C5,S1,eoe,gC];ca.IS_SUBPLOT_OBJ=C5;ca.IS_LINKED_TO_ARRAY=S1;ca.DEPRECATED=gC;ca.UNDERSCORE_ATTRS=L5;ca.get=function(){var e={};return li.allTypes.forEach(function(r){e[r]=toe(r)}),{defs:{valObjects:jle,metaKeys:L5.concat(["description","role","editType","impliedEdits"]),editType:{traces:mC.traces,layout:mC.layout},impliedEdits:{}},traces:e,layout:aoe(),frames:noe(),animation:Df($le),config:Df(Kle)}};ca.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(L5.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!ca.isValObject(l)&&qf(l)&&i!=="impliedEdits"&&ca.crawl(l,r,n+1,o)}})};ca.isValObject=function(e){return e&&e.valType!==void 0};ca.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&o(n,0,"")}function o(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)Qle(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var h=0;h<c.length;h++)qf(c[h])&&o(c[h],u+1,v+"["+h+"].")}else qf(c)&&o(c,u+1,v+".")}return n=e,i="",ca.crawl(C1,l),e._module&&e._module.attributes&&ca.crawl(e._module.attributes,l),r};ca.getTraceValObject=function(e,r){var t=r[0],a=1,n,i,l=e._module;if(l||(l=(li.modules[e.type||C1.type.dflt]||{})._module),!l)return!1;if(n=l.attributes,i=n&&n[t],!i){var o=l.basePlotModule;o&&o.attributes&&(i=o.attributes[t])}return i||(i=C1[t]),bC(i,r,a)};ca.getLayoutValObject=function(e,r){var t=roe(e,r[0]);return bC(t,r,1)};function roe(e,r){var t,a,n,i,l=e._basePlotModules;if(l){var o;for(t=0;t<l.length;t++){if(n=l[t],n.attrRegex&&n.attrRegex.test(r)){if(n.layoutAttrOverrides)return n.layoutAttrOverrides;!o&&n.layoutAttributes&&(o=n.layoutAttributes)}var s=n.baseLayoutAttrOverrides;if(s&&r in s)return s[r]}if(o)return o}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 li.componentsRegistry){if(n=li.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 k5?k5[r]:!1}function bC(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(k1(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var a=e[r[t]];if(qf(a))e=a;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!k1(r[t]))return!1}else if(e.valType==="info_array"){t++;var n=r[t];if(!k1(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 l=r[t];if(!k1(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function k1(e){return e===Math.round(e)&&e>=0}function toe(e){var r,t;r=li.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Ii({},C1),i=Ii({},r.attributes);ca.crawl(i,function(s,u,f,c,v){L1(n,v).set(void 0),s===void 0&&L1(i,v).set(void 0)}),Ii(a,n),li.traceIs(e,"noOpacity")&&delete a.opacity,li.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),li.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Ii(a,i),t.attributes&&Ii(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Df(a)};if(r.layoutAttributes){var o={};Ii(o,r.layoutAttributes),l.layoutAttributes=Df(o)}return r.animatable||ca.crawl(l,function(s){ca.isValObject(s)&&"anim"in s&&delete s.anim}),l}function aoe(){var e={},r,t;Ii(e,k5);for(r in li.subplotsRegistry)if(t=li.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)yC(e,t,t.attr[a]);else{var n=t.attr==="subplot"?t.name:t.attr;yC(e,t,n)}for(r in li.componentsRegistry){t=li.componentsRegistry[r];var i=t.schema;if(i&&(i.subplots||i.layout)){var l=i.subplots;if(l&&l.xaxis&&!l.yaxis)for(var o in l.xaxis)delete e.yaxis[o];delete e.xaxis.shift,delete e.xaxis.autoshift}else t.name==="colorscale"?Ii(e,t.layoutAttributes):t.layoutAttributes&&soe(e,t.layoutAttributes,t.name)}return{layoutAttributes:Df(e)}}function noe(){var e={frames:Ii({},Jle)};return Df(e),e.frames}function Df(e){return ioe(e),loe(e),ooe(e),e}function ioe(e){function r(t,a,n){!ca.isValObject(t)&&qf(t)&&(t.role="object")}ca.crawl(e,r)}function loe(e){function r(t,a,n){if(t){var i=t[S1];i&&(delete t[S1],n[a]={items:{}},n[a].items[i]=t,n[a].role="object")}}ca.crawl(e,r)}function ooe(e){function r(t){for(var a in t)if(qf(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 yC(e,r,t){var a=L1(e,t),n=Ii({},r.layoutAttributes);n[C5]=!0,a.set(n)}function soe(e,r,t){var a=L1(e,t);a.set(Ii(a.get()||{},r))}});var vt=B(zs=>{"use strict";var Pf=Le(),uoe=xn(),To="templateitemname",S5={name:{valType:"string",editType:"none"}};S5[To]={valType:"string",editType:"calc"};zs.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=S5.name,r[To]=S5[To],r};zs.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=Pf.coerce(i,{},uoe,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};zs.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Pf.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};zs.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[_C(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},c=f[To]=u[To];if(!xC(c))return f._template=n,f;for(var v=0;v<i.length;v++){var h=i[v];if(h.name===c)return l[c]=1,f._template=h,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],v=c.name;if(xC(v)&&!l[v]){var h={_template:c,name:v,_input:{_templateitemname:v}};h[To]=c[To],u.push(h),l[v]=1}}return u}return{newItem:o,defaultItems:s}};function xC(e){return e&&typeof e=="string"}function _C(e){var r=e.length-1;return e.charAt(r)!=="s"&&Pf.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}zs.arrayDefaultKey=_C;zs.arrayEditor=function(e,r,t){var a=(Pf.nestedProperty(e,r).get()||[]).length,n=t._index,i=n>=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][To]=i)}s();function u(h,p){o[h]=p}function f(h,p){i?Pf.nestedProperty(o[l],h).set(p):o[l+"."+h]=p}function c(){var h=o;return s(),h}function v(h,p){h&&f(h,p);var m=c();for(var y in m)Pf.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var ba=B((J8e,wC)=>{"use strict";var K0=(bf(),Ga(gf)).counter;wC.exports={idRegex:{x:K0("x","( domain)?"),y:K0("y","( domain)?")},attrRegex:K0("[xy]axis"),xAxisMatch:K0("xaxis"),yAxisMatch:K0("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var na=B(Mn=>{"use strict";var foe=Mr(),q5=ba();Mn.id2name=function(r){if(!(typeof r!="string"||!r.match(q5.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Mn.name2id=function(r){if(r.match(q5.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Mn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(q5.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":"")}};Mn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Mn.listIds(e,r),i=new Array(n.length),l;for(l=0;l<n.length;l++){var o=n[l];i[l]=a[o.charAt(0)+"axis"+o.slice(1)]}if(!t){var s=a._subplots.gl3d||[];for(l=0;l<s.length;l++){var u=a[s[l]];r?i.push(u[r+"axis"]):i.push(u.xaxis,u.yaxis,u.zaxis)}}return i};Mn.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)};Mn.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[Mn.id2name(r)]};Mn.getFromTrace=function(e,r,t){var a=e._fullLayout,n=null;if(foe.traceIs(r,"gl3d")){var i=r.scene;i.slice(0,5)==="scene"&&(n=a[i][t+"axis"])}else n=Mn.getFromId(e,r[t+"axis"]||t);return n};Mn.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)};Mn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function TC(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}Mn.isLinked=function(e,r){return TC(r,e._axisMatchGroups)||TC(r,e._axisConstraintGroups)}});var Mo=B((K8e,MC)=>{"use strict";function coe(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function voe(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}MC.exports={clearOutlineControllers:coe,clearOutline:voe}});var q1=B((Q8e,AC)=>{"use strict";AC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var D5=B(E1=>{"use strict";var D1=Mr(),j8e=ba().SUBPLOT_PATTERN;E1.getSubplotCalcData=function(e,r,t){var a=D1.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l<e.length;l++){var o=e[l],s=o[0].trace;s[n]===t&&i.push(o)}return i};E1.getModuleCalcData=function(e,r,t){var a=[],n=[],i;if(typeof r=="string"?i=D1.getModule(r).plot:typeof r=="function"?i=r:i=r.plot,!i)return[a,e];for(var l=t,o=0;o<e.length;o++){var s=e[o],u=s[0].trace,f=u.zorder!==void 0;u.visible!==!0||u._length===0||(u._module&&u._module.plot===i&&(!f||u.zorder===l)?a.push(s):n.push(s))}return[a,n]};E1.getSubplotData=function(r,t,a){if(!D1.subplotsRegistry[t])return[];for(var n=D1.subplotsRegistry[t].attr,i=[],l,o,s,u=0;u<r.length;u++)l=r[u],l[n]===a&&i.push(l);return i}});var SC=B(Ns=>{"use strict";var doe=Mr(),Rf=Le();Ns.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=Ns.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){kC(e,l,n.cache),n.check=function(){if(i){var f=kC(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s<o.length;s++)e._internalOn(o[s],n.check);n.remove=function(){for(var u=0;u<o.length;u++)e._removeInternalListener(o[u],n.check)}}else Rf.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};Ns.hasSimpleAPICommandBindings=function(e,r,t){var a,n=r.length,i;for(a=0;a<n;a++){var l,o=r[a],s=o.method,u=o.args;if(Array.isArray(u)||(u=[]),!s)return!1;var f=Ns.computeAPICommandBindings(e,s,u);if(f.length!==1)return!1;if(!i)i=f[0],Array.isArray(i.traces)&&i.traces.sort();else{if(l=f[0],l.type!==i.type||l.prop!==i.prop)return!1;if(Array.isArray(i.traces))if(Array.isArray(l.traces)){l.traces.sort();for(var c=0;c<i.traces.length;c++)if(i.traces[c]!==l.traces[c])return!1}else return!1;else if(l.prop!==i.prop)return!1}l=f[0];var v=l.value;if(Array.isArray(v))if(v.length===1)v=v[0];else return!1;t&&(t[v]=a)}return i};function kC(e,r,t){var a,n,i,l=!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=Rf.nestedProperty(a,r.prop).get(),i=t[r.type]=t[r.type]||{},i.hasOwnProperty(r.prop)&&i[r.prop]!==n&&(l=!0),i[r.prop]=n,{changed:l,value:n}}Ns.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var a=doe.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(l){return Rf.warn("API call to Plotly."+r+" rejected.",l),Promise.reject(l)})};Ns.computeAPICommandBindings=function(e,r,t){var a;switch(Array.isArray(t)||(t=[]),r){case"restyle":a=LC(e,t);break;case"relayout":a=CC(e,t);break;case"update":a=LC(e,[t[0],t[2]]).concat(CC(e,[t[1]]));break;case"animate":a=hoe(e,t);break;default:a=[]}return a};function hoe(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 CC(e,r){var t=[],a=r[0],n={};if(typeof a=="string")n[a]=r[1];else if(Rf.isPlainObject(a))n=a;else return t;return E5(n,function(i,l,o){t.push({type:"layout",prop:i,value:o})},"",0),t}function LC(e,r){var t,a,n,i,l=[];if(a=r[0],n=r[1],t=r[2],i={},typeof a=="string")i[a]=n;else if(Rf.isPlainObject(a))i=a,t===void 0&&(t=n);else return l;return t===void 0&&(t=null),E5(i,function(o,s,u){var f,c;if(Array.isArray(u)){c=u.slice();var v=Math.min(c.length,e.data.length);t&&(v=Math.min(v,t.length)),f=[];for(var h=0;h<v;h++)f[h]=t?t[h]:h}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 p=c;c=[];for(var m=0;m<f.length;m++)c[m]=p}c.length=Math.min(f.length,c.length)}l.push({type:"data",prop:o,traces:f,value:c})},"",0),l}function E5(e,r,t,a){Object.keys(e).forEach(function(n){var i=e[n];if(n[0]!=="_"){var l=t+(a>0?".":"")+n;Rf.isPlainObject(i)?E5(i,r,l,a+1):r(l,n,i)}})}});var Gt=B((a9e,HC)=>{"use strict";var t9e=Dr(),poe=tf().timeFormatLocale,moe=c2().formatLocale,Q0=Br(),yoe=v2(),goe=y0().version,Zr=Mr(),boe=Ef(),xoe=vt(),vr=Le(),_oe=Ar(),qC=Dt().BADNUM,An=na(),woe=Mo().clearOutline,Toe=q1(),P5=Y0(),Moe=A5(),Aoe=D5().getModuleCalcData,DC=vr.relinkPrivateKeys,Fs=vr._,je=HC.exports={};vr.extendFlat(je,Zr);je.attributes=xn();je.attributes.type.values=je.allTypes;je.fontAttrs=ma();je.layoutAttributes=wf();var R1=SC();je.executeAPICommand=R1.executeAPICommand;je.computeAPICommandBindings=R1.computeAPICommandBindings;je.manageCommandObserver=R1.manageCommandObserver;je.hasSimpleAPICommandBindings=R1.hasSimpleAPICommandBindings;je.redrawText=function(e){return e=vr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Zr.getComponentMethod("annotations","draw")(e),Zr.getComponentMethod("legend","draw")(e),Zr.getComponentMethod("colorbar","draw")(e),r(je.previousPromises(e)))},300)})};je.resize=function(e){e=vr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||vr.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||vr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Zr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};je.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};je.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=je.graphJson(e,!1,"object");a.version=goe;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 l=function(o){o.origin===t&&o.data&&o.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",l),e.emit("plotly_afterexport"))};return window.addEventListener("message",l),!1};var koe=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Coe=["year","month","dayMonth","dayMonthYear"];je.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||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||je.createTransitionData(e),n._dfltTitle={plot:Fs(e,"Click to enter Plot title"),subtitle:Fs(e,"Click to enter Plot subtitle"),x:Fs(e,"Click to enter X axis title"),y:Fs(e,"Click to enter Y axis title"),colorbar:Fs(e,"Click to enter Colorscale title"),annotation:Fs(e,"new text")},n._traceWord=Fs(e,"trace");var v=EC(e,koe);if(a._initialAutoSizeIsDone){var h=a.width,p=a.height;je.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=h),i.height||(n.height=p),je.sanitizeMargins(n)}else{je.supplyLayoutGlobalDefaults(i,n,v);var m=!i.width||!i.height,y=n.autosize,x=f.autosizable,_=m&&(y||x);_?je.plotAutoSize(e,i,n):m&&je.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=qoe(v,n.separators),n._extraFormat=EC(e,Coe),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=Soe(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Loe(l,s),je.supplyDataDefaults(s,o,i,n);var k=Object.keys(b.x),A=Object.keys(b.y);if(k.length>1&&A.length>1){for(Zr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c<k.length;c++)vr.pushUnique(w.xaxis,k[c]);for(c=0;c<A.length;c++)vr.pushUnique(w.yaxis,A[c]);for(var S in M)vr.pushUnique(w.cartesian,S)}if(n._has=je._hasPlotType.bind(n),l.length===o.length)for(c=0;c<o.length;c++)DC(o[c],l[c]);je.supplyLayoutModuleDefaults(i,n,o,e._transitionData);var D=n._visibleModules,E=[];for(c=0;c<D.length;c++){var R=D[c].crossTraceDefaults;R&&vr.pushUnique(E,R)}for(c=0;c<E.length;c++)E[c](o,n);n._hasOnlyLargeSploms=n._basePlotModules.length===1&&n._basePlotModules[0].name==="splom"&&k.length>15&&A.length>15&&n.shapes.length===0&&n.images.length===0,je.linkSubplots(o,n,l,a),je.cleanPlot(o,n,l,a);var N=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),H=N,O=I;H&&!O?a._bgLayer.remove():O&&!H&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&woe({_fullLayout:a}),Doe(o,n),DC(n,a),Zr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var G=n._tracePreGUI,Y={},V;for(V in G)Y[V]="old";for(c=0;c<o.length;c++)V=o[c].uid,Y[V]||(G[V]={}),Y[V]="new";for(V in Y)Y[V]==="old"&&delete G[V];zC(n),Zr.getComponentMethod("rangeslider","makeData")(n),!t&&u.length===o.length&&je.supplyDefaultsUpdateCalc(u,o)};je.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 Loe(e,r){var t=r.length,a,n=e.length,i=new Array(t),l={};function o(f,c){i[c]=f,l[f]=1}function s(f,c){if(f&&typeof f=="string"&&!l[f])return o(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)||o(vr.randstr(l),a))}return i}function Soe(){var e=Zr.collectableSubplotTypes,r={},t,a;if(!e){e=[];var n=Zr.subplotsRegistry;for(var i in n){var l=n[i],o=l.attr;if(o&&(e.push(i),Array.isArray(o)))for(a=0;a<o.length;a++)vr.pushUnique(e,o[a])}}for(t=0;t<e.length;t++)r[e[t]]=[];return r}function EC(e,r){var t=e._context.locale;t||(t="en-US");var a=!1,n={};function i(c){for(var v=!0,h=0;h<r.length;h++){var p=r[h];n[p]||(c[p]?n[p]=c[p]:v=!1)}v&&(a=!0)}for(var l=0;l<2;l++){for(var o=e._context.locales,s=0;s<2;s++){var u=(o[t]||{}).format;if(u&&(i(u),a))break;o=Zr.localeRegistry}var f=t.split("-")[0];if(a||f===t)break;t=f}return a||i(Zr.localeRegistry.en.format),n}function qoe(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=moe(e).format(vr.adjustFormat(t))}catch(a){return vr.warnBadFormat(t),vr.noFormat}return t},timeFormat:poe(e).utcFormat}}function Doe(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)}je.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=[])};je._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=Zr.modules[n];if(i&&i.categories[e])return!0}return!1};je.cleanPlot=function(e,r,t,a){var n,i,l=a._basePlotModules||[];for(n=0;n<l.length;n++){var o=l[n];o.clean&&o.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],v=c.uid;for(i=0;i<e.length;i++){var h=e[i];if(v===h.uid)continue e}f&&a._infolayer.select(".cb"+v).remove()}};je.linkSubplots=function(e,r,t,a){var n,i,l=a._plots||{},o=r._plots={},s=r._subplots,u={_fullData:e,_fullLayout:r},f=s.cartesian||[];for(n=0;n<f.length;n++){var c=f[n],v=l[c],h=An.getFromId(u,c,"x"),p=An.getFromId(u,c,"y"),m;for(v?m=o[c]=v:(m=o[c]={},m.id=c),h._counterAxes.push(p._id),p._counterAxes.push(h._id),h._subplotsWith.push(c),p._subplotsWith.push(c),m.xaxis=h,m.yaxis=p,m._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var y=e[i];if(y.xaxis===m.xaxis._id&&y.yaxis===m.yaxis._id&&y.cliponaxis===!1){m._hasClipOnAxisFalse=!0;break}}}var x=An.list(u,null,!0),_;for(n=0;n<x.length;n++){_=x[n];var w=null;_.overlaying&&(w=An.getFromId(u,_.overlaying),w&&w.overlaying&&(_.overlaying=!1,w=null)),_._mainAxis=w||_,w&&(_.domain=w.domain.slice()),_._anchorAxis=_.anchor==="free"?null:An.getFromId(u,_.anchor)}for(n=0;n<x.length;n++)if(_=x[n],_._counterAxes.sort(An.idSort),_._subplotsWith.sort(vr.subplotSort),_._mainSubplot=Eoe(_,r),_._counterAxes.length&&(_.spikemode&&_.spikemode.indexOf("across")!==-1||_.automargin&&_.mirror&&_.anchor!=="free"||Zr.getComponentMethod("rangeslider","isVisible")(_))){var b=1,M=0;for(i=0;i<_._counterAxes.length;i++){var k=An.getFromId(u,_._counterAxes[i]);b=Math.min(b,k.domain[0]),M=Math.max(M,k.domain[1])}b<M&&(_._counterDomainMin=b,_._counterDomainMax=M)}};function Eoe(e,r){var t={_fullLayout:r},a=e._id.charAt(0)==="x",n=e._mainAxis._anchorAxis,i="",l="",o="";if(n&&(o=n._mainAxis._id,i=a?e._id+o:o+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;l||(l=c);var v=An.getFromId(t,f);if(o&&v.overlaying===o){i=c;break}}}return i||l}je.supplyDataDefaults=function(e,r,t,a){var n=a._modules,i=a._visibleModules,l=a._basePlotModules,o=0,s=0,u,f,c;function v(_){r.push(_);var w=_._module;w&&(vr.pushUnique(n,w),_.visible===!0&&vr.pushUnique(i,w),vr.pushUnique(l,_._module.basePlotModule),o++,_._input.visible!==!1&&s++)}var h={},p=[],m=(t.template||{}).data||{},y=xoe.traceTemplater(m);for(u=0;u<e.length;u++)c=e[u],f=y.newTrace(c),f.uid=a._traceUids[u],je.supplyTraceDefaults(c,f,s,a,u),f.index=u,f._input=c,v(f),Zr.traceIs(f,"carpetAxis")&&(h[f.carpet]=f),Zr.traceIs(f,"carpetDependent")&&p.push(u);for(u=0;u<p.length;u++)if(f=r[p[u]],!!f.visible){var x=h[f.carpet];if(f._carpet=x,!x||!x.visible){f.visible=!1;continue}f.xaxis=x.xaxis,f.yaxis=x.yaxis}};je.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function a(n,i){return vr.coerce(e||{},t,P5,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]=je.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=je.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=je.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=je.supplyAnimationTransitionDefaults(e.transition||{});return t};je.supplyAnimationFrameDefaults=function(e){var r={};function t(a,n){return vr.coerce(e||{},r,P5.frame,a,n)}return t("duration"),t("redraw"),r};je.supplyAnimationTransitionDefaults=function(e){var r={};function t(a,n){return vr.coerce(e||{},r,P5.transition,a,n)}return t("duration"),t("easing"),r};je.supplyFrameDefaults=function(e){var r={};function t(a,n){return vr.coerce(e,r,Moe,a,n)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};je.supplyTraceDefaults=function(e,r,t,a,n){var i=a.colorway||_oe.defaults,l=i[t%i.length],o;function s(w,b){return vr.coerce(e,r,je.attributes,w,b)}var u=s("visible");s("type"),s("name",a._traceWord+" "+n),s("uirevision",a.uirevision);var f=je.getModule(r);if(r._module=f,f){var c=f.basePlotModule,v=c.attr,h=c.attributes;if(v&&h){var p=a._subplots,m="";if(Array.isArray(v))for(o=0;o<v.length;o++){var y=v[o],x=vr.coerce(e,r,h,y);p[y]&&vr.pushUnique(p[y],x),m+=x}else m=vr.coerce(e,r,h,v);p[c.name]&&vr.pushUnique(p[c.name],m)}}if(u&&(s("customdata"),s("ids"),s("meta"),Zr.traceIs(r,"showLegend")?(vr.coerce(e,r,f.attributes.showlegend?f.attributes:je.attributes,"showlegend"),vr.coerce(e,r,f.attributes.legend?f.attributes:je.attributes,"legend"),s("legendwidth"),s("legendgroup"),s("legendgrouptitle.text"),vr.coerce(e,r,f.attributes.legend?f.attributes:je.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,l,a),Zr.traceIs(r,"noOpacity")||s("opacity"),Zr.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),Zr.traceIs(r,"noHover")||(r.hovertemplate||vr.coerceHoverinfo(e,r,a),r.type!=="parcats"&&Zr.getComponentMethod("fx","supplyDefaults")(e,r,l,a)),f&&f.selectPoints)){var _=s("selectedpoints");vr.isTypedArray(_)&&(r.selectedpoints=Array.from(_))}return r};je.supplyLayoutGlobalDefaults=function(e,r,t){function a(c,v){return vr.coerce(e,r,je.layoutAttributes,c,v)}var n=e.template;vr.isPlainObject(n)&&(r.template=n,r._template=n.layout,r._dataTemplate=n.data),a("autotypenumbers");var i=vr.coerceFont(a,"font"),l=i.size;vr.coerceFont(a,"title.font",i,{overrideDflt:{size:Math.round(l*1.4)}}),a("title.text",r._dfltTitle.plot),a("title.xref");var o=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),vr.coerceFont(a,"title.subtitle.font",i,{overrideDflt:{size:Math.round(r.title.font.size*.7)}}),s&&(o==="paper"&&(r.title.y!==0&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y===0?"top":"bottom")),o==="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&&je.sanitizeMargins(r),Zr.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),Zr.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),Zr.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,a),Zr.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,a),a("meta"),vr.isPlainObject(e.transition)&&(a("transition.duration"),a("transition.easing"),a("transition.ordering")),Zr.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),Zr.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,a),vr.coerce(e,r,Toe,"scattermode")};function P1(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}je.plotAutoSize=function(r,t,a){var n=r._context||{},i=n.frameMargins,l,o,s=vr.isPlotDiv(r);if(s&&r.emit("plotly_autosize"),n.fillFrame)l=window.innerWidth,o=window.innerHeight,document.body.style.overflow="hidden";else{var u=s?window.getComputedStyle(r):{};if(l=P1(u.width)||P1(u.maxWidth)||a.width,o=P1(u.height)||P1(u.maxHeight)||a.height,Q0(i)&&i>0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=je.layoutAttributes.width.min,v=je.layoutAttributes.height.min;l<c&&(l=c),o<v&&(o=v);var h=!t.width&&Math.abs(a.width-l)>1,p=!t.height&&Math.abs(a.height-o)>1;(p||h)&&(h&&(a.width=l),p&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),je.sanitizeMargins(a)};je.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Zr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Zr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Zr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(vr.subplotSort);for(o=0;o<i.length;o++)s=i[o],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t);var c=r._modules;for(o=0;o<c.length;o++)s=c[o],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t);for(l in n)s=n[l],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t)};je.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)),vr.clearThrottle(),vr.clearResponsive(e),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()};je.style=function(e){var r=e._fullLayout._visibleModules,t=[],a;for(a=0;a<r.length;a++){var n=r[a];n.style&&vr.pushUnique(t,n.style)}for(a=0;a<t.length;a++)t[a](e)};je.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),l;n<0&&(l=(r-1)/(a.l+a.r),a.l=Math.floor(l*a.l),a.r=Math.floor(l*a.r)),i<0&&(l=(t-1)/(a.t+a.b),a.t=Math.floor(l*a.t),a.b=Math.floor(l*a.b))}};je.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};je.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function zC(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 NC=2,FC=2;je.autoMargin=function(e,r,t){var a=e._fullLayout,n=a.width,i=a.height,l=a.margin,o=a.minreducedwidth,s=a.minreducedheight,u=vr.constrain(n-l.l-l.r,NC,o),f=vr.constrain(i-l.t-l.b,FC,s),c=Math.max(0,n-u),v=Math.max(0,i-f),h=a._pushmargin,p=a._pushmarginIds;if(l.autoexpand!==!1){if(!t)delete h[r],delete p[r];else{var m=t.pad;if(m===void 0&&(m=Math.min(12,l.l,l.r,l.t,l.b)),c){var y=(t.l+t.r)/c;y>1&&(t.l/=y,t.r/=y)}if(v){var x=(t.t+t.b)/v;x>1&&(t.t/=x,t.b/=x)}var _=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;h[r]={l:{val:_,size:t.l+m},r:{val:w,size:t.r+m},b:{val:M,size:t.b+m},t:{val:b,size:t.t+m}},p[r]=1}if(!a._replotting)return je.doAutoMargin(e)}};function Poe(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=An.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}je.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),zC(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=vr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,h=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in v)h[y]||delete v[y];var x=e._fullLayout._reservedMargin;for(var _ in x)for(var w in x[_]){var b=x[_][w];l[w]=Math.max(l[w],b)}v.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 l){var k=0;for(var A in v)A!=="base"&&Q0(v[A][M].size)&&(k=v[A][M].size>k?v[A][M].size:k);var S=Math.max(0,i[M]-k);l[M]=Math.max(0,l[M]-S)}for(var D in v){var E=v[D].l||{},R=v[D].b||{},N=E.val,I=E.size,H=R.val,O=R.size,G=t-l.r-l.l,Y=a-l.t-l.b;for(var V in v){if(Q0(I)&&v[V].r){var U=v[V].r.val,Z=v[V].r.size;if(U>N){var X=(I*U+(Z-G)*N)/(U-N),$=(Z*(1-N)+(I-G)*(1-U))/(U-N);X+$>s+u&&(s=X,u=$)}}if(Q0(O)&&v[V].t){var ae=v[V].t.val,ie=v[V].t.size;if(ae>H){var ve=(O*ae+(ie-Y)*H)/(ae-H),K=(ie*(1-H)+(O-Y)*(1-ae))/(ae-H);ve+K>c+f&&(c=ve,f=K)}}}}}var he=vr.constrain(t-i.l-i.r,NC,p),oe=vr.constrain(a-i.t-i.b,FC,m),be=Math.max(0,t-he),me=Math.max(0,a-oe);if(be){var ce=(s+u)/be;ce>1&&(s/=ce,u/=ce)}if(me){var Me=(c+f)/me;Me>1&&(c/=Me,f/=Me)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(c)+l.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&&(je.didMarginChange(o,n)||Poe(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var De=3*(1+Object.keys(h).length);if(r._redrawFromAutoMarginCount<De)return Zr.call("_doPlot",e);r._size=o,vr.warn("Too many auto-margin redraws.")}Roe(e)};function Roe(e){var r=An.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a<r.length;a++){var n=r[a][t];n&&n()}})}var PC=["l","r","t","b","p","w","h"];je.didMarginChange=function(e,r){for(var t=0;t<PC.length;t++){var a=PC[t],n=e[a],i=r[a];if(!Q0(n)||Math.abs(i-n)>1)return!0}return!1};je.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&je.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,o=(e._transitionData||{})._frames;function s(c,v){if(typeof c=="function")return v?"_function_":null;if(vr.isPlainObject(c)){var h={};return Object.keys(c).sort().forEach(function(x){if(["_","["].indexOf(x.charAt(0))===-1){if(typeof c[x]=="function"){v&&(h[x]="_function");return}h[x]=s(c[x],v)}}),h}var p=Array.isArray(c),m=vr.isTypedArray(c);if((p||m)&&c.dtype&&c.shape){var y=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:vr.isArrayBuffer(y)?yoe.encode(y):y},v)}return p?c.map(function(x){return s(x,v)}):m?vr.simpleMap(c,vr.identity):vr.isJSDate(c)?vr.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var v=s(c);return r&&delete v.fit,v})};if(!r&&(u.layout=s(l),a)){var f=l._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return o&&(u.frames=s(o)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};je.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t<r.length;t++)switch(a=r[t],a.type){case"replace":n=a.value;var o=(i[a.index]||{}).name,s=n.name;i[a.index]=l[s]=n,s!==o&&(delete l[o],l[s]=n);break;case"insert":n=a.value,l[n.name]=n,i.splice(a.index,0,n);break;case"delete":n=i[a.index],delete l[n.name],i.splice(a.index,1);break}return Promise.resolve()};je.computeFrame=function(e,r){var t=e._transitionData._frameHash,a,n,i,l;if(!r)throw new Error("computeFrame must be given a string frame name");var o=t[r.toString()];if(!o)return!1;for(var s=[o],u=[o.name];o.baseframe&&(o=t[o.baseframe.toString()])&&u.indexOf(o.name)===-1;)s.push(o),u.push(o.name);for(var f={};o=s.pop();)if(o.layout&&(f.layout=je.extendLayout(f.layout,o.layout)),o.data){if(f.data||(f.data=[]),n=o.traces,!n)for(n=[],a=0;a<o.data.length;a++)n[a]=a;for(f.traces||(f.traces=[]),a=0;a<o.data.length;a++)i=n[a],i!=null&&(l=f.traces.indexOf(i),l===-1&&(l=f.data.length,f.traces[l]=i),f.data[l]=je.extendTrace(f.data[l],o.data[a]))}return f};je.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)}};je.extendObjectWithContainers=function(e,r,t){var a,n,i,l,o,s,u,f,c=vr.extendDeepNoArrays({},r||{}),v=vr.expandObjectPaths(c),h={};if(t&&t.length)for(i=0;i<t.length;i++)a=vr.nestedProperty(v,t[i]),n=a.get(),n===void 0?vr.nestedProperty(h,t[i]).set(null):(a.set(null),vr.nestedProperty(h,t[i]).set(n));if(e=vr.extendDeepNoArrays(e||{},v),t&&t.length){for(i=0;i<t.length;i++)if(o=vr.nestedProperty(h,t[i]),u=o.get(),!!u){for(s=vr.nestedProperty(e,t[i]),f=s.get(),Array.isArray(f)||(f=[],s.set(f)),l=0;l<u.length;l++){var p=u[l];p===null?f[l]=null:f[l]=je.extendObjectWithContainers(f[l],p)}s.set(f)}}return e};je.dataArrayContainers=["dimensions"];je.layoutArrayContainers=Zr.layoutArrayContainers;je.extendTrace=function(e,r){return je.extendObjectWithContainers(e,r,je.dataArrayContainers)};je.extendLayout=function(e,r){return je.extendObjectWithContainers(e,r,je.layoutArrayContainers)};je.transition=function(e,r,t,a,n,i){var l={redraw:n.redraw},o={},s=[];return l.prepareFn=function(){for(var u=Array.isArray(r)?r.length:0,f=a.slice(0,u),c=0;c<f.length;c++){var v=f[c],h=e._fullData[v],p=h._module;if(p){if(p.animatable){var m=p.basePlotModule.name;o[m]||(o[m]=[]),o[m].push(v)}e.data[f[c]]=je.extendTrace(e.data[f[c]],r[c])}}var y=vr.expandObjectPaths(vr.extendDeepNoArrays({},t)),x=/^[xy]axis[0-9]*$/;for(var _ in y)x.test(_)&&delete y[_].range;je.extendLayout(e.layout,y),delete e.calcdata,je.supplyDefaults(e),je.doCalcdata(e);var w=vr.expandObjectPaths(t);if(w){var b=e._fullLayout._plots;for(var M in b){var k=b[M],A=k.xaxis,S=k.yaxis,D=A.range.slice(),E=S.range.slice(),R=null,N=null,I=null,H=null;Array.isArray(w[A._name+".range"])?R=w[A._name+".range"].slice():Array.isArray((w[A._name]||{}).range)&&(R=w[A._name].range.slice()),Array.isArray(w[S._name+".range"])?N=w[S._name+".range"].slice():Array.isArray((w[S._name]||{}).range)&&(N=w[S._name].range.slice()),D&&R&&(A.r2l(D[0])!==A.r2l(R[0])||A.r2l(D[1])!==A.r2l(R[1]))&&(I={xr0:D,xr1:R}),E&&N&&(S.r2l(E[0])!==S.r2l(N[0])||S.r2l(E[1])!==S.r2l(N[1]))&&(H={yr0:E,yr1:N}),(I||H)&&s.push(vr.extendFlat({plotinfo:k},I,H))}}return Promise.resolve()},l.runFn=function(u){var f,c=e._fullLayout._basePlotModules,v=s.length,h;if(t)for(h=0;h<c.length;h++)c[h].transitionAxes&&c[h].transitionAxes(e,s,i,u);v?(f=vr.extendFlat({},i),f.duration=0,delete o.cartesian):f=i;for(var p in o){var m=o[p],y=e._fullData[m[0]]._module;y.basePlotModule.plot(e,m,f,u)}},IC(e,i,l)};je.transitionFromReact=function(e,r,t,a){var n=e._fullLayout,i=n.transition,l={},o=[];return l.prepareFn=function(){var s=n._plots;l.redraw=!1,r.anim==="some"&&(l.redraw=!0),t.anim==="some"&&(l.redraw=!0);for(var u in s){var f=s[u],c=f.xaxis,v=f.yaxis,h=a[c._name].range.slice(),p=a[v._name].range.slice(),m=c.range.slice(),y=v.range.slice();c.setScale(),v.setScale();var x=null,_=null;(c.r2l(h[0])!==c.r2l(m[0])||c.r2l(h[1])!==c.r2l(m[1]))&&(x={xr0:h,xr1:m}),(v.r2l(p[0])!==v.r2l(y[0])||v.r2l(p[1])!==v.r2l(y[1]))&&(_={yr0:p,yr1:y}),(x||_)&&o.push(vr.extendFlat({plotinfo:f},x,_))}return Promise.resolve()},l.runFn=function(s){for(var u=e._fullData,f=e._fullLayout,c=f._basePlotModules,v,h,p,m=[],y=0;y<u.length;y++)m.push(y);function x(){if(e._fullLayout)for(var w=0;w<c.length;w++)c[w].transitionAxes&&c[w].transitionAxes(e,o,v,s)}function _(){if(e._fullLayout)for(var w=0;w<c.length;w++)c[w].plot(e,p,h,s)}o.length&&r.anim?i.ordering==="traces first"?(v=vr.extendFlat({},i,{duration:0}),p=m,h=i,setTimeout(x,i.duration),_()):(v=i,p=null,h=vr.extendFlat({},i,{duration:0}),setTimeout(_,v.duration),x()):o.length?(v=i,x()):r.anim&&(p=m,h=i,_())},IC(e,i,l)};function IC(e,r,t){var a=!1;function n(c){var v=Promise.resolve();if(!c)return v;for(;c.length;)v=v.then(c.shift());return v}function i(c){if(c)for(;c.length;)c.shift()}function l(){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 Zr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,h=0;function p(){return v++,function(){h++,!a&&h===v&&o(c)}}t.runFn(p),setTimeout(p())})}function o(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Zr.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=[je.previousPromises,s,t.prepareFn,je.rehover,je.reselect,l],f=vr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}je.doCalcdata=function(e,r){var t=An.list(e),a=e._fullData,n=e._fullLayout,i,l,o,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={},o=0;o<a.length;o++)if(Array.isArray(r)&&r.indexOf(o)===-1){s[o]=u[o];continue}for(o=0;o<a.length;o++)i=a[o],i._arrayAttrs=boe.findArrayAttributes(i),i._extremes={};var f=n._subplots.polar||[];for(o=0;o<f.length;o++)t.push(n[f[o]].radialaxis,n[f[o]].angularaxis);for(var c in n._colorAxes){var v=n[c];v.cauto!==!1&&(delete v.cmin,delete v.cmax)}function h(m,y){if(i=a[m],l=i._module,!!l.isContainer===y){var x=[];i.visible===!0&&i._length!==0&&l&&l.calc&&(x=l.calc(e,i)),(!Array.isArray(x)||!x[0])&&(x=[{x:qC,y:qC}]),x[0].t||(x[0].t={}),x[0].trace=i,s[m]=x}}for(Foe(t,a,n),o=0;o<a.length;o++)h(o,!0);for(o=0;o<a.length;o++)h(o,!1);RC(e);var p=Noe(t,e);if(p.length){for(n._numBoxes=0,n._numViolins=0,o=0;o<p.length;o++)h(p[o],!0);for(o=0;o<p.length;o++)h(p[o],!1);RC(e)}Zr.getComponentMethod("fx","calc")(e),Zr.getComponentMethod("errorbars","calc")(e)};var zoe=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function Noe(e,r){var t=[],a,n,i,l,o;function s(V,U,Z){var X=U._id.charAt(0);if(V==="histogram2dcontour"){var $=U._counterAxes[0],ae=An.getFromId(r,$),ie=X==="x"||$==="x"&&ae.type==="category",ve=X==="y"||$==="y"&&ae.type==="category";return function(K,he){return K===0||he===0||ie&&K===Z[he].length-1||ve&&he===Z.length-1?-1:(X==="y"?he:K)-1}}else return function(K,he){return X==="y"?he:K}}var u={min:function(V){return vr.aggNums(Math.min,null,V)},max:function(V){return vr.aggNums(Math.max,null,V)},sum:function(V){return vr.aggNums(function(U,Z){return U+Z},null,V)},total:function(V){return vr.aggNums(function(U,Z){return U+Z},null,V)},mean:function(V){return vr.mean(V)},"geometric mean":function(V){return vr.geometricMean(V)},median:function(V){return vr.median(V)}};function f(V,U){return V[1]-U[1]}function c(V,U){return U[1]-V[1]}for(a=0;a<e.length;a++){var v=e[a];if(v.type==="category"){var h=v.categoryorder.match(zoe);if(h){var p=h[1],m=h[2],y=v._id.charAt(0),x=y==="x",_=[];for(n=0;n<v._categories.length;n++)_.push([v._categories[n],[]]);for(n=0;n<v._traceIndices.length;n++){var w=v._traceIndices[n],b=r._fullData[w];if(b.visible===!0){var M=b.type;Zr.traceIs(b,"histogram")&&(delete b._xautoBinFinished,delete b._yautoBinFinished);var k=M==="splom",A=M==="scattergl",S=r.calcdata[w];for(i=0;i<S.length;i++){var D=S[i],E,R;if(k){var N=b._axesDim[v._id];if(!x){var I=b._diag[N][0];I&&(v=r._fullLayout[An.id2name(I)])}var H=D.trace.dimensions[N].values;for(l=0;l<H.length;l++)for(E=v._categoriesMap[H[l]],o=0;o<D.trace.dimensions.length;o++)if(o!==N){var O=D.trace.dimensions[o];_[E][1].push(O.values[l])}}else if(A){for(l=0;l<D.t.x.length;l++)x?(E=D.t.x[l],R=D.t.y[l]):(E=D.t.y[l],R=D.t.x[l]),_[E][1].push(R);D.t&&D.t._scene&&delete D.t._scene.dirty}else if(D.hasOwnProperty("z")){R=D.z;var G=s(b.type,v,R);for(l=0;l<R.length;l++)for(o=0;o<R[l].length;o++)E=G(o,l),E+1&&_[E][1].push(R[l][o])}else{if(E=D.p,E===void 0&&(E=D[y]),isNaN(E)||E<0)continue;for(R=D.s,R===void 0&&(R=D.v),R===void 0&&(R=x?D.y:D.x),Array.isArray(R)||(R===void 0?R=[]:R=[R]),l=0;l<R.length;l++)_[E][1].push(R[l])}}}}v._categoriesValue=_;var Y=[];for(n=0;n<_.length;n++)Y.push([_[n][0],u[p](_[n][1])]);Y.sort(m==="descending"?c:f),v._categoriesAggregatedValue=Y,v._initialCategories=Y.map(function(V){return V[0]}),t=t.concat(v.sortByInitialCategories())}}}return t}function Foe(e,r,t){var a={};function n(s){s.clearCalc(),s.type==="multicategory"&&s.setupMultiCategory(r),a[s._id]=1}vr.simpleMap(e,n);for(var i=t._axisMatchGroups||[],l=0;l<i.length;l++)for(var o in i[l])a[o]||n(t[An.id2name(o)])}function RC(e){var r=e._fullLayout,t=r._visibleModules,a={},n,i,l;for(i=0;i<t.length;i++){var o=t[i],s=o.crossTraceCalc;if(s){var u=o.basePlotModule.name;a[u]?vr.pushUnique(a[u],s):a[u]=[s]}}for(l in a){var f=a[l],c=r._subplots[l];if(Array.isArray(c))for(n=0;n<c.length;n++){var v=c[n],h=l==="cartesian"?r._plots[v]:r[v];for(i=0;i<f.length;i++)f[i](e,h,v)}else for(i=0;i<f.length;i++)f[i](e)}}je.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};je.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};je.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);Zr.getComponentMethod("selections","reselect")(e,n)};je.generalUpdatePerTraceModule=function(e,r,t,a){var n=r.traceHash,i={},l;for(l=0;l<t.length;l++){var o=t[l],s=o[0].trace;s.visible&&(i[s.type]=i[s.type]||[],i[s.type].push(o))}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 v in i){var h=i[v],p=h[0][0].trace._module;p.plot(e,r,vr.filterVisible(h),a)}r.traceHash=i};je.plotBasePlot=function(e,r,t,a,n){var i=Zr.getModule(e),l=Aoe(r.calcdata,i)[0];i.plot(r,l,a,n)};je.cleanBasePlot=function(e,r,t,a,n){var i=n._has&&n._has(e),l=t._has&&t._has(e);i&&!l&&n["_"+e+"layer"].selectAll("g.trace").remove()}});var Hs=B(Is=>{"use strict";Is.xmlns="http://www.w3.org/2000/xmlns/";Is.svg="http://www.w3.org/2000/svg";Is.xlink="http://www.w3.org/1999/xlink";Is.svgAttrs={xmlns:Is.svg,"xmlns:xlink":Is.xlink}});var za=B((i9e,OC)=>{"use strict";OC.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var da=B(Hn=>{"use strict";var va=Dr(),oi=Le(),Ioe=oi.strTranslate,R5=Hs(),Hoe=za().LINE_SPACING,Ooe=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,XC=e=>e?e.match(Ooe):null;Hn.matchTex=XC;Hn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&XC(a);n&&!Uoe()&&(n=null);var i=va.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=ese(e.node(),a);s&&e.style("pointer-events","all"),Hn.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");Voe(n[2],f,function(v,h,p){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){o(),s();return}e.style("display","none");var y=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(m.node()),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var x=p.width,_=p.height;m.attr({class:l,height:_,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var w=e.node().style.fill||"black",b=m.select("g");b.attr({fill:w,stroke:w});var M=b.node().getBoundingClientRect(),k=M.width,A=M.height;(k>x||A>_)&&(m.style("overflow","hidden"),M=m.node().getBoundingClientRect(),k=M.width,A=M.height);var S=+e.attr("x"),D=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,R=-E/4;l[0]==="y"?y.attr({transform:"rotate("+[-90,S,D]+")"+Ioe(-k/2,R-A/2)}):l[0]==="l"?D=R-A/2:l[0]==="a"&&l.indexOf("atitle")!==0?(S=0,D=R):(S=S-k*(c==="middle"?.5:c==="end"?1:0),D=D+R-A/2),m.attr({x:S,y:D}),t&&t.call(e,y),s(y)})})):o(),e};var Boe=/(<|<|<)/g,Yoe=/(>|>|>)/g;function Goe(e){return e.replace(Boe,"\\lt ").replace(Yoe,"\\gt ")}var z5=null,WC=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,BC=!1,YC=!1;function Uoe(){let e=WC();return e===3||e===4?!0:(e===null?BC||(BC=!0,oi.warn("MathJax is not loaded. Math equations will not be rendered.")):YC||(YC=!0,oi.warn("Unsupported MathJax version:",MathJax.version)),!1)}function Voe(e,r,t){let a=WC();var n;let i=function(){if(!z5){let u=MathJax._.output.svg_ts.SVG,f=oi.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=oi.extendFlat({},f.linebreaks,{inline:!1})),z5=MathJax._.mathjax.mathjax.document(document,oi.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let o="math-output-"+oi.randstr({},64);n=va.select("body").append("div").attr({id:o}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=Goe(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return z5.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},l=function(){let o=n.select(".MathJax"),s=!o.empty()&&n.select("svg").node();if(!s)oi.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=o.select("defs");t(o,f,u)}n.remove()};Promise.resolve().then(i).then(l).catch(o=>{oi.log("MathJax typesetting failed.",e,o),n&&n.remove(),t()})}var ZC={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"},Xoe={sub:"0.3em",sup:"-0.6em"},Woe={sub:"-0.21em",sup:"0.42em"},GC="\u200B",UC=["http:","https:","mailto:","",void 0,":"],JC=Hn.NEWLINES=/(\r\n?|\n)/g,F5=/(<[^<>]*>)/,I5=/<(\/?)([^ >]*)(\s+(.*))?>/i,Zoe=/<br(\s+.*)?>/i;Hn.BR_TAG_ALL=/<br(\s+.*)?>/gi;var $C=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,KC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,QC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Joe=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Os(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&z1(a)}var $oe=/(^|;)\s*color:/;Hn.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,l=e.split(F5),o=[],s="",u=0,f=0;f<l.length;f++){var c=l[f],v=c.match(I5),h=v&&v[2].toLowerCase();if(h)a.indexOf(h)!==-1&&(o.push(c),s=h);else{var p=c.length;if(u+p<t)o.push(c),u+=p;else if(u<t){var m=t-u;s&&(s!=="br"||m<=i||p<=i)&&o.pop(),t>i?o.push(c.slice(0,Math.max(0,m-i))+n):o.push(c.slice(0,m));break}s=""}}return o.join("")};var Koe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Qoe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function z1(e){return e.replace(Qoe,function(r,t){var a;return t.charAt(0)==="#"?a=joe(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Koe[t],a||r})}Hn.convertEntities=z1;function joe(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 ese(e,r){r=r.replace(JC," ");var t=!1,a=[],n,i=-1;function l(){i++;var k=document.createElementNS(R5.svg,"tspan");va.select(k).attr({class:"line",dy:i*Hoe+"em"}),e.appendChild(k),n=k;var A=a;if(a=[{node:k}],A.length>1)for(var S=1;S<A.length;S++)o(A[S])}function o(k){var A=k.type,S={},D;if(A==="a"){D="a";var E=k.target,R=k.href,N=k.popup;R&&(S={"xlink:xlink:show":E==="_blank"||E.charAt(0)!=="_"?"new":"replace",target:E,"xlink:xlink:href":R},N&&(S.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+N+'");return false;'))}else D="tspan";k.style&&(S.style=k.style);var I=document.createElementNS(R5.svg,D);if(A==="sup"||A==="sub"){s(n,GC),n.appendChild(I);var H=document.createElementNS(R5.svg,"tspan");s(H,GC),va.select(H).attr("dy",Woe[A]),S.dy=Xoe[A],n.appendChild(I),n.appendChild(H)}else n.appendChild(I);va.select(I).attr(S),n=k.node=I,a.push(k)}function s(k,A){k.appendChild(document.createTextNode(A))}function u(k){if(a.length===1){oi.log("Ignoring unexpected end tag </"+k+">.",r);return}var A=a.pop();k!==A.type&&oi.log("Start tag <"+A.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Zoe.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(F5),v=0;v<c.length;v++){var h=c[v],p=h.match(I5),m=p&&p[2].toLowerCase(),y=ZC[m];if(m==="br")l();else if(y===void 0)s(n,z1(h));else if(p[1])u(m);else{var x=p[4],_={type:m},w=Os(x,$C);if(w?(w=w.replace($oe,"$1 fill:"),y&&(w+=";"+y)):y&&(w=y),w&&(_.style=w),m==="a"){t=!0;var b=Os(x,KC);if(b){var M=jC(b);M&&(_.href=M,_.target=Os(x,QC)||"_blank",_.popup=Os(x,Joe))}}o(_)}}return t}function jC(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 UC.indexOf(n)!==-1&&UC.indexOf(i)!==-1?r:""}Hn.sanitizeHTML=function(r){r=r.replace(JC," ");for(var t=document.createElement("p"),a=t,n=[],i=r.split(F5),l=0;l<i.length;l++){var o=i[l],s=o.match(I5),u=s&&s[2].toLowerCase();if(u in ZC)if(s[1])n.length&&(a=n.pop());else{var f=s[4],c=Os(f,$C),v=c?{style:c}:{};if(u==="a"){var h=Os(f,KC);if(h){var p=jC(h);if(p){v.href=p;var m=Os(f,QC);m&&(v.target=m)}}}var y=document.createElement(u);a.appendChild(y),va.select(y).attr(v),a=y,n.push(y)}else a.appendChild(document.createTextNode(z1(o)))}var x="innerHTML";return t[x]};Hn.lineCount=function(r){return r.selectAll("tspan.line").size()||1};Hn.positionText=function(r,t,a){return r.each(function(){var n=va.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 l=i("x",t),o=i("y",a);this.nodeName==="text"&&n.selectAll("tspan.line").attr({x:l,y:o})})};function VC(e,r,t){var a=t.horizontalAlign,n=t.verticalAlign||"top",i=e.node().getBoundingClientRect(),l=r.node().getBoundingClientRect(),o,s,u;return n==="bottom"?s=function(){return i.bottom-o.height}:n==="middle"?s=function(){return i.top+(i.height-o.height)/2}:s=function(){return i.top},a==="right"?u=function(){return i.right-o.width}:a==="center"?u=function(){return i.left+(i.width-o.width)/2}:u=function(){return i.left},function(){o=this.node().getBoundingClientRect();var f=u()-l.left,c=s()-l.top,v=t.gd||{};if(t.gd){v._fullLayout._calcInverseTransform(v);var h=oi.apply3DTransform(v._fullLayout._invTransform)(f,c);f=h[0],c=h[1]}return this.style({top:c+"px",left:f+"px","z-index":1e3}),this}}var N5="1px ";Hn.makeTextShadow=function(e){var r=N5,t=N5,a=N5;return r+t+a+e+", -"+r+"-"+t+a+e+", "+r+"-"+t+a+e+", -"+r+t+a+e};Hn.makeEditable=function(e,r){var t=r.gd,a=r.delegate,n=va.dispatch("edit","input","cancel"),i=a||e;if(e.style({"pointer-events":a?"none":"all"}),e.size()!==1)throw new Error("boo");function l(){s(),e.style({opacity:0});var u=i.attr("class"),f;u?f="."+u.split(" ")[0]+"-math-group":f="[class*=-math-group]",f&&va.select(e.node().parentNode).select(f).style({opacity:0})}function o(u){var f=u.node(),c=document.createRange();c.selectNodeContents(f);var v=window.getSelection();v.removeAllRanges(),v.addRange(c),f.focus()}function s(){var u=va.select(t),f=u.select(".svg-container"),c=f.append("div"),v=e.node().style,h=parseFloat(v.fontSize||12),p=r.text;p===void 0&&(p=e.attr("data-unformatted")),c.classed("plugin-editable editable",!0).style({position:"absolute","font-family":v.fontFamily||"Arial","font-size":h,color:r.fill||v.fill||"black",opacity:1,"background-color":r.background||"transparent",outline:"#ffffff33 1px solid",margin:[-h/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(p).call(VC(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var m=va.select(this).attr("class"),y;m?y="."+m.split(" ")[0]+"-math-group":y="[class*=-math-group]",y&&va.select(e.node().parentNode).select(y).style({opacity:0});var x=this.textContent;va.select(this).transition().duration(0).remove(),va.select(document).on("mouseup",null),n.edit.call(e,x)}).on("focus",function(){var m=this;t._editing=!0,va.select(document).on("mouseup",function(){if(va.event.target===m)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){va.event.which===27?(t._editing=!1,e.style({opacity:1}),va.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),n.cancel.call(e,this.textContent)):(n.input.call(e,this.textContent),va.select(this).call(VC(e,f,r)))}).on("keydown",function(){va.event.which===13&&this.blur()}).call(o)}return r.immediate?l():i.on("click",l),va.rebind(e,n,"on")}});var On=B((o9e,iL)=>{"use strict";var rse=Dr(),ev=Br(),N1=Le(),Bs=Ar(),tse=qs().isValid;function ase(e,r,t){var a=r?N1.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(N1.isArrayOrTypedArray(n)){for(var l=0;l<n.length;l++)if(ev(n[l])){i=!0;break}}return N1.isPlainObject(a)&&(i||a.showscale===!0||ev(a.cmin)&&ev(a.cmax)||tse(a.colorscale)||N1.isPlainObject(a.colorbar))}var eL=["showscale","autocolorscale","colorscale","reversescale","colorbar"],j0=["min","max","mid","auto"];function rL(e){var r=e._colorAx,t=r||e,a={},n,i,l;for(i=0;i<eL.length;i++)l=eL[i],a[l]=t[l];if(r)for(n="c",i=0;i<j0.length;i++)l=j0[i],a[l]=t["c"+l];else{var o;for(i=0;i<j0.length;i++){if(l=j0[i],o="c"+l,o in t){a[l]=t[o];continue}o="z"+l,o in t&&(a[l]=t[o])}n=o.charAt(0)}return a._sync=function(s,u){var f=j0.indexOf(s)!==-1?n+s:s;t[f]=t["_"+f]=u},a}function tL(e){for(var r=rL(e),t=r.min,a=r.max,n=r.reversescale?aL(r.colorscale):r.colorscale,i=n.length,l=new Array(i),o=new Array(i),s=0;s<i;s++){var u=n[s];l[s]=t+u[0]*(a-t),o[s]=u[1]}return{domain:l,range:o}}function aL(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 nL(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l<n;l++)i[l]=Bs.rgbaArray(a[l]);var o=rse.scale.linear().domain(t).range(i).clamp(!0),s=r.noNumericCheck,u=r.returnArray,f;return s&&u?f=o:s?f=function(c){return Bs.rgbaArrayToString(o(c))}:u?f=function(c){return ev(c)?o(c):Bs.isValid(c)?c:Bs.defaultLine}:f=function(c){return ev(c)?Bs.rgbaArrayToString(o(c)):Bs.isValid(c)?c:Bs.defaultLine},f.domain=o.domain,f.range=function(){return a},f}function nse(e,r){return nL(tL(e),r)}iL.exports={hasColorscale:ase,extractOpts:rL,extractScale:tL,flipScale:aL,makeColorScaleFunc:nL,makeColorScaleFuncFromTrace:nse}});var Hi=B((s9e,sL)=>{"use strict";var lL=e5(),ise=lL.FORMAT_LINK,lse=lL.DATE_FORMAT_LINK;function ose(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?H5:oL)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function H5(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: "+ise+"."].join(" ")}function oL(e,r){return H5(e,r)+[" And for dates see: "+lse+".","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(" ")}sL.exports={axisHoverFormat:ose,descriptionOnlyNumbers:H5,descriptionWithDates:oL}});var Bn=B((f9e,AL)=>{"use strict";var uL=ma(),zf=ni(),ML=zi().dash,B5=Tt().extendFlat,fL=vt().templatedArray,u9e=Fn().templateFormatStringDescription,cL=Hi().descriptionWithDates,sse=Dt().ONEDAY,fl=ba(),use=fl.HOUR_PATTERN,fse=fl.WEEKDAY_PATTERN,O5={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},cse=B5({},O5,{values:O5.values.slice().concat(["sync"])});function vL(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var dL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},hL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},pL={valType:"data_array",editType:"ticks"},mL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function yL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function gL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var bL={valType:"color",dflt:zf.defaultLine,editType:"ticks"},xL={valType:"color",dflt:zf.lightLine,editType:"ticks"};function _L(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var wL=B5({},ML,{editType:"ticks"}),TL={valType:"boolean",editType:"ticks"};AL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:zf.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:uL({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:[fl.idRegex.x.toString(),fl.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:[fl.idRegex.x.toString(),fl.idRegex.y.toString()],editType:"calc"},rangebreaks:fL("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:[fse,use,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:sse},editType:"calc"}),tickmode:cse,nticks:vL(),tick0:dL,dtick:hL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:pL,ticktext:{valType:"data_array",editType:"ticks"},ticks:mL,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:yL(),tickwidth:gL(),tickcolor:bL,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:B5({},ML,{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:uL({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:cL("tick label")},tickformatstops:fL("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:cL("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:zf.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:TL,gridcolor:xL,gridwidth:_L(),griddash:wL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:zf.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:zf.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",fl.idRegex.x.toString(),fl.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",fl.idRegex.x.toString(),fl.idRegex.y.toString()],editType:"plot"},minor:{tickmode:O5,nticks:vL("minor"),tick0:dL,dtick:hL,tickvals:pL,ticks:mL,ticklen:yL("minor"),tickwidth:gL("minor"),tickcolor:bL,gridcolor:xL,gridwidth:_L("minor"),griddash:wL,showgrid:TL,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 F1=B((c9e,LL)=>{"use strict";var kt=Bn(),kL=ma(),CL=Tt().extendFlat,vse=Ri().overrideAll;LL.exports=vse({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:kt.linecolor,outlinewidth:kt.linewidth,bordercolor:kt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:kt.minor.tickmode,nticks:kt.nticks,tick0:kt.tick0,dtick:kt.dtick,tickvals:kt.tickvals,ticktext:kt.ticktext,ticks:CL({},kt.ticks,{dflt:""}),ticklabeloverflow:CL({},kt.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:kt.ticklen,tickwidth:kt.tickwidth,tickcolor:kt.tickcolor,ticklabelstep:kt.ticklabelstep,showticklabels:kt.showticklabels,labelalias:kt.labelalias,tickfont:kL({description:"Sets the color bar's tick label font"}),tickangle:kt.tickangle,tickformat:kt.tickformat,tickformatstops:kt.tickformatstops,tickprefix:kt.tickprefix,showtickprefix:kt.showtickprefix,ticksuffix:kt.ticksuffix,showticksuffix:kt.showticksuffix,separatethousands:kt.separatethousands,exponentformat:kt.exponentformat,minexponent:kt.minexponent,showexponent:kt.showexponent,title:{text:{valType:"string"},font:kL({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var rv=B((d9e,qL)=>{"use strict";var dse=F1(),hse=(bf(),Ga(gf)).counter,pse=(u5(),Ga(s5)).default,SL=qs().scales,v9e=pse(SL);function I1(e){return"`"+e+"`"}qL.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",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?SL[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 "+I1(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",h=a+"auto",p=a+"min",m=a+"max",y=a+"mid",x=I1(u+h),_=I1(u+p),w=I1(u+m),b=_+" and "+w,M={};M[p]=M[m]=void 0;var k={};k[h]=!1;var A={};return f==="color"&&(A.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(A.color.anim=!0)),A[h]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},A[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},A.colorscale={valType:"colorscale",editType:"calc",dflt:o,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:l,editType:"calc"},A.colorbar=dse),t.noColorAxis||(A.coloraxis={valType:"subplotid",regex:hse("coloraxis"),dflt:null,editType:"calc"}),A}});var G5=B((h9e,DL)=>{"use strict";var mse=Tt().extendFlat,yse=rv(),Y5=qs().scales;DL.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Y5.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Y5.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Y5.RdBu,editType:"calc"}},coloraxis:mse({_isSubplotObj:!0,editType:"calc"},yse("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var U5=B((p9e,EL)=>{"use strict";var gse=Le();EL.exports=function(r){return gse.isPlainObject(r.colorbar)}});var W5=B(X5=>{"use strict";var V5=Br(),PL=Le(),RL=Dt(),bse=RL.ONEDAY,xse=RL.ONEWEEK;X5.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?bse:1;if(!e)return i;if(V5(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 l=e.charAt(0),o=e.slice(1);return o=V5(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};X5.tick0=function(e,r,t,a){if(r==="date")return PL.cleanDate(e,PL.dateTick0(t,a%xse===0?1:0));if(!(a==="D1"||a==="D2"))return V5(e)?Number(e):0}});var H1=B((y9e,NL)=>{"use strict";var zL=W5(),_se=Le().isArrayOrTypedArray,wse=bn().isTypedArraySpec,Tse=bn().decodeTypedArraySpec;NL.exports=function(r,t,a,n,i={}){var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(b){var M=o[b];return wse(M)&&(M=Tse(M)),M!==void 0?M:(s._template||{})[b]}var c=f("tick0"),v=f("dtick"),h=f("tickvals"),p=f("overlaying"),m=n==="category"||n==="multicategory",y;_se(h)?y="array":v?y="linear":p&&!m?y="sync":y="auto";var x=a(u+"tickmode",y);if(x==="auto"||x==="sync")a(u+"nticks");else if(x==="linear"){var _=s.dtick=zL.dtick(v,n);s.tick0=zL.tick0(c,n,t.calendar,_)}else if(n!=="multicategory"){var w=a(u+"tickvals");w===void 0?s.tickmode="auto":l||a("ticktext")}}});var O1=B((g9e,IL)=>{"use strict";var Z5=Le(),FL=Bn();IL.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?FL.minor:FL,u=i?"minor.":"",f=Z5.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=Z5.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),v=Z5.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),h=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");h||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var J5=B((b9e,HL)=>{"use strict";HL.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 si=B((x9e,OL)=>{"use strict";var B1=Le(),Mse=vt();OL.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=B1.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Mse.arrayTemplater(t,n,i),f,c;for(f=0;f<o.length;f++){var v=o[f];B1.isPlainObject(v)?c=u.newItem(v):(c=u.newItem({}),c[i]=!1),c._index=f,c[i]!==!1&&a.handleItemDefaults(v,c,t,a),s.push(c)}var h=u.defaultItems();for(f=0;f<h.length;f++)c=h[f],c._index=s.length,a.handleItemDefaults({},c,t,a,{}),s.push(c);if(B1.isArrayOrTypedArray(l)){var p=Math.min(l.length,s.length);for(f=0;f<p;f++)B1.relinkPrivateKeys(s[f],l[f])}return s}});var Y1=B((_9e,YL)=>{"use strict";var $5=Le(),Ase=Ar().contrast,BL=Bn(),kse=J5(),Cse=si();YL.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");$5.isPlainObject(l)||delete t.labelalias;var o=kse(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?Ase(i.bgColor):f&&f!==BL.color.dflt?f:u.color;if($5.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var h=a("tickangle");!i.noAutotickangles&&h==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");Cse(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Lse}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function Lse(e,r){function t(n,i){return $5.coerce(e,r,BL.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var G1=B((w9e,GL)=>{"use strict";var Sse=J5();GL.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=Sse(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var K5=B((T9e,UL)=>{"use strict";var Ao=Le(),qse=vt(),Dse=H1(),Ese=O1(),Pse=Y1(),Rse=G1(),zse=F1();UL.exports=function(r,t,a){var n=qse.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,N){return Ao.coerce(i,n,zse,R,N)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),c=f==="v",v=l("thicknessmode");l("thickness",v==="fraction"?30/(c?s:u):30);var h=l("lenmode");l("len",h==="fraction"?1:c?u:s);var p=l("yref"),m=l("xref"),y=p==="paper",x=m==="paper",_,w,b,M="left";c?(b="middle",M=x?"left":"right",_=x?1.02:1,w=.5):(b=y?"bottom":"top",M="center",_=.5,w=y?1.02:1),Ao.coerce(i,n,{x:{valType:"number",min:x?-2:0,max:x?3:1,dflt:_}},"x"),Ao.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:w}},"y"),l("xanchor",M),l("xpad"),l("yanchor",b),l("ypad"),Ao.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var k=Ao.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");l("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),Dse(i,n,l,"linear");var A=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};k.indexOf("inside")!==-1&&(S.bgColor="black"),Rse(i,n,l,"linear",S),Pse(i,n,l,"linear",S),Ese(i,n,l,"linear",S),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:A,E=Ao.extendFlat({},A,{family:D.family,size:Ao.bigFont(D.size)});Ao.coerceFont(l,"title.font",E),l("title.side",c?"top":"right")}});var Nf=B((M9e,WL)=>{"use strict";var VL=Br(),j5=Le(),Nse=U5(),Fse=K5(),XL=qs().isValid,Ise=Mr().traceIs;function Q5(e,r){var t=r.slice(0,r.length-1);return r?j5.nestedProperty(e,t).get()||{}:e}WL.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=Q5(r,l),f=Q5(t,l),c=Q5(t._template||{},l)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var h=a._colorAxes||{},p=n(l+"coloraxis");if(p){var m=Ise(t,"contour")&&j5.nestedProperty(t,"contours.coloring").get()||"heatmap",y=h[p];y?(y[2].push(v),y[0]!==m&&(y[0]=!1,j5.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):h[p]=[m,t,[v]];return}}var x=u[o+"min"],_=u[o+"max"],w=VL(x)&&VL(_)&&x<_,b=n(l+o+"auto",!w);b?n(l+o+"mid"):(n(l+o+"min"),n(l+o+"max"));var M=u.colorscale,k=c.colorscale,A;if(M!==void 0&&(A=!XL(M)),k!==void 0&&(A=!XL(k)),n(l+"autocolorscale",A),n(l+"colorscale"),n(l+"reversescale"),l!=="marker.line."){var S;l&&s&&(S=Nse(u));var D=n(l+"showscale",S);D&&(l&&c&&(f._template=c),Fse(u,f,a))}}});var KL=B((A9e,$L)=>{"use strict";var ZL=Le(),Hse=vt(),JL=G5(),Ose=Nf();$L.exports=function(r,t){function a(c,v){return ZL.coerce(r,t,JL,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,v){return ZL.coerce(i,l,JL.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=Hse.newContainer(t,s,"coloraxis"),l._name=s,Ose(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f<u[2].length;f++)u[2][f]();delete t._colorAxes[s]}}}});var jL=B((k9e,QL)=>{"use strict";var Bse=Le(),Yse=On().hasColorscale,Gse=On().extractOpts;QL.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?Bse.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var h=Gse(v),p=h.auto;(p||h.min===void 0)&&a(v,c.min),(p||h.max===void 0)&&a(v,c.max),h.autocolorscale&&a(v,"colorscale")}}for(var i=0;i<r.length;i++){var l=r[i],o=l._module.colorbar;if(o)if(Array.isArray(o))for(var s=0;s<o.length;s++)n(l,o[s]);else n(l,o);Yse(l,"marker.line")&&n(l,{container:"marker.line",min:"cmin",max:"cmax"})}for(var u in t._colorAxes)n(t[u],{min:"cmin",max:"cmax"})}});var tv=B((C9e,rS)=>{"use strict";var eS=Br(),eb=Le(),Use=On().extractOpts;rS.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?eb.nestedProperty(t,l).get():t,s=Use(o),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,h=function(){return eb.aggNums(Math.min,null,i)},p=function(){return eb.aggNums(Math.max,null,i)};if(f===void 0?f=h():u&&(o._colorAx&&eS(f)?f=Math.min(f,h()):f=h()),c===void 0?c=p():u&&(o._colorAx&&eS(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v<v-f&&(c=v+(v-f))),f===c&&(f-=.5,c+=.5),s._sync("min",f),s._sync("max",c),s.autocolorscale){var m;f*c<0?m=n.colorscale.diverging:f>=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var rb=B((L9e,tS)=>{"use strict";var U1=qs(),Ff=On();tS.exports={moduleType:"component",name:"colorscale",attributes:rv(),layoutAttributes:G5(),supplyLayoutDefaults:KL(),handleDefaults:Nf(),crossTraceDefaults:jL(),calc:tv(),scales:U1.scales,defaultScale:U1.defaultScale,getScale:U1.get,isValidScale:U1.isValid,hasColorscale:Ff.hasColorscale,extractOpts:Ff.extractOpts,extractScale:Ff.extractScale,flipScale:Ff.flipScale,makeColorScaleFunc:Ff.makeColorScaleFunc,makeColorScaleFuncFromTrace:Ff.makeColorScaleFuncFromTrace}});var Yn=B((S9e,nS)=>{"use strict";var aS=Le(),Vse=bn().isTypedArraySpec;nS.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 aS.isPlainObject(r)&&(aS.isArrayOrTypedArray(r.size)||Vse(r.size))}}});var lS=B((q9e,iS)=>{"use strict";var Xse=Br();iS.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return Xse(s)&&s>0?Math.max(s,i):0}}});var Oi=B(Na=>{"use strict";var av=Le();Na.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Na.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(Na.getSubplot(e))!==-1};Na.flat=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=r;return t};Na.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};Na.c2dApply=function(e,r){e.length!==r.length&&av.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};Na.getDistanceFunction=function(e,r,t,a){return e==="closest"?a||Na.quadrature(r,t):e.charAt(0)==="x"?r:t};Na.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};Na.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};Na.quadrature=function(e,r){return function(t){var a=e(t),n=r(t);return Math.sqrt(a*a+n*n)}};Na.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)),Na.appendArrayPointValue(n,r,a),n};Na.appendArrayPointValue=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],l=oS(i);if(e[l]===void 0){var o=av.nestedProperty(r,i).get(),s=sS(o,t);s!==void 0&&(e[l]=s)}}};Na.appendArrayMultiPointValues=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],l=oS(i);if(e[l]===void 0){for(var o=av.nestedProperty(r,i).get(),s=new Array(t.length),u=0;u<t.length;u++)s[u]=sS(o,t[u]);e[l]=s}}};var Wse={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function oS(e){return Wse[e]||e}function sS(e,r){if(Array.isArray(r)){if(av.isArrayOrTypedArray(e)&&av.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var Zse={x:!0,y:!0},Jse={"x unified":!0,"y unified":!0};Na.isUnifiedHover=function(e){return typeof e!="string"?!1:!!Jse[e]};Na.isXYhover=function(e){return typeof e!="string"?!1:!!Zse[e]}});var ab=B((E9e,uS)=>{var tb={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},$se=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Kse=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Qse(e){let r=[];return e.replace($se,(t,a,n)=>{let i=a.toLowerCase(),l=a,o=jse(n);for(i==="m"&&o.length>2&&(r.push([l,...o.splice(0,2)]),i="l",l=l==="m"?"l":"L");;){if(o.length===tb[i])return r.push([l,...o]),"";if(o.length<tb[i])throw new Error("malformed path data");r.push([l,...o.splice(0,tb[i])])}}),r}function jse(e){let r=e.match(Kse);return r?r.map(Number):[]}uS.exports=Qse});var mS=B((P9e,pS)=>{"use strict";var eue=ab(),Ze=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Er="M0,0Z",fS=Math.sqrt(2),ko=Math.sqrt(3),nb=Math.PI,ib=Math.cos,lb=Math.sin;pS.exports={circle:{n:0,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Rr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e,2);return Rr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*1.3,2);return Rr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*.4,2),n=Ze(e*1.2,2);return Rr(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(Pr(r))return Er;var a=Ze(e*.8/fS,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Rr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*2/ko,2),n=Ze(e/2,2),i=Ze(e,2);return Rr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*2/ko,2),n=Ze(e/2,2),i=Ze(e,2);return Rr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*2/ko,2),n=Ze(e/2,2),i=Ze(e,2);return Rr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*2/ko,2),n=Ze(e/2,2),i=Ze(e,2);return Rr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Rr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Rr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Rr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Rr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*.951,2),n=Ze(e*.588,2),i=Ze(-e,2),l=Ze(e*-.309,2),o=Ze(e*.809,2);return Rr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e,2),n=Ze(e/2,2),i=Ze(e*ko/2,2);return Rr(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(Pr(r))return Er;var a=Ze(e,2),n=Ze(e/2,2),i=Ze(e*ko/2,2);return Rr(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(Pr(r))return Er;var a=Ze(e*.924,2),n=Ze(e*.383,2);return Rr(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(Pr(r))return Er;var a=e*1.4,n=Ze(a*.225,2),i=Ze(a*.951,2),l=Ze(a*.363,2),o=Ze(a*.588,2),s=Ze(-a,2),u=Ze(a*-.309,2),f=Ze(a*.118,2),c=Ze(a*.809,2),v=Ze(a*.382,2);return Rr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+c+"L0,"+v+"L-"+o+","+c+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*.66,2),n=Ze(e*.38,2),i=Ze(e*.76,2);return Rr(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(Pr(r))return Er;var a=Ze(e*ko*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Rr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*ko*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Rr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*1.1,2),n=Ze(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Rr(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(Pr(r))return Er;var a=Ze(e*1.4,2),n=Ze(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Rr(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(Pr(r))return Er;var a=Ze(e*.7,2),n=Ze(e*1.4,2);return Rr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*1.4,2),n=Ze(e*.7,2);return Rr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e,2);return Rr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e,2);return Rr(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(Pr(r))return Er;var a=Ze(e,2);return Rr(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(Pr(r))return Er;var a=Ze(e,2),n=Ze(e/fS,2);return Rr(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(Pr(r))return Er;var a=Ze(e,2);return Rr(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(Pr(r))return Er;var a=Ze(e,2);return Rr(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(Pr(r))return Er;var a=Ze(e*1.3,2);return Rr(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(Pr(r))return Er;var a=Ze(e*1.3,2),n=Ze(e*.65,2);return Rr(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(Pr(r))return Er;var a=Ze(e*1.4,2);return Rr(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(Pr(r))return Er;var a=Ze(e,2);return Rr(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(Pr(r))return Er;var a=Ze(e*1.2,2),n=Ze(e*.85,2);return Rr(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(Pr(r))return Er;var a=Ze(e/2,2),n=Ze(e,2);return Rr(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(Pr(r))return Er;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Rr(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(Pr(r))return Er;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Rr(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(Pr(r))return Er;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Rr(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(Pr(r))return Er;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Rr(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(Pr(r))return Er;var a=Ze(e*1.4,2);return Rr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*1.4,2);return Rr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e,2);return Rr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e,2);return Rr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e,2),n=Ze(e*2,2);return Rr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e,2),n=Ze(e*2,2);return Rr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*2,2),n=Ze(e,2);return Rr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e*2,2),n=Ze(e,2);return Rr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Pr(r))return Er;var a=Ze(e,2),n=Ze(e*2,2);return Rr(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(Pr(r))return Er;var a=Ze(e,2),n=Ze(e*2,2);return Rr(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(Pr(r))return Er;var a=Ze(e*2,2),n=Ze(e,2);return Rr(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(Pr(r))return Er;var a=Ze(e*2,2),n=Ze(e,2);return Rr(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(Pr(r))return Er;var a=nb/2.5,n=2*e*ib(a),i=2*e*lb(a);return Rr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Pr(r))return Er;var a=nb/4,n=2*e*ib(a),i=2*e*lb(a);return Rr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Pr(e){return e===null}var cS,vS,dS,hS;function Rr(e,r,t){if((!e||e%360===0)&&!r)return t;if(dS===e&&hS===r&&cS===t)return vS;dS=e,hS=r,cS=t;function a(y,x){var _=ib(y),w=lb(y),b=x[0],M=x[1]+(r||0);return[b*_-M*w,b*w+M*_]}for(var n=e/180*nb,i=0,l=0,o=eue(t),s="",u=0;u<o.length;u++){var f=o[u],c=f[0],v=i,h=l;if(c==="M"||c==="L")i=+f[1],l=+f[2];else if(c==="m"||c==="l")i+=+f[1],l+=+f[2];else if(c==="H")i=+f[1];else if(c==="h")i+=+f[1];else if(c==="V")l=+f[1];else if(c==="v")l+=+f[1];else if(c==="A"){i=+f[1],l=+f[2];var p=a(n,[+f[6],+f[7]]);f[6]=p[0],f[7]=p[1],f[3]=+f[3]+e}(c==="H"||c==="V")&&(c="L"),(c==="h"||c==="v")&&(c="l"),(c==="m"||c==="l")&&(i-=v,l-=h);var m=a(n,[i,l]);(c==="H"||c==="V")&&(c="L"),(c==="M"||c==="L"||c==="m"||c==="l")&&(f[1]=m[0],f[2]=m[1]),f[0]=c,s+=f[0]+f.slice(1).join(",")}return vS=s,s}});var Vr=B((R9e,NS)=>{"use strict";var xa=Dr(),ot=Le(),rue=ot.numberFormat,Co=Br(),X1=Mr(),ha=Ar(),tue=rb(),iv=ot.strTranslate,W1=da(),aue=Hs(),nue=za(),iue=nue.LINE_SPACING,kS=yf().DESELECTDIM,lue=Yn(),oue=lS(),sue=Oi().appendArrayPointValue,er=NS.exports={};er.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(ha.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",ob(fue(f))),s&&e.style("text-shadow",s==="auto"?W1.makeTextShadow(ha.contrast(i)):ob(s)),u&&e.style("text-decoration-line",ob(cue(u)))};function ob(e){return e==="none"?void 0:e}var uue={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function fue(e){return uue[e]}function cue(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}er.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};er.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};er.setRect=function(e,r,t,a,n){e.call(er.setPosition,r,t).call(er.setSize,a,n)};er.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(Co(n)&&Co(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",iv(n,i));else return!1;return!0};er.translatePoints=function(e,r,t){e.each(function(a){var n=xa.select(this);er.translatePoint(a,n,r,t)})};er.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};er.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=X1.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){er.hideOutsideRangePoint(u,xa.select(this),t,a,l,o)})})}};er.crispRound=function(e,r,t){return!r||!Co(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};er.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";ha.stroke(r,a||i.color),er.dashLine(r,o,l)};er.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";xa.select(this).call(ha.stroke,t||i.color).call(er.dashLine,o,l)})};er.dashLine=function(e,r,t){t=+t||0,r=er.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};er.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 CS(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=er.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,c=l(n.size,0,8),v=l(n.solidity,0,.3),h=r.uid;er.pattern(e,"point",t,h,o,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,x;p==="horizontal"?(y={x:i.start,y:0},x={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},x={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),x.x=r._xA.c2p(x.x===void 0?r._extremes.x.max[0].val:x.x,!0),x.y=r._yA.c2p(x.y===void 0?r._extremes.y.max[0].val:x.y,!0),e.call(qS,t,m,"linear",i.colorscale,"fill",y,x,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(er.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(ha.fill,r.fillcolor)}er.singleFillStyle=function(e,r){var t=xa.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};CS(e,n,r,!1)};er.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=xa.select(this);a[0].trace&&CS(n,a[0].trace,r,t)})};var yS=mS();er.symbolNames=[];er.symbolFuncs=[];er.symbolBackOffs=[];er.symbolNeedLines={};er.symbolNoDot={};er.symbolNoFill={};er.symbolList=[];Object.keys(yS).forEach(function(e){var r=yS[e],t=r.n;er.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),er.symbolNames[t]=e,er.symbolFuncs[t]=r.f,er.symbolBackOffs[t]=r.backoff||0,r.needLine&&(er.symbolNeedLines[t]=!0),r.noDot?er.symbolNoDot[t]=!0:er.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(er.symbolNoFill[t]=!0)});var vue=er.symbolNames.length,due="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";er.symbolNumber=function(e){if(Co(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=er.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=vue||e>=400?0:Math.floor(Math.max(e,0))};function LS(e,r,t,a){var n=e%100;return er.symbolFuncs[n](r,t,a)+(e>=200?due:"")}var gS=rue("~f"),SS={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}};er.gradient=function(e,r,t,a,n,i){var l=SS[a];return qS(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function qS(e,r,t,a,n,i,l,o,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),h=0;h<f;h++)c.reversed?v[f-1-h]=[gS((1-n[h][0])*100),n[h][1]]:v[h]=[gS(n[h][0]*100),n[h][1]];var p=r._fullLayout,m="g"+p._uid+"-"+t,y=p._defs.select(".gradients").selectAll("#"+m).data([a+v.join(";")],ot.identity);y.exit().remove(),y.enter().append(c.node).each(function(){var x=xa.select(this);c.attrs&&x.attr(c.attrs),x.attr("id",m);var _=x.selectAll("stop").data(v);_.exit().remove(),_.enter().append("stop"),_.each(function(w){xa.select(this).attr({offset:w[0]+"%","stop-color":ha.rgb(w[1]),"stop-opacity":ha.parse(w[1]).alpha})})}),e.style(i,vb(m,r)).style(i+"-opacity",null),e.classed("gradient_filled",!0)}er.pattern=function(e,r,t,a,n,i,l,o,s,u,f,c){var v=r==="legend";o&&(s==="overlay"?(u=o,f=ha.contrast(u)):(u=void 0,f=o));var h=t._fullLayout,p="p"+h._uid+"-"+a,m,y,x=function(N,I,H,O,G){return O+(G-O)*(N-I)/(H-I)},_,w,b,M,k={},A=ha.rgb(f),S=ha.parse(f).alpha,D=c*S;switch(n){case"/":m=i*Math.sqrt(2),y=i*Math.sqrt(2),_="M-"+m/4+","+y/4+"l"+m/2+",-"+y/2+"M0,"+y+"L"+m+",0M"+m/4*3+","+y/4*5+"l"+m/2+",-"+y/2,w=l*i,M="path",k={d:_,opacity:D,stroke:A,"stroke-width":w+"px"};break;case"\\":m=i*Math.sqrt(2),y=i*Math.sqrt(2),_="M"+m/4*3+",-"+y/4+"l"+m/2+","+y/2+"M0,0L"+m+","+y+"M-"+m/4+","+y/4*3+"l"+m/2+","+y/2,w=l*i,M="path",k={d:_,opacity:D,stroke:A,"stroke-width":w+"px"};break;case"x":m=i*Math.sqrt(2),y=i*Math.sqrt(2),_="M-"+m/4+","+y/4+"l"+m/2+",-"+y/2+"M0,"+y+"L"+m+",0M"+m/4*3+","+y/4*5+"l"+m/2+",-"+y/2+"M"+m/4*3+",-"+y/4+"l"+m/2+","+y/2+"M0,0L"+m+","+y+"M-"+m/4+","+y/4*3+"l"+m/2+","+y/2,w=i-i*Math.sqrt(1-l),M="path",k={d:_,opacity:D,stroke:A,"stroke-width":w+"px"};break;case"|":m=i,y=i,M="path",_="M"+m/2+",0L"+m/2+","+y,w=l*i,M="path",k={d:_,opacity:D,stroke:A,"stroke-width":w+"px"};break;case"-":m=i,y=i,M="path",_="M0,"+y/2+"L"+m+","+y/2,w=l*i,M="path",k={d:_,opacity:D,stroke:A,"stroke-width":w+"px"};break;case"+":m=i,y=i,M="path",_="M"+m/2+",0L"+m/2+","+y+"M0,"+y/2+"L"+m+","+y/2,w=i-i*Math.sqrt(1-l),M="path",k={d:_,opacity:D,stroke:A,"stroke-width":w+"px"};break;case".":m=i,y=i,l<Math.PI/4?b=Math.sqrt(l*i*i/Math.PI):b=x(l,Math.PI/4,1,i/2,i/Math.sqrt(2)),M="circle",k={cx:m/2,cy:y/2,r:b,opacity:D,fill:A};break;default:m=i,y=i,M="path",k={d:n,opacity:D,fill:A};break}var E=[n||"noSh",u||"noBg",f||"noFg",i,l].join(";"),R=h._defs.select(".patterns").selectAll("#"+p).data([E],ot.identity);R.exit().remove(),R.enter().append("pattern").each(function(){var N=xa.select(this);if(N.attr({id:p,width:m+"px",height:y+"px",patternUnits:"userSpaceOnUse",patternTransform:v?"scale(0.8)":""}),u){var I=ha.rgb(u),H=ha.parse(u).alpha,O=N.selectAll("rect").data([0]);O.exit().remove(),O.enter().append("rect").attr({width:m+"px",height:y+"px",fill:I,"fill-opacity":H})}var G=N.selectAll(M).data([0]);G.exit().remove(),G.enter().append(M).attr(k)}),e.style("fill",vb(p,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};er.initGradients=function(e){var r=e._fullLayout,t=ot.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),xa.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};er.initPatterns=function(e){var r=e._fullLayout,t=ot.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),xa.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};er.getPatternAttr=function(e,r,t){return e&&ot.isArrayOrTypedArray(e)?r<e.length?e[r]:t:e};er.pointStyle=function(e,r,t,a){if(e.size()){var n=er.makePointStyleFns(r);e.each(function(i){er.singlePointStyle(i,xa.select(this),r,n,t,a)})}};er.singlePointStyle=function(e,r,t,a,n,i){var l=t.marker,o=l.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?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=er.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=hb(e,t),c=db(e,t);r.attr("d",LS(u,s,f,c))}var v=!1,h,p,m;if(e.so)m=o.outlierwidth,p=o.outliercolor,h=l.outliercolor;else{var y=(o||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):ot.isArrayOrTypedArray(o.color)?p=ha.defaultLine:p=o.color,ot.isArrayOrTypedArray(l.color)&&(h=ha.defaultLine,v=!0),"mc"in e?h=e.mcc=a.markerScale(e.mc):h=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(h=a.selectedColorFn(e))}let x=e.mld||(o||{}).dash;if(x&&er.dashLine(r,x,m),e.om)r.call(ha.stroke,h).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var _=l.gradient,w=e.mgt;w?v=!0:w=_&&_.type,ot.isArrayOrTypedArray(w)&&(w=w[0],SS[w]||(w=0));var b=l.pattern,M=er.getPatternAttr,k=b&&(M(b.shape,e.i,"")||M(b.path,e.i,""));if(w&&w!=="none"){var A=e.mgc;A?v=!0:A=_.color;var S=t.uid;v&&(S+="-"+e.i),er.gradient(r,n,S,w,[[0,A],[1,h]],"fill")}else if(k){var D=!1,E=b.fgcolor;!E&&i&&i.color&&(E=i.color,D=!0);var R=M(E,e.i,i&&i.color||null),N=M(b.bgcolor,e.i,null),I=b.fgopacity,H=M(b.size,e.i,8),O=M(b.solidity,e.i,.3);D=D||e.mcc||ot.isArrayOrTypedArray(b.shape)||ot.isArrayOrTypedArray(b.path)||ot.isArrayOrTypedArray(b.bgcolor)||ot.isArrayOrTypedArray(b.fgcolor)||ot.isArrayOrTypedArray(b.size)||ot.isArrayOrTypedArray(b.solidity);var G=t.uid;D&&(G+="-"+e.i),er.pattern(r,"point",n,G,k,H,O,e.mcc,b.fillmode,N,R,I)}else ot.isArrayOrTypedArray(h)?ha.fill(r,h[e.i]):ha.fill(r,h);m&&ha.stroke(r,p)}};er.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=er.tryColorscale(t,""),r.lineScale=er.tryColorscale(t,"line"),X1.traceIs(e,"symbols")&&(r.ms2mrc=lue.isBubble(e)?oue(e):function(){return(t.size||6)/2}),e.selectedpoints&&ot.extendFlat(r,er.makeSelectedPointStyleFns(e)),r};er.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,c=u!==void 0;(ot.isArrayOrTypedArray(o)||f||c)&&(r.selectedOpacityFn=function(b){var M=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:M:c?u:kS*M});var v=n.color,h=i.color,p=l.color;(h||p)&&(r.selectedColorFn=function(b){var M=b.mcc||v;return b.selected?h||M:p||M});var m=n.size,y=i.size,x=l.size,_=y!==void 0,w=x!==void 0;return X1.traceIs(e,"symbols")&&(_||w)&&(r.selectedSizeFn=function(b){var M=b.mrc||m/2;return b.selected?_?y/2:M:w?x/2:M}),r};er.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var c=f.tc||o;return f.selected?s||c:u||(s?c:ha.addOpacity(c,kS))},r};er.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){ha.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",LS(er.symbolNumber(o),s,hb(l,r),db(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=xa.select(this),o=0;o<n.length;o++)n[o](l,i)})}};er.tryColorscale=function(e,r){var t=r?ot.nestedProperty(e,r).get():e;if(t){var a=t.color;if((t.colorscale||t._colorAx)&&ot.isArrayOrTypedArray(a))return tue.makeColorScaleFuncFromTrace(t)}return ot.identity};var sb={start:1,end:-1,middle:0,bottom:1,top:-1};function DS(e,r,t,a,n){var i=xa.select(e.node().parentNode),l=r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle",o=r.indexOf("left")!==-1?"end":r.indexOf("right")!==-1?"start":"middle",s=a?a/.8+1:0,u=(W1.lineCount(e)-1)*iue+1,f=sb[o]*s,c=t*.75+sb[l]*s+(sb[l]-1)*u*t/2;e.attr("text-anchor",o),n||i.attr("transform",iv(f,c))}function ES(e,r){var t=e.ts||r.textfont.size;return Co(t)&&t>0?t:0}er.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=er.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=xa.select(this),u=i?ot.extractOption(o,r,"txt","texttemplate"):ot.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(o,r,l):{},v={};sue(v,r,o.i),u=ot.texttemplateString({data:[v,o,r._meta],fallback:r.texttemplatefallback,labels:c,locale:l._d3locale,template:u})}var h=o.tp||r.textposition,p=ES(o,r),m=a?a(o):o.tc||r.textfont.color;s.call(er.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:p,color:m}).text(u).call(W1.convertToTspans,t).call(DS,h,p,o.mrc)})}};er.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedTextStyleFns(r);e.each(function(a){var n=xa.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=ES(a,r);ha.fill(n,i);var s=X1.traceIs(r,"bar-like");DS(n,l,o,a.mrc2||a.mrc,s)})}};var bS=.5;er.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(V1(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};er.smoothclosed=function(e,r){if(e.length<3)return"M"+e.join("L")+"Z";var t="M"+e[0],a=e.length-1,n=[V1(e[a],e[0],e[1],r)],i;for(i=1;i<a;i++)n.push(V1(e[i-1],e[i],e[i+1],r));for(n.push(V1(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 PS,RS;function If(e,r,t){return t&&(e=zS(e)),r?Us(e[1]):Gs(e[0])}function Gs(e){var r=xa.round(e,2);return PS=r,r}function Us(e){var r=xa.round(e,2);return RS=r,r}function V1(e,r,t,a){var n=e[0]-r[0],i=e[1]-r[1],l=t[0]-r[0],o=t[1]-r[1],s=Math.pow(n*n+i*i,bS/2),u=Math.pow(l*l+o*o,bS/2),f=(u*u*n-s*s*l)*a,c=(u*u*i-s*s*o)*a,v=3*u*(s+u),h=3*s*(s+u);return[[Gs(r[0]+(v&&f/v)),Us(r[1]+(v&&c/v))],[Gs(r[0]-(h&&f/h)),Us(r[1]-(h&&c/h))]]}var hue={hv:function(e,r,t){return"H"+Gs(r[0])+"V"+If(r,1,t)},vh:function(e,r,t){return"V"+Us(r[1])+"H"+If(r,0,t)},hvh:function(e,r,t){return"H"+Gs((e[0]+r[0])/2)+"V"+Us(r[1])+"H"+If(r,0,t)},vhv:function(e,r,t){return"V"+Us((e[1]+r[1])/2)+"H"+Gs(r[0])+"V"+If(r,1,t)}},pue=function(e,r,t){return"L"+If(r,0,t)+","+If(r,1,t)};er.steps=function(e){var r=hue[e]||pue;return function(t){for(var a="M"+Gs(t[0][0])+","+Us(t[0][1]),n=t.length,i=1;i<n;i++)a+=r(t[i-1],t[i],i===n-1);return a}};function zS(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 l=ot.isArrayOrTypedArray(t),o=e,s=r?r[0]:PS||0,u=r?r[1]:RS||0,f=o[0],c=o[1],v=f-s,h=c-u,p=Math.atan2(h,v),m=l?t[i]:t;if(m==="auto"){var y=o.i;a.type==="scatter"&&y--;var x=o.marker,_=x.symbol;ot.isArrayOrTypedArray(_)&&(_=_[y]);var w=x.size;ot.isArrayOrTypedArray(w)&&(w=w[y]),m=x?er.symbolBackOffs[er.symbolNumber(_)]*w:0,m+=er.getMarkerStandoff(n[y],a)||0}var b=f-m*Math.cos(p),M=c-m*Math.sin(p);(b<=f&&b>=s||b>=f&&b<=s)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[b,M])}return e}er.applyBackoff=zS;er.makeTester=function(){var e=ot.ensureSingleById(xa.select("body"),"svg","js-plotly-tester",function(t){t.attr(aue.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=ot.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});er.tester=e,er.testref=r};er.savedBBoxes={};var ub=0,mue=1e4;er.bBox=function(e,r,t){t||(t=xS(e));var a;if(t){if(a=er.savedBBoxes[t],a)return ot.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=xS(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=er.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=er.savedBBoxes[t],a)return ot.extendFlat({},a)}}var u,f;r?u=e:(f=er.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),xa.select(u).attr("transform",null).call(W1.positionText,0,0);var c=u.getBoundingClientRect(),v=er.testref.node().getBoundingClientRect();r||f.removeChild(u);var h={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return ub>=mue&&(er.savedBBoxes={},ub=0),t&&(er.savedBBoxes[t]=h),ub++,ot.extendFlat({},h)};function xS(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}er.setClipUrl=function(e,r,t){e.attr("clip-path",vb(r,t))};function vb(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}er.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,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};er.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=iv(r,t),l=l.trim(),e[i]("transform",l),l};er.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,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};er.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var yue=/\s*sc.*/;er.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(yue,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var gue=/translate\([^)]*\)\s*$/;er.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=xa.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(gue);r===1&&t===1?a=[]:a=[iv(l,o),"scale("+r+","+t+")",iv(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function db(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}er.getMarkerStandoff=db;var nv=Math.atan2,Ys=Math.cos,Hf=Math.sin;function _S(e,r){var t=r[0],a=r[1];return[t*Ys(e)-a*Hf(e),t*Hf(e)+a*Ys(e)]}var wS,TS,MS,AS,fb,cb;function hb(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Co(t)||ot.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.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]),v=r._geo.project([u+1e-5,f]),h=nv(v[1]-n,v[0]-a),p=nv(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,x=f/180*Math.PI,_=wS/180*Math.PI,w=TS/180*Math.PI,b=_-y,M=Ys(w)*Hf(b),k=Hf(w)*Ys(x)-Ys(w)*Hf(x)*Ys(b);m=-nv(M,k)-Math.PI,wS=u,TS=f}var A=_S(h,[Ys(m),0]),S=_S(p,[Hf(m),0]);t=nv(A[1]+S[1],A[0]+S[0])/Math.PI*180,i==="previous"&&!(cb===r.uid&&e.i===fb+1)&&(t=null)}if(i==="previous"&&!r._geo)if(cb===r.uid&&e.i===fb+1&&Co(a)&&Co(n)){var D=a-MS,E=n-AS,R=r.line&&r.line.shape||"",N=R.slice(R.length-1);N==="h"&&(E=0),N==="v"&&(D=0),t+=nv(E,D)/Math.PI*180+90}else t=null}return MS=a,AS=n,fb=e.i,cb=r.uid,t}er.getMarkerAngle=hb});var lv=B((z9e,OS)=>{"use strict";var Of=Dr(),bue=Br(),xue=Gt(),pb=Mr(),Vs=Le(),FS=Vs.strTranslate,Z1=Vr(),J1=Ar(),Bf=da(),IS=yf(),_ue=za().OPPOSITE_SIDE,HS=/ [XY][0-9]* /,mb=1.6,yb=1.6;function wue(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,h=n.title,p=(h&&h.text?h.text:"").trim(),m=!1,y=h&&h.font?h.font:{},x=y.family,_=y.size,w=y.color,b=y.weight,M=y.style,k=y.variant,A=y.textcase,S=y.lineposition,D=y.shadow,E=t.subtitlePropName,R=!!E,N=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},H=(I.text||"").trim(),O=!1,G=1,Y=I.font,V=Y.family,U=Y.size,Z=Y.color,X=Y.weight,$=Y.style,ae=Y.variant,ie=Y.textcase,ve=Y.lineposition,K=Y.shadow,he;i==="title.text"?he="titleText":i.indexOf("axis")!==-1?he="axisTitleText":i.indexOf("colorbar")!==-1&&(he="colorbarTitleText");var oe=e._context.edits[he];function be(Ke,Xe){return Ke===void 0||Xe===void 0?!1:Ke.replace(HS," % ")===Xe.replace(HS," % ")}p===""?v=0:be(p,l)&&(oe||(p=""),v=.2,m=!0),R&&(H===""?G=0:be(H,N)&&(oe||(H=""),G=.2,O=!0)),t._meta?p=Vs.templateString(p,t._meta):a._meta&&(p=Vs.templateString(p,a._meta));var me=p||H||oe,ce;c||(c=Vs.ensureSingle(a._infolayer,"g","g-"+r),ce=a._hColorbarMoveTitle);var Me=c.selectAll("text."+r).data(me?[0]:[]);Me.enter().append("text"),Me.text(p).attr("class",r),Me.exit().remove();var De=null,Te=r+"-subtitle",Pe=H||oe;if(R&&(De=c.selectAll("text."+Te).data(Pe?[0]:[]),De.enter().append("text"),De.text(H).attr("class",Te),De.exit().remove()),!me)return c;function Se(Ke,Xe){Vs.syncOrAsync([ke,ze],{title:Ke,subtitle:Xe})}function ke(Ke){var Xe=Ke.title,Ae=Ke.subtitle,Re;!f&&ce&&(f={}),f?(Re="",f.rotate&&(Re+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ce)&&(Re+=FS(0,(f.offset||0)-(ce||0)))):Re=null,Xe.attr("transform",Re);function Qe(pe){if(pe){var we=Of.select(pe.node().parentNode).select("."+Te);if(!we.empty()){var Oe=pe.node().getBBox();if(Oe.height){var We=Oe.y+Oe.height+mb*U;we.attr("y",We)}}}}if(Xe.style("opacity",v*J1.opacity(w)).call(Z1.font,{color:J1.rgb(w),size:Of.round(_,2),family:x,weight:b,style:M,variant:k,textcase:A,shadow:D,lineposition:S}).attr(u).call(Bf.convertToTspans,e,Qe),Ae&&!Ae.empty()){var re=c.select("."+r+"-math-group"),ye=Xe.node().getBBox(),Ve=re.node()?re.node().getBBox():void 0,dr=Ve?Ve.y+Ve.height+mb*U:ye.y+ye.height+yb*U,Ee=Vs.extendFlat({},u,{y:dr});Ae.attr("transform",Re),Ae.style("opacity",G*J1.opacity(Z)).call(Z1.font,{color:J1.rgb(Z),size:Of.round(U,2),family:V,weight:X,style:$,variant:ae,textcase:ie,shadow:K,lineposition:ve}).attr(Ee).call(Bf.convertToTspans,e)}return xue.previousPromises(e)}function ze(Ke){var Xe=Ke.title,Ae=Of.select(Xe.node().parentNode);if(s&&s.selection&&s.side&&p){Ae.attr("transform",null);var Re=_ue[s.side],Qe=s.side==="left"||s.side==="top"?-1:1,re=bue(s.pad)?s.pad:2,ye=Z1.bBox(Ae.node()),Ve={t:0,b:0,l:0,r:0},dr=e._fullLayout._reservedMargin;for(var Ee in dr)for(var pe in dr[Ee]){var we=dr[Ee][pe];Ve[pe]=Math.max(Ve[pe],we)}var Oe={left:Ve.l,top:Ve.t,right:a.width-Ve.r,bottom:a.height-Ve.b},We=s.maxShift||Qe*(Oe[s.side]-ye[s.side]),Ie=0;if(We<0)Ie=We;else{var Ue=s.offsetLeft||0,ar=s.offsetTop||0;ye.left-=Ue,ye.right-=Ue,ye.top-=ar,ye.bottom-=ar,s.selection.each(function(){var ur=Z1.bBox(this);Vs.bBoxIntersect(ye,ur,re)&&(Ie=Math.max(Ie,Qe*(ur[s.side]-ye[Re])+re))}),Ie=Math.min(We,Ie),n._titleScoot=Math.abs(Ie)}if(Ie>0||We<0){var ir={left:[-Ie,0],right:[Ie,0],top:[0,-Ie],bottom:[0,Ie]}[s.side];Ae.attr("transform",FS(ir[0],ir[1]))}}}Me.call(Se,De);function Ge(Ke,Xe){Ke.text(Xe).on("mouseover.opacity",function(){Of.select(this).transition().duration(IS.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Of.select(this).transition().duration(IS.HIDE_PLACEHOLDER).style("opacity",0)})}if(oe&&(p?Me.on(".opacity",null):(Ge(Me,l),m=!0),Me.call(Bf.makeEditable,{gd:e}).on("edit",function(Ke){o!==void 0?pb.call("_guiRestyle",e,i,Ke,o):pb.call("_guiRelayout",e,i,Ke)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Se)}).on("input",function(Ke){this.text(Ke||" ").call(Bf.positionText,u.x,u.y)}),R)){if(R&&!p){var Ce=Me.node().getBBox(),$e=Ce.y+Ce.height+yb*U;De.attr("y",$e)}H?De.on(".opacity",null):(Ge(De,N),O=!0),De.call(Bf.makeEditable,{gd:e}).on("edit",function(Ke){pb.call("_guiRelayout",e,"title.subtitle.text",Ke)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Se)}).on("input",function(Ke){this.text(Ke||" ").call(Bf.positionText,De.attr("x"),De.attr("y"))})}return Me.classed("js-placeholder",m),De&&!De.empty()&&De.classed("js-placeholder",O),c}OS.exports={draw:wue,SUBTITLE_PADDING_EM:yb,SUBTITLE_PADDING_MATHJAX_EM:mb}});var ap=B((N9e,VS)=>{"use strict";var Tue=Dr(),Mue=tf().utcFormat,dt=Le(),Aue=dt.numberFormat,cl=Br(),Lo=dt.cleanNumber,kue=dt.ms2DateTime,BS=dt.dateTime2ms,vl=dt.ensureNumber,YS=dt.isArrayOrTypedArray,So=Dt(),$1=So.FP_SAFE,Bi=So.BADNUM,Cue=So.LOG_CLIP,Lue=So.ONEWEEK,K1=So.ONEDAY,Q1=So.ONEHOUR,GS=So.ONEMIN,US=So.ONESEC,j1=na(),tp=ba(),ep=tp.HOUR_PATTERN,rp=tp.WEEKDAY_PATTERN;function ov(e){return Math.pow(10,e)}function gb(e){return e!=null}VS.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,M){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&M&&r.range&&r.range.length===2){var k=r.range[0],A=r.range[1];return .5*(k+A-2*Cue*Math.abs(k-A))}else return Bi}function l(b,M,k,A){if((A||{}).msUTC&&cl(b))return+b;var S=BS(b,k||r.calendar);if(S===Bi)if(cl(b)){b=+b;var D=Math.floor(dt.mod(b+.05,1)*10),E=Math.round(b-D/10);S=BS(new Date(E))+D/10}else return Bi;return S}function o(b,M,k){return kue(b,M,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(gb(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var M=r._categories.length-1;return r._categoriesMap[b]=M,M}return Bi}function f(b,M){for(var k=new Array(M),A=0;A<M;A++){var S=(b[0]||[])[A],D=(b[1]||[])[A];k[A]=c([S,D])}return k}function c(b){if(r._categoriesMap)return r._categoriesMap[b]}function v(b){var M=c(b);if(M!==void 0)return M;if(cl(b))return+b}function h(b){return cl(b)?+b:c(b)}function p(b,M,k){return Tue.round(k+M*b,2)}function m(b,M,k){return(b-k)/M}var y=function(M){return cl(M)?p(M,r._m,r._b):Bi},x=function(b){return m(b,r._m,r._b)};if(r.rangebreaks){var _=n==="y";y=function(b){if(!cl(b))return Bi;var M=r._rangebreaks.length;if(!M)return p(b,r._m,r._b);var k=_;r.range[0]>r.range[1]&&(k=!k);for(var A=k?-1:1,S=A*b,D=0,E=0;E<M;E++){var R=A*r._rangebreaks[E].min,N=A*r._rangebreaks[E].max;if(S<R)break;if(S>N)D=E+1;else{D=S<(R+N)/2?E:E+1;break}}var I=r._B[D]||0;return isFinite(I)?p(b,r._m2,I):0},x=function(b){var M=r._rangebreaks.length;if(!M)return m(b,r._m,r._b);for(var k=0,A=0;A<M&&!(b<r._rangebreaks[A].pmin);A++)b>r._rangebreaks[A].pmax&&(k=A+1);return m(b,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:vl,r.l2c=r.type==="log"?ov:vl,r.l2p=y,r.p2l=x,r.c2p=r.type==="log"?function(b,M){return y(i(b,M))}:y,r.p2c=r.type==="log"?function(b){return ov(x(b))}:x,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Lo,r.c2d=r.c2r=r.l2d=r.l2r=vl,r.d2p=r.r2p=function(b){return r.l2p(Lo(b))},r.p2d=r.p2r=x,r.cleanPos=vl):r.type==="log"?(r.d2r=r.d2l=function(b,M){return i(Lo(b),M)},r.r2d=r.r2c=function(b){return ov(Lo(b))},r.d2c=r.r2l=Lo,r.c2d=r.l2r=vl,r.c2r=i,r.l2d=ov,r.d2p=function(b,M){return r.l2p(r.d2r(b,M))},r.p2d=function(b){return ov(x(b))},r.r2p=function(b){return r.l2p(Lo(b))},r.p2r=x,r.cleanPos=vl):r.type==="date"?(r.d2r=r.r2d=dt.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(b,M,k){return r.l2p(l(b,0,k))},r.p2d=r.p2r=function(b,M,k){return o(x(b),M,k)},r.cleanPos=function(b){return dt.cleanDate(b,Bi,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var M=h(b);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=vl,r.r2l=h,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:vl(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var M=v(b);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=vl,r.r2l=v,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:vl(b)},r.setupMultiCategory=function(b){var M=r._traceIndices,k,A,S=r._matchGroup;if(S&&r._categories.length===0){for(var D in S)if(D!==a){var E=t[j1.id2name(D)];M=M.concat(E._traceIndices)}}var R=[[0,{}],[0,{}]],N=[];for(k=0;k<M.length;k++){var I=b[M[k]];if(n in I){var H=I[n],O=I._length||dt.minRowLength(H);if(YS(H[0])&&YS(H[1]))for(A=0;A<O;A++){var G=H[0][A],Y=H[1][A];gb(G)&&gb(Y)&&(N.push([G,Y]),G in R[0][1]||(R[0][1][G]=R[0][0]++),Y in R[1][1]||(R[1][1][Y]=R[1][0]++))}}}for(N.sort(function(V,U){var Z=R[0][1],X=Z[V[0]]-Z[U[0]];if(X)return X;var $=R[1][1];return $[V[1]]-$[U[1]]}),k=0;k<N.length;k++)u(N[k])}),r.fraction2r=function(b){var M=r.r2l(r.range[0]),k=r.r2l(r.range[1]);return r.l2r(M+b*(k-M))},r.r2fraction=function(b){var M=r.r2l(r.range[0]),k=r.r2l(r.range[1]);return(r.r2l(b)-M)/(k-M)},r.limitRange=function(b){var M=r.minallowed,k=r.maxallowed;if(!(M===void 0&&k===void 0)){b||(b="range");var A=dt.nestedProperty(r,b).get(),S=dt.simpleMap(A,r.r2l),D=S[1]<S[0];D&&S.reverse();var E=dt.simpleMap([M,k],r.r2l);if(M!==void 0&&S[0]<E[0]&&(A[D?1:0]=M,S[0]=E[0]),k!==void 0&&S[1]>E[1]&&(A[D?0:1]=k,S[1]=E[1]),S[0]>=S[1])if(M!==void 0){var R=E[0]+1;k!==void 0&&(R=Math.min(R,E[1])),A[D?0:1]=r.l2r(R)}else k!==void 0&&(A[D?1:0]=r.l2r(E[1]-1))}},r.cleanRange=function(b,M){r._cleanRange(b,M),r.limitRange(b)},r._cleanRange=function(b,M){M||(M={}),b||(b="range");var k=dt.nestedProperty(r,b).get(),A,S;if(r.type==="date"?S=dt.dfltRange(r.calendar):n==="y"?S=tp.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=M.dfltRange||tp.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!k||k.length!==2){dt.nestedProperty(r,b).set(S);return}var D=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=dt.cleanDate(k[0],Bi,r.calendar),k[1]=dt.cleanDate(k[1],Bi,r.calendar)),A=0;A<2;A++)if(r.type==="date"){if(!dt.isDateTime(k[A],r.calendar)){r[b]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var R=dt.constrain(r.r2l(k[0]),dt.MIN_MS+1e3,dt.MAX_MS-1e3);k[0]=r.l2r(R-1e3),k[1]=r.l2r(R+1e3);break}}else{if(!cl(k[A]))if(!(D||E)&&cl(k[1-A]))k[A]=k[1-A]*(A?10:.1);else{r[b]=S;break}if(k[A]<-$1?k[A]=-$1:k[A]>$1&&(k[A]=$1),k[0]===k[1]){var N=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=N,k[1]+=N}}},r.setScale=function(b){var M=t._size;if(r.overlaying){var k=j1.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var A=b&&r._r?"_r":"range",S=r.calendar;r.cleanRange(A);var D=r.r2l(r[A][0],S),E=r.r2l(r[A][1],S),R=n==="y";if(R?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-E),r._b=-r._m*E):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(E-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var N,I;if(r._rangebreaks=r.locateBreaks(Math.min(D,E),Math.max(D,E)),r._rangebreaks.length){for(N=0;N<r._rangebreaks.length;N++)I=r._rangebreaks[N],r._lBreaks+=Math.abs(I.max-I.min);var H=R;D>E&&(H=!H),H&&r._rangebreaks.reverse();var O=H?-1:1;for(r._m2=O*r._length/(Math.abs(E-D)-r._lBreaks),r._B.push(-r._m2*(R?E:D)),N=0;N<r._rangebreaks.length;N++)I=r._rangebreaks[N],r._B.push(r._B[r._B.length-1]-O*r._m2*(I.max-I.min));for(N=0;N<r._rangebreaks.length;N++)I=r._rangebreaks[N],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(b){var M=r.rangebreaks||[],k,A,S,D,E;M._cachedPatterns||(M._cachedPatterns=M.map(function(Z){return Z.enabled&&Z.bounds?dt.simpleMap(Z.bounds,Z.pattern?Lo:r.d2c):null})),M._cachedValues||(M._cachedValues=M.map(function(Z){return Z.enabled&&Z.values?dt.simpleMap(Z.values,r.d2c).sort(dt.sorterAsc):null}));for(var R=0;R<M.length;R++){var N=M[R];if(N.enabled){if(N.bounds){var I=N.pattern;switch(k=M._cachedPatterns[R],A=k[0],S=k[1],I){case rp:E=new Date(b),D=E.getUTCDay(),A>S&&(S+=7,D<A&&(D+=7));break;case ep:E=new Date(b);var H=E.getUTCHours(),O=E.getUTCMinutes(),G=E.getUTCSeconds(),Y=E.getUTCMilliseconds();D=H+(O/60+G/3600+Y/36e5),A>S&&(S+=24,D<A&&(D+=24));break;case"":D=b;break}if(D>=A&&D<S)return Bi}else for(var V=M._cachedValues[R],U=0;U<V.length;U++)if(A=V[U],S=A+N.dvalue,b>=A&&b<S)return Bi}}return b},r.locateBreaks=function(b,M){var k,A,S,D,E=[];if(!r.rangebreaks)return E;var R=r.rangebreaks.slice().sort(function($,ae){return $.pattern===rp&&ae.pattern===ep?-1:ae.pattern===rp&&$.pattern===ep?1:0}),N=function($,ae){if($=dt.constrain($,b,M),ae=dt.constrain(ae,b,M),$!==ae){for(var ie=!0,ve=0;ve<E.length;ve++){var K=E[ve];$<K.max&&ae>=K.min&&($<K.min&&(K.min=$),ae>K.max&&(K.max=ae),ie=!1)}ie&&E.push({min:$,max:ae})}};for(k=0;k<R.length;k++){var I=R[k];if(I.enabled)if(I.bounds){var H=b,O=M;I.pattern&&(H=Math.floor(H)),A=dt.simpleMap(I.bounds,I.pattern?Lo:r.r2l),S=A[0],D=A[1];var G=new Date(H),Y,V;switch(I.pattern){case rp:V=Lue,Y=((D<S?7:0)+(D-S))*K1,H+=S*K1-(G.getUTCDay()*K1+G.getUTCHours()*Q1+G.getUTCMinutes()*GS+G.getUTCSeconds()*US+G.getUTCMilliseconds());break;case ep:V=K1,Y=((D<S?24:0)+(D-S))*Q1,H+=S*Q1-(G.getUTCHours()*Q1+G.getUTCMinutes()*GS+G.getUTCSeconds()*US+G.getUTCMilliseconds());break;default:H=Math.min(A[0],A[1]),O=Math.max(A[0],A[1]),V=O-H,Y=V}for(var U=H;U<O;U+=V)N(U,U+Y)}else for(var Z=dt.simpleMap(I.values,r.d2c),X=0;X<Z.length;X++)S=Z[X],D=S+I.dvalue,N(S,D)}return E.sort(function($,ae){return $.min-ae.min}),E},r.makeCalcdata=function(b,M,k){var A,S,D,E,R=r.type,N=R==="date"&&b[M+"calendar"];if(M in b){if(A=b[M],E=b._length||dt.minRowLength(A),dt.isTypedArray(A)&&(R==="linear"||R==="log")){if(E===A.length)return A;if(A.subarray)return A.subarray(0,E)}if(R==="multicategory")return f(A,E);for(S=new Array(E),D=0;D<E;D++)S[D]=r.d2c(A[D],0,N,k)}else{var I=M+"0"in b?r.d2c(b[M+"0"],0,N):0,H=b["d"+M]?Number(b["d"+M]):1;for(A=b[{x:"y",y:"x"}[M]],E=b._length||A.length,S=new Array(E),D=0;D<E;D++)S[D]=I+D*H}if(r.rangebreaks)for(D=0;D<E;D++)S[D]=r.maskBreaks(S[D]);return S},r.isValidRange=function(b,M){return Array.isArray(b)&&b.length===2&&(M&&b[0]===null||cl(r.r2l(b[0])))&&(M&&b[1]===null||cl(r.r2l(b[1])))},r.getAutorangeDflt=function(b,M){var k=!r.isValidRange(b,"nullOk");return k&&M&&M.reverseDflt?k="reversed":b&&(b[0]===null&&b[1]===null?k=!0:b[0]===null&&b[1]!==null?k="min":b[0]!==null&&b[1]===null&&(k="max")),k},r.isReversed=function(){var b=r.autorange;return b==="reversed"||b==="min reversed"||b==="max reversed"},r.isPtWithinRange=function(b,M){var k=r.c2l(b[n],null,M),A=r.r2l(r.range[0]),S=r.r2l(r.range[1]);return A<S?A<=k&&k<=S:S<=k&&k<=A},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var b=r._matchGroup;if(b){var M=null,k=null;for(var A in b){var S=t[j1.id2name(A)];if(S._categories){M=S._categories,k=S._categoriesMap;break}}M&&k?(r._categories=M,r._categoriesMap=k):r._emptyCategories()}else r._emptyCategories();if(r._initialCategories)for(var D=0;D<r._initialCategories.length;D++)u(r._initialCategories[D])},r.sortByInitialCategories=function(){var b=[];if(r._emptyCategories(),r._initialCategories)for(var M=0;M<r._initialCategories.length;M++)u(r._initialCategories[M]);b=b.concat(r._traceIndices);var k=r._matchGroup;for(var A in k)if(a!==A){var S=t[j1.id2name(A)];S._categories=r._categories,S._categoriesMap=r._categoriesMap,b=b.concat(S._traceIndices)}return b};var w=t._d3locale;r.type==="date"&&(r._dateFormat=w?w.timeFormat:Mue,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=w?w.numberFormat:Aue,delete r._minDtick,delete r._forceTick0}});var xb=B((F9e,JS)=>{"use strict";var XS=Br(),bb=Le(),Sue=Dt().BADNUM,np=bb.isArrayOrTypedArray,que=bb.isDateTime,Due=bb.cleanNumber,WS=Math.round;JS.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(np(n)&&!n.length)return"-";if(!i&&Nue(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;o<n.length;o++)if(np(n[o]))for(var s=0;s<n[o].length;s++)l.push(n[o][s]);n=l}if(Rue(n,t))return"date";var u=a.autotypenumbers!=="strict";return zue(n,u)?"category":Pue(n,u)?"linear":"-"};function Eue(e,r){return r?XS(e):typeof e=="number"}function Pue(e,r){for(var t=e.length,a=0;a<t;a++)if(Eue(e[a],r))return!0;return!1}function Rue(e,r){for(var t=e.length,a=ZS(t),n=0,i=0,l={},o=0;o<t;o+=a){var s=WS(o),u=e[s],f=String(u);l[f]||(l[f]=1,que(u,r)&&n++,XS(u)&&i++)}return n>i*2}function ZS(e){return Math.max(1,(e-1)/1e3)}function zue(e,r){for(var t=e.length,a=ZS(t),n=0,i=0,l={},o=0;o<t;o+=a){var s=WS(o),u=e[s],f=String(u);if(!l[f]){l[f]=1;var c=typeof u;c==="boolean"?i++:(r?Due(u)!==Sue:c==="number")?n++:c==="string"&&i++}}return i>n*2}function Nue(e){return np(e[0])&&np(e[1])}});var sv=B((I9e,aq)=>{"use strict";var Fue=Dr(),jS=Br(),qo=Le(),ip=Dt().FP_SAFE,Iue=Mr(),Hue=Vr(),eq=na(),Oue=eq.getFromId,Bue=eq.isLinked;aq.exports={applyAutorangeOptions:tq,getAutoRange:_b,makePadFn:wb,doAutoRange:Gue,findExtremes:Uue,concatExtremes:Ab};function _b(e,r){var t,a,n=[],i=e._fullLayout,l=wb(i,r,0),o=wb(i,r,1),s=Ab(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return qo.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t<u.length&&c===v;t++)c=Math.min(c,u[t].val);for(t=1;t<f.length&&c===v;t++)v=Math.max(v,f[t].val);var h=r.autorange,p=h==="reversed"||h==="min reversed"||h==="max reversed";if(!p&&r.range){var m=qo.simpleMap(r.range,r.r2l);p=m[1]<m[0]}r.autorange==="reversed"&&(r.autorange=!0);var y=r.rangemode,x=y==="tozero",_=y==="nonnegative",w=r._length,b=w/10,M=0,k,A,S,D,E,R;for(t=0;t<u.length;t++)for(k=u[t],a=0;a<f.length;a++)A=f[a],R=A.val-k.val-$S(r,k.val,A.val),R>0&&(E=w-l(k)-o(A),E>b?R/E>M&&(S=k,D=A,M=R/E):R/w>M&&(S={val:k.val,nopad:1},D={val:A.val,nopad:1},M=R/w));function N(Y,V){return Math.max(Y,o(V))}if(c===v){var I=c-1,H=c+1;if(x)if(c===0)n=[0,1];else{var O=(c>0?f:u).reduce(N,0),G=c/(1-Math.min(.5,O/w));n=c>0?[0,G]:[G,0]}else _?n=[Math.max(0,I),Math.max(1,H)]:n=[I,H]}else x?(S.val>=0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):_&&(S.val-M*l(S)<0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),M=(D.val-S.val-$S(r,k.val,A.val))/(w-l(S)-o(D)),n=[S.val-M*l(S),D.val+M*o(D)];return n=tq(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),qo.simpleMap(n,r.l2r||Number)}function $S(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i<n.length;i++){var l=n[i];a+=l.max-l.min}return a}function wb(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 l=qo.simpleMap(r.range,r.r2l);i=l[1]<l[0]}i&&(t=!t)}var o=0;return Bue(e,r._id)||(o=Yue(e,r,t)),a=Math.max(o,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:o)}}var KS=3;function Yue(e,r,t){var a=0,n=r._id.charAt(0)==="x";for(var i in e._plots){var l=e._plots[i];if(!(r._id!==l.xaxis._id&&r._id!==l.yaxis._id)){var o=(n?l.yaxis:l.xaxis)||{};if((o.ticklabelposition||"").indexOf("inside")!==-1&&(!t&&(o.side==="left"||o.side==="bottom")||t&&(o.side==="top"||o.side==="right"))){if(o._vals){var s=qo.deg2rad(o._tickAngles[o._id+"tick"]||0),u=Math.abs(Math.cos(s)),f=Math.abs(Math.sin(s));if(!o._vals[0].bb){var c=o._id+"tick",v=o._selections[c];v.each(function(_){var w=Fue.select(this),b=w.select(".text-math-group");b.empty()&&(_.bb=Hue.bBox(w.node()))})}for(var h=0;h<o._vals.length;h++){var p=o._vals[h],m=p.bb;if(m){var y=2*KS+m.width,x=2*KS+m.height;a=Math.max(a,n?Math.max(y*u,x*f):Math.max(x*u,y*f))}}}o.ticks==="inside"&&o.ticklabelposition==="inside"&&(a+=o.ticklen||0)}}}return a}function Ab(e,r,t){var a=r._id,n=e._fullData,i=e._fullLayout,l=[],o=[],s,u,f;function c(y,x){for(s=0;s<x.length;s++){var _=y[x[s]],w=(_._extremes||{})[a];if(_.visible===!0&&w){for(u=0;u<w.min.length;u++)f=w.min[u],Tb(l,f.val,f.pad,{extrapad:f.extrapad});for(u=0;u<w.max.length;u++)f=w.max[u],Mb(o,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 v in r._matchGroup)if(v!==r._id){var h=Oue(e,v),p=Ab(e,h,!0),m=r._length/h._length;for(u=0;u<p.min.length;u++)f=p.min[u],Tb(l,f.val,f.pad*m,{extrapad:f.extrapad});for(u=0;u<p.max.length;u++)f=p.max[u],Mb(o,f.val,f.pad*m,{extrapad:f.extrapad})}}return{min:l,max:o}}function Gue(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():_b(e,r),r._r=r.range.slice(),r._rl=qo.simpleMap(r._r,r.r2l);var a=r._input,n={};n[r._attr+".range"]=r.range,n[r._attr+".autorange"]=r.autorange,Iue.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 l=i.rangeslider[r._name];l&&l.rangemode==="auto"&&(l.range=_b(e,r)),i._input.rangeslider[r._name]=qo.extendFlat({},l)}}function Uue(e,r,t){t||(t={}),e._m||e.setScale();var a=[],n=[],i=r.length,l=t.padded||!1,o=t.tozero&&(e.type==="linear"||e.type==="-"),s=e.type==="log",u=!1,f=t.vpadLinearized||!1,c,v,h,p,m,y,x,_,w;function b(N){if(Array.isArray(N))return u=!0,function(H){return Math.max(Number(N[H]||0),0)};var I=Math.max(Number(N||0),0);return function(){return I}}var M=b((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),k=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),A=b(t.vpadplus||t.vpad),S=b(t.vpadminus||t.vpad);if(!u){if(_=1/0,w=-1/0,s)for(c=0;c<i;c++)v=r[c],v<_&&v>0&&(_=v),v>w&&v<ip&&(w=v);else for(c=0;c<i;c++)v=r[c],v<_&&v>-ip&&(_=v),v>w&&v<ip&&(w=v);r=[_,w],i=2}var D={tozero:o,extrapad:l};function E(N){h=r[N],jS(h)&&(y=M(N),x=k(N),f?(p=e.c2l(h)-S(N),m=e.c2l(h)+A(N)):(_=h-S(N),w=h+A(N),s&&_<w/10&&(_=w/10),p=e.c2l(_),m=e.c2l(w)),o&&(p=Math.min(0,p),m=Math.max(0,m)),QS(p)&&Tb(a,p,x,D),QS(m)&&Mb(n,m,y,D))}var R=Math.min(6,i);for(c=0;c<R;c++)E(c);for(c=i-1;c>=R;c--)E(c);return{min:a,max:n,opts:t}}function Tb(e,r,t,a){rq(e,r,t,a,Vue)}function Mb(e,r,t,a){rq(e,r,t,a,Xue)}function rq(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s<e.length&&o;s++){var u=e[s];if(n(u.val,r)&&u.pad>=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function QS(e){return jS(e)&&Math.abs(e)<ip}function Vue(e,r){return e<=r}function Xue(e,r){return e>=r}function Wue(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&lp(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&lp(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Zue(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&lp(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&lp(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function lp(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function tq(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),l=r.d2l(a);qo.isArrayOrTypedArray(n)||(n=[n]);for(var o=0;o<n.length;o++){var s=r.d2l(n[o]);i>=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=Wue(t,r),a=Zue(a,r),[t,a]}});var Jr=B((O9e,kq)=>{"use strict";var ui=Dr(),Qt=Br(),Yf=Gt(),fv=Mr(),kr=Le(),Gf=kr.strTranslate,Xs=da(),Jue=lv(),cv=Ar(),Gn=Vr(),$ue=Bn(),nq=W5(),H9e=ba(),Fa=Dt(),Kue=Fa.ONEMAXYEAR,up=Fa.ONEAVGYEAR,fp=Fa.ONEMINYEAR,Que=Fa.ONEMAXQUARTER,Sb=Fa.ONEAVGQUARTER,cp=Fa.ONEMINQUARTER,jue=Fa.ONEMAXMONTH,Uf=Fa.ONEAVGMONTH,vp=Fa.ONEMINMONTH,Un=Fa.ONEWEEK,rn=Fa.ONEDAY,Do=rn/2,hl=Fa.ONEHOUR,vv=Fa.ONEMIN,dp=Fa.ONESEC,efe=Fa.ONEMILLI,rfe=Fa.ONEMICROSEC,Ws=Fa.MINUS_SIGN,pp=Fa.BADNUM,qb={K:"zeroline"},Db={K:"gridline",L:"path"},Eb={K:"minor-gridline",L:"path"},pq={K:"tick",L:"path"},iq={K:"tick",L:"text"},lq={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},mp=za(),uv=mp.MID_SHIFT,Zs=mp.CAP_SHIFT,dv=mp.LINE_SPACING,tfe=mp.OPPOSITE_SIDE,hp=3,He=kq.exports={};He.setConvert=ap();var afe=xb(),pl=na(),nfe=pl.idSort,ife=pl.isLinked;He.id2name=pl.id2name;He.name2id=pl.name2id;He.cleanId=pl.cleanId;He.list=pl.list;He.listIds=pl.listIds;He.getFromId=pl.getFromId;He.getFromTrace=pl.getFromTrace;var mq=sv();He.getAutoRange=mq.getAutoRange;He.findExtremes=mq.findExtremes;var lfe=1e-4;function Nb(e){var r=(e[1]-e[0])*lfe;return[e[0]-r,e[1]+r]}function ofe(e,r,t){if(![t,e,r].every(Qt)||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}He.coerceRef=function(e,r,t,a,n,i){var l=a.charAt(a.length-1),o=t._fullLayout._subplots[l+"axis"],s=a+"ref",u={};return n||(n=o[0]||(typeof i=="string"?i:i[0])),i||(i=n),o=o.concat(o.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:o.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},kr.coerce(e,r,u,s)};He.coerceRefArray=function(e,r,t,a,n,i,l){let o=a.charAt(a.length-1);var s=t._fullLayout._subplots[o+"axis"];let u=a+"ref";var f=e[u];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(v=>v+" domain")),s=s.concat(i||[]),f.length>l?(kr.warn("Array attribute "+u+" has more entries than expected, truncating to "+l),f=f.slice(0,l)):f.length<l&&(kr.warn("Array attribute "+u+" has fewer entries than expected, extending with default value"),f=f.concat(Array(l-f.length).fill(n)));for(var c=0;c<f.length;c++)f[c]=pl.cleanId(f[c],o,!0)||f[c],s.includes(f[c])||(f[c]=n);return r[u]=f,f};He.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};He.coercePosition=function(e,r,t,a,n,i){var l,o,s=He.getRefType(a);if(s!=="range")l=kr.ensureNumber,o=t(n,i);else{var u=He.getFromId(r,a);i=u.fraction2r(i),o=t(n,i),l=u.cleanPos}e[n]=l(o)};He.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?kr.ensureNumber:He.getFromId(r,t).cleanPos;return a(e)};He.redrawComponents=function(e,r){r=r||He.listIds(e);var t=e._fullLayout;function a(n,i,l,o){for(var s=fv.getComponentMethod(n,i),u={},f=0;f<r.length;f++)for(var c=t[He.id2name(r[f])],v=c[l],h=0;h<v.length;h++){var p=v[h];if(!u[p]&&(s(e,p),u[p]=1,o))return}}a("annotations","drawOne","_annIndices"),a("shapes","drawOne","_shapeIndices"),a("images","draw","_imgIndices",!0),a("selections","drawOne","_selectionIndices")};var sfe=He.getDataConversions=function(e,r,t,a){var n,i=t==="x"||t==="y"||t==="z"?t:a;if(kr.isArrayOrTypedArray(i)){if(n={type:afe(a,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},He.setConvert(n),n.type==="category")for(var l=0;l<a.length;l++)n.d2c(a[l])}else n=He.getFromTrace(e,r,i);return n?{d2c:n.d2c,c2d:n.c2d}:i==="ids"?{d2c:sq,c2d:sq}:{d2c:oq,c2d:oq}};function oq(e){return+e}function sq(e){return String(e)}He.getDataToCoordFunc=function(e,r,t,a){return sfe(e,r,t,a).d2c};He.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};He.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))};He.saveRangeInitial=function(e,r){for(var t=He.list(e,"",!0),a=!1,n=0;n<t.length;n++){var i=t[n],l=i._rangeInitial0===void 0&&i._rangeInitial1===void 0,o=l||i.range[0]!==i._rangeInitial0||i.range[1]!==i._rangeInitial1,s=i.autorange;(l&&s!==!0||r&&o)&&(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};He.saveShowSpikeInitial=function(e,r){for(var t=He.list(e,"",!0),a=!1,n="on",i=0;i<t.length;i++){var l=t[i],o=l._showSpikeInitial===void 0,s=o||l.showspikes!==l._showspikes;(o||r&&s)&&(l._showSpikeInitial=l.showspikes,a=!0),n==="on"&&!l.showspikes&&(n="off")}return e._fullLayout._cartesianSpikesEnabled=n,a};He.autoBin=function(e,r,t,a,n,i){var l=kr.aggNums(Math.min,null,e),o=kr.aggNums(Math.max,null,e);if(r.type==="category"||r.type==="multicategory")return{start:l-.5,end:o+.5,size:Math.max(1,Math.round(i)||1),_dataSpan:o-l};n||(n=r.calendar);var s;if(r.type==="log"?s={type:"linear",range:[l,o]}:s={type:r.type,range:kr.simpleMap([l,o],r.c2r,0,n),calendar:n},He.setConvert(s),i=i&&nq.dtick(i,s.type),i)s.dtick=i,s.tick0=nq.tick0(void 0,s.type,n);else{var u;if(t)u=(o-l)/t;else{var f=kr.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),v=c*kr.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);u=Math.max(v,2*kr.stdev(e)/Math.pow(e.length,a?.25:.4)),Qt(u)||(u=1)}He.autoTicks(s,u)}var h=s.dtick,p=He.tickIncrement(He.tickFirst(s),h,"reverse",n),m,y;if(typeof h=="number")p=ufe(p,e,s,l,o),y=1+Math.floor((o-p)/h),m=p+y*h;else for(s.dtick.charAt(0)==="M"&&(p=ffe(p,e,h,l,n)),m=p,y=0;m<=o;)m=He.tickIncrement(m,h,!1,n),y++;return{start:r.c2r(p,0,n),end:r.c2r(m,0,n),size:h,_dataSpan:o-l}};function ufe(e,r,t,a,n){var i=0,l=0,o=0,s=0;function u(h){return(1+(h-e)*100/t.dtick)%100<2}for(var f=0;f<r.length;f++)r[f]%1===0?o++:Qt(r[f])||s++,u(r[f])&&i++,u(r[f]+t.dtick/2)&&l++;var c=r.length-s;if(o===c&&t.type!=="date")t.dtick<1?e=a-.5*t.dtick:(e-=.5,e+t.dtick<a&&(e+=t.dtick));else if(l<c*.1&&(i>c*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+v<a?v:-v}return e}function ffe(e,r,t,a,n){var i=kr.findExactDates(r,n),l=.8;if(i.exactDays>l){var o=Number(t.slice(1));i.exactYears>l&&o%12===0?e=He.tickIncrement(e,"M6","reverse")+rn*1.5:i.exactMonths>l?e=He.tickIncrement(e,"M1","reverse")+rn*15.5:e-=Do;var s=He.tickIncrement(e,t);if(s<=a)return s}return e}He.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&Qt(r._tmin),n;if(a){var i=He.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=kr.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=kr.simpleMap(n,r.l2r),e._isMinor=!0,He.prepTicks(e,t),a){var o=Qt(r.dtick),s=Qt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?kb(u,f)?u===2*Un&&f===2*rn&&(e.dtick=Un):u===2*Un&&f===3*rn?e.dtick=Un:u===Un&&!(r._input.minor||{}).nticks?e.dtick=rn:uq(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":kb(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"?kb(u,f)||(e.dtick=uq(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}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0)};function kb(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function uq(e,r){return Math.abs(e/r-1)<.001}He.prepTicks=function(e,r){var t=kr.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?kr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=kr.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,He.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"&&cfe(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),xq(e)};function Cb(e){return+e.substring(1)}function cfe(e){var r;function t(){return!(Qt(e.dtick)||e.dtick.charAt(0)!=="M")}var a=t(),n=He.getTickFormat(e);if(n){var i=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(n)||(/%[HI]/.test(n)?(r=hl,i&&!a&&e.dtick<hl&&(e.dtick=hl)):/%p/.test(n)?(r=Do,i&&!a&&e.dtick<Do&&(e.dtick=Do)):/%[Aadejuwx]/.test(n)?(r=rn,i&&!a&&e.dtick<rn&&(e.dtick=rn)):/%[UVW]/.test(n)?(r=Un,i&&!a&&e.dtick<Un&&(e.dtick=Un)):/%[Bbm]/.test(n)?(r=Uf,i&&(a?Cb(e.dtick)<1:e.dtick<vp)&&(e.dtick="M1")):/%[q]/.test(n)?(r=Sb,i&&(a?Cb(e.dtick)<3:e.dtick<cp)&&(e.dtick="M3")):/%[Yy]/.test(n)&&(r=up,i&&(a?Cb(e.dtick)<12:e.dtick<fp)&&(e.dtick="M12")))}a=t(),a&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function vfe(e,r,t){for(var a=0;a<e.length;a++){var n=e[a].value,i=a,l=a+1;a<e.length-1?(i=a,l=a+1):a>0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,c=0;f>=fp?u>=fp&&u<=Kue?c=u:c=up:t===Sb&&f>=cp?u>=cp&&u<=Que?c=u:c=Sb:f>=vp?u>=vp&&u<=jue?c=u:c=Uf:t===Un&&f>=Un?c=Un:f>=rn?c=rn:t===Do&&f>=Do?c=Do:t===hl&&f>=hl&&(c=hl);var v;c>=u&&(c=u,v=!0);var h=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;y<p;y++){var x=(y+.5)/p;r.maskBreaks(n*(1-x)+x*h)!==pp&&m++}c*=m/p,c||(e[a].drop=!0),v&&u>Un&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}He.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||kr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=kr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]<u[0],c=Math.min(u[0],u[1]),v=Math.max(u[0],u[1]),h=Math.max(1e3,r._length||0),p=[],m=[],y=[],x=[],_=[],w=r.minor&&(r.minor.ticks||r.minor.showgrid),b=w||s,M=1;M>=(b?0:1);M--){var k=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var A=M?r:kr.extendFlat({},r,b?r.minor:{minor:{}});if(k?He.prepMinorTicks(A,r,t):He.prepTicks(A,t),A.tickmode==="array"){M?(y=[],p=fq(r,!k)):(x=[],m=fq(r,!k));continue}if(A.tickmode==="sync"){y=[],p=dfe(r);continue}var S=Nb(u),D=S[0],E=S[1],R=Qt(A.dtick),N=a==="log"&&!(R||A.dtick.charAt(0)==="L"),I=He.tickFirst(A,t);if(M){if(r._tmin=I,I<D!==f)break;(a==="category"||a==="multicategory")&&(E=f?Math.max(-.5,E):Math.min(r._categories.length-.5,E))}var H=null,O=I,G;if(M){var Y;R?Y=r.dtick:a==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(Y=Uf*r.dtick.substring(1)):Y=r._roughDTick,G=Math.round((r.r2l(O)-r.r2l(r.tick0))/Y)-1}var V=A.dtick,U=a==="linear"?A.r2l(A.tick0):void 0;for(A.rangebreaks&&A._tick0Init!==A.tick0&&(O=Lb(O,r),f||(O=He.tickIncrement(O,V,!f,n))),(M||s)&&l&&(O=He.tickIncrement(O,V,!f,n),M&&G--);f?O>=E:O<=E;O=He.tickIncrement(O,V,f,n)){if(M&&G++,A.rangebreaks&&!f){if(O<D)continue;if(A.maskBreaks(O)===pp&&Lb(O,A)>=v)break}if(y.length>h||O===H)break;H=O;var Z={value:ofe(O,U,V)};M?(O===I&&(Z.first=!0),N&&O!==(O|0)&&(Z.simpleLabel=!0),i>1&&G%i&&(Z.skipLabel=!0),y.push(Z)):(Z.minor=!0,x.push(Z))}}if(!x||x.length<3)s=!1;else{var X=(x[2].value-x[1].value)*(o?-1:1);Ife(X,r.tickformat)||(s=!1,x=x.slice(1))}if(!s)_=y;else{var $=y.concat(x);l&&y.length&&($=$.slice(1)),$=$.sort(function(Xe,Ae){return Xe.value-Ae.value}).filter(function(Xe,Ae,Re){return Ae===0||Xe.value!==Re[Ae-1].value});var ae=$.map(function(Xe,Ae){return Xe.minor===void 0&&!Xe.skipLabel?Ae:null}).filter(function(Xe){return Xe!==null});ae.forEach(function(Xe){s.map(function(Ae){var Re=Xe+Ae;Re>=0&&Re<$.length&&kr.pushUnique(_,$[Re])})}),y.forEach(function(Xe){Xe.skipLabel=_.indexOf(Xe)===-1})}if(w){var ie=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!ie){for(var ve=y.map(function(Xe){return Xe.value}),K=[],he=0;he<x.length;he++){var oe=x[he],be=oe.value;if(ve.indexOf(be)===-1){for(var me=!1,ce=0;!me&&ce<y.length;ce++)1e7+y[ce].value===1e7+be&&(me=!0);me||K.push(oe)}}x=K}}l&&vfe(_,r,r._definedDelta);var Me;if(r.rangebreaks){var De=r._id.charAt(0)==="y",Te=1;r.tickmode==="auto"&&(Te=r.tickfont?r.tickfont.size:12);var Pe=NaN;for(Me=y.length-1;Me>-1;Me--){if(y[Me].drop){y.splice(Me,1);continue}y[Me].value=Lb(y[Me].value,r);var Se=r.c2p(y[Me].value);(De?Pe>Se-Te:Pe<Se+Te)?y.splice(f?Me+1:Me,1):Pe=Se}}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 ke,ze=function(Xe){Xe.text="",r._prevDateHead=ke};y=y.concat(x);function Ge(Xe,Ae){var Re=He.tickText(Xe,Ae.value,!1,Ae.simpleLabel,{first:Ae.first,last:Ae.last}),Qe=Ae.periodX;return Qe!==void 0&&(Re.periodX=Qe,(Qe>v||Qe<c)&&(Qe>v&&(Re.periodX=v),Qe<c&&(Re.periodX=c),ze(Re))),Re}var Ce;for(Me=0;Me<y.length;Me++){var $e=y[Me].minor,Ke=y[Me].value;$e?(s&&_.indexOf(y[Me])!==-1?Ce=Ge(r,y[Me]):Ce={x:Ke},Ce.minor=!0,m.push(Ce)):(ke=r._prevDateHead,Ce=Ge(r,y[Me]),y[Me].skipLabel&&ze(Ce),p.push(Ce))}return l&&s&&m.length&&(m[0].noTick=!0),p=p.concat(m),r._inCalcTicks=!1,l&&p.length&&(p[0].noTick=!0),p};function yq(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==pp})),r}function dfe(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 l=0;l<r._vals.length;l++)if(!r._vals[l].noTick){var o=r.l2p(r._vals[l].x),s=e.p2l(o),u=He.tickText(e,s,!1,void 0,{first:l===a,last:l===n});r._vals[l].minor&&(u.minor=!0,u.text=""),t.push(u)}}return t=yq(e,t),t}function fq(e,r){var t=kr.simpleMap(e.range,e.r2l),a=Nb(t),n=Math.min(a[0],a[1]),i=Math.max(a[0],a[1]),l=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 o=[],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){kr.isArrayOrTypedArray(f)||(f=[]);var c=-1,v=-1;if(!s)for(var h=0;h<u.length;h++){var p=l(u[h]);p>n&&p<i&&(c===-1&&(c=h),v=h)}for(var m=0;m<u.length;m++){var y=l(u[m]);if(y>n&&y<i){var x=He.tickText(e,y,!1,String(f[m]),{first:m===c,last:m===v});s&&(x.minor=!0,x.text=""),o.push(x)}}}}return o=yq(e,o),o}var op=[2,5,10],cq=[1,2,3,6,12],vq=[1,2,5,10,15,30],hfe=[1,2,3,7,14],gq=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],bq=[-.301,0,.301,.699,1],pfe=[15,30,45,90,180];function dl(e,r,t){return r*kr.roundUp(e/r,t)}He.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=kr.dateTick0(e.calendar,0);var i=2*r;if(i>up)r/=up,a=n(10),e.dtick="M"+12*dl(r,a,op);else if(i>Uf)r/=Uf,e.dtick="M"+dl(r,1,cq);else if(i>rn){if(e.dtick=dl(r,rn,e._hasDayOfWeekBreaks?[1,2,7,14]:hfe),!t){var l=He.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=kr.dateTick0(e.calendar,2):e.tick0=kr.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>hl?e.dtick=dl(r,hl,cq):i>vv?e.dtick=dl(r,vv,vq):i>dp?e.dtick=dl(r,dp,vq):(a=n(10),e.dtick=dl(r,a,op))}else if(e.type==="log"){e.tick0=0;var s=kr.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"+dl(r,a,op)}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=dl(r,a,pfe)):(e.tick0=0,a=n(10),e.dtick=dl(r,a,op));if(e.dtick===0&&(e.dtick=1),!Qt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function xq(e){var r=e.dtick;if(e._tickexponent=0,!Qt(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>=rn&&n<=10||r>=rn*15)e._tickround="d";else if(r>=vv&&n<=16||r>=hl)e._tickround="M";else if(r>=dp&&n<=19||r>=vv)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(Qt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Qt(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Vf(e.exponentformat)&&e.exponentformat!=="SI extended"&&!Fb(s)||Vf(e.exponentformat)&&e.exponentformat==="SI extended"&&!Ib(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}He.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(Qt(r))return kr.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.slice(1));if(i==="M")return kr.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?bq:gq,s=e+n*.01,u=kr.roundUp(kr.mod(s,1),o,t);return Math.floor(s)+Math.log(ui.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};He.tickFirst=function(e,r){var t=e.r2l||Number,a=kr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]<a[0],i=n?Math.floor:Math.ceil,l=Nb(a)[0],o=e.dtick,s=t(e.tick0);if(Qt(o)){var u=i((l-s)/o)*o+s;return(e.type==="category"||e.type==="multicategory")&&(u=kr.constrain(u,0,e._categories.length-1)),u}var f=o.charAt(0),c=Number(o.slice(1));if(f==="M"){for(var v=0,h=s,p,m,y;v<10;){if(p=He.tickIncrement(h,o,n,e.calendar),(p-l)*(h-l)<=0)return n?Math.min(h,p):Math.max(h,p);m=(l-(h+p)/2)/(p-h),y=f+(Math.abs(Math.round(m))||1)*c,h=He.tickIncrement(h,y,m<0?!n:n,e.calendar),v++}return kr.error("tickFirst did not converge",e),h}else{if(f==="L")return Math.log(i((Math.pow(10,l)-s)/c)*c+s)/Math.LN10;if(f==="D"){var x=o==="D2"?bq:gq,_=kr.roundUp(kr.mod(l,1),x,n);return Math.floor(l)+Math.log(ui.round(Math.pow(10,_),1))/Math.LN10}else throw"unrecognized dtick "+String(o)}};He.tickText=function(e,r,t,a,n){var i=!!(n!=null&&n.first),l=!!(n!=null&&n.last),o=_q(e,r),s=e.tickmode==="array",u=t||s,f=e.type,c=f==="category"?e.d2l_noadd:e.d2l,v,h=function(w){var b=e.l2p(w);return b>=0&&b<=e._length?w:null};if(s&&kr.isArrayOrTypedArray(e.ticktext)){var p=kr.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(v=0;v<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[v]))<m);v++);if(v<e.ticktext.length)return o.text=String(e.ticktext[v]),o.xbnd=[h(o.x-.5),h(o.x+e.dtick-.5)],o}function y(w){return w===void 0?!0:t?w==="none":w==="all"?!1:w==="first"?!i:w==="last"?!l:!0}var x=t?"never":e.exponentformat!=="none"&&y(e.showexponent)?"hide":"";if(f==="date"?mfe(e,o,t,u):f==="log"?yfe(e,o,t,u,x):f==="category"?gfe(e,o):f==="multicategory"?bfe(e,o,t):Ob(e)?_fe(e,o,t,u,x):xfe(e,o,t,u,x),a||(e.tickprefix&&!y(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!y(e.showticksuffix)&&(o.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(o.text)){var _=e.labelalias[o.text];typeof _=="string"&&(o.text=_)}return(e.tickson==="boundaries"||e.showdividers)&&(o.xbnd=[h(o.x-.5),h(o.x+e.dtick-.5)]),o};He.hoverLabelText=function(e,r,t){t&&(e=kr.extendFlat({},e,{hoverformat:t}));var a=kr.isArrayOrTypedArray(r)?r[0]:r,n=kr.isArrayOrTypedArray(r)?r[1]:void 0;if(n!==void 0&&n!==a)return He.hoverLabelText(e,a,t)+" - "+He.hoverLabelText(e,n,t);var i=e.type==="log"&&a<=0,l=He.tickText(e,e.c2l(i?-a:a),"hover").text;return i?a===0?"0":Ws+l:l};function _q(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 mfe(e,r,t,a){var n=e._tickround,i=t&&e.hoverformat||He.getTickFormat(e);a=!i&&a,a&&(Qt(n)?n=4:n={y:"m",m:"d",d:"M",M:"S",S:4}[n]);var l=kr.formatDate(r.x,i,n,e._dateFormat,e.calendar,e._extraFormat),o,s=l.indexOf(`
`);if(s!==-1&&(o=l.slice(s+1),l=l.slice(0,s)),a&&(o!==void 0&&(l==="00:00:00"||l==="00:00")?(l=o,o=""):l.length===8&&(l=l.replace(/:00$/,""))),o)if(t)n==="d"?l+=", "+o:l=o+(l?", "+l:"");else if(!e._inCalcTicks||e._prevDateHead!==o)e._prevDateHead=o,l+="<br>"+o;else{var u=pv(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="<br> ")}r.text=l}function yfe(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=hv(Math.pow(10,l),e,n,a);else if(Qt(i)||s==="D"&&(e.minorloglabels==="complete"||kr.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(kr.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),c=f.split("e"),v=+c[1],h=Math.abs(v),p=e.exponentformat;p==="power"||Vf(p)&&p!=="SI extended"&&Fb(v)||Vf(p)&&p==="SI extended"&&Ib(v)?(r.text=c[0],h>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+="<sup>"+(v>0?"":Ws)+h+"</sup>"),r.fontSize*=1.25):(p==="e"||p==="E")&&h>2?r.text=c[0]+p+(v>0?"+":Ws)+h:(r.text=hv(Math.pow(10,l),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,kr.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var m=String(r.text).charAt(0);(m==="0"||m==="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*(l<0?.5:.25)))}}function gfe(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function bfe(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function xfe(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=hv(r.x,e,n,a)}function _fe(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=wfe(i);if(l[1]>=100)r.text=hv(kr.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["<sup>",l[0],"</sup>","\u2044","<sub>",l[1],"</sub>","\u03C0"].join(""),o&&(r.text=Ws+r.text)}}}else r.text=hv(r.x,e,n,a)}function wfe(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var wq=["f","p","n","\u03BC","m","","k","M","G","T"],Tfe=["q","r","y","z","a",...wq,"P","E","Z","Y","R","Q"],Vf=e=>["SI","SI extended","B"].includes(e);function Fb(e){return e>14||e<-15}function Ib(e){return e>32||e<-30}function Mfe(e,r){return Vf(r)?!!(r==="SI extended"&&Ib(e)||r!=="SI extended"&&Fb(e)):!1}function hv(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=He.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Qt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};xq(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,Ws);l==="none"&&(o=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e<c)e="0",n=!1;else{if(o&&(e*=Math.pow(10,-o),i+=o),i===0)e=String(Math.round(e));else if(i<0){let h=Math.pow(10,-i);e=String(Math.round(e/h)*h)}else e=e.toFixed(Math.min(20,i)).replace(/\.?0+$/,"");e=kr.numSeparate(e,r._separators,u)}if(o&&l!=="hide"){Mfe(o,l)&&(l="power");var v;o<0?v=Ws+-o:l!=="power"?v="+"+o:v=String(o),l==="e"||l==="E"?e+=l+v:l==="power"?e+="\xD710<sup>"+v+"</sup>":l==="B"&&o===9?e+="B":Vf(l)&&(e+=l==="SI extended"?Tfe[o/3+10]:wq[o/3+5])}return n?Ws+e:e}He.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Uf}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)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],h=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!h&&typeof h!="number"||c(h)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,h=a(s,u[1])<=0;return(f||v)&&(c||h)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r<e.tickformatstops.length;r++)if(o=e.tickformatstops[r],o.enabled&&n(e.dtick,o.dtickrange,t)){l=o;break}break}case"log":{for(r=0;r<e.tickformatstops.length;r++)if(o=e.tickformatstops[r],o.enabled&&i(e.dtick,o.dtickrange)){l=o;break}break}default:}return l?l.value:e.tickformat};He.getSubplots=function(e,r){var t=e._fullLayout._subplots,a=t.cartesian.concat(t.gl2d||[]),n=r?He.findSubplotsWithAxis(a,r):a;return n.sort(function(i,l){var o=i.slice(1).split("y"),s=l.slice(1).split("y");return o[0]===s[0]?+o[1]-+s[1]:+o[0]-+s[0]}),n};He.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};He.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=He.list(e,"x",!0),i=He.list(e,"y",!0),l=[],o,s;for(o=0;o<n.length;o++)for(l.push({x:n[o],y:a}),s=0;s<i.length;s++)o===0&&l.push({x:t,y:i[s]}),l.push({x:n[o],y:i[s]});var u=r._clips.selectAll(".axesclip").data(l,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){ui.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})})}};He.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,v=f.yaxis;f.xaxislayer.selectAll("."+c._id+"tick").remove(),f.yaxislayer.selectAll("."+v._id+"tick").remove(),f.xaxislayer.selectAll("."+c._id+"tick2").remove(),f.yaxislayer.selectAll("."+v._id+"tick2").remove(),f.xaxislayer.selectAll("."+c._id+"divider").remove(),f.yaxislayer.selectAll("."+v._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-"+v._id+"title").remove()}});var n=!r||r==="redraw"?He.listIds(e):r,i=He.list(e),l=i.filter(function(s){return s.autoshift}).map(function(s){return s.overlaying});n.map(function(s){var u=He.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 o={false:{left:0,right:0}};return kr.syncOrAsync(n.map(function(s){return function(){if(s){var u=He.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=He.drawOne(e,u,t);return u._shiftPusher&&zb(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=kr.simpleMap(u._r,u.r2l),f}}}))};He.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=He.counterLetter(u),v=s._plots[r._mainSubplot],h=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),zb(r,p,a,!0),zb(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Ffe(r,a));var m=v[f+"axislayer"],y=r._mainLinePosition,x=y+=r._shift,_=r._mainMirrorPosition,w=r._vals=He.calcTicks(r),b=[r.mirror,x,_].join("_");for(i=0;i<w.length;i++)w[i].axInfo=b;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var M={};function k(Ce){var $e=u+(Ce||"tick");return M[$e]||(M[$e]=Lfe(r,$e,x)),M[$e]}if(r.visible){var A=He.makeTransTickFn(r),S=He.makeTransTickLabelFn(r),D,E,R=r.ticks==="inside",N=r.ticks==="outside";if(r.tickson==="boundaries"){var I=Afe(r,w);E=He.clipEnds(r,I),D=R?E:I}else E=He.clipEnds(r,w),D=R&&r.ticklabelmode!=="period"?E:w;var H=r._gridVals=E,O=Cfe(r,w);if(!s._hasOnlyLargeSploms){var G=r._subplotsWith,Y={};for(i=0;i<G.length;i++){l=G[i],o=s._plots[l];var V=o[c+"axis"],U=V._mainAxis._id;if(!Y[U]){Y[U]=1;var Z=f==="x"?"M0,"+V._offset+"v"+V._length:"M"+V._offset+",0h"+V._length;He.drawGrid(e,r,{vals:H,counterAxis:V,layer:o.gridlayer.select("."+u),minorLayer:o.minorGridlayer.select("."+u),path:Z,transFn:A}),He.drawZeroLine(e,r,{counterAxis:V,layer:h?o.zerolinelayerAbove:o.zerolinelayer,path:Z,transFn:A})}}}var X,$=He.getTickSigns(r),ae=He.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var ie=He.makeTickPath(r,x,$[2]),ve=He.makeTickPath(r,x,ae[2],{minor:!0}),K,he,oe,be;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?(K=He.makeTickPath(r,_,$[3]),he=He.makeTickPath(r,_,ae[3],{minor:!0}),oe=ie+K,be=ve+he):(K="",he="",oe=ie,be=ve),r.showdividers&&N&&r.tickson==="boundaries"){var me={};for(i=0;i<O.length;i++)me[O[i].x]=1;X=function(Ce){return me[Ce.x]?K:oe}}else X=function(Ce){return Ce.minor?be:oe}}if(He.drawTicks(e,r,{vals:D,layer:m,path:X,transFn:A}),r.mirror==="allticks"){var ce=Object.keys(r._linepositions||{});for(i=0;i<ce.length;i++){l=ce[i],o=s._plots[l];var Me=r._linepositions[l]||[],De=Me[0],Te=Me[1],Pe=Me[2],Se=He.makeTickPath(r,De,Pe?$[0]:ae[0],{minor:Pe})+He.makeTickPath(r,Te,Pe?$[1]:ae[1],{minor:Pe});He.drawTicks(e,r,{vals:D,layer:o[f+"axislayer"],path:Se,transFn:A})}}var ke=[];if(ke.push(function(){return He.drawLabels(e,r,{vals:w,layer:m,plotinfo:o,transFn:S,labelFns:He.makeLabelFns(r,x)})}),r.type==="multicategory"){var ze={x:2,y:10}[f];ke.push(function(){var Ce={x:"height",y:"width"}[f],$e=k()[Ce]+ze+(r._tickAngles[u+"tick"]?r.tickfont.size*dv:0);return He.drawLabels(e,r,{vals:kfe(r,w),layer:m,cls:u+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:A,labelFns:He.makeLabelFns(r,x+$e*$[4])})}),ke.push(function(){return r._depth=$[4]*(k("tick2")[r.side]-x),qfe(e,r,{vals:O,layer:m,path:He.makeTickPath(r,x,$[4],{len:r._depth}),transFn:A})})}else r.title.hasOwnProperty("standoff")&&ke.push(function(){r._depth=$[4]*(k()[r.side]-x)});var Ge=fv.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(Ge&&r.side==="bottom")&&ke.push(function(){return Dfe(e,r)}),ke.push(function(){var Ce=r.side.charAt(0),$e=tfe[r.side].charAt(0),Ke=He.getPxPosition(e,r),Xe=N?r.ticklen:0,Ae,Re,Qe,re;(r.automargin||Ge||r._shiftPusher)&&(r.type==="multicategory"?Ae=k("tick2"):(Ae=k(),f==="x"&&Ce==="b"&&(r._depth=Math.max(Ae.width>0?Ae.bottom-Ke:0,Xe))));var ye=0,Ve=0;if(r._shiftPusher&&(ye=Math.max(Xe,Ae.height>0?Ce==="l"?Ke-Ae.left:Ae.right-Ke:0),r.title.text!==s._dfltTitle[f]&&(Ve=(r._titleStandoff||0)+(r._titleScoot||0),Ce==="l"&&(Ve+=hq(r))),r._fullDepth=Math.max(ye,Ve)),r.automargin){Re={x:0,y:0,r:0,l:0,t:0,b:0};var dr=[0,1],Ee=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ce==="b"?Re[Ce]=r._depth:(Re[Ce]=r._depth=Math.max(Ae.width>0?Ke-Ae.top:0,Xe),dr.reverse()),Ae.width>0){var pe=Ae.right-(r._offset+r._length);pe>0&&(Re.xr=1,Re.r=pe);var we=r._offset-Ae.left;we>0&&(Re.xl=0,Re.l=we)}}else if(Ce==="l"?(r._depth=Math.max(Ae.height>0?Ke-Ae.left:0,Xe),Re[Ce]=r._depth-Ee):(r._depth=Math.max(Ae.height>0?Ae.right-Ke:0,Xe),Re[Ce]=r._depth+Ee,dr.reverse()),Ae.height>0){var Oe=Ae.bottom-(r._offset+r._length);Oe>0&&(Re.yb=0,Re.b=Oe);var We=r._offset-Ae.top;We>0&&(Re.yt=1,Re.t=We)}Re[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[dr[0]],r.title.text!==s._dfltTitle[f]&&(Re[Ce]+=hq(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Qe={x:0,y:0,r:0,l:0,t:0,b:0},Qe[$e]=r.linewidth,r.mirror&&r.mirror!==!0&&(Qe[$e]+=Xe),r.mirror===!0||r.mirror==="ticks"?Qe[c]=r._anchorAxis.domain[dr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Qe[c]=[r._counterDomainMin,r._counterDomainMax][dr[1]]))}Ge&&(re=fv.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(dq(Re,r.automargin),dq(Qe,r.automargin)),Yf.autoMargin(e,Hb(r),Re),Yf.autoMargin(e,Mq(r),Qe),Yf.autoMargin(e,Aq(r),re)}),kr.syncOrAsync(ke)}};function dq(e,r){if(e){var t=Object.keys(lq).reduce(function(a,n){return r.indexOf(n)!==-1&&lq[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 Afe(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(kr.extendFlat({},i,{x:o}))};if(r.length){for(a=0;a<r.length;a++)n(r[a],0);n(r[a-1],1)}return t}function kfe(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 l in a)t.push(_q(e,kr.interp(a[l],.5),l));return t}function Cfe(e,r){var t=[],a,n,i=r.length&&r[r.length-1].x<r[0].x,l=function(s,u){var f=s.xbnd[u];f!==null&&t.push(kr.extendFlat({},s,{x:f}))};if(e.showdividers&&r.length){for(a=0;a<r.length;a++){var o=r[a];o.text2!==n&&l(o,i?1:0),n=o.text2}l(r[a-1],i?0:1)}return t}function Lfe(e,r,t){var a,n,i,l;if(e._selections[r].size())a=1/0,n=-1/0,i=1/0,l=-1/0,e._selections[r].each(function(){var s=Rb(this);if(s.node().style.display!=="none"){var u=Gn.bBox(s.node().parentNode);a=Math.min(a,u.top),n=Math.max(n,u.bottom),i=Math.min(i,u.left),l=Math.max(l,u.right)}});else{var o=He.makeLabelFns(e,t);a=n=o.yFn({dx:0,dy:0,fontSize:0}),i=l=o.xFn({dx:0,dy:0,fontSize:0})}return{top:a,bottom:n,left:i,right:l,height:n-a,width:l-i}}He.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],l=r?(e.minor||{}).ticks:e.ticks;return l!=="inside"==(t==="x")&&(i=i.map(function(o){return-o})),e.side&&i.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),i};He.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return Gf(e._offset+e.l2p(r.x),0)}:function(r){return Gf(0,e._offset+e.l2p(r.x))}};He.makeTransTickLabelFn=function(e){var r=Sfe(e),t=e.ticklabelshift||0,a=e.ticklabelstandoff||0,n=r[0],i=r[1],l=e.range[0]>e.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,c=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return Gf(n+e._offset+e.l2p(Pb(v))+t,i+a)}:function(v){return Gf(i+a,n+e._offset+e.l2p(Pb(v))+t)}};function Pb(e){return e.periodX!==void 0?e.periodX:e.x}function Sfe(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=hp,h=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=h*Zs,v+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,v+=hp),s&&f==="top"&&(v-=h*(1-Zs)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}He.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,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};He.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",h=0,p=0,m=v?e.ticklen:0;if(c?m*=-1:f&&(m=0),v&&(h+=m,t)){var y=kr.deg2rad(t);h=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(v||e.showline)&&(h+=.2*e.tickfont.size),h+=(e.linewidth||1)/2*(c?-1:1);var x={labelStandoff:h,labelShift:p},_,w,b,M,k=0,A=e.side,S=e._id.charAt(0),D=e.tickangle,E;if(S==="x")E=!c&&A==="bottom"||c&&A==="top",M=E?1:-1,c&&(M*=-1),_=p*M,w=r+h*M,b=E?1:-.2,Math.abs(D)===90&&(c?b+=uv:D===-90&&A==="bottom"?b=Zs:D===90&&A==="top"?b=uv:b=.5,k=uv/2*(D/90)),x.xFn=function(I){return I.dx+_+k*I.fontSize},x.yFn=function(I){return I.dy+w+I.fontSize*b},x.anchorFn=function(I,H){if(f){if(o)return"end";if(s)return"start"}return!Qt(H)||H===0||H===180?"middle":H*M<0!==c?"end":"start"},x.heightFn=function(I,H,O){return H<-60||H>60?-.5*O:e.side==="top"!==c?-O:0};else if(S==="y"){if(E=!c&&A==="left"||c&&A==="right",M=E?1:-1,c&&(M*=-1),_=h,w=p*M,b=0,!c&&Math.abs(D)===90&&(D===-90&&A==="left"||D===90&&A==="right"?b=Zs:b=.5),c){var R=Qt(D)?+D:0;if(R!==0){var N=kr.deg2rad(R);k=Math.abs(Math.sin(N))*Zs*M,b=0}}x.xFn=function(I){return I.dx+r-(_+I.fontSize*b)*M+k*I.fontSize},x.yFn=function(I){return I.dy+w+I.fontSize*uv},x.anchorFn=function(I,H){return Qt(H)&&Math.abs(H)===90?"middle":E?"end":"start"},x.heightFn=function(I,H,O){return e.side==="right"&&(H*=-1),H<-30?-O:H<30?-.5*O:0}}return x};function yp(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}He.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,yp);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return cv.stroke(ui.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return Gn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),gp(r,[pq]),i.attr("transform",t.transFn)};He.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(x){return x.minor}):[],l=r.showgrid?t.vals.filter(function(x){return!x.minor}):[],o=t.counterAxis;if(o&&He.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u<l.length;u++){var f=l[u].x;if(s?!f:Math.abs(f)<r.dtick/100)if(l=l.slice(0,u).concat(l.slice(u+1)),s)u--;else break}r._gw=Gn.crispRound(e,r.gridwidth,1);for(var c=n?Gn.crispRound(e,r.minor.gridwidth,1):0,v=t.layer,h=t.minorLayer,p=1;p>=0;p--){var m=p?v:h;if(m){var y=m.selectAll("path."+a).data(p?l:i,yp);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(x){return cv.stroke(ui.select(this),x.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return Gn.dashStyle(x.minor?r.minor.griddash:r.griddash,x.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(x){return(x.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}gp(r,[Db,Eb])}};He.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=He.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(l,o){return nfe(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(cv.stroke,r.zerolinecolor||cv.defaultLine).style("stroke-width",Gn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),gp(r,[qb])};He.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(U){return U.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],c=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],yp),v=[];c.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(U){var Z=ui.select(this),X=e._promises.length;Z.call(Xs.positionText,s.xFn(U),s.yFn(U)).call(Gn.font,{family:U.font,size:U.fontSize,color:U.fontColor,weight:U.fontWeight,style:U.fontStyle,variant:U.fontVariant,textcase:U.fontTextcase,lineposition:U.fontLineposition,shadow:U.fontShadow}).text(U.text).call(Xs.convertToTspans,e),e._promises[X]?v.push(e._promises.pop().then(function(){h(Z,u)})):h(Z,u)}),gp(r,[iq]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(U){ui.select(this).select("text").call(Xs.positionText,s.xFn(U),s.yFn(U))});function h(U,Z){U.each(function(X){var $=ui.select(this),ae=$.select(".text-math-group"),ie=s.anchorFn(X,Z),ve=t.transFn.call($.node(),X)+(Qt(Z)&&+Z!=0?" rotate("+Z+","+s.xFn(X)+","+(s.yFn(X)-X.fontSize/2)+")":""),K=Xs.lineCount($),he=dv*X.fontSize,oe=s.heightFn(X,Qt(Z)?+Z:0,(K-1)*he);if(oe&&(ve+=Gf(0,oe)),ae.empty()){var be=$.select("text");be.attr({transform:ve,"text-anchor":ie}),be.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var me=Gn.bBox(ae.node()).width,ce=me*{end:-.5,start:.5}[ie];ae.attr("transform",ve+Gf(ce,0))}})}r._adjustTickLabelsOverflow=function(){var U=r.ticklabeloverflow;if(!(!U||U==="allow")){var Z=U.indexOf("hide")!==-1,X=r._id.charAt(0)==="x",$=0,ae=X?e._fullLayout.width:e._fullLayout.height;if(U.indexOf("domain")!==-1){var ie=kr.simpleMap(r.range,r.r2l);$=r.l2p(ie[0])+r._offset,ae=r.l2p(ie[1])+r._offset}var ve=Math.min($,ae),K=Math.max($,ae),he=r.side,oe=1/0,be=-1/0;c.each(function(De){var Te=ui.select(this),Pe=Te.select(".text-math-group");if(Pe.empty()){var Se=Gn.bBox(Te.node()),ke=0;X?(Se.right>K||Se.left<ve)&&(ke=1):(Se.bottom>K||Se.top+(r.tickangle?0:De.fontSize/4)<ve)&&(ke=1);var ze=Te.select("text");ke?Z&&ze.style("display","none"):ze.node().style.display!=="none"&&(ze.style("display",null),he==="bottom"||he==="right"?oe=Math.min(oe,X?Se.top:Se.left):oe=-1/0,he==="top"||he==="left"?be=Math.max(be,X?Se.bottom:Se.right):be=1/0)}});for(var me in a._plots){var ce=a._plots[me];if(!(r._id!==ce.xaxis._id&&r._id!==ce.yaxis._id)){var Me=X?ce.yaxis:ce.xaxis;Me&&(Me["_visibleLabelMin_"+r._id]=oe,Me["_visibleLabelMax_"+r._id]=be)}}}},r._hideCounterAxisInsideTickLabels=function(U){var Z=r._id.charAt(0)==="x",X=[];for(var $ in a._plots){var ae=a._plots[$];r._id!==ae.xaxis._id&&r._id!==ae.yaxis._id||X.push(Z?ae.yaxis:ae.xaxis)}X.forEach(function(ie,ve){ie&&pv(ie)&&(U||[qb,Eb,Db,pq,iq]).forEach(function(K){var he=K.K==="tick"&&K.L==="text"&&r.ticklabelmode==="period",oe=a._plots[r._mainSubplot],be;if(K.K===qb.K){var me=i?oe.zerolinelayerAbove:oe.zerolinelayer;be=me.selectAll("."+r._id+"zl")}else K.K===Eb.K?be=oe.minorGridlayer.selectAll("."+r._id):K.K===Db.K?be=oe.gridlayer.selectAll("."+r._id):be=oe[r._id.charAt(0)+"axislayer"];be.each(function(){var ce=ui.select(this);K.L&&(ce=ce.selectAll(K.L)),ce.each(function(Me){var De=r.l2p(he?Pb(Me):Me.x)+r._offset,Te=ui.select(this);De<r["_visibleLabelMax_"+ie._id]&&De>r["_visibleLabelMin_"+ie._id]?Te.style("display","none"):K.K==="tick"&&!ve&&Te.node().style.display!=="none"&&Te.style("display",null)})})})})},h(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var m=null;function y(){if(h(c,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var U=0,Z=[],X,$=1;c.each(function(Re){U=Math.max(U,Re.fontSize);var Qe=r.l2p(Re.x),re=Rb(this),ye=Gn.bBox(re.node());$=Math.max($,Xs.lineCount(re)),Z.push({top:0,bottom:10,height:10,left:Qe-ye.width/2,right:Qe+ye.width/2+2,width:ye.width+2})});var ae=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ie=o.length,ve=Math.abs((o[ie-1].x-o[0].x)*r._m)/(ie-1),K=ae?ve/2:ve,he=ae?r.ticklen:U*1.25*$,oe=Math.sqrt(Math.pow(K,2)+Math.pow(he,2)),be=K/oe,me=r.autotickangles.map(function(Re){return Re*Math.PI/180}),ce=me.find(function(Re){return Math.abs(Math.cos(Re))<=be});ce===void 0&&(ce=me.reduce(function(Re,Qe){return Math.abs(Math.cos(Re))<Math.abs(Math.cos(Qe))?Re:Qe},me[0]));var Me=ce*(180/Math.PI);if(ae){var De=2;for(r.ticks&&(De+=r.tickwidth/2),X=0;X<Z.length;X++){var Te=o[X].xbnd,Pe=Z[X];if(Te[0]!==null&&Pe.left-r.l2p(Te[0])<De||Te[1]!==null&&r.l2p(Te[1])-Pe.right<De){m=Me;break}}}else{var Se=r.ticklabelposition||"",ke=r.tickson||"",ze=function(Re){return Se.indexOf(Re)!==-1},Ge=ze("top"),Ce=ze("left"),$e=ze("right"),Ke=ze("bottom"),Xe=ke!=="boundaries"&&(Ke||Ce||Ge||$e),Ae=Xe?(r.tickwidth||0)+2*hp:0;for(X=0;X<Z.length-1;X++)if(kr.bBoxIntersect(Z[X],Z[X+1],Ae)){m=Me;break}}m&&h(c,m)}}r._selections&&(r._selections[l]=c);var x=[p];r.automargin&&a._redrawFromAutoMarginCount&&f===90?(m=f,x.push(function(){h(c,f)})):x.push(y),r._tickAngles&&x.push(function(){r._tickAngles[l]=m===null?Qt(u)?u:0:m});var _=function(){var U=0,Z=0;return c.each(function(X,$){var ae=Rb(this),ie=ae.select(".text-math-group");if(ie.empty()){var ve;r._vals[$]&&(ve=r._vals[$].bb||Gn.bBox(ae.node()),r._vals[$].bb=ve),U=Math.max(U,ve.width),Z=Math.max(Z,ve.height)}}),{labelsMaxW:U,labelsMaxH:Z}},w=r._anchorAxis;if(w&&(w.autorange||w.insiderange)&&pv(r)&&!ife(a,r._id)&&(a._insideTickLabelsUpdaterange||(a._insideTickLabelsUpdaterange={}),w.autorange&&(a._insideTickLabelsUpdaterange[w._name+".autorange"]=w.autorange,x.push(_)),w.insiderange)){var b=_(),M=r._id.charAt(0)==="y"?b.labelsMaxW:b.labelsMaxH;M+=2*hp,r.ticklabelposition==="inside"&&(M+=r.ticklen||0);var k=r.side==="right"||r.side==="top"?1:-1,A=k===1?1:0,S=k===1?0:1,D=[];D[S]=w.range[S];var E=w.range,R=w.r2p(E[A]),N=w.r2p(E[S]),I=a._insideTickLabelsUpdaterange[w._name+".range"];if(I){var H=w.r2p(I[A]),O=w.r2p(I[S]),G=k*(r._id.charAt(0)==="y"?1:-1);G*R<G*H&&(R=H,D[A]=E[A]=I[A]),G*N>G*O&&(N=O,D[S]=E[S]=I[S])}var Y=Math.abs(N-R);Y-M>0?(Y-=M,M*=1+M/Y):M=0,r._id.charAt(0)!=="y"&&(M=-M),D[A]=w.p2r(w.r2p(E[A])+k*M),w.autorange==="min"||w.autorange==="max reversed"?(D[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(D[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=D}var V=kr.syncOrAsync(x);return V&&V.then&&e._promises.push(V),V};function qfe(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,yp);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(cv.stroke,r.dividercolor).style("stroke-width",Gn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}He.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 hq(e){var r=e.title.font.size,t=(e.title.text.match(Xs.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Zs+t*dv):t?r*(t+1)*dv:r}function Dfe(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(Xs.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*Zs:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(uv+o*dv));else{var s=pv(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=He.getPxPosition(e,r),c,v,h;n==="x"?(v=r._offset+r._length/2,h=r.side==="top"?f-l:f+l):(h=r._offset+r._length/2,v=r.side==="right"?f+l:f-l,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=Gn.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=l,Jue.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:h,"text-anchor":"middle"}})}He.shouldShowZeroLine=function(e,r,t){var a=kr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===pp)&&(Tq(r,0)||!Efe(e,r,t,a)||Pfe(e,r))};He.clipEnds=function(e,r){return r.filter(function(t){return Tq(e,t.x)})};function Tq(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function Efe(e,r,t,a){var n=t._mainAxis;if(!n)return;var i=e._fullLayout,l=r._id.charAt(0),o=He.counterLetter(r._id),s=r._offset+(Math.abs(a[0])<Math.abs(a[1])==(l==="x")?0:r._length);function u(p){if(!p.showline||!p.linewidth)return!1;var m=Math.max((p.linewidth+r.zerolinewidth)/2,1);function y(w){return typeof w=="number"&&Math.abs(w-s)<m}if(y(p._mainLinePosition)||y(p._mainMirrorPosition))return!0;var x=p._linepositions||{};for(var _ in x)if(y(x[_][0])||y(x[_][1]))return!0}var f=i._plots[t._mainSubplot];if(!(f.mainplotinfo||f).overlays.length)return u(t,s);for(var c=He.list(e,o),v=0;v<c.length;v++){var h=c[v];if(h._mainAxis===n&&u(h,s))return!0}}function Pfe(e,r){for(var t=e._fullData,a=r._mainSubplot,n=r._id.charAt(0),i=0;i<t.length;i++){var l=t[i];if(l.visible===!0&&l.xaxis+l.yaxis===a&&(fv.traceIs(l,"bar-like")&&l.orientation==={x:"h",y:"v"}[n]||l.fill&&l.fill.charAt(l.fill.length-1)===n))return!0}return!1}function Rb(e){var r=ui.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}He.allowAutoMargin=function(e){for(var r=He.list(e,"",!0),t=0;t<r.length;t++){var a=r[t];a.automargin&&(Yf.allowAutoMargin(e,Hb(a)),a.mirror&&Yf.allowAutoMargin(e,Mq(a))),fv.getComponentMethod("rangeslider","isVisible")(a)&&Yf.allowAutoMargin(e,Aq(a))}};function Hb(e){return e._id+".automargin"}function Mq(e){return Hb(e)+".mirror"}function Aq(e){return e._id+".rangeslider"}He.swap=function(e,r){for(var t=Rfe(e,r),a=0;a<t.length;a++)zfe(e,t[a].x,t[a].y)};function Rfe(e,r){var t=[],a,n;for(a=0;a<r.length;a++){var i=[],l=e._fullData[r[a]].xaxis,o=e._fullData[r[a]].yaxis;if(!(!l||!o)){for(n=0;n<t.length;n++)(t[n].x.indexOf(l)!==-1||t[n].y.indexOf(o)!==-1)&&i.push(n);if(!i.length){t.push({x:[l],y:[o]});continue}var s=t[i[0]],u;if(i.length>1)for(n=1;n<i.length;n++)u=t[i[n]],sp(s.x,u.x),sp(s.y,u.y);sp(s.x,[l]),sp(s.y,[o])}}return t}function sp(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function zfe(e,r,t){var a=[],n=[],i=e.layout,l,o;for(l=0;l<r.length;l++)a.push(He.getFromId(e,r[l]));for(l=0;l<t.length;l++)n.push(He.getFromId(e,t[l]));var s=Object.keys($ue),u=["anchor","domain","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(l=0;l<s.length;l++){var c=s[l],v=a[0][c],h=n[0][c],p=!0,m=!1,y=!1;if(!(c.charAt(0)==="_"||typeof v=="function"||u.indexOf(c)!==-1)){for(o=1;o<a.length&&p;o++){var x=a[o][c];c==="type"&&f.indexOf(v)!==-1&&f.indexOf(x)!==-1&&v!==x?m=!0:x!==v&&(p=!1)}for(o=1;o<n.length&&p;o++){var _=n[o][c];c==="type"&&f.indexOf(h)!==-1&&f.indexOf(_)!==-1&&h!==_?y=!0:n[o][c]!==h&&(p=!1)}p&&(m&&(i[a[0]._name].type="linear"),y&&(i[n[0]._name].type="linear"),Nfe(i,c,a,n,e._fullLayout._dfltTitle))}}for(l=0;l<e._fullLayout.annotations.length;l++){var w=e._fullLayout.annotations[l];r.indexOf(w.xref)!==-1&&t.indexOf(w.yref)!==-1&&kr.swapAttrs(i.annotations[l],["?"])}}function Nfe(e,r,t,a,n){var i=kr.nestedProperty,l=i(e[t[0]._name],r).get(),o=i(e[a[0]._name],r).get(),s;for(r==="title"&&(l&&l.text===n.x&&(l.text=n.y),o&&o.text===n.y&&(o.text=n.x)),s=0;s<t.length;s++)i(e,t[s]._name+"."+r).set(o);for(s=0;s<a.length;s++)i(e,a[s]._name+"."+r).set(l)}function Ob(e){return e._id==="angularaxis"}function Lb(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 pv(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function gp(e,r){pv(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function zb(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 Ffe(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function Ife(e,r){return/%f/.test(r)?e>=rfe:/%L/.test(r)?e>=efe:/%[SX]/.test(r)?e>=dp:/%M/.test(r)?e>=vv:/%[HI]/.test(r)?e>=hl:/%p/.test(r)?e>=Do:/%[Aadejuwx]/.test(r)?e>=rn:/%[UVW]/.test(r)?e>=Un:/%[Bbm]/.test(r)?e>=vp:/%[q]/.test(r)?e>=cp:/%[Yy]/.test(r)?e>=fp:!0}});var Lq=B((B9e,Cq)=>{"use strict";Cq.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Bb=B((Y9e,Sq)=>{"use strict";var Hfe=Lq();Sq.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),c;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(Hfe(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var Dq=B((G9e,qq)=>{var Ofe={left:0,top:0};qq.exports=Bfe;function Bfe(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=Yfe(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Yfe(e){return e===window||e===document||e===document.body?Ofe:e.getBoundingClientRect()}});var Yb=B((U9e,Eq)=>{"use strict";var Gfe=x5();function Ufe(){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}Eq.exports=Gfe&&Ufe()});var Rq=B((V9e,Pq)=>{"use strict";Pq.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var Fq=B((X9e,Nq)=>{"use strict";var zq=Le(),Vfe=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Nq.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=zq.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=zq.constrain(Math.floor(t*3),0,2),Vfe[t][r]}});var Hq=B((W9e,Iq)=>{"use strict";var Xfe=J0(),Wfe=y1(),Zfe=B0().getGraphDiv,Jfe=w0(),Gb=Iq.exports={};Gb.wrapped=function(e,r,t){var i;e=Zfe(e),e._fullLayout&&Wfe.clear(e._fullLayout._uid+Jfe.HOVERID);let a=e._hoverdata;Gb.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:[]}))};Gb.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&Xfe.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 Yi=B((Z9e,Gq)=>{"use strict";var $fe=Dq(),Ub=w5(),Kfe=Yb(),Qfe=Le().removeElement,jfe=ba(),Js=Gq.exports={};Js.align=Rq();Js.getCursor=Fq();var Bq=Hq();Js.unhover=Bq.wrapped;Js.unhoverRaw=Bq.raw;Js.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,c,v,h;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,Kfe?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(w,b,M){return Math.abs(w)<M&&(w=0),Math.abs(b)<M&&(b=0),[w,b]}var m=r.clampFn||p;function y(w){t._dragged=!1,t._dragging=!0;var b=Oq(w);l=b[0],o=b[1],v=w.target,c=w,h=w.buttons===2||w.ctrlKey,typeof w.clientX=="undefined"&&typeof w.clientY=="undefined"&&(w.clientX=l,w.clientY=o),s=new Date().getTime(),s-t._mouseDownTime<n?a+=1:(a=1,t._mouseDownTime=s),r.prepFn&&r.prepFn(w,l,o),Ub&&!h?(f=Yq(),f.style.cursor=window.getComputedStyle(i).cursor):Ub||(f=document,u=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(i).cursor),document.addEventListener("mouseup",_),document.addEventListener("touchend",_),r.dragmode!==!1&&(w.preventDefault(),document.addEventListener("mousemove",x),document.addEventListener("touchmove",x,{passive:!1}))}function x(w){w.preventDefault();var b=Oq(w),M=r.minDrag||jfe.MINDRAG,k=m(b[0]-l,b[1]-o,M),A=k[0],S=k[1];(A||S)&&(t._dragged=!0,Js.unhover(t,w)),t._dragged&&r.moveFn&&!h&&(t._dragdata={element:i,dx:A,dy:S},r.moveFn(A,S))}function _(w){if(delete t._dragdata,r.dragmode!==!1&&(w.preventDefault(),document.removeEventListener("mousemove",x),document.removeEventListener("touchmove",x)),document.removeEventListener("mouseup",_),document.removeEventListener("touchend",_),Ub?Qfe(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 b;c.target===v?b=c:(b={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var k=c[M];!b[M]&&typeof k!="function"&&(b[M]=k)})),r.clickFn&&r.clickFn(a,b),h||v.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function Yq(){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}Js.coverSlip=Yq;function Oq(e){return $fe(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Eo=B((J9e,Uq)=>{"use strict";Uq.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 Wq=B(($9e,Xq)=>{"use strict";var Vb=Eo(),mv="data-savedcursor",Vq="!!";Xq.exports=function(r,t){var a=r.attr(mv);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i<n.length;i++){var l=n[i];l.indexOf("cursor-")===0&&r.attr(mv,l.slice(7)).classed(l,!1)}r.attr(mv)||r.attr(mv,Vq)}Vb(r,t)}else a&&(r.attr(mv,null),a===Vq?Vb(r):Vb(r,a))}});var Wb=B((K9e,Zq)=>{"use strict";var Xb=ma(),ece=ni();Zq.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:ece.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:Xb({editType:"legend"}),grouptitlefont:Xb({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"},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:Xb({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var gv=B(yv=>{"use strict";yv.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};yv.isVertical=function(r){return r.orientation!=="h"};yv.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};yv.getId=function(r){return r._id||"legend"}});var Jb=B((j9e,Jq)=>{"use strict";var bp=Mr(),Vn=Le(),rce=vt(),tce=xn(),ace=Wb(),nce=wf(),Zb=gv();function ice(e,r,t,a,n){var i=r[e]||{},l=rce.newContainer(t,e);function o(U,Z){return Vn.coerce(i,l,ace,U,Z)}var s=Vn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var u=o("visible");if(!u)return;var f,c=function(U,Z){var X=f._input,$=f;return Vn.coerce(X,$,tce,U,Z)},v=t.font||{},h=Vn.coerceFont(o,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,m=!1,y="normal",x=(t.shapes||[]).filter(function(U){return U.showlegend});function _(U){return bp.traceIs(U,"pie-like")&&U._length!=null&&(Array.isArray(U.legend)||Array.isArray(U.showlegend))}a.filter(_).forEach(function(U){U.visible&&p++;for(var Z=0;Z<U._length;Z++){var X=(Array.isArray(U.legend)?U.legend[Z]:U.legend)||"legend";X===e&&((Array.isArray(U.showlegend)?U.showlegend[Z]:U.showlegend)||U._dfltShowLegend)&&(m=!0,p++)}if(e==="legend"&&U._length>U.legend.length)for(var $=U.legend.length;$<U._length;$++)m=!0,p++});for(var w=a.concat(x).filter(function(U){return!_(f)&&e===(U.legend||"legend")}),b=0;b<w.length;b++)if(f=w[b],!!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))&&(p++,f.showlegend&&(m=!0,(!M&&bp.traceIs(f,"pie-like")||f._input.showlegend===!0)&&p++),Vn.coerceFont(c,"legendgrouptitle.font",h)),(!M&&bp.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(y=Zb.isGrouped({traceorder:y})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(y=Zb.isReversed({traceorder:y})?"reversed+grouped":"grouped")}var k=Vn.coerce(r,t,nce,"showlegend",t.showlegend||m&&p>(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),!(k===!1&&!i.uirevision)&&(o("uirevision",t.uirevision),k!==!1)){o("borderwidth");var A=o("orientation"),S=o("yref"),D=o("xref"),E=A==="h",R=S==="paper",N=D==="paper",I,H,O,G="left";E?(I=0,bp.getComponentMethod("rangeslider","isVisible")(r.xaxis)?R?(H=1.1,O="bottom"):(H=1,O="top"):R?(H=-.1,O="top"):(H=0,O="bottom")):(H=1,O="auto",N?I=1.02:(I=1,G="right")),Vn.coerce(i,l,{x:{valType:"number",editType:"legend",min:N?-2:0,max:N?3:1,dflt:I}},"x"),Vn.coerce(i,l,{y:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:H}},"y"),o("traceorder",y),Zb.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",G),o("yanchor",O),o("maxheight"),o("valign"),Vn.noneOrAll(i,l,["x","y"]);var Y=o("title.text");if(Y){o("title.side",E?"left":"top");var V=Vn.extendFlat({},s,{size:Vn.bigFont(s.size)});Vn.coerceFont(o,"title.font",V);let U=n>1;o("titleclick",U?"toggle":!1),o("titledoubleclick",U?"toggleothers":!1)}}}Jq.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n<l.length;n++){var o=l[n];if(o.showlegend){var s={_input:o._input,visible:o.visible,showlegend:o.showlegend,legend:o.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):Vn.pushUnique(u,i[n].legend);for(t._legends=[],n=0;n<u.length;n++){var f=u[n];ice(f,r,t,i,u.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var Qb=B(Kb=>{"use strict";var Po=Mr(),$b=Le(),lce=$b.pushUnique,oce=gv(),$q=!0;Kb.handleItemClick=function(r,t,a,n){var i=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;var o=a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&$q&&t.data&&t._context.showTips&&($b.notifier($b._(t,"Double-click on legend to isolate one trace"),"long",t),$q=!1);var s=o==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData;let c=(i.shapes||[]).filter(ke=>ke.showlegend||ke.legendgroup);var v=f.concat(c),h=l.trace;h._isShape&&(h=i.shapes[h.index]);var p=h.legendgroup,m,y,x,_,w,b,M={},k=[],A=[],S=[];function D(ke,ze){var Ge=k.indexOf(ke),Ce=M.visible;return Ce||(Ce=M.visible=[]),k.indexOf(ke)===-1&&(k.push(ke),Ge=k.length-1),Ce[Ge]=ze,Ge}var E=(i.shapes||[]).map(function(ke){return ke._input}),R=!1;function N(ke,ze){E[ke].visible=ze,R=!0}function I(ke,ze){if(!(l.groupTitle&&!s)){var Ge=ke._isShape,Ce=ke.index;Ce===void 0&&(Ce=ke._index);var $e=ke.visible===!1?!1:ze;Ge?N(Ce,$e):D(Ce,$e)}}var H=h.legend;if(!h._isShape&&Po.traceIs(h,"pie-like")){var O=l.label,G=u.indexOf(O);if(n==="toggle")G===-1?u.push(O):u.splice(G,1);else if(n==="toggleothers"){var Y=G!==-1,V=[];for(m=0;m<t.calcdata.length;m++){var U=t.calcdata[m];for(y=0;y<U.length;y++){var Z=U[y],X=Z.label;H===U[0].trace.legend&&O!==X&&(u.indexOf(X)===-1&&(Y=!0),lce(u,X),V.push(X))}}if(!Y)for(var $=0;$<V.length;$++){var ae=u.indexOf(V[$]);ae!==-1&&u.splice(ae,1)}}Po.call("_guiRelayout",t,"hiddenlabels",u)}else{var ie=p&&p.length,ve=[],K;if(ie)for(m=0;m<v.length;m++)K=v[m],K.visible&&K.legendgroup===p&&ve.push(m);if(n==="toggle"){var he;switch(h.visible){case!0:he="legendonly";break;case!1:he=!1;break;case"legendonly":he=!0;break}if(ie)if(s)for(m=0;m<v.length;m++){var oe=v[m];oe.visible!==!1&&oe.legendgroup===p&&I(oe,he)}else I(h,he);else I(h,he)}else if(n==="toggleothers"){var be,me,ce,Me,De,Te=!0;for(m=0;m<v.length;m++)if(De=v[m],be=De===h,ce=De.showlegend!==!0,!(be||ce)&&(me=ie&&De.legendgroup===p,!me&&De.legend===H&&De.visible===!0&&!Po.traceIs(De,"notLegendIsolatable"))){Te=!1;break}for(m=0;m<v.length;m++)if(De=v[m],!(De.visible===!1||De.legend!==H)&&!Po.traceIs(De,"notLegendIsolatable"))switch(h.visible){case"legendonly":I(De,!0);break;case!0:Me=Te?!0:"legendonly",be=De===h,ce=De.showlegend!==!0&&!De.legendgroup,me=be||ie&&De.legendgroup===p,I(De,me||ce?!0:Me);break}}for(m=0;m<A.length;m++)if(x=A[m],!!x){var Pe=x.constructUpdate(),Se=Object.keys(Pe);for(y=0;y<Se.length;y++)_=Se[y],b=M[_]=M[_]||[],b[S[m]]=Pe[_]}for(w=Object.keys(M),m=0;m<w.length;m++)for(_=w[m],y=0;y<k.length;y++)M[_].hasOwnProperty(y)||(M[_][y]=void 0);R?Po.call("_guiUpdate",t,M,{shapes:E},k):Po.call("_guiRestyle",t,M,k)}};Kb.handleTitleClick=function(r,t,a){let n=r._fullLayout,i=r._fullData,l=oce.getId(t),o=(n.shapes||[]).filter(x=>x.showlegend||x.legendgroup),s=i.concat(o);function u(x){return(x.legend||"legend")===l}var f,c;if(a==="toggle")f=!s.some(function(_){return u(_)&&_.visible===!0}),c=!1;else{let x=s.some(function(_){return!u(_)&&_.visible===!0&&_.showlegend!==!1});f=!0,c=!x}let v={visible:[]},h=[],p=(n.shapes||[]).map(function(x){return x._input});for(var m=!1,y=0;y<s.length;y++){let x=s[y],_=u(x);if(!_){let M=x.showlegend!==!0&&!x.legendgroup;if(a==="toggle"||M)continue}let b=(_?f:c)?!0:"legendonly";x.visible!==!1&&x.visible!==b&&(x._isShape?(p[x._index].visible=b,m=!0):(h.push(x.index),v.visible.push(b)))}m?Po.call("_guiUpdate",r,v,{shapes:p},h):h.length&&Po.call("_guiRestyle",r,v,h)}});var jb=B((rwe,Kq)=>{"use strict";Kq.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var eD=B((twe,jq)=>{"use strict";var{isArrayOrTypedArray:ex}=bn(),Qq=Mr(),rx=gv();jq.exports=function(r,t,a){var n=t._inHover,i=rx.isGrouped(t),l=rx.isReversed(t),o={},s=[],u=!1,f={},c=0,v=0,h,p;function m(Z,X,$){if(t.visible!==!1&&!(a&&Z!==t._id))if(X===""||!rx.isGrouped(t)){var ae="~~i"+c;s.push(ae),o[ae]=[$],c++}else s.indexOf(X)===-1?(s.push(X),u=!0,o[X]=[$]):o[X].push($)}for(h=0;h<r.length;h++){var y=r[h],x=y[0],_=x.trace,w=_.legend,b=_.legendgroup;if(!(!n&&(!_.visible||!_.showlegend)))if(Qq.traceIs(_,"pie-like")){var M=Array.isArray(_.legend),k=Array.isArray(_.showlegend);for(f[b]||(f[b]={}),p=0;p<y.length;p++)if(!(k&&_.showlegend[y[p].i]===!1)){M&&(w=_.legend[y[p].i]||"legend");var A=y[p].label;f[b][A]||(m(w,b,{label:A,color:y[p].color,i:y[p].i,trace:_,pts:y[p].pts}),f[b][A]=!0,v=Math.max(v,(A||"").length))}}else m(w,b,x),v=Math.max(v,(_.name||"").length)}if(!s.length)return[];var S=!u||!i,D=[];for(h=0;h<s.length;h++){var E=o[s[h]];S?D.push(E[0]):D.push(E)}for(S&&(D=[D]),h=0;h<D.length;h++){var R=1/0;for(p=0;p<D[h].length;p++){var N=D[h][p].trace.legendrank,I=ex(N)?Math.min(N):N;R>I&&(R=I)}D[h][0]._groupMinRank=R,D[h][0]._preGroupSort=h}var H=function(Z,X){return Z[0]._groupMinRank-X[0]._groupMinRank||Z[0]._preGroupSort-X[0]._preGroupSort},O=function(Z,X){var $=ex(Z.trace.legendrank)?Z.trace.legendrank[Z.i]:Z.trace.legendrank,ae=ex(X.trace.legendrank)?X.trace.legendrank[X.i]:X.trace.legendrank;return $-ae||Z._preSort-X._preSort};for(D.forEach(function(Z,X){Z[0]._preGroupSort=X}),D.sort(H),h=0;h<D.length;h++){D[h].forEach(function(Z,X){Z._preSort=X}),D[h].sort(O);var G=D[h][0].trace,Y=null;for(p=0;p<D[h].length;p++){var V=D[h][p].trace.legendgrouptitle;if(V&&V.text){Y=V,n&&(V.font=t._groupTitleFont);break}}if(l&&D[h].reverse(),Y){var U=!1;for(p=0;p<D[h].length;p++)if(Qq.traceIs(D[h][p].trace,"pie-like")){U=!0;break}D[h].unshift({i:-1,groupTitle:Y,noClick:U,trace:{showlegend:G.showlegend,legendgroup:G.legendgroup,legend:G.legend,visible:t.groupclick==="toggleitem"?!0:G.visible}})}for(p=0;p<D[h].length;p++)D[h][p]=[D[h][p]]}return t._lgroupsLength=D.length,t._maxNameLength=v,D}});var bv=B($s=>{"use strict";var xp=Le();function rD(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}$s.formatPiePercent=function(r,t){var a=rD((r*100).toPrecision(3));return xp.numSeparate(a,t)+"%"};$s.formatPieValue=function(r,t){var a=rD(r.toPrecision(10));return xp.numSeparate(a,t)};$s.getFirstFilled=function(r,t){if(xp.isArrayOrTypedArray(r))for(var a=0;a<t.length;a++){var n=r[t[a]];if(n||n===0||n==="")return n}};$s.castOption=function(r,t){if(xp.isArrayOrTypedArray(r))return $s.getFirstFilled(r,t);if(r)return r};$s.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var aD=B((nwe,tD)=>{"use strict";var sce=Vr(),uce=Ar();tD.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?sce.pointStyle(r,a,n,t):uce.fill(r,t.color)}});var Xf=B((iwe,lD)=>{"use strict";var nD=Ar(),iD=bv().castOption,fce=aD();lD.exports=function(r,t,a,n){var i=a.marker.line,l=iD(i.color,t.pts)||nD.defaultLine,o=iD(i.width,t.pts)||0;r.call(fce,t,a,n).style("stroke-width",o).call(nD.stroke,l)}});var ix=B((lwe,vD)=>{"use strict";var tn=Dr(),tx=Mr(),Va=Le(),oD=Va.strTranslate,Xn=Vr(),fi=Ar(),ax=On().extractOpts,_p=Yn(),cce=Xf(),vce=bv().castOption,dce=jb(),sD=12,uD=5,Ks=2,hce=10,Wf=5;vD.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+dce.itemGap*2)/2,s=oD(o,0),u=function(A,S,D,E){var R;if(A+1)R=A;else if(S&&S.width>0)R=S.width;else return 0;return i?E:Math.min(R,D)};r.each(function(A){var S=tn.select(this),D=Va.ensureSingle(S,"g","layers");D.style("opacity",A[0].trace.opacity);var E=a.indentation,R=a.valign,N=A[0].lineHeight,I=A[0].height;if(R==="middle"&&E===0||!N||!I)D.attr("transform",null);else{var H={top:1,bottom:-1}[R],O=H*(.5*(N-I+3))||0,G=a.indentation;D.attr("transform",oD(G,O))}var Y=D.selectAll("g.legendfill").data([A]);Y.enter().append("g").classed("legendfill",!0);var V=D.selectAll("g.legendlines").data([A]);V.enter().append("g").classed("legendlines",!0);var U=D.selectAll("g.legendsymbols").data([A]);U.enter().append("g").classed("legendsymbols",!0),U.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(k).each(v).each(p).each(h).each(y).each(b).each(w).each(f).each(c).each(x).each(_);function f(A){var S=fD(A),D=S.showFill,E=S.showLine,R=S.showGradientLine,N=S.showGradientFill,I=S.anyFill,H=S.anyLine,O=A[0],G=O.trace,Y,V,U=ax(G),Z=U.colorscale,X=U.reversescale,$=function(be){if(be.size())if(D)Xn.fillGroupStyle(be,t,!0);else{var me="legendfill-"+G.uid;Xn.gradient(be,t,me,nx(X),Z,"fill")}},ae=function(be){if(be.size()){var me="legendline-"+G.uid;Xn.lineGroupStyle(be),Xn.gradient(be,t,me,nx(X),Z,"stroke")}},ie=_p.hasMarkers(G)||!I?"M5,0":H?"M5,-2":"M5,-3",ve=tn.select(this),K=ve.select(".legendfill").selectAll("path").data(D||N?[A]:[]);if(K.enter().append("path").classed("js-fill",!0),K.exit().remove(),K.attr("d",ie+"h"+l+"v6h-"+l+"z").call($),E||R){var he=u(void 0,G.line,hce,uD);V=Va.minExtend(G,{line:{width:he}}),Y=[Va.minExtend(O,{trace:V})]}var oe=ve.select(".legendlines").selectAll("path").data(E||R?[Y]:[]);oe.enter().append("path").classed("js-line",!0),oe.exit().remove(),oe.attr("d",ie+(R?"l"+l+",0.0001":"h"+l)).call(E?Xn.lineGroupStyle:ae)}function c(A){var S=fD(A),D=S.anyFill,E=S.anyLine,R=S.showLine,N=S.showMarker,I=A[0],H=I.trace,O=!N&&!E&&!D&&_p.hasText(H),G,Y;function V(he,oe,be,me){var ce=Va.nestedProperty(H,he).get(),Me=Va.isArrayOrTypedArray(ce)&&oe?oe(ce):ce;if(i&&Me&&me!==void 0&&(Me=me),be){if(Me<be[0])return be[0];if(Me>be[1])return be[1]}return Me}function U(he){return I._distinct&&I.index&&he[I.index]?he[I.index]:he[0]}if(N||O||R){var Z={},X={};if(N){Z.mc=V("marker.color",U);var $=H.type==="scattermap";Z.mx=$?"circle":V("marker.symbol",U),Z.mo=V("marker.opacity",Va.mean,[.2,1]),Z.mlc=V("marker.line.color",U),Z.mlw=V("marker.line.width",Va.mean,[0,5],Ks),Z.mld=V("marker.line.dash",U),X.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ae=V("marker.size",Va.mean,[2,16],sD);Z.ms=ae,X.marker.size=ae}R&&(X.line={width:V("line.width",U,[0,10],uD)}),O&&(Z.tx="Aa",Z.tp=V("textposition",U),Z.ts=10,Z.tc=V("textfont.color",U),Z.tf=V("textfont.family",U),Z.tw=V("textfont.weight",U),Z.ty=V("textfont.style",U),Z.tv=V("textfont.variant",U),Z.tC=V("textfont.textcase",U),Z.tE=V("textfont.lineposition",U),Z.tS=V("textfont.shadow",U)),G=[Va.minExtend(I,Z)],Y=Va.minExtend(H,X),Y.selectedpoints=null,Y.texttemplate=null}var ie=tn.select(this).select("g.legendpoints"),ve=ie.selectAll("path.scatterpts").data(N?G:[]);ve.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),ve.exit().remove(),ve.call(Xn.pointStyle,Y,t),N&&(G[0].mrc=3);var K=ie.selectAll("g.pointtext").data(O?G:[]);K.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),K.exit().remove(),K.selectAll("text").call(Xn.textPointStyle,Y,t)}function v(A){var S=A[0].trace,D=S.type==="waterfall";if(A[0]._distinct&&D){var E=A[0].trace[A[0].dir].marker;return A[0].mc=E.color,A[0].mlw=E.line.width,A[0].mlc=E.line.color,m(A,this,"waterfall")}var R=[];S.visible&&D&&(R=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 N=tn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(R);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(I){var H=tn.select(this),O=S[I[0]].marker,G=u(void 0,O.line,Wf,Ks);H.attr("d",I[1]).style("stroke-width",G+"px").call(fi.fill,O.color),G&&H.call(fi.stroke,O.line.color)})}function h(A){m(A,this)}function p(A){m(A,this,"funnel")}function m(A,S,D){var E=A[0].trace,R=E.marker||{},N=R.line||{},I=R.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",H=D?E.visible&&E.type===D:tx.traceIs(E,"bar"),O=tn.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(H?[A]:[]);O.enter().append("path").classed("legend"+D,!0).attr("d",I).attr("transform",s),O.exit().remove(),O.each(function(G){var Y=tn.select(this),V=G[0],U=u(V.mlw,R.line,Wf,Ks);Y.style("stroke-width",U+"px");var Z=V.mcc;if(!a._inHover&&"mc"in V){var X=ax(R),$=X.mid;$===void 0&&($=(X.max+X.min)/2),Z=Xn.tryColorscale(R,"")($)}var ae=Z||V.mc||R.color,ie=R.pattern,ve=Xn.getPatternAttr,K=ie&&(ve(ie.shape,0,"")||ve(ie.path,0,""));if(K){var he=ve(ie.bgcolor,0,null),oe=ve(ie.fgcolor,0,null),be=ie.fgopacity,me=cD(ie.size,8,10),ce=cD(ie.solidity,.5,1),Me="legend-"+E.uid;Y.call(Xn.pattern,"legend",t,Me,K,me,ce,Z,ie.fillmode,he,oe,be)}else Y.call(fi.fill,ae);U&&fi.stroke(Y,V.mlc||N.color)})}function y(A){var S=A[0].trace,D=tn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&tx.traceIs(S,"box-violin")?[A]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var E=tn.select(this);if((S.boxpoints==="all"||S.points==="all")&&fi.opacity(S.fillcolor)===0&&fi.opacity((S.line||{}).color)===0){var R=Va.minExtend(S,{marker:{size:i?sD:Va.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(Xn.pointStyle,R,t)}else{var N=u(void 0,S.line,Wf,Ks);E.style("stroke-width",N+"px").call(fi.fill,S.fillcolor),N&&fi.stroke(E,S.line.color)}})}function x(A){var S=A[0].trace,D=tn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[A,A]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(E,R){return R?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=tn.select(this),I=S[R?"increasing":"decreasing"],H=u(void 0,I.line,Wf,Ks);N.style("stroke-width",H+"px").call(fi.fill,I.fillcolor),H&&fi.stroke(N,I.line.color)})}function _(A){var S=A[0].trace,D=tn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[A,A]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(E,R){return R?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=tn.select(this),I=S[R?"increasing":"decreasing"],H=u(void 0,I.line,Wf,Ks);N.style("fill","none").call(Xn.dashLine,I.line.dash,H),H&&fi.stroke(N,I.line.color)})}function w(A){M(A,this,"pie")}function b(A){M(A,this,"funnelarea")}function M(A,S,D){var E=A[0],R=E.trace,N=D?R.visible&&R.type===D:tx.traceIs(R,D),I=tn.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(N?[A]:[]);if(I.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var H=R.marker||{},O=u(vce(H.line.width,E.pts),H.line,Wf,Ks),G="pieLike",Y=Va.minExtend(R,{marker:{line:{width:O}}},G),V=Va.minExtend(E,{trace:Y},G);cce(I,V,Y,t)}}function k(A){var S=A[0].trace,D,E=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmap":E=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymap":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":E=[["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"]],D=!1;break;case"streamtube":E=[["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"]],D=!1;break;case"surface":E=[["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"]],D=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var R=tn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);R.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N,I){var H=tn.select(this),O=ax(S),G=O.colorscale,Y=O.reversescale,V=function($){if($.size()){var ae="legendfill-"+S.uid;Xn.gradient($,t,ae,nx(Y,D==="radial"),G,"fill")}},U;if(G){if(!D){var X=G.length;U=I===0?G[Y?X-1:0][1]:I===1?G[Y?0:X-1][1]:G[Math.floor((X-1)/2)][1]}}else{var Z=S.vertexcolor||S.facecolor||S.color;U=Va.isArrayOrTypedArray(Z)?Z[I]||Z[0]:Z}H.attr("d",N[0]),U?H.call(fi.fill,U):H.call(V)})}};function nx(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function fD(e){var r=e[0].trace,t=r.contours,a=_p.hasLines(r)||r.visible&&r.type==="quiver",n=_p.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function cD(e,r,t){return e&&Va.isArrayOrTypedArray(e)?r:e>t?t:e}});var ux=B((owe,_D)=>{"use strict";var vn=Dr(),jt=Le(),ox=Gt(),Qs=Mr(),Mp=J0(),lx=Yi(),ea=Vr(),xv=Ar(),js=da(),dD=Qb().handleItemClick,hD=Qb().handleTitleClick,ia=jb(),sx=za(),bD=sx.LINE_SPACING,Jf=sx.FROM_TL,pD=sx.FROM_BR,mD=eD(),pce=ix(),$f=gv(),Zf=1,mce=/^legend[0-9]*$/;_D.exports=function(r,t){if(t)yD(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=vn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(mce)&&n.indexOf(c)===-1&&u.remove()});for(var l=0;l<n.length;l++){var o=n[l],s=r._fullLayout[o];yD(r,s)}}};function yce(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var a=r.title.font,n=a.size*bD,i=0,l=e.node(),o=ea.bBox(l).width;r.title.side==="top center"?i=.5*(r._width-2*t-2*ia.titlePad-o):r.title.side==="top right"&&(i=r._width-2*t-2*ia.titlePad-o),js.positionText(e,t+ia.titlePad+i,t+n)}}function yD(e,r){var t=r||{},a=e._fullLayout,n=$f.getId(t),i,l,o=t._inHover;if(o?(l=t.layer,i="hover"):(l=a._infolayer,i=n),!!l){i+=a._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0);var s;if(o){if(!t.entries)return;s=mD(t.entries,t)}else{for(var u=(e.calcdata||[]).slice(),f=a.shapes,c=0;c<f.length;c++){var v=f[c];if(v.showlegend){var h={_isShape:!0,index:v._index,name:v.name||v.label.text||"shape "+v._index,legend:v.legend,legendgroup:v.legendgroup,legendgrouptitle:v.legendgrouptitle,legendrank:v.legendrank,legendwidth:v.legendwidth,showlegend:v.showlegend,visible:v.visible,opacity:v.opacity,mode:v.type==="line"?"lines":"markers",line:v.line,marker:{line:v.line,color:v.fillcolor,size:12,symbol:v.type==="rect"?"square":v.type==="circle"?"circle":"hexagon2"}};u.push([{trace:h}])}}s=a.showlegend&&mD(u,t,a._legends.length>1)}var p=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),ox.autoMargin(e,n);var m=jt.ensureSingle(l,"g",n,function(S){o||S.attr("pointer-events","all")}),y=jt.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),x=jt.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});x.call(xv.stroke,t.bordercolor).call(xv.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var _=jt.ensureSingle(m,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var b;w.text?(b=jt.ensureSingle(_,"text",n+"titletext"),b.attr("text-anchor","start").call(ea.font,w.font).text(w.text),Tp(b,_,e,t,Zf),!o&&(t.titleclick||t.titledoubleclick)&&xce(_,e,t,n)):(_.selectAll("."+n+"titletext").remove(),_.selectAll("."+n+"titletoggle").remove());var M=jt.ensureSingle(m,"rect","scrollbar",function(S){S.attr(ia.scrollBarEnterAttrs).call(xv.fill,ia.scrollBarColor)}),k=_.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var A=k.selectAll("g.traces").data(jt.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.style("opacity",function(S){let D=S[0],E=D.trace;if(D.groupTitle){let R=E.legendgroup,N=(a.shapes||[]).filter(function(H){return H.showlegend});return e._fullData.concat(N).some(function(H){return H.legendgroup===R&&(H.legend||"legend")===n&&H.visible===!0})?1:.5}return Qs.traceIs(E,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){vn.select(this).call(gce,e,t)}).call(pce,e,t).each(function(S){o||S[0].groupTitle&&t.groupclick==="toggleitem"||vn.select(this).call(bce,e,n)}),jt.syncOrAsync([ox.previousPromises,function(){return Tce(e,k,A,t,_)},function(){var S=a._size,D=t.borderwidth,E=t.xref==="paper",R=t.yref==="paper";if(w.text){let Pe=(a.shapes||[]).filter(function(ke){return ke.showlegend}),Se=e._fullData.concat(Pe).some(function(ke){let ze=ke.legend||"legend";var Ge=Array.isArray(ze)?ze.includes(n):ze===n;return Ge&&ke.visible===!0});b.style("opacity",Se?1:.5)}if(!o){var N,I;E?N=S.l+S.w*t.x-Jf[Ap(t)]*t._width:N=a.width*t.x-Jf[Ap(t)]*t._width,R?I=S.t+S.h*(1-t.y)-Jf[kp(t)]*t._effHeight:I=a.height*(1-t.y)-Jf[kp(t)]*t._effHeight;var H=Mce(e,n,N,I);if(H)return;if(a.margin.autoexpand){var O=N,G=I;N=E?jt.constrain(N,0,a.width-t._width):O,I=R?jt.constrain(I,0,a.height-t._effHeight):G,N!==O&&jt.log("Constrain "+n+".x to make legend fit inside graph"),I!==G&&jt.log("Constrain "+n+".y to make legend fit inside graph")}ea.setTranslate(m,N,I)}if(M.on(".drag",null),m.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var Y=t._effHeight;o&&(Y=t._height),x.attr({width:t._width-D,height:Y-D,x:D/2,y:D/2}),ea.setTranslate(_,0,0),y.select("rect").attr({width:t._width-2*D,height:Y-2*D,x:D,y:D}),ea.setClipUrl(_,i,e),ea.setRect(M,0,0,0,0),delete t._scrollY}else{var V=Math.max(ia.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),U=t._effHeight-V-2*ia.scrollBarMargin,Z=t._height-t._effHeight,X=U/Z,$=Math.min(t._scrollY||0,Z);x.attr({width:t._width-2*D+ia.scrollBarWidth+ia.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),y.select("rect").attr({width:t._width-2*D+ia.scrollBarWidth+ia.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+$}),ea.setClipUrl(_,i,e),me($,V,X),m.on("wheel",function(){$=jt.constrain(t._scrollY+vn.event.deltaY/Z*U,0,Z),me($,V,X),$!==0&&$!==Z&&vn.event.preventDefault()});var ae,ie,ve,K=function(Pe,Se,ke){var ze=(ke-Se)/X+Pe;return jt.constrain(ze,0,Z)},he=function(Pe,Se,ke){var ze=(Se-ke)/X+Pe;return jt.constrain(ze,0,Z)},oe=vn.behavior.drag().on("dragstart",function(){var Pe=vn.event.sourceEvent;Pe.type==="touchstart"?ae=Pe.changedTouches[0].clientY:ae=Pe.clientY,ve=$}).on("drag",function(){var Pe=vn.event.sourceEvent;Pe.buttons===2||Pe.ctrlKey||(Pe.type==="touchmove"?ie=Pe.changedTouches[0].clientY:ie=Pe.clientY,$=K(ve,ae,ie),me($,V,X))});M.call(oe);var be=vn.behavior.drag().on("dragstart",function(){var Pe=vn.event.sourceEvent;Pe.type==="touchstart"&&(ae=Pe.changedTouches[0].clientY,ve=$)}).on("drag",function(){var Pe=vn.event.sourceEvent;Pe.type==="touchmove"&&(ie=Pe.changedTouches[0].clientY,$=he(ve,ae,ie),me($,V,X))});_.call(be)}function me(Pe,Se,ke){t._scrollY=e._fullLayout[n]._scrollY=Pe,ea.setTranslate(_,0,-Pe),ea.setRect(M,t._width,ia.scrollBarMargin+Pe*ke,ia.scrollBarWidth,Se),y.select("rect").attr("y",D+Pe)}if(e._context.edits.legendPosition){var ce,Me,De,Te;m.classed("cursor-move",!0),lx.init({element:m.node(),gd:e,prepFn:function(Pe){if(Pe.target!==M.node()){var Se=ea.getTranslate(m);De=Se.x,Te=Se.y}},moveFn:function(Pe,Se){if(De!==void 0&&Te!==void 0){var ke=De+Pe,ze=Te+Se;ea.setTranslate(m,ke,ze),ce=lx.align(ke,t._width,S.l,S.l+S.w,t.xanchor),Me=lx.align(ze+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(ce!==void 0&&Me!==void 0){var Pe={};Pe[n+".x"]=ce,Pe[n+".y"]=Me,Qs.call("_guiRelayout",e,Pe)}},clickFn:function(Pe,Se){var ke=l.selectAll("g.traces").filter(function(){var ze=this.getBoundingClientRect();return Se.clientX>=ze.left&&Se.clientX<=ze.right&&Se.clientY>=ze.top&&Se.clientY<=ze.bottom});ke.size()>0&&xD(e,t,ke,Pe,Se)}})}}],e)}}function wp(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function xD(e,r,t,a,n){var i=e._fullLayout,l=t.data()[0][0].trace,o=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};l._group&&(u.group=l._group),Qs.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=Mp.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&dD(t,e,r,o)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Mp.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&dD(t,e,r,s)}}function gce(e,r,t){var a=$f.getId(t),n=e.data()[0][0],i=n.trace,l=Qs.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=jt.templateString(u,i._meta))));var c=jt.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(ea.font,f).text(o?gD(u,s):u);var v=t.indentation+t.itemwidth+ia.itemGap*2;js.positionText(c,v,0),o?c.call(js.makeEditable,{gd:r,text:u}).call(Tp,e,r,t).on("edit",function(h){this.text(gD(h,s)).call(Tp,e,r,t);var p={};return p.name=h,n.trace._isShape?Qs.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):Qs.call("_guiRestyle",r,p,i.index)}):Tp(c,e,r,t)}function gD(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 bce(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=jt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(xv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTime<a?i+=1:(i=1,r._legendMouseDownTime=n)}),l.on("mouseup",function(){if(!(r._dragged||r._editing)){var o=r._fullLayout[t];new Date().getTime()-r._legendMouseDownTime>a&&(i=Math.max(i-1,1)),xD(r,o,e,i,vn.event)}}))}function xce(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&Qs.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=jt.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(xv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){l=new Date().getTime(),l-r._legendMouseDownTime<i?o+=1:(o=1,r._legendMouseDownTime=l)}),s.on("mouseup",function(){if(r._dragged||r._editing)return;new Date().getTime()-r._legendMouseDownTime>i&&(o=Math.max(o-1,1));let u={event:vn.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(Mp.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&hD(r,t,t.titleclick)},i)}else o===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Mp.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&hD(r,t,t.titledoubleclick))}))}function Tp(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),js.convertToTspans(e,t,function(){_ce(r,t,a,n)})}function _ce(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 l=e.select("g[class*=math-group]"),o=l.node(),s=$f.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===Zf?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*bD,v,h;if(o){var p=ea.bBox(o);v=p.height,h=p.width,a===Zf?ea.setTranslate(l,u,u+v*.75):ea.setTranslate(l,0,v*.25)}else{var m="."+s+(a===Zf?"title":"")+"text",y=e.select(m),x=js.lineCount(y),_=y.node();if(v=c*x,h=_?ea.bBox(_).width:0,a===Zf)t.title.side==="left"&&(h+=ia.itemGap*2),js.positionText(y,u+ia.titlePad,u+c);else{var w=ia.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=ia.itemGap,h-=t.indentation+t.itemwidth),js.positionText(y,w,-c*((x-1)/2-.3))}}a===Zf?(t._titleWidth=h,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=h)}function wce(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 Tce(e,r,t,a,n){var i=e._fullLayout,l=$f.getId(a);a||(a=i[l]);var o=i._size,s=$f.isVertical(a),u=$f.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,h=ia.itemGap,p=a.indentation+a.itemwidth+h*2,m=2*(c+h),y=kp(a),x=a.y<0||a.y===0&&y==="top",_=a.y>1||a.y===1&&y==="bottom",w=a.tracegroupgap,b={};let{orientation:M,yref:k}=a,{maxheight:A}=a,S=x||_||M!=="v"||k!=="paper";A||(A=S?.5:1);let D=S?i.height:o.h;a._maxHeight=Math.max(A>1?A:A*D,30);var E=0;a._width=0,a._height=0;var R=wce(a);if(s)t.each(function(Pe){var Se=Pe[0].height;ea.setTranslate(this,c+R[0],c+R[1]+a._height+Se/2+h),a._height+=Se,a._width=Math.max(a._width,Pe[0].width)}),E=p+a._width,a._width+=h+p+v,a._height+=m,u&&(r.each(function(Pe,Se){ea.setTranslate(this,0,Se*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var N=Ap(a),I=a.x<0||a.x===0&&N==="right",H=a.x>1||a.x===1&&N==="left",O=_||x,G=i.width/2;a._maxWidth=Math.max(I?O&&N==="left"?o.l+o.w:G:H?O&&N==="right"?o.r+o.w:G:o.w,2*p);var Y=0,V=0;t.each(function(Pe){var Se=wp(Pe,a,p);Y=Math.max(Y,Se),V+=Se}),E=null;var U=0;if(u){var Z=0,X=0,$=0;r.each(function(){var Pe=0,Se=0;vn.select(this).selectAll("g.traces").each(function(ze){var Ge=wp(ze,a,p),Ce=ze[0].height;ea.setTranslate(this,R[0],R[1]+c+h+Ce/2+Se),Se+=Ce,Pe=Math.max(Pe,Ge),b[ze[0].trace.legendgroup]=Pe});var ke=Pe+h;X>0&&ke+c+X>a._maxWidth?(U=Math.max(U,X),X=0,$+=Z+w,Z=Se):Z=Math.max(Z,Se),ea.setTranslate(this,X,$),X+=ke}),a._width=Math.max(U,X)+c,a._height=$+Z+m}else{var ae=t.size(),ie=V+v+(ae-1)*h<a._maxWidth,ve=0,K=0,he=0,oe=0;t.each(function(Pe){var Se=Pe[0].height,ke=wp(Pe,a,p,u),ze=ie?ke:Y;f||(ze+=h),ze+c+K-h>=a._maxWidth&&(U=Math.max(U,oe),K=0,he+=ve,a._height+=ve,ve=0),ea.setTranslate(this,R[0]+c+K,R[1]+c+he+Se/2+h),oe=K+ke+h,K+=ze,ve=Math.max(ve,Se)}),ie?(a._width=K+v,a._height=ve+m):(a._width=Math.max(U,oe)+v,a._height+=ve+m)}}a._width=Math.ceil(Math.max(a._width+R[0],a._titleWidth+2*(c+ia.titlePad))),a._height=Math.ceil(Math.max(a._height+R[1],a._titleHeight+2*(c+ia.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var be=e._context.edits,me=be.legendText||be.legendPosition;t.each(function(Pe){var Se=vn.select(this).select("."+l+"toggle"),ke=Pe[0].height,ze=Pe[0].trace.legendgroup,Ge=wp(Pe,a,p);u&&ze!==""&&(Ge=b[ze]);var Ce=me?p:E||Ge;!s&&!f&&(Ce+=h/2),ea.setRect(Se,0,-ke/2,Ce,ke)});var ce=n.select("."+l+"titletext");ce.node()&&yce(ce,a,c);var Me=n.select("."+l+"titletoggle");if(Me.size()&&ce.node()){var De=ce.attr("x")||0,Te=ia.titlePad;ea.setRect(Me,De-Te,c,a._titleWidth+2*Te,a._titleHeight+2*Te)}}function Mce(e,r,t,a){var n=e._fullLayout,i=n[r],l=Ap(i),o=kp(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",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return ox.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Jf[l],r:i._width*pD[l],b:i._effHeight*pD[o],t:i._effHeight*Jf[o]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function Ap(e){return jt.isRightAnchor(e)?"right":jt.isCenterAnchor(e)?"center":"left"}function kp(e){return jt.isBottomAnchor(e)?"bottom":jt.isMiddleAnchor(e)?"middle":"top"}});var dx=B(vx=>{"use strict";var eu=Dr(),Bl=Br(),It=Le(),Ace=It.pushUnique,fx=It.strTranslate,kce=It.strRotate,Cce=J0(),ci=da(),Lce=Wq(),ml=Vr(),la=Ar(),Cp=Yi(),yl=Jr(),Sce=ba().zindexSeparator,Qf=Mr(),Wn=Oi(),ru=w0(),qce=Jb(),Dce=ux(),SD=ru.YANGLE,cx=Math.PI*SD/180,Ece=1/Math.sin(cx),Pce=Math.cos(cx),Rce=Math.sin(cx),Ct=ru.HOVERARROWSIZE,Ur=ru.HOVERTEXTPAD,wD={box:!0,ohlc:!0,violin:!0,candlestick:!0},zce={scatter:!0,scattergl:!0,splom:!0};function TD(e,r){return e.distance-r.distance}vx.hover=function(r,t,a,n){r=It.getGraphDiv(r);var i=t.target;It.throttle(r._fullLayout._uid+ru.HOVERID,ru.HOVERMINTIME,function(){Nce(r,t,a,n,i)})};vx.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=RD(n),l=zD(n),o=r.map(function(y){var x=y._x0||y.x0||y.x||0,_=y._x1||y.x1||y.x||0,w=y._y0||y.y0||y.y||0,b=y._y1||y.y1||y.y||0,M=y.eventData;if(M){var k=Math.min(x,_),A=Math.max(x,_),S=Math.min(w,b),D=Math.max(w,b),E=y.trace;if(Qf.traceIs(E,"gl3d")){var R=n._fullLayout[E.scene]._scene.container,N=R.offsetLeft,I=R.offsetTop;k+=N,A+=N,S+=I,D+=I}M.bbox={x0:k+l,x1:A+l,y0:S+i,y1:D+i},M.xPixel=(x+_)/2,M.yPixel=(w+b)/2,t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:y.color||la.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=DD(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||la.background,container:eu.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,v=0,h=0;f.sort(function(y,x){return y.y0-x.y0}).each(function(y,x){var _=y.y0-y.by/2;_-c<v?y.offset=v-_+c:y.offset=0,v=_+y.by+y.offset,x===t.anchorIndex&&(h=y.offset)}).each(function(y){y.offset-=h});var p=n._fullLayout._invScaleX,m=n._fullLayout._invScaleY;return PD(f,s,p,m),a?f:f.node()};function Nce(e,r,t,a,n){t||(t="xy"),typeof t=="string"&&(t=t.split(Sce)[0]);var i=Array.isArray(t)?t:[t],l,o=e._fullLayout,s=o.hoversubplots,u=o._plots||[],f=u[t],c=o._has("cartesian"),v=r.hovermode||o.hovermode,h=(v||"").charAt(0)==="x",p=(v||"").charAt(0)==="y",m,y;if(c&&(h||p)&&s==="axis"){for(var x=i.length,_=0;_<x;_++)if(l=i[_],u[l]){m=yl.getFromId(e,l,"x"),y=yl.getFromId(e,l,"y");var w=(h?m:y)._subplotsWith;if(w&&w.length)for(var b=0;b<w.length;b++)Ace(i,w[b])}}if(f&&s!=="single"){var M=f.overlays.map(function(mr){return mr.id});i=i.concat(M)}for(var k=i.length,A=new Array(k),S=new Array(k),D=!1,E=0;E<k;E++)if(l=i[E],u[l])D=!0,A[E]=u[l].xaxis,S[E]=u[l].yaxis;else if(o[l]&&o[l]._subplot){var R=o[l]._subplot;A[E]=R.xaxis,S[E]=R.yaxis}else{It.warn("Unrecognized subplot: "+l);return}if(v&&!D&&(v="closest"),["x","y","closest","x unified","y unified"].indexOf(v)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return Cp.unhoverRaw(e,r);var N=o.hoverdistance;N===-1&&(N=1/0);var I=o.spikedistance;I===-1&&(I=1/0);var H=[],O=[],G,Y,V,U,Z,X,$,ae,ie,ve,K,he,oe,be={hLinePoint:null,vLinePoint:null},me=!1;if(Array.isArray(r))for(v="array",V=0;V<r.length;V++)Z=e.calcdata[r[V].curveNumber||0],Z&&(X=Z[0].trace,Z[0].trace.hoverinfo!=="skip"&&(O.push(Z),X.orientation==="h"&&(me=!0)));else{var ce=e.calcdata.slice();for(ce.sort(function(mr,mt){var Qr=mr[0].trace.zorder||0,xt=mt[0].trace.zorder||0;return Qr-xt}),U=0;U<ce.length;U++)Z=ce[U],X=Z[0].trace,X.hoverinfo!=="skip"&&Wn.isTraceInSubplots(X,i)&&(O.push(Z),X.orientation==="h"&&(me=!0));var Me=!n,De,Te;if(Me)"xpx"in r?De=r.xpx:De=A[0]._length/2,"ypx"in r?Te=r.ypx:Te=S[0]._length/2;else{if(Cce.triggerHandler(e,"plotly_beforehover",r)===!1)return;var Pe=n.getBoundingClientRect();De=r.clientX-Pe.left,Te=r.clientY-Pe.top,o._calcInverseTransform(e);var Se=It.apply3DTransform(o._invTransform)(De,Te);if(De=Se[0],Te=Se[1],De<0||De>A[0]._length||Te<0||Te>S[0]._length)return Cp.unhoverRaw(e,r)}if(r.pointerX=De+A[0]._offset,r.pointerY=Te+S[0]._offset,"xval"in r?G=Wn.flat(i,r.xval):G=Wn.p2c(A,De),"yval"in r?Y=Wn.flat(i,r.yval):Y=Wn.p2c(S,Te),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Bl(G[0])||!Bl(Y[0]))return It.warn("Fx.hover failed",r,e),Cp.unhoverRaw(e,r)}o.clickanywhere&&(e._hoverXVals=G,e._hoverYVals=Y,e._hoverXAxes=A,e._hoverYAxes=S);var ke=1/0;function ze(mr,mt){for(U=0;U<O.length;U++)if(Z=O[U],!(!Z||!Z[0]||!Z[0].trace)&&(X=Z[0].trace,!(X.visible!==!0||X._length===0)&&["carpet","contourcarpet"].indexOf(X._module.name)===-1)){if(ie=v,Wn.isUnifiedHover(ie)&&(ie=ie.charAt(0)),X.type==="splom"?(ae=0,$=i[ae]):($=Wn.getSubplot(X),ae=i.indexOf($)),he={cd:Z,trace:X,xa:A[ae],ya:S[ae],maxHoverDistance:N,maxSpikeDistance:I,index:!1,distance:Math.min(ke,N),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:la.defaultLine,name:X.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},o[$]&&(he.subplot=o[$]._subplot),o._splomScenes&&o._splomScenes[X.uid]&&(he.scene=o._splomScenes[X.uid]),ie==="array"){var Qr=r[U];if("pointNumber"in Qr){let aa=Z[Qr.pointNumber];aa&&(he.index=Qr.pointNumber,aa.lonlat?(ve=aa.lonlat[0],K=aa.lonlat[1]):(ve=aa.x,K=aa.y)),ie="closest"}else ie="","xval"in Qr&&(ve=Qr.xval,ie="x"),"yval"in Qr&&(K=Qr.yval,ie=ie?"closest":"y")}else mr!==void 0&&mt!==void 0?(ve=mr,K=mt):(ve=G[ae],K=Y[ae]);if(oe=H.length,N!==0)if(X._module&&X._module.hoverPoints){var xt=X._module.hoverPoints(he,ve,K,ie,{finiteRange:!0,hoverLayer:o._hoverlayer,hoversubplots:s,gd:e});if(xt)for(var zt,St=0;St<xt.length;St++)zt=xt[St],Bl(zt.x0)&&Bl(zt.y0)&&H.push(Oce(zt,v))}else It.log("Unrecognized trace type in hover:",X);if(v==="closest"&&H.length>oe&&(H.splice(0,oe),ke=H[0].distance),c&&I!==0&&H.length===0){he.distance=I,he.index=!1;var ft=X._module.hoverPoints(he,ve,K,"closest",{hoverLayer:o._hoverlayer});if(ft&&(ft=ft.filter(function(aa){return aa.spikeDistance<=I})),ft&&ft.length){var sa,jn=ft.filter(function(aa){return aa.xa.showspikes&&aa.xa.spikesnap!=="hovered data"});if(jn.length){var Wt=jn[0];Bl(Wt.x0)&&Bl(Wt.y0)&&(sa=Ce(Wt),(!be.vLinePoint||be.vLinePoint.spikeDistance>sa.spikeDistance)&&(be.vLinePoint=sa))}var _t=ft.filter(function(aa){return aa.ya.showspikes&&aa.ya.spikesnap!=="hovered data"});if(_t.length){var ta=_t[0];Bl(ta.x0)&&Bl(ta.y0)&&(sa=Ce(ta),(!be.hLinePoint||be.hLinePoint.spikeDistance>sa.spikeDistance)&&(be.hLinePoint=sa))}}}}}ze();function Ge(mr,mt,Qr){for(var xt=null,zt=1/0,St,ft=0;ft<mr.length;ft++)m&&m._id!==mr[ft].xa._id||y&&y._id!==mr[ft].ya._id||(St=mr[ft].spikeDistance,Qr&&ft===0&&(St=-1/0),St<=zt&&St<=mt&&(xt=mr[ft],zt=St));return xt}function Ce(mr){return mr?{xa:mr.xa,ya:mr.ya,x:mr.xSpike!==void 0?mr.xSpike:(mr.x0+mr.x1)/2,y:mr.ySpike!==void 0?mr.ySpike:(mr.y0+mr.y1)/2,distance:mr.distance,spikeDistance:mr.spikeDistance,curveNumber:mr.trace.index,color:mr.color,pointNumber:mr.index}:null}var $e={fullLayout:o,container:o._hoverlayer,event:r},Ke=e._spikepoints,Xe={vLinePoint:be.vLinePoint,hLinePoint:be.hLinePoint};e._spikepoints=Xe;var Ae=function(){var mr=H.filter(function(Qr){return m&&m._id===Qr.xa._id&&y&&y._id===Qr.ya._id}),mt=H.filter(function(Qr){return!(m&&m._id===Qr.xa._id&&y&&y._id===Qr.ya._id)});mr.sort(TD),mt.sort(TD),H=mr.concat(mt),H=Yce(H,v)};Ae();var Re=v.charAt(0),Qe=(Re==="x"||Re==="y")&&H[0]&&zce[H[0].trace.type];if(c&&I!==0&&H.length!==0){var re=H.filter(function(mr){return mr.ya.showspikes}),ye=Ge(re,I,Qe);be.hLinePoint=Ce(ye);var Ve=H.filter(function(mr){return mr.xa.showspikes}),dr=Ge(Ve,I,Qe);be.vLinePoint=Ce(dr)}if(H.length===0){var Ee=Cp.unhoverRaw(e,r);if(c&&(be.hLinePoint!==null||be.vLinePoint!==null)&&kD(Ke)&&AD(e,be,$e),o.hoveranywhere&&!a&&n){var pe=e._hoverdata;pe&&pe.length&&(e.emit("plotly_unhover",{event:r,points:pe}),e._hoverdata=[]),Rn([]),e._hoverAnywhereActive=!0}return Ee}if(c&&kD(Ke)&&AD(e,be,$e),Wn.isXYhover(ie)&&H[0].length!==0&&H[0].trace.type!=="splom"){var we=H[0];wD[we.trace.type]?H=H.filter(mr=>mr.trace.index===we.trace.index):H=[we];var Oe=H.length,We=LD("x",we,o),Ie=LD("y",we,o);ze(We,Ie);var Ue=[],ar={},ir=0,ur=function(mr){var mt=wD[mr.trace.type]?qD(mr):mr.trace.index;if(!ar[mt])ir++,ar[mt]=ir,Ue.push(mr);else{var Qr=ar[mt]-1,xt=Ue[Qr];Qr>0&&Math.abs(mr.distance)<Math.abs(xt.distance)&&(Ue[Qr]=mr)}},qe;for(qe=0;qe<Oe;qe++)ur(H[qe]);for(qe=H.length-1;qe>Oe-1;qe--)ur(H[qe]);H=Ue,Ae()}var Je=e._hoverdata,Fe=[],hr=RD(e),br=zD(e);for(let mr of H){var sr=Wn.makeEventData(mr,mr.trace,mr.cd);if(mr.hovertemplate!==!1){var pr=!1;mr.cd[mr.index]&&mr.cd[mr.index].ht&&(pr=mr.cd[mr.index].ht),mr.hovertemplate=pr||mr.trace.hovertemplate||!1}if(mr.xa&&mr.ya){var te=mr.x0+mr.xa._offset,de=mr.x1+mr.xa._offset,Ne=mr.y0+mr.ya._offset,Ye=mr.y1+mr.ya._offset,Kr=Math.min(te,de),ut=Math.max(te,de),pt=Math.min(Ne,Ye),Yt=Math.max(Ne,Ye);sr.bbox={x0:Kr+br,x1:ut+br,y0:pt+hr,y1:Yt+hr},sr.xPixel=(te+de)/2,sr.yPixel=(Ne+Ye)/2}mr.eventData=[sr],Fe.push(sr)}e._hoverdata=Fe;var Rt=v==="y"&&(O.length>1||H.length>1)||v==="closest"&&me&&H.length>1,Aa=la.combine(o.plot_bgcolor||la.background,o.paper_bgcolor),mn=DD(H,{gd:e,hovermode:v,rotateLabels:Rt,bgColor:Aa,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),oa=mn.hoverLabels;if(Wn.isUnifiedHover(v)||(Ice(oa,Rt,o,mn.commonLabelBoundingBox),PD(oa,Rt,o._invScaleX,o._invScaleY)),n&&n.tagName){var fn=Qf.getComponentMethod("annotations","hasClickToShow")(e,Fe);Lce(eu.select(n),fn?"pointer":"")}var Pn=Bce(e,r,Je);if(!n||a||!Pn&&!o.hoveranywhere)return;Je&&Pn&&e.emit("plotly_unhover",{event:r,points:Je}),Rn(e._hoverdata);function Rn(mr){e.emit("plotly_hover",{event:r,points:mr,xaxes:A,yaxes:S,xvals:Wn.c2dApply(A,G),yvals:Wn.c2dApply(S,Y),xPixel:r.pointerX,yPixel:r.pointerY})}}function qD(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 Fce=/<extra>([\s\S]*)<\/extra>/;function DD(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||ru.HOVERFONT,c=r.fontSize||ru.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,h=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,m=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,x=r.fontShadow||a.font.shadow,_=e[0],w=_.xa,b=_.ya,M=n.charAt(0),k=M+"Label",A=_[k];if(A===void 0&&w.type==="multicategory")for(var S=0;S<e.length&&(A=e[S][k],A===void 0);S++);var D=Kf(t,s),E=D.top,R=D.width,N=D.height,I=A!==void 0&&_.distance<=r.hoverdistance&&(n==="x"||n==="y");if(I){var H=!0,O,G;for(O=0;O<e.length;O++)if(H&&e[O].zLabel===void 0&&(H=!1),G=e[O].hoverinfo||e[O].trace.hoverinfo,G){var Y=Array.isArray(G)?G:G.split("+");if(Y.indexOf("all")===-1&&Y.indexOf(n)===-1){I=!1;break}}H&&(I=!1)}var V=o.selectAll("g.axistext").data(I?[0]:[]);V.enter().append("g").classed("axistext",!0),V.exit().remove();var U={minX:0,maxX:0,minY:0,maxY:0};if(V.each(function(){var Ee=eu.select(this),pe=It.ensureSingle(Ee,"path","",function(pt){pt.style({"stroke-width":"1px"})}),we=It.ensureSingle(Ee,"text","",function(pt){pt.attr("data-notex",1)}),Oe=u.bgcolor||la.defaultLine,We=u.bordercolor||la.contrast(Oe),Ie=la.contrast(Oe),Ue=u.font,ar={weight:Ue.weight||v,style:Ue.style||h,variant:Ue.variant||p,textcase:Ue.textcase||m,lineposition:Ue.lineposition||y,shadow:Ue.shadow||x,family:Ue.family||f,size:Ue.size||c,color:Ue.color||Ie};pe.style({fill:Oe,stroke:We}),we.text(A).call(ml.font,ar).call(ci.positionText,0,0).call(ci.convertToTspans,t),Ee.attr("transform","");var ir=Kf(t,we.node()),ur,qe;if(n==="x"){var Je=w.side==="top"?"-":"";we.attr("text-anchor","middle").call(ci.positionText,0,w.side==="top"?E-ir.bottom-Ct-Ur:E-ir.top+Ct+Ur),ur=w._offset+(_.x0+_.x1)/2,qe=b._offset+(w.side==="top"?0:b._length);var Fe=ir.width/2+Ur,hr=ur;ur<Fe?hr=Fe:ur>a.width-Fe&&(hr=a.width-Fe),pe.attr("d","M"+(ur-hr)+",0L"+(ur-hr+Ct)+","+Je+Ct+"H"+Fe+"v"+Je+(Ur*2+ir.height)+"H"+-Fe+"V"+Je+Ct+"H"+(ur-hr-Ct)+"Z"),ur=hr,U.minX=ur-Fe,U.maxX=ur+Fe,w.side==="top"?(U.minY=qe-(Ur*2+ir.height),U.maxY=qe-Ur):(U.minY=qe+Ur,U.maxY=qe+(Ur*2+ir.height))}else{var br,sr,pr;b.side==="right"?(br="start",sr=1,pr="",ur=w._offset+w._length):(br="end",sr=-1,pr="-",ur=w._offset),qe=b._offset+(_.y0+_.y1)/2,we.attr("text-anchor",br),pe.attr("d","M0,0L"+pr+Ct+","+Ct+"V"+(Ur+ir.height/2)+"h"+pr+(Ur*2+ir.width)+"V-"+(Ur+ir.height/2)+"H"+pr+Ct+"V-"+Ct+"Z"),U.minY=qe-(Ur+ir.height/2),U.maxY=qe+(Ur+ir.height/2),b.side==="right"?(U.minX=ur+Ct,U.maxX=ur+Ct+(Ur*2+ir.width)):(U.minX=ur-Ct-(Ur*2+ir.width),U.maxX=ur-Ct);var te=ir.height/2,de=E-ir.top-te,Ne="clip"+a._uid+"commonlabel"+b._id,Ye;if(ur<ir.width+2*Ur+Ct){Ye="M-"+(Ct+Ur)+"-"+te+"h-"+(ir.width-Ur)+"V"+te+"h"+(ir.width-Ur)+"Z";var Kr=ir.width-ur+Ur;ci.positionText(we,Kr,de),br==="end"&&we.selectAll("tspan").each(function(){var pt=eu.select(this),Yt=ml.tester.append("text").text(pt.text()).call(ml.font,ar),Rt=Kf(t,Yt.node());Math.round(Rt.width)<Math.round(ir.width)&&pt.attr("x",Kr-Rt.width),Yt.remove()})}else ci.positionText(we,sr*(Ur+Ct),de),Ye=null;var ut=a._topclips.selectAll("#"+Ne).data(Ye?[0]:[]);ut.enter().append("clipPath").attr("id",Ne).append("path"),ut.exit().remove(),ut.select("path").attr("d",Ye),ml.setClipUrl(we,Ye?Ne:null,t)}Ee.attr("transform",fx(ur,qe))}),Wn.isUnifiedHover(n)){o.selectAll("g.hovertext").remove();let Ee=e.filter(pe=>pe.hoverinfo!=="none");if(Ee.length===0)return[];var Z=a.hoverlabel,X=Z.font,$=Ee[0],ae=((n==="x unified"?$.xa:$.ya).unifiedhovertitle||{}).text,ie=ae?It.hovertemplateString({data:n==="x unified"?[{xa:$.xa,x:$.xVal}]:[{ya:$.ya,y:$.yVal}],fallback:$.trace.hovertemplatefallback,locale:a._d3locale,template:ae}):A,ve={showlegend:!0,legend:{title:{text:ie,font:X},font:X,bgcolor:Z.bgcolor,bordercolor:Z.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},K={font:X};qce(ve,K,t._fullData);var he=K.legend;he.entries=[];for(var oe=0;oe<Ee.length;oe++){var be=Ee[oe];if(be.hoverinfo!=="none"){var me=MD(be,!0,n,a,A),ce=me[0],Me=me[1];be.name=Me,Me!==""?be.text=Me+" : "+ce:be.text=ce;var De=be.cd[be.index];De&&(De.mc&&(be.mc=De.mc),De.mcc&&(be.mc=De.mcc),De.mlc&&(be.mlc=De.mlc),De.mlcc&&(be.mlc=De.mlcc),De.mlw&&(be.mlw=De.mlw),De.mrc&&(be.mrc=De.mrc),De.dir&&(be.dir=De.dir)),be._distinct=!0,he.entries.push([be])}}he.entries.sort(function(pe,we){var Oe=a.hoversort;if(Oe==="value descending"||Oe==="value ascending"){var We=n.charAt(0)==="x"?"y":"x",Ie=pe[0][We+"LabelVal"],Ue=we[0][We+"LabelVal"];if(Ie!==Ue)return Oe==="value descending"?Ue-Ie:Ie-Ue}return pe[0].trace.index-we[0].trace.index}),he.layer=o,he._inHover=!0,he._groupTitleFont=Z.grouptitlefont,Dce(t,he);var Te=o.select("g.legend"),Pe=Kf(t,Te.node()),Se=Pe.width+2*Ur,ke=Pe.height+2*Ur,ze=Ee[0],Ge=(ze.x0+ze.x1)/2,Ce=(ze.y0+ze.y1)/2,$e=!(Qf.traceIs(ze.trace,"bar-like")||Qf.traceIs(ze.trace,"box-violin")),Ke,Xe;M==="y"?$e?(Xe=Ce-Ur,Ke=Ce+Ur):(Xe=Math.min.apply(null,Ee.map(function(pe){return Math.min(pe.y0,pe.y1)})),Ke=Math.max.apply(null,Ee.map(function(pe){return Math.max(pe.y0,pe.y1)}))):Xe=Ke=It.mean(Ee.map(function(pe){return(pe.y0+pe.y1)/2}))-ke/2;var Ae,Re;M==="x"?$e?(Ae=Ge+Ur,Re=Ge-Ur):(Ae=Math.max.apply(null,Ee.map(function(pe){return Math.max(pe.x0,pe.x1)})),Re=Math.min.apply(null,Ee.map(function(pe){return Math.min(pe.x0,pe.x1)}))):Ae=Re=It.mean(Ee.map(function(pe){return(pe.x0+pe.x1)/2}))-Se/2;var Qe=w._offset,re=b._offset;Ke+=re,Ae+=Qe,Re+=Qe-Se,Xe+=re-ke;var ye,Ve;return Ae+Se<R&&Ae>=0?ye=Ae:Re+Se<R&&Re>=0?ye=Re:Qe+Se<R?ye=Qe:Ae-Ge<Ge-Re+Se?ye=R-Se:ye=0,ye+=Ur,Ke+ke<N&&Ke>=0?Ve=Ke:Xe+ke<N&&Xe>=0?Ve=Xe:re+ke<N?Ve=re:Ke-Ce<Ce-Xe+ke?Ve=N-ke:Ve=0,Ve+=Ur,Te.attr("transform",fx(ye-1,Ve-1)),Te}var dr=o.selectAll("g.hovertext").data(e,function(Ee){return qD(Ee)});return dr.enter().append("g").classed("hovertext",!0).each(function(){var Ee=eu.select(this);Ee.append("rect").call(la.fill,la.addOpacity(l,.8)),Ee.append("text").classed("name",!0),Ee.append("path").style("stroke-width","1px"),Ee.append("text").classed("nums",!0).call(ml.font,{weight:v,style:h,variant:p,textcase:m,lineposition:y,shadow:x,family:f,size:c})}),dr.exit().remove(),dr.each(function(Ee){var pe=eu.select(this).attr("transform",""),we=Ee.color;Array.isArray(we)&&(we=we[Ee.eventData[0].pointNumber]);var Oe=Ee.bgcolor||we,We=la.combine(la.opacity(Oe)?Oe:la.defaultLine,l),Ie=la.combine(la.opacity(we)?we:la.defaultLine,l),Ue=Ee.borderColor||la.contrast(We),ar=MD(Ee,I,n,a,A,pe),ir=ar[0],ur=ar[1],qe=pe.select("text.nums").call(ml.font,{family:Ee.fontFamily||f,size:Ee.fontSize||c,color:Ee.fontColor||Ue,weight:Ee.fontWeight||v,style:Ee.fontStyle||h,variant:Ee.fontVariant||p,textcase:Ee.fontTextcase||m,lineposition:Ee.fontLineposition||y,shadow:Ee.fontShadow||x}).text(ir).attr("data-notex",1).call(ci.positionText,0,0).call(ci.convertToTspans,t),Je=pe.select("text.name"),Fe=0,hr=0;if(ur&&ur!==ir){Je.call(ml.font,{family:Ee.fontFamily||f,size:Ee.fontSize||c,color:Ie,weight:Ee.fontWeight||v,style:Ee.fontStyle||h,variant:Ee.fontVariant||p,textcase:Ee.fontTextcase||m,lineposition:Ee.fontLineposition||y,shadow:Ee.fontShadow||x}).text(ur).attr("data-notex",1).call(ci.positionText,0,0).call(ci.convertToTspans,t);var br=Kf(t,Je.node());Fe=br.width+2*Ur,hr=br.height+2*Ur}else Je.remove(),pe.select("rect").remove();pe.select("path").style({fill:We,stroke:Ue});var sr=Ee.xa._offset+(Ee.x0+Ee.x1)/2,pr=Ee.ya._offset+(Ee.y0+Ee.y1)/2,te=Math.abs(Ee.x1-Ee.x0),de=Math.abs(Ee.y1-Ee.y0),Ne=Kf(t,qe.node()),Ye=Ne.width/a._invScaleX,Kr=Ne.height/a._invScaleY;Ee.ty0=(E-Ne.top)/a._invScaleY,Ee.bx=Ye+2*Ur,Ee.by=Math.max(Kr+2*Ur,hr),Ee.anchor="start",Ee.txwidth=Ye,Ee.tx2width=Fe,Ee.offset=0;var ut=(Ye+Ct+Ur+Fe)*a._invScaleX,pt,Yt;if(i)Ee.pos=sr,pt=pr+de/2+ut<=N,Yt=pr-de/2-ut>=0,(Ee.idealAlign==="top"||!pt)&&Yt?(pr-=de/2,Ee.anchor="end"):pt?(pr+=de/2,Ee.anchor="start"):Ee.anchor="middle",Ee.crossPos=pr;else{if(Ee.pos=pr,pt=sr+te/2+ut<=R,Yt=sr-te/2-ut>=0,(Ee.idealAlign==="left"||!pt)&&Yt)sr-=te/2,Ee.anchor="end";else if(pt)sr+=te/2,Ee.anchor="start";else{Ee.anchor="middle";var Rt=ut/2,Aa=sr+Rt-R,mn=sr-Rt;Aa>0&&(sr-=Aa),mn<0&&(sr+=-mn)}Ee.crossPos=sr}qe.attr("text-anchor",Ee.anchor),Fe&&Je.attr("text-anchor",Ee.anchor),pe.attr("transform",fx(sr,pr)+(i?kce(SD):""))}),{hoverLabels:dr,commonLabelBoundingBox:U}}function MD(e,r,t,a,n,i){var c,v;var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=It.templateString(e.name,e.trace._meta)),l=CD(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"<br>"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"<br>"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"<br>":"")+e.text),e.extraText!==void 0&&(o+=(o?"<br>":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let h=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(h[s+"other"]=h[s+"Val"],h[s+"otherLabel"]=h[s+"Label"]),o=It.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:h,locale:a._d3locale,template:f}),o=o.replace(Fce,(p,m)=>(l=CD(m,e.nameLength),""))}return[o,l]}function Ice(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,h=a.minY,p=a.maxY,m=function(G){return G*t._invScaleX},y=function(G){return G*t._invScaleY};e.each(function(G){var Y=G[n],V=G[i],U=Y._id.charAt(0)==="x",Z=Y.range;f===0&&Z&&Z[0]>Z[1]!==U&&(o=-1);var X=0,$=U?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var ae=ED(G,r),ie=G.anchor,ve=ie==="end"?-1:1,K,he;if(ie==="middle")K=G.crossPos+(U?y(ae.y-G.by/2):m(G.bx/2+G.tx2width/2)),he=K+(U?y(G.by):m(G.bx));else if(U)K=G.crossPos+y(Ct+ae.y)-y(G.by/2-Ct),he=K+y(G.by);else{var oe=m(ve*Ct+ae.x),be=oe+m(ve*G.bx);K=G.crossPos+Math.min(oe,be),he=G.crossPos+Math.max(oe,be)}U?h!==void 0&&p!==void 0&&Math.min(he,p)-Math.max(K,h)>1&&(V.side==="left"?(X=V._mainLinePosition,$=t.width):$=V._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(he,v)-Math.max(K,c)>1&&(V.side==="top"?(X=V._mainLinePosition,$=t.height):$=V._mainLinePosition)}u[f++]=[{datum:G,traceIndex:G.trace.index,dp:0,pos:G.pos,posref:G.posref,size:G.by*(U?Ece:1)/2,pmin:X,pmax:$}]}),u.sort(function(G,Y){return G[0].posref-Y[0].posref||o*(Y[0].traceIndex-G[0].traceIndex)});var x,_,w,b,M,k,A;function S(G){var Y=G[0],V=G[G.length-1];if(_=Y.pmin-Y.pos-Y.dp+Y.size,w=V.pos+V.dp+V.size-Y.pmax,_>.01){for(M=G.length-1;M>=0;M--)G[M].dp+=_;x=!1}if(!(w<.01)){if(_<-.01){for(M=G.length-1;M>=0;M--)G[M].dp-=w;x=!1}if(x){var U=0;for(b=0;b<G.length;b++)k=G[b],k.pos+k.dp+k.size>Y.pmax&&U++;for(b=G.length-1;b>=0&&!(U<=0);b--)k=G[b],k.pos>Y.pmax-1&&(k.del=!0,U--);for(b=0;b<G.length&&!(U<=0);b++)if(k=G[b],k.pos<Y.pmin+1)for(k.del=!0,U--,w=k.size*2,M=G.length-1;M>=0;M--)G[M].dp-=w;for(b=G.length-1;b>=0&&!(U<=0);b--)k=G[b],k.pos+k.dp+k.size>Y.pmax&&(k.del=!0,U--)}}}for(;!x&&l<=s;){for(l++,x=!0,b=0;b<u.length-1;){var D=u[b],E=u[b+1],R=D[D.length-1],N=E[0];if(_=R.pos+R.dp+R.size-N.pos-N.dp+N.size,_>.01){for(M=E.length-1;M>=0;M--)E[M].dp+=_;for(D.push.apply(D,E),u.splice(b+1,1),A=0,M=D.length-1;M>=0;M--)A+=D[M].dp;for(w=A/D.length,M=D.length-1;M>=0;M--)D[M].dp-=w;x=!1}else b++}u.forEach(S)}for(b=u.length-1;b>=0;b--){var I=u[b];for(M=I.length-1;M>=0;M--){var H=I[M],O=H.datum;O.offset=H.dp,O.del=H.del}}}function ED(e,r){var t=0,a=e.offset;return r&&(a*=-Rce,t=e.offset*Pce),{x:t,y:a}}function Hce(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ct+Ur),a=t+r*(e.txwidth+Ur),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Ur),{alignShift:r,textShiftX:t,text2ShiftX:a}}function PD(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=eu.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=Hce(l),v=ED(l,r),h=v.x,p=v.y,m=u==="middle",y="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,x;m?x="M-"+n(l.bx/2+l.tx2width/2)+","+i(p-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":y?x="M0,0L"+n(f*Ct+h)+","+i(Ct+p)+"v"+i(l.by/2-Ct)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*Ct+h)+"V"+i(p-Ct)+"Z":x="M"+n(f*Ct+h)+","+i(p-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",x);var _=h+c.textShiftX,w=p+l.ty0-l.by/2+Ur,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),_=m?-l.bx/2-l.tx2width/2+Ur:-l.bx-Ur):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),_=m?l.bx/2-l.tx2width/2-Ur:l.bx+Ur)),s.call(ci.positionText,n(_),i(w)),l.tx2width&&(o.select("text.name").call(ci.positionText,n(c.text2ShiftX+c.alignShift*Ur+h),i(p+l.ty0-l.by/2+Ur)),o.select("rect").call(ml.setRect,n(c.text2ShiftX+(c.alignShift-1)*l.tx2width/2+h),i(p-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function Oce(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(v){return v||Bl(v)&&v===0}var o=Array.isArray(t)?function(v,h){var p=It.castOption(n,t,v);return l(p)?p:It.extractOption({},a,"",h)}:function(v,h){return It.extractOption(i,a,v,h)};function s(v,h,p){var m=o(h,p);l(m)&&(e[v]=m)}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=It.constrain(e.x0,0,e.xa._length),e.x1=It.constrain(e.x1,0,e.xa._length),e.y0=It.constrain(e.y0,0,e.ya._length),e.y1=It.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:yl.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:yl.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=yl.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+yl.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=yl.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+yl.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 AD(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var c=la.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var v=r.hLinePoint,h,p;u=v&&v.xa,f=v&&v.ya;var m=f.spikesnap;m==="cursor"?(h=l.pointerX,p=l.pointerY):(h=u._offset+v.x,p=f._offset+v.y);var y=la.wcagContrast(v.color,c)<1.5?la.contrast(c):v.color,x=f.spikemode,_=f.spikethickness,w=f.spikecolor||y,b=yl.getPxPosition(e,f),M,k;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(M=b,k=h),x.indexOf("across")!==-1){var A=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(A=Math.min(A,f.position),S=Math.max(S,f.position)),M=i.l+A*i.w,k=i.l+S*i.w}a.insert("line",":first-child").attr({x1:M,x2:k,y1:p,y2:p,"stroke-width":_,stroke:w,"stroke-dasharray":ml.dashStyle(f.spikedash,_)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:k,y1:p,y2:p,"stroke-width":_+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?_:-_),cy:p,r:_,fill:w}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,E,R;u=D&&D.xa,f=D&&D.ya;var N=u.spikesnap;N==="cursor"?(E=l.pointerX,R=l.pointerY):(E=u._offset+D.x,R=f._offset+D.y);var I=la.wcagContrast(D.color,c)<1.5?la.contrast(c):D.color,H=u.spikemode,O=u.spikethickness,G=u.spikecolor||I,Y=yl.getPxPosition(e,u),V,U;if(H.indexOf("toaxis")!==-1||H.indexOf("across")!==-1){if(H.indexOf("toaxis")!==-1&&(V=Y,U=R),H.indexOf("across")!==-1){var Z=u._counterDomainMin,X=u._counterDomainMax;u.anchor==="free"&&(Z=Math.min(Z,u.position),X=Math.max(X,u.position)),V=i.t+(1-X)*i.h,U=i.t+(1-Z)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:V,y2:U,"stroke-width":O,stroke:G,"stroke-dasharray":ml.dashStyle(u.spikedash,O)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:V,y2:U,"stroke-width":O+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}H.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:Y-(u.side!=="top"?O:-O),r:O,fill:G}).classed("spikeline",!0)}}}function Bce(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 kD(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function CD(e,r){return ci.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Yce(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;l<e.length;l++){var o=e[l];Qf.traceIs(o.trace,"bar-like")||Qf.traceIs(o.trace,"box-violin")?i.push(o):o.trace[t+"period"]?n.push(o):a.push(o)}return a.concat(n).concat(i)}function LD(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 l=r.trace[e+"periodalignment"];if(l){var o=r.cd[r.index],s=o[e+"Start"];s===void 0&&(s=o[e]);var u=o[e+"End"];u===void 0&&(u=o[e]);var f=u-s;l==="end"?n+=f:l==="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 RD=e=>e.offsetTop+e.clientTop,zD=e=>e.offsetLeft+e.clientLeft;function Kf(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=It.apply3DTransform(t._invTransform)(n,i),u=It.apply3DTransform(t._invTransform)(l,o),f=s[0],c=s[1],v=u[0],h=u[1];return{x:f,y:c,width:v-f,height:h-c,top:Math.min(c,h),left:Math.min(f,v),right:Math.max(f,v),bottom:Math.max(c,h)}}});var Lp=B((uwe,ND)=>{"use strict";var Gce=Le(),Uce=Ar(),Vce=Oi().isUnifiedHover;ND.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&Vce(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=Uce.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),Gce.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var ID=B((fwe,FD)=>{"use strict";var Xce=Le(),Wce=Lp(),Zce=of();FD.exports=function(r,t){function a(n,i){return Xce.coerce(r,t,Zce,n,i)}Wce(r,t,a)}});var BD=B((cwe,OD)=>{"use strict";var HD=Le(),Jce=A0(),$ce=Lp();OD.exports=function(r,t,a,n){function i(o,s){return HD.coerce(r,t,Jce,o,s)}var l=HD.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),$ce(r,t,i,l)}});var hx=B((vwe,YD)=>{"use strict";var Kce=Le(),Qce=of();YD.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Kce.coerce(r,t,Qce,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var VD=B((dwe,UD)=>{"use strict";var GD=Le(),jce=of(),e0e=hx(),r0e=Lp();UD.exports=function(r,t){function a(u,f){return GD.coerce(r,t,jce,u,f)}var n=e0e(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("map"),o=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o)&&s===1||l&&o&&s===2)&&(t.dragmode="pan"),r0e(r,t,a),GD.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var ZD=B((hwe,WD)=>{"use strict";var px=Le(),XD=Mr();WD.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return px.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i<t.length;i++){var l=t[i],o=l[0].trace;if(!XD.traceIs(o,"pie-like")){var s=XD.traceIs(o,"2dMap")?t0e:px.fillArray;s(o.hoverinfo,l,"hi",n(o)),o.hovertemplate&&s(o.hovertemplate,l,"ht"),o.hoverlabel&&(s(o.hoverlabel.bgcolor,l,"hbg"),s(o.hoverlabel.bordercolor,l,"hbc"),s(o.hoverlabel.font.size,l,"hts"),s(o.hoverlabel.font.color,l,"htc"),s(o.hoverlabel.font.family,l,"htf"),s(o.hoverlabel.font.weight,l,"htw"),s(o.hoverlabel.font.style,l,"hty"),s(o.hoverlabel.font.variant,l,"htv"),s(o.hoverlabel.namelength,l,"hnl"),s(o.hoverlabel.align,l,"hta"),s(o.hoverlabel.showarrow,l,"htsa"))}}};function t0e(e,r,t,a){a=a||px.identity,Array.isArray(e)&&(r[0][t]=a(e))}});var KD=B((pwe,$D)=>{"use strict";var a0e=Mr(),JD=Oi(),n0e=dx().hover;$D.exports=function(r,t,a){var n=a0e.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&n0e(r,t,a,!0);function l(){var s,u,f,c,v,h;var o={points:r._hoverdata,event:t};(s=o.xaxes)!=null||(o.xaxes=r._hoverXAxes),(u=o.yaxes)!=null||(o.yaxes=r._hoverYAxes),(f=o.xvals)!=null||(o.xvals=r._hoverXVals&&JD.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=o.yvals)!=null||(o.yvals=r._hoverYVals&&JD.c2dApply(r._hoverYAxes,r._hoverYVals)),(v=o.xPixel)!=null||(o.xPixel=r._hoverPointerX),(h=o.yPixel)!=null||(o.yPixel=r._hoverPointerY),r.emit("plotly_click",o)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(l):l(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var vi=B((mwe,eE)=>{"use strict";var i0e=Dr(),Sp=Le(),l0e=Yi(),_v=Oi(),QD=of(),jD=dx();eE.exports={moduleType:"component",name:"fx",constants:w0(),schema:{layout:QD},attributes:A0(),layoutAttributes:QD,supplyLayoutGlobalDefaults:ID(),supplyDefaults:BD(),supplyLayoutDefaults:VD(),calc:ZD(),getDistanceFunction:_v.getDistanceFunction,getClosest:_v.getClosest,inbox:_v.inbox,quadrature:_v.quadrature,appendArrayPointValue:_v.appendArrayPointValue,castHoverOption:s0e,castHoverinfo:u0e,hover:jD.hover,unhover:l0e.unhover,loneHover:jD.loneHover,loneUnhover:o0e,click:KD()};function o0e(e){var r=Sp.isD3Selection(e)?e:i0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function s0e(e,r,t){return Sp.castOption(e,r,"hoverlabel."+t)}function u0e(e,r,t){function a(n){return Sp.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return Sp.castOption(e,t,"hoverinfo",a)}});var jf=B(Yl=>{"use strict";Yl.selectMode=function(e){return e==="lasso"||e==="select"};Yl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Yl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Yl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Yl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Yl.selectingOrDrawing=function(e){return Yl.freeMode(e)||Yl.rectMode(e)}});var qp=B((gwe,rE)=>{"use strict";rE.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 Dp=B((bwe,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)"},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 Pp=B((xwe,aE)=>{"use strict";var Ep=32;aE.exports={CIRCLE_SIDES:Ep,i000:0,i090:Ep/4,i180:Ep/2,i270:Ep/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var Rp=B((_we,iE)=>{"use strict";var f0e=Le().strTranslate;function nE(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 c0e(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 v0e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return nE(e,t[r])}}function d0e(e){return f0e(e.xaxis._offset,e.yaxis._offset)}iE.exports={p2r:nE,r2p:c0e,axValue:v0e,getTransform:d0e}});var Ro=B(Gl=>{"use strict";var h0e=ab(),sE=Pp(),ec=sE.CIRCLE_SIDES,mx=sE.SQRT2,uE=Rp(),lE=uE.p2r,oE=uE.r2p,p0e=[0,3,4,5,6,1,2],m0e=[0,3,4,1,2];Gl.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 l=e[a][i][0];if(l==="Z")t+="Z";else for(var o=e[a][i].length,s=0;s<o;s++){var u=s;l==="Q"||l==="S"?u=m0e[s]:l==="C"&&(u=p0e[s]),t+=e[a][i][u],s>0&&s<o-1&&(t+=",")}}return t};Gl.readPaths=function(e,r,t,a){var n=h0e(e),i=[],l=-1,o=function(){l++,i[l]=[]},s,u=0,f=0,c,v,h=function(){c=u,v=f};h();for(var p=0;p<n.length;p++){var m=[],y,x,_,w,b=n[p][0],M=b;switch(b){case"M":o(),u=+n[p][1],f=+n[p][2],m.push([M,u,f]),h();break;case"Q":case"S":y=+n[p][1],_=+n[p][2],u=+n[p][3],f=+n[p][4],m.push([M,u,f,y,_]);break;case"C":y=+n[p][1],_=+n[p][2],x=+n[p][3],w=+n[p][4],u=+n[p][5],f=+n[p][6],m.push([M,u,f,y,_,x,w]);break;case"T":case"L":u=+n[p][1],f=+n[p][2],m.push([M,u,f]);break;case"H":M="L",u=+n[p][1],m.push([M,u,f]);break;case"V":M="L",f=+n[p][1],m.push([M,u,f]);break;case"A":M="L";var k=+n[p][1],A=+n[p][2];+n[p][4]||(k=-k,A=-A);var S=u-k,D=f;for(s=1;s<=ec/2;s++){var E=2*Math.PI*s/ec;m.push([M,S+k*Math.cos(E),D+A*Math.sin(E)])}break;case"Z":(u!==c||f!==v)&&(u=c,f=v,m.push([M,u,f]));break}for(var R=(t||{}).domain,N=r._fullLayout._size,I=t&&t.xsizemode==="pixel",H=t&&t.ysizemode==="pixel",O=a===!1,G=0;G<m.length;G++){for(s=0;s+2<7;s+=2){var Y=m[G][s+1],V=m[G][s+2];Y===void 0||V===void 0||(u=Y,f=V,t&&(t.xaxis&&t.xaxis.p2r?(O&&(Y-=t.xaxis._offset),I?Y=oE(t.xaxis,t.xanchor)+Y:Y=lE(t.xaxis,Y)):(O&&(Y-=N.l),R?Y=R.x[0]+Y/N.w:Y=Y/N.w),t.yaxis&&t.yaxis.p2r?(O&&(V-=t.yaxis._offset),H?V=oE(t.yaxis,t.yanchor)-V:V=lE(t.yaxis,V)):(O&&(V-=N.t),R?V=R.y[1]-V/N.h:V=1-V/N.h)),m[G][s+1]=Y,m[G][s+2]=V)}i[l].push(m[G].slice())}}return i};function wv(e,r){return Math.abs(e-r)<=1e-6}function zp(e,r){var t=r[1]-e[1],a=r[2]-e[2];return Math.sqrt(t*t+a*a)}Gl.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(!wv(a,n))return!1;var i=e[0][t]-e[3][t],l=e[1][t]-e[2][t];if(!wv(i,l))return!1}return!wv(e[0][1],e[1][1])&&!wv(e[0][1],e[3][1])?!1:!!(zp(e[0],e[1])*zp(e[0],e[3]))};Gl.pointsOnEllipse=function(e){var r=e.length;if(r!==ec+1)return!1;r=ec;for(var t=0;t<r;t++){var a=(r*2-t)%r,n=(r/2+a)%r,i=(r/2+t)%r;if(!wv(zp(e[t],e[i]),zp(e[a],e[n])))return!1}return!0};Gl.handleEllipse=function(e,r,t){if(!e)return[r,t];var a=Gl.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,l=(a.x1-a.x0)/2,o=(a.y1-a.y0)/2;l||(l=o=o/mx),o||(o=l=l/mx);for(var s=[],u=0;u<ec;u++){var f=u*2*Math.PI/ec;s.push([n+l*Math.cos(f),i+o*Math.sin(f)])}return s};Gl.ellipseOver=function(e){var r=e.x0,t=e.y0,a=e.x1,n=e.y1,i=a-r,l=n-t;r-=i,t-=l;var o=(r+a)/2,s=(t+n)/2,u=mx;return i*=u,l*=u,{x0:o-i,y0:s-l,x1:o+i,y1:s+l}};Gl.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 l=0;l<e[i].length;l++)for(var o=0;o+2<e[i][l].length;o+=2)a&&(e[i][l][o+1]=e[i][l][o+1].replace(" ","_")),n&&(e[i][l][o+2]=e[i][l][o+2].replace(" ","_"));return e}});var Ip=B((Twe,gE)=>{"use strict";var fE=na(),pE=jf(),y0e=pE.drawMode,g0e=pE.openMode,rc=Pp(),cE=rc.i000,vE=rc.i090,dE=rc.i180,hE=rc.i270,b0e=rc.cos45,x0e=rc.sin45,mE=Rp(),Np=mE.p2r,zo=mE.r2p,_0e=Mo(),w0e=_0e.clearOutline,Fp=Ro(),T0e=Fp.readPaths,M0e=Fp.writePaths,A0e=Fp.ellipseOver,k0e=Fp.fixDatesForPaths;function C0e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!y0e(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o<l.length)switch(a._fullLayout.shapes[o].type){case"rect":i="drawrect";break;case"circle":i="drawcircle";break;case"line":i="drawline";break;case"path":var s=l[o].path||"";s[s.length-1]==="Z"?i="drawclosedpath":i="drawopenpath";break}}var u=yE(e,r,i);w0e(a);for(var f=r.editHelpers,c=(f||{}).modifyItem,v=[],h=0;h<l.length;h++){var p=a._fullLayout.shapes[h];if(v[h]=p._input,n!==void 0&&h===a._fullLayout._activeShapeIndex){var m=u;switch(p.type){case"line":case"rect":case"circle":var y=fE.getFromId(a,p.xref);p.xref.charAt(0)==="x"&&y.type.includes("category")?(c("x0",m.x0-(p.x0shift||0)),c("x1",m.x1-(p.x1shift||0))):(c("x0",m.x0),c("x1",m.x1));var x=fE.getFromId(a,p.yref);p.yref.charAt(0)==="y"&&x.type.includes("category")?(c("y0",m.y0-(p.y0shift||0)),c("y1",m.y1-(p.y1shift||0))):(c("y0",m.y0),c("y1",m.y1));break;case"path":c("path",m.path);break}}}return n===void 0?(v.push(u),v):f?f.getUpdateObj():{}}}}function yE(e,r,t){var a=e[0][0],n=r.gd,i=a.getAttribute("d"),l=n._fullLayout.newshape,o=r.plotinfo,s=r.isActiveShape,u=o.xaxis,f=o.yaxis,c=!!o.domain||!o.xaxis,v=!!o.domain||!o.yaxis,h=g0e(t),p=T0e(i,n,o,s),m={editable:!0,visible:l.visible,name:l.name,showlegend:l.showlegend,legend:l.legend,legendwidth:l.legendwidth,legendgroup:l.legendgroup,legendgrouptitle:{text:l.legendgrouptitle.text,font:l.legendgrouptitle.font},legendrank:l.legendrank,label:l.label,xref:c?"paper":u._id,yref:v?"paper":f._id,layer:l.layer,opacity:l.opacity,line:{color:l.line.color,width:l.line.width,dash:l.line.dash}};h||(m.fillcolor=l.fillcolor,m.fillrule=l.fillrule);var y;if(p.length===1&&(y=p[0]),y&&y.length===5&&t==="drawrect")m.type="rect",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[2][1],m.y1=y[2][2];else if(y&&t==="drawline")m.type="line",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[1][1],m.y1=y[1][2];else if(y&&t==="drawcircle"){m.type="circle";var x=y[cE][1],_=y[vE][1],w=y[dE][1],b=y[hE][1],M=y[cE][2],k=y[vE][2],A=y[dE][2],S=y[hE][2],D=o.xaxis&&(o.xaxis.type==="date"||o.xaxis.type==="log"),E=o.yaxis&&(o.yaxis.type==="date"||o.yaxis.type==="log");D&&(x=zo(o.xaxis,x),_=zo(o.xaxis,_),w=zo(o.xaxis,w),b=zo(o.xaxis,b)),E&&(M=zo(o.yaxis,M),k=zo(o.yaxis,k),A=zo(o.yaxis,A),S=zo(o.yaxis,S));var R=(_+b)/2,N=(M+A)/2,I=(b-_+w-x)/2,H=(S-k+A-M)/2,O=A0e({x0:R,y0:N,x1:R+I*b0e,y1:N+H*x0e});D&&(O.x0=Np(o.xaxis,O.x0),O.x1=Np(o.xaxis,O.x1)),E&&(O.y0=Np(o.yaxis,O.y0),O.y1=Np(o.yaxis,O.y1)),m.x0=O.x0,m.y0=O.y0,m.x1=O.x1,m.y1=O.y1}else m.type="path",u&&f&&k0e(p,u,f),m.path=M0e(p),y=null;return m}gE.exports={newShapes:C0e,createShapeObj:yE}});var gx=B((Mwe,bE)=>{"use strict";var L0e=jf(),S0e=L0e.selectMode,q0e=Mo(),D0e=q0e.clearOutline,yx=Ro(),E0e=yx.readPaths,P0e=yx.writePaths,R0e=yx.fixDatesForPaths;bE.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!S0e(c)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(h<v.length)switch(i._fullLayout.selections[h].type){case"rect":c="select";break;case"path":c="lasso";break}}var p=E0e(n,i,o,f),m={xref:s._id,yref:u._id,opacity:l.opacity,line:{color:l.line.color,width:l.line.width,dash:l.line.dash}},y;p.length===1&&(y=p[0]),y&&y.length===5&&c==="select"?(m.type="rect",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[2][1],m.y1=y[2][2]):(m.type="path",s&&u&&R0e(p,s,u),m.path=P0e(p),y=null),D0e(i);for(var x=t.editHelpers,_=(x||{}).modifyItem,w=[],b=0;b<v.length;b++){var M=i._fullLayout.selections[b];if(!M){w[b]=M;continue}if(w[b]=M._input,f!==void 0&&b===i._fullLayout._activeSelectionIndex){var k=m;switch(M.type){case"rect":_("x0",k.x0),_("x1",k.x1),_("y0",k.y0),_("y1",k.y1);break;case"path":_("path",k.path);break}}}return f===void 0?(w.push(m),w):x?x.getUpdateObj():{}}}}});var Tv=B((Awe,xE)=>{"use strict";xE.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{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:{}},paramIsY:{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:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Fo=B(Ca=>{"use strict";var bl=Tv(),_E=Le(),No=Jr();Ca.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Ca.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Ca.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Ca.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Ca.extractPathCoords=function(e,r,t){var a=[],n=e.match(bl.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(bl.paramRE);if(!(!o||o.length<l)){var s=o[l],u=t?s:_E.cleanNumber(s);a.push(u)}}}),a};Ca.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let a=r.match(bl.segmentRE);if(!a)return 0;let n=t==="x"?bl.paramIsX:bl.paramIsY;return a.reduce((i,l)=>{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};Ca.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,l;if(r)if(n==="domain")l=function(s){return r._length*(a?1-s:s)+r._offset};else{var o=Ca.shapePositionToRange(r);l=function(s){var u=gl(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=Ca.decodeDate(l))}else a?l=function(s){return i.t+i.h*(1-s)}:l=function(s){return i.l+i.w*s};return l};Ca.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(o){var s=(o-r._offset)/r._length;return t?1-s:s};else{var l=Ca.rangeToShapePosition(r);i=function(o){return l(r.p2r(o-r._offset))}}else t?i=function(o){return 1-(o-n.t)/n.h}:i=function(o){return(o-n.l)/n.w};return i};Ca.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Ca.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}};Ca.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}};Ca.getPathString=function(e,r){let t=r.type,a=No.getRefType(r.xref),n=No.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,c,v,h,p,m,y,x;function _(E,R,N,I){var H;if(E)if(R==="domain")I?H=function(O){return E._offset+E._length*(1-O)}:H=function(O){return E._offset+E._length*O};else{let O=Ca.shapePositionToRange(E);H=function(G){return E._offset+E.r2p(O(G,!0))},N==="path"&&E.type==="date"&&(H=Ca.decodeDate(H))}else I?H=function(O){return i.t+i.h*(1-O)}:H=function(O){return i.l+i.w*O};return H}if(a==="array"?(v=[],l=r.xref.map(function(E){return No.getFromId(e,E)}),v=r.xref.map(function(E,R){return _(l[R],No.getRefType(E),t,!1)})):(l=No.getFromId(e,r.xref),v=_(l,a,t,!1)),n==="array"?(h=[],o=r.yref.map(function(E){return No.getFromId(e,E)}),h=r.yref.map(function(E,R){return _(o[R],No.getRefType(E),t,!0)})):(o=No.getFromId(e,r.yref),h=_(o,n,t,!0)),t==="path")return z0e(r,v,h);if(a==="array")s=gl(l[0],r.x0shift),u=gl(l[1],r.x1shift),p=v[0](r.x0)+s,m=v[1](r.x1)+u;else if(s=gl(l,r.x0shift),u=gl(l,r.x1shift),r.xsizemode==="pixel"){let E=v(r.xanchor);p=E+r.x0+s,m=E+r.x1+u}else p=v(r.x0)+s,m=v(r.x1)+u;if(n==="array")f=gl(o[0],r.y0shift),c=gl(o[1],r.y1shift),y=h[0](r.y0)+f,x=h[1](r.y1)+c;else if(f=gl(o,r.y0shift),c=gl(o,r.y1shift),r.ysizemode==="pixel"){let E=h(r.yanchor);y=E-r.y0+f,x=E-r.y1+c}else y=h(r.y0)+f,x=h(r.y1)+c;if(t==="line")return"M"+p+","+y+"L"+m+","+x;if(t==="rect")return"M"+p+","+y+"H"+m+"V"+x+"H"+p+"Z";var w=(p+m)/2,b=(y+x)/2,M=Math.abs(w-p),k=Math.abs(b-y),A="A"+M+","+k,S=w+M+","+b,D=w+","+(b-k);return"M"+S+A+" 0 1,1 "+D+A+" 0 0,1 "+S+"Z"};function z0e(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,l=e.xanchor,o=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(bl.segmentRE,function(v){var h=0,p=v.charAt(0),m=bl.paramIsX[p],y=bl.paramIsY[p],x=bl.numParams[p];let _=m.drawn!==void 0,w=y.drawn!==void 0,b=s?r[f]:r,M=u?t[c]:t;var k=v.slice(1).replace(bl.paramRE,function(A){return m[h]?n==="pixel"?A=b(l)+Number(A):A=b(A):y[h]&&(i==="pixel"?A=M(o)-Number(A):A=M(A)),h++,h>x&&(A="X"),A});return h>x&&(k=k.replace(/[\s,]*X.*/,""),_E.log("Ignoring extra params in segment "+v)),_&&f++,w&&c++,p+k})}Ca.getPixelShift=gl;function gl(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 bx=B((Cwe,ME)=>{"use strict";var N0e=Le(),xl=Jr(),wE=da(),TE=Vr(),F0e=Ro().readPaths,tu=Fo(),I0e=tu.getPathString,Mv=s1(),H0e=za().FROM_TL;ME.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 l={};if(a.type!=="path"){var o=xl.getFromId(r,a.xref),s=xl.getFromId(r,a.yref);let X=Array.isArray(a.xref),$=Array.isArray(a.yref);for(var u in Mv){var f=typeof Mv[u]=="function",c=!X||Mv.simpleXVariables.includes(u),v=!$||Mv.simpleYVariables.includes(u);if(f&&c&&v){var h=Mv[u](a,o,s);h!==void 0&&(l[u]=h)}}}i=N0e.texttemplateStringForShapes({data:[l],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},m=a.label.font,y={"data-notex":1},x=n.append("g").attr(p).classed("shape-label",!0),_=x.append("text").attr(y).classed("shape-label-text",!0).text(i),w,b,M,k;if(a.path){var A=I0e(r,a),S=F0e(A,r);w=1/0,M=1/0,b=-1/0,k=-1/0;for(var D=0;D<S.length;D++)for(var E=0;E<S[D].length;E++)for(var R=S[D][E],N=1;N<R.length;N+=2){var I=R[N],H=R[N+1];w=Math.min(w,I),b=Math.max(b,I),M=Math.min(M,H),k=Math.max(k,H)}}else{let X=Array.isArray(a.xref),$=Array.isArray(a.yref),ae=xl.getFromId(r,X?a.xref[0]:a.xref),ie=xl.getFromId(r,X?a.xref[1]:a.xref),ve=xl.getFromId(r,$?a.yref[0]:a.yref),K=xl.getFromId(r,$?a.yref[1]:a.yref),he=xl.getRefType(X?a.xref[0]:a.xref),oe=xl.getRefType(X?a.xref[1]:a.xref),be=xl.getRefType($?a.yref[0]:a.yref),me=xl.getRefType($?a.yref[1]:a.yref),ce=(De,Te,Pe,Se)=>tu.getDataToPixel(r,Pe,Te,!1,Se)(De),Me=(De,Te,Pe,Se)=>tu.getDataToPixel(r,Pe,Te,!0,Se)(De);if(a.xsizemode==="pixel"){let De=ce(a.xanchor,void 0,ae,he),Te=tu.getPixelShift(ae,a.x0shift),Pe=tu.getPixelShift(ae,a.x1shift);w=De+a.x0+Te,b=De+a.x1+Pe}else w=ce(a.x0,a.x0shift,ae,he),b=ce(a.x1,a.x1shift,ie,oe);if(a.ysizemode==="pixel"){let De=Me(a.yanchor,void 0,ve,be),Te=tu.getPixelShift(ve,a.y0shift),Pe=tu.getPixelShift(ve,a.y1shift);M=De-a.y0+Te,k=De-a.y1+Pe}else M=Me(a.y0,a.y0shift,ve,be),k=Me(a.y1,a.y1shift,K,me)}var O=a.label.textangle;O==="auto"&&(a.type==="line"?O=O0e(w,M,b,k):O=0),_.call(function(X){return X.call(TE.font,m).attr({}),wE.convertToTspans(X,r),X});var G=TE.bBox(_.node()),Y=B0e(w,M,b,k,a,O,G),V=Y.textx,U=Y.texty,Z=Y.xanchor;_.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Z],y:U,x:V,transform:"rotate("+O+","+V+","+U+")"}).call(wE.positionText,V,U)}};function O0e(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 B0e(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),h=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,y,x,_,w;if(f==="line"){o==="start"?(y=e,x=r):o==="end"?(y=t,x=a):(y=(e+t)/2,x=(r+a)/2),p==="auto"&&(o==="start"?s==="auto"?t>e?p="left":t<e?p="right":p="center":t>e?p="right":t<e?p="left":p="center":o==="end"?s==="auto"?t>e?p="right":t<e?p="left":p="center":t>e?p="left":t<e?p="right":p="center":p="center");var b={left:1,center:0,right:-1},M={bottom:-1,middle:0,top:1};if(s==="auto"){var k=M[m];_=-u*v*k,w=u*h*k}else{var A=b[p],S=M[m];_=u*A,w=u*S}y=y+_,x=x+w}else _=u+3,o.indexOf("right")!==-1?(y=Math.max(e,t)-_,p==="auto"&&(p="right")):o.indexOf("left")!==-1?(y=Math.min(e,t)+_,p==="auto"&&(p="left")):(y=(e+t)/2,p==="auto"&&(p="center")),o.indexOf("top")!==-1?x=Math.min(r,a):o.indexOf("bottom")!==-1?x=Math.max(r,a):x=(r+a)/2,w=u,m==="bottom"?x=x-w:m==="top"&&(x=x+w);var D=H0e[m],E=n.label.font.size,R=l.height,N=(R*D-E)*v,I=-(R*D-E)*h;return{textx:y+N,texty:x+I,xanchor:p}}});var Bp=B((Lwe,EE)=>{"use strict";var Y0e=Le(),G0e=Y0e.strTranslate,AE=Yi(),LE=jf(),U0e=LE.drawMode,SE=LE.selectMode,qE=Mr(),kE=Ar(),Op=Pp(),V0e=Op.i000,X0e=Op.i090,W0e=Op.i180,Z0e=Op.i270,J0e=Mo(),DE=J0e.clearOutlineControllers,_x=Ro(),Hp=_x.pointsOnRectangle,xx=_x.pointsOnEllipse,$0e=_x.writePaths,K0e=Ip().newShapes,Q0e=Ip().createShapeObj,j0e=gx(),eve=bx();EE.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(xx(r[0])||a.hasText)&&o({redrawing:!0})}function o(Y){var V={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,V=K0e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,V=j0e(t,a),i._fullLayout._reselect=!0),Object.keys(V).length&&qE.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,V)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=U0e(f),v=SE(f);(c||v)&&(i._fullLayout._outlining=!0),DE(i),t.attr("d",$0e(r));var h,p,m,y,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=rve([],r);var _=u.append("g").attr("class","outline-controllers");E(_),G()}if(c&&a.hasText){var w=u.select(".label-temp"),b=Q0e(t,a,a.dragmode);eve(i,"label-temp",b,w)}function M(Y){m=+Y.srcElement.getAttribute("data-i"),y=+Y.srcElement.getAttribute("data-j"),h[m][y].moveFn=k}function k(Y,V){if(r.length){var U=x[m][y][1],Z=x[m][y][2],X=r[m],$=X.length;if(Hp(X)){var ae=Y,ie=V;if(a.isActiveSelection){var ve=CE(X,y);ve[1]===X[y][1]?ie=0:ae=0}for(var K=0;K<$;K++)if(K!==y){var he=X[K];he[1]===X[y][1]&&(he[1]=U+ae),he[2]===X[y][2]&&(he[2]=Z+ie)}if(X[y][1]=U+ae,X[y][2]=Z+ie,!Hp(X))for(var oe=0;oe<$;oe++)for(var be=0;be<X[oe].length;be++)X[oe][be]=x[m][oe][be]}else X[y][1]=U+Y,X[y][2]=Z+V;l()}}function A(){o()}function S(){if(r.length&&r[m]&&r[m].length){for(var Y=[],V=0;V<r[m].length;V++)V!==y&&Y.push(r[m][V]);Y.length>1&&!(Y.length===2&&Y[1][0]==="Z")&&(y===0&&(Y[0][0]="M"),r[m]=Y,l(),o())}}function D(Y,V){if(Y===2){m=+V.srcElement.getAttribute("data-i"),y=+V.srcElement.getAttribute("data-j");var U=r[m];!Hp(U)&&!xx(U)&&S()}}function E(Y){h=[];for(var V=0;V<r.length;V++){var U=r[V],Z=Hp(U),X=!Z&&xx(U);h[V]=[];for(var $=U.length,ae=0;ae<$;ae++)if(U[ae][0]!=="Z"&&!(X&&ae!==V0e&&ae!==X0e&&ae!==W0e&&ae!==Z0e)){var ie=Z&&a.isActiveSelection,ve;ie&&(ve=CE(U,ae));var K=U[ae][1],he=U[ae][2],oe=Y.append(ie?"rect":"circle").attr("data-i",V).attr("data-j",ae).style({fill:kE.background,stroke:kE.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(ie){var be=ve[1]-K,me=ve[2]-he,ce=me?5:Math.max(Math.min(25,Math.abs(be)-5),5),Me=be?5:Math.max(Math.min(25,Math.abs(me)-5),5);oe.classed(me?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",ce).attr("height",Me).attr("x",K-ce/2).attr("y",he-Me/2).attr("transform",G0e(be/2,me/2))}else oe.classed("cursor-grab",!0).attr("r",5).attr("cx",K).attr("cy",he);h[V][ae]={element:oe.node(),gd:i,prepFn:M,doneFn:A,clickFn:D},AE.init(h[V][ae])}}}function R(Y,V){if(r.length)for(var U=0;U<r.length;U++)for(var Z=0;Z<r[U].length;Z++)for(var X=0;X+2<r[U][Z].length;X+=2)r[U][Z][X+1]=x[U][Z][X+1]+Y,r[U][Z][X+2]=x[U][Z][X+2]+V}function N(Y,V){R(Y,V),l()}function I(Y){m=+Y.srcElement.getAttribute("data-i"),m||(m=0),p[m].moveFn=N}function H(){o()}function O(Y){Y===2&&tve(i)}function G(){if(p=[],!!r.length){var Y=0;p[Y]={element:t[0][0],gd:i,prepFn:I,doneFn:H,clickFn:O},AE.init(p[Y])}}};function rve(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 CE(e,r){var t=e[r][1],a=e[r][2],n=e.length,i,l,o;return i=(r+1)%n,l=e[i][1],o=e[i][2],l===t&&o===a&&(i=(r+2)%n,l=e[i][1],o=e[i][2]),[i,l,o]}function tve(e){if(SE(e._fullLayout.dragmode)){DE(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},qE.call("_guiRelayout",e,{selections:a})}}}});var Xp=B((Swe,YE)=>{"use strict";var ave=Dr(),IE=Mr(),Tx=Le(),au=Jr(),nve=Ro().readPaths,ive=Bp(),Gp=bx(),HE=Mo().clearOutlineControllers,wx=Ar(),Up=Vr(),lve=vt().arrayEditor,PE=Yi(),RE=vi(),zE=Eo(),nu=Tv(),kn=Fo(),Mx=kn.getPathString;YE.exports={draw:Ax,drawOne:OE,eraseActiveShape:cve,drawLabel:Gp};function Ax(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&&OE(e,n)}function Yp(e){return!!e._fullLayout._outlining}function Vp(e){return!e._context.edits.shapePosition}function OE(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=kn.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")o(e._fullLayout._shapeUpperLayer);else if(a.xref.includes("paper")||a.yref.includes("paper"))o(e._fullLayout._shapeLowerLayer);else if(a.layer==="between"&&!i)o(n.shapelayerBetween);else if(n._hadPlotinfo){var l=n.mainplotinfo||n;o(l.shapelayer)}else o(e._fullLayout._shapeLowerLayer);function o(s){var u=Mx(e,a),f={"data-index":r,"fill-rule":a.fillrule,d:u},c=a.opacity,v=a.fillcolor,h=a.line.width?a.line.color:"rgba(0,0,0,0)",p=a.line.width,m=a.line.dash;!p&&a.editable===!0&&(p=5,m="solid");var y=u[u.length-1]!=="Z",x=Vp(e)&&a.editable&&e._fullLayout._activeShapeIndex===r;x&&(v=y?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,c=e._fullLayout.activeshape.opacity);var _=s.append("g").classed("shape-group",!0).attr({"data-index":r}),w=_.append("path").attr(f).style("opacity",c).call(wx.stroke,h).call(wx.fill,v).call(Up.dashLine,m,p);BE(_,e,a),Gp(e,r,a,_);var b;if((x||e._context.edits.shapePosition)&&(b=lve(e.layout,"shapes",a)),x){w.style({cursor:"move"});var M={element:w.node(),plotinfo:n,gd:e,editHelpers:b,hasText:a.label.text||a.label.texttemplate,isActiveShape:!0},k=nve(u,e);ive(k,w,M)}else e._context.edits.shapePosition?uve(e,w,a,r,s,b):a.editable===!0&&w.style("pointer-events",y||wx.opacity(v)*c<=.5?"stroke":"all");w.node().addEventListener("click",function(){return fve(e,w)}),ove(e,w,n)}}function ove(e,r,t){if(!(t!=null&&t.id))return;let a=r.node();function n(i){var s;let l=t.mainplotinfo||t,o=(s=l==null?void 0:l.draglayer)==null?void 0:s.select(".nsewdrag").node();return o?{clientX:i.clientX,clientY:i.clientY,target:o}:null}a.addEventListener("mousemove",i=>{if(!e._dragging&&e._fullLayout.hoveranywhere){let l=n(i);l&&RE.hover(e,l,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=n(i);l&&RE.click(e,l,t.id)}})}function BE(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,l=sve(r,a,n);Tx.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(o){o.append("rect")}).select("rect").attr(l),Up.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");Up.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function sve(e,r,t){let a=e._fullLayout._size;function n(o,s){let u=(Array.isArray(o)?o:[o]).map(v=>au.getFromId(e,v)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(v){return v._offset}),c=u.map(function(v){return v._offset+v._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),l=n(t,!0);return{x:i[0],y:l[0],width:i[1]-i[0],height:l[1]-l[0]}}function uve(e,r,t,a,n,i){var l=10,o=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",v=i.modifyItem,h,p,m,y,x,_,w,b,M,k,A,S,D,E,R,N=ave.select(r.node().parentNode),I=au.getFromId(e,t.xref),H=au.getRefType(t.xref),O=au.getFromId(e,t.yref),G=au.getRefType(t.yref),Y=t.x0shift,V=t.x1shift,U=t.y0shift,Z=t.y1shift,X=function(Ge,Ce){var $e=kn.getDataToPixel(e,I,Ce,!1,H);return $e(Ge)},$=function(Ge,Ce){var $e=kn.getDataToPixel(e,O,Ce,!0,G);return $e(Ge)},ae=kn.getPixelToData(e,I,!1,H),ie=kn.getPixelToData(e,O,!0,G),ve=oe(),K={element:ve.node(),gd:e,prepFn:ce,doneFn:Me,clickFn:De},he;PE.init(K),ve.node().onmousemove=me;function oe(){return f?be():r}function be(){var Ge=10,Ce=Math.max(t.line.width,Ge),$e=n.append("g").attr("data-index",a).attr("drag-helper",!0);$e.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Ce,"stroke-opacity":"0"});var Ke={"fill-opacity":"0"},Xe=Math.max(Ce/2,Ge);return $e.append("circle").attr({"data-line-point":"start-point",cx:s?X(t.xanchor)+t.x0:X(t.x0,Y),cy:u?$(t.yanchor)-t.y0:$(t.y0,U),r:Xe}).style(Ke).classed("cursor-grab",!0),$e.append("circle").attr({"data-line-point":"end-point",cx:s?X(t.xanchor)+t.x1:X(t.x1,V),cy:u?$(t.yanchor)-t.y1:$(t.y1,Z),r:Xe}).style(Ke).classed("cursor-grab",!0),$e}function me(Ge){if(Yp(e)){he=null;return}if(f)Ge.target.tagName==="path"?he="move":he=Ge.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ce=K.element.getBoundingClientRect(),$e=Ce.right-Ce.left,Ke=Ce.bottom-Ce.top,Xe=Ge.clientX-Ce.left,Ae=Ge.clientY-Ce.top,Re=!c&&$e>l&&Ke>o&&!Ge.shiftKey?PE.getCursor(Xe/$e,1-Ae/Ke):"move";zE(r,Re),he=Re.split("-")[0]}}function ce(Ge){Yp(e)||(s&&(x=X(t.xanchor)),u&&(_=$(t.yanchor)),t.type==="path"?R=t.path:(h=s?t.x0:X(t.x0),p=u?t.y0:$(t.y0),m=s?t.x1:X(t.x1),y=u?t.y1:$(t.y1)),h<m?(M=h,D="x0",k=m,E="x1"):(M=m,D="x1",k=h,E="x0"),!u&&p<y||u&&p>y?(w=p,A="y0",b=y,S="y1"):(w=y,A="y1",b=p,S="y0"),me(Ge),Se(n,t),ze(r,t,e),K.moveFn=he==="move"?Te:Pe,K.altKey=Ge.altKey)}function Me(){Yp(e)||(zE(r),ke(n),BE(r,e,t),IE.call("_guiRelayout",e,i.getUpdateObj()))}function De(){Yp(e)||ke(n)}function Te(Ge,Ce){if(t.type==="path"){var $e=function(Ae){return Ae},Ke=$e,Xe=$e;s?v("xanchor",t.xanchor=ae(x+Ge)):(Ke=function(Re){return ae(X(Re)+Ge)},I&&I.type==="date"&&(Ke=kn.encodeDate(Ke))),u?v("yanchor",t.yanchor=ie(_+Ce)):(Xe=function(Re){return ie($(Re)+Ce)},O&&O.type==="date"&&(Xe=kn.encodeDate(Xe))),v("path",t.path=NE(R,Ke,Xe))}else s?v("xanchor",t.xanchor=ae(x+Ge)):(v("x0",t.x0=ae(h+Ge)),v("x1",t.x1=ae(m+Ge))),u?v("yanchor",t.yanchor=ie(_+Ce)):(v("y0",t.y0=ie(p+Ce)),v("y1",t.y1=ie(y+Ce)));r.attr("d",Mx(e,t)),Se(n,t),Gp(e,a,t,N)}function Pe(Ge,Ce){if(c){var $e=function(Ue){return Ue},Ke=$e,Xe=$e;s?v("xanchor",t.xanchor=ae(x+Ge)):(Ke=function(ar){return ae(X(ar)+Ge)},I&&I.type==="date"&&(Ke=kn.encodeDate(Ke))),u?v("yanchor",t.yanchor=ie(_+Ce)):(Xe=function(ar){return ie($(ar)+Ce)},O&&O.type==="date"&&(Xe=kn.encodeDate(Xe))),v("path",t.path=NE(R,Ke,Xe))}else if(f){if(he==="resize-over-start-point"){var Ae=h+Ge,Re=u?p-Ce:p+Ce;v("x0",t.x0=s?Ae:ae(Ae)),v("y0",t.y0=u?Re:ie(Re))}else if(he==="resize-over-end-point"){var Qe=m+Ge,re=u?y-Ce:y+Ce;v("x1",t.x1=s?Qe:ae(Qe)),v("y1",t.y1=u?re:ie(re))}}else{var ye=function(Ue){return he.indexOf(Ue)!==-1},Ve=ye("n"),dr=ye("s"),Ee=ye("w"),pe=ye("e"),we=Ve?w+Ce:w,Oe=dr?b+Ce:b,We=Ee?M+Ge:M,Ie=pe?k+Ge:k;u&&(Ve&&(we=w-Ce),dr&&(Oe=b-Ce)),(!u&&Oe-we>o||u&&we-Oe>o)&&(v(A,t[A]=u?we:ie(we)),v(S,t[S]=u?Oe:ie(Oe))),Ie-We>l&&(v(D,t[D]=s?We:ae(We)),v(E,t[E]=s?Ie:ae(Ie)))}r.attr("d",Mx(e,t)),Se(n,t),Gp(e,a,t,N)}function Se(Ge,Ce){(s||u)&&$e();function $e(){var Ke=Ce.type!=="path",Xe=Ge.selectAll(".visual-cue").data([0]),Ae=1;Xe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ae}).classed("visual-cue",!0);var Re=X(s?Ce.xanchor:Tx.midRange(Ke?[Ce.x0,Ce.x1]:kn.extractPathCoords(Ce.path,nu.paramIsX))),Qe=$(u?Ce.yanchor:Tx.midRange(Ke?[Ce.y0,Ce.y1]:kn.extractPathCoords(Ce.path,nu.paramIsY)));if(Re=kn.roundPositionForSharpStrokeRendering(Re,Ae),Qe=kn.roundPositionForSharpStrokeRendering(Qe,Ae),s&&u){var re="M"+(Re-1-Ae)+","+(Qe-1-Ae)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Xe.attr("d",re)}else if(s){var ye="M"+(Re-1-Ae)+","+(Qe-9-Ae)+"v18 h2 v-18 Z";Xe.attr("d",ye)}else{var Ve="M"+(Re-9-Ae)+","+(Qe-1-Ae)+"h18 v2 h-18 Z";Xe.attr("d",Ve)}}}function ke(Ge){Ge.selectAll(".visual-cue").remove()}function ze(Ge,Ce,$e){var Ke=Ce.xref,Xe=Ce.yref,Ae=au.getFromId($e,Ke),Re=au.getFromId($e,Xe),Qe="";Ke!=="paper"&&!Ae.autorange&&(Qe+=Ke),Xe!=="paper"&&!Re.autorange&&(Qe+=Xe),Up.setClipUrl(Ge,Qe?"clip"+$e._fullLayout._uid+Qe:null,$e)}}function NE(e,r,t){return e.replace(nu.segmentRE,function(a){var n=0,i=a.charAt(0),l=nu.paramIsX[i],o=nu.paramIsY[i],s=nu.numParams[i],u=a.slice(1).replace(nu.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function fve(e,r){if(Vp(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){FE(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=FE,Ax(e)}}}function FE(e){if(Vp(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(HE(e),delete e._fullLayout._activeShapeIndex,Ax(e))}}function cve(e){if(Vp(e)){HE(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,IE.call("_guiRelayout",e,{shapes:a})}}}});var UE=B((qwe,GE)=>{"use strict";var tc=Le()._,vve=function(e){return{DIALOG_TITLE:tc(e,"Share chart"),DIALOG_MESSAGE_CLOUD:tc(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:tc(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:tc(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:tc(e,"Cancel"),DIALOG_CONFIRM:tc(e,"Share")}};GE.exports=vve});var WE=B((Dwe,XE)=>{"use strict";var VE=Dr(),{dfltConfig:dve}=co(),hve=UE(),pve=(e,r,t,a,n)=>{let i=hve(e),l=r.append("div").classed("plotly-cloud-dialog-box",!0);if(l.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===dve.plotlyServerURL){let s=l.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],v=f[2],h=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(v),s.append("span").text(h),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(/(\{|\})/),v=c[0],h=c[4],p=l.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(v),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(h)}let o=l.append("div").classed("plotly-cloud-dialog-buttons",!0);o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},mve=(e,r,t)=>{let a=VE.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",l)},l=o=>{(o.key==="Escape"||o.keyCode===27)&&i()};document.addEventListener("keydown",l),n.on("click",()=>{VE.event.target===n.node()&&i()}),pve(e,n,r,()=>{i(),t()},i)};XE.exports=mve});var Lx=B((Ewe,eP)=>{"use strict";var di=Mr(),yve=Gt(),JE=na(),tt=Dp(),gve=Xp().eraseActiveShape,bve=WE(),Wp=Le(),Wr=Wp._,at=eP.exports={};at.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Wr(e,"Download plot as a PNG"):Wr(e,"Download plot")},icon:tt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};Wp.notifier(Wr(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])}),di.call("downloadImage",e,t).then(function(a){Wp.notifier(Wr(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){Wp.notifier(Wr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};at.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Wr(e,"Share chart...")},icon:tt.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}bve(e,r,function(){yve.sendDataToCloud(e,r)})}};at.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Wr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:tt.zoombox,click:an};at.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Wr(e,"Pan")},attr:"dragmode",val:"pan",icon:tt.pan,click:an};at.select2d={name:"select2d",_cat:"select",title:function(e){return Wr(e,"Box Select")},attr:"dragmode",val:"select",icon:tt.selectbox,click:an};at.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Wr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:tt.lasso,click:an};at.drawclosedpath={name:"drawclosedpath",title:function(e){return Wr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:tt.drawclosedpath,click:an};at.drawopenpath={name:"drawopenpath",title:function(e){return Wr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:tt.drawopenpath,click:an};at.drawline={name:"drawline",title:function(e){return Wr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:tt.drawline,click:an};at.drawrect={name:"drawrect",title:function(e){return Wr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:tt.drawrect,click:an};at.drawcircle={name:"drawcircle",title:function(e){return Wr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:tt.drawcircle,click:an};at.eraseshape={name:"eraseshape",title:function(e){return Wr(e,"Erase active shape")},icon:tt.eraseshape,click:gve};at.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Wr(e,"Zoom in")},attr:"zoom",val:"in",icon:tt.zoom_plus,click:an};at.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Wr(e,"Zoom out")},attr:"zoom",val:"out",icon:tt.zoom_minus,click:an};at.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Wr(e,"Autoscale")},attr:"zoom",val:"auto",icon:tt.autoscale,click:an};at.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Wr(e,"Reset axes")},attr:"zoom",val:"reset",icon:tt.home,click:an};at.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Wr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:tt.tooltip_basic,gravity:"ne",click:an};at.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Wr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:tt.tooltip_compare,gravity:"ne",click:an};function an(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=JE.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,h=(1-c)/2,p,m;for(f=0;f<o.length;f++)if(u=o[f],m=u.modebardisable==="none"||u.modebardisable.indexOf(n==="auto"||n==="reset"?"autoscale":"zoominout")===-1,m&&!u.fixedrange)if(p=u._name,n==="auto")l[p+".autorange"]=!0;else if(n==="reset")u._rangeInitial0===void 0&&u._rangeInitial1===void 0?l[p+".autorange"]=!0:u._rangeInitial0===void 0?(l[p+".autorange"]=u._autorangeInitial,l[p+".range"]=[null,u._rangeInitial1]):u._rangeInitial1===void 0?(l[p+".range"]=[u._rangeInitial0,null],l[p+".autorange"]=u._autorangeInitial):l[p+".range"]=[u._rangeInitial0,u._rangeInitial1],u._showSpikeInitial!==void 0&&(l[p+".showspikes"]=u._showSpikeInitial,s==="on"&&!u._showSpikeInitial&&(s="off"));else{var y=[u.r2l(u.range[0]),u.r2l(u.range[1])],x=[v*y[0]+h*y[1],v*y[1]+h*y[0]];l[p+".range[0]"]=u.l2r(x[0]),l[p+".range[1]"]=u.l2r(x[1])}}else a==="hovermode"&&(n==="x"||n==="y")&&(n=i._isHoriz?"y":"x",t.setAttribute("data-val",n)),l[a]=n;i._cartesianSpikesEnabled=s,di.call("_guiRelayout",e,l)}at.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return Wr(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:tt.zoombox,click:Jp};at.pan3d={name:"pan3d",_cat:"pan",title:function(e){return Wr(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:tt.pan,click:Jp};at.orbitRotation={name:"orbitRotation",title:function(e){return Wr(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:tt["3d_rotate"],click:Jp};at.tableRotation={name:"tableRotation",title:function(e){return Wr(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:tt["z-axis"],click:Jp};function Jp(e,r){for(var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout._subplots.gl3d||[],l={},o=a.split("."),s=0;s<i.length;s++)l[i[s]+"."+o[1]]=n;var u=n==="pan"?n:"zoom";l.dragmode=u,di.call("_guiRelayout",e,l)}at.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return Wr(e,"Reset camera to default")},attr:"resetDefault",icon:tt.home,click:kx};at.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return Wr(e,"Reset camera to last save")},attr:"resetLastSave",icon:tt.movie,click:kx};function kx(e,r){for(var t=r.currentTarget,a=t.getAttribute("data-attr"),n=a==="resetLastSave",i=a==="resetDefault",l=e._fullLayout,o=l._subplots.gl3d||[],s={},u=0;u<o.length;u++){var f=o[u],c=f+".camera",v=f+".aspectratio",h=f+".aspectmode",p=l[f]._scene,m;n?(s[c+".up"]=p.viewInitial.up,s[c+".eye"]=p.viewInitial.eye,s[c+".center"]=p.viewInitial.center,m=!0):i&&(s[c+".up"]=null,s[c+".eye"]=null,s[c+".center"]=null,m=!0),m&&(s[v+".x"]=p.viewInitial.aspectratio.x,s[v+".y"]=p.viewInitial.aspectratio.y,s[v+".z"]=p.viewInitial.aspectratio.z,s[h]=p.viewInitial.aspectmode)}di.call("_guiRelayout",e,s)}at.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return Wr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:tt.tooltip_basic,gravity:"ne",click:xve};function $E(e,r){var t=r.currentTarget,a=t._previousVal,n=e._fullLayout,i=n._subplots.gl3d||[],l=["xaxis","yaxis","zaxis"],o={},s={};if(a)s=a,t._previousVal=null;else{for(var u=0;u<i.length;u++){var f=i[u],c=n[f],v=f+".hovermode";o[v]=c.hovermode,s[v]=!1;for(var h=0;h<3;h++){var p=l[h],m=f+"."+p+".showspikes";s[m]=!1,o[m]=c[p].showspikes}}t._previousVal=o}return s}function xve(e,r){var t=$E(e,r);di.call("_guiRelayout",e,t)}at.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return Wr(e,"Zoom in")},attr:"zoom",val:"in",icon:tt.zoom_plus,click:Cx};at.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return Wr(e,"Zoom out")},attr:"zoom",val:"out",icon:tt.zoom_minus,click:Cx};at.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return Wr(e,"Reset")},attr:"reset",val:null,icon:tt.autoscale,click:Cx};at.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return Wr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:tt.tooltip_basic,gravity:"ne",click:QE};var ZE=2;function Cx(e,r){var o;let t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l=i._subplots.geo||[];for(let s of l){let u=i[s],f=u._subplot;if(a==="zoom"){let c=f.projection,v=c.scale()/f.fitScale,[h,p]=c.rotate().map(k=>-k),[m,y]=c.invert(f.midPt),{minscale:x}=u.projection,_=(o=u.projection.maxscale)!=null?o:1/0,w=Math.min(x,_),b=Math.max(x,_),M=n==="in"?ZE*v:1/ZE*v;M>b?M=b:M<w&&(M=w),M!==v&&di.call("_guiRelayout",e,{[s+".projection.scale"]:M,[s+".projection.rotation.lon"]:h,[s+".projection.rotation.lat"]:p,[s+".center.lon"]:m,[s+".center.lat"]:y,[s+".fitbounds"]:!1})}}a==="reset"&&Zp(e,"geo")}at.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return Wr(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:tt.tooltip_basic,gravity:"ne",click:QE};function KE(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function QE(e){var r=KE(e);di.call("_guiRelayout",e,"hovermode",r)}at.resetViewSankey={name:"resetSankeyGroup",title:function(e){return Wr(e,"Reset view")},icon:tt.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())}di.call("restyle",e,r)}};at.toggleHover={name:"toggleHover",title:function(e){return Wr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:tt.tooltip_basic,gravity:"ne",click:function(e,r){var t=$E(e,r);t.hovermode=KE(e),di.call("_guiRelayout",e,t)}};at.resetViews={name:"resetViews",title:function(e){return Wr(e,"Reset views")},icon:tt.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),an(e,r),t.setAttribute("data-attr","resetLastSave"),kx(e,r),Zp(e,"geo"),Zp(e,"map")}};at.toggleSpikelines={name:"toggleSpikelines",title:function(e){return Wr(e,"Toggle Spike Lines")},icon:tt.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",di.call("_guiRelayout",e,_ve(e))}};function _ve(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",a=JE.list(e,null,!0),n={},i=0;i<a.length;i++){var l=a[i];n[l._name+".showspikes"]=t?!0:l._showSpikeInitial}return n}at.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return Wr(e,"Reset view")},attr:"reset",icon:tt.home,click:function(e){Zp(e,"map")}};at.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return Wr(e,"Zoom in")},attr:"zoom",val:"in",icon:tt.zoom_plus,click:jE};at.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return Wr(e,"Zoom out")},attr:"zoom",val:"out",icon:tt.zoom_minus,click:jE};function jE(e,r){wve(e,r,"map")}function wve(e,r,t){for(var a=r.currentTarget,n=a.getAttribute("data-val"),i=e._fullLayout,l=i._subplots[t]||[],o=1.05,s={},u=0;u<l.length;u++){var f=l[u],c=i[f].zoom,v=n==="in"?o*c:c/o;s[f+".zoom"]=v}di.call("_guiRelayout",e,s)}function Zp(e,r){for(var t=e._fullLayout,a=t._subplots[r]||[],n={},i=0;i<a.length;i++)for(var l=a[i],o=t[l]._subplot,s=o.viewInitial,u=Object.keys(s),f=0;f<u.length;f++){var c=u[f];n[l+"."+c]=s[c]}di.call("_guiRelayout",e,n)}});var Sx=B((Pwe,nP)=>{"use strict";var rP=Lx(),Tve=Object.keys(rP),tP=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],aP=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(tP),ac=[],Mve=function(e){if(aP.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();ac.indexOf(r)===-1&&ac.push(r),ac.indexOf(t)===-1&&ac.push(t)}};Tve.forEach(function(e){Mve(rP[e])});ac.sort();nP.exports={DRAW_MODES:tP,backButtons:aP,foreButtons:ac}});var Dx={};rf(Dx,{default:()=>kve});var qx,Ave,kve,Ex=rt(()=>{"use strict";qx=u2(Sx()),Ave={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 *${qx.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 *${qx.default.foreButtons.join("*, *")}*.`].join(" ")}},kve=Ave});var lP=B((Rwe,iP)=>{"use strict";var Cve=Le(),Av=Ar(),Lve=vt(),Sve=(Ex(),Ga(Dx)).default;iP.exports=function(r,t){var a=r.modebar||{},n=Lve.newContainer(t,"modebar");function i(o,s){return Cve.coerce(a,n,Sve,o,s)}i("orientation"),i("bgcolor",Av.addOpacity(t.paper_bgcolor,.5));var l=Av.contrast(Av.rgb(t.modebar.bgcolor));i("color",Av.addOpacity(l,.3)),i("activecolor",Av.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var fP=B((zwe,uP)=>{"use strict";var Px=Dr(),qve=Br(),$p=Le(),oP=Dp(),Dve=y0().version,Eve=new DOMParser;function sP(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var _l=sP.prototype;_l.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,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(c){c.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||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(),$p.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};_l.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 l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};_l.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};_l.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(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Px.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||oP.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};_l.createIcon=function(e){var r=qve(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=Eve.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};_l.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"),l=a.getAttribute("data-toggle")==="true",o=Px.select(a),s=function(c,v){var h=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=h.activecolor:p.style.fill=h.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:$p.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};_l.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 Pve(e){return e+" (v"+Dve+")"}_l.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",Pve($p._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(oP.newplotlylogo)),e.appendChild(r),e};_l.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};_l.destroy=function(){$p.removeElement(this.container.querySelector(".modebar"))};function Rve(e,r){var t=e._fullLayout,a=new sP({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&Px.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}uP.exports=Rve});var dP=B((Nwe,vP)=>{"use strict";var zve=na(),cP=Yn(),Rx=Mr(),Nve=Oi().isUnifiedHover,Fve=fP(),Kp=Lx(),Ive=Sx().DRAW_MODES,Hve=Le().extendDeep;vP.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,l;Array.isArray(i)&&i.length?l=Vve(i):!a.displayModeBar&&a.watermark?l=[]:l=Ove(r),n?n.update(r,l):t._modeBar=Fve(r,l)};function Ove(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(Y,V){if(typeof V=="string"){if(V.toLowerCase()===Y.toLowerCase())return!0}else{var U=V.name,Z=V._cat||V.name;if(U===Y||Z===Y.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(Y){for(var V=0;V<a.modeBarButtonsToRemove.length;V++)if(n(Y,a.modeBarButtonsToRemove[V]))return!1;return!0})),s=a.modeBarButtonsToRemove.concat(l.filter(function(Y){for(var V=0;V<a.modeBarButtonsToAdd.length;V++)if(n(Y,a.modeBarButtonsToAdd[V]))return!1;return!0})),u=r._has("cartesian"),f=r._has("gl3d"),c=r._has("geo"),v=r._has("pie"),h=r._has("funnelarea"),p=r._has("ternary"),m=r._has("map"),y=r._has("polar"),x=r._has("smith"),_=r._has("sankey"),w=Bve(r),b=Nve(r.hovermode),M=[];function k(Y){if(Y.length){for(var V=[],U=0;U<Y.length;U++){for(var Z=Y[U],X=Kp[Z],$=X.name.toLowerCase(),ae=(X._cat||X.name).toLowerCase(),ie=!1,ve=0;ve<s.length;ve++){var K=s[ve].toLowerCase();if(K===$||K===ae){ie=!0;break}}ie||V.push(Kp[Z])}M.push(V)}}var A=["toImage"];a.showSendToCloud&&A.push("sendChartToCloud"),k(A);var S=[],D=[],E=[],R=[];(u||v||h||p)+c+f+m+y+x>1?(D=["toggleHover"],E=["resetViews"]):c?(S=["zoomInGeo","zoomOutGeo"],D=["hoverClosestGeo"],E=["resetGeo"]):f?(D=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(S=["zoomInMap","zoomOutMap"],D=["toggleHover"],E=["resetViewMap"]):v?D=["hoverClosestPie"]:_?(D=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):D=["toggleHover"],u&&D.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Gve(t)||b)&&(D=[]),u&&!w&&(S=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!w||p?R=["zoom2d","pan2d"]:m||c?R=["pan2d"]:y&&(R=["zoom2d"]),Yve(t)&&R.push("select2d","lasso2d");var N=[],I=function(Y){N.indexOf(Y)===-1&&D.indexOf(Y)!==-1&&N.push(Y)};if(Array.isArray(o)){for(var H=[],O=0;O<o.length;O++){var G=o[O];typeof G=="string"?(G=G.toLowerCase(),Ive.indexOf(G)!==-1?(r._has("map")||r._has("cartesian"))&&R.push(G):G==="togglespikelines"?I("toggleSpikelines"):G==="togglehover"?I("toggleHover"):G==="hovercompare"?I("hoverCompareCartesian"):G==="hoverclosest"?(I("hoverClosestCartesian"),I("hoverClosestGeo"),I("hoverClosest3d"),I("hoverClosestPie")):G==="v1hovermode"&&(I("hoverClosestCartesian"),I("hoverCompareCartesian"),I("hoverClosestGeo"),I("hoverClosest3d"),I("hoverClosestPie"))):H.push(G)}o=H}return k(R),k(S.concat(E)),k(N),Uve(M,o)}function Bve(e){for(var r=zve.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 Yve(e){for(var r=!1,t=0;t<e.length&&!r;t++){var a=e[t];!a._module||!a._module.selectPoints||(Rx.traceIs(a,"scatter-like")&&a.type!=="quiver"?(cP.hasMarkers(a)||cP.hasText(a))&&(r=!0):Rx.traceIs(a,"box-violin")?(a.boxpoints==="all"||a.points==="all")&&(r=!0):r=!0)}return r}function Gve(e){for(var r=0;r<e.length;r++)if(!Rx.traceIs(e[r],"noHover"))return!1;return!0}function Uve(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 Vve(e){for(var r=Hve([],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(Kp[i]!==void 0)r[t][n]=Kp[i];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var zx=B((Fwe,hP)=>{"use strict";hP.exports={moduleType:"component",name:"modebar",layoutAttributes:(Ex(),Ga(Dx)).default,supplyLayoutDefaults:lP(),manage:dP()}});var Nx=B((Iwe,pP)=>{"use strict";var Xve=za().FROM_BL;pP.exports=function(r,t,a){a===void 0&&(a=Xve[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 lu=B(kv=>{"use strict";var iu=Le(),Fx=sv(),Gi=na().id2name,Wve=Bn(),mP=Nx(),Zve=ap(),Jve=Dt().ALMOST_EQUAL,$ve=za().FROM_BL;kv.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,c,v,h,p;for(o=0;o<a.length;o++)f=Gi(a[o]),c=e[f],v=r[f],Kve(c,v,{axIds:a,layoutOut:r,hasImage:n[f]});function m(S,D){for(o=0;o<S.length;o++){s=S[o];for(u in s)r[Gi(u)][D]=s}}for(m(l,"_matchGroup"),o=0;o<i.length;o++){s=i[o];for(u in s)if(v=r[Gi(u)],v.fixedrange){for(var y in s){var x=Gi(y);(e[x]||{}).fixedrange===!1&&iu.warn("fixedrange was specified as false for axis "+x+" but was overridden because another axis in its constraint group has fixedrange true"),r[x].fixedrange=!0}break}}for(o=0;o<i.length;){s=i[o];for(u in s){v=r[Gi(u)],v._matchGroup&&Object.keys(v._matchGroup).length===Object.keys(s).length&&(i.splice(o,1),o--);break}o++}m(i,"_constraintGroup");var _=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],w=!1,b=!1;function M(){p=v[h],h==="rangebreaks"&&(b=v._hasDayOfWeekBreaks)}for(o=0;o<l.length;o++){s=l[o];for(var k=0;k<_.length;k++){h=_[k],p=null;var A;for(u in s)if(f=Gi(u),c=e[f],v=r[f],h in v){if(!v.matches&&(A=v,h in c)){M();break}p===null&&h in c&&M()}if(h==="range"&&p&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null&&(w=!0),h==="autorange"&&p===null&&w&&(p=!1),p===null&&h in A&&(p=A[h]),p!==null)for(u in s)v=r[Gi(u)],v[h]=h==="range"?p.slice():p,h==="rangebreaks"&&(v._hasDayOfWeekBreaks=b,Zve(v,r))}}};function Kve(e,r,t){var a=t.axIds,n=t.layoutOut,i=t.hasImage,l=n._axisConstraintGroups,o=n._axisMatchGroups,s=r._id,u=s.charAt(0),f=((n._splomAxes||{})[u]||{})[s]||{},c=r._id,v=c.charAt(0)==="x";r._matchGroup=null,r._constraintGroup=null;function h(N,I){return iu.coerce(e,r,Wve,N,I)}h("constrain",i?"domain":"range"),iu.coerce(e,r,{constraintoward:{valType:"enumerated",values:v?["left","center","right"]:["bottom","middle","top"],dflt:v?"center":"middle"}},"constraintoward");var p=r.type,m,y,x=[];for(m=0;m<a.length;m++)if(y=a[m],y!==c){var _=n[Gi(y)];_.type===p&&x.push(y)}var w=bP(l,c);if(w){var b=[];for(m=0;m<x.length;m++)y=x[m],w[y]||b.push(y);x=b}var M=x.length,k,A;M&&(e.matches||f.matches)&&(k=iu.coerce(e,r,{matches:{valType:"enumerated",values:x,dflt:x.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var S=i&&!v?r.anchor:void 0;if(M&&!k&&(e.scaleanchor||S)&&(A=iu.coerce(e,r,{scaleanchor:{valType:"enumerated",values:x.concat([!1])}},"scaleanchor",S)),k){r._matchGroup=Ix(o,c,k,1);var D=n[Gi(k)],E=yP(n,r)/yP(n,D);v!==(k.charAt(0)==="x")&&(E=(v?"x":"y")+E),Ix(l,c,k,E)}else e.matches&&a.indexOf(e.matches)!==-1&&iu.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(A){var R=h("scaleratio");R||(R=r.scaleratio=1),Ix(l,c,A,R)}else e.scaleanchor&&a.indexOf(e.scaleanchor)!==-1&&iu.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 yP(e,r){var t=r.domain;return t||(t=e[Gi(r.overlaying)].domain),t[1]-t[0]}function bP(e,r){for(var t=0;t<e.length;t++)if(e[t][r])return e[t];return null}function Ix(e,r,t,a){var n,i,l,o,s,u=bP(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(l=e[n],n!==s&&l[t]){var c=l[t];for(i=0;i<f.length;i++)o=f[i],l[o]=Hx(c,Hx(a,u[o]));e.splice(s,1);return}if(a!==1)for(i=0;i<f.length;i++){var v=f[i];u[v]=Hx(a,u[v])}u[t]=1}function Hx(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 l=e*r;return!n&&!i?l:!n||!i||t.charAt(0)===a.charAt(0)?t+a+e*r:n===i?l:(n>i?t.slice(i):a.slice(n))+l}function Qve(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;l<i.length;l++){var o=i[l],s=e[o];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,v=0;v<f;v++)s*=c}n[o]=s}return n}kv.enforce=function(r){var t=r._fullLayout,a=t._axisConstraintGroups||[],n,i,l,o,s,u,f,c;for(n=0;n<a.length;n++){l=Qve(a[n],t);var v=Object.keys(l),h=1/0,p=0,m=1/0,y={},x={},_=!1;for(i=0;i<v.length;i++)o=v[i],x[o]=s=t[Gi(o)],s._inputDomain?s.domain=s._inputDomain.slice():s._inputDomain=s.domain.slice(),s._inputRange||(s._inputRange=s.range.slice()),s.setScale(),y[o]=u=Math.abs(s._m)/l[o],h=Math.min(h,u),(s.constrain==="domain"||!s._constraintShrinkable)&&(m=Math.min(m,u)),delete s._constraintShrinkable,p=Math.max(p,u),s.constrain==="domain"&&(_=!0);if(!(h>Jve*p&&!_)){for(i=0;i<v.length;i++)if(o=v[i],u=y[o],s=x[o],f=s.constrain,u!==m||f==="domain")if(c=u/m,f==="range")mP(s,c);else{var w=s._inputDomain,b=(s.domain[1]-s.domain[0])/(w[1]-w[0]),M=(s.r2l(s.range[1])-s.r2l(s.range[0]))/(s.r2l(s._inputRange[1])-s.r2l(s._inputRange[0]));if(c/=b,c*M<1){s.domain=s._input.domain=w.slice(),mP(s,c);continue}if(M<1&&(s.range=s._input.range=s._inputRange.slice(),c*=M),s.autorange){var k=s.r2l(s.range[0]),A=s.r2l(s.range[1]),S=(k+A)/2,D=S,E=S,R=Math.abs(A-S),N=S-R*c*1.0001,I=S+R*c*1.0001,H=Fx.makePadFn(t,s,0),O=Fx.makePadFn(t,s,1);gP(s,c);var G=Math.abs(s._m),Y=Fx.concatExtremes(r,s),V=Y.min,U=Y.max,Z,X;for(X=0;X<V.length;X++)Z=V[X].val-H(V[X])/G,Z>N&&Z<D&&(D=Z);for(X=0;X<U.length;X++)Z=U[X].val+O(U[X])/G,Z<I&&Z>E&&(E=Z);var $=(E-D)/(2*R);c/=$,D=s.l2r(D),E=s.l2r(E),s.range=s._input.range=k<A?[D,E]:[E,D]}gP(s,c)}}}};kv.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};kv.clean=function(r,t){if(t._inputDomain){for(var a=!1,n=t._id,i=r._fullLayout._axisConstraintGroups,l=0;l<i.length;l++)if(i[l][n]){a=!0;break}(!a||t.constrain!=="domain")&&(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}};function gP(e,r){var t=e._inputDomain,a=$ve[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 em=B(_a=>{"use strict";var jp=Dr(),nn=Mr(),Zn=Gt(),hi=Le(),Ox=da(),Bx=qp(),Cv=Ar(),nc=Vr(),xP=lv(),AP=zx(),Lv=Jr(),Ul=za(),kP=lu(),jve=kP.enforce,ede=kP.clean,_P=sv().doAutoRange,CP="start",rde="middle",LP="end",tde=ba().zindexSeparator;_a.layoutStyles=function(e){return hi.syncOrAsync([Zn.doAutoMargin,nde],e)};function ade(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 nde(e){var r=e._fullLayout,t=r._size,a=t.p,n=Lv.list(e,"",!0),i,l,o,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(nc.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),_a.drawMainTitle(e),AP.manage(e),!r._has("cartesian"))return Zn.previousPromises(e);function c(ce,Me,De){var Te=ce._lw/2;if(ce._id.charAt(0)==="x"){if(Me){if(De==="top")return Me._offset-a-Te}else return t.t+t.h*(1-(ce.position||0))+Te%1;return Me._offset+Me._length+a+Te}if(Me){if(De==="right")return Me._offset+Me._length+a+Te}else return t.l+t.w*(ce.position||0)+Te%1;return Me._offset-a-Te}for(i=0;i<n.length;i++){s=n[i];var v=s._anchorAxis;s._linepositions={},s._lw=nc.crispRound(e,s.linewidth,1),s._mainLinePosition=c(s,v,s.side),s._mainMirrorPosition=s.mirror&&v?c(s,v,Ul.OPPOSITE_SIDE[s.side]):null}var h=[],p=[],m=[],y=Cv.opacity(r.paper_bgcolor)===1&&Cv.opacity(r.plot_bgcolor)===1&&r.paper_bgcolor===r.plot_bgcolor;for(l in r._plots)if(o=r._plots[l],o.mainplot)o.bg&&o.bg.remove(),o.bg=void 0;else{var x=o.xaxis.domain,_=o.yaxis.domain,w=o.plotgroup;if(ade(x,_,m)&&l.indexOf(tde)===-1){var b=w.node(),M=o.bg=hi.ensureSingle(w,"rect","bg");b.insertBefore(M.node(),b.childNodes[0]),p.push(l)}else w.select("rect.bg").remove(),m.push([x,_]),y||(h.push(l),p.push(l))}var k=r._bgLayer.selectAll(".bg").data(h);for(k.enter().append("rect").classed("bg",!0),k.exit().remove(),k.each(function(ce){r._plots[ce].bg=jp.select(this)}),i=0;i<p.length;i++)o=r._plots[p[i]],u=o.xaxis,f=o.yaxis,o.bg&&u._offset!==void 0&&f._offset!==void 0&&o.bg.call(nc.setRect,u._offset-a,f._offset-a,u._length+2*a,f._length+2*a).call(Cv.fill,r.plot_bgcolor).style("stroke-width",0);if(!r._hasOnlyLargeSploms)for(l in r._plots){o=r._plots[l],u=o.xaxis,f=o.yaxis;var A=o.clipId="clip"+r._uid+l+"plot",S=hi.ensureSingleById(r._clips,"clipPath",A,function(ce){ce.classed("plotclip",!0).append("rect")});o.clipRect=S.select("rect").attr({width:u._length,height:f._length}),nc.setTranslate(o.plot,u._offset,f._offset);var D,E;o._hasClipOnAxisFalse?(D=null,E=A):(D=A,E=null),nc.setClipUrl(o.plot,D,e),o.layerClipId=E}var R,N,I,H,O,G,Y,V,U,Z,X,$,ae;function ie(ce){return"M"+R+","+ce+"H"+N}function ve(ce){return"M"+u._offset+","+ce+"h"+u._length}function K(ce){return"M"+ce+","+V+"V"+Y}function he(ce){return f._shift!==void 0&&(ce+=f._shift),"M"+ce+","+f._offset+"v"+f._length}function oe(ce,Me,De){if(!ce.showline||l!==ce._mainSubplot)return"";if(!ce._anchorAxis)return De(ce._mainLinePosition);var Te=Me(ce._mainLinePosition);return ce.mirror&&(Te+=Me(ce._mainMirrorPosition)),Te}for(l in r._plots){o=r._plots[l],u=o.xaxis,f=o.yaxis;var be="M0,0";wP(u,l)&&(O=Qp(u,"left",f,n),R=u._offset-(O?a+O:0),G=Qp(u,"right",f,n),N=u._offset+u._length+(G?a+G:0),I=c(u,f,"bottom"),H=c(u,f,"top"),ae=!u._anchorAxis||l!==u._mainSubplot,ae&&(u.mirror==="allticks"||u.mirror==="all")&&(u._linepositions[l]=[I,H]),be=oe(u,ie,ve),ae&&u.showline&&(u.mirror==="all"||u.mirror==="allticks")&&(be+=ie(I)+ie(H)),o.xlines.style("stroke-width",u._lw+"px").call(Cv.stroke,u.showline?u.linecolor:"rgba(0,0,0,0)")),o.xlines.attr("d",be);var me="M0,0";wP(f,l)&&(X=Qp(f,"bottom",u,n),Y=f._offset+f._length+(X?a:0),$=Qp(f,"top",u,n),V=f._offset-($?a:0),U=c(f,u,"left"),Z=c(f,u,"right"),ae=!f._anchorAxis||l!==f._mainSubplot,ae&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[l]=[U,Z]),me=oe(f,K,he),ae&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(me+=K(U)+K(Z)),o.ylines.style("stroke-width",f._lw+"px").call(Cv.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),o.ylines.attr("d",me)}return Lv.makeClipPaths(e),Zn.previousPromises(e)}function wP(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function TP(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=Ul.FROM_BL[r];return t.side===r?a.domain[n]===e.domain[n]:t.mirror&&a.domain[1-n]===e.domain[1-n]}function Qp(e,r,t,a){if(TP(e,r,t))return t._lw;for(var n=0;n<a.length;n++){var i=a[n];if(i._mainAxis===t._mainAxis&&TP(e,r,i))return i._lw}return 0}_a.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,a=cde(t),n=vde(t),i=fde(t,n),l=ude(t,a);if(xP.draw(e,"gtitle",{propContainer:t,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:t._dfltTitle.plot,subtitlePlaceholder:t._dfltTitle.subtitle,attributes:{x:l,y:i,"text-anchor":a,dy:n}}),r.text&&r.automargin){var o=jp.select(e).selectAll(".gtitle"),s=nc.bBox(jp.select(e).selectAll(".g-gtitle").node()).height,u=ode(e,r,s);if(u>0){sde(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:MP(r.yanchor)}).call(Ox.positionText,l,i);var f=(r.text.match(Ox.BR_TAG_ALL)||[]).length;if(f){var c=Ul.LINE_SPACING*f+Ul.MID_SHIFT;r.y===0&&(c=-c),o.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var v=jp.select(e).selectAll(".gtitle-subtitle");if(v.node()){var h=o.node().getBBox(),p=h.y+h.height,m=p+xP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:l,y:m,"text-anchor":a,dy:MP(r.yanchor)}).call(Ox.positionText,l,m)}}}};function ide(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=hi.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return hi.isTopAnchor(r)&&t==="t"||hi.isBottomAnchor(r)&&t==="b"?!1:o<n}function lde(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 ode(e,r,t){var a=r.y,n=r.yanchor,i=a>.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=lde(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function sde(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&ide(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),Zn.allowAutoMargin(e,n),Zn.autoMargin(e,n,o)}function ude(e,r){var t=e.title,a=e._size,n=0;return r===CP?n=t.pad.l:r===LP&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function fde(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===Ul.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 MP(e){return e==="top"?Ul.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Ul.MID_SHIFT+"em"}function cde(e){var r=e.title,t=rde;return hi.isRightAnchor(r)?t=LP:hi.isLeftAnchor(r)&&(t=CP),t}function vde(e){var r=e.title,t="0em";return hi.isTopAnchor(r)?t=Ul.CAP_SHIFT+"em":hi.isMiddleAnchor(r)&&(t=Ul.MID_SHIFT+"em"),t}_a.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a<r.length;a++){var n=r[a],i=n[0]||{},l=i.trace||{},o=l._module||{},s=o.arraysToCalcdata;s&&s(n,l);var u=o.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)}Bx(e),_a.redrawReglTraces(e)}return Zn.style(e),nn.getComponentMethod("legend","draw")(e),Zn.previousPromises(e)};_a.doColorBars=function(e){return nn.getComponentMethod("colorbar","draw")(e),Zn.previousPromises(e)};_a.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,nn.call("_doPlot",e,"",r)};_a.doLegend=function(e){return nn.getComponentMethod("legend","draw")(e),Zn.previousPromises(e)};_a.doTicksRelayout=function(e){var r=Lv.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(nn.subplotsRegistry.splom.updateGrid(e),Bx(e),_a.redrawReglTraces(e)),_a.drawMainTitle(e),Promise.resolve(r).then(function(){return Zn.previousPromises(e)})};_a.doModeBar=function(e){var r=e._fullLayout;AP.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var a=r._basePlotModules[t].updateFx;a&&a(e)}return Zn.previousPromises(e)};_a.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)}};_a.drawData=function(e){var r=e._fullLayout;Bx(e);for(var t=r._basePlotModules,a=0;a<t.length;a++)t[a].plot(e);return _a.redrawReglTraces(e),Zn.style(e),nn.getComponentMethod("selections","draw")(e),nn.getComponentMethod("shapes","draw")(e),nn.getComponentMethod("annotations","draw")(e),nn.getComponentMethod("images","draw")(e),r._replotting=!1,Zn.previousPromises(e)};_a.redrawReglTraces=function(e){var r=e._fullLayout;if(r._has("regl")){var t=e._fullData,a=[],n=[],i,l;for(r._hasOnlyLargeSploms&&r._splomGrid.draw(),i=0;i<t.length;i++){var o=t[i];o.visible===!0&&o._length!==0&&(o.type==="splom"?r._splomScenes[o.uid].draw():o.type==="scattergl"?hi.pushUnique(a,o.xaxis+o.yaxis):o.type==="scatterpolargl"&&hi.pushUnique(n,o.subplot))}for(i=0;i<a.length;i++)l=r._plots[a[i]],l._scene&&l._scene.draw();for(i=0;i<n.length;i++)l=r[n[i]]._subplot,l._scene&&l._scene.draw()}};_a.doAutoRangeAndConstraints=function(e){for(var r=Lv.list(e,"",!0),t,a={},n=0;n<r.length;n++)if(t=r[n],!a[t._id]){a[t._id]=1,ede(e,t),_P(e,t);var i=t._matchGroup;if(i)for(var l in i){var o=Lv.getFromId(e,l);_P(e,o,t.range),a[l]=1}}jve(e)};_a.finalDraw=function(e){nn.getComponentMethod("rangeslider","draw")(e),nn.getComponentMethod("rangeselector","draw")(e)};_a.drawMarginPushers=function(e){nn.getComponentMethod("legend","draw")(e),nn.getComponentMethod("rangeselector","draw")(e),nn.getComponentMethod("sliders","draw")(e),nn.getComponentMethod("updatemenus","draw")(e),nn.getComponentMethod("colorbar","draw")(e)}});var Ux=B((Bwe,PP)=>{"use strict";var dde=Ro().readPaths,hde=Bp(),SP=Mo().clearOutlineControllers,Yx=Ar(),qP=Vr(),pde=vt().arrayEditor,DP=Fo(),mde=DP.getPathString;PP.exports={draw:rm,drawOne:EP,activateLastSelection:bde};function rm(e){var r=e._fullLayout;SP(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++)EP(e,n)}function tm(e){return e._context.editSelection}function EP(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=DP.makeSelectionsOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input)return;i(e._fullLayout._selectionLayer);function i(l){var o=mde(e,a),s={"data-index":r,"fill-rule":"evenodd",d:o},u=a.opacity,f="rgba(0,0,0,0)",c=a.line.color||Yx.contrast(e._fullLayout.plot_bgcolor),v=a.line.width,h=a.line.dash;v||(v=5,h="solid");var p=tm(e)&&e._fullLayout._activeSelectionIndex===r;p&&(f=e._fullLayout.activeselection.fillcolor,u=e._fullLayout.activeselection.opacity);for(var m=[],y=1;y>=0;y--){var x=l.append("path").attr(s).style("opacity",y?.1:u).call(Yx.stroke,c).call(Yx.fill,f).call(qP.dashLine,y?"solid":h,y?4+v:v);if(yde(x,e,a),p){var _=pde(e.layout,"selections",a);x.style({cursor:"move"});var w={element:x.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},b=dde(o,e);hde(b,x,w)}else x.style("pointer-events",y?"all":"none");m[y]=x}var M=m[0],k=m[1];k.node().addEventListener("click",function(){return gde(e,M)})}}function yde(e,r,t){var a=t.xref+t.yref;qP.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function gde(e,r){if(tm(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){Gx(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=Gx,rm(e)}}}function bde(e){if(tm(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=Gx,rm(e)}}function Gx(e){if(tm(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(SP(e),delete e._fullLayout._activeSelectionIndex,rm(e))}}});var zP=B((Ywe,RP)=>{function xde(){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,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},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}RP.exports=xde});var FP=B((Gwe,NP)=>{function _de(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],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u<e)return!1;var f=l*l+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],l=t[1]-a[1],o=a[0]-n[0],s=a[1]-n[1];return Math.abs(i*s-o*l)<e},linesIntersect:function(t,a,n,i){var l=a[0]-t[0],o=a[1]-t[1],s=i[0]-n[0],u=i[1]-n[1],f=l*u-o*s;if(Math.abs(f)<e)return!1;var c=t[0]-n[0],v=t[1]-n[1],h=(s*v-u*c)/f,p=(l*v-o*c)/f,m={alongA:0,alongB:0,pt:[t[0]+h*l,t[1]+h*o]};return h<=-e?m.alongA=-2:h<e?m.alongA=-1:h-1<=-e?m.alongA=0:h-1<e?m.alongA=1:m.alongA=2,p<=-e?m.alongB=-2:p<e?m.alongB=-1:p-1<=-e?m.alongB=0:p-1<e?m.alongB=1:m.alongB=2,m},pointInsideRegion:function(t,a){for(var n=t[0],i=t[1],l=a[a.length-1][0],o=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!=o-i>e&&(l-f)*(i-c)/(o-c)+f-n>e&&(s=!s),l=f,o=c}return s}};return r}NP.exports=_de});var HP=B((Uwe,IP)=>{var wde={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}};IP.exports=wde});var BP=B((Vwe,OP)=>{var Sv=HP();function Tde(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=Sv.create();function l(p,m,y,x,_,w){var b=r.pointsCompare(m,_);return b!==0?b:r.pointsSame(y,w)?0:p!==x?p?1:-1:r.pointAboveOrOnLine(y,x?_:w,x?w:_)?1:-1}function o(p,m){i.insertBefore(p,function(y){var x=l(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return x<0})}function s(p,m){var y=Sv.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return o(y,p.end),y}function u(p,m,y){var x=Sv.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=x,o(x,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,o(p.other,p.pt)}function v(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function h(p,m){var y=Sv.create();function x(O,G){var Y=O.seg.start,V=O.seg.end,U=G.seg.start,Z=G.seg.end;return r.pointsCollinear(Y,U,Z)?r.pointsCollinear(V,U,Z)||r.pointAboveOrOnLine(V,U,Z)?1:-1:r.pointAboveOrOnLine(Y,U,Z)?1:-1}function _(O){return y.findTransition(function(G){var Y=x(O,G.ev);return Y>0})}function w(O,G){var Y=O.seg,V=G.seg,U=Y.start,Z=Y.end,X=V.start,$=V.end;t&&t.checkIntersection(Y,V);var ae=r.linesIntersect(U,Z,X,$);if(ae===!1){if(!r.pointsCollinear(U,Z,X)||r.pointsSame(U,$)||r.pointsSame(Z,X))return!1;var ie=r.pointsSame(U,X),ve=r.pointsSame(Z,$);if(ie&&ve)return G;var K=!ie&&r.pointBetween(U,X,$),he=!ve&&r.pointBetween(Z,X,$);if(ie)return he?v(G,Z):v(O,$),G;K&&(ve||(he?v(G,Z):v(O,$)),v(G,U))}else ae.alongA===0&&(ae.alongB===-1?v(O,X):ae.alongB===0?v(O,ae.pt):ae.alongB===1&&v(O,$)),ae.alongB===0&&(ae.alongA===-1?v(G,U):ae.alongA===0?v(G,ae.pt):ae.alongA===1&&v(G,Z));return!1}for(var b=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let O=function(){if(A){var G=w(M,A);if(G)return G}return S?w(M,S):!1};var H=O;t&&t.segmentNew(M.seg,M.primary);var k=_(M),A=k.before?k.before.ev:null,S=k.after?k.after.ev:null;t&&t.tempStatus(M.seg,A?A.seg:!1,S?S.seg:!1);var D=O();if(D){if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,E&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(D.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,S?M.seg.myFill.below=S.seg.myFill.above:M.seg.myFill.below=p,E?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var R;S?M.primary===S.primary?R=S.seg.otherFill.above:R=S.seg.myFill.above:R=M.primary?m:p,M.seg.otherFill={above:R,below:R}}t&&t.status(M.seg,A?A.seg:!1,S?S.seg:!1),M.other.status=k.insert(Sv.node({ev:M}))}else{var N=M.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(N.prev)&&y.exists(N.next)&&w(N.prev.ev,N.next.ev),t&&t.statusRemove(N.ev.seg),N.remove(),!M.primary){var I=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=I}b.push(M.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(p){for(var m,y=p[p.length-1],x=0;x<p.length;x++){m=y,y=p[x];var _=r.pointsCompare(m,y);_!==0&&f(a(_<0?m:y,_<0?y:m),!0)}},calculate:function(p){return h(p,!1)}}:{calculate:function(p,m,y,x){return p.forEach(function(_){f(n(_.start,_.end,_),!0)}),y.forEach(function(_){f(n(_.start,_.end,_),!1)}),h(m,x)}}}OP.exports=Tde});var GP=B((Xwe,YP)=>{function Mde(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){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(H,O,G){return f.index=H,f.matches_head=O,f.matches_pt1=G,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v<a.length;v++){var h=a[v],p=h[0],m=h[1],y=h[h.length-1],x=h[h.length-2];if(r.pointsSame(p,l)){if(c(v,!0,!0))break}else if(r.pointsSame(p,o)){if(c(v,!0,!1))break}else if(r.pointsSame(y,l)){if(c(v,!1,!0))break}else if(r.pointsSame(y,o)&&c(v,!1,!1))break}if(f===s){a.push([l,o]),t&&t.chainNew(l,o);return}if(f===u){t&&t.chainMatch(s.index);var _=s.index,w=s.matches_pt1?o:l,b=s.matches_head,h=a[_],M=b?h[0]:h[h.length-1],k=b?h[1]:h[h.length-2],A=b?h[h.length-1]:h[0],S=b?h[h.length-2]:h[1];if(r.pointsCollinear(k,M,w)&&(b?(t&&t.chainRemoveHead(s.index,w),h.shift()):(t&&t.chainRemoveTail(s.index,w),h.pop()),M=k),r.pointsSame(A,w)){a.splice(_,1),r.pointsCollinear(S,A,M)&&(b?(t&&t.chainRemoveTail(s.index,M),h.pop()):(t&&t.chainRemoveHead(s.index,M),h.shift())),t&&t.chainClose(s.index),n.push(h);return}b?(t&&t.chainAddHead(s.index,w),h.unshift(w)):(t&&t.chainAddTail(s.index,w),h.push(w));return}function D(H){t&&t.chainReverse(H),a[H].reverse()}function E(H,O){var G=a[H],Y=a[O],V=G[G.length-1],U=G[G.length-2],Z=Y[0],X=Y[1];r.pointsCollinear(U,V,Z)&&(t&&t.chainRemoveTail(H,V),G.pop(),V=U),r.pointsCollinear(V,Z,X)&&(t&&t.chainRemoveHead(O,Z),Y.shift()),t&&t.chainJoin(H,O),a[H]=G.concat(Y),a.splice(O,1)}var R=s.index,N=u.index;t&&t.chainConnect(R,N);var I=a[R].length<a[N].length;s.matches_head?u.matches_head?I?(D(R),E(R,N)):(D(N),E(N,R)):E(N,R):u.matches_head?E(R,N):I?(D(R),E(N,R)):(D(N),E(R,N))}),n}YP.exports=Mde});var VP=B((Wwe,UP)=>{function qv(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 Ade={union:function(e,r){return qv(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return qv(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return qv(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return qv(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return qv(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};UP.exports=Ade});var WP=B((Zwe,XP)=>{var kde={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s<i.length;s++)o=e.selectDifference(e.combine(o,l(i[s])));return o}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(h,p){return r.pointInsideRegion([(h[0][0]+h[1][0])*.5,(h[0][1]+h[1][1])*.5],p)}function n(h){return{region:h,children:[]}}var i=n(null);function l(h,p){for(var m=0;m<h.children.length;m++){var y=h.children[m];if(a(p,y.region)){l(y,p);return}}for(var x=n(p),m=0;m<h.children.length;m++){var y=h.children[m];a(y.region,p)&&(x.children.push(y),h.children.splice(m,1),m--)}h.children.push(x)}for(var o=0;o<t.regions.length;o++){var s=t.regions[o];s.length<3||l(i,s)}function u(h,p){for(var m=0,y=h[h.length-1][0],x=h[h.length-1][1],_=[],w=0;w<h.length;w++){var b=h[w][0],M=h[w][1];_.push([b,M]),m+=M*y-b*x,y=b,x=M}var k=m<0;return k!==p&&_.reverse(),_.push([_[0][0],_[0][1]]),_}var f=[];function c(h){var p=[u(h.region,!1)];f.push(p);for(var m=0;m<h.children.length;m++)p.push(v(h.children[m]))}function v(h){for(var p=0;p<h.children.length;p++)c(h.children[p]);return u(h.region,!0)}for(var o=0;o<i.children.length;o++)c(i.children[o]);return f.length<=0?{type:"Polygon",coordinates:[]}:f.length==1?{type:"Polygon",coordinates:f[0]}:{type:"MultiPolygon",coordinates:f}}};XP.exports=kde});var KP=B((Jwe,$P)=>{var Cde=zP(),Lde=FP(),ZP=BP(),Sde=GP(),Dv=VP(),JP=WP(),pi=!1,Ev=Lde(),Cn;Cn={buildLog:function(e){return e===!0?pi=Cde():e===!1&&(pi=!1),pi===!1?!1:pi.list},epsilon:function(e){return Ev.epsilon(e)},segments:function(e){var r=ZP(!0,Ev,pi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=ZP(!1,Ev,pi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Dv.union(e.combined,pi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Dv.intersect(e.combined,pi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Dv.difference(e.combined,pi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Dv.differenceRev(e.combined,pi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Dv.xor(e.combined,pi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Sde(e.segments,Ev,pi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return JP.toPolygon(Cn,e)},polygonToGeoJSON:function(e){return JP.fromPolygon(Cn,Ev,e)},union:function(e,r){return Pv(e,r,Cn.selectUnion)},intersect:function(e,r){return Pv(e,r,Cn.selectIntersect)},difference:function(e,r){return Pv(e,r,Cn.selectDifference)},differenceRev:function(e,r){return Pv(e,r,Cn.selectDifferenceRev)},xor:function(e,r){return Pv(e,r,Cn.selectXor)}};function Pv(e,r,t){var a=Cn.segments(e),n=Cn.segments(r),i=Cn.combine(a,n),l=t(i);return Cn.polygon(l)}typeof window=="object"&&(window.PolyBool=Cn);$P.exports=Cn});var jP=B(($we,QP)=>{QP.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!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],v=t[u+a][1],h=t[f+a][0],p=t[f+a][1],m=v>l!=p>l&&i<(h-c)*(l-v)/(p-v)+c;m&&(o=!o)}return o}});var Xx=B((Kwe,eR)=>{"use strict";var Vx=i1().dot,am=Dt().BADNUM,nm=eR.exports={};nm.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;o<t.length;o++)a=Math.min(a,t[o][0]),n=Math.max(n,t[o][0]),i=Math.min(i,t[o][1]),l=Math.max(l,t[o][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(p){return p[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(p){return p[1]===t[0][1]}));function f(p,m){var y=p[0],x=p[1];return!(y===am||y<a||y>n||x===am||x<i||x>l||m&&u(p))}function c(p,m){var y=p[0],x=p[1];if(y===am||y<a||y>n||x===am||x<i||x>l)return!1;var _=t.length,w=t[0][0],b=t[0][1],M=0,k,A,S,D,E;for(k=1;k<_;k++)if(A=w,S=b,w=t[k][0],b=t[k][1],D=Math.min(A,w),!(y<D||y>Math.max(A,w)||x>Math.max(S,b)))if(x<Math.min(S,b))y!==D&&M++;else{if(w===A?E=x:E=S+(y-A)*(b-S)/(w-A),x===E)return!(k===1&&m);x<=E&&y!==D&&M++}return M%2===1}var v=!0,h=t[0];for(o=1;o<t.length;o++)if(h[0]!==t[o][0]||h[1]!==t[o][1]){v=!1;break}return{xmin:a,xmax:n,ymin:i,ymax:l,pts:t,contains:s?f:c,isRect:s,degenerate:v}};nm.isSegmentBent=function(r,t,a,n){var i=r[t],l=[r[a][0]-i[0],r[a][1]-i[1]],o=Vx(l,l),s=Math.sqrt(o),u=[-l[1]/s,l[0]/s],f,c,v;for(f=t+1;f<a;f++)if(c=[r[f][0]-i[0],r[f][1]-i[1]],v=Vx(c,l),v<0||v>o||Math.abs(Vx(c,u))>n)return!0;return!1};nm.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(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||nm.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 o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var tR=B((Qwe,rR)=>{"use strict";rR.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var MR=B((jwe,TR)=>{"use strict";var aR=KP(),qde=jP(),Nv=Mr(),Dde=Vr().dashStyle,Rv=Ar(),Ede=vi(),Pde=Oi().makeEventData,Bv=jf(),Rde=Bv.freeMode,zde=Bv.rectMode,Fv=Bv.drawMode,$x=Bv.openMode,Kx=Bv.selectMode,nR=Fo(),iR=Tv(),fR=Bp(),cR=Mo().clearOutline,vR=Ro(),Wx=vR.handleEllipse,Nde=vR.readPaths,Fde=Ip().newShapes,Ide=gx(),Hde=Ux().activateLastSelection,lm=Le(),Ode=lm.sorterAsc,dR=Xx(),zv=y1(),mi=na().getFromId,Bde=qp(),Yde=em().redrawReglTraces,om=tR(),wl=om.MINSELECT,Gde=dR.filter,Qx=dR.tester,jx=Rp(),lR=jx.p2r,Ude=jx.axValue,Vde=jx.getTransform;function e4(e){return e.subplot!==void 0}function Xde(e,r,t,a,n){var i=!e4(a),l=Rde(n),o=zde(n),s=$x(n),u=Fv(n),f=Kx(n),c=n==="drawline",v=n==="drawcircle",h=c||v,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,x=m._zoomlayer,_=a.element.getBoundingClientRect(),w=a.plotinfo,b=Vde(w),M=r-_.left,k=t-_.top;m._calcInverseTransform(p);var A=lm.apply3DTransform(m._invTransform)(M,k);M=A[0],k=A[1];var S=m._invScaleX,D=m._invScaleY,E=M,R=k,N="M"+M+","+k,I=a.xaxes[0],H=a.yaxes[0],O=I._length,G=H._length,Y=e.altKey&&!(Fv(n)&&s),V,U,Z,X,$,ae,ie;pR(e,p,a),l&&(V=Gde([[M,k]],om.BENDPX));var ve=x.selectAll("path.select-outline-"+w.id).data([1]),K=u?m.newshape:m.newselection;u&&(a.hasText=K.label.text||K.label.texttemplate);var he=u&&!s?K.fillcolor:"rgba(0,0,0,0)",oe=K.line.color||(i?Rv.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ve.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?K.opacity/2:1,"stroke-dasharray":Dde(K.line.dash,K.line.width),"stroke-width":K.line.width+"px","shape-rendering":"crispEdges"}).call(Rv.stroke,oe).call(Rv.fill,he).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",N+"Z");var be=x.append("path").attr("class","zoombox-corners").style({fill:Rv.background,stroke:Rv.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var me=x.select(".label-temp");me.empty()&&(me=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ce=m._uid+om.SELECTID,Me=[],De=sm(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Pe=I._id,Se=H._id;xR(p,Pe,Se,De);for(var ke=(p.layout||{}).selections||[],ze=[],Ge=!1,Ce=0;Ce<ke.length;Ce++){var $e=m.selections[Ce];!$e||$e.xref!==Pe||$e.yref!==Se?ze.push(ke[Ce]):Ge=!0}Ge&&(p._fullLayout._noEmitSelectedAtStart=!0,Nv.call("_guiRelayout",p,{selections:ze}))}});var Te=lhe(a);a.moveFn=function(Pe,Se){a._clearSubplotSelections&&(a._clearSubplotSelections(),a._clearSubplotSelections=void 0),E=Math.max(0,Math.min(O,S*Pe+M)),R=Math.max(0,Math.min(G,D*Se+k));var ke=Math.abs(E-M),ze=Math.abs(R-k);if(o){var Ge,Ce,$e;if(f){var Ke=m.selectdirection;switch(Ke==="any"?ze<Math.min(ke*.6,wl)?Ge="h":ke<Math.min(ze*.6,wl)?Ge="v":Ge="d":Ge=Ke,Ge){case"h":Ce=v?G/2:0,$e=G;break;case"v":Ce=v?O/2:0,$e=O;break}}if(u)switch(m.newshape.drawdirection){case"vertical":Ge="h",Ce=v?G/2:0,$e=G;break;case"horizontal":Ge="v",Ce=v?O/2:0,$e=O;break;case"ortho":ke<ze?(Ge="h",Ce=k,$e=R):(Ge="v",Ce=M,$e=E);break;default:Ge="d"}Ge==="h"?(X=h?Wx(v,[E,Ce],[E,$e]):[[M,Ce],[M,$e],[E,$e],[E,Ce]],X.xmin=h?E:Math.min(M,E),X.xmax=h?E:Math.max(M,E),X.ymin=Math.min(Ce,$e),X.ymax=Math.max(Ce,$e),be.attr("d","M"+X.xmin+","+(k-wl)+"h-4v"+2*wl+"h4ZM"+(X.xmax-1)+","+(k-wl)+"h4v"+2*wl+"h-4Z")):Ge==="v"?(X=h?Wx(v,[Ce,R],[$e,R]):[[Ce,k],[Ce,R],[$e,R],[$e,k]],X.xmin=Math.min(Ce,$e),X.xmax=Math.max(Ce,$e),X.ymin=h?R:Math.min(k,R),X.ymax=h?R:Math.max(k,R),be.attr("d","M"+(M-wl)+","+X.ymin+"v-4h"+2*wl+"v4ZM"+(M-wl)+","+(X.ymax-1)+"v4h"+2*wl+"v-4Z")):Ge==="d"&&(X=h?Wx(v,[M,k],[E,R]):[[M,k],[M,R],[E,R],[E,k]],X.xmin=Math.min(M,E),X.xmax=Math.max(M,E),X.ymin=Math.min(k,R),X.ymax=Math.max(k,R),be.attr("d","M0,0Z"))}else l&&(V.addPt([E,R]),X=V.filtered);if(a.selectionDefs&&a.selectionDefs.length?(Z=mR(a.mergedPolygons,X,Y),X.subtract=Y,U=r4(a.selectionDefs.concat([X]))):(Z=[X],U=Qx(X)),fR(gR(Z,s),ve,a),f){var Xe=Jx(p,!1),Ae=Xe.eventData?Xe.eventData.points.slice():[];Xe=Jx(p,!1,U,De,a),U=Xe.selectionTesters,ie=Xe.eventData;var Re;V?Re=V.filtered:Re=_R(Z),zv.throttle(ce,om.SELECTDELAY,function(){Me=bR(U,De);for(var Qe=Me.slice(),re=0;re<Ae.length;re++){for(var ye=Ae[re],Ve=!1,dr=0;dr<Qe.length;dr++)if(Qe[dr].curveNumber===ye.curveNumber&&Qe[dr].pointNumber===ye.pointNumber){Ve=!0;break}Ve||Qe.push(ye)}Qe.length&&(ie||(ie={}),ie.points=Qe),Te(ie,Re),ohe(p,ie)})}},a.clickFn=function(Pe,Se){if(be.remove(),p._fullLayout._activeShapeIndex>=0){p._fullLayout._deactivateShape(p);return}if(!u){var ke=m.clickmode;zv.done(ce).then(function(){if(zv.clear(ce),Pe===2){for(ve.remove(),$=0;$<De.length;$++)ae=De[$],ae._module.selectPoints(ae,!1);if(Hv(p,De),Iv(a),a4(p),De.length){var ze=De[0].xaxis,Ge=De[0].yaxis;if(ze&&Ge){for(var Ce=[],$e=p._fullLayout.selections,Ke=0;Ke<$e.length;Ke++){var Xe=$e[Ke];Xe&&(Xe.xref!==ze._id||Xe.yref!==Ge._id)&&Ce.push(Xe)}Ce.length<$e.length&&(p._fullLayout._noEmitSelectedAtStart=!0,Nv.call("_guiRelayout",p,{selections:Ce}))}}}else ke.indexOf("select")>-1&&hR(Se,p,a.xaxes,a.yaxes,a.subplot,a,ve),ke==="event"&&Ov(p,void 0);Ede.click(p,Se,w.id)}).catch(lm.error)}},a.doneFn=function(){be.remove(),zv.done(ce).then(function(){zv.clear(ce),!y&&X&&a.selectionDefs&&(X.subtract=Y,a.selectionDefs.push(X),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Z)),(y||u)&&Iv(a,y),a.doneFnCompleted&&a.doneFnCompleted(Me),f&&Ov(p,ie)}).catch(lm.error)}}function hR(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,h,p,m,y,x,_,w,b,M;if(Kde(o)){pR(e,r,i),v=sm(r,t,a,n);var k=Qde(o,v),A=k.pointNumbers.length>0;if(A?jde(v,k):ehe(v)&&(_=sR(k))){for(l&&l.remove(),M=0;M<v.length;M++)h=v[M],h._module.selectPoints(h,!1);Hv(r,v),Iv(i),f&&a4(r)}else{w=e.shiftKey&&(_!==void 0?_:sR(k)),p=Wde(k.pointNumber,k.searchInfo,w);var S=i.selectionDefs.concat([p]);for(m=r4(S,m),M=0;M<v.length;M++)if(y=v[M]._module.selectPoints(v[M],m),x=yR(y,v[M]),c.length)for(var D=0;D<x.length;D++)c.push(x[D]);else c=x;if(b={points:c},Hv(r,v,b),p&&i&&i.selectionDefs.push(p),l){var E=i.mergedPolygons,R=$x(i.dragmode);fR(gR(E,R),l,i)}f&&Ov(r,b)}}}function Wde(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function Zx(e){return"pointNumber"in e&&"searchInfo"in e}function Zde(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,l=n.cd[0].trace.index;return l===i&&a===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function r4(e){if(!e.length)return;for(var r=[],t=Zx(e[0])?0:e[0][0][0],a=t,n=Zx(e[0])?0:e[0][0][1],i=n,l=0;l<e.length;l++)if(Zx(e[l]))r.push(Zde(e[l]));else{var o=Qx(e[l]);o.subtract=!!e[l].subtract,r.push(o),t=Math.min(t,o.xmin),a=Math.max(a,o.xmax),n=Math.min(n,o.ymin),i=Math.max(i,o.ymax)}function s(u,f,c,v){for(var h=!1,p=0;p<r.length;p++)r[p].contains(u,f,c,v)&&(h=!r[p].subtract);return h}return{xmin:t,xmax:a,ymin:n,ymax:i,pts:[],contains:s,isRect:!1,degenerate:!1}}function pR(e,r,t){var a=r._fullLayout,n=t.plotinfo,i=t.dragmode,l=a._lastSelectedSubplot&&a._lastSelectedSubplot===n.id,o=(e.shiftKey||e.altKey)&&!(Fv(i)&&$x(i));l&&o&&n.selection&&n.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=n.selection.selectionDefs,t.mergedPolygons=n.selection.mergedPolygons):(!o||!n.selection)&&Iv(t),l||(cR(r),a._lastSelectedSubplot=n.id)}function Jde(e){return e._fullLayout._activeShapeIndex>=0}function $de(e){return e._fullLayout._activeSelectionIndex>=0}function Iv(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Jde(n)&&n._fullLayout._deactivateShape(n),$de(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Fv(t),s=Kx(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=Fde(u,e)),f&&Nv.call("_guiRelayout",n,{shapes:f});var c;s&&!e4(e)&&(c=Ide(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Nv.call("_guiRelayout",n,{selections:c}).then(function(){r&&Hde(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function oR(e){return e._id}function sm(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(oR),l=t.map(oR),o,s,u;for(u=0;u<e.calcdata.length;u++)if(o=e.calcdata[u],s=o[0].trace,!(s.visible!==!0||!s._module||!s._module.selectPoints))if(e4({subplot:a})&&(s.subplot===a||s.geo===a))n.push(im(s._module,o,r[0],t[0]));else if(s.type==="splom"){if(s._xaxes[i[0]]&&s._yaxes[l[0]]){var f=im(s._module,o,r[0],t[0]);f.scene=e._fullLayout._splomScenes[s.uid],n.push(f)}}else if(s.type==="sankey"){var c=im(s._module,o,r[0],t[0]);n.push(c)}else{if(i.indexOf(s.xaxis)===-1&&(!s._xA||!s._xA.overlaying)||l.indexOf(s.yaxis)===-1&&(!s._yA||!s._yA.overlaying))continue;n.push(im(s._module,o,mi(e,s.xaxis),mi(e,s.yaxis)))}return n}function im(e,r,t,a){return{_module:e,cd:r,xaxis:t,yaxis:a}}function Kde(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function Qde(e,r){var t=e[0],a=-1,n=[],i,l;for(l=0;l<r.length;l++)if(i=r[l],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 sR(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 jde(e,r){var t=[],a,n,i,l;for(l=0;l<e.length;l++)a=e[l],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(l=0;l<r.pointNumbers.length;l++)if(n.selectedpoints.indexOf(r.pointNumbers[l])<0)return!1;return!0}return!1}function ehe(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 Hv(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 l=t.points||[];for(a=0;a<r.length;a++)n=r[a].cd[0].trace,n._input.selectedpoints=n.selectedpoints=[];for(var o=0;o<l.length;o++){var s=l[o],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;rhe(e,r)}function rhe(e,r){for(var t=!1,a=0;a<r.length;a++){var n=r[a],i=n.cd;Nv.traceIs(i[0].trace,"regl")&&(t=!0);var l=n._module,o=l.styleOnSelect||l.style;o&&(o(e,i,i[0].node3),i[0].nodeRangePlot3&&o(e,i,i[0].nodeRangePlot3))}t&&(Bde(e),Yde(e))}function mR(e,r,t){for(var a=t?aR.difference:aR.union,n=a({regions:e},{regions:[r]}),i=n.regions.reverse(),l=0;l<i.length;l++){var o=i[l];o.subtract=t4(o,i.slice(0,l))}return i}function yR(e,r){if(Array.isArray(e))for(var t=r.cd,a=r.cd[0].trace,n=0;n<e.length;n++)e[n]=Pde(e[n],a,t);return e}function gR(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 bR(e,r){for(var t=[],a,n=[],i,l=0;l<r.length;l++){var o=r[l];i=o._module.selectPoints(o,e),n.push(i),a=yR(i,o),t=t.concat(a)}return t}function Jx(e,r,t,a,n){var i=!!a,l,o,s;n&&(l=n.plotinfo,o=n.xaxes[0]._id,s=n.yaxes[0]._id);var u=[],f=[],c=uR(e),v=e._fullLayout;if(l){var h=v._zoomlayer,p=v.dragmode,m=Fv(p),y=Kx(p);if(m||y){var x=mi(e,o,"x"),_=mi(e,s,"y");if(x&&_){var w=h.selectAll(".select-outline-"+l.id);if(w&&e._fullLayout._outlining&&w.length){for(var b=w[0][0],M=b.getAttribute("d"),k=Nde(M,e,l),A=[],S=0;S<k.length;S++){for(var D=k[S],E=[],R=0;R<D.length;R++)E.push([Io(x,D[R][1]),Io(_,D[R][2])]);E.xref=o,E.yref=s,E.subtract=t4(E,A),A.push(E)}c=c.concat(A)}}}}var N=o&&s?[o+s]:v._subplots.cartesian;the(e);for(var I={},H=0;H<N.length;H++){var O=N[H],G=O.indexOf("y"),Y=O.slice(0,G),V=O.slice(G),U=o&&s?t:void 0;if(U=nhe(c,Y,V,U),U){var Z=a;if(!i){var X=mi(e,Y,"x"),$=mi(e,V,"y");Z=sm(e,[X],[$],O);for(var ae=0;ae<Z.length;ae++){var ie=Z[ae],ve=ie.cd[0],K=ve.trace;if(ie._module.name==="scattergl"&&!ve.t.xpx){var he=K.x,oe=K.y,be=K._length;ve.t.xpx=[],ve.t.ypx=[];for(var me=0;me<be;me++)ve.t.xpx[me]=X.c2p(he[me]),ve.t.ypx[me]=$.c2p(oe[me])}ie._module.name==="splom"&&(I[K.uid]||(I[K.uid]=!0))}}var ce=bR(U,Z);u=u.concat(ce),f=f.concat(Z)}}var Me={points:u};Hv(e,f,Me);var De=v.clickmode,Te=De.indexOf("event")>-1&&r;if(!l&&r){var Pe=uR(e,!0);if(Pe.length){var Se=Pe[0].xref,ke=Pe[0].yref;if(Se&&ke){var ze=_R(Pe),Ge=wR([mi(e,Se,"x"),mi(e,ke,"y")]);Ge(Me,ze)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:Te&&Ov(e,Me),v._reselect=!1}if(!l&&v._deselect){var Ce=v._deselect;o=Ce.xref,s=Ce.yref,ahe(o,s,f)||xR(e,o,s,a),Te&&(Me.points.length?Ov(e,Me):a4(e)),v._deselect=!1}return{eventData:Me,selectionTesters:t}}function the(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 l=i[n.uid];l&&(l.selectBatch=[])}}}function ahe(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 xR(e,r,t,a){a=sm(e,[mi(e,r,"x")],[mi(e,t,"y")],r+t);for(var n=0;n<a.length;n++){var i=a[n];i._module.selectPoints(i,!1)}Hv(e,a)}function nhe(e,r,t,a){for(var n,i=0;i<e.length;i++){var l=e[i];if(!(r!==l.xref||t!==l.yref))if(n){var o=!!l.subtract;n=mR(n,l,o),a=r4(n)}else n=[l],a=Qx(l)}return a}function uR(e,r){for(var t=[],a=e._fullLayout,n=a.selections,i=n.length,l=0;l<i;l++)if(!(r&&l!==a._activeSelectionIndex)){var o=n[l];if(o){var s=o.xref,u=o.yref,f=mi(e,s,"x"),c=mi(e,u,"y"),v,h,p,m,y;if(o.type==="rect"){y=[];var x=Io(f,o.x0),_=Io(f,o.x1),w=Io(c,o.y0),b=Io(c,o.y1);y=[[x,w],[x,b],[_,b],[_,w]],v=Math.min(x,_),h=Math.max(x,_),p=Math.min(w,b),m=Math.max(w,b),y.xmin=v,y.xmax=h,y.ymin=p,y.ymax=m,y.xref=s,y.yref=u,y.subtract=!1,y.isRect=!0,t.push(y)}else if(o.type==="path")for(var M=o.path.split("Z"),k=[],A=0;A<M.length;A++){var S=M[A];if(S){S+="Z";var D=nR.extractPathCoords(S,iR.paramIsX,"raw"),E=nR.extractPathCoords(S,iR.paramIsY,"raw");v=1/0,h=-1/0,p=1/0,m=-1/0,y=[];for(var R=0;R<D.length;R++){var N=Io(f,D[R]),I=Io(c,E[R]);y.push([N,I]),v=Math.min(N,v),h=Math.max(N,h),p=Math.min(I,p),m=Math.max(I,m)}y.xmin=v,y.xmax=h,y.ymin=p,y.ymax=m,y.xref=s,y.yref=u,y.subtract=t4(y,k),k.push(y),t.push(y)}}}}return t}function t4(e,r){for(var t=!1,a=0;a<r.length;a++)for(var n=r[a],i=0;i<e.length;i++)if(qde(e[i],n)){t=!t;break}return t}function Io(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function _R(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 ihe(t)}function ihe(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 wR(e){return function(r,t){for(var a,n,i=0;i<e.length;i++){var l=e[i],o=l._id,s=o.charAt(0);if(t.isRect){a||(a={});var u=t[s+"min"],f=t[s+"max"];u!==void 0&&f!==void 0&&(a[o]=[lR(l,u),lR(l,f)].sort(Ode))}else n||(n={}),n[o]=t.map(Ude(l))}a&&(r.range=a),n&&(r.lassoPoints=n)}}function lhe(e){var r=e.plotinfo;return r.fillRangeItems||wR(e.xaxes.concat(e.yaxes))}function ohe(e,r){e.emit("plotly_selecting",r)}function Ov(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function a4(e){e.emit("plotly_deselect",null)}TR.exports={reselect:Jx,prepSelect:Xde,clearOutline:cR,clearSelectionsCache:Iv,selectOnClick:hR}});var n4=B((eTe,AR)=>{"use strict";AR.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 Yv=B((rTe,kR)=>{"use strict";kR.exports={axisRefDescription:function(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 ic=B((aTe,SR)=>{"use strict";var CR=n4(),LR=ma(),um=ba(),she=vt().templatedArray,tTe=Yv();SR.exports=she("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:LR({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:CR.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:CR.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",um.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",um.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",um.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",um.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:LR({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var fm=B((nTe,qR)=>{"use strict";qR.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var i4=B((iTe,DR)=>{"use strict";DR.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ui=B((lTe,HR)=>{"use strict";var ER=Hi().axisHoverFormat,{hovertemplateAttrs:uhe,texttemplateAttrs:fhe,templatefallbackAttrs:PR}=Fn(),RR=rv(),che=ma(),zR=zi().dash,vhe=zi().pattern,dhe=Vr(),hhe=fm(),Gv=Tt().extendFlat,phe=i4();function NR(e){return{valType:"any",dflt:0,editType:"calc"}}function FR(e){return{valType:"any",editType:"calc"}}function IR(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}HR.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:NR("x"),yperiod:NR("y"),xperiod0:FR("x0"),yperiod0:FR("y0"),xperiodalignment:IR("x"),yperiodalignment:IR("y"),xhoverformat:ER("x"),yhoverformat:ER("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:fhe(),texttemplatefallback:PR({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:uhe({},{keys:hhe.eventDataKeys}),hovertemplatefallback:PR(),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:Gv({},zR,{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:phe(!0),fillgradient:Gv({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:vhe,marker:Gv({symbol:{valType:"enumerated",values:dhe.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:Gv({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Gv({},zR,{arrayOk:!0}),editType:"calc"},RR("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"},RR("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:che({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var l4=B((sTe,YR)=>{"use strict";var OR=ic(),BR=Ui().line,mhe=zi().dash,cm=Tt().extendFlat,yhe=Ri().overrideAll,ghe=vt().templatedArray,oTe=Yv();YR.exports=yhe(ghe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:cm({},OR.xref,{}),yref:cm({},OR.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:BR.color,width:cm({},BR.width,{min:1,dflt:1}),dash:cm({},mhe,{dflt:"dot"})}}),"arraydraw","from-root")});var XR=B((uTe,VR)=>{"use strict";var GR=Le(),vm=Jr(),bhe=si(),xhe=l4(),UR=Fo();VR.exports=function(r,t){bhe(r,t,{name:"selections",handleItemDefaults:_he});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 _he(e,r,t){function a(k,A){return GR.coerce(e,r,xhe,k,A)}var n=a("path"),i=n?"path":"rect",l=a("type",i),o=l!=="path";o&&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},v,h,p,m=vm.coerceRef(e,r,c,f);if(v=vm.getFromId(c,m),v._selectionIndices.push(r._index),p=UR.rangeToShapePosition(v),h=UR.shapePositionToRange(v),o){var y=f+"0",x=f+"1",_=e[y],w=e[x];e[y]=h(e[y],!0),e[x]=h(e[x],!0),vm.coercePosition(r,c,a,m,y),vm.coercePosition(r,c,a,m,x);var b=r[y],M=r[x];b!==void 0&&M!==void 0&&(r[y]=p(b),r[x]=p(M),e[y]=_,e[x]=w)}}o&&GR.noneOrAll(e,r,["x0","x1","y0","y1"])}});var ZR=B((fTe,WR)=>{"use strict";WR.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 Uv=B((cTe,KR)=>{"use strict";var whe=Mr(),JR=Le(),$R=na();KR.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=whe.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),h=0;h<i.length;h++){var p=i[h];if(JR.isPlainObject(p)){var m=$R.cleanId(p.xref,"x",!1),y=$R.cleanId(p.yref,"y",!1),x=o.x.test(m),_=o.y.test(y);if(x||_){v||JR.pushUnique(n._basePlotModules,l);var w=!1;x&&u.indexOf(m)===-1&&(u.push(m),w=!0),_&&f.indexOf(y)===-1&&(f.push(y),w=!0),w&&x&&_&&c.push(m+y)}}}}}});var lc=B((vTe,jR)=>{"use strict";var QR=Ux(),Vv=MR();jR.exports={moduleType:"component",name:"selections",layoutAttributes:l4(),supplyLayoutDefaults:XR(),supplyDrawNewSelectionDefaults:ZR(),includeBasePlot:Uv()("selections"),draw:QR.draw,drawOne:QR.drawOne,reselect:Vv.reselect,prepSelect:Vv.prepSelect,clearOutline:Vv.clearOutline,clearSelectionsCache:Vv.clearSelectionsCache,selectOnClick:Vv.selectOnClick}});var bz=B((dTe,gz)=>{"use strict";var v4=Dr(),yi=Le(),ez=yi.numberFormat,The=Yb(),dm=Mr(),sz=yi.strTranslate,Mhe=da(),s4=Ar(),Ho=Vr(),Ahe=vi(),rz=Jr(),khe=Eo(),Che=Yi(),uz=jf(),hm=uz.selectingOrDrawing,Lhe=uz.freeMode,She=za().FROM_TL,qhe=qp(),Dhe=em().redrawReglTraces,Ehe=Gt(),u4=na().getFromId,Phe=lc().prepSelect,Rhe=lc().clearOutline,zhe=lc().selectOnClick,o4=Nx(),d4=ba(),tz=d4.MINDRAG,dn=d4.MINZOOM,az=!0;function Nhe(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,c,v,h,p,m,y,x,_,w,b,M,k,A,S,D,E,R,N,I,H,O,G,Y;t+=r.yaxis._shift;function V(){if(c=r.xaxis,v=r.yaxis,w=c._length,b=v._length,x=c._offset,_=v._offset,h={},h[c._id]=c,p={},p[v._id]=v,l&&o)for(var pe=r.overlays,we=0;we<pe.length;we++){var Oe=pe[we].xaxis;h[Oe._id]=Oe;var We=pe[we].yaxis;p[We._id]=We}m=oz(h),y=oz(p),A=nz(m,o),S=nz(y,l),D=!S&&!A,k=lz(e,e._fullLayout._axisMatchGroups,h,p),M=lz(e,e._fullLayout._axisConstraintGroups,h,p,k);var Ie=M.isSubplotConstrained||k.isSubplotConstrained;E=o||Ie,R=l||Ie;var Ue=e._fullLayout;N=Ue._has("scattergl"),I=Ue._has("splom"),H=Ue._has("svg")}V();var U=Hhe(S+A,e._fullLayout.dragmode,u),Z=cz(r,l+o+"drag",U,t,a,n,i);if(D&&!u)return Z.onmousedown=null,Z.style.pointerEvents="none",Z;var X={element:Z,gd:e,plotinfo:r};X.prepFn=function(pe,we,Oe){var We=X.dragmode,Ie=e._fullLayout.dragmode;Ie!==We&&(X.dragmode=Ie),V(),G=e._fullLayout._invScaleX,Y=e._fullLayout._invScaleY,D||(u?pe.shiftKey?Ie==="pan"?Ie="zoom":hm(Ie)||(Ie="pan"):pe.ctrlKey&&(Ie="pan"):Ie="pan"),Lhe(Ie)?X.minDrag=1:X.minDrag=void 0,hm(Ie)?(X.xaxes=m,X.yaxes=y,Phe(pe,we,Oe,X,Ie)):(X.clickFn=ae,hm(We)&&$(),D||(Ie==="zoom"?(X.moveFn=Pe,X.doneFn=ke,X.minDrag=1,Te(pe,we,Oe)):Ie==="pan"&&(X.moveFn=Xe,X.doneFn=re))),e._fullLayout._redrag=function(){var Ue=e._dragdata;if(Ue&&Ue.element===Z){var ar=e._fullLayout.dragmode;hm(ar)||(V(),ye([0,0,w,b]),X.moveFn(Ue.dx,Ue.dy))}}};function $(){X.plotinfo.selection=!1,Rhe(e)}function ae(pe,we){var Oe=X.gd;if(Oe._fullLayout._activeShapeIndex>=0){Oe._fullLayout._deactivateShape(Oe);return}var We=Oe._fullLayout.clickmode;if(c4(Oe),pe===2&&!f&&Qe(),u)We.indexOf("select")>-1&&zhe(we,Oe,m,y,r.id,X),We.indexOf("event")>-1&&Ahe.click(Oe,we,r.id);else if(pe===1&&f){var Ie=l?v:c,Ue=l==="s"||o==="w"?0:1,ar=Ie._name+".range["+Ue+"]",ir=Fhe(Ie,Ue),ur="left",qe="middle";if(Ie.fixedrange)return;l?(qe=l==="n"?"top":"bottom",Ie.side==="right"&&(ur="right")):o==="e"&&(ur="right"),Oe._context.showAxisRangeEntryBoxes&&v4.select(Z).call(Mhe.makeEditable,{gd:Oe,immediate:!0,background:Oe._fullLayout.paper_bgcolor,text:String(ir),fill:Ie.tickfont?Ie.tickfont.color:"#444",horizontalAlign:ur,verticalAlign:qe}).on("edit",function(Je){var Fe=Ie.d2r(Je);Fe!==void 0&&dm.call("_guiRelayout",Oe,ar,Fe)})}}Che.init(X);var ie,ve,K,he,oe,be,me,ce,Me,De;function Te(pe,we,Oe){var We=Z.getBoundingClientRect();ie=we-We.left,ve=Oe-We.top,e._fullLayout._calcInverseTransform(e);var Ie=yi.apply3DTransform(e._fullLayout._invTransform)(ie,ve);ie=Ie[0],ve=Ie[1],K={l:ie,r:ie,w:0,t:ve,b:ve,h:0},he=e._hmpixcount?e._hmlumcount/e._hmpixcount:s4.luminosity(e._fullLayout.plot_bgcolor),oe="M0,0H"+w+"V"+b+"H0V0",be=!1,me="xy",De=!1,ce=vz(s,he,x,_,oe),Me=dz(s,x,_)}function Pe(pe,we){if(e._transitioningWithDuration)return!1;var Oe=Math.max(0,Math.min(w,G*pe+ie)),We=Math.max(0,Math.min(b,Y*we+ve)),Ie=Math.abs(Oe-ie),Ue=Math.abs(We-ve);K.l=Math.min(ie,Oe),K.r=Math.max(ie,Oe),K.t=Math.min(ve,We),K.b=Math.max(ve,We);function ar(){me="",K.r=K.l,K.t=K.b,Me.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ie>dn||Ue>dn?(me="xy",Ie/w>Ue/b?(Ue=Ie*b/w,ve>We?K.t=ve-Ue:K.b=ve+Ue):(Ie=Ue*w/b,ie>Oe?K.l=ie-Ie:K.r=ie+Ie),Me.attr("d",pm(K))):ar();else if(k.isSubplotConstrained)if(Ie>dn||Ue>dn){me="xy";var ir=Math.min(K.l/w,(b-K.b)/b),ur=Math.max(K.r/w,(b-K.t)/b);K.l=ir*w,K.r=ur*w,K.b=(1-ir)*b,K.t=(1-ur)*b,Me.attr("d",pm(K))}else ar();else!S||Ue<Math.min(Math.max(Ie*.6,tz),dn)?Ie<tz||!A?ar():(K.t=0,K.b=b,me="x",Me.attr("d",Ohe(K,ve))):!A||Ie<Math.min(Ue*.6,dn)?(K.l=0,K.r=w,me="y",Me.attr("d",Bhe(K,ie))):(me="xy",Me.attr("d",pm(K)));K.w=K.r-K.l,K.h=K.b-K.t,me&&(De=!0),e._dragged=De,hz(ce,Me,K,oe,be,he),Se(),e.emit("plotly_relayouting",O),be=!0}function Se(){O={},(me==="xy"||me==="x")&&(f4(m,K.l/w,K.r/w,O,M.xaxes),Ae("x",O)),(me==="xy"||me==="y")&&(f4(y,(b-K.b)/b,(b-K.t)/b,O,M.yaxes),Ae("y",O))}function ke(){Se(),c4(e),re(),mz(e)}var ze=[0,0,w,b],Ge=null,Ce=d4.REDRAWDELAY,$e=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function Ke(pe){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if($(),e._transitioningWithDuration){pe.preventDefault(),pe.stopPropagation();return}V(),clearTimeout(Ge);var we=-pe.deltaY;if(isFinite(we)||(we=pe.wheelDelta/10),!isFinite(we)){yi.log("Did not find wheel motion attributes: ",pe);return}e._fullLayout._replotting=!0;var Oe=Math.exp(-Math.min(Math.max(we,-20),20)/200),We=$e.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Ie=(pe.clientX-We.left)/We.width,Ue=(We.bottom-pe.clientY)/We.height,ar;function ir(ur,qe,Je){if(ur.fixedrange)return;var Fe=yi.simpleMap(ur.range,ur.r2l),hr=Fe[0]+(Fe[1]-Fe[0])*qe;function br(sr){return ur.l2r(hr+(sr-hr)*Je)}ur.range=Fe.map(br)}if(E){for(o||(Ie=.5),ar=0;ar<m.length;ar++)ir(m[ar],Ie,Oe);Ae("x"),ze[2]*=Oe,ze[0]+=ze[2]*Ie*(1/Oe-1)}if(R){for(l||(Ue=.5),ar=0;ar<y.length;ar++)ir(y[ar],Ue,Oe);Ae("y"),ze[3]*=Oe,ze[1]+=ze[3]*(1-Ue)*(1/Oe-1)}ye(ze),Re(),e.emit("plotly_relayouting",O),Ge=setTimeout(function(){e._fullLayout&&(ze=[0,0,w,b],re())},Ce),pe.preventDefault()}l.length*o.length!==1&&yz(Z,Ke);function Xe(pe,we){if(pe=pe*G,we=we*Y,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,A==="ew"||S==="ns"){var Oe=A?-pe:0,We=S?-we:0;if(k.isSubplotConstrained){if(A&&S){var Ie=(pe/w-we/b)/2;pe=Ie*w,we=-Ie*b,Oe=-pe,We=-we}S?Oe=-We*w/b:We=-Oe*b/w}A&&(iz(m,pe),Ae("x")),S&&(iz(y,we),Ae("y")),ye([Oe,We,w,b]),Re(),e.emit("plotly_relayouting",O);return}function Ue(br,sr,pr){for(var te=1-sr,de,Ne,Ye=0;Ye<br.length;Ye++){var Kr=br[Ye];if(!Kr.fixedrange){de=Kr,Ne=Kr._rl[te]+(Kr._rl[sr]-Kr._rl[te])/Ihe(pr/Kr._length);var ut=Kr.l2r(Ne);ut!==!1&&ut!==void 0&&(Kr.range[sr]=ut)}}return de._length*(de._rl[sr]-Ne)/(de._rl[sr]-de._rl[te])}var ar=A==="w"==(S==="n")?1:-1;if(A&&S&&(M.isSubplotConstrained||k.isSubplotConstrained)){var ir=(pe/w+ar*we/b)/2;pe=ir*w,we=ar*ir*b}var ur,qe;if(A==="w"?pe=Ue(m,0,pe):A==="e"?pe=Ue(m,1,-pe):A||(pe=0),S==="n"?we=Ue(y,1,we):S==="s"?we=Ue(y,0,-we):S||(we=0),ur=A==="w"?pe:0,qe=S==="n"?we:0,M.isSubplotConstrained&&!k.isSubplotConstrained||k.isSubplotConstrained&&A&&S&&ar>0){var Je;if(k.isSubplotConstrained||!A&&S.length===1){for(Je=0;Je<m.length;Je++)m[Je].range=m[Je]._r.slice(),o4(m[Je],1-we/b);pe=we*w/b,ur=pe/2}if(k.isSubplotConstrained||!S&&A.length===1){for(Je=0;Je<y.length;Je++)y[Je].range=y[Je]._r.slice(),o4(y[Je],1-pe/w);we=pe*b/w,qe=we/2}}(!k.isSubplotConstrained||!S)&&Ae("x"),(!k.isSubplotConstrained||!A)&&Ae("y");var Fe=w-pe,hr=b-we;k.isSubplotConstrained&&!(A&&S)&&(A?(qe=ur?0:pe*b/w,hr=Fe*b/w):(ur=qe?0:we*w/b,Fe=hr*w/b)),ye([ur,qe,Fe,hr]),Re(),e.emit("plotly_relayouting",O)}function Ae(pe,we){for(var Oe=k.isSubplotConstrained?{x:y,y:m}[pe]:k[pe+"axes"],We=k.isSubplotConstrained?{x:m,y}[pe]:[],Ie=0;Ie<Oe.length;Ie++){var Ue=Oe[Ie],ar=Ue._id,ir=k.xLinks[ar]||k.yLinks[ar],ur=We[0]||h[ir]||p[ir];ur&&(we?(we[Ue._name+".range[0]"]=we[ur._name+".range[0]"],we[Ue._name+".range[1]"]=we[ur._name+".range[1]"]):Ue.range=ur.range.slice())}}function Re(){var pe=[],we;function Oe(ar){for(we=0;we<ar.length;we++)ar[we].fixedrange||pe.push(ar[we]._id)}function We(ar,ir){for(we=0;we<ar.length;we++){var ur=ar[we],qe=ur[ir],Je=qe._id;!ur.fixedrange&&qe.tickmode==="sync"&&!pe.includes(Je)&&pe.push(Je)}}for(E&&(Oe(m),Oe(M.xaxes),Oe(k.xaxes),We(r.overlays,"xaxis")),R&&(Oe(y),Oe(M.yaxes),Oe(k.yaxes),We(r.overlays,"yaxis")),O={},we=0;we<pe.length;we++){var Ie=pe[we],Ue=u4(e,Ie);rz.drawOne(e,Ue,{skipTitle:!0}),O[Ue._name+".range[0]"]=Ue.range[0],O[Ue._name+".range[1]"]=Ue.range[1]}rz.redrawComponents(e,pe)}function Qe(){if(!e._transitioningWithDuration){var pe=e._context.doubleClick,we=[];A&&(we=we.concat(m)),S&&(we=we.concat(y)),k.xaxes&&(we=we.concat(k.xaxes)),k.yaxes&&(we=we.concat(k.yaxes));var Oe={},We,Ie;if(pe==="reset+autosize")for(pe="autosize",Ie=0;Ie<we.length;Ie++){We=we[Ie];var Ue=We._rangeInitial0,ar=We._rangeInitial1,ir=Ue!==void 0||ar!==void 0;if(ir&&(Ue!==void 0&&Ue!==We.range[0]||ar!==void 0&&ar!==We.range[1])||!ir&&We.autorange!==!0){pe="reset";break}}if(pe==="autosize")for(Ie=0;Ie<we.length;Ie++)We=we[Ie],We.fixedrange||(Oe[We._name+".autorange"]=!0);else if(pe==="reset"){for((A||M.isSubplotConstrained)&&(we=we.concat(M.xaxes)),S&&!M.isSubplotConstrained&&(we=we.concat(M.yaxes)),M.isSubplotConstrained&&(A?S||(we=we.concat(y)):we=we.concat(m)),Ie=0;Ie<we.length;Ie++)if(We=we[Ie],!We.fixedrange){var ur=We._name,qe=We._autorangeInitial;We._rangeInitial0===void 0&&We._rangeInitial1===void 0?Oe[ur+".autorange"]=!0:We._rangeInitial0===void 0?(Oe[ur+".autorange"]=qe,Oe[ur+".range"]=[null,We._rangeInitial1]):We._rangeInitial1===void 0?(Oe[ur+".range"]=[We._rangeInitial0,null],Oe[ur+".autorange"]=qe):Oe[ur+".range"]=[We._rangeInitial0,We._rangeInitial1]}}e.emit("plotly_doubleclick",null),dm.call("_guiRelayout",e,Oe)}}function re(){ye([0,0,w,b]),yi.syncOrAsync([Ehe.previousPromises,function(){e._fullLayout._replotting=!1,dm.call("_guiRelayout",e,O)}],e)}function ye(pe){var we=e._fullLayout,Oe=we._plots,We=we._subplots.cartesian,Ie,Ue,ar,ir;if(I&&dm.subplotsRegistry.splom.drag(e),N){for(Ie=0;Ie<We.length;Ie++)if(Ue=Oe[We[Ie]],ar=Ue.xaxis,ir=Ue.yaxis,Ue._scene){ar.limitRange&&ar.limitRange(),ir.limitRange&&ir.limitRange();var ur=yi.simpleMap(ar.range,ar.r2l),qe=yi.simpleMap(ir.range,ir.r2l);Ue._scene.update({range:[ur[0],qe[0],ur[1],qe[1]]})}}if((I||N)&&(qhe(e),Dhe(e)),H){var Je=pe[2]/c._length,Fe=pe[3]/v._length;for(Ie=0;Ie<We.length;Ie++){Ue=Oe[We[Ie]],ar=Ue.xaxis,ir=Ue.yaxis;var hr=(E||k.isSubplotConstrained)&&!ar.fixedrange&&h[ar._id],br=(R||k.isSubplotConstrained)&&!ir.fixedrange&&p[ir._id],sr,pr,te,de;if(hr?(sr=Je,te=o||k.isSubplotConstrained?pe[0]:Ee(ar,sr)):k.xaHash[ar._id]?(sr=Je,te=pe[0]*ar._length/c._length):k.yaHash[ar._id]?(sr=Fe,te=S==="ns"?-pe[1]*ar._length/v._length:Ee(ar,sr,{n:"top",s:"bottom"}[S])):(sr=Ve(ar,Je,Fe),te=dr(ar,sr)),sr>1&&(ar.maxallowed!==void 0&&E===(ar.range[0]<ar.range[1]?"e":"w")||ar.minallowed!==void 0&&E===(ar.range[0]<ar.range[1]?"w":"e"))&&(sr=1,te=0),br?(pr=Fe,de=l||k.isSubplotConstrained?pe[1]:Ee(ir,pr)):k.yaHash[ir._id]?(pr=Fe,de=pe[1]*ir._length/v._length):k.xaHash[ir._id]?(pr=Je,de=A==="ew"?-pe[0]*ir._length/c._length:Ee(ir,pr,{e:"right",w:"left"}[A])):(pr=Ve(ir,Je,Fe),de=dr(ir,pr)),pr>1&&(ir.maxallowed!==void 0&&R===(ir.range[0]<ir.range[1]?"n":"s")||ir.minallowed!==void 0&&R===(ir.range[0]<ir.range[1]?"s":"n"))&&(pr=1,de=0),!(!sr&&!pr)){sr||(sr=1),pr||(pr=1);var Ne=ar._offset-te/sr,Ye=ir._offset-de/pr;Ue.clipRect.call(Ho.setTranslate,te,de).call(Ho.setScale,sr,pr),Ue.plot.call(Ho.setTranslate,Ne,Ye).call(Ho.setScale,1/sr,1/pr),(sr!==Ue.xScaleFactor||pr!==Ue.yScaleFactor)&&(Ho.setPointGroupScale(Ue.zoomScalePts,sr,pr),Ho.setTextPointsScale(Ue.zoomScaleTxt,sr,pr)),Ho.hideOutsideRangePoints(Ue.clipOnAxisFalseTraces,Ue),Ue.xScaleFactor=sr,Ue.yScaleFactor=pr}}}}function Ve(pe,we,Oe){return pe.fixedrange?0:E&&M.xaHash[pe._id]?we:R&&(M.isSubplotConstrained?M.xaHash:M.yaHash)[pe._id]?Oe:0}function dr(pe,we){return we?(pe.range=pe._r.slice(),o4(pe,we),Ee(pe,we)):0}function Ee(pe,we,Oe){return pe._length*(1-we)*She[Oe||pe.constraintoward||"middle"]}return Z}function fz(e,r,t,a){var n=yi.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(khe,a),n.node()}function cz(e,r,t,a,n,i,l){var o=fz(e,"rect",r,t);return v4.select(o).call(Ho.setRect,a,n,i,l),o}function nz(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function Fhe(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,ez("."+n+"g")(Math.pow(10,t))):(n=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,ez("."+String(n)+"g")(t))}function f4(e,r,t,a,n){for(var i=0;i<e.length;i++){var l=e[i];if(!l.fixedrange)if(l.rangebreaks){var o=l._id.charAt(0)==="y",s=o?1-r:r,u=o?1-t:t;a[l._name+".range[0]"]=l.l2r(l.p2l(s*l._length)),a[l._name+".range[1]"]=l.l2r(l.p2l(u*l._length))}else{var f=l._rl[0],c=l._rl[1]-f;a[l._name+".range[0]"]=l.l2r(f+c*r),a[l._name+".range[1]"]=l.l2r(f+c*t)}}if(n&&n.length){var v=(r+(1-t))/2;f4(n,v,1-v,a,[])}}function iz(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,l=a.p2l(n+r)-a.p2l(n),o=a.p2l(i+r)-a.p2l(i),s=(l+o)/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 Ihe(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Hhe(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function vz(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",sz(t,a)).attr("d",n+"Z")}function dz(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:s4.background,stroke:s4.defaultLine,"stroke-width":1,opacity:0}).attr("transform",sz(r,t)).attr("d","M0,0Z")}function hz(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"),pz(e,r,n,i)}function pz(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 c4(e){v4.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function mz(e){az&&e.data&&e._context.showTips&&(yi.notifier(yi._(e,"Double-click to zoom back out"),"long",e),az=!1)}function Ohe(e,r){return"M"+(e.l-.5)+","+(r-dn-.5)+"h-3v"+(2*dn+1)+"h3ZM"+(e.r+.5)+","+(r-dn-.5)+"h3v"+(2*dn+1)+"h-3Z"}function Bhe(e,r){return"M"+(r-dn-.5)+","+(e.t-.5)+"v-3h"+(2*dn+1)+"v3ZM"+(r-dn-.5)+","+(e.b+.5)+"v3h"+(2*dn+1)+"v-3Z"}function pm(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,dn)/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 lz(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,c,v=(n||{}).xaHash,h=(n||{}).yaHash,p=0;p<r.length;p++){var m=r[p];for(s in t)if(m[s]){for(f in m)!(n&&(v[f]||h[f]))&&!(f.charAt(0)==="x"?t:a)[f]&&(l[f]=s);for(u in a)!(n&&(v[u]||h[u]))&&m[u]&&(i=!0)}for(u in a)if(m[u])for(c in m)!(n&&(v[c]||h[c]))&&!(c.charAt(0)==="x"?t:a)[c]&&(o[c]=u)}i&&(yi.extendFlat(l,o),o={});var y={},x=[];for(f in l){var _=u4(e,f);x.push(_),y[_._id]=_}var w={},b=[];for(c in o){var M=u4(e,c);b.push(M),w[M._id]=M}return{xaHash:y,yaHash:w,xaxes:x,yaxes:b,xLinks:l,yLinks:o,isSubplotConstrained:i}}function yz(e,r){if(!The)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 oz(e){var r=[];for(var t in e)r.push(e[t]);return r}gz.exports={makeDragBox:Nhe,makeDragger:fz,makeRectDragger:cz,makeZoombox:vz,makeCorners:dz,updateZoombox:hz,xyCorners:pm,transitionZoombox:pz,removeZoombox:c4,showDoubleClickNotifier:mz,attachWheelEventHandler:yz}});var h4=B(ym=>{"use strict";var Yhe=Dr(),mm=vi(),Ghe=Yi(),Uhe=Eo(),Vi=bz().makeDragBox,wa=ba().DRAGGERSIZE;ym.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Yhe.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=Vi(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&mm.hover(r,v,i)},mm.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,Ghe.unhover(r,v))},r._context.showAxisDragHandles&&(Vi(r,l,o._offset-wa,s._offset-wa,wa,wa,"n","w"),Vi(r,l,o._offset+o._length,s._offset-wa,wa,wa,"n","e"),Vi(r,l,o._offset-wa,s._offset+s._length,wa,wa,"s","w"),Vi(r,l,o._offset+o._length,s._offset+s._length,wa,wa,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=wa),Vi(r,l,o._offset+o._length*.1,f,o._length*.8,wa,"","ew"),Vi(r,l,o._offset,f,o._length*.1,wa,"","w"),Vi(r,l,o._offset+o._length*.9,f,o._length*.1,wa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=wa),Vi(r,l,c,s._offset+s._length*.1,wa,s._length*.8,"ns",""),Vi(r,l,c,s._offset+s._length*.9,wa,s._length*.1,"s",""),Vi(r,l,c,s._offset,wa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,mm.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,mm.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},ym.updateFx(r)}};ym.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Uhe(r._draggers,t)}});var wz=B((pTe,_z)=>{"use strict";var xz=Mr();_z.exports=function(r){for(var t=xz.layoutArrayContainers,a=xz.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o<a.length;o++)if(l=r.match(a[o]),l&&l.index===0){i=l[0];break}if(i||(i=t[t.indexOf(n)]),!i)return!1;var s=r.slice(i.length);return s?(l=s.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),l?{array:i,index:Number(l[1]),property:l[3]||""}:!1):{array:i,index:"",property:""}}});var Mz=B(Wv=>{"use strict";var Vhe=xs(),p4=n1(),Xv=vo(),Xhe=o5().sorterAsc,m4=Mr();Wv.containerArrayMatch=wz();var Whe=Wv.isAddVal=function(r){return r==="add"||Vhe(r)},Tz=Wv.isRemoveVal=function(r){return r===null||r==="remove"};Wv.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=m4.getComponentMethod(l,"supplyLayoutDefaults"),s=m4.getComponentMethod(l,"draw"),u=m4.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===p4||s===p4,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Xv.warn("Full array edits are incompatible with other edits",l);var h=a[""][""];if(Tz(h))t.set(null);else if(Array.isArray(h))t.set(h);else return Xv.warn("Unrecognized full array edit value",l,h),!0;return f?!1:(o(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(Xhe),m=t.get(),y=m||[],x=i(v,l).get(),_=[],w=-1,b=y.length,M,k,A,S,D,E,R,N;for(M=0;M<p.length;M++){if(A=p[M],S=a[A],D=Object.keys(S),E=S[""],R=Whe(E),A<0||A>y.length-(R?0:1)){Xv.warn("index out of range",l,A);continue}if(E!==void 0)D.length>1&&Xv.warn("Insertion & removal are incompatible with edits to the same index.",l,A),Tz(E)?_.push(A):R?(E==="add"&&(E={}),y.splice(A,0,E),x&&x.splice(A,0,{})):Xv.warn("Unrecognized full object edit value",l,A,E),w===-1&&(w=A);else for(k=0;k<D.length;k++)N=l+"["+A+"].",i(y[A],D[k],N).set(S[D[k]])}for(M=_.length-1;M>=0;M--)y.splice(_[M],1),x&&x.splice(_[M],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(o(c,v),u!==p4){var I;if(w===-1)I=p;else{for(b=Math.max(y.length,b),I=[],M=0;M<p.length&&(A=p[M],!(A>=w));M++)I.push(A);for(M=w;M<b;M++)I.push(M)}for(M=0;M<I.length;M++)u(r,I[M])}else s(r);return!0}});var Dz=B(gi=>{"use strict";var Lz=Br(),Sz=Mr(),ln=Le(),Zv=Gt(),qz=na(),Jv=qz.cleanId,Zhe=qz.getFromTrace,y4=Sz.traceIs,Jhe=["x","y","z"];gi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ln.log("Clearing previous rejected promises from queue."),e._promises=[]};gi.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=(Zv.subplotsRegistry.cartesian||{}).attrRegex,n=(Zv.subplotsRegistry.polar||{}).attrRegex,i=(Zv.subplotsRegistry.ternary||{}).attrRegex,l=(Zv.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r<o.length;r++){var s=o[r];if(a&&a.test(s)){var u=e[s];u.anchor&&u.anchor!=="free"&&(u.anchor=Jv(u.anchor)),u.overlaying&&(u.overlaying=Jv(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,gm(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];ln.isPlainObject(c)&&(oc(c,"xref"),oc(c,"yref"))}var v=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<v;r++){var h=e.shapes[r];ln.isPlainObject(h)&&(oc(h,"xref",!0),oc(h,"yref",!0))}var p=Array.isArray(e.images)?e.images.length:0;for(r=0;r<p;r++){var m=e.images[r];ln.isPlainObject(m)&&(oc(m,"xref"),oc(m,"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&&gi.cleanLayout(e.template.layout),e};function oc(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Jv(a,n,!0))}gi.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"&&gi.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=Jv(t.xaxis,"x")),t.yaxis&&(t.yaxis=Jv(t.yaxis,"y")),y4(t,"gl3d")&&t.scene&&(t.scene=Zv.subplotsRegistry.gl3d.cleanId(t.scene)),!y4(t,"pie-like")&&!y4(t,"bar-like"))if(Array.isArray(t.textposition))for(a=0;a<t.textposition.length;a++)t.textposition[a]=kz(t.textposition[a]);else t.textposition&&(t.textposition=kz(t.textposition));var n=Sz.getModule(t);if(n&&n.colorbar){var i=n.colorbar.container,l=i?t[i]:t;l&&l.colorscale&&(l.colorscale==="YIGnBu"&&(l.colorscale="YlGnBu"),l.colorscale==="YIOrRd"&&(l.colorscale="YlOrRd"))}if(t.type==="surface"&&ln.isPlainObject(t.contours)){var o=["x","y","z"];for(a=0;a<o.length;a++){var s=t.contours[o[a]];ln.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=Az(t.increasing),v=Az(t.decreasing);if(c!==!1&&v!==!1){var h=$he(c,v,u,f);h&&(t.name=h)}else(c||v)&&!t.name&&(t.name=c||v)}gm(t,"line")&&delete t.line,"marker"in t&&(gm(t.marker,"line")&&delete t.marker.line,gm(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function Az(e){if(!ln.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function $he(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 l=e.slice(0,i);return l.trim()}function kz(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 gm(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}gi.swapXYData=function(e){var r;if(ln.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);ln.swapAttrs(e,["error_?.copy_ystyle"]),a&&ln.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("+")}};gi.coerceTraceIndices=function(e,r){if(Lz(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++)ln.isIndex(r[a],e.data.length)?t.push(r[a]):ln.warn("trace index (",r[a],") is not a number or is out of bounds");return t}return r};gi.manageArrayContainers=function(e,r,t){var a=e.obj,n=e.parts,i=n.length,l=n[i-1],o=Lz(l);if(o&&r===null){var s=n.slice(0,i-1).join("."),u=ln.nestedProperty(a,s).get();u.splice(l,1)}else o&&e.get()===void 0&&e.get()===void 0&&(t[e.astr]=null),e.set(r)};var Khe=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function Cz(e){var r=e.search(Khe);if(r>0)return e.slice(0,r)}gi.hasParent=function(e,r){for(var t=Cz(r);t;){if(t in e)return!0;t=Cz(t)}return!1};gi.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 l=Zhe(e,n,Jhe[i]);if(l&&l.type!=="log"){var o=l._name,s=l._id.slice(1);if(s.slice(0,5)==="scene"){if(t[s]!==void 0)continue;o=s+"."+o}var u=o+".type";t[o]===void 0&&t[u]===void 0&&ln.nestedProperty(e.layout,u).set(null)}}};var g4=(e,r)=>{let t=(...a)=>a.every(n=>ln.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)?g4(n,i):!1))return!1}return!0}else if([e,r].every(a=>ln.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)?g4(n,i):!1))return!1}return!0}return!1};gi.collectionsAreEqual=g4});var M4=B(Xr=>{"use strict";var _m=Dr(),Qhe=Br(),jhe=w5(),tr=Le(),yt=tr.nestedProperty,_4=J0(),hn=hC(),bi=Mr(),Lm=Ef(),Lr=Gt(),on=Jr(),e1e=Bb(),r1e=Bn(),b4=Vr(),t1e=Ar(),a1e=h4().initInteractions,n1e=Hs(),i1e=lc().clearOutline,Nz=co().dfltConfig,bm=Mz(),ra=Dz(),it=em(),Oo=Ri(),l1e=ba().AX_NAME_PATTERN,x4=0,Ez=5;function o1e(e,r,t,a){var n;if(e=tr.getGraphDiv(e),_4.init(e),tr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=_4.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!tr.isPlotDiv(e)&&tr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Xr.addFrames(e,n)}Iz(e,a),t||(t={}),_m.select(e).classed("js-plotly-plot",!0),b4.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(ra.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=ra.cleanLayout(t)),Lr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(q1e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),b4.initGradients(e),b4.initPatterns(e),s&&on.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Lr.doCalcdata(e);for(var v=0;v<e.calcdata.length;v++)e.calcdata[v][0].trace=e._fullData[v];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){tr.isHidden(e)||Lr.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):tr.clearResponsive(e);var h=tr.extendFlat({},u._size),p=0;function m(){for(var A=u._basePlotModules,S=0;S<A.length;S++)A[S].drawFramework&&A[S].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(N){return N.key}),u._glcanvas.enter().append("canvas").attr("class",function(N){return"gl-canvas gl-canvas-"+N.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var D=e._context.plotGlPixelRatio;if(u._glcanvas){u._glcanvas.attr("width",u.width*D).attr("height",u.height*D).style("width",u.width+"px").style("height",u.height+"px");var E=u._glcanvas.data()[0].regl;if(E&&(Math.floor(u.width*D)!==E._gl.drawingBufferWidth||Math.floor(u.height*D)!==E._gl.drawingBufferHeight)){var R="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(p)tr.error(R);else return tr.log(R+" Clearing graph and plotting again."),Lr.cleanPlot([],{},e._fullData,u),Lr.supplyDefaults(e),u=e._fullLayout,Lr.doCalcdata(e),p++,m()}}return u.modebar.orientation==="h"?u._modebardiv.style("height",null).style("width","100%"):u._modebardiv.style("width",null).style("height",u.height+"px"),Lr.previousPromises(e)}function y(){if(Lr.clearAutoMarginIds(e),it.drawMarginPushers(e),on.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&Lr.allowAutoMargin(e,"title.automargin"),u._has("pie"))for(var A=e._fullData,S=0;S<A.length;S++){var D=A[S];D.type==="pie"&&D.automargin&&Lr.allowAutoMargin(e,"pie."+D.uid+".automargin")}return Lr.doAutoMargin(e),Lr.previousPromises(e)}function x(){if(Lr.didMarginChange(h,u._size))return tr.syncOrAsync([y,it.layoutStyles],e)}function _(){if(!c){w();return}return tr.syncOrAsync([bi.getComponentMethod("shapes","calcAutorange"),bi.getComponentMethod("annotations","calcAutorange"),w],e)}function w(){e._transitioning||(it.doAutoRangeAndConstraints(e),s&&on.saveRangeInitial(e),bi.getComponentMethod("rangeslider","calcAutorange")(e))}function b(){return on.draw(e,s?"":"redraw")}var M=[Lr.previousPromises,o,m,y,x];f&&M.push(_),M.push(it.layoutStyles),f&&M.push(b,function(S){var D=S._fullLayout._insideTickLabelsUpdaterange;if(D)return S._fullLayout._insideTickLabelsUpdaterange=void 0,$v(S,D).then(function(){on.saveRangeInitial(S,!0)})}),M.push(it.drawData,it.finalDraw,a1e,Lr.rehover,Lr.redrag,Lr.reselect,Lr.doAutoMargin,Lr.previousPromises);var k=tr.syncOrAsync(M,e);return(!k||!k.then)&&(k=Promise.resolve()),k.then(function(){return Kv(e),e})}function Kv(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function s1e(e){return tr.extendFlat(Nz,e)}function Fz(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){tr.error(t)}}function u1e(e,r){var t=t1e.combine(r,"white");Fz(e,t)}function Iz(e,r){if(!e._context){e._context=tr.extendDeep({},Nz);var t=_m.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,l;if(r){for(i=Object.keys(r),n=0;n<i.length;n++)l=i[n],!(l==="editable"||l==="edits")&&l in a&&(l==="setBackground"&&r[l]==="opaque"?a[l]=u1e:a[l]=r[l]);var o=r.editable;if(o!==void 0)for(a.editable=o,i=Object.keys(a.edits),n=0;n<i.length;n++)a.edits[i[n]]=o;if(r.edits)for(i=Object.keys(r.edits),n=0;n<i.length;n++)l=i[n],l in a.edits&&(a.edits[l]=r.edits[l]);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"&&!jhe&&(a.displayModeBar=!0),(a.setBackground==="transparent"||typeof a.setBackground!="function")&&(a.setBackground=Fz),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 f1e(e){if(e=tr.getGraphDiv(e),!tr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return ra.cleanData(e.data),ra.cleanLayout(e.layout),e.calcdata=void 0,Xr._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function c1e(e,r,t,a){return e=tr.getGraphDiv(e),Lr.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),Lr.purge(e),Xr._doPlot(e,r,t,a)}function wm(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 Tm(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 Hz(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]),Tm(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Tm(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function v1e(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 d1e(e,r,t,a){var n=tr.isPlainObject(a);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!tr.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");Tm(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 h1e(e,r,t,a){var n=tr.isPlainObject(a),i=[],l,o,s,u,f;Array.isArray(t)||(t=[t]),t=wm(t,e.data.length-1);for(var c in r)for(var v=0;v<t.length;v++){if(l=e.data[t[v]],s=yt(l,c),o=s.get(),u=r[c][v],!tr.isArrayOrTypedArray(u))throw new Error("attribute: "+c+" index: "+v+" must be an array");if(!tr.isArrayOrTypedArray(o))throw new Error("cannot extend missing or non-array attribute: "+c);if(o.constructor!==u.constructor)throw new Error("cannot extend array with an array of a different type: "+c);f=n?a[c][v]:a,Qhe(f)||(f=-1),i.push({prop:s,target:o,insert:u,maxp:Math.floor(f)})}return i}function Oz(e,r,t,a,n){d1e(e,r,t,a);for(var i=h1e(e,r,t,a),l={},o={},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(l[u.astr])||(l[u.astr]=[]),l[u.astr].push(c[1]),Array.isArray(o[u.astr])||(o[u.astr]=[]),o[u.astr].push(i[s].target.length)}return{update:l,maxPoints:o}}function Bz(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function Yz(e,r,t,a){e=tr.getGraphDiv(e);function n(s,u,f){var c,v;if(tr.isTypedArray(s))if(f<0){var h=new s.constructor(0),p=Bz(s,u);f<0?(c=p,v=h):(c=h,v=p)}else if(c=new s.constructor(f),v=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),v.set(s);else if(f<u.length){var m=u.length-f;c.set(u.subarray(m)),v.set(s),v.set(u.subarray(0,m),s.length)}else{var y=f-u.length,x=s.length-y;c.set(s.subarray(x)),c.set(u,y),v.set(s.subarray(0,x))}else c=s.concat(u),v=f>=0&&f<c.length?c.splice(0,c.length-f):[];return[c,v]}var i=Oz(e,r,t,a,n),l=Xr.redraw(e),o=[e,i.update,t,i.maxPoints];return hn.add(e,Xr.prependTraces,o,Yz,arguments),l}function Gz(e,r,t,a){e=tr.getGraphDiv(e);function n(s,u,f){var c,v;if(tr.isTypedArray(s))if(f<=0){var h=new s.constructor(0),p=Bz(u,s);f<0?(c=p,v=h):(c=h,v=p)}else if(c=new s.constructor(f),v=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),v.set(s);else if(f<u.length){var m=u.length-f;c.set(u.subarray(0,m)),v.set(u.subarray(m)),v.set(s,m)}else{var y=f-u.length;c.set(u),c.set(s.subarray(0,y),u.length),v.set(s.subarray(y))}else c=u.concat(s),v=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,v]}var i=Oz(e,r,t,a,n),l=Xr.redraw(e),o=[e,i.update,t,i.maxPoints];return hn.add(e,Xr.extendTraces,o,Gz,arguments),l}function Uz(e,r,t){e=tr.getGraphDiv(e);var a=[],n=Xr.deleteTraces,i=Uz,l=[e,a],o=[e,r],s,u;for(v1e(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return tr.extendFlat({},f)}),ra.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=Xr.redraw(e),hn.add(e,n,l,i,o),u;Array.isArray(t)||(t=[t]);try{Hz(e,a,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return hn.startSequence(e),hn.add(e,n,l,i,o),u=Xr.moveTraces(e,a,t),hn.stopSequence(e),u}function Vz(e,r){e=tr.getGraphDiv(e);var t=[],a=Xr.addTraces,n=Vz,i=[e,t,r],l=[e,r],o,s;if(typeof r=="undefined")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),Tm(e,r,"indices"),r=wm(r,e.data.length-1),r.sort(tr.sorterDes),o=0;o<r.length;o+=1)s=e.data.splice(r[o],1)[0],t.push(s);var u=Xr.redraw(e);return hn.add(e,a,i,n,l),u}function w4(e,r,t){e=tr.getGraphDiv(e);var a=[],n=[],i=w4,l=w4,o=[e,t,r],s=[e,r,t],u;if(Hz(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=wm(r,e.data.length-1),t=wm(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,v){return c.newIndex-v.newIndex}),u=0;u<n.length;u+=1)a.splice(n[u].newIndex,0,n[u].trace);e.data=a;var f=Xr.redraw(e);return hn.add(e,i,o,l,s),f}function Mm(e,r,t,a){e=tr.getGraphDiv(e),ra.clearPromiseQueue(e);var n={};if(typeof r=="string")n[r]=t;else if(tr.isPlainObject(r))n=tr.extendFlat({},r),a===void 0&&(a=t);else return tr.warn("Restyle fail.",r,t,a),Promise.reject();Object.keys(n).length&&(e.changed=!0);var i=ra.coerceTraceIndices(e,a),l=Xz(e,n,i),o=l.flags;o.calc&&(e.calcdata=void 0),o.clearAxisTypes&&ra.clearAxisTypes(e,i,{});var s=[];o.fullReplot?s.push(Xr._doPlot):(s.push(Lr.previousPromises),Lr.supplyDefaults(e),o.markerSize&&(Lr.doCalcdata(e),Sm(s)),o.style&&s.push(it.doTraceStyle),o.colorbars&&s.push(it.doColorBars),s.push(Kv)),s.push(Lr.rehover,Lr.redrag,Lr.reselect),hn.add(e,Mm,[e,l.undoit,l.traces],Mm,[e,l.redoit,l.traces]);var u=tr.syncOrAsync(s,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e.emit("plotly_restyle",l.eventData),e})}function Vl(e){return e===void 0?null:e}function xm(e,r){return r?function(t,a,n){var i=yt(t,a),l=i.set;return i.set=function(o){var s=(n||"")+a;Am(s,i.get(),o,e),l(o)},i}:yt}function Am(e,r,t,a){if(Array.isArray(r)||Array.isArray(t))for(var n=Array.isArray(r)?r:[],i=Array.isArray(t)?t:[],l=Math.max(n.length,i.length),o=0;o<l;o++)Am(e+"["+o+"]",n[o],i[o],a);else if(tr.isPlainObject(r)||tr.isPlainObject(t)){var s=tr.isPlainObject(r)?r:{},u=tr.isPlainObject(t)?t:{},f=tr.extendFlat({},s,u);for(var c in f)Am(e+"."+c,s[c],u[c],a)}else a[e]===void 0&&(a[e]=Vl(r))}function p1e(e,r,t){for(var a in t){var n=yt(e,a);Am(a,n.get(),t[a],r)}}function Xz(e,r,t){var a=e._fullLayout,n=e._fullData,i=e.data,l=a._guiEditing,o=xm(a._preGUI,l),s=tr.extendDeepAll({},r),u,f=Oo.traceFlags(),c={},v={},h;function p(){return t.map(function(){})}function m(ce){var Me=on.id2name(ce);h.indexOf(Me)===-1&&h.push(Me)}function y(ce){return"LAYOUT"+ce+".autorange"}function x(ce){return"LAYOUT"+ce+".range"}function _(ce,Me,De){if(Array.isArray(ce)){ce.forEach(function(ke){_(ke,Me,De)});return}if(!(ce in r||ra.hasParent(r,ce))){var Te;if(ce.slice(0,6)==="LAYOUT")Te=o(e.layout,ce.replace("LAYOUT",""));else{var Pe=t[De],Se=a._tracePreGUI[n[Pe].uid];Te=xm(Se,l)(i[Pe],ce)}ce in v||(v[ce]=p()),v[ce][De]===void 0&&(v[ce][De]=Vl(Te.get())),Me!==void 0&&Te.set(Me)}}function w(ce){return function(Me){return n[Me][ce]}}function b(ce){return function(Me,De){return Me===!1?n[t[De]][ce]:null}}for(var M in r){if(ra.hasParent(r,M))throw new Error("cannot set "+M+" and a parent attribute simultaneously");var k=r[M],A,S,D,E,R,N;if((M==="autobinx"||M==="autobiny")&&(M=M.charAt(M.length-1)+"bins",Array.isArray(k)?k=k.map(b(M)):k===!1?k=t.map(w(M)):k=null),c[M]=k,M.slice(0,6)==="LAYOUT"){D=o(e.layout,M.replace("LAYOUT","")),v[M]=[Vl(D.get())],D.set(Array.isArray(k)?k[0]:k),f.calc=!0;continue}for(v[M]=p(),u=0;u<t.length;u++){A=i[t[u]],S=n[t[u]];var I=a._tracePreGUI[S.uid];if(D=xm(I,l)(A,M),E=D.get(),R=Array.isArray(k)?k[u%k.length]:k,R!==void 0){var H=D.parts[D.parts.length-1],O=M.slice(0,M.length-H.length-1),G=O?O+".":"",Y=O?yt(S,O).get():S;if(N=Lm.getTraceValObject(S,D.parts),N&&N.impliedEdits&&R!==null)for(var V in N.impliedEdits)_(tr.relativeAttr(M,V),N.impliedEdits[V],u);else if((H==="thicknessmode"||H==="lenmode")&&E!==R&&(R==="fraction"||R==="pixels")&&Y){var U=a._size,Z=Y.orient,X=Z==="top"||Z==="bottom";if(H==="thicknessmode"){var $=X?U.h:U.w;_(G+"thickness",Y.thickness*(R==="fraction"?1/$:$),u)}else{var ae=X?U.w:U.h;_(G+"len",Y.len*(R==="fraction"?1/ae:ae),u)}}else if(M==="type"&&(R==="pie"!=(E==="pie")||R==="funnelarea"!=(E==="funnelarea"))){var ie="x",ve="y";(R==="bar"||E==="bar")&&A.orientation==="h"&&(ie="y",ve="x"),tr.swapAttrs(A,["?"],"labels",ie),tr.swapAttrs(A,["d?","?0"],"label",ie),tr.swapAttrs(A,["?"],"values",ve),E==="pie"||E==="funnelarea"?(yt(A,"marker.color").set(yt(A,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):bi.traceIs(A,"cartesian")&&yt(A,"marker.colors").set(yt(A,"marker.color").get())}v[M][u]=Vl(E);var K=["swapxy","swapxyaxes","orientation","orientationaxes"];if(K.indexOf(M)!==-1){if(M==="orientation"){D.set(R);var he=A.x&&!A.y?"h":"v";if((D.get()||he)===S.orientation)continue}else M==="orientationaxes"&&(A.orientation={v:"h",h:"v"}[S.orientation]);ra.swapXYData(A),f.calc=f.clearAxisTypes=!0}else Lr.dataArrayContainers.indexOf(D.parts[0])!==-1?(ra.manageArrayContainers(D,R,v),f.calc=!0):(N?N.arrayOk&&!bi.traceIs(S,"regl")&&(tr.isArrayOrTypedArray(R)||tr.isArrayOrTypedArray(E))?f.calc=!0:Oo.update(f,N):f.calc=!0,D.set(R))}}if(["swapxyaxes","orientationaxes"].indexOf(M)!==-1&&on.swap(e,t),M==="orientationaxes"){var oe=yt(e.layout,"hovermode"),be=oe.get();be==="x"?oe.set("y"):be==="y"?oe.set("x"):be==="x unified"?oe.set("y unified"):be==="y unified"&&oe.set("x unified")}if(["orientation","type"].indexOf(M)!==-1){for(h=[],u=0;u<t.length;u++){var me=i[t[u]];bi.traceIs(me,"cartesian")&&(m(me.xaxis||"x"),m(me.yaxis||"y"))}_(h.map(y),!0,0),_(h.map(x),[0,1],0)}}return(f.calc||f.plot)&&(f.fullReplot=!0),{flags:f,undoit:v,redoit:c,traces:t,eventData:tr.extendDeepNoArrays([],[s,t])}}function $v(e,r,t){e=tr.getGraphDiv(e),ra.clearPromiseQueue(e);var a={};if(typeof r=="string")a[r]=t;else if(tr.isPlainObject(r))a=tr.extendFlat({},r);else return tr.warn("Relayout fail.",r,t),Promise.reject();Object.keys(a).length&&(e.changed=!0);var n=$z(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var l=[Lr.previousPromises];i.layoutReplot?l.push(it.layoutReplot):Object.keys(a).length&&(Wz(e,i,n)||Lr.supplyDefaults(e),i.legend&&l.push(it.doLegend),i.layoutstyle&&l.push(it.layoutStyles),i.axrange&&Sm(l,n.rangesAltered),i.ticks&&l.push(it.doTicksRelayout),i.modebar&&l.push(it.doModeBar),i.camera&&l.push(it.doCamera),i.colorbars&&l.push(it.doColorBars),l.push(Kv)),l.push(Lr.rehover,Lr.redrag,Lr.reselect),hn.add(e,$v,[e,n.undoit],$v,[e,n.redoit]);var o=tr.syncOrAsync(l,e);return(!o||!o.then)&&(o=Promise.resolve(e)),o.then(function(){return e.emit("plotly_relayout",n.eventData),e})}function Wz(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,l,o=function(h,p){return tr.coerce(i,l,r1e,h,p)},s={};for(var u in t.rangesAltered){var f=on.id2name(u);if(i=e.layout[f],l=a[f],e1e(i,l,o,s),l._matchGroup){for(var c in l._matchGroup)if(c!==u){var v=a[on.id2name(c)];v.autorange=l.autorange,v.range=l.range.slice(),v._input.range=l.range.slice()}}}return!0}function Sm(e,r){var t=r?function(a){var n=[],i=!0;for(var l in r){var o=on.getFromId(a,l);if(n.push(l),(o.ticklabelposition||"").indexOf("inside")!==-1&&o._anchorAxis&&n.push(o._anchorAxis._id),o._matchGroup)for(var s in o._matchGroup)r[s]||n.push(s)}return on.draw(a,n,{skipTitle:i})}:function(a){return on.draw(a,"redraw")};e.push(i1e,it.doAutoRangeAndConstraints,t,it.drawData,it.finalDraw)}var Zz=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Jz=/^[xyz]axis[0-9]*\.autorange$/,m1e=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function $z(e,r){var t=e.layout,a=e._fullLayout,n=a._guiEditing,i=xm(a._preGUI,n),l=Object.keys(r),o=on.list(e),s=tr.extendDeepAll({},r),u={},f,c,v;for(l=Object.keys(r),c=0;c<l.length;c++)if(l[c].indexOf("allaxes")===0){for(v=0;v<o.length;v++){var h=o[v]._id.slice(1),p=h.indexOf("scene")!==-1?h+".":"",m=l[c].replace("allaxes",p+o[v]._name);r[m]||(r[m]=r[l[c]])}delete r[l[c]]}var y=Oo.layoutFlags(),x={},_={};function w(ke,ze){if(Array.isArray(ke)){ke.forEach(function(Ce){w(Ce,ze)});return}if(!(ke in r||ra.hasParent(r,ke))){var Ge=i(t,ke);ke in _||(_[ke]=Vl(Ge.get())),ze!==void 0&&Ge.set(ze)}}var b={},M;function k(ke){var ze=on.name2id(ke.split(".")[0]);return b[ze]=1,ze}for(var A in r){if(ra.hasParent(r,A))throw new Error("cannot set "+A+" and a parent attribute simultaneously");for(var S=i(t,A),D=r[A],E=S.parts.length,R=E-1;R>0&&typeof S.parts[R]!="string";)R--;var N=S.parts[R],I=S.parts[R-1]+"."+N,H=S.parts.slice(0,R).join("."),O=yt(e.layout,H).get(),G=yt(a,H).get(),Y=S.get();if(D!==void 0){x[A]=D,_[A]=N==="reverse"?D:Vl(Y);var V=Lm.getLayoutValObject(a,S.parts);if(V&&V.impliedEdits&&D!==null)for(var U in V.impliedEdits)w(tr.relativeAttr(A,U),V.impliedEdits[U]);if(["width","height"].indexOf(A)!==-1)if(D){w("autosize",null);var Z=A==="height"?"width":"height";w(Z,a[Z])}else a[A]=e._initialAutoSize[A];else if(A==="autosize")w("width",D?null:a.width),w("height",D?null:a.height);else if(I.match(Zz))k(I),yt(a,H+"._inputRange").set(null);else if(I.match(Jz)){k(I),yt(a,H+"._inputRange").set(null);var X=yt(a,H).get();X._inputDomain&&(X._input.domain=X._inputDomain.slice())}else I.match(m1e)&&yt(a,H+"._inputDomain").set(null);if(N==="type"){M=O;var $=G.type==="linear"&&D==="log",ae=G.type==="log"&&D==="linear";if($||ae){if(!M||!M.range)w(H+".autorange",!0);else if(G.autorange)$&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var ie=M.range[0],ve=M.range[1];$?(ie<=0&&ve<=0&&w(H+".autorange",!0),ie<=0?ie=ve/1e6:ve<=0&&(ve=ie/1e6),w(H+".range[0]",Math.log(ie)/Math.LN10),w(H+".range[1]",Math.log(ve)/Math.LN10)):(w(H+".range[0]",Math.pow(10,ie)),w(H+".range[1]",Math.pow(10,ve)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],bi.getComponentMethod("annotations","convertCoords")(e,G,D,w),bi.getComponentMethod("images","convertCoords")(e,G,D,w)}else w(H+".autorange",!0),w(H+".range",null);yt(a,H+"._inputRange").set(null)}else if(N.match(l1e)){var K=yt(a,A).get(),he=(D||{}).type;(!he||he==="-")&&(he="linear"),bi.getComponentMethod("annotations","convertCoords")(e,K,he,w),bi.getComponentMethod("images","convertCoords")(e,K,he,w)}var oe=bm.containerArrayMatch(A);if(oe){f=oe.array,c=oe.index;var be=oe.property,me=V||{editType:"calc"};c!==""&&be===""&&(bm.isAddVal(D)?_[A]=null:bm.isRemoveVal(D)?_[A]=(yt(t,f).get()||[])[c]:tr.warn("unrecognized full object value",r)),Oo.update(y,me),u[f]||(u[f]={});var ce=u[f][c];ce||(ce=u[f][c]={}),ce[be]=D,delete r[A]}else N==="reverse"?(O.range?O.range.reverse():(w(H+".autorange",!0),O.range=[1,0]),G.autorange?y.calc=!0:y.plot=!0):(A==="dragmode"&&(D===!1&&Y!==!1||D!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&A==="dragmode"&&(D==="lasso"||D==="select")&&!(Y==="lasso"||Y==="select")?y.plot=!0:V?Oo.update(y,V):y.calc=!0,S.set(D))}}for(f in u){var Me=bm.applyContainerArrayChanges(e,i(t,f),u[f],y,i);Me||(y.plot=!0)}for(var De in b){M=on.getFromId(e,De);var Te=M&&M._constraintGroup;if(Te){y.calc=!0;for(var Pe in Te)b[Pe]||(on.getFromId(e,Pe)._constraintShrinkable=!0)}}(Kz(e)||r.height||r.width)&&(y.plot=!0);var Se=a.shapes;for(c=0;c<Se.length;c++)if(Se[c].showlegend){y.calc=!0;break}return(y.plot||y.calc)&&(y.layoutReplot=!0),{flags:y,rangesAltered:b,undoit:_,redoit:x,eventData:s}}function Kz(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&Lr.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function km(e,r,t,a){e=tr.getGraphDiv(e),ra.clearPromiseQueue(e),tr.isPlainObject(r)||(r={}),tr.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=ra.coerceTraceIndices(e,a),i=Xz(e,tr.extendFlat({},r),n),l=i.flags,o=$z(e,tr.extendFlat({},t)),s=o.flags;(l.calc||s.calc)&&(e.calcdata=void 0),l.clearAxisTypes&&ra.clearAxisTypes(e,n,t);var u=[];s.layoutReplot?u.push(it.layoutReplot):l.fullReplot?u.push(Xr._doPlot):(u.push(Lr.previousPromises),Wz(e,s,o)||Lr.supplyDefaults(e),l.style&&u.push(it.doTraceStyle),(l.colorbars||s.colorbars)&&u.push(it.doColorBars),s.legend&&u.push(it.doLegend),s.layoutstyle&&u.push(it.layoutStyles),s.axrange&&Sm(u,o.rangesAltered),s.ticks&&u.push(it.doTicksRelayout),s.modebar&&u.push(it.doModeBar),s.camera&&u.push(it.doCamera),u.push(Kv)),u.push(Lr.rehover,Lr.redrag,Lr.reselect),hn.add(e,km,[e,i.undoit,o.undoit,i.traces],km,[e,i.redoit,o.redoit,i.traces]);var f=tr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve(e)),f.then(function(){return e.emit("plotly_update",{data:i.eventData,layout:o.eventData}),e})}function T4(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var y1e=[{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"}],g1e=[{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 Pz(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 Rz(e,r){var t=yt(r,e).get();if(t!==void 0)return t;var a=e.split(".");for(a.pop();a.length>1;)if(a.pop(),t=yt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function b1e(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function x1e(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 zz(e,r){var t=tr.isPlainObject(e),a=Array.isArray(e);return t||a?(t&&tr.isPlainObject(r)||a&&Array.isArray(r))&&JSON.stringify(e)===JSON.stringify(r):e===r}function _1e(e,r,t,a){var n=a._preGUI,i,l,o,s,u,f,c,v,h,p,m=[],y={},x={};for(i in n){if(u=Pz(i,y1e),u){if(h=u.head,p=u.tail,l=u.attr||h+".uirevision",o=yt(a,l).get(),s=o&&Rz(l,r),s&&s===o){if(f=n[i],f===null&&(f=void 0),c=yt(r,i),v=c.get(),zz(v,f)){v===void 0&&p==="autorange"&&m.push(h),c.set(Vl(yt(a,i).get()));continue}else if(p==="autorange"||p.slice(0,6)==="range["){var _=n[h+".range[0]"],w=n[h+".range[1]"],b=n[h+".autorange"];if(b||b===null&&_===null&&w===null){if(!(h in y)){var M=yt(r,h).get();y[h]=M&&(M.autorange||M.autorange!==!1&&(!M.range||M.range.length!==2))}if(y[h]){c.set(Vl(yt(a,i).get()));continue}}}}}else tr.warn("unrecognized GUI edit: "+i);delete n[i],u&&u.tail.slice(0,6)==="range["&&(x[u.head]=1)}for(var k=0;k<m.length;k++){var A=m[k];if(x[A]){var S=yt(r,A).get();S&&delete S.autorange}}var D=a._tracePreGUI;for(var E in D){var R=D[E],N=null,I;for(i in R){if(!N){var H=b1e(E,t);if(H<0){delete D[E];break}I=t[H];var O=x1e(E,e,I.index);if(O<0){delete D[E];break}N=e[O]}if(u=Pz(i,g1e),u){if(u.attr?(o=yt(a,u.attr).get(),s=o&&Rz(u.attr,r)):(o=I.uirevision,s=N.uirevision,s===void 0&&(s=r.uirevision)),s&&s===o&&(f=R[i],f===null&&(f=void 0),c=yt(N,i),v=c.get(),zz(v,f))){c.set(Vl(yt(I,i).get()));continue}}else tr.warn("unrecognized GUI edit: "+i+" in trace uid "+E);delete R[i]}}}function w1e(e,r,t,a){var n,i;function l(){return Xr.addFrames(e,n)}e=tr.getGraphDiv(e),ra.clearPromiseQueue(e);var o=e._fullData,s=e._fullLayout;if(!tr.isPlotDiv(e)||!o||!s)i=Xr.newPlot(e,r,t,a);else{if(tr.isPlainObject(r)){var u=r;r=u.data,t=u.layout,a=u.config,n=u.frames}var f=!1;if(a){let I=tr.extendDeepAll({},e._context);e._context=void 0,Iz(e,a),f=!ra.collectionsAreEqual(I,e._context)}if(f){let I=e._ev.eventNames().map(H=>[H,e._ev.listeners(H)]);i=Xr.newPlot(e,r,t,a).then(()=>{for(let[H,O]of I)O.forEach(G=>e.on(H,G));return Xr.react(e,r,t,a)})}else{e.data=r||[],ra.cleanData(e.data),e.layout=t||{},ra.cleanLayout(e.layout),_1e(e.data,e.layout,o,s),Lr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,h=v.datarevision===void 0,p=v.transition,m=M1e(e,s,v,h,p),y=m.newDataRevision,x=T1e(e,o,c,h,p,y);if(Kz(e)&&(m.layoutReplot=!0),x.calc||m.calc){e.calcdata=void 0;for(var _=Object.getOwnPropertyNames(v),w=0;w<_.length;w++){var b=_[w],M=b.substring(0,5);if(M==="xaxis"||M==="yaxis"){var k=v[b]._emptyCategories;k&&k()}}}else Lr.supplyDefaultsUpdateCalc(e.calcdata,c);var A=[];if(n&&(e._transitionData={},Lr.createTransitionData(e),A.push(l)),v.transition&&(x.anim||m.anim))m.ticks&&A.push(it.doTicksRelayout),Lr.doCalcdata(e),it.doAutoRangeAndConstraints(e),A.push(function(){return Lr.transitionFromReact(e,x,m,s)});else if(x.fullReplot||m.layoutReplot)e._fullLayout._skipDefaults=!0,A.push(Xr._doPlot);else{for(var S in m.arrays){var D=m.arrays[S];if(D.length){var E=bi.getComponentMethod(S,"drawOne");if(E!==tr.noop)for(var R=0;R<D.length;R++)E(e,D[R]);else{var N=bi.getComponentMethod(S,"draw");if(N===tr.noop)throw new Error("cannot draw components: "+S);N(e)}}}A.push(Lr.previousPromises),x.style&&A.push(it.doTraceStyle),(x.colorbars||m.colorbars)&&A.push(it.doColorBars),m.legend&&A.push(it.doLegend),m.layoutstyle&&A.push(it.layoutStyles),m.axrange&&Sm(A),m.ticks&&A.push(it.doTicksRelayout),m.modebar&&A.push(it.doModeBar),m.camera&&A.push(it.doCamera),A.push(Kv)}A.push(Lr.rehover,Lr.redrag,Lr.reselect),i=tr.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 T1e(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=Oo.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(h){var p=Lm.getTraceValObject(u,h);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s<r.length;s++)if(t[s]){if(u=t[s],v[u.uid])continue;v[u.uid]=1,Cm(r[s],u,[],c)}return(o.calc||o.plot)&&(o.fullReplot=!0),n&&o.nChanges&&o.nChangesAnim&&(o.anim=o.nChanges===o.nChangesAnim&&l?"all":"some"),o}function M1e(e,r,t,a,n){var i=Oo.layoutFlags();i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0;function l(v){return Lm.getLayoutValObject(t,v)}for(var o in t)if(!(!o.startsWith("xaxis")&&!o.startsWith("yaxis"))&&r[o]){var s=t[o].domain,u=r[o].domain,f=r[o]._inputDomain;r[o]._inputDomain&&(s[0]===f[0]&&s[1]===f[1]?t[o].domain=r[o].domain:(s[0]!==u[0]||s[1]!==u[1])&&(t[o]._inputDomain=null))}var c={getValObject:l,flags:i,immutable:a,transition:n,gd:e};return Cm(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 Cm(e,r,t,a){var n,i,l,o=a.getValObject,s=a.flags,u=a.immutable,f=a.inArray,c=a.arrayIndex;function v(){var H=n.editType;if(f&&H.indexOf("arraydraw")!==-1){tr.pushUnique(s.arrays[f],c);return}Oo.update(s,n),H!=="none"&&s.nChanges++,a.transition&&n.anim&&s.nChangesAnim++,(Zz.test(l)||Jz.test(l))&&(s.rangesAltered[t[0]]=1),i==="datarevision"&&(s.newDataRevision=1)}function h(H){return H.valType==="data_array"||H.arrayOk}for(i in e){if(s.calc&&!a.transition)return;var p=e[i],m=r[i],y=t.concat(i);if(l=y.join("."),!(i.charAt(0)==="_"||typeof p=="function"||p===m)){if((i==="tick0"||i==="dtick")&&t[0]!=="geo"){var x=r.tickmode;if(x==="auto"||x==="array"||!x)continue}if(!(i==="range"&&r.autorange)&&!((i==="zmin"||i==="zmax")&&r.type==="contourcarpet")&&(n=o(y),!!n&&!(n._compareAsJSON&&JSON.stringify(p)===JSON.stringify(m)))){var _=n.valType,w,b=h(n),M=Array.isArray(p),k=Array.isArray(m);if(M&&k){var A="_input_"+i,S=e[A],D=r[A];if(Array.isArray(S)&&S===D)continue}if(m===void 0)b&&M?s.calc=!0:v();else if(n._isLinkedToArray){var E=[],R=!1;f||(s.arrays[i]=E);var N=Math.min(p.length,m.length),I=Math.max(p.length,m.length);if(N!==I)if(n.editType==="arraydraw")R=!0;else{v();continue}for(w=0;w<N;w++)Cm(p[w],m[w],y.concat(w),tr.extendFlat({inArray:i,arrayIndex:w},a));if(R)for(w=N;w<I;w++)E.push(w)}else!_&&tr.isPlainObject(p)?Cm(p,m,y,a):b?M&&k?(u&&(s.calc=!0),(u||a.newDataRevision)&&v()):M!==k?s.calc=!0:v():M&&k?(p.length!==m.length||String(p)!==String(m))&&v():v()}}}for(i in r)if(!(i in e||i.charAt(0)==="_"||typeof r[i]=="function"))if(n=o(t.concat(i)),h(n)&&Array.isArray(r[i])){s.calc=!0;return}else v()}function A1e(e,r,t){if(e=tr.getGraphDiv(e),!tr.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=Lr.supplyAnimationDefaults(t);var n=t.transition,i=t.frame;a._frameWaitingCnt===void 0&&(a._frameWaitingCnt=0);function l(u){return Array.isArray(n)?u>=n.length?n[0]:n[u]:n}function o(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 N=a._frameQueue.pop();N.onInterrupt&&N.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(N){if(N.length!==0){for(var I=0;I<N.length;I++){var H;N[I].type==="byname"?H=Lr.computeFrame(e,N[I].name):H=N[I].data;var O=o(I),G=l(I);G.duration=Math.min(G.duration,O.duration);var Y={frame:H,name:N[I].name,frameOpts:O,transitionOpts:G};I===N.length-1&&(Y.onComplete=s(u,2),Y.onInterrupt=f),a._frameQueue.push(Y)}t.mode==="immediate"&&(a._lastFrameAt=-1/0),a._animationRaf||m()}}function h(){e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function p(){a._currentFrame&&a._currentFrame.onComplete&&a._currentFrame.onComplete();var N=a._currentFrame=a._frameQueue.shift();if(N){var I=N.name?N.name.toString():null;e._fullLayout._currentFrame=I,a._lastFrameAt=Date.now(),a._timeToNext=N.frameOpts.duration,Lr.transition(e,N.frame.data,N.frame.layout,ra.coerceTraceIndices(e,N.frame.traces),N.frameOpts,N.transitionOpts).then(function(){N.onComplete&&N.onComplete()}),e.emit("plotly_animatingframe",{name:I,frame:N.frame,animation:{frame:N.frameOpts,transition:N.transitionOpts}})}else h()}function m(){e.emit("plotly_animating"),a._lastFrameAt=-1/0,a._timeToNext=0,a._runningTransitions=0,a._currentFrame=null;var N=function(){a._animationRaf=window.requestAnimationFrame(N),Date.now()-a._lastFrameAt>a._timeToNext&&p()};N()}var y=0;function x(N){return Array.isArray(n)?y>=n.length?N.transitionOpts=n[y]:N.transitionOpts=n[0]:N.transitionOpts=n,y++,N}var _,w,b=[],M=r==null,k=Array.isArray(r),A=!M&&!k&&tr.isPlainObject(r);if(A)b.push({type:"object",data:x(tr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(_=0;_<a._frames.length;_++)w=a._frames[_],w&&(M||String(w.group)===String(r))&&b.push({type:"byname",name:String(w.name),data:x({name:w.name})});else if(k)for(_=0;_<r.length;_++){var S=r[_];["number","string"].indexOf(typeof S)!==-1?(S=String(S),b.push({type:"byname",name:S,data:x({name:S})})):tr.isPlainObject(S)&&b.push({type:"object",data:x(tr.extendFlat({},S))})}for(_=0;_<b.length;_++)if(w=b[_],w.type==="byname"&&!a._frameHash[w.data.name]){tr.warn('animate failure: frame not found: "'+w.data.name+'"'),f();return}["next","immediate"].indexOf(t.mode)!==-1&&c(),t.direction==="reverse"&&b.reverse();var D=e._fullLayout._currentFrame;if(D&&t.fromcurrent){var E=-1;for(_=0;_<b.length;_++)if(w=b[_],w.type==="byname"&&w.name===D){E=_;break}if(E>0&&E<b.length-1){var R=[];for(_=0;_<b.length;_++)w=b[_],(b[_].type!=="byname"||_>E)&&R.push(w);b=R}}b.length>0?v(b):(e.emit("plotly_animated"),u())})}function k1e(e,r,t){if(e=tr.getGraphDiv(e),r==null)return Promise.resolve();if(!tr.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,l,o=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=o.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(tr.isPlainObject(r[a])){var v=r[a].name,h=(s[v]||c[v]||{}).name,p=r[a].name,m=s[h]||c[h];h&&p&&typeof p=="number"&&m&&x4<Ez&&(x4++,tr.warn('addFrames: overwriting frame "'+(s[h]||c[h]).name+'" with a frame whose name of type "number" also equates to "'+h+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),x4===Ez&&tr.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[v]={name:v},f.push({frame:Lr.supplyFrameDefaults(r[a]),index:t&&t[a]!==void 0&&t[a]!==null?t[a]:u+a})}f.sort(function(A,S){return A.index>S.index?-1:A.index<S.index?1:0});var y=[],x=[],_=o.length;for(a=f.length-1;a>=0;a--){if(n=f[a].frame,typeof n.name=="number"&&tr.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<o.length&&(o[i]||{}).name!==n.name;i++);y.push({type:"replace",index:i,value:n}),x.unshift({type:"replace",index:i,value:o[i]})}else l=Math.max(0,Math.min(f[a].index,_)),y.push({type:"insert",index:l,value:n}),x.unshift({type:"delete",index:l}),_++}var w=Lr.modifyFrames,b=Lr.modifyFrames,M=[e,x],k=[e,y];return hn&&hn.add(e,w,M,b,k),Lr.modifyFrames(e,y)}function C1e(e,r){if(e=tr.getGraphDiv(e),!tr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var t,a,n=e._transitionData._frames,i=[],l=[];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}),l.unshift({type:"insert",index:a,value:n[a]});var o=Lr.modifyFrames,s=Lr.modifyFrames,u=[e,l],f=[e,i];return hn&&hn.add(e,o,u,s,f),Lr.modifyFrames(e,i)}function L1e(e){e=tr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Lr.cleanPlot([],{},t,r),Lr.purge(e),_4.purge(e),r._container&&r._container.remove(),delete e._context,e}function S1e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!tr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=tr.inverseTransformMatrix(tr.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 q1e(e){var r=_m.select(e),t=e._fullLayout;if(t._calcInverseTransform=S1e,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={};_m.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=tr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(n1e.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")}Xr.animate=A1e;Xr.addFrames=k1e;Xr.deleteFrames=C1e;Xr.addTraces=Uz;Xr.deleteTraces=Vz;Xr.extendTraces=Yz;Xr.moveTraces=w4;Xr.prependTraces=Gz;Xr.newPlot=c1e;Xr._doPlot=o1e;Xr.purge=L1e;Xr.react=w1e;Xr.redraw=f1e;Xr.relayout=$v;Xr.restyle=Mm;Xr.setPlotConfig=s1e;Xr.update=km;Xr._guiRelayout=T4($v);Xr._guiRestyle=T4(Mm);Xr._guiUpdate=T4(km);Xr._storeDirectGUIEdit=p1e});var ou=B(xi=>{"use strict";var D1e=Mr();xi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};xi.getRedrawFunc=function(e){return function(){D1e.getComponentMethod("colorbar","draw")(e)}};xi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};xi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var Qz=window.URL||window.webkitURL;xi.createObjectURL=function(e){return Qz.createObjectURL(e)};xi.revokeObjectURL=function(e){return Qz.revokeObjectURL(e)};xi.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=E1e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};xi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};xi.getPlotTitle=function(e){var a,n,i,l;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(l=(i=e.layout)==null?void 0:i.title)==null?void 0:l.text};xi.getPlotSubtitle=function(e){var a,n,i,l,o,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=(o=(l=e.layout)==null?void 0:l.title)==null?void 0:o.subtitle)==null?void 0:s.text};function E1e(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}xi.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var qm=B((wTe,jz)=>{"use strict";var k4=Dr(),xTe=Le(),P1e=Vr(),R1e=Ar(),_Te=Hs(),A4=/"/g,su="TOBESTRIPPED",z1e=new RegExp(`("${su})|(${su}")|("${su})|(${su}")`,"g"),N1e=["&","&","&",""",""",""","'","'","'"],F1e=["<","<","<"],I1e=[">",">",">"];function H1e(e){let r=k4.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return N1e.includes(n)?a:F1e.includes(n)?"<":I1e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function O1e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}jz.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(P1e.setRect,0,0,o,s).call(R1e.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(l){var v=l.node().childNodes,h=Array.prototype.slice.call(v);for(u=0;u<h.length;u++){var p=h[u];p.childNodes.length&&i.node().appendChild(p)}}n._draggers&&n._draggers.remove(),i.node().style.background="",i.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var y=k4.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){y.remove();return}else y.style({visibility:null,display:null});var x=this.style.fontFamily;x&&x.indexOf('"')!==-1&&y.style("font-family",x.replace(A4,su));var _=this.style.fontWeight;_&&(_==="normal"||_==="400")&&y.style("font-weight",void 0);var w=this.style.fontStyle;w&&w==="normal"&&y.style("font-style",void 0);var b=this.style.fontVariant;b&&b==="normal"&&y.style("font-variant",void 0)}),i.selectAll(".gradient_filled,.pattern_filled").each(function(){var y=k4.select(this),x=this.style.fill;x&&x.indexOf("url(")!==-1&&y.style("fill",x.replace(A4,su));var _=this.style.stroke;_&&_.indexOf("url(")!==-1&&y.style("stroke",_.replace(A4,su))}),(t==="pdf"||t==="eps")&&i.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),t==="svg"&&a&&(i.attr("width",a*o),i.attr("height",a*s),i.attr("viewBox","0 0 "+o+" "+s));var m=new window.XMLSerializer().serializeToString(i.node());return m=H1e(m),m=O1e(m),m=m.replace(z1e,"'"),m}});var Dm=B((TTe,eN)=>{"use strict";var B1e=Le(),Y1e=A1().EventEmitter,Qv=ou();function G1e(e){var r=e.emitter||new Y1e,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,h=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,x;o==="svg"||B1e.isSafari()?x=Qv.encodeSVG(l):(y=Qv.createBlob(l,"svg"),x=Qv.createObjectURL(y)),s.width=v,s.height=h,m.onload=function(){var _;switch(y=null,Qv.revokeObjectURL(x),o!=="svg"&&p.drawImage(m,0,0,v,h),o){case"jpeg":_=s.toDataURL("image/jpeg");break;case"png":_=s.toDataURL("image/png");break;case"webp":_=s.toDataURL("image/webp");break;case"svg":_=x;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(_),e.promise||r.emit("success",_)},m.onerror=function(_){if(y=null,Qv.revokeObjectURL(x),n(_),!e.promise)return r.emit("error",_)},m.src=x});return e.promise?t:r}eN.exports=G1e});var L4=B((MTe,aN)=>{"use strict";var rN=Br(),tN=M4(),U1e=Gt(),Tl=Le(),jv=ou(),V1e=qm(),X1e=Dm(),W1e=y0().version,C4={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Z1e(e,r){r=r||{};var t,a,n,i;Tl.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Tl.getGraphDiv(e),t=Tl.extendDeep([],e.data),a=Tl.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(k){return!(k in r)||Tl.validate(r[k],C4[k])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Tl.join2(C4.format.values,", "," or ")+".");var o={};function s(k,A){return Tl.coerce(r,o,C4,k,A)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),h=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=Tl.extendFlat({},a);f?y.width=f:r.width===null&&rN(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&rN(i.height)&&(y.height=i.height);var x=Tl.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:h}),_=jv.getRedrawFunc(m);function w(){return new Promise(function(k){setTimeout(k,jv.getDelay(m._fullLayout))})}function b(){return new Promise(function(k,A){var S=V1e(m,u,v),D=m._fullLayout.width,E=m._fullLayout.height;function R(){tN.purge(m),document.body.removeChild(m)}if(u==="full-json"){var N=U1e.graphJson(m,!1,"object",!0,!0);return N.version=W1e,N=JSON.stringify(N),R(),k(p?N:jv.encodeJSON(N))}if(R(),u==="svg")return k(p?S:jv.encodeSVG(S));var I=document.createElement("canvas");I.id=Tl.randstr(),X1e({format:u,width:D,height:E,scale:v,canvas:I,svg:S,promise:!0}).then(k).catch(A)})}function M(k){return p?k.replace(jv.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,A){tN.newPlot(m,t,y,x).then(_).then(w).then(b).then(function(S){k(M(S))}).catch(function(S){A(S)})})}aN.exports=Z1e});var lN=B((ATe,iN)=>{"use strict";var _i=Le(),J1e=Gt(),$1e=Ef(),K1e=co().dfltConfig,Xi=_i.isPlainObject,fu=Array.isArray,S4=_i.isArrayOrTypedArray;iN.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=$1e.get(),n=[],i={_context:_i.extendFlat({},K1e)},l,o;fu(r)?(i.data=_i.extendDeep([],r),l=r):(i.data=[],l=[],n.push(Ta("array","data"))),Xi(t)?(i.layout=_i.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(Ta("object","layout"))),J1e.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;f<u;f++){var c=l[f],v=["data",f];if(!Xi(c)){n.push(Ta("object",v));continue}var h=s[f],p=h.type,m=a.traces[p].attributes;m.type={valType:"enumerated",values:[p]},h.visible===!1&&c.visible!==!1&&n.push(Ta("invisible",v)),Em(c,h,m,n,v)}var y=i._fullLayout,x=Q1e(a,s);return Em(o,y,x,n,"layout"),n.length===0?void 0:n};function Em(e,r,t,a,n,i){i=i||[];for(var l=Object.keys(e),o=0;o<l.length;o++){var s=l[o],u=i.slice();u.push(s);var f=e[s],c=r[s],v=rpe(t,s),h=(v||{}).valType,p=h==="info_array",m=h==="colorscale",y=(v||{}).items;if(!epe(t,s))a.push(Ta("schema",n,u));else if(Xi(f)&&Xi(c)&&h!=="any")Em(f,c,v,a,n,u);else if(p&&fu(f)){f.length>c.length&&a.push(Ta("unused",n,u.concat(c.length)));var x=c.length,_=Array.isArray(y);_&&(x=Math.min(x,y.length));var w,b,M,k,A;if(v.dimensions===2)for(b=0;b<x;b++)if(fu(f[b])){f[b].length>c[b].length&&a.push(Ta("unused",n,u.concat(b,c[b].length)));var S=c[b].length;for(w=0;w<(_?Math.min(S,y[b].length):S);w++)M=_?y[b][w]:y,k=f[b][w],A=c[b][w],_i.validate(k,M)?A!==k&&A!==+k&&a.push(Ta("dynamic",n,u.concat(b,w),k,A)):a.push(Ta("value",n,u.concat(b,w),k))}else a.push(Ta("array",n,u.concat(b),f[b]));else for(b=0;b<x;b++)M=_?y[b]:y,k=f[b],A=c[b],_i.validate(k,M)?A!==k&&A!==+k&&a.push(Ta("dynamic",n,u.concat(b),k,A)):a.push(Ta("value",n,u.concat(b),k))}else if(v.items&&!p&&fu(f)){var D=y[Object.keys(y)[0]],E=[],R,N;for(R=0;R<c.length;R++){var I=c[R]._index||R;if(N=u.slice(),N.push(I),Xi(f[I])&&Xi(c[R])){E.push(I);var H=f[I],O=c[R];Xi(H)&&H.visible!==!1&&O.visible===!1?a.push(Ta("invisible",n,N)):Em(H,O,D,a,n,N)}}for(R=0;R<f.length;R++)N=u.slice(),N.push(R),Xi(f[R])?E.indexOf(R)===-1&&a.push(Ta("unused",n,N)):a.push(Ta("object",n,N,f[R]))}else!Xi(f)&&Xi(c)?a.push(Ta("object",n,u,f)):!S4(f)&&S4(c)&&!p&&!m?a.push(Ta("array",n,u,f)):s in r?_i.validate(f,v)?v.valType==="enumerated"&&(v.coerceNumber&&f!==+c||!S4(f)&&f!==c||String(f)!==String(c))&&a.push(Ta("dynamic",n,u,f,c)):a.push(Ta("value",n,u,f)):a.push(Ta("unused",n,u,f))}return a}function Q1e(e,r){for(var t=e.layout.layoutAttributes,a=0;a<r.length;a++){var n=r[a],i=e.traces[n.type],l=i.layoutAttributes;l&&(n.subplot?_i.extendFlat(t[i.attributes.subplot.dflt],l):_i.extendFlat(t,l))}return t}var j1e={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=uu(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=uu(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return uu(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var a=Xi(t)?"container":"key";return uu(e)+a+" "+r+" did not get coerced"},dynamic:function(e,r,t,a){return[uu(e)+"key",r,"(set to '"+t+"')","got reset to","'"+a+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?uu(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[uu(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function uu(e){return fu(e)?"In data trace "+e[1]+", ":"In "+e+", "}function Ta(e,r,t,a,n){t=t||"";var i,l;fu(r)?(i=r[0],l=r[1]):(i=r,l=null);var o=ape(t),s=j1e[e](r,o,a,n);return _i.log(s),{code:e,container:i,trace:l,path:t,astr:o,msg:s}}function epe(e,r){var t=nN(r),a=t.keyMinusId,n=t.id;return a in e&&e[a]._isSubplotObj&&n?!0:r in e}function rpe(e,r){if(r in e)return e[r];var t=nN(r);return e[t.keyMinusId]}var tpe=_i.counterRegex("([a-z]+)");function nN(e){var r=e.match(tpe);return{keyMinusId:r&&r[1],id:r&&r[2]}}function ape(e){if(!fu(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 sN=B((kTe,oN)=>{"use strict";var npe=Le(),Pm=ou();function ipe(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=Pm.createBlob(e,t),u=Pm.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Pm.revokeObjectURL(u),s=null,l(r);if(npe.isSafari()){var f=t==="svg"?",":";base64,";return Pm.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}oN.exports=ipe});var q4=B((CTe,vN)=>{"use strict";var Rm=Le(),uN=da(),lpe=L4(),ope=sN(),fN=ou(),cN=40;function spe(e,r){var t;return Rm.isPlainObject(e)||(t=Rm.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=lpe(e,r),l=r.filename||e.fn;if(!l){let s=fN.getPlotTitle(e);if(s&&!uN.matchTex(s))l=Rm.slugify(s,cN);else{let u=fN.getPlotSubtitle(e);u&&!uN.matchTex(u)&&(l=Rm.slugify(u,cN))}}var o=l||"plot-image";o+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),ope(s,o,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}vN.exports=spe});var yN=B(D4=>{"use strict";var Ln=Le(),Sn=Ln.isPlainObject,dN=Ef(),hN=Gt(),upe=xn(),pN=vt(),mN=co().dfltConfig;D4.makeTemplate=function(e){e=Ln.isPlainObject(e)?e:Ln.getGraphDiv(e),e=Ln.extendDeep({_context:mN},{data:e.data,layout:e.layout}),hN.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(h){var p={};ed(h,p,cpe.bind(null,h));var m=Ln.coerce(h,{},upe,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),ed(t,a.layout,fpe.bind(null,t)),delete a.layout.template;var n=t.template;if(Sn(n)){var i=n.layout,l,o,s,u,f,c;Sn(i)&&zm(i,a.layout);var v=n.data;if(Sn(v)){for(o in a.data)if(s=v[o],Array.isArray(s)){for(f=a.data[o],c=f.length,u=s.length,l=0;l<c;l++)zm(s[l%u],f[l]);for(l=c;l<u;l++)f.push(Ln.extendDeep({},s[l]))}for(o in v)o in a.data||(a.data[o]=Ln.extendDeep([],v[o]))}}return a};function zm(e,r){e=Ln.extendDeep({},e);var t=Object.keys(e).sort(),a,n;function i(f,c,v){if(Sn(c)&&Sn(f))zm(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var h=pN.arrayTemplater({_template:e},v);for(n=0;n<c.length;n++){var p=c[n],m=h.newItem(p)._template;m&&zm(m,p)}var y=h.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 l=t[a],o=e[l];if(l in r?i(o,r[l],l):r[l]=o,Nm(l)===l)for(var s in r){var u=Nm(s);s!==u&&u===l&&!(s in e)&&i(o,r[s],l)}}}function Nm(e){return e.replace(/[0-9]+$/,"")}function ed(e,r,t,a,n){var i=n&&t(n);for(var l in e){var o=e[l],s=wi(e,l,a),u=wi(e,l,n),f=t(u);if(!f){var c=Nm(l);c!==l&&(u=wi(e,c,n),f=t(u))}if(!(i&&i===f)&&!(!f||f._noTemplating||f.valType==="data_array"||f.arrayOk&&Array.isArray(o)))if(!f.valType&&Sn(o))ed(o,r,t,s,u);else if(f._isLinkedToArray&&Array.isArray(o))for(var v=!1,h=0,p={},m=0;m<o.length;m++){var y=o[m];if(Sn(y)){var x=y.name;if(x)p[x]||(ed(y,r,t,wi(o,h,s),wi(o,h,u)),h++,p[x]=1);else if(!v){var _=pN.arrayDefaultKey(l),w=wi(e,_,a),b=wi(o,h,s);ed(y,r,t,b,wi(o,h,u));var M=Ln.nestedProperty(r,b),k=Ln.nestedProperty(r,w);k.set(M.get()),M.set(null),v=!0}}}else{var A=Ln.nestedProperty(r,s);A.set(o)}}}function fpe(e,r){return dN.getLayoutValObject(e,Ln.nestedProperty({},r).parts)}function cpe(e,r){return dN.getTraceValObject(e,Ln.nestedProperty({},r).parts)}function wi(e,r,t){var a;return t?Array.isArray(e)?a=t+"["+r+"]":a=t+"."+r:a=r,a}D4.validateTemplate=function(e,r){var t=Ln.extendDeep({},{_context:mN,data:e.data,layout:e.layout}),a=t.layout||{};Sn(r)||(r=a.template||{});var n=r.layout,i=r.data,l=[];t.layout=a,t.layout.template=r,hN.supplyDefaults(t);var o=t._fullLayout,s=t._fullData,u={};function f(w,b){for(var M in w)if(M.charAt(0)!=="_"&&Sn(w[M])){var k=Nm(M),A=[],S;for(S=0;S<b.length;S++)A.push(wi(w,M,b[S])),k!==M&&A.push(wi(w,k,b[S]));for(S=0;S<A.length;S++)u[A[S]]=1;f(w[M],A)}}function c(w,b){for(var M in w)if(M.indexOf("defaults")===-1&&Sn(w[M])){var k=wi(w,M,b);u[k]?c(w[M],k):l.push({code:"unused",path:k})}}if(Sn(n)?(f(o,["layout"]),c(n,"layout")):l.push({code:"layout"}),!Sn(i))l.push({code:"data"});else{for(var v={},h,p=0;p<s.length;p++){var m=s[p];h=m.type,v[h]=(v[h]||0)+1,m._template||l.push({code:"missing",index:m.index,traceType:h})}for(h in i){var y=i[h].length,x=v[h]||0;y>x?l.push({code:"unused",traceType:h,templateCount:y,dataCount:x}):x>y&&l.push({code:"reused",traceType:h,templateCount:y,dataCount:x})}}function _(w,b){for(var M in w)if(M.charAt(0)!=="_"){var k=w[M],A=wi(w,M,b);Sn(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&l.push({code:"missing",path:A,templateitemname:k.templateitemname}),_(k,A)):Array.isArray(k)&&vpe(k)&&_(k,A)}}if(_({data:s,layout:o},""),l.length)return l.map(dpe)};function vpe(e){for(var r=0;r<e.length;r++)if(Sn(e[r]))return!0}function dpe(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 bN=B(Lt=>{"use strict";var pa=M4();Lt._doPlot=pa._doPlot;Lt.newPlot=pa.newPlot;Lt.restyle=pa.restyle;Lt.relayout=pa.relayout;Lt.redraw=pa.redraw;Lt.update=pa.update;Lt._guiRestyle=pa._guiRestyle;Lt._guiRelayout=pa._guiRelayout;Lt._guiUpdate=pa._guiUpdate;Lt._storeDirectGUIEdit=pa._storeDirectGUIEdit;Lt.react=pa.react;Lt.extendTraces=pa.extendTraces;Lt.prependTraces=pa.prependTraces;Lt.addTraces=pa.addTraces;Lt.deleteTraces=pa.deleteTraces;Lt.moveTraces=pa.moveTraces;Lt.purge=pa.purge;Lt.addFrames=pa.addFrames;Lt.deleteFrames=pa.deleteFrames;Lt.animate=pa.animate;Lt.setPlotConfig=pa.setPlotConfig;var hpe=B0().getGraphDiv,ppe=Xp().eraseActiveShape;Lt.deleteActiveShape=function(e){return ppe(hpe(e))};Lt.toImage=L4();Lt.validate=lN();Lt.downloadImage=q4();var gN=yN();Lt.makeTemplate=gN.makeTemplate;Lt.validateTemplate=gN.validateTemplate});var rd=B((qTe,xN)=>{"use strict";var E4=Le(),mpe=Mr();xN.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=mpe.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=E4.minRowLength(i);l?o=Math.min(u,E4.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=E4.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var cu=B((DTe,TN)=>{"use strict";var _N=Le().dateTick0,ype=Dt(),gpe=ype.ONEWEEK;function wN(e,r){return e%gpe===0?_N(r,1):_N(r,0)}TN.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",wN(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",wN(o,t.ycalendar)),n("yperiodalignment"))}}});var kN=B((ETe,AN)=>{"use strict";var MN=["orientation","groupnorm","stackgaps"];AN.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v<MN.length;v++){var h=MN[v],p=h+"Found";if(!u[p]){var m=r[h]!==void 0,y=h==="orientation";if((m||f)&&(u[h]=n(h,c[h]),y&&(u.fillDflt=u[h]==="h"?"tonextx":"tonexty"),m&&(u[p]=!0,!f&&(delete u.traces[0][h],y))))for(var x=0;x<u.traces.length-1;x++){var _=u.traces[x];_._input.fill!==_.fill&&(_.fill=u.fillDflt)}}}return u}}});var DN=B((PTe,qN)=>{"use strict";var CN=Ar(),LN=On().hasColorscale,SN=Nf(),bpe=Yn();qN.exports=function(r,t,a,n,i,l={}){var o=bpe.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),LN(r,"marker")&&SN(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=CN.background:u=CN.defaultLine,i("marker.line.color",u),LN(r,"marker.line")&&SN(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0),l.noLineDash||i("marker.line.dash")),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var PN=B((RTe,EN)=>{"use strict";var xpe=Le().isArrayOrTypedArray,_pe=On().hasColorscale,wpe=Nf();EN.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),_pe(r,"line"))wpe(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(xpe(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var zN=B((zTe,RN)=>{"use strict";RN.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var FN=B((NTe,NN)=>{"use strict";var Tpe=Le();NN.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Tpe.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var ON=B((FTe,HN)=>{"use strict";var Fm=Ar(),IN=Le().isArrayOrTypedArray;function Mpe(e){for(var r=Fm.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var a=Fm.interpolate(e[t-1][1],e[t][1],.5);r=Fm.interpolate(r,a,e[t-1][0]/e[t][0])}return r}HN.exports=function(r,t,a,n,i){i||(i={});var l=!1;if(t.marker){var o=t.marker.color,s=(t.marker.line||{}).color;o&&!IN(o)?l=o:s&&!IN(s)&&(l=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=Mpe(c))}}n("fillcolor",Fm.addOpacity((t.line||{}).color||l||u||a,.5))}});var UN=B((ITe,GN)=>{"use strict";var BN=Le(),Ape=Mr(),kpe=Ui(),Cpe=fm(),sc=Yn(),Lpe=rd(),Spe=cu(),qpe=kN(),Dpe=DN(),Epe=PN(),YN=zN(),Ppe=FN(),Rpe=ON(),zpe=Le().coercePattern;GN.exports=function(r,t,a,n){function i(h,p){return BN.coerce(r,t,kpe,h,p)}var l=Lpe(r,t,n,i);if(l||(t.visible=!1),!!t.visible){Spe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=qpe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l<Cpe.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",s),sc.hasMarkers(t)&&Dpe(r,t,a,n,i,{gradient:!0}),sc.hasLines(t)&&(Epe(r,t,a,n,i,{backoff:!0}),YN(r,t,i),i("connectgaps"),i("line.simplify")),sc.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),Ppe(r,t,n,i));var u=[];(sc.hasMarkers(t)||sc.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),u.push("points")),i("fill",o?o.fillDflt:"none"),t.fill!=="none"&&(Rpe(r,t,a,i,{moduleHasFillgradient:!0}),sc.hasLines(t)||YN(r,t,i),zpe(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 v=Ape.getComponentMethod("errorbars","supplyDefaults");v(r,t,f||c||a,{axis:"y"}),v(r,t,f||c||a,{axis:"x",inherit:"y"}),BN.coerceSelectionMarkerOpacity(t,i)}}});var uc=B((HTe,VN)=>{"use strict";var Npe=lu().getAxisGroup;VN.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=Npe(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var h=n("offsetgroup")||"",p=v.offsetGroups,m=p[h];t._offsetIndex=0,(i!=="group"||h)&&(m||(m=p[h]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var WN=B((OTe,XN)=>{"use strict";var Fpe=Le(),Ipe=uc(),Hpe=Ui();XN.exports=function(r,t){var a,n,i,l=t.scattermode;function o(v){return Fpe.coerce(n._input,n,Hpe,v)}if(t.scattermode==="group")for(i=0;i<r.length;i++)n=r[i],n.type==="scatter"&&(a=n._input,Ipe(a,n,t,o,l));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 JN=B((BTe,ZN)=>{"use strict";var Ope=Le(),Bpe=q1();ZN.exports=function(e,r){function t(n,i){return Ope.coerce(e,r,Bpe,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var vu=B((YTe,KN)=>{"use strict";var Ype=Br(),$N=Le(),Gpe=$N.dateTime2ms,Im=$N.incrementMonth,Upe=Dt(),Vpe=Upe.ONEAVGMONTH;KN.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(Ype(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],h=Gpe(v,u)||0,p=[],m=[],y=[],x=n.length,_=0;_<x;_++){var w=n[_],b,M,k;if(o){for(b=Math.round((w-h)/(o*Vpe)),k=Im(h,o*b,u);k>w;)k=Im(k,-o,u);for(;k<=w;)k=Im(k,o,u);M=Im(k,-o,u)}else{for(b=Math.round((w-h)/l),k=h+b*l;k>w;)k-=l;for(;k<=w;)k+=l;M=k-l}p[_]=f?M:c?k:(M+k)/2,m[_]=M,y[_]=k}return{vals:p,starts:m,ends:y}}});var eF=B((GTe,jN)=>{"use strict";var P4=On().hasColorscale,R4=tv(),QN=Yn();jN.exports=function(r,t){QN.hasLines(t)&&P4(t,"line")&&R4(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),QN.hasMarkers(t)&&(P4(t,"marker")&&R4(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),P4(t,"marker.line")&&R4(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var z4=B((UTe,rF)=>{"use strict";var Ht=Le();rF.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;Ht.mergeArray(t.text,r,"tx"),Ht.mergeArray(t.texttemplate,r,"txt"),Ht.mergeArray(t.hovertext,r,"htx"),Ht.mergeArray(t.customdata,r,"data"),Ht.mergeArray(t.textposition,r,"tp"),t.textfont&&(Ht.mergeArrayCastPositive(t.textfont.size,r,"ts"),Ht.mergeArray(t.textfont.color,r,"tc"),Ht.mergeArray(t.textfont.family,r,"tf"),Ht.mergeArray(t.textfont.weight,r,"tw"),Ht.mergeArray(t.textfont.style,r,"ty"),Ht.mergeArray(t.textfont.variant,r,"tv"),Ht.mergeArray(t.textfont.textcase,r,"tC"),Ht.mergeArray(t.textfont.lineposition,r,"tE"),Ht.mergeArray(t.textfont.shadow,r,"tS"));var n=t.marker;if(n){Ht.mergeArrayCastPositive(n.size,r,"ms"),Ht.mergeArrayCastPositive(n.opacity,r,"mo"),Ht.mergeArray(n.symbol,r,"mx"),Ht.mergeArray(n.angle,r,"ma"),Ht.mergeArray(n.standoff,r,"mf"),Ht.mergeArray(n.color,r,"mc");var i=n.line;n.line&&(Ht.mergeArray(i.color,r,"mlc"),Ht.mergeArrayCastPositive(i.width,r,"mlw"),Ht.mergeArray(i.dash,r,"mld"));var l=n.gradient;l&&l.type!=="none"&&(Ht.mergeArray(l.type,r,"mgt"),Ht.mergeArray(l.color,r,"mgc"))}}});var td=B((VTe,aF)=>{"use strict";var tF=Le();aF.exports=function(r,t){tF.isArrayOrTypedArray(t.selectedpoints)&&tF.tagSelected(r,t)}});var O4=B((XTe,fF)=>{"use strict";var nF=Br(),F4=Le(),ad=Jr(),iF=vu(),N4=Dt().BADNUM,I4=Yn(),Xpe=eF(),Wpe=z4(),Zpe=td();function Jpe(e,r){var t=e._fullLayout,a=r._xA=ad.getFromId(e,r.xaxis||"x","x"),n=r._yA=ad.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=iF(r,a,"x",i),s=iF(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,v=new Array(c),h=r.ids,p=H4(r,t,a,n),m=!1,y,x,_,w,b,M;sF(t,r);var k="x",A="y",S;if(p)F4.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(A="s",S="x"):(k="s",S="y"),b=p.stackgaps==="interpolate";else{var D=oF(r,c);lF(e,r,a,n,u,f,D)}var E=!!r.xperiodalignment,R=!!r.yperiodalignment;for(x=0;x<c;x++){var N=v[x]={},I=nF(u[x]),H=nF(f[x]);I&&H?(N[k]=u[x],N[A]=f[x],E&&(N.orig_x=i[x],N.xEnd=o.ends[x],N.xStart=o.starts[x]),R&&(N.orig_y=l[x],N.yEnd=s.ends[x],N.yStart=s.starts[x])):p&&(y?I:H)?(N[S]=y?u[x]:f[x],N.gap=!0,b?(N.s=N4,m=!0):N.s=0):N[k]=N[A]=N4,h&&(N.id=String(h[x]))}if(Wpe(v,r),Xpe(e,r),Zpe(v,r),p){for(x=0;x<v.length;)v[x][S]===N4?v.splice(x,1):x++;if(F4.sort(v,function(V,U){return V[S]-U[S]||V.i-U.i}),m){for(x=0;x<v.length-1&&v[x].gap;)x++;for(M=v[x].s,M||(M=v[x].s=0),_=0;_<x;_++)v[_].s=M;for(w=v.length-1;w>x&&v[w].gap;)w--;for(M=v[w].s,_=v.length-1;_>w;_--)v[_].s=M;for(;x<w;)if(x++,v[x].gap){for(_=x+1;v[_].gap;)_++;for(var O=v[x-1][S],G=v[x-1].s,Y=(v[_].s-G)/(v[_][S]-O);x<_;)v[x].s=G+(v[x][S]-O)*Y,x++}}}return v}function lF(e,r,t,a,n,i,l){var o=r._length,s=e._fullLayout,u=t._id,f=a._id,c=s._firstScatter[uF(r)]===r.uid,v=(H4(r,s,t,a)||{}).orientation,h=r.fill;t._minDtick=0,a._minDtick=0;var p={padded:!0},m={padded:!0};l&&(p.ppad=m.ppad=l);var y=o<2||n[0]!==n[o-1]||i[0]!==i[o-1];y&&(h==="tozerox"||h==="tonextx"&&(c||v==="h"))?p.tozero=!0:!(r.error_y||{}).visible&&(h==="tonexty"||h==="tozeroy"||!I4.hasMarkers(r)&&!I4.hasText(r))&&(p.padded=!1,p.ppad=0),y&&(h==="tozeroy"||h==="tonexty"&&(c||v==="v"))?m.tozero=!0:(h==="tonextx"||h==="tozerox")&&(m.padded=!1),u&&(r._extremes[u]=ad.findExtremes(t,n,p)),f&&(r._extremes[f]=ad.findExtremes(a,i,m))}function oF(e,r){if(I4.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)},F4.isArrayOrTypedArray(t.size)){var i={type:"linear"};ad.setConvert(i);for(var l=i.makeCalcdata(e.marker,"size"),o=new Array(r),s=0;s<r;s++)o[s]=n(l[s]);return o}else return n(t.size)}}function sF(e,r){var t=uF(r),a=e._firstScatter;a[t]||(a[t]=r.uid)}function uF(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function H4(e,r,t,a){var n=e.stackgroup;if(n){var i=r._scatterStackOpts[t._id+a._id][n],l=i.orientation==="v"?a:t;if(l.type==="linear"||l.type==="log")return i}}fF.exports={calc:Jpe,calcMarkerSize:oF,calcAxisExpansion:lF,setFirstScatter:sF,getStackOpts:H4}});var vF=B((WTe,cF)=>{"use strict";cF.exports=Hm;var $pe=Le().distinctVals;function Hm(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 l=e[i],o=0;o<l.length;o++){var s=l[o],u=s.p;u===void 0&&(u=s[a]),u!==void 0&&n.push(u)}l[0]&&l[0].width1&&(t=Math.min(l[0].width1,t))}this.positions=n;var f=$pe(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={}}Hm.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};Hm.prototype.get=function(r,t,a){var n=this.getLabel(r,t,a);return this.bins[n]||0};Hm.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 nd=B((ZTe,dF)=>{"use strict";dF.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var vc=B((JTe,yF)=>{"use strict";var Ti=Br(),{isArrayOrTypedArray:Xl}=Le(),{BADNUM:fc}=Dt(),Kpe=Mr(),id=Jr(),{getAxisGroup:Qpe}=lu(),Om=vF(),{TEXTPAD:jpe}=nd(),{LINE_SPACING:eme}=za(),{BR_TAG_ALL:rme}=da();function tme(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;u<i.length;u++){var f=i[u];if(f.visible===!0&&Kpe.traceIs(f,"bar")&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?o.push(l[u]):s.push(l[u]),f._computePh))for(var c=e.calcdata[u],v=0;v<c.length;v++)typeof c[v].ph0=="function"&&(c[v].ph0=c[v].ph0()),typeof c[v].ph1=="function"&&(c[v].ph1=c[v].ph1())}var h={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};Y4(e,t,a,s,h),Y4(e,a,t,o,h)}function Y4(e,r,t,a,n){if(a.length){var i,l,o,s,u;switch(ime(t,a),n.mode){case"overlay":B4(e,r,t,a,n);break;case"group":for(i=[],l=[],o=0;o<a.length;o++)s=a[o],u=s[0].trace,u.offset===void 0?l.push(s):i.push(s);l.length&&lme(e,r,t,l,n),i.length&&B4(e,r,t,i,n);break;case"stack":case"relative":for(i=[],l=[],o=0;o<a.length;o++)s=a[o],u=s[0].trace,u.base===void 0?l.push(s):i.push(s);nme(l),l.length&&ome(e,r,t,l,n),i.length&&B4(e,r,t,i,n);break}ame(a),dme(a,r)}}function ame(e){var r,t,a,n,i,l,o;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&&(l=Ti(i)?+i:+i.slice(0,-1),o=Ti(i)?"px":"%",n.cornerradiusvalue=l,n.cornerradiusform=o))}function nme(e){if(!(e.length<2)){var r,t,a,n,i,l,o;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(l=Ti(i)?+i:+i.slice(0,-1),o=Ti(i)?"px":"%",r=0;r<e.length;r++)t=e[r],n=t[0].t,n.cornerradiusvalue=l,n.cornerradiusform=o}}function ime(e,r){var t,a;for(t=0;t<r.length;t++){var n=r[t],i=n[0].trace,l=i.type==="funnel"?i._base:i.base,o,s=i.orientation==="h"?i.xcalendar:i.ycalendar,u=e.type==="category"||e.type==="multicategory"?function(){return null}:e.d2c;if(Xl(l)){for(a=0;a<Math.min(l.length,n.length);a++)o=u(l[a],0,s),Ti(o)?(n[a].b=+o,n[a].hasB=1):n[a].b=0;for(;a<n.length;a++)n[a].b=0}else{o=u(l,0,s);var f=Ti(o);for(o=f?o:0,a=0;a<n.length;a++)n[a].b=o,f&&(n[a].hasB=1)}}}function B4(e,r,t,a,n){for(var i=0;i<a.length;i++){var l=a[i],o=new Om([l],{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});G4(e,r,o,n),n.norm?(mF(o),U4(t,o,n)):pF(t,o)}}function lme(e,r,t,a,n){var i=new Om(a,{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});G4(e,r,i,n),cme(i,r),n.norm?(mF(i),U4(t,i,n)):pF(t,i)}function ome(e,r,t,a,n){var i=new Om(a,{posAxis:r,sepNegVal:n.mode==="relative",overlapNoMerge:!(n.norm||n.mode==="stack"||n.mode==="relative")});G4(e,r,i,n),fme(t,i,n);for(var l=0;l<a.length;l++)for(var o=a[l],s=o[0].t.offsetindex,u=0;u<o.length;u++){var f=o[u];if(f.s!==fc){var c=f.b+f.s===i.get(f.p,s,f.s);c&&(f._outmost=!0)}}n.norm&&U4(t,i,n)}function G4(e,r,t,a){var n=e._fullLayout,i=t.positions,l=t.distinctPositions,o=t.minDiff,s=t.traces,u=s.length,f=i.length!==l.length,c=o*(1-a.gap),v,h,p,m;if(r._id==="angularaxis")v=c,h=v*(1-(a.groupgap||0)),p=-h/2;else{var y=Qpe(n,r._id)+s[0][0].trace.orientation;m=n._alignmentOpts[y]||{}}for(var x=0;x<u;x++){var _=s[x],w=_[0].trace;if(r._id!=="angularaxis"){var b=m[w.alignmentgroup]||{},M=Object.keys(b.offsetGroups||{}).length;M?v=c/M:v=f?c/u:c,h=v*(1-(a.groupgap||0)),M?p=((2*w._offsetIndex+1-M)*v-h)/2:p=f?((2*x+1-u)*v-h)/2:-h/2}var k=_[0].t;k.barwidth=h,k.offsetindex=w._offsetIndex||0,k.poffset=p,k.bargroupwidth=c,k.bardelta=o}t.binWidth=s[0][0].t.barwidth/100,sme(t),ume(r,t),r._id==="angularaxis"?hF(r,t):hF(r,t,f)}function sme(e){var r=e.traces,t,a;for(t=0;t<r.length;t++){var n=r[t],i=n[0],l=i.trace,o=i.t,s=l._offset||l.offset,u=o.poffset,f;if(Xl(s)){for(f=Array.prototype.slice.call(s,0,n.length),a=0;a<f.length;a++)Ti(f[a])||(f[a]=u);for(a=f.length;a<n.length;a++)f.push(u);o.poffset=f}else s!==void 0&&(o.poffset=s);var c=l._width||l.width,v=o.barwidth;if(Xl(c)){var h=Array.prototype.slice.call(c,0,n.length);for(a=0;a<h.length;a++)Ti(h[a])||(h[a]=v);for(a=h.length;a<n.length;a++)h.push(v);if(o.barwidth=h,s===void 0){for(f=[],a=0;a<n.length;a++)f.push(u+(v-h[a])/2);o.poffset=f}}else c!==void 0&&(o.barwidth=c,s===void 0&&(o.poffset=u+(v-c)/2))}}function ume(e,r){for(var t=r.traces,a=cc(e),n=0;n<t.length;n++)for(var i=t[n],l=i[0].t,o=l.poffset,s=Xl(o),u=l.barwidth,f=Xl(u),c=0;c<i.length;c++){var v=i[c],h=v.w=f?u[c]:u;v.p===void 0&&(v.p=v[a],v["orig_"+a]=v[a]);var p=(s?o[c]:o)+h/2;v[a]=v.p+p}}function hF(e,r,t){var a=r.traces,n=r.minDiff,i=n/2;id.minDtick(e,r.minDiff,r.distinctPositions[0],t);for(var l=0;l<a.length;l++){var o=a[l],s=o[0],u=s.trace,f=[],c,v,h,p;for(p=0;p<o.length;p++)c=o[p],v=c.p-i,h=c.p+i,f.push(v,h);if(u.width||u.offset){var m=s.t,y=m.poffset,x=m.barwidth,_=Xl(y),w=Xl(x);for(p=0;p<o.length;p++){c=o[p];var b=_?y[p]:y,M=w?x[p]:x;v=c.p+b,h=v+M,f.push(v,h)}}u._extremes[e._id]=id.findExtremes(e,f,{padded:!1})}}function pF(e,r){for(var t=r.traces,a=cc(e),n=0;n<t.length;n++){for(var i=t[n],l=i[0].trace,o=l.type==="scatter",s=l.orientation==="v",u=[],f=!1,c=0;c<i.length;c++){var v=i[c],h=o?0:v.b,p=o?s?v.y:v.x:h+v.s;v[a]=p,u.push(p),v.hasB&&u.push(h),(!v.hasB||!v.b)&&(f=!0)}let{ppadminus:m,ppadplus:y}=V4(l,i);l._extremes[e._id]=id.findExtremes(e,u,{tozero:f,padded:!0,ppadplus:y,ppadminus:m})}}function fme(e,r,t){var a=cc(e),n=r.traces,i,l,o,s,u,f,c;for(s=0;s<n.length;s++)if(i=n[s],l=i[0].trace,l.type==="funnel")for(c=i[0].t.offsetindex,u=0;u<i.length;u++)f=i[u],f.s!==fc&&r.put(f.p,c,-.5*f.s);for(s=0;s<n.length;s++){i=n[s],l=i[0].trace,o=l.type==="funnel",c=l.type==="barpolar"?0:i[0].t.offsetindex;var v=[];for(u=0;u<i.length;u++)if(f=i[u],f.s!==fc){var h;o?h=f.s:h=f.s+f.b;var p=r.put(f.p,c,h),m=p+h;f.b=p,f[a]=m,t.norm||(v.push(m),f.hasB&&v.push(p))}if(!t.norm){let{ppadminus:y,ppadplus:x}=V4(l,i);l._extremes[e._id]=id.findExtremes(e,v,{tozero:!0,padded:!0,ppadplus:x,ppadminus:y})}}}function mF(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 l=a[i];l.s!==fc&&e.put(l.p,n,l.b+l.s)}}function cme(e,r){for(var t=e.traces,a=0;a<t.length;a++){var n=t[a],i=n[0].trace,l=n[0].t.offsetindex;if(i.base===void 0)for(var o=new Om([n],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),s=0;s<n.length;s++){var u=n[s];if(u.p!==fc){var f=o.put(u.p,l,u.b+u.s);f&&(u.b=f)}}}}function U4(e,r,t){var a=r.traces,n=cc(e),i=t.norm==="fraction"?1:100,l=i/1e9,o=e.l2c(e.c2l(0)),s=t.mode==="stack"?i:o;function u(k){return Ti(e.c2l(k))&&(k<o-l||k>s+l||!Ti(o))}for(var f=0;f<a.length;f++){for(var c=a[f],v=c[0].t.offsetindex,h=c[0].trace,p=[],m=!1,y=!1,x=0;x<c.length;x++){var _=c[x];if(_.s!==fc){var w=Math.abs(i/r.get(_.p,v,_.s));_.b*=w,_.s*=w;var b=_.b,M=b+_.s;_[n]=M,p.push(M),y=y||u(M),_.hasB&&(p.push(b),y=y||u(b)),(!_.hasB||!_.b)&&(m=!0)}}let{ppadminus:k,ppadplus:A}=V4(h,c);h._extremes[e._id]=id.findExtremes(e,p,{tozero:m,padded:y,ppadplus:A,ppadminus:k})}}function V4(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(rme)||[]).length+1};var t;e.texttemplate?t=a(e.texttemplate):t=Xl(e.text)?Math.max(...e.text.map(i=>a(i))):a(e.text);let n=e.outsidetextfont.size*eme*t+jpe;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 vme(e,r,t,a){for(var n=cc(a),i=0;i<e.length;i++)for(var l=e[i],o=0;o<l.length;o++){var s=l[o],u=s[n];s._sMin=r[u],s._sMax=t[u]}}function dme(e,r){var t=cc(r),a={},n,i,l,o=1/0,s=-1/0;for(n=0;n<e.length;n++)for(l=e[n],i=0;i<l.length;i++){var u=l[i].p;Ti(u)&&(o=Math.min(o,u),s=Math.max(s,u))}var f=1e4/(s-o),c=a.round=function(S){return String(Math.round(f*(S-o)))},v={},h={},p=e.some(function(S){var D=S[0].trace;return"marker"in D&&D.marker.cornerradius});for(n=0;n<e.length;n++){l=e[n],l[0].t.extents=a;var m=l[0].t.poffset,y=Xl(m);for(i=0;i<l.length;i++){var x=l[i],_=x[t]-x.w/2;if(Ti(_)){var w=x[t]+x.w/2,b=c(x.p);a[b]?a[b]=[Math.min(_,a[b][0]),Math.max(w,a[b][1])]:a[b]=[_,w]}if(x.p0=x.p+(y?m[i]:m),x.p1=x.p0+x.w,x.s0=x.b,x.s1=x.s0+x.s,p){var M=Math.min(x.s0,x.s1)||0,k=Math.max(x.s0,x.s1)||0,A=x[t];v[A]=A in v?Math.min(v[A],M):M,h[A]=A in h?Math.max(h[A],k):k}}}p&&vme(e,v,h,r)}function cc(e){return e._id.charAt(0)}yF.exports={crossTraceCalc:tme,setGroupPositions:Y4}});var _F=B(($Te,xF)=>{"use strict";var gF=O4(),bF=vc().setGroupPositions;function hme(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],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"?o.push(l[u]):f.orientation==="v"&&s.push(l[u]))}var c={mode:n.scattermode,gap:n.scattergap};bF(e,t,a,s,c),bF(e,a,t,o,c)}xF.exports=function(r,t){r._fullLayout.scattermode==="group"&&hme(r,t);var a=t.xaxis,n=t.yaxis,i=a._id+n._id,l=r._fullLayout._scatterStackOpts[i];if(l){var o=r.calcdata,s,u,f,c,v,h,p,m,y,x,_,w,b,M,k;for(var A in l){x=l[A];var S=x.traceIndices;if(S.length){for(_=x.stackgaps==="interpolate",w=x.groupnorm,x.orientation==="v"?(b="x",M="y"):(b="y",M="x"),k=new Array(S.length),s=0;s<k.length;s++)k[s]=!1;h=o[S[0]];var D=new Array(h.length);for(s=0;s<h.length;s++)D[s]=h[s][b];for(s=1;s<S.length;s++){for(v=o[S[s]],u=f=0;u<v.length;u++){for(p=v[u][b];p>D[f]&&f<D.length;f++)X4(v,u,D[f],s,k,_,b),u++;if(p!==D[f]){for(c=0;c<s;c++)X4(o[S[c]],f,p,c,k,_,b);D.splice(f,0,p)}f++}for(;f<D.length;f++)X4(v,u,D[f],s,k,_,b),u++}var E=D.length;for(u=0;u<h.length;u++){for(m=h[u][M]=h[u].s,s=1;s<S.length;s++)v=o[S[s]],v[0].trace._rawLength=v[0].trace._length,v[0].trace._length=E,m+=v[u].s,v[u][M]=m;if(w)for(y=(w==="fraction"?m:m/100)||1,s=0;s<S.length;s++){var R=o[S[s]][u];R[M]/=y,R.sNorm=R.s/y}}for(s=0;s<S.length;s++){v=o[S[s]];var N=v[0].trace,I=gF.calcMarkerSize(N,N._rawLength),H=Array.isArray(I);if(I&&k[s]||H){var O=I;for(I=new Array(E),u=0;u<E;u++)I[u]=v[u].gap?0:H?O[v[u].i]:O}var G=new Array(E),Y=new Array(E);for(u=0;u<E;u++)G[u]=v[u].x,Y[u]=v[u].y;gF.calcAxisExpansion(r,N,a,n,G,Y,I),v[0].t.orientation=x.orientation}}}}};function X4(e,r,t,a,n,i,l){n[a]=!0;var o={i:null,gap:!0,s:0};if(o[l]=t,e.splice(r,0,o),r&&t===e[r-1][l]){var s=e[r-1];o.s=s.s,o.i=s.i,o.gap=s.gap}else i&&(o.s=pme(e,r,t,l));r||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}function pme(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 LF=B((KTe,CF)=>{"use strict";var mme=Vr(),AF=Dt(),ld=AF.BADNUM,kF=AF.LOG_CLIP,wF=kF+.5,TF=kF-.5,Bm=Le(),yme=Bm.segmentsIntersect,MF=Bm.constrain,W4=fm();CF.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,h=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",x=[],_=W4.minTolerance,w=r.length,b=new Array(w),M=0,k,A,S,D,E,R,N,I,H,O,G,Y,V,U,Z,X;function $(qe){var Je=r[qe];if(!Je)return!1;var Fe=t.linearized?n.l2p(Je.x):n.c2p(Je.x),hr=t.linearized?i.l2p(Je.y):i.c2p(Je.y);if(Fe===ld){if(l&&(Fe=n.c2p(Je.x,!0)),Fe===ld)return!1;o&&hr===ld&&(Fe*=Math.abs(n._m*u*(n._m>0?wF:TF)/(i._m*s*(i._m>0?wF:TF)))),Fe*=1e3}if(hr===ld){if(o&&(hr=i.c2p(Je.y,!0)),hr===ld)return!1;hr*=1e3}return[Fe,hr]}function ae(qe,Je,Fe,hr){var br=Fe-qe,sr=hr-Je,pr=.5-qe,te=.5-Je,de=br*br+sr*sr,Ne=br*pr+sr*te;if(Ne>0&&Ne<de){var Ye=pr*sr-te*br;if(Ye*Ye<de)return!0}}var ie,ve;function K(qe,Je){var Fe=qe[0]/s,hr=qe[1]/u,br=Math.max(0,-Fe,Fe-1,-hr,hr-1);return br&&ie!==void 0&&ae(Fe,hr,ie,ve)&&(br=0),br&&Je&&ae(Fe,hr,Je[0]/s,Je[1]/u)&&(br=0),(1+W4.toleranceGrowth*br)*h}function he(qe,Je){var Fe=qe[0]-Je[0],hr=qe[1]-Je[1];return Math.sqrt(Fe*Fe+hr*hr)}var oe=W4.maxScreensAway,be=-s*oe,me=s*(1+oe),ce=-u*oe,Me=u*(1+oe),De=[[be,ce,me,ce],[me,ce,me,Me],[me,Me,be,Me],[be,Me,be,ce]],Te,Pe,Se,ke,ze,Ge;function Ce(qe,Je){for(var Fe=[],hr=0,br=0;br<4;br++){var sr=De[br],pr=yme(qe[0],qe[1],Je[0],Je[1],sr[0],sr[1],sr[2],sr[3]);pr&&(!hr||Math.abs(pr.x-Fe[0][0])>1||Math.abs(pr.y-Fe[0][1])>1)&&(pr=[pr.x,pr.y],hr&&he(pr,qe)<he(Fe[0],qe)?Fe.unshift(pr):Fe.push(pr),hr++)}return Fe}function $e(qe){if(qe[0]<be||qe[0]>me||qe[1]<ce||qe[1]>Me)return[MF(qe[0],be,me),MF(qe[1],ce,Me)]}function Ke(qe,Je){if(qe[0]===Je[0]&&(qe[0]===be||qe[0]===me)||qe[1]===Je[1]&&(qe[1]===ce||qe[1]===Me))return!0}function Xe(qe,Je){var Fe=[],hr=$e(qe),br=$e(Je);return hr&&br&&Ke(hr,br)||(hr&&Fe.push(hr),br&&Fe.push(br)),Fe}function Ae(qe,Je,Fe){return function(hr,br){var sr=$e(hr),pr=$e(br),te=[];if(sr&&pr&&Ke(sr,pr))return te;sr&&te.push(sr),pr&&te.push(pr);var de=2*Bm.constrain((hr[qe]+br[qe])/2,Je,Fe)-((sr||hr)[qe]+(pr||br)[qe]);if(de){var Ne;sr&&pr?Ne=de>0==sr[qe]>pr[qe]?sr:pr:Ne=sr||pr,Ne[qe]+=de}return te}}var Re;p==="linear"||p==="spline"?Re=Ce:p==="hv"||p==="vh"?Re=Xe:p==="hvh"?Re=Ae(0,be,me):p==="vhv"&&(Re=Ae(1,ce,Me));function Qe(qe,Je){var Fe=Je[0]-qe[0],hr=(Je[1]-qe[1])/Fe,br=(qe[1]*Je[0]-Je[1]*qe[0])/Fe;return br>0?[hr>0?be:me,Me]:[hr>0?me:be,ce]}function re(qe){var Je=qe[0],Fe=qe[1],hr=Je===b[M-1][0],br=Fe===b[M-1][1];if(!(hr&&br))if(M>1){var sr=Je===b[M-2][0],pr=Fe===b[M-2][1];hr&&(Je===be||Je===me)&&sr?pr?M--:b[M-1]=qe:br&&(Fe===ce||Fe===Me)&&pr?sr?M--:b[M-1]=qe:b[M++]=qe}else b[M++]=qe}function ye(qe){b[M-1][0]!==qe[0]&&b[M-1][1]!==qe[1]&&re([Se,ke]),re(qe),ze=null,Se=ke=0}var Ve=Bm.isArrayOrTypedArray(c);function dr(qe){if(qe&&f&&(qe.i=k,qe.d=r,qe.trace=a,qe.marker=Ve?c[qe.i]:c,qe.backoff=f),ie=qe[0]/s,ve=qe[1]/u,Te=qe[0]<be?be:qe[0]>me?me:0,Pe=qe[1]<ce?ce:qe[1]>Me?Me:0,Te||Pe){if(!M)b[M++]=[Te||qe[0],Pe||qe[1]];else if(ze){var Je=Re(ze,qe);Je.length>1&&(ye(Je[0]),b[M++]=Je[1])}else Ge=Re(b[M-1],qe)[0],b[M++]=Ge;var Fe=b[M-1];Te&&Pe&&(Fe[0]!==Te||Fe[1]!==Pe)?(ze&&(Se!==Te&&ke!==Pe?re(Se&&ke?Qe(ze,qe):[Se||Te,ke||Pe]):Se&&ke&&re([Se,ke])),re([Te,Pe])):Se-Te&&ke-Pe&&re([Te||Se,Pe||ke]),ze=qe,Se=Te,ke=Pe}else ze&&ye(Re(ze,qe)[0]),b[M++]=qe}for(k=0;k<w;k++)if(A=$(k),!!A){for(M=0,ze=null,dr(A),k++;k<w;k++){if(D=$(k),!D){if(v)continue;break}if(!m||!t.simplify){dr(D);continue}var Ee=$(k+1);if(O=he(D,A),!(!(y&&(M===0||M===w-1))&&O<K(D,Ee)*_)){for(I=[(D[0]-A[0])/O,(D[1]-A[1])/O],E=A,G=O,Y=U=Z=0,N=!1,S=D,k++;k<r.length;k++){if(R=Ee,Ee=$(k+1),!R){if(v)continue;break}if(H=[R[0]-A[0],R[1]-A[1]],X=H[0]*I[1]-H[1]*I[0],U=Math.min(U,X),Z=Math.max(Z,X),Z-U>K(R,Ee))break;S=R,V=H[0]*I[0]+H[1]*I[1],V>G?(G=V,D=R,N=!1):V<Y&&(Y=V,E=R,N=!0)}if(N?(dr(D),S!==E&&dr(E)):(E!==A&&dr(E),S!==D&&dr(D)),dr(S),k>=r.length||!R)break;dr(R),A=R}}ze&&re([Se||ze[0],ke||ze[1]]),x.push(b.slice(0,M))}var pe=p.slice(p.length-1);if(f&&pe!=="h"&&pe!=="v"){for(var we=!1,Oe=-1,We=[],Ie=0;Ie<x.length;Ie++)for(var Ue=0;Ue<x[Ie].length-1;Ue++){var ar=x[Ie][Ue],ir=x[Ie][Ue+1],ur=mme.applyBackoff(ir,ar);(ur[0]!==ir[0]||ur[1]!==ir[1])&&(we=!0),We[Oe+1]||(Oe++,We[Oe]=[ar,[ur[0],ur[1]]])}return we?We:x}return x}});var DF=B((QTe,qF)=>{"use strict";var SF={tonextx:1,tonexty:1,tonext:1};qF.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,c=-1,v=0,h=-1;for(i=0;i<a.length;i++)n=a[i][0].trace,l=n.stackgroup||"",l?l in u?s=u[l]:(s=u[l]=v,v++):n.fill in SF&&h>=0?s=h:(s=h=v,v++),s<c&&(f=!0),n._groupIndex=c=s;var p=a.slice();f&&p.sort(function(y,x){var _=y[0].trace,w=x[0].trace;return _._groupIndex-w._groupIndex||_.index-w.index});var m={};for(i=0;i<p.length;i++)n=p[i][0].trace,l=n.stackgroup||"",n.visible===!0?(n._nexttrace=null,n.fill in SF&&(o=m[l],n._prevtrace=o||null,o&&(o._nexttrace=n)),n._ownfill=n.fill&&(n.fill.slice(0,6)==="tozero"||n.fill==="toself"||n.fill.slice(0,2)==="to"&&!n._prevtrace),m[l]=n):n._prevtrace=n._nexttrace=n._ownfill=null;return p}});var zF=B((jTe,RF)=>{"use strict";var Wi=Dr(),gme=Mr(),od=Le(),dc=od.ensureSingle,PF=od.identity,Ut=Vr(),hc=Yn(),bme=LF(),xme=DF(),Ym=Xx().tester;RF.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=xme(r,t,a);if(o=n.selectAll("g.trace").data(c,function(h){return h[0].trace.uid}),o.enter().append("g").attr("class",function(h){return"trace scatter trace"+h[0].trace.uid}).style("stroke-miterlimit",2),o.order(),_me(r,o,t),f){l&&(s=l());var v=Wi.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(h,p){EF(r,p,t,h,c,this,i)})})}else o.each(function(h,p){EF(r,p,t,h,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function _me(e,r,t){r.each(function(a){var n=dc(Wi.select(this),"g","fills");Ut.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,PF);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=dc(Wi.select(this),"path","js-fill")})})}function EF(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;wme(e,r,t,a,n);var u=!!l&&l.duration>0;function f(Ae){return u?Ae.transition():Ae}var c=t.xaxis,v=t.yaxis,h=a[0].trace,p=h.line,m=Wi.select(i),y=dc(m,"g","errorbars"),x=dc(m,"g","lines"),_=dc(m,"g","points"),w=dc(m,"g","text");if(gme.getComponentMethod("errorbars","plot")(e,y,t,l),h.visible!==!0)return;f(m).style("opacity",h.opacity);var b,M,k=h.fill.charAt(h.fill.length-1);k!=="x"&&k!=="y"&&(k="");var A,S;k==="y"?(A=1,S=v.c2p(0,!0)):k==="x"&&(A=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var D="",E=[],R=h._prevtrace,N=null,I=null;R&&(D=R._prevRevpath||"",M=R._nextFill,E=R._ownPolygons,N=R._fillsegments,I=R._fillElement);var H,O,G="",Y="",V,U,Z,X,$,ae,ie=[];h._polygons=[];var ve=[],K=[],he=od.noop;if(b=h._ownFill,hc.hasLines(h)||h.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(V=Ut.steps(p.shape),U=Ut.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?V=U=function(Ae){var Re=Ae[Ae.length-1];return Ae.length>1&&Ae[0][0]===Re[0]&&Ae[0][1]===Re[1]?Ut.smoothclosed(Ae.slice(1),p.smoothing):Ut.smoothopen(Ae,p.smoothing)}:V=U=function(Ae){return"M"+Ae.join("L")},Z=function(Ae){return U(Ae.reverse())},K=bme(a,{xaxis:c,yaxis:v,trace:h,connectGaps:h.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:h.fill}),ve=new Array(K.length);var oe=0;for(s=0;s<K.length;s++){var be,me=K[s];!be||!k?(be=me.slice(),ve[oe]=be,oe++):be.push.apply(be,me)}h._fillElement=null,h._fillExclusionElement=I,h._fillsegments=ve.slice(0,oe),ve=h._fillsegments,K.length&&(X=K[0][0].slice(),$=K[K.length-1],ae=$[$.length-1].slice()),he=function(Ae){return function(Re){if(H=V(Re),O=Z(Re),G?k?(G+="L"+H.slice(1),Y=O+("L"+Y.slice(1))):(G+="Z"+H,Y=O+"Z"+Y):(G=H,Y=O),hc.hasLines(h)){var Qe=Wi.select(this);if(Qe.datum(a),Ae)f(Qe.style("opacity",0).attr("d",H).call(Ut.lineGroupStyle)).style("opacity",1);else{var re=f(Qe);re.attr("d",H),Ut.singleLineStyle(a,re)}}}}}var ce=x.selectAll(".js-line").data(K);f(ce.exit()).style("opacity",0).remove(),ce.each(he(!1)),ce.enter().append("path").classed("js-line",!0).style("vector-effect",o?"none":"non-scaling-stroke").call(Ut.lineGroupStyle).each(he(!0)),Ut.setClipUrl(ce,t.layerClipId,e);function Me(Ae){f(Ae).attr("d","M0,0Z")}var De=function(){var Ae=new Array(ve.length);for(s=0;s<ve.length;s++)Ae[s]=Ym(ve[s]);return Ae},Te=function(Ae){var Re,Qe;if(!Ae||Ae.length===0)for(Re=new Array(ve.length),Qe=0;Qe<ve.length;Qe++){var re=ve[Qe][0].slice(),ye=ve[Qe][ve[Qe].length-1].slice();re[A]=ye[A]=S;var Ve=[ye,re],dr=Ve.concat(ve[Qe]);Re[Qe]=Ym(dr)}else{for(Re=new Array(Ae.length-1+ve.length),Qe=0;Qe<Ae.length-1;Qe++)Re[Qe]=Ym(Ae[Qe]);var Ee=Ae[Ae.length-1].slice();for(Ee.reverse(),Qe=0;Qe<ve.length;Qe++)Re[Ae.length-1+Qe]=Ym(ve[Qe].concat(Ee))}return Re};K.length?(b?(b.datum(a),X&&ae&&(k?(X[A]=ae[A]=S,f(b).attr("d","M"+ae+"L"+X+"L"+G.slice(1)).call(Ut.singleFillStyle,e),ie=Te(null)):(f(b).attr("d",G+"Z").call(Ut.singleFillStyle,e),ie=De())),h._polygons=ie,h._fillElement=b):M&&(h.fill.slice(0,6)==="tonext"&&G&&D?(h.fill==="tonext"?(f(M).attr("d",G+"Z"+D+"Z").call(Ut.singleFillStyle,e),ie=De(),h._polygons=ie.concat(E)):(f(M).attr("d",G+"L"+D.slice(1)+"Z").call(Ut.singleFillStyle,e),ie=Te(N),h._polygons=ie),h._fillElement=M):Me(M)),h._prevRevpath=Y):(b?Me(b):M&&Me(M),h._prevRevpath=null),h._ownPolygons=ie;function Pe(Ae){return Ae.filter(function(Re){return!Re.gap&&Re.vis})}function Se(Ae){return Ae.filter(function(Re){return Re.vis})}function ke(Ae){return Ae.filter(function(Re){return!Re.gap})}function ze(Ae){return Ae.id}function Ge(Ae){if(Ae.ids)return ze}function Ce(){return!1}function $e(Ae,Re,Qe){var re,ye,Ve,dr=Qe[0].trace,Ee=hc.hasMarkers(dr),pe=hc.hasText(dr),we=Ge(dr),Oe=Ce,We=Ce;if(Ee||pe){var Ie=PF,Ue=dr.stackgroup,ar=Ue&&e._fullLayout._scatterStackOpts[c._id+v._id][Ue].stackgaps==="infer zero";dr.marker.maxdisplayed||dr._needsCull?Ie=ar?Se:Pe:Ue&&!ar&&(Ie=ke),Ee&&(Oe=Ie),pe&&(We=Ie)}ye=Ae.selectAll("path.point"),re=ye.data(Oe,we);var ir=re.enter().append("path").classed("point",!0);u&&ir.call(Ut.pointStyle,dr,e).call(Ut.translatePoints,c,v).style("opacity",0).transition().style("opacity",1),re.order();var ur;Ee&&(ur=Ut.makePointStyleFns(dr)),re.each(function(qe){var Je=Wi.select(this),Fe=f(Je);Ve=Ut.translatePoint(qe,Fe,c,v),Ve?(Ut.singlePointStyle(qe,Fe,dr,ur,e),t.layerClipId&&Ut.hideOutsideRangePoint(qe,Fe,c,v,dr.xcalendar,dr.ycalendar),dr.customdata&&Je.classed("plotly-customdata",qe.data!==null&&qe.data!==void 0)):Fe.remove()}),u?re.exit().transition().style("opacity",0).remove():re.exit().remove(),ye=Re.selectAll("g"),re=ye.data(We,we),re.enter().append("g").classed("textpoint",!0).append("text"),re.order(),re.each(function(qe){var Je=Wi.select(this),Fe=f(Je.select("text"));Ve=Ut.translatePoint(qe,Fe,c,v),Ve?t.layerClipId&&Ut.hideOutsideRangePoint(qe,Je,c,v,dr.xcalendar,dr.ycalendar):Je.remove()}),re.selectAll("text").call(Ut.textPointStyle,dr,e).each(function(qe){var Je=c.c2p(qe.x),Fe=v.c2p(qe.y);Wi.select(this).selectAll("tspan.line").each(function(){f(Wi.select(this)).attr({x:Je,y:Fe})})}),re.exit().remove()}_.datum(a),w.datum(a),$e(_,w,a);var Ke=h.cliponaxis===!1,Xe=Ke?null:t.layerClipId;Ut.setClipUrl(_,Xe,e),Ut.setClipUrl(w,Xe,e)}function wme(e,r,t,a,n){var i=t.xaxis,l=t.yaxis,o=Wi.extent(od.simpleMap(i.range,i.r2c)),s=Wi.extent(od.simpleMap(l.range,l.r2c)),u=a[0].trace;if(hc.hasMarkers(u)){var f=u.marker.maxdisplayed;if(f!==0){var c=a.filter(function(m){return m.x>=o[0]&&m.x<=o[1]&&m.y>=s[0]&&m.y<=s[1]}),v=Math.ceil(c.length/f),h=0;n.forEach(function(m,y){var x=m[0].trace;hc.hasMarkers(x)&&x.marker.maxdisplayed>0&&y<r&&h++});var p=Math.round(h*v/3+Math.floor(h/3)*v/7.1);a.forEach(function(m){delete m.vis}),c.forEach(function(m,y){Math.round((y+p)%v)===0&&(m.vis=!0)})}}}});var Gm=B((eMe,NF)=>{"use strict";NF.exports={container:"marker",min:"cmin",max:"cmax"}});var IF=B((rMe,FF)=>{"use strict";var Um=Jr();FF.exports=function(r,t,a){var n={},i={_fullLayout:a},l=Um.getFromTrace(i,t,"x"),o=Um.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=Um.tickText(l,l.c2l(s),!0).text,n.yLabel=Um.tickText(o,o.c2l(u),!0).text,n}});var K4=B((tMe,HF)=>{"use strict";var Z4=Dr(),pc=Vr(),Tme=Mr();function Mme(e){var r=Z4.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=Z4.select(this),n=t.trace||t[0].trace;J4(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Z4.select(this),n=t.trace||t[0].trace;$4(a,n,e)}),r.selectAll("g.trace path.js-line").call(pc.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(pc.fillGroupStyle,e,!1),Tme.getComponentMethod("errorbars","style")(r)}function J4(e,r,t){pc.pointStyle(e.selectAll("path.point"),r,t)}function $4(e,r,t){pc.textPointStyle(e.selectAll("text"),r,t)}function Ame(e,r,t){var a=r[0].trace;a.selectedpoints?(pc.selectedPointStyle(t.selectAll("path.point"),a),pc.selectedTextStyle(t.selectAll("text"),a)):(J4(t,a,e),$4(t,a,e))}HF.exports={style:Mme,stylePoints:J4,styleText:$4,styleOnSelect:Ame}});var BF=B((aMe,OF)=>{"use strict";var mc=Ar(),kme=Yn();OF.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&mc.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&mc.opacity(i)?i:l&&mc.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?mc.opacity(n)<.3?mc.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&mc.opacity(a)&&kme.hasLines(r)&&r.line.width?a:r.fillcolor)}});var UF=B((nMe,GF)=>{"use strict";var Vm=Le(),YF=vi(),Cme=Mr(),Lme=BF(),Q4=Ar(),Sme=Vm.fillText;GF.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),c=[u,f],v=l.hoveron||"",h=l.mode.indexOf("markers")!==-1?3:.5,p=!!l.xperiodalignment,m=!!l.yperiodalignment;if(v.indexOf("points")!==-1){var y=function(Y){if(p){var V=o.c2p(Y.xStart),U=o.c2p(Y.xEnd);return u>=Math.min(V,U)&&u<=Math.max(V,U)?0:1/0}var Z=Math.max(3,Y.mrc||0),X=1-1/Z,$=Math.abs(o.c2p(Y.x)-u);return $<Z?X*$/Z:$-Z+X},x=function(Y){if(m){var V=s.c2p(Y.yStart),U=s.c2p(Y.yEnd);return f>=Math.min(V,U)&&f<=Math.max(V,U)?0:1/0}var Z=Math.max(3,Y.mrc||0),X=1-1/Z,$=Math.abs(s.c2p(Y.y)-f);return $<Z?X*$/Z:$-Z+X},_=function(Y){var V=Math.max(h,Y.mrc||0),U=o.c2p(Y.x)-u,Z=s.c2p(Y.y)-f;return Math.max(Math.sqrt(U*U+Z*Z)-V,1-h/V)},w=YF.getDistanceFunction(n,y,x,_);if(YF.getClosest(i,w,r),r.index!==!1){var b=i[r.index],M=o.c2p(b.x,!0),k=s.c2p(b.y,!0),A=b.mrc||1;r.index=b.i;var S=i[0].t.orientation,D=S&&(b.sNorm||b.s),E=S==="h"?D:b.orig_x!==void 0?b.orig_x:b.x,R=S==="v"?D:b.orig_y!==void 0?b.orig_y:b.y;return Vm.extendFlat(r,{color:Lme(l,b),x0:M-A,x1:M+A,xLabelVal:E,y0:k-A,y1:k+A,yLabelVal:R,spikeDistance:_(b),hovertemplate:l.hovertemplate}),Sme(b,l,r),Cme.getComponentMethod("errorbars","hoverInfo")(b,l,r),[r]}}function N(Y){if(!Y)return!1;var V=Y.node();try{var U=new DOMPoint(c[0],c[1]);return V.isPointInFill(U)}catch(X){var Z=V.ownerSVGElement.createSVGPoint();return Z.x=c[0],Z.y=c[1],V.isPointInFill(Z)}}function I(Y){var V,U=[],Z=1/0,X=-1/0,$=1/0,ae=-1/0,ie;for(V=0;V<Y.length;V++){var ve=Y[V];ve.contains(c)&&(U.push(ve),$=Math.min($,ve.ymin),ae=Math.max(ae,ve.ymax))}if(U.length===0)return null;$=Math.max($,0),ae=Math.min(ae,s._length),ie=($+ae)/2;var K,he,oe,be,me,ce,Me;for(V=0;V<U.length;V++)for(he=U[V].pts,K=1;K<he.length;K++)ce=he[K-1][1],Me=he[K][1],ce>ie!=Me>=ie&&(be=he[K-1][0],me=he[K][0],Me-ce&&(oe=be+(me-be)*(ie-ce)/(Me-ce),Z=Math.min(Z,oe),X=Math.max(X,oe)));return Z=Math.max(Z,0),X=Math.min(X,o._length),{x0:Z,x1:X,y0:ie,y1:ie}}if(v.indexOf("fills")!==-1&&l._fillElement){var H=N(l._fillElement)&&!N(l._fillExclusionElement);if(H){var O=I(l._polygons);O===null&&(O={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var G=Q4.defaultLine;return Q4.opacity(l.fillcolor)?G=l.fillcolor:Q4.opacity((l.line||{}).color)&&(G=l.line.color),Vm.extendFlat(r,{distance:r.maxHoverDistance,x0:O.x0,x1:O.x1,y0:O.y0,y1:O.y1,color:G,hovertemplate:!1}),delete r.index,l.text&&!Vm.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var WF=B((iMe,XF)=>{"use strict";var VF=Yn();XF.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,v=o.mode&&!VF.hasMarkers(o)&&!VF.hasText(o);if(v)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)?(l.push({pointNumber:u.i,x:n.c2d(u.x),y:i.c2d(u.y)}),u.selected=1):u.selected=0;return l}});var JF=B((lMe,ZF)=>{"use strict";ZF.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var jF=B((oMe,QF)=>{"use strict";var Xm=Mr().traceIs,j4=xb();QF.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(qme(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function qme(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Dme(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!Xm(i,"cartesian")||Xm(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,KF(i,a)){var u=$F(i),f=[];for(n=0;n<r.length;n++){var c=r[n];!Xm(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[l]!==o&&(o=void 0))}e.type=j4(f,o,s)}else if(i.type==="splom"){var v=i.dimensions,h=v[i._axesDim[t]];h.visible&&(e.type=j4(h.values,o,s))}else e.type=j4(i[a]||[i[a+"0"]],o,s)}}}function Dme(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(KF(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function $F(e){return{v:"x",h:"y"}[e.orientation||"v"]}function KF(e,r){var t=$F(e),a=Xm(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var rI=B((sMe,eI)=>{"use strict";var Eme=bn().isTypedArraySpec;function Pme(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i<r.data.length;i++){var o=r.data[i];o[t+"axis"]===e._id&&n.push(o)}for(i=0;i<n.length;i++){var s=n[i][t];for(l=0;l<s.length;l++){var u=s[l];u!=null&&(a[u]=1)}}return Object.keys(a)}eI.exports=function(r,t,a,n){if(t.type==="category"){var i=r.categoryarray,l=Array.isArray(i)&&i.length>0||Eme(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Pme(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var nI=B((uMe,aI)=>{"use strict";var tI=Ar(),Rme=ni(),zme=Le();aI.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(S,D){return zme.coerce2(r,t,n.attributes,S,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=tI.mix(i,n.bgColor,n.blend||Rme.lightFraction),c=l("gridcolor",f),v=l("gridwidth"),h=l("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!h);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=tI.mix(t.gridcolor,n.bgColor,67),y=l("minor.gridcolor",m),x=l("minor.gridwidth",t.gridwidth||1),_=l("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!y||!!x||!!_);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=l("zerolinelayer"),M=l("zerolinecolor",i),k=l("zerolinewidth"),A=a("zeroline",n.showGrid||!!M||!!k);A||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var Zm=B((fMe,fI)=>{"use strict";var iI=Br(),Nme=Mr(),sd=Le(),Fme=vt(),Ime=si(),e6=Bn(),lI=H1(),oI=O1(),Hme=Y1(),Ome=G1(),Bme=rI(),Yme=nI(),Gme=Bb(),sI=ap(),Wm=ba().WEEKDAY_PATTERN,Ume=ba().HOUR_PATTERN;fI.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var h=Nme.getComponentMethod("calendars","handleDefaults");h(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=sd.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:l==="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",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),sI(t,i),Gme(r,t,a,n),Bme(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==e6.color.dflt?m:o.color,x=s.label||i._dfltTitle[l];if(Ome(r,t,a,c,n),!u)return t;a("title.text",x),sd.coerceFont(a,"title.font",o,{overrideDflt:{size:sd.bigFont(o.size),color:y}}),lI(r,t,a,c);var _=n.hasMinor;if(_&&(Fme.newContainer(t,"minor"),lI(r,t,a,c,{isMinor:!0})),Hme(r,t,a,c,n),oI(r,t,a,n),_){var w=n.isMinor;n.isMinor=!0,oI(r,t,a,n),n.isMinor=w}Yme(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:_,attributes:e6}),_&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=c==="multicategory";if(!n.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Ime(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Vme}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k<t.rangebreaks.length;k++)if(t.rangebreaks[k].pattern===Wm){t._hasDayOfWeekBreaks=!0;break}if(sI(t,i),i._has("scattergl")||i._has("splom"))for(var A=0;A<n.data.length;A++){var S=n.data[A];(S.type==="scattergl"||S.type==="splom")&&(S.visible=!1,sd.warn(S.type+" traces do not work on axes with rangebreaks. Setting trace "+S.index+" to `visible: false`."))}}return t};function Vme(e,r,t){function a(v,h){return sd.coerce(e,r,e6.rangebreaks,v,h)}var n=a("enabled");if(n){var i=a("bounds");if(i&&i.length>=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=uI(i[o]),s){l=Wm;break}}var u=a("pattern",l);if(u===Wm)for(o=0;o<2;o++)s=uI(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case Wm:if(!iI(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case Ume:if(!iI(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=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 Xme={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function uI(e){if(typeof e=="string")return Xme[e.slice(0,3).toLowerCase()]}});var $m=B((cMe,cI)=>{"use strict";var Wme=Br(),Jm=Le();cI.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,h,p,m;s&&(c=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[o+"side"].split(" ")[0],h=s.domain[o][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(Wme(r.position)?"free":i[0]||"free"),v=v||(o==="x"?"bottom":"left"),h=h||0,p=0,m=!1;var y=Jm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=Jm.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(y==="free"){if(o==="y"){var _=a("autoshift");_&&(h=x==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=x==="left"?-3:3),a("shift",p)}a("position",h)}a("automargin",m);var w=!1;if(l.length&&(w=Jm.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!w){var b=a("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),Jm.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var xI=B((vMe,bI)=>{"use strict";var du=Le(),vI=Ar(),Zme=Oi().isUnifiedHover,Jme=hx(),dI=vt(),$me=wf(),hI=Bn(),Kme=jF(),pI=Zm(),Qme=lu(),mI=$m(),t6=na(),Ml=t6.id2name,yI=t6.name2id,jme=ba().AX_ID_PATTERN,gI=Mr(),Km=gI.traceIs,r6=gI.getComponentMethod;function Qm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}bI.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},c={},v={},h={},p={},m,y;for(m=0;m<a.length;m++){var x=a[m];if(Km(x,"cartesian")){var _;if(x.xaxis)_=Ml(x.xaxis),Qm(i,_,x);else if(x.xaxes)for(y=0;y<x.xaxes.length;y++)Qm(i,Ml(x.xaxes[y]),x);var w;if(x.yaxis)w=Ml(x.yaxis),Qm(i,w,x);else if(x.yaxes)for(y=0;y<x.yaxes.length;y++)Qm(i,Ml(x.yaxes[y]),x);if(x.type==="funnel"?x.orientation==="h"?(_&&(l[_]=!0),w&&(c[w]=!0)):w&&(o[w]=!0):x.type==="image"?(w&&(v[w]=!0),_&&(v[_]=!0)):(w&&(u[w]=!0,f[w]=!0),(!Km(x,"carpet")||x.type==="carpet"&&!x._cheater)&&_&&(s[_]=!0)),x.type==="carpet"&&x._cheater&&_&&(l[_]=!0),Km(x,"2dMap")&&(h[_]=!0,h[w]=!0),Km(x,"oriented")){var b=x.orientation==="h"?w:_;p[b]=!0}}}var M=t._subplots,k=M.xaxis,A=M.yaxis,S=du.simpleMap(k,Ml),D=du.simpleMap(A,Ml),E=S.concat(D),R=vI.background;k.length&&A.length&&(R=du.coerce(r,t,$me,"plot_bgcolor"));var N=vI.combine(R,t.paper_bgcolor),I,H,O,G,Y;function V(){var ye=i[I]||[];Y._traceIndices=ye.map(function(Ve){return Ve.index}),Y._annIndices=[],Y._shapeIndices=[],Y._selectionIndices=[],Y._imgIndices=[],Y._subplotsWith=[],Y._counterAxes=[],Y._name=Y._attr=I,Y._id=H}function U(ye,Ve){return du.coerce(G,Y,hI,ye,Ve)}function Z(ye,Ve){return du.coerce2(G,Y,hI,ye,Ve)}function X(ye){return ye==="x"?A:k}function $(ye,Ve){for(var dr=ye==="x"?S:D,Ee=[],pe=0;pe<dr.length;pe++){var we=dr[pe];we!==Ve&&!(r[we]||{}).overlaying&&Ee.push(yI(we))}return Ee}var ae={x:X("x"),y:X("y")},ie=ae.x.concat(ae.y),ve={},K=[];function he(){var ye=G.matches;jme.test(ye)&&ie.indexOf(ye)===-1&&(ve[ye]=G.type,K=Object.keys(ve))}var oe=Jme(r,t),be=Zme(oe);for(m=0;m<E.length;m++){I=E[m],H=yI(I),O=I.charAt(0),du.isPlainObject(r[I])||(r[I]={}),G=r[I],Y=dI.newContainer(t,I,O+"axis"),V();var me=O==="x"&&!s[I]&&l[I]||O==="y"&&!u[I]&&o[I],ce=O==="y"&&(!f[I]&&c[I]||v[I]),Me={hasMinor:!0,letter:O,font:t.font,outerTicks:h[I],showGrid:!p[I],data:i[I]||[],bgColor:N,calendar:t.calendar,automargin:!0,visibleDflt:me,reverseDflt:ce,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[O]||{})[H],noAutotickangles:O==="y"};U("uirevision",t.uirevision),Kme(G,Y,U,Me),pI(G,Y,U,Me,t);var De=be&&O===oe.charAt(0),Te=Z("spikecolor",be?Y.color:void 0),Pe=Z("spikethickness",be?1.5:void 0),Se=Z("spikedash",be?"dot":void 0),ke=Z("spikemode",be?"across":void 0),ze=Z("spikesnap"),Ge=U("showspikes",!!De||!!Te||!!Pe||!!Se||!!ke||!!ze);Ge||(delete Y.spikecolor,delete Y.spikethickness,delete Y.spikedash,delete Y.spikemode,delete Y.spikesnap);var Ce=Ml(G.overlaying),$e=[0,1];if(t[Ce]!==void 0){var Ke=Ml(t[Ce].anchor);t[Ke]!==void 0&&($e=t[Ke].domain)}mI(G,Y,U,{letter:O,counterAxes:ae[O],overlayableAxes:$(O,I),grid:t.grid,overlayingDomain:$e}),U("title.standoff"),he(),Y._input=G}for(m=0;m<K.length;){H=K[m++],I=Ml(H),O=I.charAt(0),du.isPlainObject(r[I])||(r[I]={}),G=r[I],Y=dI.newContainer(t,I,O+"axis"),V();var Xe={letter:O,font:t.font,outerTicks:h[I],showGrid:!p[I],data:[],bgColor:N,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[O]||{})[H]};U("uirevision",t.uirevision),Y.type=ve[H]||"linear",pI(G,Y,U,Xe,t),mI(G,Y,U,{letter:O,counterAxes:ae[O],overlayableAxes:$(O,I),grid:t.grid}),U("fixedrange"),U("modebardisable"),he(),Y._input=G}var Ae=r6("rangeslider","handleDefaults"),Re=r6("rangeselector","handleDefaults");for(m=0;m<S.length;m++)I=S[m],G=r[I],Y=t[I],Ae(r,t,I),Y.type==="date"&&Re(G,Y,t,D,Y.calendar),U("fixedrange"),U("modebardisable");for(m=0;m<D.length;m++){I=D[m],G=r[I],Y=t[I];var Qe=t[Ml(Y.anchor)],re=r6("rangeslider","isVisible")(Qe);U("fixedrange",re),U("modebardisable")}Qme.handleDefaults(r,t,{axIds:ie.concat(K).sort(t6.idSort),axHasImage:v})}});var TI=B((dMe,wI)=>{"use strict";var eye=Dr(),_I=Mr(),jm=Le(),Jn=Vr(),ey=Jr();wI.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){ey.redrawComponents(r);return}function l(y){var x=y.xaxis,_=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Jn.setTranslate,0,0).call(Jn.setScale,1,1),y.plot.call(Jn.setTranslate,x._offset,_._offset).call(Jn.setScale,1,1);var w=y.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(Jn.setPointGroupScale,1,1),w.selectAll(".textpoint").call(Jn.setTextPointsScale,1,1),w.call(Jn.hideOutsideRangePoints,y)}function o(y,x){var _=y.plotinfo,w=_.xaxis,b=_.yaxis,M=w._length,k=b._length,A=!!y.xr1,S=!!y.yr1,D=[];if(A){var E=jm.simpleMap(y.xr0,w.r2l),R=jm.simpleMap(y.xr1,w.r2l),N=E[1]-E[0],I=R[1]-R[0];D[0]=(E[0]*(1-x)+x*R[0]-E[0])/(E[1]-E[0])*M,D[2]=M*(1-x+x*I/N),w.range[0]=w.l2r(E[0]*(1-x)+x*R[0]),w.range[1]=w.l2r(E[1]*(1-x)+x*R[1])}else D[0]=0,D[2]=M;if(S){var H=jm.simpleMap(y.yr0,b.r2l),O=jm.simpleMap(y.yr1,b.r2l),G=H[1]-H[0],Y=O[1]-O[0];D[1]=(H[1]*(1-x)+x*O[1]-H[1])/(H[0]-H[1])*k,D[3]=k*(1-x+x*Y/G),b.range[0]=w.l2r(H[0]*(1-x)+x*O[0]),b.range[1]=b.l2r(H[1]*(1-x)+x*O[1])}else D[1]=0,D[3]=k;ey.drawOne(r,w,{skipTitle:!0}),ey.drawOne(r,b,{skipTitle:!0}),ey.redrawComponents(r,[w._id,b._id]);var V=A?M/D[2]:1,U=S?k/D[3]:1,Z=A?D[0]:0,X=S?D[1]:0,$=A?D[0]/D[2]*M:0,ae=S?D[1]/D[3]*k:0,ie=w._offset-$,ve=b._offset-ae;_.clipRect.call(Jn.setTranslate,Z,X).call(Jn.setScale,1/V,1/U),_.plot.call(Jn.setTranslate,ie,ve).call(Jn.setScale,V,U),Jn.setPointGroupScale(_.zoomScalePts,1/V,1/U),Jn.setTextPointsScale(_.zoomScaleTxt,1/V,1/U)}var s;n&&(s=n());function u(){for(var y={},x=0;x<t.length;x++){var _=t[x],w=_.plotinfo.xaxis,b=_.plotinfo.yaxis;_.xr1&&(y[w._name+".range"]=_.xr1.slice()),_.yr1&&(y[b._name+".range"]=_.yr1.slice())}return s&&s(),_I.call("relayout",r,y).then(function(){for(var M=0;M<t.length;M++)l(t[M].plotinfo)})}function f(){for(var y={},x=0;x<t.length;x++){var _=t[x],w=_.plotinfo.xaxis,b=_.plotinfo.yaxis;_.xr0&&(y[w._name+".range"]=_.xr0.slice()),_.yr0&&(y[b._name+".range"]=_.yr0.slice())}return _I.call("relayout",r,y).then(function(){for(var M=0;M<t.length;M++)l(t[M].plotinfo)})}var c,v,h,p=eye.ease(a.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(h),h=null,f()});function m(){v=Date.now();for(var y=Math.min(1,(v-c)/a.duration),x=p(y),_=0;_<t.length;_++)o(t[_],x);v-c>a.duration?(u(),h=window.cancelAnimationFrame(m)):h=window.requestAnimationFrame(m)}return c=Date.now(),h=window.requestAnimationFrame(m),Promise.resolve()}});var Wl=B(Xa=>{"use strict";var ty=Dr(),MI=Mr(),hu=Le(),rye=Gt(),tye=Vr(),AI=D5().getModuleCalcData,Bo=na(),Zi=ba(),aye=Hs(),$r=hu.ensureSingle;function ry(e,r,t){return hu.ensureSingle(e,r,t,function(a){a.datum(t)})}var pu=Zi.zindexSeparator;Xa.name="cartesian";Xa.attr=["xaxis","yaxis"];Xa.idRoot=["x","y"];Xa.idRegex=Zi.idRegex;Xa.attrRegex=Zi.attrRegex;Xa.attributes=JF();Xa.layoutAttributes=Bn();Xa.supplyLayoutDefaults=xI();Xa.transitionAxes=TI();Xa.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,c;for(u=0;u<l.length;u++){var v=l[u].split("y");o[v[0]]=1,s["y"+v[1]]=1}for(u=0;u<a.length;u++)f=a[u],o[f]||(c=(e[Bo.id2name(f)]||{}).anchor,Zi.idRegex.y.test(c)||(c="y"),i.push(f+c),l.push(f+c),s[c]||(s[c]=1,hu.pushUnique(n,c)));for(u=0;u<n.length;u++)c=n[u],s[c]||(f=(e[Bo.id2name(c)]||{}).anchor,Zi.idRegex.x.test(f)||(f="x"),i.push(f+c),l.push(f+c),o[f]||(o[f]=1,hu.pushUnique(a,f)));if(!l.length){f="",c="";for(var h in e)if(Zi.attrRegex.test(h)){var p=h.charAt(0);p==="x"?(!f||+h.slice(5)<+f.slice(5))&&(f=h):(!c||+h.slice(5)<+c.slice(5))&&(c=h)}f=f?Bo.name2id(f):"x",c=c?Bo.name2id(c):"y",a.push(f),n.push(c),i.push(f+c)}};Xa.plot=function(e,r,t,a){var n=e._fullLayout,i=n._subplots.cartesian,l=e.calcdata,o;if(!Array.isArray(r))for(r=[],o=0;o<l.length;o++)r.push(o);for(var s=n._zindices,u=0;u<s.length;u++){var f=s[u];for(o=0;o<i.length;o++){var c=i[o],v=n._plots[c];if(u>0){var h=v.id;if(h.indexOf(pu)!==-1)continue;h+=pu+(u+1),v=hu.extendFlat({},v,{id:h,plot:n._cartesianlayer.selectAll(".subplot").select("."+h)})}for(var p=[],m,y=0;y<l.length;y++){var x=l[y],_=x[0].trace;f===(_.zorder||0)&&_.xaxis+_.yaxis===c&&((r.indexOf(_.index)!==-1||_.carpet)&&(m&&m[0].trace.xaxis+m[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(_.fill)!==-1&&p.indexOf(m)===-1&&p.push(m),p.push(x)),m=x)}kI(e,v,p,t,a)}}};function kI(e,r,t,a,n){for(var i=Zi.traceLayerClasses,l=e._fullLayout,o=l._zindices,s=l._modules,u,f,c,v=[],h=[],p=0;p<o.length;p++)for(var m=o[p],y=0;y<s.length;y++){u=s[y];var x=u.name,_=MI.modules[x].categories;if(_.svg){var w=u.layerName||x+"layer",b=w+(p?Number(p)+1:""),M=u.plot;f=AI(t,M,m),c=f[0],t=f[1],c.length&&v.push({i:i.indexOf(w),zindex:p,className:b,plotMethod:M,cdModule:c}),_.zoomScale&&h.push("."+b)}}v.sort(function(S,D){return(S.zindex||0)-(D.zindex||0)||S.i-D.i});var k=r.plot.selectAll("g.mlayer").data(v,function(S){return S.className});if(k.enter().append("g").attr("class",function(S){return S.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),k.exit().remove(),k.order(),k.each(function(S){var D=ty.select(this),E=S.className;S.plotMethod(e,r,S.cdModule,D,a,n),Zi.clipOnAxisFalseQuery.indexOf("."+E)===-1&&tye.setClipUrl(D,r.layerClipId,e)}),l._has("scattergl")&&(u=MI.getModule("scattergl"),c=AI(t,u)[0],u.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(Zi.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),h.length)){var A=r.plot.selectAll(h.join(",")).selectAll(".trace");r.zoomScalePts=A.selectAll("path.point"),r.zoomScaleTxt=A.selectAll(".textpoint")}}Xa.clean=function(e,r,t,a){var n=a._plots||{},i=r._plots||{},l=a._subplots||{},o,s,u;if(a._hasOnlyLargeSploms&&!r._hasOnlyLargeSploms)for(u in n)o=n[u],o.plotgroup&&o.plotgroup.remove();var f=a._has&&a._has("gl"),c=r._has&&r._has("gl");if(f&&!c)for(u in n)o=n[u],o._scene&&o._scene.destroy();if(l.xaxis&&l.yaxis){var v=Bo.listIds({_fullLayout:a});for(s=0;s<v.length;s++){var h=v[s];r[Bo.id2name(h)]||a._infolayer.selectAll(".g-"+h+"title").remove()}}var p=a._has&&a._has("cartesian"),m=r._has&&r._has("cartesian");if(p&&!m)LI(a._cartesianlayer.selectAll(".subplot"),a),a._defs.selectAll(".axesclip").remove(),delete a._axisConstraintGroups,delete a._axisMatchGroups;else if(l.cartesian)for(s=0;s<l.cartesian.length;s++){var y=l.cartesian[s];if(y.indexOf(pu)===-1&&!i[y]){var x="."+y+",."+y+"-x,."+y+"-y";a._cartesianlayer.selectAll(x).remove(),SI(y,a)}}};Xa.drawFramework=function(e){var r=e._fullLayout,t=e.calcdata,a,n={};for(a=0;a<t.length;a++){var i=t[a][0],l=i.trace,o=l.zorder||0;n[o]||(n[o]=[]),n[o].push(i)}var s=Object.keys(n).map(Number).sort(hu.sorterAsc);s.length||(s=[0]),r._zindices=s;var u=nye(e),f=u.length,c=[];for(a=0;a<f;a++)c[a]=u[a].slice();for(var v=1;v<s.length;v++){var h=[];for(a=0;a<f;a++)h[a]=u[a].slice(),h[a][0]+=pu+(v+1);c=c.concat(h)}var p=r._cartesianlayer.selectAll(".subplot").data(c,String);p.enter().append("g").attr("class",function(m){return"subplot "+m[0]}),p.order(),p.exit().call(LI,r),p.each(function(m){var y=m[0],x=y.indexOf(pu),_=x!==-1,w=_?y.slice(0,x):y,b=r._plots[y];b||(b=hu.extendFlat({},r._plots[w]),b&&(b.id=y,r._plots[y]=b,r._subplots.cartesian.push(y))),b&&(b.plotgroup=ty.select(this),CI(e,b),_||(b.draglayer=$r(r._draggers,"g",y)))})};Xa.rangePlot=function(e,r,t){CI(e,r),kI(e,r,t),rye.style(e)};function nye(e){var r=e._fullLayout,t=r._zindices.length,a=r._subplots.cartesian,n=a.length,i,l,o,s,u,f,c=[],v=[];for(i=0;i<n;i++){o=a[i],s=r._plots[o],u=s.xaxis,f=s.yaxis;var h=u._mainAxis,p=f._mainAxis,m=h._id+p._id,y=r._plots[m];s.overlays=[],m!==o&&y?(s.mainplot=m,s.mainplotinfo=y,v.push(o)):(s.mainplot=void 0,s.mainplotinfo=void 0,c.push(o))}for(i=0;i<v.length;i++)o=v[i],s=r._plots[o],s.mainplotinfo.overlays.push(s);var x=c.concat(v),_=[];for(i=0;i<n;i++){o=x[i],s=r._plots[o],u=s.xaxis,f=s.yaxis;for(var w=[],b=1;b<=t;b++){var M="";for(b>1&&(M+=pu+b),w.push(o+M),l=0;l<s.overlays.length;l++)w.push(s.overlays[l].id+M)}w=w.concat([u.layer,f.layer,u.overlaying||"",f.overlaying||""]),_.push(w)}return _}function CI(e,r){var t=e._fullLayout,a=r.plotgroup,n=r.id,i=n.indexOf(pu),l=i!==-1,o=Zi.layerValue2layerClass[r.xaxis.layer],s=Zi.layerValue2layerClass[r.yaxis.layer],u=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=$r(a,"path","xlines-above"),r.ylines=$r(a,"path","ylines-above"),r.xaxislayer=$r(a,"g","xaxislayer-above"),r.yaxislayer=$r(a,"g","yaxislayer-above");else{if(!l){var v=$r(a,"g","layer-subplot");r.shapelayer=$r(v,"g","shapelayer"),r.imagelayer=$r(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=$r(a,"g","minor-gridlayer"),r.gridlayer=$r(a,"g","gridlayer"),r.zerolinelayer=$r(a,"g","zerolinelayer"));var h=$r(a,"g","layer-between");r.shapelayerBetween=$r(h,"g","shapelayer"),r.imagelayerBetween=$r(h,"g","imagelayer"),$r(a,"path","xlines-below"),$r(a,"path","ylines-below"),r.overlinesBelow=$r(a,"g","overlines-below"),$r(a,"g","xaxislayer-below"),$r(a,"g","yaxislayer-below"),r.overaxesBelow=$r(a,"g","overaxes-below")}r.overplot=$r(a,"g","overplot"),r.plot=$r(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=$r(a,"g","zerolinelayer-above"),l||(r.xlines=$r(a,"path","xlines-above"),r.ylines=$r(a,"path","ylines-above"),r.overlinesAbove=$r(a,"g","overlines-above"),$r(a,"g","xaxislayer-above"),$r(a,"g","yaxislayer-above"),r.overaxesAbove=$r(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,$r(c.overlinesBelow,"path",m),$r(c.overlinesBelow,"path",y),$r(c.overaxesBelow,"g",m),$r(c.overaxesBelow,"g",y),r.plot=$r(c.overplot,"g",n),$r(c.overlinesAbove,"path",m),$r(c.overlinesAbove,"path",y),$r(c.overaxesAbove,"g",m),$r(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+o).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+o).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}l||(u||(ry(r.minorGridlayer,"g",r.xaxis._id),ry(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(Bo.idSort),ry(r.gridlayer,"g",r.xaxis._id),ry(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(x){return x[0]}).sort(Bo.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function LI(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=ty.select(this);f.remove(),SI(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l<i.length;l++){var o=i[l];t[o.id]&&o.plot.selectAll(".trace").remove()}}}function SI(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}Xa.toSVG=function(e){var r=e._fullLayout._glimages,t=ty.select(e).selectAll(".svg-container"),a=t.filter(function(i,l){return l===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,l=i.toDataURL("image/png"),o=r.append("svg:image");o.attr({xmlns:aye.svg,"xlink:href":l,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n)};Xa.updateFx=h4().updateFx});var DI=B((pMe,qI)=>{"use strict";var ay=Yn();qI.exports={hasLines:ay.hasLines,hasMarkers:ay.hasMarkers,hasText:ay.hasText,isBubble:ay.isBubble,attributes:Ui(),layoutAttributes:q1(),supplyDefaults:UN(),crossTraceDefaults:WN(),supplyLayoutDefaults:JN(),calc:O4().calc,crossTraceCalc:_F(),arraysToCalcdata:z4(),plot:zF(),colorbar:Gm(),formatLabels:IF(),style:K4().style,styleOnSelect:K4().styleOnSelect,hoverPoints:UF(),selectPoints:WF(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Wl(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var RI=B((mMe,PI)=>{"use strict";var iye=Dr(),lye=Ar(),EI=n4(),a6=Le(),oye=a6.strScale,sye=a6.strRotate,uye=a6.strTranslate;PI.exports=function(r,t,a){var n=r.node(),i=EI[a.arrowhead||0],l=EI[a.startarrowhead||0],o=(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*o+a.standoff,v=l.backoff*s+a.startstandoff,h,p,m,y;if(n.nodeName==="line"){h={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var x=h.x-p.x,_=h.y-p.y;if(m=Math.atan2(_,x),y=m+Math.PI,c&&v&&c+v>Math.sqrt(x*x+_*_)){H();return}if(c){if(c*c>x*x+_*_){H();return}var w=c*Math.cos(m),b=c*Math.sin(m);p.x+=w,p.y+=b,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>x*x+_*_){H();return}var M=v*Math.cos(m),k=v*Math.sin(m);h.x-=M,h.y-=k,r.attr({x1:h.x,y1:h.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),S="";if(A<c+v){H();return}var D=n.getPointAtLength(0),E=n.getPointAtLength(.1);m=Math.atan2(D.y-E.y,D.x-E.x),h=n.getPointAtLength(Math.min(v,A)),S="0px,"+v+"px,";var R=n.getPointAtLength(A),N=n.getPointAtLength(A-.1);y=Math.atan2(R.y-N.y,R.x-N.x),p=n.getPointAtLength(Math.max(0,A-c));var I=S?v+c:c;S+=A-I+"px,"+A+"px",r.style("stroke-dasharray",S)}function H(){r.style("stroke-dasharray","0px,100px")}function O(G,Y,V,U){G.path&&(G.noRotate&&(V=0),iye.select(n.parentNode).append("path").attr({class:r.attr("class"),d:G.path,transform:uye(Y.x,Y.y)+sye(V*180/Math.PI)+oye(U)}).style({fill:lye.rgb(a.arrowcolor),"stroke-width":0}))}u&&O(l,h,m,s),f&&O(i,p,y,o)}});var ny=B((yMe,HI)=>{"use strict";var zI=Dr(),n6=Mr(),fye=Gt(),Go=Le(),i6=Go.strTranslate,fd=Jr(),mu=Ar(),Zl=Vr(),NI=vi(),l6=da(),o6=Eo(),ud=Yi(),cye=vt().arrayEditor,vye=RI();HI.exports={draw:dye,drawOne:FI,drawRaw:II};function dye(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&FI(e,t);return fye.previousPromises(e)}function FI(e,r){var t=e._fullLayout,a=t.annotations[r]||{},n=fd.getFromId(e,a.xref),i=fd.getFromId(e,a.yref);n&&n.setScale(),i&&i.setScale(),II(e,a,r,!1,n,i)}function Yo(e,r,t,a,n){var i=n[t],l=n[t+"ref"],o=t.indexOf("y")!==-1,s=fd.getRefType(l)==="domain",u=o?a.h:a.w;return e?s?i+(o?-r:r)/e._length:e.p2r(e.r2p(i)+r):i+(o?-r:r)/u}function II(e,r,t,a,n,i){var l=e._fullLayout,o=e._fullLayout._size,s=e._context.edits,u,f;a?(u="annotation-"+a,f=a+".annotations"):(u="annotation",f="annotations");var c=cye(e.layout,f,r),v=c.modifyBase,h=c.modifyItem,p=c.getUpdateObj;l._infolayer.selectAll("."+u+'[data-index="'+t+'"]').remove();var m="clip"+l._uid+"_ann"+t;if(!r._input||r.visible===!1){zI.selectAll("#"+m).remove();return}var y={x:{},y:{}},x=+r.textangle||0,_=l._infolayer.append("g").classed(u,!0).attr("data-index",String(t)).style("opacity",r.opacity),w=_.append("g").classed("annotation-text-g",!0),b=s[r.showarrow?"annotationTail":"annotationPosition"],M=r.captureevents||s.annotationText||b;function k(U){var Z={index:t,annotation:r._input,fullAnnotation:r,event:U};return a&&(Z.subplotId=a),Z}var A=w.append("g").style("pointer-events",M?"all":null).call(o6,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",k(zI.event))});r.hovertext&&A.on("mouseover",function(){var U=r.hoverlabel,Z=U.font,X=this.getBoundingClientRect(),$=e.getBoundingClientRect();NI.loneHover({x0:X.left-$.left,x1:X.right-$.left,y:(X.top+X.bottom)/2-$.top,text:r.hovertext,color:U.bgcolor,borderColor:U.bordercolor,fontFamily:Z.family,fontSize:Z.size,fontColor:Z.color,fontWeight:Z.weight,fontStyle:Z.style,fontVariant:Z.variant,fontShadow:Z.fontShadow,fontLineposition:Z.fontLineposition,fontTextcase:Z.fontTextcase},{container:l._hoverlayer.node(),outerContainer:l._paper.node(),gd:e})}).on("mouseout",function(){NI.loneUnhover(l._hoverlayer.node())});var S=r.borderwidth,D=r.borderpad,E=S+D,R=A.append("rect").attr("class","bg").style("stroke-width",S+"px").call(mu.stroke,r.bordercolor).call(mu.fill,r.bgcolor),N=r.width||r.height,I=l._topclips.selectAll("#"+m).data(N?[0]:[]);I.enter().append("clipPath").classed("annclip",!0).attr("id",m).append("rect"),I.exit().remove();var H=r.font,O=l._meta?Go.templateString(r.text,l._meta):r.text,G=A.append("text").classed("annotation-text",!0).text(O);function Y(U){return U.call(Zl.font,H).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),l6.convertToTspans(U,e,V),U}function V(){var U=G.selectAll("a");if(U.size()===1&&U.text()===G.text()){var Z=A.insert("a",":first-child").attr({"xlink:xlink:href":U.attr("xlink:href"),"xlink:xlink:show":U.attr("xlink:show")}).style({cursor:"pointer"});Z.node().appendChild(R.node())}var X=A.select(".annotation-text-math-group"),$=!X.empty(),ae=Zl.bBox(($?X:G).node()),ie=ae.width,ve=ae.height,K=r.width||ie,he=r.height||ve,oe=Math.round(K+2*E),be=Math.round(he+2*E);function me(hr,br){return br==="auto"&&(hr<1/3?br="left":hr>2/3?br="right":br="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[br]}for(var ce=!1,Me=["x","y"],De=0;De<Me.length;De++){var Te=Me[De],Pe=r[Te+"ref"]||Te,Se=r["a"+Te+"ref"],ke={x:n,y:i}[Te],ze=(x+(Te==="x"?0:-90))*Math.PI/180,Ge=oe*Math.cos(ze),Ce=be*Math.sin(ze),$e=Math.abs(Ge)+Math.abs(Ce),Ke=r[Te+"anchor"],Xe=r[Te+"shift"]*(Te==="x"?1:-1),Ae=y[Te],Re,Qe,re,ye,Ve,dr=fd.getRefType(Pe);if(ke&&dr!=="domain"){var Ee=ke.r2fraction(r[Te]);(Ee<0||Ee>1)&&(Se===Pe?(Ee=ke.r2fraction(r["a"+Te]),(Ee<0||Ee>1)&&(ce=!0)):ce=!0),Re=ke._offset+ke.r2p(r[Te]),ye=.5}else{var pe=dr==="domain";Te==="x"?(re=r[Te],Re=pe?ke._offset+ke._length*re:Re=o.l+o.w*re):(re=1-r[Te],Re=pe?ke._offset+ke._length*re:Re=o.t+o.h*re),ye=r.showarrow?.5:re}if(r.showarrow){Ae.head=Re;var we=r["a"+Te];if(Ve=Ge*me(.5,r.xanchor)-Ce*me(.5,r.yanchor),Se===Pe){var Oe=fd.getRefType(Se);Oe==="domain"?(Te==="y"&&(we=1-we),Ae.tail=ke._offset+ke._length*we):Oe==="paper"?Te==="y"?(we=1-we,Ae.tail=o.t+o.h*we):Ae.tail=o.l+o.w*we:Ae.tail=ke._offset+ke.r2p(we),Qe=Ve}else Ae.tail=Re+we,Qe=Ve+we;Ae.text=Ae.tail+Ve;var We=l[Te==="x"?"width":"height"];if(Pe==="paper"&&(Ae.head=Go.constrain(Ae.head,1,We-1)),Se==="pixel"){var Ie=-Math.max(Ae.tail-3,Ae.text),Ue=Math.min(Ae.tail+3,Ae.text)-We;Ie>0?(Ae.tail+=Ie,Ae.text+=Ie):Ue>0&&(Ae.tail-=Ue,Ae.text-=Ue)}Ae.tail+=Xe,Ae.head+=Xe}else Ve=$e*me(ye,Ke),Qe=Ve,Ae.text=Re+Ve;Ae.text+=Xe,Ve+=Xe,Qe+=Xe,r["_"+Te+"padplus"]=$e/2+Qe,r["_"+Te+"padminus"]=$e/2-Qe,r["_"+Te+"size"]=$e,r["_"+Te+"shift"]=Ve}if(ce){A.remove();return}var ar=0,ir=0;if(r.align!=="left"&&(ar=(K-ie)*(r.align==="center"?.5:1)),r.valign!=="top"&&(ir=(he-ve)*(r.valign==="middle"?.5:1)),$)X.select("svg").attr({x:E+ar-1,y:E+ir}).call(Zl.setClipUrl,N?m:null,e);else{var ur=E+ir-ae.top,qe=E+ar-ae.left;G.call(l6.positionText,qe,ur).call(Zl.setClipUrl,N?m:null,e)}I.select("rect").call(Zl.setRect,E,E,K,he),R.call(Zl.setRect,S/2,S/2,oe-S,be-S),A.call(Zl.setTranslate,Math.round(y.x.text-oe/2),Math.round(y.y.text-be/2)),w.attr({transform:"rotate("+x+","+y.x.text+","+y.y.text+")"});var Je=function(hr,br){_.selectAll(".annotation-arrow-g").remove();var sr=y.x.head,pr=y.y.head,te=y.x.tail+hr,de=y.y.tail+br,Ne=y.x.text+hr,Ye=y.y.text+br,Kr=Go.rotationXYMatrix(x,Ne,Ye),ut=Go.apply2DTransform(Kr),pt=Go.apply2DTransform2(Kr),Yt=+R.attr("width"),Rt=+R.attr("height"),Aa=Ne-.5*Yt,mn=Aa+Yt,oa=Ye-.5*Rt,fn=oa+Rt,Pn=[[Aa,oa,Aa,fn],[Aa,fn,mn,fn],[mn,fn,mn,oa],[mn,oa,Aa,oa]].map(pt);if(!Pn.reduce(function(_t,ta){return _t^!!Go.segmentsIntersect(sr,pr,sr+1e6,pr+1e6,ta[0],ta[1],ta[2],ta[3])},!1)){Pn.forEach(function(_t){var ta=Go.segmentsIntersect(te,de,sr,pr,_t[0],_t[1],_t[2],_t[3]);ta&&(te=ta.x,de=ta.y)});var Rn=r.arrowwidth,mr=r.arrowcolor,mt=r.arrowside,Qr=_.append("g").style({opacity:mu.opacity(mr)}).classed("annotation-arrow-g",!0),xt=Qr.append("path").attr("d","M"+te+","+de+"L"+sr+","+pr).style("stroke-width",Rn+"px").call(mu.stroke,mu.rgb(mr));if(vye(xt,mt,r),s.annotationPosition&&xt.node().parentNode&&!a){var zt=sr,St=pr;if(r.standoff){var ft=Math.sqrt(Math.pow(sr-te,2)+Math.pow(pr-de,2));zt+=r.standoff*(te-sr)/ft,St+=r.standoff*(de-pr)/ft}var sa=Qr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(te-zt)+","+(de-St),transform:i6(zt,St)}).style("stroke-width",Rn+6+"px").call(mu.stroke,"rgba(0,0,0,0)").call(mu.fill,"rgba(0,0,0,0)"),jn,Wt;ud.init({element:sa.node(),gd:e,prepFn:function(){var _t=Zl.getTranslate(A);jn=_t.x,Wt=_t.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(_t,ta){var aa=ut(jn,Wt),ds=aa[0]+_t,io=aa[1]+ta;A.call(Zl.setTranslate,ds,io),h("x",Yo(n,_t,"x",o,r)),h("y",Yo(i,ta,"y",o,r)),r.axref===r.xref&&h("ax",Yo(n,_t,"ax",o,r)),r.ayref===r.yref&&h("ay",Yo(i,ta,"ay",o,r)),Qr.attr("transform",i6(_t,ta)),w.attr({transform:"rotate("+x+","+ds+","+io+")"})},doneFn:function(){n6.call("_guiRelayout",e,p());var _t=document.querySelector(".js-notes-box-panel");_t&&_t.redraw(_t.selectedObj)}})}}};if(r.showarrow&&Je(0,0),b){var Fe;ud.init({element:A.node(),gd:e,prepFn:function(){Fe=w.attr("transform")},moveFn:function(hr,br){var sr="pointer";if(r.showarrow)r.axref===r.xref?h("ax",Yo(n,hr,"ax",o,r)):h("ax",r.ax+hr),r.ayref===r.yref?h("ay",Yo(i,br,"ay",o.w,r)):h("ay",r.ay+br),Je(hr,br);else{if(a)return;var pr,te;if(n)pr=Yo(n,hr,"x",o,r);else{var de=r._xsize/o.w,Ne=r.x+(r._xshift-r.xshift)/o.w-de/2;pr=ud.align(Ne+hr/o.w,de,0,1,r.xanchor)}if(i)te=Yo(i,br,"y",o,r);else{var Ye=r._ysize/o.h,Kr=r.y-(r._yshift+r.yshift)/o.h-Ye/2;te=ud.align(Kr-br/o.h,Ye,0,1,r.yanchor)}h("x",pr),h("y",te),(!n||!i)&&(sr=ud.getCursor(n?.5:pr,i?.5:te,r.xanchor,r.yanchor))}w.attr({transform:i6(hr,br)+Fe}),o6(A,sr)},clickFn:function(hr,br){r.captureevents&&e.emit("plotly_clickannotation",k(br))},doneFn:function(){o6(A),n6.call("_guiRelayout",e,p());var hr=document.querySelector(".js-notes-box-panel");hr&&hr.redraw(hr.selectedObj)}})}}s.annotationText?G.call(l6.makeEditable,{delegate:A,gd:e}).call(Y).on("edit",function(U){r.text=U,this.call(Y),h("text",U),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),n6.call("_guiRelayout",e,p())}):G.call(Y)}});var VI=B((gMe,UI)=>{"use strict";var OI=Le(),hye=Mr(),BI=vt().arrayEditor;UI.exports={hasClickToShow:pye,onClick:mye};function pye(e,r){var t=GI(e,r);return t.on.length>0||t.explicitOff.length>0}function mye(e,r){var t=GI(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o<a.length;o++)s=BI(e.layout,"annotations",l[a[o]]),s.modifyItem("visible",!0),OI.extendFlat(i,s.getUpdateObj());for(o=0;o<n.length;o++)s=BI(e.layout,"annotations",l[n[o]]),s.modifyItem("visible",!1),OI.extendFlat(i,s.getUpdateObj());return hye.call("update",e,{},i)}}function GI(e,r){var t=e._fullLayout.annotations,a=[],n=[],i=[],l=(r||[]).length,o,s,u,f,c,v,h,p;for(o=0;o<t.length;o++)if(u=t[o],f=u.clicktoshow,f){for(s=0;s<l;s++)if(c=r[s],v=c.xaxis,h=c.yaxis,v._id===u.xref&&h._id===u.yref&&v.d2r(c.x)===YI(u._xclick,v)&&h.d2r(c.y)===YI(u._yclick,h)){u.visible?f==="onout"?p=n:p=i:p=a,p.push(o);break}s===l&&u.visible&&f==="onout"&&n.push(o)}return{on:a,off:n,explicitOff:i}}function YI(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var u6=B((bMe,XI)=>{"use strict";var s6=Le(),yc=Ar();XI.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=yc.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),s6.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,h;c.indexOf("end")!==-1&&(v=n("arrowhead"),h=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",h)),n("arrowcolor",o?t.bordercolor:yc.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(yc.opacity(i)?yc.rgb(i):yc.defaultLine)),x=n("hoverlabel.bordercolor",m.bordercolor||yc.contrast(y)),_=s6.extendFlat({},m.font);_.color||(_.color=x),s6.coerceFont(n,"hoverlabel.font",_)}n("captureevents",!!p)}});var ZI=B((xMe,WI)=>{"use strict";var f6=Le(),yu=Jr(),yye=si(),gye=u6(),bye=ic();WI.exports=function(r,t){yye(r,t,{name:"annotations",handleItemDefaults:xye})};function xye(e,r,t){function a(w,b){return f6.coerce(e,r,bye,w,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){gye(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=o[f],v=yu.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var h=yu.getFromId(u,v);h._annIndices.push(r._index)}if(yu.coercePosition(r,u,a,v,c,.5),l){var p="a"+c,m=yu.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==v&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;yu.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(f6.noneOrAll(e,r,["x","y"]),l&&f6.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),_=a("yclick");r._xclick=x===void 0?r.x:yu.cleanPosition(x,u,r.xref),r._yclick=_===void 0?r.y:yu.cleanPosition(_,u,r.yref)}}}});var KI=B((_Me,$I)=>{"use strict";var c6=Le(),gu=Jr(),_ye=ny().draw;$I.exports=function(r){var t=r._fullLayout,a=c6.filterVisible(t.annotations);if(a.length&&r._fullData.length)return c6.syncOrAsync([_ye,wye],r)};function wye(e){var r=e._fullLayout;c6.filterVisible(r.annotations).forEach(function(t){var a=gu.getFromId(e,t.xref),n=gu.getFromId(e,t.yref),i=gu.getRefType(t.xref),l=gu.getRefType(t.yref);t._extremes={},i==="range"&&JI(t,a),l==="range"&&JI(t,n)})}function JI(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=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,v=c+f,h=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,y=p-f,x;if(o===l){var _=gu.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:h}),w=gu.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,y)});x={min:[_.min[0],w.min[0]],max:[_.max[0],w.max[0]]}}else m=i?m+i:m,y=i?y-i:y,x=gu.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,m),ppadminus:Math.max(u,h,y)});e._extremes[t]=x}});var jI=B((wMe,QI)=>{"use strict";var Tye=Br(),Mye=Sh();QI.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(h){var p=u[h],m=null;i?m=Mye(p,t.range):m=Math.pow(10,p),Tye(m)||(m=null),n(f+h,m)}for(var v=0;v<o.length;v++)u=o[v],f="annotations["+v+"].",u[s+"ref"]===t._id&&c(s),u["a"+s+"ref"]===t._id&&c("a"+s)}});var tH=B((TMe,rH)=>{"use strict";var v6=ny(),eH=VI();rH.exports={moduleType:"component",name:"annotations",layoutAttributes:ic(),supplyLayoutDefaults:ZI(),includeBasePlot:Uv()("annotations"),calcAutorange:KI(),draw:v6.draw,drawOne:v6.drawOne,drawRaw:v6.drawRaw,hasClickToShow:eH.hasClickToShow,onClick:eH.onClick,convertCoords:jI()}});var iy=B((MMe,aH)=>{"use strict";var gt=ic(),Aye=Ri().overrideAll,kye=vt().templatedArray;aH.exports=Aye(kye("annotation",{visible:gt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:gt.xanchor,xshift:gt.xshift,yanchor:gt.yanchor,yshift:gt.yshift,text:gt.text,textangle:gt.textangle,font:gt.font,width:gt.width,height:gt.height,opacity:gt.opacity,align:gt.align,valign:gt.valign,bgcolor:gt.bgcolor,bordercolor:gt.bordercolor,borderpad:gt.borderpad,borderwidth:gt.borderwidth,showarrow:gt.showarrow,arrowcolor:gt.arrowcolor,arrowhead:gt.arrowhead,startarrowhead:gt.startarrowhead,arrowside:gt.arrowside,arrowsize:gt.arrowsize,startarrowsize:gt.startarrowsize,arrowwidth:gt.arrowwidth,standoff:gt.standoff,startstandoff:gt.startstandoff,hovertext:gt.hovertext,hoverlabel:gt.hoverlabel,captureevents:gt.captureevents}),"calc","from-root")});var iH=B((AMe,nH)=>{"use strict";var d6=Le(),Cye=Jr(),Lye=si(),Sye=u6(),qye=iy();nH.exports=function(r,t,a){Lye(r,t,{name:"annotations",handleItemDefaults:Dye,fullLayout:a.fullLayout})};function Dye(e,r,t,a){function n(o,s){return d6.coerce(e,r,qye,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Cye.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Sye(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),d6.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),d6.noneOrAll(e,r,["ax","ay"])))}});var uH=B((kMe,sH)=>{"use strict";var lH=Le(),oH=Jr();sH.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n<a.length;n++)Eye(a[n],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function Eye(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={},lH.extendFlat(e._xa,i),oH.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={},lH.extendFlat(e._ya,i),oH.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 cH=B((CMe,fH)=>{"use strict";function h6(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 Pye(e,r){var t=h6(e.projection,h6(e.view,h6(e.model,[r[0],r[1],r[2],1])));return t}fH.exports=Pye});var dH=B((LMe,vH)=>{"use strict";var Rye=ny().drawRaw,zye=cH(),Nye=["x","y","z"];vH.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i<n.length;i++){for(var l=n[i],o=!1,s=0;s<3;s++){var u=Nye[s],f=l[u],c=t[u+"axis"],v=c.r2fraction(f);if(v<0||v>1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=zye(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),Rye(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var mH=B((SMe,pH)=>{"use strict";var Fye=Mr(),hH=Le();pH.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:iy()}}},layoutAttributes:iy(),handleDefaults:iH(),includeBasePlot:Iye,convert:uH(),draw:dH()};function Iye(e,r){var t=Fye.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i<n.length;i++){var l=n[i];a.test(l)&&(e[l].annotations||[]).length&&(hH.pushUnique(r._basePlotModules,t),hH.pushUnique(r._subplots.gl3d,l))}}});var p6=B((EMe,xH)=>{"use strict";var qMe=ba(),yH=ma(),gH=Ui().line,Hye=zi().dash,Ji=Tt().extendFlat,Oye=vt().templatedArray,DMe=Yv(),gc=xn(),bH=ic(),{shapeTexttemplateAttrs:Bye,templatefallbackAttrs:Yye}=Fn(),Gye=s1();xH.exports=Oye("shape",{visible:Ji({},gc.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ji({},gc.legend,{editType:"calc+arraydraw"}),legendgroup:Ji({},gc.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ji({},gc.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:yH({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ji({},gc.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ji({},gc.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:Ji({},bH.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:Ji({},bH.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:Ji({},gH.color,{editType:"arraydraw"}),width:Ji({},gH.width,{editType:"calc+arraydraw"}),dash:Ji({},Hye,{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:Bye({},{keys:Object.keys(Gye)}),texttemplatefallback:Yye({editType:"arraydraw"}),font:yH({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 wH=B((PMe,_H)=>{"use strict";var bc=Le(),$n=Jr(),Uye=si(),Vye=p6(),cd=Fo();_H.exports=function(r,t){Uye(r,t,{name:"shapes",handleItemDefaults:Wye})};function Xye(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Wye(e,r,t){function a(w,b){return bc.coerce(e,r,Vye,w,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),bc.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),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"),v=a("ysizemode");let h=[.25,.75],p=[0,10];["x","y"].forEach(w=>{var b=w+"anchor",M=w==="x"?c:v,k={_fullLayout:t},A,S,D,E;let R=w+"ref",N=e[R];if(Array.isArray(N)&&N.length>0){let I=cd.countDefiningCoords(s,l,w);E=$n.coerceRefArray(e,r,k,w,void 0,"paper",I),r["_"+w+"refArray"]=!0}else E=$n.coerceRef(e,r,k,w,void 0,"paper");if(Array.isArray(E))E.forEach(function(I){$n.getRefType(I)==="range"&&(A=$n.getFromId(k,I),A&&A._shapeIndices.indexOf(r._index)===-1&&A._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(I){let H=E[I];$n.getRefType(H)==="range"?(A=$n.getFromId(k,H),S=cd.shapePositionToRange(A),D=cd.rangeToShapePosition(A),(A.type==="category"||A.type==="multicategory")&&a(w+I+"shift")):S=D=bc.identity;let G=w+I,Y=e[G];if(e[G]=S(e[G],!0),M==="pixel"?a(G,p[I]):$n.coercePosition(r,k,a,H,G,h[I]),r[G]=D(r[G]),e[G]=Y,I===0&&M==="pixel"){let V=e[b];e[b]=S(e[b],!0),$n.coercePosition(r,k,a,H,b,.25),r[b]=D(r[b]),e[b]=V}});else{if($n.getRefType(E)==="range"?(A=$n.getFromId(k,E),A._shapeIndices.push(r._index),D=cd.rangeToShapePosition(A),S=cd.shapePositionToRange(A),u&&(A.type==="category"||A.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):S=D=bc.identity,u){let H=w+"0",O=w+"1",G=e[H],Y=e[O];e[H]=S(e[H],!0),e[O]=S(e[O],!0),M==="pixel"?(a(H,p[0]),a(O,p[1])):($n.coercePosition(r,k,a,E,H,h[0]),$n.coercePosition(r,k,a,E,O,h[1])),r[H]=D(r[H]),r[O]=D(r[O]),e[H]=G,e[O]=Y}if(M==="pixel"){let H=e[b];e[b]=S(e[b],!0),$n.coercePosition(r,k,a,E,b,.25),r[b]=D(r[b]),e[b]=H}}}),u&&bc.noneOrAll(e,r,["x0","x1","y0","y1"]);var m=s==="line",y,x;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(x=a("label.text")),x||y){a("label.textangle");var _=a("label.textposition",m?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Xye(m,_)),a("label.padding"),bc.coerceFont(a,"label.font",t.font)}}});var AH=B((RMe,MH)=>{"use strict";var Zye=Ar(),TH=Le();function Jye(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}MH.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"),TH.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",Zye.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Jye(l,u)),a("newshape.label.padding"),TH.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var EH=B((zMe,DH)=>{"use strict";var m6=Le(),Mi=Jr(),Al=Tv(),y6=Fo();DH.exports=function(r){var t=r._fullLayout,a=m6.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n<a.length;n++){var i=a[n];i._extremes={};var l,o,s=Mi.getRefType(i.xref),u=Mi.getRefType(i.yref);if(s==="array"){let f=kH(r,i,"x");Object.entries(f).forEach(([c,v])=>{l=Mi.getFromId(r,c),i._extremes[l._id]=Mi.findExtremes(l,v,CH(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=Mi.getFromId(r,i.xref),o=SH(l,i,Al.paramIsX),o&&(i._extremes[l._id]=Mi.findExtremes(l,o,CH(i))));if(u==="array"){let f=kH(r,i,"y");Object.entries(f).forEach(([c,v])=>{l=Mi.getFromId(r,c),i._extremes[l._id]=Mi.findExtremes(l,v,LH(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=Mi.getFromId(r,i.yref),o=SH(l,i,Al.paramIsY),o&&(i._extremes[l._id]=Mi.findExtremes(l,o,LH(i))))}};function kH(e,r,t){let a=r[t+"ref"],n=t==="x"?Al.paramIsX:Al.paramIsY;function i(c,v){c==="paper"||Mi.getRefType(c)==="domain"||(l[c]||(l[c]=[]),l[c].push(v))}let l={};if(r.type==="path"&&r.path){let c=r.path.match(Al.segmentRE)||[];for(var o=0,s=0;s<c.length;s++){let v=c[s],h=v.charAt(0),p=n[h].drawn;if(p===void 0)continue;let m=v.slice(1).match(Al.paramRE);m&&m.length>p&&(i(a[o],m[p]),o++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in l){let v=Mi.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=y6.decodeDate(f)),u[v._id]=l[c].map(f)}}return u}function CH(e){return qH(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function LH(e){return qH(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function qH(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?y6.extractPathCoords(n,i?Al.paramIsY:Al.paramIsX):[t,a],u=m6.aggNums(Math.max,null,s),f=m6.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+l:l,v=u>0?u+l:l;return{ppad:l,ppadplus:o?c:v,ppadminus:o?v:c}}else return{ppad:l}}function SH(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var c=1/0,v=-1/0,h=r.path.match(Al.segmentRE),p,m,y,x,_;for(e.type==="date"&&(u=y6.decodeDate(u)),p=0;p<h.length;p++)m=h[p],y=t[m.charAt(0)].drawn,y!==void 0&&(x=h[p].slice(1).match(Al.paramRE),!(!x||x.length<y)&&(_=u(x[y]),_<c&&(c=_),_>v&&(v=_)));if(v>=c)return[c,v]}}});var zH=B((NMe,RH)=>{"use strict";var PH=Xp();RH.exports={moduleType:"component",name:"shapes",layoutAttributes:p6(),supplyLayoutDefaults:wH(),supplyDrawNewShapeDefaults:AH(),includeBasePlot:Uv()("shapes"),calcAutorange:EH(),draw:PH.draw,drawOne:PH.drawOne}});var g6=B((IMe,FH)=>{"use strict";var NH=ba(),$ye=vt().templatedArray,FMe=Yv();FH.exports=$ye("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",NH.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",NH.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var HH=B((HMe,IH)=>{"use strict";var Kye=Le(),b6=Jr(),Qye=si(),jye=g6(),ege="images";IH.exports=function(r,t){var a={name:ege,handleItemDefaults:rge};Qye(r,t,a)};function rge(e,r,t){function a(v,h){return Kye.coerce(e,r,jye,v,h)}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 l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=b6.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=b6.getFromId(l,f);c._imgIndices.push(r._index)}b6.coercePosition(r,l,a,f,u,0)}return r}});var GH=B((OMe,YH)=>{"use strict";var OH=Dr(),tge=Vr(),xc=Jr(),BH=na(),age=Hs();YH.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o<t.images.length;o++){var s=t.images[o];if(s.visible)if(s.layer==="below"&&s.xref!=="paper"&&s.yref!=="paper"){l=BH.ref2id(s.xref)+BH.ref2id(s.yref);var u=t._plots[l];if(!u){i.push(s);continue}u.mainplot&&(l=u.mainplot.id),n[l]||(n[l]=[]),n[l].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(b){var M=OH.select(this);if(this._imgSrc!==b.source)if(M.attr("xmlns",age.svg),!r._context.staticPlot||b.source&&b.source.slice(0,5)==="data:")M.attr("xlink:href",b.source),this._imgSrc=b.source;else{var k=new Promise(function(A){var S=new Image;this.img=S,S.setAttribute("crossOrigin","anonymous"),S.onerror=D,S.onload=function(){var E=document.createElement("canvas");E.width=this.width,E.height=this.height;var R=E.getContext("2d",{willReadFrequently:!0});R.drawImage(this,0,0);var N=E.toDataURL("image/png");M.attr("xlink:href",N),A()},M.on("error",D),S.src=b.source,this._imgSrc=b.source;function D(){M.remove(),A()}}.bind(this));r._promises.push(k)}}function v(b){var M=OH.select(this),k=xc.getFromId(r,b.xref),A=xc.getFromId(r,b.yref),S=xc.getRefType(b.xref)==="domain",D=xc.getRefType(b.yref)==="domain",E=t._size,R,N;k!==void 0?R=typeof b.xref=="string"&&S?k._length*b.sizex:Math.abs(k.l2p(b.sizex)-k.l2p(0)):R=b.sizex*E.w,A!==void 0?N=typeof b.yref=="string"&&D?A._length*b.sizey:Math.abs(A.l2p(b.sizey)-A.l2p(0)):N=b.sizey*E.h;var I=R*f.x[b.xanchor].offset,H=N*f.y[b.yanchor].offset,O=f.x[b.xanchor].sizing+f.y[b.yanchor].sizing,G,Y;switch(k!==void 0?G=typeof b.xref=="string"&&S?k._length*b.x+k._offset:k.r2p(b.x)+k._offset:G=b.x*E.w+E.l,G+=I,A!==void 0?Y=typeof b.yref=="string"&&D?A._length*(1-b.y)+A._offset:A.r2p(b.y)+A._offset:Y=E.h-b.y*E.h+E.t,Y+=H,b.sizing){case"fill":O+=" slice";break;case"stretch":O="none";break}M.attr({x:G,y:Y,width:R,height:N,preserveAspectRatio:O,opacity:b.opacity});var V=k&&xc.getRefType(b.xref)!=="domain"?k._id:"",U=A&&xc.getRefType(b.yref)!=="domain"?A._id:"",Z=V+U;tge.setClipUrl(M,Z?"clip"+t._uid+Z:null,r)}function h(b){return[b.xref,b.x,b.sizex,b.yref,b.y,b.sizey].join("_")}function p(b,M){return b._index-M._index}var m=t._imageLowerLayer.selectAll("image").data(i,h),y=t._imageUpperLayer.selectAll("image").data(a,h);m.enter().append("image"),y.enter().append("image"),m.exit().remove(),y.exit().remove(),m.each(function(b){c.bind(this)(b),v.bind(this)(b)}),y.each(function(b){c.bind(this)(b),v.bind(this)(b)}),m.sort(p),y.sort(p);var x=Object.keys(t._plots);for(o=0;o<x.length;o++){l=x[o];var _=t._plots[l];if(_.imagelayer){var w=_.imagelayer.selectAll("image").data(n[l]||[],h);w.enter().append("image"),w.exit().remove(),w.each(function(b){c.bind(this)(b),v.bind(this)(b)}),w.sort(p)}}}});var XH=B((BMe,VH)=>{"use strict";var UH=Br(),nge=Sh();VH.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c<o.length;c++)if(u=o[c],f="images["+c+"].",u[s+"ref"]===t._id){var v=u[s],h=u["size"+s],p=null,m=null;if(i){p=nge(v,t.range);var y=h/Math.pow(10,p)/2;m=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else p=Math.pow(10,v),m=p*(Math.pow(10,h/2)-Math.pow(10,-h/2));UH(p)?UH(m)||(m=null):(p=null,m=null),n(f+s,p),n(f+"size"+s,m)}}}});var ZH=B((YMe,WH)=>{"use strict";WH.exports={moduleType:"component",name:"images",layoutAttributes:g6(),supplyLayoutDefaults:HH(),includeBasePlot:Uv()("images"),draw:GH(),convertCoords:XH()}});var ly=B((GMe,JH)=>{"use strict";JH.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var x6=B((UMe,KH)=>{"use strict";var ige=ma(),lge=ni(),oge=Tt().extendFlat,sge=Ri().overrideAll,uge=u1(),$H=vt().templatedArray,fge=$H("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}});KH.exports=sge($H("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:fge,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:oge(uge({editType:"arraydraw"}),{}),font:ige({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:lge.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var rO=B((VMe,eO)=>{"use strict";var oy=Le(),QH=si(),jH=x6(),cge=ly(),vge=cge.name,dge=jH.buttons;eO.exports=function(r,t){var a={name:vge,handleItemDefaults:hge};QH(r,t,a)};function hge(e,r,t){function a(l,o){return oy.coerce(e,r,jH,l,o)}var n=QH(e,r,{name:"buttons",handleItemDefaults:pge}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),oy.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),oy.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function pge(e,r){function t(n,i){return oy.coerce(e,r,dge,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 nO=B((XMe,aO)=>{"use strict";aO.exports=Pt;var $i=Dr(),tO=Ar(),_c=Vr(),sy=Le();function Pt(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})}Pt.barWidth=2;Pt.barLength=20;Pt.barRadius=2;Pt.barPad=1;Pt.barColor="#808BA4";Pt.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",h=c==="left",p=c==="right",m=c==="up",y=s,x=f,_,w,b,M;!v&&!h&&!p&&!m&&(this.position.direction="down",v=!0);var k=v||m;k?(_=o,w=_+y,v?(b=u,M=Math.min(b+x,l),x=M-b):(M=u+x,b=Math.max(M-x,0),x=M-b)):(b=u,M=b+x,h?(w=o+y,_=Math.max(w-y,0),y=w-_):(_=o,w=Math.min(_+y,i),y=w-_)),this._box={l:_,t:b,w:y,h:x};var A=s>y,S=Pt.barLength+2*Pt.barPad,D=Pt.barWidth+2*Pt.barPad,E=o,R=u+f;R+D>l&&(R=l-D);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(tO.fill,Pt.barColor),A?(this.hbar=N.attr({rx:Pt.barRadius,ry:Pt.barRadius,x:E,y:R,width:S,height:D}),this._hbarXMin=E+S/2,this._hbarTranslateMax=y-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>x,H=Pt.barWidth+2*Pt.barPad,O=Pt.barLength+2*Pt.barPad,G=o+s,Y=u;G+H>i&&(G=i-H);var V=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);V.exit().on(".drag",null).remove(),V.enter().append("rect").classed("scrollbar-vertical",!0).call(tO.fill,Pt.barColor),I?(this.vbar=V.attr({rx:Pt.barRadius,ry:Pt.barRadius,x:G,y:Y,width:H,height:O}),this._vbarYMin=Y+O/2,this._vbarTranslateMax=x-O):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var U=this.id,Z=_-.5,X=I?w+H+.5:w+.5,$=b-.5,ae=A?M+D+.5:M+.5,ie=n._topdefs.selectAll("#"+U).data(A||I?[0]:[]);if(ie.exit().remove(),ie.enter().append("clipPath").attr("id",U).append("rect"),A||I?(this._clipRect=ie.select("rect").attr({x:Math.floor(Z),y:Math.floor($),width:Math.ceil(X)-Math.floor(Z),height:Math.ceil(ae)-Math.floor($)}),this.container.call(_c.setClipUrl,U,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(_c.setClipUrl,null),delete this._clipRect),A||I){var ve=$i.behavior.drag().on("dragstart",function(){$i.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ve);var K=$i.behavior.drag().on("dragstart",function(){$i.event.sourceEvent.preventDefault(),$i.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(K),I&&this.vbar.on(".drag",null).call(K)}this.setTranslate(t,a)};Pt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(_c.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)};Pt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=$i.event.dx),this.vbar&&(t-=$i.event.dy),this.setTranslate(r,t)};Pt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=$i.event.deltaY),this.vbar&&(t+=$i.event.deltaY),this.setTranslate(r,t)};Pt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=sy.constrain($i.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=sy.constrain($i.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};Pt.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=sy.constrain(r||0,0,a),t=sy.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(_c.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(_c.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(_c.setTranslate,r,t+l*this._vbarTranslateMax)}}});var hO=B((WMe,dO)=>{"use strict";var wc=Dr(),vd=Gt(),dd=Ar(),Tc=Vr(),Kn=Le(),uy=da(),mge=vt().arrayEditor,lO=za().LINE_SPACING,Cr=ly(),yge=nO();dO.exports=function(r){var t=r._fullLayout,a=Kn.filterVisible(t[Cr.name]);function n(v){vd.autoMargin(r,cO(v))}var i=t._menulayer.selectAll("g."+Cr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Cr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){wc.select(this).selectAll("g."+Cr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+Cr.headerGroupClassName).data(a,gge);l.enter().append("g").classed(Cr.headerGroupClassName,!0);for(var o=Kn.ensureSingle(i,"g",Cr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s<a.length;s++){var u=a[s];Mge(r,u)}var f="updatemenus"+t._uid,c=new yge(r,o,f);l.enter().size()&&(o.node().parentNode.appendChild(o.node()),o.call(w6)),l.exit().each(function(v){o.call(w6),n(v)}).remove(),l.each(function(v){var h=wc.select(this),p=v.type==="dropdown"?o:null;vd.manageCommandObserver(r,v,v.buttons,function(m){_6(r,v,v.buttons[m.index],h,p,c,m.index,!0)}),v.type==="dropdown"?(sO(r,h,o,c,v),oO(o,v)&&hd(r,h,o,c,v)):hd(r,h,null,null,v)})}};function gge(e){return e._index}function bge(e){return+e.attr(Cr.menuIndexAttrName)==-1}function oO(e,r){return+e.attr(Cr.menuIndexAttrName)===r._index}function _6(e,r,t,a,n,i,l,o){r.active=l,mge(e.layout,Cr.name,r).applyUpdate("active",l),r.type==="buttons"?hd(e,a,null,null,r):r.type==="dropdown"&&(n.attr(Cr.menuIndexAttrName,"-1"),sO(e,a,n,i,r),o||hd(e,a,n,i,r))}function sO(e,r,t,a,n){var i=Kn.ensureSingle(r,"g",Cr.headerClassName,function(v){v.style("pointer-events","all")}),l=n._dims,o=n.active,s=n.buttons[o]||Cr.blankHeaderOpts,u={y:n.pad.t,yPad:0,x:n.pad.l,xPad:0,index:0},f={width:l.headerWidth,height:l.headerHeight};i.call(T6,n,s,e).call(vO,n,u,f);var c=Kn.ensureSingle(r,"text",Cr.headerArrowClassName,function(v){v.attr("text-anchor","end").call(Tc.font,n.font).text(Cr.arrowSymbol[n.direction])});c.attr({x:l.headerWidth-Cr.arrowOffsetX+n.pad.l,y:l.headerHeight/2+Cr.textOffsetY+n.pad.t}),i.on("click",function(){t.call(w6,String(oO(t,n)?-1:n._index)),hd(e,r,t,a,n)}),i.on("mouseover",function(){i.call(uO)}),i.on("mouseout",function(){i.call(fO,n)}),Tc.setTranslate(r,l.lx,l.ly)}function hd(e,r,t,a,n){t||(t=r,t.attr("pointer-events","all"));var i=!bge(t)||n.type==="buttons"?n.buttons:[],l=n.type==="dropdown"?Cr.dropdownButtonClassName:Cr.buttonClassName,o=t.selectAll("g."+l).data(Kn.filterVisible(i)),s=o.enter().append("g").classed(l,!0),u=o.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,v=n._dims,h=["up","down"].indexOf(n.direction)!==-1;n.type==="dropdown"&&(h?c=v.headerHeight+Cr.gapButtonHeader:f=v.headerWidth+Cr.gapButtonHeader),n.type==="dropdown"&&n.direction==="up"&&(c=-Cr.gapButtonHeader+Cr.gapButton-v.openHeight),n.type==="dropdown"&&n.direction==="left"&&(f=-Cr.gapButtonHeader+Cr.gapButton-v.openWidth);var p={x:v.lx+f+n.pad.l,y:v.ly+c+n.pad.t,yPad:Cr.gapButton,xPad:Cr.gapButton,index:0},m={l:p.x+n.borderwidth,t:p.y+n.borderwidth};o.each(function(y,x){var _=wc.select(this);_.call(T6,n,y,e).call(vO,n,p),_.on("click",function(){wc.event.defaultPrevented||(y.execute&&(y.args2&&n.active===x?(_6(e,n,y,r,t,a,-1),vd.executeAPICommand(e,y.method,y.args2)):(_6(e,n,y,r,t,a,x),vd.executeAPICommand(e,y.method,y.args))),e.emit("plotly_buttonclicked",{menu:n,button:y,active:n.active}))}),_.on("mouseover",function(){_.call(uO)}),_.on("mouseout",function(){_.call(fO,n),o.call(iO,n)})}),o.call(iO,n),h?(m.w=Math.max(v.openWidth,v.headerWidth),m.h=p.y-m.t):(m.w=p.x-m.l,m.h=Math.max(v.openHeight,v.headerHeight)),m.direction=n.direction,a&&(o.size()?xge(e,r,t,a,n,m):_ge(a))}function xge(e,r,t,a,n,i){var l=n.direction,o=l==="up"||l==="down",s=n._dims,u=n.active,f,c,v;if(o)for(c=0,v=0;v<u;v++)c+=s.heights[v]+Cr.gapButton;else for(f=0,v=0;v<u;v++)f+=s.widths[v]+Cr.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 _ge(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 T6(e,r,t,a){e.call(wge,r).call(Tge,r,t,a)}function wge(e,r){var t=Kn.ensureSingle(e,"rect",Cr.itemRectClassName,function(a){a.attr({rx:Cr.rx,ry:Cr.ry,"shape-rendering":"crispEdges"})});t.call(dd.stroke,r.bordercolor).call(dd.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function Tge(e,r,t,a){var n=Kn.ensureSingle(e,"text",Cr.itemTextClassName,function(o){o.attr({"text-anchor":"start","data-notex":1})}),i=t.label,l=a._fullLayout._meta;l&&(i=Kn.templateString(i,l)),n.call(Tc.font,r.font).text(i).call(uy.convertToTspans,a)}function iO(e,r){var t=r.active;e.each(function(a,n){var i=wc.select(this);n===t&&r.showactive&&i.select("rect."+Cr.itemRectClassName).call(dd.fill,Cr.activeColor)})}function uO(e){e.select("rect."+Cr.itemRectClassName).call(dd.fill,Cr.hoverColor)}function fO(e,r){e.select("rect."+Cr.itemRectClassName).call(dd.fill,r.bgcolor)}function Mge(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=Tc.tester.selectAll("g."+Cr.dropdownButtonClassName).data(Kn.filterVisible(r.buttons));a.enter().append("g").classed(Cr.dropdownButtonClassName,!0);var n=["up","down"].indexOf(r.direction)!==-1;a.each(function(f,c){var v=wc.select(this);v.call(T6,r,f,e);var h=v.select("."+Cr.itemTextClassName),p=h.node()&&Tc.bBox(h.node()).width,m=Math.max(p+Cr.textPadX,Cr.minWidth),y=r.font.size*lO,x=uy.lineCount(h),_=Math.max(y*x,Cr.minHeight)+Cr.textOffsetY;_=Math.ceil(_),m=Math.ceil(m),t.widths[c]=m,t.heights[c]=_,t.height1=Math.max(t.height1,_),t.width1=Math.max(t.width1,m),n?(t.totalWidth=Math.max(t.totalWidth,m),t.openWidth=t.totalWidth,t.totalHeight+=_+Cr.gapButton,t.openHeight+=_+Cr.gapButton):(t.totalWidth+=m+Cr.gapButton,t.openWidth+=m+Cr.gapButton,t.totalHeight=Math.max(t.totalHeight,_),t.openHeight=t.totalHeight)}),n?t.totalHeight-=Cr.gapButton:t.totalWidth-=Cr.gapButton,t.headerWidth=t.width1+Cr.arrowPadX,t.headerHeight=t.height1,r.type==="dropdown"&&(n?(t.width1+=Cr.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=Cr.arrowPadX),a.remove();var i=t.totalWidth+r.pad.l+r.pad.r,l=t.totalHeight+r.pad.t+r.pad.b,o=e._fullLayout._size;t.lx=o.l+o.w*r.x,t.ly=o.t+o.h*(1-r.y);var s="left";Kn.isRightAnchor(r)&&(t.lx-=i,s="right"),Kn.isCenterAnchor(r)&&(t.lx-=i/2,s="center");var u="top";Kn.isBottomAnchor(r)&&(t.ly-=l,u="bottom"),Kn.isMiddleAnchor(r)&&(t.ly-=l/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),vd.autoMargin(e,cO(r),{x:r.x,y:r.y,l:i*({right:1,center:.5}[s]||0),r:i*({left:1,center:.5}[s]||0),b:l*({top:1,middle:.5}[u]||0),t:l*({bottom:1,middle:.5}[u]||0)})}function cO(e){return Cr.autoMarginIdRoot+e._index}function vO(e,r,t,a){a=a||{};var n=e.select("."+Cr.itemRectClassName),i=e.select("."+Cr.itemTextClassName),l=r.borderwidth,o=t.index,s=r._dims;Tc.setTranslate(e,l+t.x,l+t.y);var u=["up","down"].indexOf(r.direction)!==-1,f=a.height||(u?s.heights[o]:s.height1);n.attr({x:0,y:0,width:a.width||(u?s.width1:s.widths[o]),height:f});var c=r.font.size*lO,v=uy.lineCount(i),h=(v-1)*c/2;uy.positionText(i,Cr.textOffsetX,f/2-h+Cr.textOffsetY),u?t.y+=s.heights[o]+t.yPad:t.x+=s.widths[o]+t.xPad,t.index++}function w6(e,r){e.attr(Cr.menuIndexAttrName,r||"-1").selectAll("g."+Cr.dropdownButtonClassName).remove()}});var mO=B((ZMe,pO)=>{"use strict";var Age=ly();pO.exports={moduleType:"component",name:Age.name,layoutAttributes:x6(),supplyLayoutDefaults:rO(),draw:hO()}});var pd=B((JMe,yO)=>{"use strict";yO.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var M6=B(($Me,xO)=>{"use strict";var gO=ma(),kge=u1(),Cge=Tt().extendDeepAll,Lge=Ri().overrideAll,Sge=Y0(),bO=vt().templatedArray,bu=pd(),qge=bO("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}});xO.exports=Lge(bO("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:qge,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:Cge(kge({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:Sge.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:gO({})},font:gO({}),activebgcolor:{valType:"color",dflt:bu.gripBgActiveColor},bgcolor:{valType:"color",dflt:bu.railBgColor},bordercolor:{valType:"color",dflt:bu.railBorderColor},borderwidth:{valType:"number",min:0,dflt:bu.railBorderWidth},ticklen:{valType:"number",min:0,dflt:bu.tickLength},tickcolor:{valType:"color",dflt:bu.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:bu.minorTickLength}}),"arraydraw","from-root")});var MO=B((KMe,TO)=>{"use strict";var Mc=Le(),_O=si(),wO=M6(),Dge=pd(),Ege=Dge.name,Pge=wO.steps;TO.exports=function(r,t){_O(r,t,{name:Ege,handleItemDefaults:Rge})};function Rge(e,r,t){function a(c,v){return Mc.coerce(e,r,wO,c,v)}for(var n=_O(e,r,{name:"steps",handleItemDefaults:zge}),i=0,l=0;l<n.length;l++)n[l].visible&&i++;var o;if(i<2?o=r.visible=!1:o=a("visible"),!!o){r._stepCount=i;var s=r._visibleSteps=Mc.filterVisible(n),u=a("active");(n[u]||{}).visible||(r.active=s[0]._index),a("x"),a("y"),Mc.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"),Mc.coerceFont(a,"font",t.font);var f=a("currentvalue.visible");f&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),Mc.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 zge(e,r){function t(i,l){return Mc.coerce(e,r,Pge,i,l)}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 RO=B((QMe,PO)=>{"use strict";var Ki=Dr(),fy=Gt(),Uo=Ar(),Qi=Vr(),Qn=Le(),Nge=Qn.strTranslate,md=da(),Fge=vt().arrayEditor,Ir=pd(),C6=za(),CO=C6.LINE_SPACING,A6=C6.FROM_TL,k6=C6.FROM_BR;PO.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=Ige(a,r),i=a._infolayer.selectAll("g."+Ir.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Ir.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),fy.autoMargin(r,LO(f))}if(i.exit().each(function(){Ki.select(this).selectAll("g."+Ir.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Ir.groupClassName).data(n,Hge);o.enter().append("g").classed(Ir.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s<n.length;s++){var u=n[s];Oge(r,u)}o.each(function(f){var c=Ki.select(this);Vge(f),fy.manageCommandObserver(r,f,f._visibleSteps,function(v){var h=c.data()[0];h.active!==v.index&&(h._dragging||qO(r,c,h,v.index,!1,!0))}),Bge(r,Ki.select(this),f)})}};function LO(e){return Ir.autoMarginIdRoot+e._index}function Ige(e,r){for(var t=e[Ir.name],a=[],n=0;n<t.length;n++){var i=t[n];i.visible&&(i._gd=r,a.push(i))}return a}function Hge(e){return e._index}function Oge(e,r){var t=Qi.tester.selectAll("g."+Ir.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(Ir.labelGroupClass,!0);var a=0,n=0;t.each(function(p){var m=Ki.select(this),y=SO(m,{step:p},r),x=y.node();if(x){var _=Qi.bBox(x);n=Math.max(n,_.height),a=Math.max(a,_.width)}}),t.remove();var i=r._dims={};i.inputAreaWidth=Math.max(Ir.railWidth,Ir.gripHeight);var l=e._fullLayout._size;i.lx=l.l+l.w*r.x,i.ly=l.t+l.h*(1-r.y),r.lenmode==="fraction"?i.outerLength=Math.round(l.w*r.len):i.outerLength=r.len,i.inputAreaStart=0,i.inputAreaLength=Math.round(i.outerLength-r.pad.l-r.pad.r);var o=i.inputAreaLength-2*Ir.stepInset,s=o/(r._stepCount-1),u=a+Ir.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=Qi.tester.append("g");t.each(function(p){var m=cy(f,r,p.label),y=m.node()&&Qi.bBox(m.node())||{width:0,height:0},x=md.lineCount(m);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,x)}),i.currentValueTotalHeight=i.currentValueHeight+r.currentvalue.offset,f.remove()}i.height=i.currentValueTotalHeight+Ir.tickOffset+r.ticklen+Ir.labelOffset+i.labelHeight+r.pad.t+r.pad.b;var c="left";Qn.isRightAnchor(r)&&(i.lx-=i.outerLength,c="right"),Qn.isCenterAnchor(r)&&(i.lx-=i.outerLength/2,c="center");var v="top";Qn.isBottomAnchor(r)&&(i.ly-=i.height,v="bottom"),Qn.isMiddleAnchor(r)&&(i.ly-=i.height/2,v="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 h={y:r.y,b:i.height*k6[v],t:i.height*A6[v]};r.lenmode==="fraction"?(h.l=0,h.xl=r.x-r.len*A6[c],h.r=0,h.xr=r.x+r.len*k6[c]):(h.x=r.x,h.l=i.outerLength*A6[c],h.r=i.outerLength*k6[c]),fy.autoMargin(e,LO(r),h)}function Bge(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(cy,t).call(Wge,t).call(Gge,t).call(Uge,t).call(Xge,e,t).call(Yge,e,t);var a=t._dims;Qi.setTranslate(r,a.lx+t.pad.l,a.ly+t.pad.t),r.call(EO,t,!1),r.call(cy,t)}function cy(e,r,t){if(r.currentvalue.visible){var a=r._dims,n,i;switch(r.currentvalue.xanchor){case"right":n=a.inputAreaLength-Ir.currentValueInset-a.currentValueMaxWidth,i="left";break;case"center":n=a.inputAreaLength*.5,i="middle";break;default:n=Ir.currentValueInset,i="left"}var l=Qn.ensureSingle(e,"text",Ir.labelClass,function(v){v.attr({"text-anchor":i,"data-notex":1})}),o=r.currentvalue.prefix?r.currentvalue.prefix:"";if(typeof t=="string")o+=t;else{var s=r.steps[r.active].label,u=r._gd._fullLayout._meta;u&&(s=Qn.templateString(s,u)),o+=s}r.currentvalue.suffix&&(o+=r.currentvalue.suffix),l.call(Qi.font,r.currentvalue.font).text(o).call(md.convertToTspans,r._gd);var f=md.lineCount(l),c=(a.currentValueMaxLines+1-f)*r.currentvalue.font.size*CO;return md.positionText(l,n,c),l}}function Yge(e,r,t){var a=Qn.ensureSingle(e,"rect",Ir.gripRectClass,function(n){n.call(DO,r,e,t).style("pointer-events","all")});a.attr({width:Ir.gripWidth,height:Ir.gripHeight,rx:Ir.gripRadius,ry:Ir.gripRadius}).call(Uo.stroke,t.bordercolor).call(Uo.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function SO(e,r,t){var a=Qn.ensureSingle(e,"text",Ir.labelClass,function(l){l.attr({"text-anchor":"middle","data-notex":1})}),n=r.step.label,i=t._gd._fullLayout._meta;return i&&(n=Qn.templateString(n,i)),a.call(Qi.font,t.font).text(n).call(md.convertToTspans,t._gd),a}function Gge(e,r){var t=Qn.ensureSingle(e,"g",Ir.labelsClass),a=r._dims,n=t.selectAll("g."+Ir.labelGroupClass).data(a.labelSteps);n.enter().append("g").classed(Ir.labelGroupClass,!0),n.exit().remove(),n.each(function(i){var l=Ki.select(this);l.call(SO,i,r),Qi.setTranslate(l,L6(r,i.fraction),Ir.tickOffset+r.ticklen+r.font.size*CO+Ir.labelOffset+a.currentValueTotalHeight)})}function AO(e,r,t,a,n){var i=Math.round(a*(t._stepCount-1)),l=t._visibleSteps[i]._index;l!==t.active&&qO(e,r,t,l,!0,n)}function qO(e,r,t,a,n,i){var l=t.active;t.active=a,Fge(e.layout,Ir.name,t).applyUpdate("active",a);var o=t.steps[t.active];r.call(EO,t,i),r.call(cy,t),e.emit("plotly_sliderchange",{slider:t,step:t.steps[t.active],interaction:n,previousActive:l}),o&&o.method&&n&&(r._nextMethod?(r._nextMethod.step=o,r._nextMethod.doCallback=n,r._nextMethod.doTransition=i):(r._nextMethod={step:o,doCallback:n,doTransition:i},r._nextMethodRaf=window.requestAnimationFrame(function(){var s=r._nextMethod.step;s.method&&(s.execute&&fy.executeAPICommand(e,s.method,s.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function DO(e,r,t){if(r._context.staticPlot)return;var a=t.node(),n=Ki.select(r);function i(){return t.data()[0]}function l(){var o=i();r.emit("plotly_sliderstart",{slider:o});var s=t.select("."+Ir.gripRectClass);Ki.event.stopPropagation(),Ki.event.preventDefault(),s.call(Uo.fill,o.activebgcolor);var u=kO(o,Ki.mouse(a)[0]);AO(r,t,o,u,!0),o._dragging=!0;function f(){var v=i(),h=kO(v,Ki.mouse(a)[0]);AO(r,t,v,h,!1)}n.on("mousemove",f),n.on("touchmove",f);function c(){var v=i();v._dragging=!1,s.call(Uo.fill,v.bgcolor),n.on("mouseup",null),n.on("mousemove",null),n.on("touchend",null),n.on("touchmove",null),r.emit("plotly_sliderend",{slider:v,step:v.steps[v.active]})}n.on("mouseup",c),n.on("touchend",c)}e.on("mousedown",l),e.on("touchstart",l)}function Uge(e,r){var t=e.selectAll("rect."+Ir.tickRectClass).data(r._visibleSteps),a=r._dims;t.enter().append("rect").classed(Ir.tickRectClass,!0),t.exit().remove(),t.attr({width:r.tickwidth+"px","shape-rendering":"crispEdges"}),t.each(function(n,i){var l=i%a.labelStride===0,o=Ki.select(this);o.attr({height:l?r.ticklen:r.minorticklen}).call(Uo.fill,r.tickcolor),Qi.setTranslate(o,L6(r,i/(r._stepCount-1))-.5*r.tickwidth,(l?Ir.tickOffset:Ir.minorTickOffset)+a.currentValueTotalHeight)})}function Vge(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 EO(e,r,t){for(var a=e.select("rect."+Ir.gripRectClass),n=0,i=0;i<r._stepCount;i++)if(r._visibleSteps[i]._index===r.active){n=i;break}var l=L6(r,n/(r._stepCount-1));if(!r._invokingCommand){var o=a;t&&r.transition.duration>0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",Nge(l-Ir.gripWidth*.5,r._dims.currentValueTotalHeight))}}function L6(e,r){var t=e._dims;return t.inputAreaStart+Ir.stepInset+(t.inputAreaLength-2*Ir.stepInset)*Math.min(1,Math.max(0,r))}function kO(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Ir.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Ir.stepInset-2*t.inputAreaStart)))}function Xge(e,r,t){var a=t._dims,n=Qn.ensureSingle(e,"rect",Ir.railTouchRectClass,function(i){i.call(DO,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Ir.tickOffset+t.ticklen+a.labelHeight)}).call(Uo.fill,t.bgcolor).attr("opacity",0),Qi.setTranslate(n,0,a.currentValueTotalHeight)}function Wge(e,r){var t=r._dims,a=t.inputAreaLength-Ir.railInset*2,n=Qn.ensureSingle(e,"rect",Ir.railRectClass);n.attr({width:a,height:Ir.railWidth,rx:Ir.railRadius,ry:Ir.railRadius,"shape-rendering":"crispEdges"}).call(Uo.stroke,r.bordercolor).call(Uo.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Qi.setTranslate(n,Ir.railInset,(t.inputAreaWidth-Ir.railWidth)*.5+t.currentValueTotalHeight)}});var NO=B((jMe,zO)=>{"use strict";var Zge=pd();zO.exports={moduleType:"component",name:Zge.name,layoutAttributes:M6(),supplyLayoutDefaults:MO(),draw:RO()}});var vy=B((eAe,IO)=>{"use strict";var FO=ni();IO.exports={bgcolor:{valType:"color",dflt:FO.background,editType:"plot"},bordercolor:{valType:"color",dflt:FO.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 S6=B((rAe,HO)=>{"use strict";HO.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 dy=B((tAe,OO)=>{"use strict";OO.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var GO=B(py=>{"use strict";var Jge=na(),$ge=da(),BO=dy(),Kge=za().LINE_SPACING,hy=BO.name;function YO(e){var r=e&&e[hy];return r&&r.visible}py.isVisible=YO;py.makeData=function(e){for(var r=Jge.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n<r.length;n++){var i=r[n];if(YO(i)){a.push(i);var l=i[hy];l._id=hy+i._id,l._height=(e.height-t.b-t.t)*l.thickness,l._offsetShift=Math.floor(l.borderwidth/2)}}e._rangeSliderData=a};py.autoMarginOpts=function(e,r){var t=e._fullLayout,a=r[hy],n=r._id.charAt(0),i=0,l=0;if(r.side==="bottom"&&(i=r._depth,r.title.text!==t._dfltTitle[n])){l=1.5*r.title.font.size+10+a._offsetShift;var o=(r.title.text.match($ge.BR_TAG_ALL)||[]).length;l+=o*r.title.font.size*Kge}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:a._height+i+Math.max(t.margin.b,l),pad:BO.extraPad+a._offsetShift*2}}});var WO=B((nAe,XO)=>{"use strict";var my=Le(),UO=vt(),VO=na(),Qge=vy(),jge=S6();XO.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;my.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=UO.newContainer(i,"rangeslider");function s(M,k){return my.coerce(l,o,Qge,M,k)}var u,f;function c(M,k){return my.coerce(u,f,jge,M,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var h=t._subplots;if(h)for(var p=h.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===VO.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),m=my.simpleMap(p,VO.id2name),y=0;y<m.length;y++){var x=m[y];u=l[x]||{},f=UO.newContainer(o,x,"yaxis");var _=t[x],w;u.range&&_.isValidRange(u.range)&&(w="fixed");var b=c("rangemode",w);b!=="match"&&c("range",_.range.slice())}o._input=l}}});var JO=B((iAe,ZO)=>{"use strict";var e2e=na().list,r2e=sv().getAutoRange,t2e=dy();ZO.exports=function(r){for(var t=e2e(r,"x",!0),a=0;a<t.length;a++){var n=t[a],i=n[t2e.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=r2e(r,n))}}});var jO=B((lAe,QO)=>{"use strict";var yy=Dr(),a2e=Mr(),n2e=Gt(),Vt=Le(),gy=Vt.strTranslate,KO=Vr(),Vo=Ar(),i2e=lv(),l2e=Wl(),q6=na(),o2e=Yi(),s2e=Eo(),Gr=dy();QO.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a<t.length;a++){var n=t[a][Gr.name];n._clipId=n._id+"-"+r._uid}function i(o){return o._name}var l=r._infolayer.selectAll("g."+Gr.containerClassName).data(t,i);l.exit().each(function(o){var s=o[Gr.name];r._topdefs.select("#"+s._clipId).remove()}).remove(),t.length!==0&&(l.enter().append("g").classed(Gr.containerClassName,!0).attr("pointer-events","all"),l.each(function(o){var s=yy.select(this),u=o[Gr.name],f=r[q6.id2name(o.anchor)],c=u[q6.id2name(o.anchor)];if(u.range){var v=Vt.simpleMap(u.range,o.r2l),h=Vt.simpleMap(o.range,o.r2l),p;h[0]<h[1]?p=[Math.min(v[0],h[0]),Math.max(v[1],h[1])]:p=[Math.max(v[0],h[0]),Math.min(v[1],h[1])],u.range=u._input.range=Vt.simpleMap(p,o.l2r)}o.cleanRange("rangeslider.range");var m=r._size,y=o.domain;u._width=m.w*(y[1]-y[0]);var x=Math.round(m.l+m.w*y[0]),_=Math.round(m.t+m.h*(1-o._counterDomainMin)+(o.side==="bottom"?o._depth:0)+u._offsetShift+Gr.extraPad);s.attr("transform",gy(x,_)),u._rl=Vt.simpleMap(u.range,o.r2l);var w=u._rl[0],b=u._rl[1],M=b-w;if(u.p2d=function(O){return O/u._width*M+w},u.d2p=function(O){return(O-w)/M*u._width},o.rangebreaks){var k=o.locateBreaks(w,b);if(k.length){var A,S,D=0;for(A=0;A<k.length;A++)S=k[A],D+=S.max-S.min;var E=u._width/(b-w-D),R=[-E*w];for(A=0;A<k.length;A++)S=k[A],R.push(R[R.length-1]-E*(S.max-S.min));for(u.d2p=function(O){for(var G=R[0],Y=0;Y<k.length;Y++){var V=k[Y];if(O>=V.max)G=R[Y+1];else if(O<V.min)break}return G+E*O},A=0;A<k.length;A++)S=k[A],S.pmin=u.d2p(S.min),S.pmax=u.d2p(S.max);u.p2d=function(O){for(var G=R[0],Y=0;Y<k.length;Y++){var V=k[Y];if(O>=V.pmax)G=R[Y+1];else if(O<V.pmin)break}return(O-G)/E}}}if(c.rangemode!=="match"){var N=f.r2l(c.range[0]),I=f.r2l(c.range[1]),H=I-N;u.d2pOppAxis=function(O){return(O-N)/H*u._height}}s.call(v2e,e,o,u).call(d2e,e,o,u).call(h2e,e,o,u).call(m2e,e,o,u,c).call(y2e,e,o,u).call(g2e,e,o,u),u2e(s,e,o,u),c2e(s,e,o,u,f,c),o.side==="bottom"&&i2e.draw(e,o._id+"title",{propContainer:o,propName:o._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:o._offset+o._length/2,y:_+u._height+u._offsetShift+10+1.5*o.title.font.size,"text-anchor":"middle"}})}))};function $O(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function u2e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Gr.slideBoxClassName).node(),i=e.select("rect."+Gr.grabAreaMinClassName).node(),l=e.select("rect."+Gr.grabAreaMaxClassName).node();function o(){var s=yy.event,u=s.target,f=$O(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),p=o2e.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(x){var _=$O(x),w=+_-f,b,M,k;switch(u){case n:if(k="ew-resize",v+w>t._length||h+w<0)return;b=v+w,M=h+w;break;case i:if(k="col-resize",v+w>t._length)return;b=v+w,M=h;break;case l:if(k="col-resize",h+w<0)return;b=v,M=h+w;break;default:k="ew-resize",b=c,M=c+w;break}if(M<b){var A=M;M=b,b=A}a._pixelMin=b,a._pixelMax=M,s2e(yy.select(p),k),f2e(e,r,t,a)}function y(){p.removeEventListener("mousemove",m),p.removeEventListener("mouseup",y),this.removeEventListener("touchmove",m),this.removeEventListener("touchend",y),Vt.removeElement(p)}}e.on("mousedown",o),e.on("touchstart",o)}function f2e(e,r,t,a){function n(o){return t.l2r(Vt.constrain(o,a._rl[0],a._rl[1]))}var i=n(a.p2d(a._pixelMin)),l=n(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){a2e.call("_guiRelayout",r,t._name+".range",[i,l])})}function c2e(e,r,t,a,n,i){var l=Gr.handleWidth/2;function o(x){return Vt.constrain(x,0,a._width)}function s(x){return Vt.constrain(x,0,a._height)}function u(x){return Vt.constrain(x,-l,a._width+l)}var f=o(a.d2p(t._rl[0])),c=o(a.d2p(t._rl[1]));if(e.select("rect."+Gr.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+Gr.maskMinClassName).attr("width",f),e.select("rect."+Gr.maskMaxClassName).attr("x",c).attr("width",a._width-c),i.rangemode!=="match"){var v=a._height-s(a.d2pOppAxis(n._rl[1])),h=a._height-s(a.d2pOppAxis(n._rl[0]));e.select("rect."+Gr.maskMinOppAxisClassName).attr("x",f).attr("height",v).attr("width",c-f),e.select("rect."+Gr.maskMaxOppAxisClassName).attr("x",f).attr("y",h).attr("height",a._height-h).attr("width",c-f),e.select("rect."+Gr.slideBoxClassName).attr("y",v).attr("height",h-v)}var p=.5,m=Math.round(u(f-l))-p,y=Math.round(u(c-l))+p;e.select("g."+Gr.grabberMinClassName).attr("transform",gy(m,p)),e.select("g."+Gr.grabberMaxClassName).attr("transform",gy(y,p))}function v2e(e,r,t,a){var n=Vt.ensureSingle(e,"rect",Gr.bgClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=a.borderwidth%2===0?a.borderwidth:a.borderwidth-1,l=-a._offsetShift,o=KO.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:gy(l,l),"stroke-width":o}).call(Vo.stroke,a.bordercolor).call(Vo.fill,a.bgcolor)}function d2e(e,r,t,a){var n=r._fullLayout,i=Vt.ensureSingleById(n._topdefs,"clipPath",a._clipId,function(l){l.append("rect").attr({x:0,y:0})});i.select("rect").attr({width:a._width,height:a._height})}function h2e(e,r,t,a){var n=r.calcdata,i=e.selectAll("g."+Gr.rangePlotClassName).data(t._subplotsWith,Vt.identity);i.enter().append("g").attr("class",function(o){return Gr.rangePlotClassName+" "+o}).call(KO.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var l;i.each(function(o,s){var u=yy.select(this),f=s===0,c=q6.getFromId(r,o,"y"),v=c._name,h=a[v],p={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&&(p.layout.xaxis.rangebreaks=t.rangebreaks),p.layout[v]={type:c.type,domain:[0,1],range:h.rangemode!=="match"?h.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(p.layout[v].rangebreaks=c.rangebreaks),n2e.supplyDefaults(p);var m=p._fullLayout.xaxis,y=p._fullLayout[v];m.clearCalc(),m.setScale(),y.clearCalc(),y.setScale();var x={id:o,plotgroup:u,xaxis:m,yaxis:y,isRangePlot:!0};f?l=x:(x.mainplot="xy",x.mainplotinfo=l),l2e.rangePlot(r,x,p2e(n,o))})}function p2e(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 m2e(e,r,t,a,n){var i=Vt.ensureSingle(e,"rect",Gr.maskMinClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})});i.attr("height",a._height).call(Vo.fill,Gr.maskColor);var l=Vt.ensureSingle(e,"rect",Gr.maskMaxClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});if(l.attr("height",a._height).call(Vo.fill,Gr.maskColor),n.rangemode!=="match"){var o=Vt.ensureSingle(e,"rect",Gr.maskMinOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});o.attr("width",a._width).call(Vo.fill,Gr.maskOppAxisColor);var s=Vt.ensureSingle(e,"rect",Gr.maskMaxOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});s.attr("width",a._width).style("border-top",Gr.maskOppBorder).call(Vo.fill,Gr.maskOppAxisColor)}}function y2e(e,r,t,a){if(!r._context.staticPlot){var n=Vt.ensureSingle(e,"rect",Gr.slideBoxClassName,function(i){i.attr({y:0,cursor:Gr.slideBoxCursor,"shape-rendering":"crispEdges"})});n.attr({height:a._height,fill:Gr.slideBoxFill})}}function g2e(e,r,t,a){var n=Vt.ensureSingle(e,"g",Gr.grabberMinClassName),i=Vt.ensureSingle(e,"g",Gr.grabberMaxClassName),l={x:0,width:Gr.handleWidth,rx:Gr.handleRadius,fill:Vo.background,stroke:Vo.defaultLine,"stroke-width":Gr.handleStrokeWidth,"shape-rendering":"crispEdges"},o={y:Math.round(a._height/4),height:Math.round(a._height/2)},s=Vt.ensureSingle(n,"rect",Gr.handleMinClassName,function(h){h.attr(l)});s.attr(o);var u=Vt.ensureSingle(i,"rect",Gr.handleMaxClassName,function(h){h.attr(l)});u.attr(o);var f={width:Gr.grabAreaWidth,x:0,y:0,fill:Gr.grabAreaFill,cursor:r._context.staticPlot?void 0:Gr.grabAreaCursor},c=Vt.ensureSingle(n,"rect",Gr.grabAreaMinClassName,function(h){h.attr(f)});c.attr("height",a._height);var v=Vt.ensureSingle(i,"rect",Gr.grabAreaMaxClassName,function(h){h.attr(f)});v.attr("height",a._height)}});var rB=B((oAe,eB)=>{"use strict";var b2e=Le(),x2e=vy(),_2e=S6(),D6=GO();eB.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:b2e.extendFlat({},x2e,{yaxis:_2e})}}},layoutAttributes:vy(),handleDefaults:WO(),calcAutorange:JO(),draw:jO(),isVisible:D6.isVisible,makeData:D6.makeData,autoMarginOpts:D6.autoMarginOpts}});var by=B((sAe,aB)=>{"use strict";var w2e=ma(),tB=ni(),T2e=vt().templatedArray,M2e=T2e("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"});aB.exports={visible:{valType:"boolean",editType:"plot"},buttons:M2e,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:w2e({editType:"plot"}),bgcolor:{valType:"color",dflt:tB.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:tB.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var E6=B((uAe,nB)=>{"use strict";nB.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var oB=B((fAe,lB)=>{"use strict";var xy=Le(),A2e=Ar(),k2e=vt(),C2e=si(),iB=by(),P6=E6();lB.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=k2e.newContainer(t,"rangeselector");function s(h,p){return xy.coerce(l,o,iB,h,p)}var u=C2e(l,o,{name:"buttons",handleItemDefaults:L2e,calendar:i}),f=s("visible",u.length>0);if(f){var c=S2e(t,a,n);s("x",c[0]),s("y",c[1]),xy.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),xy.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",A2e.contrast(v,P6.lightAmount,P6.darkAmount)),s("bordercolor"),s("borderwidth")}};function L2e(e,r,t,a){var n=a.calendar;function i(s,u){return xy.coerce(e,r,iB.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function S2e(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i<a.length;i++){var l=r[a[i]].domain;l&&(n=Math.max(l[1],n))}return[e.domain[0],n+P6.yPad]}});var uB=B((cAe,sB)=>{"use strict";var q2e=f2(),D2e=Le().titleCase;sB.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=E2e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function E2e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=q2e["utc"+D2e(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var yB=B((vAe,mB)=>{"use strict";var wy=Dr(),P2e=Mr(),R2e=Gt(),fB=Ar(),pB=Vr(),Jl=Le(),cB=Jl.strTranslate,_y=da(),z2e=na(),N6=za(),vB=N6.LINE_SPACING,dB=N6.FROM_TL,hB=N6.FROM_BR,z6=E6(),N2e=uB();mB.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(F2e(r),I2e);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=wy.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(Jl.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=wy.select(this),c=N2e(l,u);u._isActive=H2e(l,u,c),f.call(R6,o,u),f.call(B2e,o,u,r),f.on("click",function(){r._dragged||P2e.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(R6,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(R6,o,u)})}),G2e(r,s,o,l._name,i)})};function F2e(e){for(var r=z2e.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 I2e(e){return e._id}function H2e(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 R6(e,r,t){var a=Jl.ensureSingle(e,"rect","selector-rect",function(n){n.attr("shape-rendering","crispEdges")});a.attr({rx:z6.rx,ry:z6.ry}),a.call(fB.stroke,r.bordercolor).call(fB.fill,O2e(r,t)).style("stroke-width",r.borderwidth+"px")}function O2e(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function B2e(e,r,t,a){function n(l){_y.convertToTspans(l,a)}var i=Jl.ensureSingle(e,"text","selector-text",function(l){l.attr("text-anchor","middle")});i.call(pB.font,r.font).text(Y2e(t,a._fullLayout._meta)).call(n)}function Y2e(e,r){return e.label?r?Jl.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function G2e(e,r,t,a,n){var i=0,l=0,o=t.borderwidth;r.each(function(){var h=wy.select(this),p=h.select(".selector-text"),m=t.font.size*vB,y=Math.max(m*_y.lineCount(p),16)+3;l=Math.max(l,y)}),r.each(function(){var h=wy.select(this),p=h.select(".selector-rect"),m=h.select(".selector-text"),y=m.node()&&pB.bBox(m.node()).width,x=t.font.size*vB,_=_y.lineCount(m),w=Math.max(y+10,z6.minButtonWidth);h.attr("transform",cB(o+i,o)),p.attr({x:0,y:0,width:w,height:l}),_y.positionText(m,w/2,l/2-(_-1)*x/2+3),i+=w+5});var s=e._fullLayout._size,u=s.l+s.w*t.x,f=s.t+s.h*(1-t.y),c="left";Jl.isRightAnchor(t)&&(u-=i,c="right"),Jl.isCenterAnchor(t)&&(u-=i/2,c="center");var v="top";Jl.isBottomAnchor(t)&&(f-=l,v="bottom"),Jl.isMiddleAnchor(t)&&(f-=l/2,v="middle"),i=Math.ceil(i),l=Math.ceil(l),u=Math.round(u),f=Math.round(f),R2e.autoMargin(e,a+"-range-selector",{x:t.x,y:t.y,l:i*dB[c],r:i*hB[c],b:l*hB[v],t:l*dB[v]}),n.attr("transform",cB(u,f))}});var bB=B((dAe,gB)=>{"use strict";gB.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:by()}}},layoutAttributes:by(),handleDefaults:oB(),draw:yB()}});var Xo=B(F6=>{"use strict";var xB=Tt().extendFlat;F6.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:"",l={x:xB({},t,{}),y:xB({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};F6.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o<l.columns?n=l._domains.x[o]:delete e.domain.column);var s=t("domain.row");s!==void 0&&(s<l.rows?i=l._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 AB=B((pAe,MB)=>{"use strict";var U2e=Le(),V2e=(bf(),Ga(gf)).counter,X2e=Xo().attributes,_B=ba().idRegex,W2e=vt(),I6={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:[V2e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[_B.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[_B.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:X2e({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 Ty(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 Z2e(e,r){var t=e.grid||{},a=Ty(r,t,"x"),n=Ty(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var c=W2e.newContainer(r,"grid");function v(k,A){return U2e.coerce(t,c,I6,k,A)}var h=v("rows",u),p=v("columns",f);if(!(h*p>1)){delete r.grid;return}if(!i&&!l&&!o){var m=v("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=v("roworder"),x=y==="top to bottom",_=i?.2:.1,w=i?.3:.1,b,M;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:wB("x",v,_,b,p),y:wB("y",v,w,M,h,x)}}function wB(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),c=f*(1-l),v=0;v<n;v++){var h=u+f*v;s[i?n-1-v:v]=[h,h+c]}return s}function J2e(e,r){var t=r.grid;if(!(!t||!t._domains)){var a=e.grid||{},n=r._subplots,i=t._hasSubplotGrid,l=t.rows,o=t.columns,s=t.pattern==="independent",u,f,c,v,h,p,m,y=t._axisMap={};if(i){var x=a.subplots||[];p=t.subplots=new Array(l);var _=1;for(u=0;u<l;u++){var w=p[u]=new Array(o),b=x[u]||[];for(f=0;f<o;f++)if(s?(h=_===1?"xy":"x"+_+"y"+_,_++):h=b[f],w[f]="",n.cartesian.indexOf(h)!==-1){if(m=h.indexOf("y"),c=h.slice(0,m),v=h.slice(m),y[c]!==void 0&&y[c]!==f||y[v]!==void 0&&y[v]!==u)continue;w[f]=h,y[c]=f,y[v]=u}}}else{var M=Ty(r,a,"x"),k=Ty(r,a,"y");t.xaxes=TB(M,n.xaxis,o,y,"x"),t.yaxes=TB(k,n.yaxis,l,y,"y")}var A=t._anchors={},S=t.roworder==="top to bottom";for(var D in y){var E=D.charAt(0),R=t[E+"side"],N,I,H;if(R.length<8)A[D]="free";else if(E==="x"){if(R.charAt(0)==="t"===S?(N=0,I=1,H=l):(N=l-1,I=-1,H=-1),i){var O=y[D];for(u=N;u!==H;u+=I)if(h=p[u][O],!!h&&(m=h.indexOf("y"),h.slice(0,m)===D)){A[D]=h.slice(m);break}}else for(u=N;u!==H;u+=I)if(v=t.yaxes[u],n.cartesian.indexOf(D+v)!==-1){A[D]=v;break}}else if(R.charAt(0)==="l"?(N=0,I=1,H=o):(N=o-1,I=-1,H=-1),i){var G=y[D];for(u=N;u!==H;u+=I)if(h=p[G][u],!!h&&(m=h.indexOf("y"),h.slice(m)===D)){A[D]=h.slice(0,m);break}}else for(u=N;u!==H;u+=I)if(c=t.xaxes[u],n.cartesian.indexOf(c+D)!==-1){A[D]=c;break}}}}function TB(e,r,t,a,n){var i=new Array(t),l;function o(s,u){r.indexOf(u)!==-1&&a[u]===void 0?(i[s]=u,a[u]=s):i[s]=""}if(Array.isArray(e))for(l=0;l<t;l++)o(l,e[l]);else for(o(0,n),l=1;l<t;l++)o(l,n+(l+1));return i}MB.exports={moduleType:"component",name:"grid",schema:{layout:{grid:I6}},layoutAttributes:I6,sizeDefaults:Z2e,contentDefaults:J2e}});var H6=B((mAe,kB)=>{"use strict";kB.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 SB=B((yAe,LB)=>{"use strict";var CB=Br(),$2e=Mr(),K2e=Le(),Q2e=vt(),j2e=H6();LB.exports=function(e,r,t,a){var n="error_"+a.axis,i=Q2e.newContainer(r,n),l=e[n]||{};function o(p,m){return K2e.coerce(l,i,j2e,p,m)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),c=!0;f!=="sqrt"&&(c=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),c||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),c||o("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var h=r["error_"+a.inherit];(h||{}).visible&&o(v,!(l.color||CB(l.thickness)||CB(l.width)))}(!a.inherit||!i[v])&&(o("color",t),o("thickness"),o("width",$2e.traceIs(r,"gl3d")?0:4))}}});var O6=B((gAe,DB)=>{"use strict";DB.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],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var l=qB(t,r.value),o=qB(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function qB(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 RB=B((bAe,PB)=>{"use strict";var B6=Br(),e3e=Mr(),Y6=Jr(),r3e=Le(),t3e=O6();PB.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&&e3e.traceIs(i,"errorBarsOK")){var l=Y6.getFromId(r,i.xaxis),o=Y6.getFromId(r,i.yaxis);EB(n,i,l,"x"),EB(n,i,o,"y")}}};function EB(e,r,t,a){var n=r["error_"+a]||{},i=n.visible&&["linear","log"].indexOf(t.type)!==-1,l=[];if(i){for(var o=t3e(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(B6(t.c2l(c))){var v=o(c,f);if(B6(v[0])&&B6(v[1])){var h=u[a+"s"]=c-v[0],p=u[a+"h"]=c+v[1];l.push(h,p)}}}var m=t._id,y=r._extremes[m],x=Y6.findExtremes(t,l,r3e.extendFlat({tozero:y.opts.tozero},{padded:!0}));y.min=y.min.concat(x.min),y.max=y.max.concat(x.max)}}});var FB=B((xAe,NB)=>{"use strict";var zB=Dr(),Wo=Br(),a3e=Vr(),n3e=Yn();NB.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},h=c.error_y||{},p;c.ids&&(p=function(_){return _.id});var m=n3e.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!v.visible&&(f=[]);var y=zB.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){v.visible||y.selectAll("path.xerror").remove(),h.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var x=y.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(n.duration).style("opacity",1),a3e.setClipUrl(y,a.layerClipId,r),y.each(function(_){var w=zB.select(this),b=i3e(_,l,o);if(!(m&&!_.vis)){var M,k=w.select("path.yerror");if(h.visible&&Wo(b.x)&&Wo(b.yh)&&Wo(b.ys)){var A=h.width;M="M"+(b.x-A)+","+b.yh+"h"+2*A+"m-"+A+",0V"+b.ys,b.noYS||(M+="m-"+A+",0h"+2*A),i=!k.size(),i?k=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",M)}else k.remove();var S=w.select("path.xerror");if(v.visible&&Wo(b.y)&&Wo(b.xh)&&Wo(b.xs)){var D=(v.copy_ystyle?h:v).width;M="M"+b.xh+","+(b.y-D)+"v"+2*D+"m0,-"+D+"H"+b.xs,b.noXS||(M+="m0,-"+D+"v"+2*D),i=!S.size(),i?S=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",M)}else S.remove()}})}})};function i3e(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),Wo(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),Wo(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var OB=B((_Ae,HB)=>{"use strict";var l3e=Dr(),IB=Ar();HB.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=l3e.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(IB.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(IB.stroke,i.color)})}});var GB=B((wAe,YB)=>{"use strict";var yd=Le(),BB=Ri().overrideAll,gd=H6(),xu={error_x:yd.extendFlat({},gd),error_y:yd.extendFlat({},gd)};delete xu.error_x.copy_zstyle;delete xu.error_y.copy_zstyle;delete xu.error_y.copy_ystyle;var bd={error_x:yd.extendFlat({},gd),error_y:yd.extendFlat({},gd),error_z:yd.extendFlat({},gd)};delete bd.error_x.copy_ystyle;delete bd.error_y.copy_ystyle;delete bd.error_z.copy_ystyle;delete bd.error_z.copy_zstyle;YB.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:xu,bar:xu,histogram:xu,scatter3d:BB(bd,"calc","nested"),scattergl:BB(xu,"calc","nested")}},supplyDefaults:SB(),calc:RB(),makeComputeError:O6(),plot:FB(),style:OB(),hoverInfo:o3e};function o3e(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 VB=B((TAe,UB)=>{"use strict";UB.exports={cn:{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 jB=B((MAe,QB)=>{"use strict";var Zo=Dr(),Ay=Gt(),XB=Mr(),$l=Jr(),My=Yi(),Ai=Le(),el=Ai.strTranslate,KB=Tt().extendFlat,G6=Eo(),ji=Vr(),Ac=Ar(),s3e=lv(),u3e=da(),f3e=On().flipScale,c3e=Zm(),v3e=$m(),d3e=Bn(),V6=za(),WB=V6.LINE_SPACING,ZB=V6.FROM_TL,JB=V6.FROM_BR,Et=VB().cn;function h3e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Et.colorbar).data(p3e(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Et.colorbar,!0),t.each(function(a){var n=Zo.select(this);Ai.ensureSingle(n,"rect",Et.cbbg),Ai.ensureSingle(n,"g",Et.cbfills),Ai.ensureSingle(n,"g",Et.cblines),Ai.ensureSingle(n,"g",Et.cbaxis,function(l){l.classed(Et.crisp,!0)}),Ai.ensureSingle(n,"g",Et.cbtitleunshift,function(l){l.append("g").classed(Et.cbtitle,!0)}),Ai.ensureSingle(n,"rect",Et.cboutline);var i=m3e(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&y3e(n,a,e)}),t.exit().each(function(a){Ay.autoMargin(e,a._id)}).remove(),t.order()}function p3e(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return KB(w,{_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 o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?f3e(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f<t.length;f++){var c=t[f];if(l=c[0].trace,!!l._module){var v=l._module.colorbar;if(l.visible===!0&&v)for(var h=Array.isArray(v),p=h?v:[v],m=0;m<p.length;m++){o=p[m];var y=o.container;i=y?l[y]:l,i&&i.showscale&&(n=s(i.colorbar),n._id="cb"+l.uid+(h&&y?"-"+y:""),n._traceIndex=l.index,n._propPrefix=(y?y+".":"")+"colorbar.",n._meta=l._meta,u(),a.push(n))}}}for(var x in r._colorAxes)if(i=r[x],i.showscale){var _=r._colorAxes[x];n=s(i.colorbar),n._id="cb"+x,n._propPrefix=x+".colorbar.",n._meta=r._meta,o={min:"cmin",max:"cmax"},_[0]!=="heatmap"&&(l=_[1],o.calc=l._module.colorbar.calc),u(),a.push(n)}return a}var U6=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],$B=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function m3e(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,l=r.thickness,o=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,v=r.yanchor,h=r.xpad,p=r.ypad,m=r.x,y=a?r.y:1-r.y,x=r.yref==="paper",_=r.xref==="paper",w=t._fullLayout,b=w._size,M=r._fillcolor,k=r._line,A=r.title,S=A.side,D=r._zrange||Zo.extent((typeof M=="function"?M:k.color).domain()),E=typeof k.color=="function"?k.color:function(){return k.color},R=typeof M=="function"?M:function(){return M},N=r._levels,I=g3e(t,r,D),H=I.fill,O=I.line,G=Math.round(l*(o==="fraction"?a?b.w:b.h:1)),Y=G/(a?b.w:b.h),V=Math.round(n*(i==="fraction"?a?b.h:b.w:1)),U=V/(a?b.h:b.w),Z=_?b.w:t._fullLayout.width,X=x?b.h:t._fullLayout.height,$=Math.round(a?m*Z+h:y*X+p),ae={center:.5,right:1}[c]||0,ie={top:1,middle:.5}[v]||0,ve=a?m-ae*Y:y-ie*Y,K=a?y-ie*U:m-ae*U,he=Math.round(a?X*(1-K):Z*K);r._lenFrac=U,r._thickFrac=Y,r._uFrac=ve,r._vFrac=K;var oe=r._axis=b3e(t,r,D);oe.position=Y+(a?m+h/b.w:y+p/b.h);var be=["top","bottom"].indexOf(S)!==-1;if(a&&be&&(oe.title.side=S,oe.titlex=m+h/b.w,oe.titley=K+(A.side==="top"?U-p/b.h:p/b.h)),!a&&!be&&(oe.title.side=S,oe.titley=y+p/b.h,oe.titlex=K+h/b.w),k.color&&r.tickmode==="auto"){oe.tickmode="linear",oe.tick0=N.start;var me=N.size,ce=Ai.constrain(V/50,4,15)+1,Me=(D[1]-D[0])/((r.nticks||ce)*me);if(Me>1){var De=Math.pow(10,Math.floor(Math.log(Me)/Math.LN10));me*=De*Ai.roundUp(Me/De,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(oe.tick0=0)}oe.dtick=me}var Te=a?p/b.h:h/b.w;oe.domain=$B(U6([K,K+U],Te),Te),oe.setScale(),e.attr("transform",el(Math.round(b.l),Math.round(b.t)));var Pe=e.select("."+Et.cbtitleunshift).attr("transform",el(-Math.round(b.l),-Math.round(b.t))),Se=oe.ticklabelposition,ke=oe.title.font.size,ze=e.select("."+Et.cbaxis),Ge,Ce=0,$e=0;function Ke(re,ye){var Ve={propContainer:oe,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+Et.cbtitle)},dr=re.charAt(0)==="h"?re.slice(1):"h"+re;e.selectAll("."+dr+",."+dr+"-math-group").remove(),s3e.draw(t,re,KB(Ve,ye||{}))}function Xe(){if(a&&be||!a&&!be){var re,ye;S==="top"&&(re=h+b.l+Z*m,ye=p+b.t+X*(1-K-U)+3+ke*.75),S==="bottom"&&(re=h+b.l+Z*m,ye=p+b.t+X*(1-K)-3-ke*.25),S==="right"&&(ye=p+b.t+X*y+3+ke*.75,re=h+b.l+Z*K),Ke(oe._id+"title",{attributes:{x:re,y:ye,"text-anchor":a?"start":"middle"}})}}function Ae(){if(a&&!be||!a&&be){var re=oe.position||0,ye=oe._offset+oe._length/2,Ve,dr;if(S==="right")dr=ye,Ve=b.l+Z*re+10+ke*(oe.showticklabels?1:.5);else if(Ve=ye,S==="bottom"&&(dr=b.t+X*re+10+(Se.indexOf("inside")===-1?oe.tickfont.size:0)+(oe.ticks!=="inside"&&r.ticklen||0)),S==="top"){var Ee=A.text.split("<br>").length;dr=b.t+X*re+10-G-WB*ke*Ee}Ke((a?"h":"v")+oe._id+"title",{avoid:{selection:Zo.select(t).selectAll("g."+oe._id+"tick"),side:S,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?w.width:w.height},attributes:{x:Ve,y:dr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Re(){if(!a&&!be||a&&be){var re=e.select("."+Et.cbtitle),ye=re.select("text"),Ve=[-s/2,s/2],dr=re.select(".h"+oe._id+"title-math-group").node(),Ee=15.6;ye.node()&&(Ee=parseInt(ye.node().style.fontSize,10)*WB);var pe;if(dr?(pe=ji.bBox(dr),$e=pe.width,Ce=pe.height,Ce>Ee&&(Ve[1]-=(Ce-Ee)/2)):ye.node()&&!ye.classed(Et.jsPlaceholder)&&(pe=ji.bBox(ye.node()),$e=pe.width,Ce=pe.height),a){if(Ce){if(Ce+=5,S==="top")oe.domain=$B(oe.domain,Ce/b.h),Ve[1]*=-1;else{oe.domain=U6(oe.domain,Ce/b.h);var we=u3e.lineCount(ye);Ve[1]+=(1-we)*Ee}re.attr("transform",el(Ve[0],Ve[1])),oe.setScale()}}else $e&&(S==="right"&&(oe.domain=U6(oe.domain,($e+ke/2)/b.w)),re.attr("transform",el(Ve[0],Ve[1])),oe.setScale())}e.selectAll("."+Et.cbfills+",."+Et.cblines).attr("transform",a?el(0,Math.round(b.h*(1-oe.domain[1]))):el(Math.round(b.w*oe.domain[0]),0)),ze.attr("transform",a?el(0,Math.round(-b.t)):el(Math.round(-b.l),0));var Oe=e.select("."+Et.cbfills).selectAll("rect."+Et.cbfill).attr("style","").data(H);Oe.enter().append("rect").classed(Et.cbfill,!0).attr("style",""),Oe.exit().remove();var We=D.map(oe.c2p).map(Math.round).sort(function(ur,qe){return ur-qe});Oe.each(function(ur,qe){var Je=[qe===0?D[0]:(H[qe]+H[qe-1])/2,qe===H.length-1?D[1]:(H[qe]+H[qe+1])/2].map(oe.c2p).map(Math.round);a&&(Je[1]=Ai.constrain(Je[1]+(Je[1]>Je[0])?1:-1,We[0],We[1]));var Fe=Zo.select(this).attr(a?"x":"y",$).attr(a?"y":"x",Zo.min(Je)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(Zo.max(Je)-Zo.min(Je),2));if(r._fillgradient)ji.gradient(Fe,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var hr=R(ur).replace("e-","");Fe.attr("fill",Ac.hexString(hr))}});var Ie=e.select("."+Et.cblines).selectAll("path."+Et.cbline).data(k.color&&k.width?O:[]);Ie.enter().append("path").classed(Et.cbline,!0),Ie.exit().remove(),Ie.each(function(ur){var qe=$,Je=Math.round(oe.c2p(ur))+k.width/2%1;Zo.select(this).attr("d","M"+(a?qe+","+Je:Je+","+qe)+(a?"h":"v")+G).call(ji.lineGroupStyle,k.width,E(ur),k.dash)}),ze.selectAll("g."+oe._id+"tick,path").remove();var Ue=$+G+(s||0)/2-(r.ticks==="outside"?1:0),ar=$l.calcTicks(oe),ir=$l.getTickSigns(oe)[2];return $l.drawTicks(t,oe,{vals:oe.ticks==="inside"?$l.clipEnds(oe,ar):ar,layer:ze,path:$l.makeTickPath(oe,Ue,ir),transFn:$l.makeTransTickFn(oe)}),$l.drawLabels(t,oe,{vals:ar,layer:ze,transFn:$l.makeTransTickLabelFn(oe),labelFns:$l.makeLabelFns(oe,Ue)})}function Qe(){var re,ye=G+s/2;Se.indexOf("inside")===-1&&(re=ji.bBox(ze.node()),ye+=a?re.width:re.height),Ge=Pe.select("text");var Ve=0,dr=a&&S==="top",Ee=!a&&S==="right",pe=0;if(Ge.node()&&!Ge.classed(Et.jsPlaceholder)){var we,Oe=Pe.select(".h"+oe._id+"title-math-group").node();Oe&&(a&&be||!a&&!be)?(re=ji.bBox(Oe),Ve=re.width,we=re.height):(re=ji.bBox(Pe.node()),Ve=re.right-b.l-(a?$:he),we=re.bottom-b.t-(a?he:$),!a&&S==="top"&&(ye+=re.height,pe=re.height)),Ee&&(Ge.attr("transform",el(Ve/2+ke/2,0)),Ve*=2),ye=Math.max(ye,a?Ve:we)}var We=(a?h:p)*2+ye+u+s/2,Ie=0;!a&&A.text&&v==="bottom"&&y<=0&&(Ie=We/2,We+=Ie,pe+=Ie),w._hColorbarMoveTitle=Ie,w._hColorbarMoveCBTitle=pe;var Ue=u+s,ar=(a?$:he)-Ue/2-(a?h:0),ir=(a?he:$)-(a?V:p+pe-Ie);e.select("."+Et.cbbg).attr("x",ar).attr("y",ir).attr(a?"width":"height",Math.max(We-Ie,2)).attr(a?"height":"width",Math.max(V+Ue,2)).call(Ac.fill,f).call(Ac.stroke,r.bordercolor).style("stroke-width",u);var ur=Ee?Math.max(Ve-10,0):0;e.selectAll("."+Et.cboutline).attr("x",(a?$:he+h)+ur).attr("y",(a?he+p-V:$)+(dr?Ce:0)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(V-(a?2*p+Ce:2*h+ur),2)).call(Ac.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var qe=a?ae*We:0,Je=a?0:(1-ie)*We-pe;if(qe=_?b.l-qe:-qe,Je=x?b.t-Je:-Je,e.attr("transform",el(qe,Je)),!a&&(u||Ac.opacity(f)&&!Ac.equals(w.paper_bgcolor,f))){var Fe=ze.selectAll("text"),hr=Fe[0].length,br=e.select("."+Et.cbbg).node(),sr=ji.bBox(br),pr=ji.getTranslate(e),te=2;Fe.each(function(mn,oa){var fn=0,Pn=hr-1;if(oa===fn||oa===Pn){var Rn=ji.bBox(this),mr=ji.getTranslate(this),mt;if(oa===Pn){var Qr=Rn.right+mr.x,xt=sr.right+pr.x+he-u-te+m;mt=xt-Qr,mt>0&&(mt=0)}else if(oa===fn){var zt=Rn.left+mr.x,St=sr.left+pr.x+he+u+te;mt=St-zt,mt<0&&(mt=0)}mt&&(hr<3?this.setAttribute("transform","translate("+mt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var de={},Ne=ZB[c],Ye=JB[c],Kr=ZB[v],ut=JB[v],pt=We-G;a?(i==="pixels"?(de.y=y,de.t=V*Kr,de.b=V*ut):(de.t=de.b=0,de.yt=y+n*Kr,de.yb=y-n*ut),o==="pixels"?(de.x=m,de.l=We*Ne,de.r=We*Ye):(de.l=pt*Ne,de.r=pt*Ye,de.xl=m-l*Ne,de.xr=m+l*Ye)):(i==="pixels"?(de.x=m,de.l=V*Ne,de.r=V*Ye):(de.l=de.r=0,de.xl=m+n*Ne,de.xr=m-n*Ye),o==="pixels"?(de.y=1-y,de.t=We*Kr,de.b=We*ut):(de.t=pt*Kr,de.b=pt*ut,de.yt=y-l*Kr,de.yb=y+l*ut));var Yt=r.y<.5?"b":"t",Rt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Aa={r:w.width-ar-qe,l:ar+de.r,b:w.height-ir-Je,t:ir+de.b};_&&x?Ay.autoMargin(t,r._id,de):_?t._fullLayout._reservedMargin[r._id][Yt]=Aa[Yt]:x||a?t._fullLayout._reservedMargin[r._id][Rt]=Aa[Rt]:t._fullLayout._reservedMargin[r._id][Yt]=Aa[Yt]}return Ai.syncOrAsync([Ay.previousPromises,Xe,Re,Ae,Ay.previousPromises,Qe],t)}function y3e(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;My.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),G6(e)},moveFn:function(u,f){e.attr("transform",l+el(u,f)),o=My.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=My.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=My.getCursor(o,s,r.xanchor,r.yanchor);G6(e,c)},doneFn:function(){if(G6(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?XB.call("_guiRestyle",t,u,r._traceIndex):XB.call("_guiRelayout",t,u)}}})}function g3e(e,r,t){var a=r._levels,n=[],i=[],l,o,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(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l<c&&n.push(l);if(r._fillgradient)i=[0];else if(typeof r._fillcolor=="function"){var v=r._filllevels;if(v)for(s=v.end+v.size/100,u=v.size,o=0;o<1e5&&(l=v.start+o*u,!(u>0?l>=s:l<=s));o++)l>t[0]&&l<t[1]&&i.push(l);else i=n.map(function(h){return h-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 b3e(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},l=n?"y":"x",o={type:"linear",_id:l+r._id},s={letter:l,font:a.font,noAutotickangles:l==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:a.calendar};function u(f,c){return Ai.coerce(i,o,d3e,f,c)}return c3e(i,o,u,s,a),v3e(i,o,u,s),o}QB.exports={draw:h3e}});var rY=B((AAe,eY)=>{"use strict";eY.exports={moduleType:"component",name:"colorbar",attributes:F1(),supplyDefaults:K5(),draw:jB().draw,hasColorbar:U5()}});var aY=B((kAe,tY)=>{"use strict";tY.exports={moduleType:"component",name:"legend",layoutAttributes:Wb(),supplyLayoutDefaults:Jb(),draw:ux(),style:ix()}});var iY=B((CAe,nY)=>{"use strict";nY.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 oY=B((LAe,lY)=>{"use strict";lY.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var W6=B((SAe,cY)=>{"use strict";var x3e=Mr(),fY=Le(),X6=fY.extendFlat,sY=fY.extendDeep;function uY(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 _3e(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}cY.exports=function(r,t){var a,n=r.data,i=r.layout,l=sY([],n),o=sY({},i,uY(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a<u.length;a++)_3e(u[a])&&(o[u[a]].title={text:""});for(a=0;a<l.length;a++){var f=l[a];f.showscale=!1,f.marker&&(f.marker.showscale=!1),x3e.traceIs(f,"pie-like")&&(f.textposition="none")}}if(Array.isArray(t.annotations))for(a=0;a<t.annotations.length;a++)o.annotations.push(t.annotations[a]);var c=Object.keys(o).filter(function(y){return y.match(/^scene\d*$/)});if(c.length){var v={};for(t.tileClass==="thumbnail"&&(v={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),a=0;a<c.length;a++){var h=o[c[a]];h.xaxis||(h.xaxis={}),h.yaxis||(h.yaxis={}),h.zaxis||(h.zaxis={}),X6(h.xaxis,v),X6(h.yaxis,v),X6(h.zaxis,v),h._scene=null}}var p=document.createElement("div");t.tileClass&&(p.className=t.tileClass);var m={gd:p,td:p,layout:o,data:l,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"&&(m.config.setBackground=t.setBackground||"opaque"),m.gd.defaultLayout=uY(t.tileClass),m}});var hY=B((qAe,dY)=>{"use strict";var w3e=A1().EventEmitter,T3e=Mr(),M3e=Le(),vY=ou(),A3e=W6(),k3e=qm(),C3e=Dm();function L3e(e,r){var t=new w3e,a=A3e(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=vY.getDelay(n._fullLayout);setTimeout(function(){var s=k3e(n),u=document.createElement("canvas");u.id=M3e.randstr(),t=C3e({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)}},o)}var l=vY.getRedrawFunc(n);return T3e.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}dY.exports=L3e});var yY=B((DAe,mY)=>{"use strict";var pY=ou(),S3e={getDelay:pY.getDelay,getRedrawFunc:pY.getRedrawFunc,clone:W6(),toSVG:qm(),svgToImg:Dm(),toImage:hY(),downloadImage:q4()};mY.exports=S3e});var bY=B(Kl=>{"use strict";Kl.version=y0().version;f9();Qk();var q3e=Mr(),xd=Kl.register=q3e.register,J6=bN(),gY=Object.keys(J6);for(ky=0;ky<gY.length;ky++)kc=gY[ky],kc.charAt(0)!=="_"&&(Kl[kc]=J6[kc]),xd({moduleType:"apiMethod",name:kc,fn:J6[kc]});var kc,ky;xd(DI());xd([tH(),mH(),lc(),zH(),ZH(),mO(),NO(),rB(),bB(),AB(),GB(),rb(),rY(),aY(),vi(),zx()]);xd([iY(),oY()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(xd(window.PlotlyLocales),delete window.PlotlyLocales);Kl.Icons=Dp();var Cy=vi(),Z6=Gt();Kl.Plots={resize:Z6.resize,graphJson:Z6.graphJson,sendDataToCloud:Z6.sendDataToCloud};Kl.Fx={hover:Cy.hover,unhover:Cy.unhover,loneHover:Cy.loneHover,loneUnhover:Cy.loneUnhover};Kl.Snapshot=yY();Kl.PlotSchema=Ef()});var _Y=B((PAe,xY)=>{"use strict";xY.exports=bY()});var Ql=B((RAe,kY)=>{"use strict";var Ot=Ui(),wY=Hi().axisHoverFormat,{hovertemplateAttrs:D3e,texttemplateAttrs:E3e,templatefallbackAttrs:TY}=Fn(),AY=rv(),P3e=ma(),MY=nd(),R3e=zi().pattern,_u=Tt().extendFlat,$6=P3e({editType:"calc",arrayOk:!0,colorEditType:"style"}),z3e=Ot.marker,N3e=z3e.line,F3e=_u({},N3e.width,{dflt:0}),I3e=_u({width:F3e,editType:"calc"},AY("marker.line")),H3e=_u({line:I3e,editType:"calc"},AY("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:R3e,cornerradius:{valType:"any",editType:"calc"}});kY.exports={x:Ot.x,x0:Ot.x0,dx:Ot.dx,y:Ot.y,y0:Ot.y0,dy:Ot.dy,xperiod:Ot.xperiod,yperiod:Ot.yperiod,xperiod0:Ot.xperiod0,yperiod0:Ot.yperiod0,xperiodalignment:Ot.xperiodalignment,yperiodalignment:Ot.yperiodalignment,xhoverformat:wY("x"),yhoverformat:wY("y"),text:Ot.text,texttemplate:E3e({editType:"plot"},{keys:MY.eventDataKeys}),texttemplatefallback:TY({editType:"plot"}),hovertext:Ot.hovertext,hovertemplate:D3e({},{keys:MY.eventDataKeys}),hovertemplatefallback:TY(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:_u({},$6,{}),insidetextfont:_u({},$6,{}),outsidetextfont:_u({},$6,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:_u({},Ot.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:H3e,offsetgroup:Ot.offsetgroup,alignmentgroup:Ot.alignmentgroup,selected:{marker:{opacity:Ot.selected.marker.opacity,color:Ot.selected.marker.color,editType:"style"},textfont:Ot.selected.textfont,editType:"style"},unselected:{marker:{opacity:Ot.unselected.marker.opacity,color:Ot.unselected.marker.color,editType:"style"},textfont:Ot.unselected.textfont,editType:"style"},zorder:Ot.zorder}});var Ly=B((zAe,CY)=>{"use strict";CY.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var K6=B((NAe,qY)=>{"use strict";var O3e=Ar(),LY=On().hasColorscale,SY=Nf(),B3e=Le().coercePattern;qY.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=LY(r,"marker");o&&SY(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",O3e.defaultLine),LY(r,"marker.line")&&SY(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),B3e(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var kl=B((FAe,NY)=>{"use strict";var DY=Br(),Cc=Le(),EY=Ar(),Y3e=Mr(),G3e=rd(),U3e=cu(),V3e=K6(),X3e=uc(),PY=Ql(),Sy=Cc.coerceFont;function W3e(e,r,t,a){function n(u,f){return Cc.coerce(e,r,PY,u,f)}var i=G3e(e,r,a,n);if(!i){r.visible=!1;return}U3e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");zY(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),V3e(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Y3e.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||EY.defaultLine,{axis:"y"}),s(e,r,o||EY.defaultLine,{axis:"x",inherit:"y"}),Cc.coerceSelectionMarkerOpacity(r,n)}function Z3e(e,r){var t,a;function n(o,s){return Cc.coerce(a._input,a,PY,o,s)}for(var i=0;i<e.length;i++)if(a=e[i],a.type==="bar"){t=a._input;var l=n("marker.cornerradius",r.barcornerradius);a.marker&&(a.marker.cornerradius=RY(l)),X3e(t,a,r,n,r.barmode)}}function RY(e){if(DY(e)){if(e=+e,e>=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&DY(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function zY(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,h=Array.isArray(n)||n==="auto",p=h||n==="inside",m=h||n==="outside";if(p||m){var y=Sy(a,"textfont",t.font),x=Cc.extendFlat({},y),_=e.textfont&&e.textfont.color,w=!_;if(w&&delete x.color,Sy(a,"insidetextfont",x),v){var b=Cc.extendFlat({},y);w&&delete b.color,Sy(a,"pathbar.textfont",b)}m&&Sy(a,"outsidetextfont",y),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}NY.exports={supplyDefaults:W3e,crossTraceDefaults:Z3e,handleText:zY,validateCornerradius:RY}});var Q6=B((IAe,FY)=>{"use strict";var J3e=Mr(),$3e=Jr(),K3e=Le(),Q3e=Ly(),j3e=kl().validateCornerradius;FY.exports=function(e,r,t){function a(m,y){return K3e.coerce(e,r,Q3e,m,y)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f<t.length;f++){var c=t[f];if(J3e.traceIs(c,"bar")&&c.visible)n=!0;else continue;var v=c.xaxis+c.yaxis;if(u?(o[v]&&(l=!0),o[v]=!0):(v+=c._input.offsetgroup,o.length>0&&!o[v]&&(l=!0),o[v]=!0),c.visible&&c.type==="histogram"){var h=$3e.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);h.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=j3e(p)}});var qy=B((HAe,IY)=>{"use strict";var Lc=Le();IY.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;Lc.mergeArray(t.text,r,"tx"),Lc.mergeArray(t.hovertext,r,"htx");var n=t.marker;if(n){Lc.mergeArray(n.opacity,r,"mo",!0),Lc.mergeArray(n.color,r,"mc");var i=n.line;i&&(Lc.mergeArray(i.color,r,"mlc"),Lc.mergeArrayCastPositive(i.width,r,"mlw"))}}});var UY=B((OAe,GY)=>{"use strict";var HY=Jr(),OY=vu(),BY=On().hasColorscale,YY=tv(),e5e=qy(),r5e=td();GY.exports=function(r,t){var a=HY.getFromId(r,t.xaxis||"x"),n=HY.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),o=n.makeCalcdata(t,"y"),s=OY(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=OY(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var v=Math.min(l.length,i.length),h=new Array(v),p=0;p<v;p++)h[p]={p:l[p],s:i[p]},u&&(h[p].orig_p=o[p],h[p][f+"End"]=s.ends[p],h[p][f+"Start"]=s.starts[p]),t.ids&&(h[p].id=String(t.ids[p]));return BY(t,"marker")&&YY(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),BY(t,"marker.line")&&YY(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),e5e(h,t),r5e(h,t),h}});var rl=B((BAe,XY)=>{"use strict";var t5e=Dr(),a5e=Le();function n5e(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=t5e.select(this).select("text");a5e.setTransormAndDisplay(u,s)}})}}function i5e(e,r,t){if(t.uniformtext.mode){var a=VY(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i<n,t[a]=t[a]||1/0,r.hide||(t[a]=Math.min(t[a],Math.max(i,n)))}}function l5e(e,r){var t=VY(e);r[t]=void 0}function VY(e){return"_"+e+"Text_minsize"}XY.exports={recordMinTextSize:i5e,clearMinTextSize:l5e,resizeText:n5e}});var Dy=B(wu=>{"use strict";var o5e=Ar(),s5e=Br(),WY=Le().isArrayOrTypedArray;wu.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};wu.coerceNumber=function(e,r,t){if(s5e(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&r<a||n!==void 0&&r>n;if(!i)return r}return t!==void 0?t:e.dflt};wu.coerceColor=function(e,r,t){return o5e.isValid(r)?r:t!==void 0?t:e.dflt};wu.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};wu.getValue=function(e,r){var t;return WY(e)?r<e.length&&(t=e[r]):t=e,t};wu.getLineWidth=function(e,r){var t=0<r.mlw?r.mlw:WY(e.marker.line.width)?0:e.marker.line.width;return t}});var Jo=B((GAe,nG)=>{"use strict";var _d=Dr(),u5e=Ar(),wd=Vr(),ZY=Le(),JY=Mr(),$Y=rl().resizeText,j6=Ql(),f5e=j6.textfont,c5e=j6.insidetextfont,v5e=j6.outsidetextfont,Ia=Dy();function d5e(e){var r=_d.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");$Y(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&_d.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=_d.select(this),l=n[0].trace;KY(i,l,e)}),JY.getComponentMethod("errorbars","style")(r)}function KY(e,r,t){wd.pointStyle(e.selectAll("path"),r,t),QY(e,r,t)}function QY(e,r,t){e.selectAll("text").each(function(a){var n=_d.select(this),i=ZY.ensureUniformFontSize(t,jY(n,a,r,t));wd.font(n,i)})}function h5e(e,r,t){var a=r[0].trace;a.selectedpoints?p5e(t,a,e):(KY(t,a,e),JY.getComponentMethod("errorbars","style")(t))}function p5e(e,r,t){wd.selectedPointStyle(e.selectAll("path"),r),m5e(e.selectAll("text"),r,t)}function m5e(e,r,t){e.each(function(a){var n=_d.select(this),i;if(a.selected){i=ZY.ensureUniformFontSize(t,jY(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),wd.font(n,i)}else wd.selectedTextStyle(n,r)})}function jY(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=aG(r,t);i=rG(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=tG(t,r.i,n));return i}function eG(e,r,t){return e_(f5e,e.textfont,r,t)}function rG(e,r,t,a){var n=eG(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:u5e.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),e_(c5e,e.insidetextfont,r,n)}function tG(e,r,t){var a=eG(e,r,t);return e_(v5e,e.outsidetextfont,r,a)}function e_(e,r,t,a){r=r||{};var n=Ia.getValue(r.family,t),i=Ia.getValue(r.size,t),l=Ia.getValue(r.color,t),o=Ia.getValue(r.weight,t),s=Ia.getValue(r.style,t),u=Ia.getValue(r.variant,t),f=Ia.getValue(r.textcase,t),c=Ia.getValue(r.lineposition,t),v=Ia.getValue(r.shadow,t);return{family:Ia.coerceString(e.family,n,a.family),size:Ia.coerceNumber(e.size,i,a.size),color:Ia.coerceColor(e.color,l,a.color),weight:Ia.coerceString(e.weight,o,a.weight),style:Ia.coerceString(e.style,s,a.style),variant:Ia.coerceString(e.variant,u,a.variant),textcase:Ia.coerceString(e.variant,f,a.textcase),lineposition:Ia.coerceString(e.variant,c,a.lineposition),shadow:Ia.coerceString(e.variant,v,a.shadow)}}function aG(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}nG.exports={style:d5e,styleTextPoints:QY,styleOnSelect:h5e,getInsideTextFont:rG,getOutsideTextFont:tG,getBarColor:aG,resizeText:$Y}});var qc=B((UAe,vG)=>{"use strict";var Ey=Dr(),Py=Br(),La=Le(),y5e=da(),g5e=Ar(),$o=Vr(),b5e=Mr(),Ry=Jr().tickText,iG=rl(),x5e=iG.recordMinTextSize,_5e=iG.clearMinTextSize,r_=Jo(),Sc=Dy(),w5e=nd(),lG=Ql(),T5e=lG.text,M5e=lG.textposition,A5e=Oi().appendArrayPointValue,sn=w5e.TEXTPAD;function k5e(e){return e.id}function C5e(e){if(e.ids)return k5e}function t_(e){return(e>0)-(e<0)}function tl(e,r){return e<r?1:-1}function L5e(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),a?[n,i]:[i,n]}function oG(e,r,t,a){if(!r.uniformtext.mode&&sG(t)){var n;return a&&(n=a()),e.transition().duration(t.duration).ease(t.easing).each("end",function(){n&&n()}).each("interrupt",function(){n&&n()})}else return e}function sG(e){return e&&e.duration>0}function S5e(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},_5e("bar",s));var f=La.makeTraceGroups(a,t,"trace bars").each(function(c){var v=Ey.select(this),h=c[0].trace,p=c[0].t,m=h.type==="waterfall",y=h.type==="funnel",x=h.type==="histogram",_=h.type==="bar",w=_||y,b=0;m&&h.connector.visible&&h.connector.mode==="between"&&(b=h.connector.line.width/2);var M=h.orientation==="h",k=sG(n),A=La.ensureSingle(v,"g","points"),S=C5e(h),D=A.selectAll("g.point").data(La.identity,S);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(R,N){var I=Ey.select(this),H=L5e(R,l,o,M),O=H[0][0],G=H[0][1],Y=H[1][0],V=H[1][1],U=(M?G-O:V-Y)===0;U&&w&&Sc.getLineWidth(h,R)&&(U=!1),U||(U=!Py(O)||!Py(G)||!Py(Y)||!Py(V)),R.isBlank=U,U&&(M?G=O:V=Y),b&&!U&&(M?(O-=tl(O,G)*b,G+=tl(O,G)*b):(Y-=tl(Y,V)*b,V+=tl(Y,V)*b));var Z,X;if(h.type==="waterfall"){if(!U){var $=h[R.dir].marker;Z=$.line.width,X=$.color}}else Z=Sc.getLineWidth(h,R),X=R.mc||h.marker.color;function ae(re){var ye=Ey.round(Z/2%1,2);return n.gap===0&&n.groupgap===0?Ey.round(Math.round(re)-ye,2):re}function ie(re,ye,Ve){return Ve&&re===ye?re:Math.abs(re-ye)>=2?ae(re):re>ye?Math.ceil(re):Math.floor(re)}var ve=g5e.opacity(X),K=ve<1||Z>.01?ae:ie;e._context.staticPlot||(O=K(O,G,M),G=K(G,O,M),Y=K(Y,V,!M),V=K(V,Y,!M));var he=M?l.c2p:o.c2p,oe;R.s0>0?oe=R._sMax:R.s0<0?oe=R._sMin:oe=R.s1>0?R._sMax:R._sMin;function be(re,ye){if(!re)return 0;var Ve=Math.abs(M?V-Y:G-O),dr=Math.abs(M?G-O:V-Y),Ee=K(Math.abs(he(oe,!0)-he(0,!0))),pe=R.hasB?Math.min(Ve/2,dr/2):Math.min(Ve/2,Ee),we;if(ye==="%"){var Oe=Math.min(50,re);we=Ve*(Oe/100)}else we=re;return K(Math.max(Math.min(we,pe),0))}var me=_||x?be(p.cornerradiusvalue,p.cornerradiusform):0,ce,Me,De="M"+O+","+Y+"V"+V+"H"+G+"V"+Y+"Z",Te=0;if(me&&R.s){var Pe=t_(R.s0)===0||t_(R.s)===t_(R.s0)?R.s1:R.s0;if(Te=K(R.hasB?0:Math.abs(he(oe,!0)-he(Pe,!0))),Te<me){var Se=tl(O,G),ke=tl(Y,V),ze=Se===-ke?1:0;if(M)if(R.hasB)ce="M"+(O+me*Se)+","+Y+"A "+me+","+me+" 0 0 "+ze+" "+O+","+(Y+me*ke)+"V"+(V-me*ke)+"A "+me+","+me+" 0 0 "+ze+" "+(O+me*Se)+","+V+"H"+(G-me*Se)+"A "+me+","+me+" 0 0 "+ze+" "+G+","+(V-me*ke)+"V"+(Y+me*ke)+"A "+me+","+me+" 0 0 "+ze+" "+(G-me*Se)+","+Y+"Z";else{Me=Math.abs(G-O)+Te;var Ge=Me<me?me-Math.sqrt(Me*(2*me-Me)):0,Ce=Te>0?Math.sqrt(Te*(2*me-Te)):0,$e=Se>0?Math.max:Math.min;ce="M"+O+","+Y+"V"+(V-Ge*ke)+"H"+$e(G-(me-Te)*Se,O)+"A "+me+","+me+" 0 0 "+ze+" "+G+","+(V-me*ke-Ce)+"V"+(Y+me*ke+Ce)+"A "+me+","+me+" 0 0 "+ze+" "+$e(G-(me-Te)*Se,O)+","+(Y+Ge*ke)+"Z"}else if(R.hasB)ce="M"+(O+me*Se)+","+Y+"A "+me+","+me+" 0 0 "+ze+" "+O+","+(Y+me*ke)+"V"+(V-me*ke)+"A "+me+","+me+" 0 0 "+ze+" "+(O+me*Se)+","+V+"H"+(G-me*Se)+"A "+me+","+me+" 0 0 "+ze+" "+G+","+(V-me*ke)+"V"+(Y+me*ke)+"A "+me+","+me+" 0 0 "+ze+" "+(G-me*Se)+","+Y+"Z";else{Me=Math.abs(V-Y)+Te;var Ke=Me<me?me-Math.sqrt(Me*(2*me-Me)):0,Xe=Te>0?Math.sqrt(Te*(2*me-Te)):0,Ae=ke>0?Math.max:Math.min;ce="M"+(O+Ke*Se)+","+Y+"V"+Ae(V-(me-Te)*ke,Y)+"A "+me+","+me+" 0 0 "+ze+" "+(O+me*Se-Xe)+","+V+"H"+(G-me*Se+Xe)+"A "+me+","+me+" 0 0 "+ze+" "+(G-Ke*Se)+","+Ae(V-(me-Te)*ke,Y)+"V"+Y+"Z"}}else ce=De}else ce=De;var Re=oG(La.ensureSingle(I,"path"),s,n,i);if(Re.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((G-O)*(V-Y))||U&&e._context.staticPlot?"M0,0Z":ce).call($o.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Qe=$o.makePointStyleFns(h);$o.singlePointStyle(R,Re,h,Qe,e)}q5e(e,r,I,c,N,O,G,Y,V,me,Te,n,i),r.layerClipId&&$o.hideOutsideRangePoint(R,I.select("text"),l,o,h.xcalendar,h.ycalendar)});var E=h.cliponaxis===!1;$o.setClipUrl(v,E?null:r.layerClipId,e)});b5e.getComponentMethod("errorbars","plot")(e,f,r,n)}function q5e(e,r,t,a,n,i,l,o,s,u,f,c,v){var h=r.xaxis,p=r.yaxis,m=e._fullLayout,y;function x(De,Te,Pe){var Se=La.ensureSingle(De,"text").text(Te).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call($o.font,Pe).call(y5e.convertToTspans,e);return Se}var _=a[0].trace,w=_.orientation==="h",b=z5e(a,w,h,p),M=P5e(m,a,n,h,p);y=R5e(_,n);var k=c.mode==="stack"||c.mode==="relative",A=a[n],S=!k||A._outmost,D=A.hasB,E=u&&u-f>sn;if(!M||y==="none"||(A.isBlank||i===l||o===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var R=m.font,N=r_.getBarColor(a[n],_),I=r_.getInsideTextFont(_,n,R,N),H=r_.getOutsideTextFont(_,n,R),O=_.insidetextanchor||"end",G=t.datum();w?h.type==="log"&&G.s0<=0&&(h.range[0]<h.range[1]?i=0:i=h._length):p.type==="log"&&G.s0<=0&&(p.range[0]<p.range[1]?o=p._length:o=0);var Y=Math.abs(l-i),V=Math.abs(s-o),U=Y-2*sn,Z=V-2*sn,X,$,ae,ie,ve;if(y==="outside"&&!S&&!A.hasB&&(y="inside"),y==="auto")if(S){y="inside",ve=La.ensureUniformFontSize(e,I),X=x(t,M,ve),$=$o.bBox(X.node()),ae=$.width,ie=$.height;var K=ae>0&&ie>0,he;E?D?he=Tu(U-2*u,Z,ae,ie,w)||Tu(U,Z-2*u,ae,ie,w):w?he=Tu(U-(u-f),Z,ae,ie,w)||Tu(U,Z-2*(u-f),ae,ie,w):he=Tu(U,Z-(u-f),ae,ie,w)||Tu(U-2*(u-f),Z,ae,ie,w):he=Tu(U,Z,ae,ie,w),K&&he?y="inside":(y="outside",X.remove(),X=null)}else y="inside";if(!X){ve=La.ensureUniformFontSize(e,y==="outside"?H:I),X=x(t,M,ve);var oe=X.attr("transform");if(X.attr("transform",""),$=$o.bBox(X.node()),ae=$.width,ie=$.height,X.attr("transform",oe),ae<=0||ie<=0){X.remove();return}}var be=_.textangle,me,ce;y==="outside"?(ce=_.constraintext==="both"||_.constraintext==="outside",me=E5e(i,l,o,s,$,{isHorizontal:w,constrained:ce,angle:be,zeroBarDir:b})):(ce=_.constraintext==="both"||_.constraintext==="inside",me=cG(i,l,o,s,$,{isHorizontal:w,constrained:ce,angle:be,anchor:O,hasB:D,r:u,overhead:f})),me.fontSize=ve.size,x5e(_.type==="histogram"?"bar":_.type,me,m),A.transform=me;var Me=oG(X,m,c,v);La.setTransormAndDisplay(Me,me)}function Tu(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function uG(e){return e==="auto"?0:e}function fG(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function cG(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,h=(v+1)/2,p=1-h,m=i.hasB,y=i.r,x=i.overhead,_=n.width,w=n.height,b=Math.abs(r-e),M=Math.abs(a-t),k=b>2*sn&&M>2*sn?sn:0;b-=2*k,M-=2*k;var A=uG(s);s==="auto"&&!(_<=b&&w<=M)&&(_>b||w>M)&&(!(_>M||w>b)||_<w!=b<M)&&(A+=90);var S=fG(n,A),D,E;if(y&&y-x>sn){var R=D5e(e,r,t,a,S,y,x,l,m);D=R.scale,E=R.pad}else D=1,o&&(D=Math.min(1,b/S.x,M/S.y)),E=0;var N=n.left*p+n.right*h,I=(n.top+n.bottom)/2,H=(e+sn)*p+(r-sn)*h,O=(t+a)/2,G=0,Y=0;if(c||f){var V=(l?S.x:S.y)/2;y&&(f||m)&&(k+=E);var U=l?tl(e,r):tl(t,a);l?c?(H=e+U*k,G=-U*V):(H=r-U*k,G=U*V):c?(O=t+U*k,Y=-U*V):(O=a-U*k,Y=U*V)}return{textX:N,textY:I,targetX:H,targetY:O,anchorX:G,anchorY:Y,scale:D,rotate:A}}function D5e(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*sn),f=Math.max(0,Math.abs(a-t)-2*sn),c=i-sn,v=l?c-Math.sqrt(c*c-(c-l)*(c-l)):c,h=s?c*2:o?c-l:2*v,p=s?c*2:o?2*v:c-l,m,y,x,_,w;return n.y/n.x>=f/(u-h)?_=f/n.y:n.y/n.x<=(f-p)/u?_=u/n.x:!s&&o?(m=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),x=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*x))/(2*m)):s?(m=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),x=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*x))/(2*m)):(m=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),x=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*x))/(2*m)),_=Math.min(1,_),o?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*_)/2)*(c-(f-n.y*_)/2)))-l):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*_)/2)*(c-(u-n.x*_)/2)))-l),{scale:_,pad:w}}function E5e(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),h;l?h=v>2*sn?sn:0:h=c>2*sn?sn:0;var p=1;o&&(p=l?Math.min(1,v/f):Math.min(1,c/u));var m=uG(s),y=fG(n,m),x=(l?y.x:y.y)/2,_=(n.left+n.right)/2,w=(n.top+n.bottom)/2,b=(e+r)/2,M=(t+a)/2,k=0,A=0,S;return(l?e===r:t===a)&&i.zeroBarDir?S=i.zeroBarDir:S=l?tl(r,e):tl(t,a),l?(b=r-S*h,k=S*x):(M=a+S*h,A=-S*x),{textX:_,textY:w,targetX:b,targetY:M,anchorX:k,anchorY:A,scale:p,rotate:m}}function P5e(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=N5e(e,r,t,a,n):i.textinfo?o=F5e(r,t,a,n):o=Sc.getValue(i.text,t),Sc.coerceString(T5e,o)}function R5e(e,r){var t=Sc.getValue(e.textposition,r);return Sc.coerceEnumerated(M5e,t)}function z5e(e,r,t,a){for(var n=!1,i=!1,l=0;l<e.length;l++){var o=e[l].s;if(o>0?n=!0:o<0&&(i=!0),n&&i)return 0}var s=r?t:a,u=-tl(s.range[0],s.range[1]);return i?n?0:-u:u}function N5e(e,r,t,a,n){var i=r[0].trace,l=La.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,h,p;f?(c="y",v=n,h="x",p=a):(c="x",v=a,h="y",p=n);function m(k){return Ry(v,v.c2l(k),!0).text}function y(k){return Ry(p,p.c2l(k),!0).text}var x=r[t],_={};_.label=x.p,_.labelLabel=_[c+"Label"]=m(x.p);var w=La.castOption(i,x.i,"text");(w===0||w)&&(_.text=w),_.value=x.s,_.valueLabel=_[h+"Label"]=y(x.s);var b={};A5e(b,i,x.i),(o||b.x===void 0)&&(b.x=f?_.value:_.label),(o||b.y===void 0)&&(b.y=f?_.label:_.value),(o||b.xLabel===void 0)&&(b.xLabel=f?_.valueLabel:_.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?_.labelLabel:_.valueLabel),s&&(_.delta=+x.rawS||x.s,_.deltaLabel=y(_.delta),_.final=x.v,_.finalLabel=y(_.final),_.initial=_.final-_.delta,_.initialLabel=y(_.initial)),u&&(_.value=x.s,_.valueLabel=y(_.value),_.percentInitial=x.begR,_.percentInitialLabel=La.formatPercent(x.begR),_.percentPrevious=x.difR,_.percentPreviousLabel=La.formatPercent(x.difR),_.percentTotal=x.sumR,_.percenTotalLabel=La.formatPercent(x.sumR));var M=La.castOption(i,x.i,"customdata");return M&&(_.customdata=M),La.texttemplateString({data:[b,_,i._meta],fallback:i.texttemplatefallback,labels:_,locale:e._d3locale,template:l})}function F5e(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(M){var k=i?a:t;return Ry(k,M,!0).text}function u(M){var k=i?t:a;return Ry(k,+M,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),h=[],p,m=function(M){return v.indexOf(M)!==-1};if(m("label")&&h.push(s(e[r].p)),m("text")&&(p=La.castOption(n,c.i,"text"),(p===0||p)&&h.push(p)),l){var y=+c.rawS||c.s,x=c.v,_=x-y;m("initial")&&h.push(u(_)),m("delta")&&h.push(u(y)),m("final")&&h.push(u(x))}if(o){m("value")&&h.push(u(c.s));var w=0;m("percent initial")&&w++,m("percent previous")&&w++,m("percent total")&&w++;var b=w>1;m("percent initial")&&(p=La.formatPercent(c.begR),b&&(p+=" of initial"),h.push(p)),m("percent previous")&&(p=La.formatPercent(c.difR),b&&(p+=" of previous"),h.push(p)),m("percent total")&&(p=La.formatPercent(c.sumR),b&&(p+=" of total"),h.push(p))}return h.join("<br>")}vG.exports={plot:S5e,toMoveInsideBar:cG}});var Md=B((VAe,mG)=>{"use strict";var Td=vi(),I5e=Mr(),dG=Ar(),H5e=Le().fillText,O5e=Dy().getLineWidth,a_=Jr().hoverLabelText,B5e=Dt().BADNUM;function Y5e(e,r,t,a,n){var i=hG(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=pG(o,s),I5e.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function hG(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,h,p,m,y,x,_;l.orientation==="h"?(v=t,h=r,p="y",m="x",y=O,x=N):(v=r,h=t,p="x",m="y",x=O,y=N);var w=l[p+"period"],b=s||w;function M(K){return A(K,-1)}function k(K){return A(K,1)}function A(K,he){var oe=K.w;return K[p]+he*oe/2}function S(K){return K[p+"End"]-K[p+"Start"]}var D=s?M:w?function(K){return K.p-S(K)/2}:function(K){return Math.min(M(K),K.p-o.bardelta/2)},E=s?k:w?function(K){return K.p+S(K)/2}:function(K){return Math.max(k(K),K.p+o.bardelta/2)};function R(K,he,oe){return n.finiteRange&&(oe=0),Td.inbox(K-v,he-v,oe+Math.min(1,Math.abs(he-K)/_)-1)}function N(K){return R(D(K),E(K),f)}function I(K){return R(M(K),k(K),c)}function H(K){var he=K[m];if(u){var oe=Math.abs(K.rawS)||0;h>0?he+=oe:h<0&&(he-=oe)}return he}function O(K){var he=h,oe=K.b,be=H(K);return Td.inbox(oe-he,be-he,f+(be-he)/(be-oe)-1)}function G(K){var he=h,oe=K.b,be=H(K);return Td.inbox(oe-he,be-he,c+(be-he)/(be-oe)-1)}var Y=e[p+"a"],V=e[m+"a"];_=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function U(K){return(y(K)+x(K))/2}var Z=Td.getDistanceFunction(a,y,x,U);if(Td.getClosest(i,Z,e),e.index!==!1&&i[e.index].p!==B5e){b||(D=function(K){return Math.min(M(K),K.p-o.bargroupwidth/2)},E=function(K){return Math.max(k(K),K.p+o.bargroupwidth/2)});var X=e.index,$=i[X],ae=l.base?$.b+$.s:$.s;e[m+"0"]=e[m+"1"]=V.c2p($[m],!0),e[m+"LabelVal"]=ae;var ie=o.extents[o.extents.round($.p)];e[p+"0"]=Y.c2p(s?D($):ie[0],!0),e[p+"1"]=Y.c2p(s?E($):ie[1],!0);var ve=$.orig_p!==void 0;return e[p+"LabelVal"]=ve?$.orig_p:$.p,e.labelLabel=a_(Y,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=a_(V,e[m+"LabelVal"],l[m+"hoverformat"]),e.baseLabel=a_(V,$.b,l[m+"hoverformat"]),e.spikeDistance=(G($)+I($))/2,e[p+"Spike"]=Y.c2p($.p,!0),H5e($,l,e),e.hovertemplate=l.hovertemplate,e}}function pG(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=O5e(e,r);if(dG.opacity(t))return t;if(dG.opacity(a)&&n)return a}mG.exports={hoverPoints:Y5e,hoverOnBars:hG,getTraceColor:pG}});var gG=B((XAe,yG)=>{"use strict";yG.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var Ad=B((WAe,bG)=>{"use strict";bG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f<a.length;f++)a[f].selected=0;else for(f=0;f<a.length;f++){var c=a[f],v="ct"in c?c.ct:G5e(c,n,i,s,o);t.contains(v,!1,f,r)?(u.push({pointNumber:f,x:n.c2d(c.x),y:i.c2d(c.y)}),c.selected=1):c.selected=0}return u};function G5e(e,r,t,a,n){var i=r.c2p(a?e.s0:e.p0,!0),l=r.c2p(a?e.s1:e.p1,!0),o=t.c2p(a?e.p0:e.s0,!0),s=t.c2p(a?e.p1:e.s1,!0);return n?[(i+l)/2,(o+s)/2]:a?[l,(o+s)/2]:[(i+l)/2,s]}});var _G=B((ZAe,xG)=>{"use strict";xG.exports={attributes:Ql(),layoutAttributes:Ly(),supplyDefaults:kl().supplyDefaults,crossTraceDefaults:kl().crossTraceDefaults,supplyLayoutDefaults:Q6(),calc:UY(),crossTraceCalc:vc().crossTraceCalc,colorbar:Gm(),arraysToCalcdata:qy(),plot:qc().plot,style:Jo().style,styleOnSelect:Jo().styleOnSelect,hoverPoints:Md().hoverPoints,eventData:gG(),selectPoints:Ad(),moduleType:"trace",name:"bar",basePlotModule:Wl(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var TG=B((JAe,wG)=>{"use strict";wG.exports=_G()});var AG=B(($Ae,MG)=>{"use strict";MG.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var CG=B((KAe,kG)=>{"use strict";kG.exports={eventDataKeys:["binNumber"]}});var l_=B((QAe,DG)=>{"use strict";var qn=Ql(),LG=Hi().axisHoverFormat,{hovertemplateAttrs:U5e,texttemplateAttrs:V5e,templatefallbackAttrs:SG}=Fn(),n_=ma(),qG=AG(),X5e=CG(),i_=Tt().extendFlat;DG.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:LG("x"),yhoverformat:LG("y"),text:i_({},qn.text,{}),hovertext:i_({},qn.hovertext,{}),orientation:qn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:qG("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:qG("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:U5e({},{keys:X5e.eventDataKeys}),hovertemplatefallback:SG(),texttemplate:V5e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:SG({editType:"plot"}),textposition:i_({},qn.textposition,{arrayOk:!1}),textfont:n_({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:n_({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:n_({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:qn.insidetextanchor,textangle:qn.textangle,cliponaxis:qn.cliponaxis,constraintext:qn.constraintext,marker:qn.marker,offsetgroup:qn.offsetgroup,alignmentgroup:qn.alignmentgroup,selected:qn.selected,unselected:qn.unselected,zorder:qn.zorder}});var zG=B((jAe,RG)=>{"use strict";var EG=Mr(),kd=Le(),PG=Ar(),W5e=kl().handleText,Z5e=K6(),J5e=l_();RG.exports=function(r,t,a,n){function i(_,w){return kd.coerce(r,t,J5e,_,w)}var l=i("x"),o=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");W5e(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",o&&!l?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",h=l&&o?Math.min(kd.minRowLength(l)&&kd.minRowLength(o)):kd.minRowLength(t[c]||[]);if(!h){t.visible=!1;return}t._length=h;var p=EG.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[v];m&&i("histfunc"),i("histnorm"),i("autobin"+c),Z5e(r,t,i,a,n),kd.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,x=EG.getComponentMethod("errorbars","supplyDefaults");x(r,t,y||PG.defaultLine,{axis:"y"}),x(r,t,y||PG.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var HG=B((eke,IG)=>{"use strict";var Cd=Le(),$5e=na(),zy=Mr().traceIs,K5e=uc(),Q5e=kl().validateCornerradius,NG=Cd.nestedProperty,o_=lu().getAxisGroup,FG=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],j5e=["x","y"];IG.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},l=[],o,s,u,f,c,v,h;function p(O,G){return Cd.coerce(o._input,o,o._module.attributes,O,G)}function m(O){return O.orientation==="v"?"x":"y"}function y(O,G){var Y=$5e.getFromTrace({_fullLayout:t},O,G);return Y.type}function x(O,G,Y){var V=O.uid+"__"+Y;G||(G=V);var U=y(O,Y),Z=O[Y+"calendar"]||"",X=a[G],$=!0;X&&(U===X.axType&&Z===X.calendar?($=!1,X.traces.push(O),X.dirs.push(Y)):(G=V,U!==X.axType&&Cd.warn(["Attempted to group the bins of trace",O.index,"set on a","type:"+U,"axis","with bins on","type:"+X.axType,"axis."].join(" ")),Z!==X.calendar&&Cd.warn(["Attempted to group the bins of trace",O.index,"set with a",Z,"calendar","with bins",X.calendar?"on a "+X.calendar+" calendar":"w/o a set calendar"].join(" ")))),$&&(a[G]={traces:[O],dirs:[Y],axType:U,calendar:O[Y+"calendar"]||""}),O["_"+Y+"bingroup"]=G}for(c=0;c<r.length;c++)if(o=r[c],zy(o,"histogram")){if(n.push(o),delete o._xautoBinFinished,delete o._yautoBinFinished,o.type==="histogram"){var _=p("marker.cornerradius",t.barcornerradius);o.marker&&(o.marker.cornerradius=Q5e(_))}zy(o,"2dMap")||K5e(o._input,o,t,p,t.barmode)}var w=t._alignmentOpts||{};for(c=0;c<n.length;c++){if(o=n[c],u="",!zy(o,"2dMap")){if(f=m(o),t.barmode==="group"&&o.alignmentgroup){var b=o[f+"axis"],M=o_(t,b)+o.orientation;(w[M]||{})[o.alignmentgroup]&&(u=M)}!u&&t.barmode!=="overlay"&&(u=o_(t,o.xaxis)+o_(t,o.yaxis)+m(o))}u?(i[u]||(i[u]=[]),i[u].push(o)):l.push(o)}for(u in i){if(s=i[u],s.length===1){l.push(s[0]);continue}var k=!1;for(s.length&&(o=s[0],k=p("bingroup")),u=k||u,c=0;c<s.length;c++){o=s[c];var A=o._input.bingroup;A&&A!==u&&Cd.warn(["Trace",o.index,"must match","within bingroup",u+".","Ignoring its bingroup:",A,"setting."].join(" ")),o.bingroup=u,x(o,u,m(o))}}for(c=0;c<l.length;c++){o=l[c];var S=p("bingroup");if(zy(o,"2dMap"))for(h=0;h<2;h++){f=j5e[h];var D=p(f+"bingroup",S?S+"__"+f:null);x(o,D,f)}else x(o,S,m(o))}for(u in a){var E=a[u];for(s=E.traces,v=0;v<FG.length;v++){var R=FG[v],N=R.name,I,H;if(!(N==="nbins"&&E.sizeFound)){for(c=0;c<s.length;c++){if(o=s[c],f=E.dirs[c],I=R.aStr[f],NG(o._input,I).get()!==void 0){E[N]=p(I),E[N+"Found"]=!0;break}H=(o._autoBin||{})[f]||{},H[N]&&NG(o,I).set(H[N])}if(N==="start"||N==="end")for(;c<s.length;c++)o=s[c],o["_"+f+"bingroup"]&&(H=(o._autoBin||{})[f]||{},p(I,H[N]));N==="nbins"&&!E.sizeFound&&!E.nbinsFound&&(o=s[0],E[N]=p(I))}}}}});var BG=B((rke,OG)=>{"use strict";var Dc=Br();OG.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Dc(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Dc(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Dc(n))if(n=Number(n),Dc(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Dc(n))if(n=Number(n),Dc(t[e])){if(t[e]<n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0}}});var GG=B((tke,YG)=>{"use strict";YG.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n<t;n++)e[n]*=a},probability:function(e,r){for(var t=e.length,a=0;a<t;a++)e[a]/=r},density:function(e,r,t,a){var n=e.length;a=a||1;for(var i=0;i<n;i++)e[i]*=t[i]*a},"probability density":function(e,r,t,a){var n=e.length;a&&(r/=a);for(var i=0;i<n;i++)e[i]*=t[i]/r}}});var VG=B((ake,UG)=>{"use strict";UG.exports=function(r,t){for(var a=r.length,n=0,i=0;i<a;i++)t[i]?(r[i]/=t[i],n+=r[i]):r[i]=null;return n}});var eU=B((nke,jG)=>{"use strict";var Ec=Dt(),Mu=Ec.ONEAVGYEAR,XG=Ec.ONEAVGMONTH,Fy=Ec.ONEDAY,WG=Ec.ONEHOUR,ZG=Ec.ONEMIN,JG=Ec.ONESEC,$G=Jr().tickIncrement;jG.exports=function(r,t,a,n,i){var l=-1.1*t,o=-.1*t,s=r-o,u=a[0],f=a[1],c=Math.min(Ny(u+o,u+s,n,i),Ny(f+o,f+s,n,i)),v=Math.min(Ny(u+l,u+o,n,i),Ny(f+l,f+o,n,i)),h,p;if(c>v&&v<Math.abs(f-u)/4e3?(h=c,p=!1):(h=Math.min(c,v),p=!0),n.type==="date"&&h>Fy){var m=h===Mu?1:6,y=h===Mu?"M12":"M1";return function(x,_){var w=n.c2d(x,Mu,i),b=w.indexOf("-",m);b>0&&(w=w.slice(0,b));var M=n.d2c(w,0,i);if(M<x){var k=$G(M,y,!1,i);(M+k)/2<x+r&&(M=k)}return _&&p?$G(M,y,!0,i):M}}return function(x,_){var w=h*Math.round(x/h);return w+h/10<x&&w+h*.9<x+r&&(w+=h),_&&p&&(w-=h),w}};function Ny(e,r,t,a){if(e*r<=0)return 1/0;for(var n=Math.abs(r-e),i=t.type==="date",l=KG(n,i),o=0;o<10;o++){var s=KG(l*80,i);if(l===s)break;if(ebe(s,e,r,i,t,a))l=s;else break}return l}function KG(e,r){return r&&e>JG?e>Fy?e>Mu*1.1?Mu:e>XG*1.1?XG:Fy:e>WG?WG:e>ZG?ZG:JG:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function ebe(e,r,t,a,n,i){if(a&&e>Fy){var l=QG(r,n,i),o=QG(t,n,i),s=e===Mu?0:1;return l[s]!==o[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function QG(e,r,t){var a=r.c2d(e,Mu,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var lU=B((ike,iU)=>{"use strict";var s_=Br(),un=Le(),rU=Mr(),ki=Jr(),{hasColorscale:tU}=On(),aU=tv(),rbe=qy(),nU=BG(),tbe=GG(),abe=VG(),nbe=eU();function ibe(e,r){var t=[],a=[],n=r.orientation==="h",i=ki.getFromId(e,n?r.yaxis:r.xaxis),l=n?"y":"x",o={x:"y",y:"x"}[l],s=r[l+"calendar"],u=r.cumulative,f,c=u_(e,r,i,l),v=c[0],h=c[1],p=typeof v.size=="string",m=[],y=p?m:v,x=[],_=[],w=[],b=0,M=r.histnorm,k=r.histfunc,A=M.indexOf("density")!==-1,S,D,E;u.enabled&&A&&(M=M.replace(/ ?density$/,""),A=!1);var R=k==="max"||k==="min",N=R?null:0,I=nU.count,H=tbe[M],O=!1,G=function(Me){return i.r2c(Me,0,s)},Y;for(un.isArrayOrTypedArray(r[o])&&k!=="count"&&(Y=r[o],O=k==="avg",I=nU[k]),f=G(v.start),D=G(v.end)+(f-ki.tickIncrement(f,v.size,!1,s))/1e6;f<D&&t.length<1e6&&(S=ki.tickIncrement(f,v.size,!1,s),t.push((f+S)/2),a.push(N),w.push([]),m.push(f),A&&x.push(1/(S-f)),O&&_.push(0),!(S<=f));)f=S;m.push(f),!p&&i.type==="date"&&(y={start:G(y.start),end:G(y.end),size:y.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var V=r["_"+l+"bingroup"],U={leftGap:1/0,rightGap:1/0};V&&(e._fullLayout._roundFnOpts[V]||(e._fullLayout._roundFnOpts[V]=U),U=e._fullLayout._roundFnOpts[V]);var Z=a.length,X=!0,$=U.leftGap,ae=U.rightGap,ie={};for(f=0;f<h.length;f++){var ve=h[f];E=un.findBin(ve,y),E>=0&&E<Z&&(b+=I(E,f,a,Y,_),X&&w[E].length&&ve!==h[w[E][0]]&&(X=!1),w[E].push(f),ie[f]=E,$=Math.min($,ve-m[E]),ae=Math.min(ae,m[E+1]-ve))}U.leftGap=$,U.rightGap=ae;var K;X||(K=function(Me,De){return function(){var Te=e._fullLayout._roundFnOpts[V];return nbe(Te.leftGap,Te.rightGap,m,i,s)(Me,De)}}),O&&(b=abe(a,_)),H&&H(a,b,x),u.enabled&&sbe(a,u.direction,u.currentbin);var he=Math.min(t.length,a.length),oe=[],be=0,me=he-1;for(f=0;f<he;f++)if(a[f]){be=f;break}for(f=he-1;f>=be;f--)if(a[f]){me=f;break}for(f=be;f<=me;f++)if(s_(t[f])&&s_(a[f])){var ce={p:t[f],s:a[f],b:0};u.enabled||(ce.pts=w[f],X?ce.ph0=ce.ph1=w[f].length?h[w[f][0]]:t[f]:(r._computePh=!0,ce.ph0=K(m[f]),ce.ph1=K(m[f+1],!0))),oe.push(ce)}return oe.length===1&&(oe[0].width1=ki.tickIncrement(oe[0].p,v.size,!1,s)-oe[0].p),tU(r,"marker")&&aU(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),tU(r,"marker.line")&&aU(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),rbe(oe,r),un.isArrayOrTypedArray(r.selectedpoints)&&un.tagSelected(oe,r,ie),oe}function u_(e,r,t,a,n){var ve;var i=a+"bins",l=e._fullLayout,o=r["_"+a+"bingroup"],s=l._histogramBinOpts[o],u=l.barmode==="overlay",f,c,v,h,p,m,y,x=function(K){return t.r2c(K,0,h)},_=function(K){return t.c2r(K,0,h)},w=t.type==="date"?function(K){return K||K===0?un.cleanDate(K,null,h):null}:function(K){return s_(K)?Number(K):null};function b(K,he,oe){he[K+"Found"]?(he[K]=w(he[K]),he[K]===null&&(he[K]=oe[K])):(m[K]=he[K]=oe[K],un.nestedProperty(c[0],i+"."+K).set(oe[K]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var M=[],k=!0,A=!1,S=!1;for(f=0;f<c.length;f++)if(v=c[f],v.visible){var D=s.dirs[f];p=v["_"+D+"pos0"]=t.makeCalcdata(v,D),M=un.concat(M,p),delete v["_"+a+"autoBinFinished"],r.visible===!0&&(k?k=!1:(delete v._autoBin,v["_"+a+"autoBinFinished"]=1),rU.traceIs(v,"2dMap")&&(A=!0),v.type==="histogram2dcontour"&&(S=!0))}h=c[0][a+"calendar"];var E=ki.autoBin(M,t,s.nbins,A,h,s.sizeFound&&s.size),R=c[0]._autoBin={};if(m=R[s.dirs[0]]={},S&&(s.size||(E.start=_(ki.tickIncrement(x(E.start),E.size,!0,h))),s.end===void 0&&(E.end=_(ki.tickIncrement(x(E.end),E.size,!1,h)))),u&&!rU.traceIs(r,"2dMap")&&E._dataSpan===0&&t.type!=="category"&&t.type!=="multicategory"&&r.bingroup===""&&!((ve=r._input[i])!=null&&ve.size)){if(n)return[E,p,!0];E=lbe(e,r,t,a,i)}y=v.cumulative||{},y.enabled&&y.currentbin!=="include"&&(y.direction==="decreasing"?E.start=_(ki.tickIncrement(x(E.start),E.size,!0,h)):E.end=_(ki.tickIncrement(x(E.end),E.size,!1,h))),s.size=E.size,s.sizeFound||(m.size=E.size,un.nestedProperty(c[0],i+".size").set(E.size)),b("start",s,E),b("end",s,E)}p=r["_"+a+"pos0"],delete r["_"+a+"pos0"];var N=r._input[i]||{},I=un.extendFlat({},s),H=s.start,O=t.r2l(N.start),G=O!==void 0;if((s.startFound||G)&&O!==t.r2l(H)){var Y=G?O:un.aggNums(Math.min,null,p),V={type:t.type==="category"||t.type==="multicategory"?"linear":t.type,r2l:t.r2l,dtick:s.size,tick0:H,calendar:h,range:[Y,ki.tickIncrement(Y,s.size,!1,h)].map(t.l2r)},U=ki.tickFirst(V);U>t.r2l(Y)&&(U=ki.tickIncrement(U,s.size,!0,h)),I.start=t.l2r(U),G||un.nestedProperty(r,i+".start").set(I.start)}var Z=s.end,X=t.r2l(N.end),$=X!==void 0;if((s.endFound||$)&&X!==t.r2l(Z)){var ae=$?X:un.aggNums(Math.max,null,p);I.end=t.l2r(ae),$||un.nestedProperty(r,i+".start").set(I.end)}var ie="autobin"+a;return r._input[ie]===!1&&(r._input[i]=un.extendFlat({},r[i]||{}),delete r._input[ie],delete r[ie]),[I,p]}function lbe(e,r,t,a,n){var i=e._fullLayout,l=obe(e,r),o=!1,s=1/0,u=[r],f,c,v;for(f=0;f<l.length;f++)if(c=l[f],c===r)o=!0;else if(!o)v=i._histogramBinOpts[c["_"+a+"bingroup"]],s=Math.min(s,v.size||c[n].size);else{var h=u_(e,c,t,a,!0),p=h[0],m=h[2];c["_"+a+"autoBinFinished"]=1,c["_"+a+"pos0"]=h[1],m?u.push(c):s=Math.min(s,p.size)}var y=new Array(u.length);for(f=0;f<u.length;f++)for(var x=u[f]["_"+a+"pos0"],_=0;_<x.length;_++)if(x[_]!==void 0){y[f]=x[_];break}for(isFinite(s)||(s=un.distinctVals(y).minDiff),f=0;f<u.length;f++){c=u[f];var w=c[a+"calendar"],b={start:t.c2r(y[f]-s/2,0,w),end:t.c2r(y[f]+s/2,0,w),size:s};c._input[n]=c[n]=b,v=i._histogramBinOpts[c["_"+a+"bingroup"]],v&&un.extendFlat(v,b)}return r[n]}function obe(e,r){for(var t=r.xaxis,a=r.yaxis,n=r.orientation,i=[],l=e._fullData,o=0;o<l.length;o++){var s=l[o];s.type==="histogram"&&s.visible===!0&&s.orientation===n&&s.xaxis===t&&s.yaxis===a&&i.push(s)}return i}function sbe(e,r,t){var a,n,i;function l(s){i=e[s],e[s]/=2}function o(s){n=e[s],e[s]=i+n/2,i+=n}if(t==="half")if(r==="increasing")for(l(0),a=1;a<e.length;a++)o(a);else for(l(e.length-1),a=e.length-2;a>=0;a--)o(a);else if(r==="increasing"){for(a=1;a<e.length;a++)e[a]+=e[a-1];t==="exclude"&&(e.unshift(0),e.pop())}else{for(a=e.length-2;a>=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}iU.exports={calc:ibe,calcAllAutoBins:u_}});var sU=B((lke,oU)=>{"use strict";var ube=Md().hoverPoints,fbe=Jr().hoverLabelText;oU.exports=function(r,t,a,n,i){var l=ube(r,t,a,n,i);if(l){r=l[0];var o=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=fbe(r[u+"a"],[o.ph0,o.ph1],s[u+"hoverformat"])}return l}}});var fU=B((oke,uU)=>{"use strict";uU.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var l=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=l,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex,r.pointIndices=l}return r}});var vU=B((ske,cU)=>{"use strict";cU.exports={attributes:l_(),layoutAttributes:Ly(),supplyDefaults:zG(),crossTraceDefaults:HG(),supplyLayoutDefaults:Q6(),calc:lU().calc,crossTraceCalc:vc().crossTraceCalc,plot:qc().plot,layerName:"barlayer",style:Jo().style,styleOnSelect:Jo().styleOnSelect,colorbar:Gm(),hoverPoints:sU(),selectPoints:Ad(),eventData:fU(),moduleType:"trace",name:"histogram",basePlotModule:Wl(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var hU=B((uke,dU)=>{"use strict";dU.exports=vU()});var mU=B((fke,pU)=>{"use strict";pU.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var c_=B((cke,xU)=>{"use strict";var bt=Ql(),f_=Ui().line,cbe=xn(),yU=Hi().axisHoverFormat,{hovertemplateAttrs:vbe,texttemplateAttrs:dbe,templatefallbackAttrs:gU}=Fn(),bU=mU(),jl=Tt().extendFlat,hbe=Ar();xU.exports={x:bt.x,x0:bt.x0,dx:bt.dx,y:bt.y,y0:bt.y0,dy:bt.dy,xperiod:bt.xperiod,yperiod:bt.yperiod,xperiod0:bt.xperiod0,yperiod0:bt.yperiod0,xperiodalignment:bt.xperiodalignment,yperiodalignment:bt.yperiodalignment,xhoverformat:yU("x"),yhoverformat:yU("y"),hovertext:bt.hovertext,hovertemplate:vbe({},{keys:bU.eventDataKeys}),hovertemplatefallback:gU(),hoverinfo:jl({},cbe.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:dbe({editType:"plot"},{keys:bU.eventDataKeys.concat(["label","value"])}),texttemplatefallback:gU({editType:"plot"}),text:bt.text,textposition:bt.textposition,insidetextanchor:jl({},bt.insidetextanchor,{dflt:"middle"}),textangle:jl({},bt.textangle,{dflt:0}),textfont:bt.textfont,insidetextfont:bt.insidetextfont,outsidetextfont:bt.outsidetextfont,constraintext:bt.constraintext,cliponaxis:bt.cliponaxis,orientation:jl({},bt.orientation,{}),offset:jl({},bt.offset,{arrayOk:!1}),width:jl({},bt.width,{arrayOk:!1}),marker:pbe(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:jl({},f_.color,{dflt:hbe.defaultLine}),width:jl({},f_.width,{dflt:0,editType:"plot"}),dash:f_.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:bt.offsetgroup,alignmentgroup:bt.alignmentgroup,zorder:bt.zorder};function pbe(){var e=jl({},bt.marker);return delete e.pattern,delete e.cornerradius,e}});var v_=B((vke,_U)=>{"use strict";_U.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var h_=B((dke,TU)=>{"use strict";var Iy=Le(),mbe=uc(),ybe=kl().handleText,gbe=rd(),bbe=cu(),wU=c_(),d_=Ar();function xbe(e,r,t,a){function n(c,v){return Iy.coerce(e,r,wU,c,v)}var i=gbe(e,r,a,n);if(!i){r.visible=!1;return}bbe(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("orientation",r.y&&!r.x?"v":"h"),n("offset"),n("width");var l=n("text");n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");ybe(e,r,a,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&!r.texttemplate&&n("textinfo",Iy.isArrayOrTypedArray(l)?"text+value":"value");var s=n("marker.color",t);n("marker.line.color",d_.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",_be(s));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function _be(e){var r=Iy.isArrayOrTypedArray(e)?"#000":e;return d_.addOpacity(r,.5*d_.opacity(r))}function wbe(e,r){var t,a;function n(l){return Iy.coerce(a._input,a,wU,l)}for(var i=0;i<e.length;i++)a=e[i],a.type==="funnel"&&(t=a._input,mbe(t,a,r,n,r.funnelmode))}TU.exports={supplyDefaults:xbe,crossTraceDefaults:wbe}});var AU=B((hke,MU)=>{"use strict";var Tbe=Le(),Mbe=v_();MU.exports=function(e,r,t){var a=!1;function n(o,s){return Tbe.coerce(e,r,Mbe,o,s)}for(var i=0;i<t.length;i++){var l=t[i];if(l.visible&&l.type==="funnel"){a=!0;break}}a&&(n("funnelmode"),n("funnelgap",.2),n("funnelgroupgap"))}});var CU=B((pke,kU)=>{"use strict";var Pc=Le();kU.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;Pc.mergeArray(t.text,r,"tx"),Pc.mergeArray(t.hovertext,r,"htx");var n=t.marker;if(n){Pc.mergeArray(n.opacity,r,"mo"),Pc.mergeArray(n.color,r,"mc");var i=n.line;i&&(Pc.mergeArray(i.color,r,"mlc"),Pc.mergeArrayCastPositive(i.width,r,"mlw"))}}});var DU=B((mke,qU)=>{"use strict";var LU=Jr(),SU=vu(),Abe=CU(),kbe=td(),Ld=Dt().BADNUM;qU.exports=function(r,t){var a=LU.getFromId(r,t.xaxis||"x"),n=LU.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c,v;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=SU(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=SU(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;var h=Math.min(l.length,i.length),p=new Array(h);for(t._base=[],c=0;c<h;c++){i[c]<0&&(i[c]=Ld);var m=!1;i[c]!==Ld&&c+1<h&&i[c+1]!==Ld&&(m=!0),v=p[c]={p:l[c],s:i[c],cNext:m},t._base[c]=-.5*v.s,u&&(p[c].orig_p=o[c],p[c][f+"End"]=s.ends[c],p[c][f+"Start"]=s.starts[c]),t.ids&&(v.id=String(t.ids[c])),c===0&&(p[0].vTotal=0),p[0].vTotal+=p_(v.s),v.begR=p_(v.s)/p_(p[0].s)}var y;for(c=0;c<h;c++)v=p[c],v.s!==Ld&&(v.sumR=v.s/p[0].vTotal,v.difR=y!==void 0?v.s/y:1,y=v.s);return Abe(p,t),kbe(p,t),p};function p_(e){return e===Ld?0:e}});var RU=B((yke,PU)=>{"use strict";var EU=vc().setGroupPositions;PU.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,v;for(v=0;v<n.length;v++){var h=n[v],p=h.orientation==="h";h.visible===!0&&h.xaxis===l._id&&h.yaxis===o._id&&h.type==="funnel"&&(c=i[v],p?f.push(c):u.push(c),s.push(c))}var m={mode:a.funnelmode,norm:a.funnelnorm,gap:a.funnelgap,groupgap:a.funnelgroupgap};for(EU(r,l,o,u,m),EU(r,o,l,f,m),v=0;v<s.length;v++){c=s[v];for(var y=0;y<c.length;y++)y+1<c.length&&(c[y].nextP0=c[y+1].p0,c[y].nextS0=c[y+1].s0,c[y].nextP1=c[y+1].p1,c[y].nextS1=c[y+1].s1)}}});var IU=B((gke,FU)=>{"use strict";var Hy=Dr(),Qo=Le(),zU=Vr(),Ko=Dt().BADNUM,Cbe=qc(),Lbe=rl().clearMinTextSize;FU.exports=function(r,t,a,n){var i=r._fullLayout;Lbe("funnel",i),Sbe(r,t,a,n),qbe(r,t,a,n),Cbe.plot(r,t,a,n,{mode:i.funnelmode,norm:i.funnelmode,gap:i.funnelgap,groupgap:i.funnelgroupgap})};function Sbe(e,r,t,a){var n=r.xaxis,i=r.yaxis;Qo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=Hy.select(this),s=l[0].trace,u=Qo.ensureSingle(o,"g","regions");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.region").data(Qo.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var v=c.size();c.each(function(h,p){if(!(p!==v-1&&!h.cNext)){var m=NU(h,n,i,f),y=m[0],x=m[1],_="";y[0]!==Ko&&x[0]!==Ko&&y[1]!==Ko&&x[1]!==Ko&&y[2]!==Ko&&x[2]!==Ko&&y[3]!==Ko&&x[3]!==Ko&&(f?_+="M"+y[0]+","+x[1]+"L"+y[2]+","+x[2]+"H"+y[3]+"L"+y[1]+","+x[1]+"Z":_+="M"+y[1]+","+x[1]+"L"+y[2]+","+x[3]+"V"+x[2]+"L"+y[1]+","+x[0]+"Z"),_===""&&(_="M0,0Z"),Qo.ensureSingle(Hy.select(this),"path").attr("d",_).call(zU.setClipUrl,r.layerClipId,e)}})})}function qbe(e,r,t,a){var n=r.xaxis,i=r.yaxis;Qo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=Hy.select(this),s=l[0].trace,u=Qo.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible||!s.connector.line.width){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.line").data(Qo.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var v=c.size();c.each(function(h,p){if(!(p!==v-1&&!h.cNext)){var m=NU(h,n,i,f),y=m[0],x=m[1],_="";y[3]!==void 0&&x[3]!==void 0&&(f?(_+="M"+y[0]+","+x[1]+"L"+y[2]+","+x[2],_+="M"+y[1]+","+x[1]+"L"+y[3]+","+x[2]):(_+="M"+y[1]+","+x[1]+"L"+y[2]+","+x[3],_+="M"+y[1]+","+x[0]+"L"+y[2]+","+x[2])),_===""&&(_="M0,0Z"),Qo.ensureSingle(Hy.select(this),"path").attr("d",_).call(zU.setClipUrl,r.layerClipId,e)}})})}function NU(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),n[2]=l.c2p(e.nextS0,!0),i[2]=o.c2p(e.nextP0,!0),n[3]=l.c2p(e.nextS1,!0),i[3]=o.c2p(e.nextP1,!0),a?[n,i]:[i,n]}});var BU=B((bke,OU)=>{"use strict";var Sd=Dr(),HU=Vr(),m_=Ar(),Dbe=yf().DESELECTDIM,Ebe=Jo(),Pbe=rl().resizeText,Rbe=Ebe.styleTextPoints;function zbe(e,r,t){var a=t||Sd.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");Pbe(e,a,"funnel"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=Sd.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l.marker;Sd.select(this).call(m_.fill,o.mc||s.color).call(m_.stroke,o.mlc||s.line.color).call(HU.dashLine,s.line.dash,o.mlw||s.line.width).style("opacity",l.selectedpoints&&!o.selected?Dbe:1)}}),Rbe(i,l,e),i.selectAll(".regions").each(function(){Sd.select(this).selectAll("path").style("stroke-width",0).call(m_.fill,l.connector.fillcolor)}),i.selectAll(".lines").each(function(){var o=l.connector.line;HU.lineGroupStyle(Sd.select(this).selectAll("path"),o.width,o.color,o.dash)})})}OU.exports={style:zbe}});var UU=B((xke,GU)=>{"use strict";var YU=Ar().opacity,Nbe=Md().hoverOnBars,y_=Le().formatPercent;GU.exports=function(r,t,a,n,i){var l=Nbe(r,t,a,n,i);if(l){var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=l.index,c=o[f],v=u?"x":"y";l[v+"LabelVal"]=c.s,l.percentInitial=c.begR,l.percentInitialLabel=y_(c.begR,1),l.percentPrevious=c.difR,l.percentPreviousLabel=y_(c.difR,1),l.percentTotal=c.sumR,l.percentTotalLabel=y_(c.sumR,1);var h=c.hi||s.hoverinfo,p=[];if(h&&h!=="none"&&h!=="skip"){var m=h==="all",y=h.split("+"),x=function(_){return m||y.indexOf(_)!==-1};x("percent initial")&&p.push(l.percentInitialLabel+" of initial"),x("percent previous")&&p.push(l.percentPreviousLabel+" of previous"),x("percent total")&&p.push(l.percentTotalLabel+" of total")}return l.extraText=p.join("<br>"),l.color=Fbe(s,c),[l]}};function Fbe(e,r){var t=e.marker,a=r.mc||t.color,n=r.mlc||t.line.color,i=r.mlw||t.line.width;if(YU(a))return a;if(YU(n)&&i)return n}});var XU=B((_ke,VU)=>{"use strict";VU.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(r.percentInitial=t.percentInitial),"percentPrevious"in t&&(r.percentPrevious=t.percentPrevious),"percentTotal"in t&&(r.percentTotal=t.percentTotal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var ZU=B((wke,WU)=>{"use strict";WU.exports={attributes:c_(),layoutAttributes:v_(),supplyDefaults:h_().supplyDefaults,crossTraceDefaults:h_().crossTraceDefaults,supplyLayoutDefaults:AU(),calc:DU(),crossTraceCalc:RU(),plot:IU(),style:BU().style,hoverPoints:UU(),eventData:XU(),selectPoints:Ad(),moduleType:"trace",name:"funnel",basePlotModule:Wl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var $U=B((Tke,JU)=>{"use strict";JU.exports=ZU()});var QU=B((Mke,KU)=>{"use strict";KU.exports={eventDataKeys:["initial","delta","final"]}});var x_=B((Ake,tV)=>{"use strict";var ht=Ql(),g_=Ui().line,Ibe=xn(),jU=Hi().axisHoverFormat,{hovertemplateAttrs:Hbe,texttemplateAttrs:Obe,templatefallbackAttrs:eV}=Fn(),rV=QU(),Rc=Tt().extendFlat,Bbe=Ar();function b_(e){return{marker:{color:Rc({},ht.marker.color,{arrayOk:!1,editType:"style"}),line:{color:Rc({},ht.marker.line.color,{arrayOk:!1,editType:"style"}),width:Rc({},ht.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}tV.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:ht.x,x0:ht.x0,dx:ht.dx,y:ht.y,y0:ht.y0,dy:ht.dy,xperiod:ht.xperiod,yperiod:ht.yperiod,xperiod0:ht.xperiod0,yperiod0:ht.yperiod0,xperiodalignment:ht.xperiodalignment,yperiodalignment:ht.yperiodalignment,xhoverformat:jU("x"),yhoverformat:jU("y"),hovertext:ht.hovertext,hovertemplate:Hbe({},{keys:rV.eventDataKeys}),hovertemplatefallback:eV(),hoverinfo:Rc({},Ibe.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:Obe({editType:"plot"},{keys:rV.eventDataKeys.concat(["label"])}),texttemplatefallback:eV({editType:"plot"}),text:ht.text,textposition:ht.textposition,insidetextanchor:ht.insidetextanchor,textangle:ht.textangle,textfont:ht.textfont,insidetextfont:ht.insidetextfont,outsidetextfont:ht.outsidetextfont,constraintext:ht.constraintext,cliponaxis:ht.cliponaxis,orientation:ht.orientation,offset:ht.offset,width:ht.width,increasing:b_("increasing"),decreasing:b_("decreasing"),totals:b_("intermediate sums and total"),connector:{line:{color:Rc({},g_.color,{dflt:Bbe.defaultLine}),width:Rc({},g_.width,{editType:"plot"}),dash:g_.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:ht.offsetgroup,alignmentgroup:ht.alignmentgroup,zorder:ht.zorder}});var __=B((kke,aV)=>{"use strict";aV.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var zc=B((Cke,nV)=>{"use strict";nV.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var T_=B((Lke,sV)=>{"use strict";var iV=Le(),Ybe=uc(),Gbe=kl().handleText,Ube=rd(),Vbe=cu(),lV=x_(),Xbe=Ar(),oV=zc(),Wbe=oV.INCREASING.COLOR,Zbe=oV.DECREASING.COLOR,Jbe="#4499FF";function w_(e,r,t){e(r+".marker.color",t),e(r+".marker.line.color",Xbe.defaultLine),e(r+".marker.line.width")}function $be(e,r,t,a){function n(u,f){return iV.coerce(e,r,lV,u,f)}var i=Ube(e,r,a,n);if(!i){r.visible=!1;return}Vbe(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");Gbe(e,r,a,n,l,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&(n("texttemplate"),n("texttemplatefallback"),r.texttemplate||n("textinfo")),w_(n,"increasing",Wbe),w_(n,"decreasing",Zbe),w_(n,"totals",Jbe);var o=n("connector.visible");if(o){n("connector.mode");var s=n("connector.line.width");s&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function Kbe(e,r){var t,a;function n(l){return iV.coerce(a._input,a,lV,l)}if(r.waterfallmode==="group")for(var i=0;i<e.length;i++)a=e[i],t=a._input,Ybe(t,a,r,n,r.waterfallmode)}sV.exports={supplyDefaults:$be,crossTraceDefaults:Kbe}});var fV=B((Ske,uV)=>{"use strict";var Qbe=Le(),jbe=__();uV.exports=function(e,r,t){var a=!1;function n(o,s){return Qbe.coerce(e,r,jbe,o,s)}for(var i=0;i<t.length;i++){var l=t[i];if(l.visible&&l.type==="waterfall"){a=!0;break}}a&&(n("waterfallmode"),n("waterfallgap",.2),n("waterfallgroupgap"))}});var mV=B((qke,pV)=>{"use strict";var cV=Jr(),vV=vu(),dV=Le().mergeArray,exe=td(),hV=Dt().BADNUM;function M_(e){return e==="a"||e==="absolute"}function A_(e){return e==="t"||e==="total"}pV.exports=function(r,t){var a=cV.getFromId(r,t.xaxis||"x"),n=cV.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=vV(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=vV(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var c=Math.min(l.length,i.length),v=new Array(c),h=0,p,m=!1,y=0;y<c;y++){var x=i[y]||0,_=!1;(i[y]!==hV||A_(t.measure[y])||M_(t.measure[y]))&&y+1<c&&(i[y+1]!==hV||A_(t.measure[y+1])||M_(t.measure[y+1]))&&(_=!0);var w=v[y]={i:y,p:l[y],s:x,rawS:x,cNext:_};M_(t.measure[y])?(h=w.s,w.isSum=!0,w.dir="totals",w.s=h):A_(t.measure[y])?(w.isSum=!0,w.dir="totals",w.s=h):(w.isSum=!1,w.dir=w.rawS<0?"decreasing":"increasing",p=w.s,w.s=h+p,h+=p),w.dir==="totals"&&(m=!0),u&&(v[y].orig_p=o[y],v[y][f+"End"]=s.ends[y],v[y][f+"Start"]=s.starts[y]),t.ids&&(w.id=String(t.ids[y])),w.v=(t.base||0)+h}return v.length&&(v[0].hasTotals=m),dV(t.text,v,"tx"),dV(t.hovertext,v,"htx"),exe(v,t),v}});var bV=B((Dke,gV)=>{"use strict";var yV=vc().setGroupPositions;gV.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,v;for(v=0;v<n.length;v++){var h=n[v];h.visible===!0&&h.xaxis===l._id&&h.yaxis===o._id&&h.type==="waterfall"&&(c=i[v],h.orientation==="h"?f.push(c):u.push(c),s.push(c))}var p={mode:a.waterfallmode,norm:a.waterfallnorm,gap:a.waterfallgap,groupgap:a.waterfallgroupgap};for(yV(r,l,o,u,p),yV(r,o,l,f,p),v=0;v<s.length;v++){c=s[v];for(var m=0;m<c.length;m++){var y=c[m];y.isSum===!1&&(y.s0+=m===0?0:c[m-1].s),m+1<c.length&&(c[m].nextP0=c[m+1].p0,c[m].nextS0=c[m+1].s0)}}}});var wV=B((Eke,_V)=>{"use strict";var xV=Dr(),Oy=Le(),rxe=Vr(),Nc=Dt().BADNUM,txe=qc(),axe=rl().clearMinTextSize;_V.exports=function(r,t,a,n){var i=r._fullLayout;axe("waterfall",i),txe.plot(r,t,a,n,{mode:i.waterfallmode,norm:i.waterfallmode,gap:i.waterfallgap,groupgap:i.waterfallgroupgap}),nxe(r,t,a,n)};function nxe(e,r,t,a){var n=r.xaxis,i=r.yaxis;Oy.makeTraceGroups(a,t,"trace bars").each(function(l){var o=xV.select(this),s=l[0].trace,u=Oy.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=s.connector.mode,v=u.selectAll("g.line").data(Oy.identity);v.enter().append("g").classed("line",!0),v.exit().remove();var h=v.size();v.each(function(p,m){if(!(m!==h-1&&!p.cNext)){var y=ixe(p,n,i,f),x=y[0],_=y[1],w="";x[0]!==Nc&&_[0]!==Nc&&x[1]!==Nc&&_[1]!==Nc&&(c==="spanning"&&!p.isSum&&m>0&&(f?w+="M"+x[0]+","+_[1]+"V"+_[0]:w+="M"+x[1]+","+_[0]+"H"+x[0]),c!=="between"&&(p.isSum||m<h-1)&&(f?w+="M"+x[1]+","+_[0]+"V"+_[1]:w+="M"+x[0]+","+_[1]+"H"+x[1]),x[2]!==Nc&&_[2]!==Nc&&(f?w+="M"+x[1]+","+_[1]+"V"+_[2]:w+="M"+x[1]+","+_[1]+"H"+x[2])),w===""&&(w="M0,0Z"),Oy.ensureSingle(xV.select(this),"path").attr("d",w).call(rxe.setClipUrl,r.layerClipId,e)}})})}function ixe(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),n[2]=l.c2p(e.nextS0,!0),i[2]=o.c2p(e.nextP0,!0),a?[n,i]:[i,n]}});var kV=B((Pke,AV)=>{"use strict";var By=Dr(),TV=Vr(),MV=Ar(),lxe=yf().DESELECTDIM,oxe=Jo(),sxe=rl().resizeText,uxe=oxe.styleTextPoints;function fxe(e,r,t){var a=t||By.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");sxe(e,a,"waterfall"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=By.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l[o.dir].marker;By.select(this).call(MV.fill,s.color).call(MV.stroke,s.line.color).call(TV.dashLine,s.line.dash,s.line.width).style("opacity",l.selectedpoints&&!o.selected?lxe:1)}}),uxe(i,l,e),i.selectAll(".lines").each(function(){var o=l.connector.line;TV.lineGroupStyle(By.select(this).selectAll("path"),o.width,o.color,o.dash)})})}AV.exports={style:fxe}});var DV=B((Rke,qV)=>{"use strict";var cxe=Jr().hoverLabelText,CV=Ar().opacity,vxe=Md().hoverOnBars,LV=zc(),SV={increasing:LV.INCREASING.SYMBOL,decreasing:LV.DECREASING.SYMBOL};qV.exports=function(r,t,a,n,i){var l=vxe(r,t,a,n,i);if(!l)return;var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=u?"x":"y",c=u?r.xa:r.ya;function v(k){return cxe(c,k,s[f+"hoverformat"])}var h=l.index,p=o[h],m=p.isSum?p.b+p.s:p.rawS;l.initial=p.b+p.s-m,l.delta=m,l.final=l.initial+l.delta;var y=v(Math.abs(l.delta));l.deltaLabel=m<0?"("+y+")":y,l.finalLabel=v(l.final),l.initialLabel=v(l.initial);var x=p.hi||s.hoverinfo,_=[];if(x&&x!=="none"&&x!=="skip"){var w=x==="all",b=x.split("+"),M=function(k){return w||b.indexOf(k)!==-1};p.isSum||(M("final")&&(u?!M("x"):!M("y"))&&_.push(l.finalLabel),M("delta")&&(m<0?_.push(l.deltaLabel+" "+SV.decreasing):_.push(l.deltaLabel+" "+SV.increasing)),M("initial")&&_.push("Initial: "+l.initialLabel))}return _.length&&(l.extraText=_.join("<br>")),l.color=dxe(s,p),[l]};function dxe(e,r){var t=e[r.dir].marker,a=t.color,n=t.line.color,i=t.line.width;if(CV(a))return a;if(CV(n)&&i)return n}});var PV=B((zke,EV)=>{"use strict";EV.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"initial"in t&&(r.initial=t.initial),"delta"in t&&(r.delta=t.delta),"final"in t&&(r.final=t.final),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var zV=B((Nke,RV)=>{"use strict";RV.exports={attributes:x_(),layoutAttributes:__(),supplyDefaults:T_().supplyDefaults,crossTraceDefaults:T_().crossTraceDefaults,supplyLayoutDefaults:fV(),calc:mV(),crossTraceCalc:bV(),plot:wV(),style:kV().style,hoverPoints:DV(),eventData:PV(),selectPoints:Ad(),moduleType:"trace",name:"waterfall",basePlotModule:Wl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var FV=B((Fke,NV)=>{"use strict";NV.exports=zV()});var Uy=B((Ike,HV)=>{"use strict";var Yy=xn(),hxe=Xo().attributes,pxe=ma(),mxe=ni(),{hovertemplateAttrs:yxe,texttemplateAttrs:gxe,templatefallbackAttrs:IV}=Fn(),jo=Tt().extendFlat,bxe=zi().pattern,Gy=pxe({editType:"plot",arrayOk:!0,colorEditType:"plot"});HV.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:mxe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:bxe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:jo({},Yy.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:yxe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:IV(),texttemplate:gxe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:IV({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:jo({},Gy,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:jo({},Gy,{}),outsidetextfont:jo({},Gy,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:jo({},Yy.showlegend,{arrayOk:!0}),legend:jo({},Yy.legend,{arrayOk:!0}),legendrank:jo({},Yy.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:jo({},Gy,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:hxe({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var Vy=B((Hke,YV)=>{"use strict";var xxe=Br(),qd=Le(),_xe=Uy(),wxe=Xo().defaults,Txe=kl().handleText,Mxe=Le().coercePattern;function OV(e,r){var t=qd.isArrayOrTypedArray(e),a=qd.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l<n;l++){var o=r[l];if(xxe(o)&&o>0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function BV(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");Mxe(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function Axe(e,r,t,a){function n(_,w){return qd.coerce(e,r,_xe,_,w)}var i=n("labels"),l=n("values"),o=OV(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,BV(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",qd.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var v=n("textposition");Txe(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var h=Array.isArray(v)||v==="auto",p=h||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");wxe(r,a,n);var m=n("hole"),y=n("title.text");if(y){var x=n("title.position",m?"middle center":"top center");!m&&x==="middle center"&&(r.title.position="top center"),qd.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}YV.exports={handleLabelsAndValues:OV,handleMarkerDefaults:BV,supplyDefaults:Axe}});var Xy=B((Oke,GV)=>{"use strict";GV.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var VV=B((Bke,UV)=>{"use strict";var kxe=Le(),Cxe=Xy();UV.exports=function(r,t){function a(n,i){return kxe.coerce(r,t,Cxe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var Wy=B((Yke,ZV)=>{"use strict";var Lxe=Br(),Fc=Ar(),Sxe={};function qxe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f<s;f++)i[f]=String(r.label0+f*r.dlabel);var v={},h=XV(a["_"+r.type+"colormap"]),p=0,m=!1;for(f=0;f<s;f++){var y,x,_;if(u){if(y=o[f],!Lxe(y))continue;y=+y}else y=1;x=i[f],(x===void 0||x==="")&&(x=f),x=String(x);var w=v[x];w===void 0?(v[x]=t.length,_=n.indexOf(x)!==-1,_||(p+=y),t.push({v:y,label:x,color:h(l[f],x),i:f,pts:[f],hidden:_})):(m=!0,c=t[w],c.v+=y,c.pts.push(f),c.hidden||(p+=y),c.color===!1&&l[f]&&(c.color=h(l[f],x)))}t=t.filter(function(M){return M.v>=0});var b=r.type==="funnelarea"?m:r.sort;return b&&t.sort(function(M,k){return k.v-M.v}),t[0]&&(t[0].vTotal=p),t}function XV(e){return function(t,a){if(!t||!Fc.isValid(t))return!1;let n=Fc.rgbaString(t);return e[a]||(e[a]=n),n}}function Dxe(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=WV(i,Sxe));for(var o=0,s=0;s<n.length;s++){var u=n[s],f=u[0].trace.type;if(f===t)for(var c=0;c<u.length;c++){var v=u[c];v.color===!1&&(l[v.label]?v.color=l[v.label]:(l[v.label]=v.color=i[o%i.length],o++))}}}function WV(e,r){var t,a=JSON.stringify(e),n=r[a];if(!n){for(n=e.slice(),t=0;t<e.length;t++)n.push(Fc.hexString(Fc.adjustLightness(e[t],20)));for(t=0;t<e.length;t++)n.push(Fc.hexString(Fc.adjustLightness(e[t],-20)));r[a]=n}return n}ZV.exports={calc:qxe,crossTraceCalc:Dxe,makePullColorFn:XV,generateExtendedColors:WV}});var $V=B((Gke,JV)=>{"use strict";var Exe=Oi().appendArrayMultiPointValues;JV.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),Exe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var L_=B((Uke,yX)=>{"use strict";var Dn=Dr(),Pxe=Gt(),Zy=vi(),tX=Ar(),eo=Vr(),Ha=Le(),Rxe=Ha.strScale,KV=Ha.strTranslate,k_=da(),aX=rl(),zxe=aX.recordMinTextSize,Nxe=aX.clearMinTextSize,nX=nd().TEXTPAD,Sr=bv(),Jy=$V(),QV=Le().isValidTextValue;function Fxe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;Nxe("pie",a),oX(r,e),hX(r,n);var i=Ha.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=Dn.select(this),s=l[0],u=s.trace;Xxe(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=Dn.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(b,M){if(b.hidden){Dn.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,c[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var k=s.cx,A=s.cy,S=Dn.select(this),D=S.selectAll("path.surface").data([b]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(iX,e,l),u.pull){var E=+Sr.castOption(u.pull,b.pts)||0;E>0&&(k+=E*b.pxmid[0],A+=E*b.pxmid[1])}b.cxFinal=k,b.cyFinal=A;function R(V,U,Z,X){var $=X*(U[0]-V[0]),ae=X*(U[1]-V[1]);return"a"+X*s.r+","+X*s.r+" 0 "+b.largeArc+(Z?" 1 ":" 0 ")+$+","+ae}var N=u.hole;if(b.v===s.vTotal){var I="M"+(k+b.px0[0])+","+(A+b.px0[1])+R(b.px0,b.pxmid,!0,1)+R(b.pxmid,b.px0,!0,1)+"Z";N?D.attr("d","M"+(k+N*b.px0[0])+","+(A+N*b.px0[1])+R(b.px0,b.pxmid,!1,N)+R(b.pxmid,b.px0,!1,N)+"Z"+I):D.attr("d",I)}else{var H=R(b.px0,b.px1,!0,1);if(N){var O=1-N;D.attr("d","M"+(k+N*b.px1[0])+","+(A+N*b.px1[1])+R(b.px1,b.px0,!1,N)+"l"+O*b.px0[0]+","+O*b.px0[1]+H+"Z")}else D.attr("d","M"+k+","+A+"l"+b.px0[0]+","+b.px0[1]+H+"Z")}pX(e,b,s);var G=Sr.castOption(u.textposition,b.pts),Y=S.selectAll("g.slicetext").data(b.text&&G!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var V=Ha.ensureSingle(Dn.select(this),"text","",function(K){K.attr("data-notex",1)}),U=Ha.ensureUniformFontSize(e,G==="outside"?Hxe(u,b,a.font):lX(u,b,a.font));V.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(eo.font,U).call(k_.convertToTspans,e);var Z=eo.bBox(V.node()),X;if(G==="outside")X=rX(Z,b);else if(X=sX(Z,b,s),G==="auto"&&X.scale<1){var $=Ha.ensureUniformFontSize(e,u.outsidetextfont);V.call(eo.font,$),Z=eo.bBox(V.node()),X=rX(Z,b)}var ae=X.textPosAngle,ie=ae===void 0?b.pxmid:$y(s.r,ae);if(X.targetX=k+ie[0]*X.rCenter+(X.x||0),X.targetY=A+ie[1]*X.rCenter+(X.y||0),mX(X,Z),X.outside){var ve=X.targetY;b.yLabelMin=ve-Z.height/2,b.yLabelMid=ve,b.yLabelMax=ve+Z.height/2,b.labelExtraX=0,b.labelExtraY=0,v=!0}X.fontSize=U.size,zxe(u.type,X,a),l[M].transform=X,Ha.setTransormAndDisplay(V,X)})});var h=Dn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(h.enter().append("g").classed("titletext",!0),h.exit().remove(),h.each(function(){var b=Ha.ensureSingle(Dn.select(this),"text","",function(A){A.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=Ha.templateString(M,u._meta)),b.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(eo.font,u.title.font).call(k_.convertToTspans,e);var k;u.title.position==="middle center"?k=Yxe(s):k=vX(s,n),b.attr("transform",KV(k.x,k.y)+Rxe(Math.min(1,k.scale))+KV(k.tx,k.ty))}),v&&Uxe(c,u),Ixe(f,u),v&&u.automargin){var p=eo.bBox(o.node()),m=u.domain,y=n.w*(m.x[1]-m.x[0]),x=n.h*(m.y[1]-m.y[0]),_=(.5*y-s.r)/n.w,w=(.5*x-s.r)/n.h;Pxe.autoMargin(e,"pie."+u.uid+".automargin",{xl:m.x[0]-_,xr:m.x[1]+_,yb:m.y[0]-w,yt:m.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=Dn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function Ixe(e,r){e.each(function(t){var a=Dn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,Ha.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;Ha.ensureSingle(a,"path","textline").call(tX.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function iX(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=Zy.castHoverinfo({hoverinfo:[Sr.castOption(c,s.pts)],_module:l._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,h=n+s.pxmid[0]*(1-v),p=i+s.pxmid[1]*(1-v),m=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(s.label),s.text=Sr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var x=s.text;Ha.isValidTextValue(x)&&y.push(x)}s.value=s.v,s.valueLabel=Sr.formatPieValue(s.v,m),c&&c.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Sr.formatPiePercent(s.percent,m),c&&c.indexOf("percent")!==-1&&y.push(s.percentLabel);var _=f.hoverlabel,w=_.font,b=[];Zy.loneHover({trace:l,x0:h-v*a.r,x1:h+v*a.r,y:p,_x0:o?n+s.TL[0]:h-v*a.r,_x1:o?n+s.TR[0]:h+v*a.r,_y0:o?i+s.TL[1]:p-v*a.r,_y1:o?i+s.BL[1]:p+v*a.r,text:y.join("<br>"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Sr.castOption(_.bgcolor,s.pts)||s.color,borderColor:Sr.castOption(_.bordercolor,s.pts),fontFamily:Sr.castOption(w.family,s.pts),fontSize:Sr.castOption(w.size,s.pts),fontColor:Sr.castOption(w.color,s.pts),nameLength:Sr.castOption(_.namelength,s.pts),textAlign:Sr.castOption(_.align,s.pts),hovertemplate:Sr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[Jy(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[Jy(s,f)],event:Dn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=Dn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=Dn.event,r.emit("plotly_unhover",{points:[Jy(c,f)],event:Dn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(Zy.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[Jy(s,f)],Zy.click(r,Dn.event))})}function Hxe(e,r,t){var a=Sr.castOption(e.outsidetextfont.color,r.pts)||Sr.castOption(e.textfont.color,r.pts)||t.color,n=Sr.castOption(e.outsidetextfont.family,r.pts)||Sr.castOption(e.textfont.family,r.pts)||t.family,i=Sr.castOption(e.outsidetextfont.size,r.pts)||Sr.castOption(e.textfont.size,r.pts)||t.size,l=Sr.castOption(e.outsidetextfont.weight,r.pts)||Sr.castOption(e.textfont.weight,r.pts)||t.weight,o=Sr.castOption(e.outsidetextfont.style,r.pts)||Sr.castOption(e.textfont.style,r.pts)||t.style,s=Sr.castOption(e.outsidetextfont.variant,r.pts)||Sr.castOption(e.textfont.variant,r.pts)||t.variant,u=Sr.castOption(e.outsidetextfont.textcase,r.pts)||Sr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Sr.castOption(e.outsidetextfont.lineposition,r.pts)||Sr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Sr.castOption(e.outsidetextfont.shadow,r.pts)||Sr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function lX(e,r,t){var a=Sr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Sr.castOption(e._input.textfont.color,r.pts));var n=Sr.castOption(e.insidetextfont.family,r.pts)||Sr.castOption(e.textfont.family,r.pts)||t.family,i=Sr.castOption(e.insidetextfont.size,r.pts)||Sr.castOption(e.textfont.size,r.pts)||t.size,l=Sr.castOption(e.insidetextfont.weight,r.pts)||Sr.castOption(e.textfont.weight,r.pts)||t.weight,o=Sr.castOption(e.insidetextfont.style,r.pts)||Sr.castOption(e.textfont.style,r.pts)||t.style,s=Sr.castOption(e.insidetextfont.variant,r.pts)||Sr.castOption(e.textfont.variant,r.pts)||t.variant,u=Sr.castOption(e.insidetextfont.textcase,r.pts)||Sr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Sr.castOption(e.insidetextfont.lineposition,r.pts)||Sr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Sr.castOption(e.insidetextfont.shadow,r.pts)||Sr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||tX.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function oX(e,r){for(var t,a,n=0;n<e.length;n++)if(t=e[n][0],a=t.trace,a.title.text){var i=a.title.text;a._meta&&(i=Ha.templateString(i,a._meta));var l=eo.tester.append("text").attr("data-notex",1).text(i).call(eo.font,a.title.font).call(k_.convertToTspans,r),o=eo.bBox(l.node(),!0);t.titleBox={width:o.width,height:o.height},l.remove()}}function sX(e,r,t){var a=t.r||r.rpx1,n=r.rInscribed,i=r.startangle===r.stopangle;if(i)return{rCenter:1-n,scale:0,rotate:0,textPosAngle:0};var l=r.ring,o=l===1&&Math.abs(r.startangle-r.stopangle)===Math.PI*2,s=r.halfangle,u=r.midangle,f=t.trace.insidetextorientation,c=f==="horizontal",v=f==="tangential",h=f==="radial",p=f==="auto",m=[],y;if(!p){var x=function(S,D){if(Oxe(r,S)){var E=Math.abs(S-r.startangle),R=Math.abs(S-r.stopangle),N=E<R?E:R;D==="tan"?y=eX(e,a,l,N,0):y=jV(e,a,l,N,Math.PI/2),y.textPosAngle=S,m.push(y)}},_;if(c||v){for(_=4;_>=-4;_-=2)x(Math.PI*_,"tan");for(_=4;_>=-4;_-=2)x(Math.PI*(_+1),"tan")}if(c||h){for(_=4;_>=-4;_-=2)x(Math.PI*(_+1.5),"rad");for(_=4;_>=-4;_-=2)x(Math.PI*(_+.5),"rad")}}if(o||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/w,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;m.push(y)}(p||h)&&(y=jV(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||v)&&(y=eX(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y));for(var b=0,M=0,k=0;k<m.length;k++){var A=m[k].scale;if(M<A&&(M=A,b=k),!p&&M>=1)break}return m[b]}function Oxe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t<r&&r<a}function jV(e,r,t,a,n){r=Math.max(0,r-2*nX);var i=e.width/e.height,l=cX(i,a,r,t);return{scale:l*2/e.height,rCenter:uX(i,l/r),rotate:fX(n)}}function eX(e,r,t,a,n){r=Math.max(0,r-2*nX);var i=e.height/e.width,l=cX(i,a,r,t);return{scale:l*2/e.width,rCenter:uX(i,l/r),rotate:fX(n+Math.PI/2)}}function uX(e,r){return Math.cos(r)-e*r}function fX(e){return(180/Math.PI*e+720)%180-90}function cX(e,r,t,a){var n=e+1/(2*Math.tan(r));return t*Math.min(1/(Math.sqrt(n*n+.5)+n),a/(Math.sqrt(e*e+a/2)+e))}function Bxe(e,r){return e.v===r.vTotal&&!r.trace.hole?1:Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2)}function rX(e,r){var t=r.pxmid[0],a=r.pxmid[1],n=e.width/2,i=e.height/2;return t<0&&(n*=-1),a<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:n+Math.abs(i)*(n>0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function Yxe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function vX(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=dX(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=Gxe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=C_(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function Gxe(e,r){return e/(r===void 0?1:r)}function C_(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function dX(e){var r=e.pull;if(!r)return 0;var t;if(Ha.isArrayOrTypedArray(r))for(r=0,t=0;t<e.pull.length;t++)e.pull[t]>r&&(r=e.pull[t]);return r}function Uxe(e,r){var t,a,n,i,l,o,s,u,f,c,v,h,p;function m(w,b){return w.pxmid[1]-b.pxmid[1]}function y(w,b){return b.pxmid[1]-w.pxmid[1]}function x(w,b){b||(b={});var M=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),k=a?w.yLabelMin:w.yLabelMax,A=a?w.yLabelMax:w.yLabelMin,S=w.cyFinal+l(w.px0[1],w.px1[1]),D=M-k,E,R,N,I,H,O;if(D*s>0&&(w.labelExtraY=D),!!Ha.isArrayOrTypedArray(r.pull))for(R=0;R<c.length;R++)N=c[R],!(N===w||(Sr.castOption(r.pull,w.pts)||0)>=(Sr.castOption(r.pull,N.pts)||0))&&((w.pxmid[1]-N.pxmid[1])*s>0?(I=N.cyFinal+l(N.px0[1],N.px1[1]),D=I-k-w.labelExtraY,D*s>0&&(w.labelExtraY+=D)):(A+w.labelExtraY-S)*s>0&&(E=3*o*Math.abs(R-c.indexOf(w)),H=N.cxFinal+i(N.px0[0],N.px1[0]),O=H+E-(w.cxFinal+w.pxmid[0])-w.labelExtraX,O*o>0&&(w.labelExtraX+=O)))}for(a=0;a<2;a++)for(n=a?m:y,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),h=[],v=0;v<u.length;v++)u[v].yLabelMid!==void 0&&h.push(u[v]);for(p=!1,v=0;a&&v<f.length;v++)if(f[v].yLabelMid!==void 0){p=f[v];break}for(v=0;v<h.length;v++){var _=v&&h[v-1];p&&!v&&(_=p),x(h[v],_)}}}function hX(e,r){for(var t=[],a=0;a<e.length;a++){var n=e[a][0],i=n.trace,l=i.domain,o=r.w*(l.x[1]-l.x[0]),s=r.h*(l.y[1]-l.y[0]);i.title.text&&i.title.position!=="middle center"&&(s-=C_(n,r));var u=o/2,f=s/2;i.type==="funnelarea"&&!i.scalegroup&&(f/=i.aspectratio),n.r=Math.min(u,f)/(1+dX(i)),n.cx=r.l+r.w*(i.domain.x[1]+i.domain.x[0])/2,n.cy=r.t+r.h*(1-i.domain.y[0])-s/2,i.title.text&&i.title.position.indexOf("bottom")!==-1&&(n.cy-=C_(n,r)),i.scalegroup&&t.indexOf(i.scalegroup)===-1&&t.push(i.scalegroup)}Vxe(e,t)}function Vxe(e,r){for(var t,a,n,i=0;i<r.length;i++){var l=1/0,o=r[i];for(a=0;a<e.length;a++)if(t=e[a][0],n=t.trace,n.scalegroup===o){var s;if(n.type==="pie")s=t.r*t.r;else if(n.type==="funnelarea"){var u,f;n.aspectratio>1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;a<e.length;a++)if(t=e[a][0],n=t.trace,n.scalegroup===o){var c=l*t.vTotal;n.type==="funnelarea"&&(c/=(1+n.baseratio)/2,c/=n.aspectratio),t.r=Math.sqrt(c)}}}function Xxe(e){var r=e[0],t=r.r,a=r.trace,n=Sr.getRotationAngle(a.rotation),i=2*Math.PI/r.vTotal,l="px0",o="px1",s,u,f;if(a.direction==="counterclockwise"){for(s=0;s<e.length&&e[s].hidden;s++);if(s===e.length)return;n+=i*e[s].v,i*=-1,l="px1",o="px0"}for(f=$y(t,n),s=0;s<e.length;s++)u=e[s],!u.hidden&&(u[l]=f,u.startangle=n,n+=i*u.v/2,u.pxmid=$y(t,n),u.midangle=n,n+=i*u.v/2,f=$y(t,n),u.stopangle=n,u[o]=f,u.largeArc=u.v>r.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=Bxe(u,r))}function $y(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function pX(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(b){return o.indexOf(b)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),h=a.separators,p;if(p=u?[r.label]:[],f){var m=Sr.getFirstFilled(n.text,r.pts);QV(m)&&p.push(m)}c&&p.push(Sr.formatPieValue(r.v,h)),v&&p.push(Sr.formatPiePercent(r.v/t.vTotal,h)),r.text=p.join("<br>")}function y(b){return{label:b.label,value:b.v,valueLabel:Sr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:Sr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:Ha.castOption(n,b.i,"customdata")}}if(i){var x=Ha.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var _=y(r),w=Sr.getFirstFilled(n.text,r.pts);(QV(w)||w==="")&&(_.text=w),r.text=Ha.texttemplateString({data:[_,n._meta],fallback:n.texttemplatefallback,labels:_,locale:e._fullLayout._d3locale,template:x})}}}function mX(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}yX.exports={plot:Fxe,formatSliceLabel:pX,transformInsideText:sX,determineInsideTextFont:lX,positionTitleOutside:vX,prerenderTitles:oX,layoutAreas:hX,attachFxHandlers:iX,computeTransform:mX}});var xX=B((Vke,bX)=>{"use strict";var gX=Dr(),Wxe=Xf(),Zxe=rl().resizeText;bX.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Zxe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=gX.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){gX.select(this).call(Wxe,o,i,r)})})}});var wX=B(Ic=>{"use strict";var _X=Gt();Ic.name="pie";Ic.plot=function(e,r,t,a){_X.plotBasePlot(Ic.name,e,r,t,a)};Ic.clean=function(e,r,t,a){_X.cleanBasePlot(Ic.name,e,r,t,a)}});var MX=B((Wke,TX)=>{"use strict";TX.exports={attributes:Uy(),supplyDefaults:Vy().supplyDefaults,supplyLayoutDefaults:VV(),layoutAttributes:Xy(),calc:Wy().calc,crossTraceCalc:Wy().crossTraceCalc,plot:L_().plot,style:xX(),styleOne:Xf(),moduleType:"trace",name:"pie",basePlotModule:wX(),categories:["pie-like","pie","showLegend"],meta:{}}});var kX=B((Zke,AX)=>{"use strict";AX.exports=MX()});var LX=B(Hc=>{"use strict";var CX=Gt();Hc.name="funnelarea";Hc.plot=function(e,r,t,a){CX.plotBasePlot(Hc.name,e,r,t,a)};Hc.clean=function(e,r,t,a){CX.cleanBasePlot(Hc.name,e,r,t,a)}});var S_=B(($ke,qX)=>{"use strict";var Oa=Uy(),Jxe=xn(),$xe=Xo().attributes,{hovertemplateAttrs:Kxe,texttemplateAttrs:Qxe,templatefallbackAttrs:SX}=Fn(),Au=Tt().extendFlat;qX.exports={labels:Oa.labels,label0:Oa.label0,dlabel:Oa.dlabel,values:Oa.values,marker:{colors:Oa.marker.colors,line:{color:Au({},Oa.marker.line.color,{dflt:null}),width:Au({},Oa.marker.line.width,{dflt:1}),editType:"calc"},pattern:Oa.marker.pattern,editType:"calc"},text:Oa.text,hovertext:Oa.hovertext,scalegroup:Au({},Oa.scalegroup,{}),textinfo:Au({},Oa.textinfo,{flags:["label","text","value","percent"]}),texttemplate:Qxe({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:SX({editType:"plot"}),hoverinfo:Au({},Jxe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Kxe({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:SX(),textposition:Au({},Oa.textposition,{values:["inside","none"],dflt:"inside"}),textfont:Oa.textfont,insidetextfont:Oa.insidetextfont,title:{text:Oa.title.text,font:Oa.title.font,position:Au({},Oa.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:$xe({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var q_=B((Kke,DX)=>{"use strict";var jxe=Xy().hiddenlabels;DX.exports={hiddenlabels:jxe,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var RX=B((Qke,PX)=>{"use strict";var EX=Le(),e4e=S_(),r4e=Xo().defaults,t4e=kl().handleText,a4e=Vy().handleLabelsAndValues,n4e=Vy().handleMarkerDefaults;PX.exports=function(r,t,a,n){function i(m,y){return EX.coerce(r,t,e4e,m,y)}var l=i("labels"),o=i("values"),s=a4e(l,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,n4e(r,t,n,i),i("scalegroup");var f=i("text"),c=i("texttemplate");i("texttemplatefallback");var v;if(c||(v=i("textinfo",Array.isArray(f)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),c||v&&v!=="none"){var h=i("textposition");t4e(r,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else v==="none"&&i("textposition","none");r4e(t,n,i);var p=i("title.text");p&&(i("title.position"),EX.coerceFont(i,"title.font",n.font)),i("aspectratio"),i("baseratio")}});var NX=B((jke,zX)=>{"use strict";var i4e=Le(),l4e=q_();zX.exports=function(r,t){function a(n,i){return i4e.coerce(r,t,l4e,n,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}});var D_=B((eCe,IX)=>{"use strict";var FX=Wy();function o4e(e,r){return FX.calc(e,r)}function s4e(e){FX.crossTraceCalc(e,{type:"funnelarea"})}IX.exports={calc:o4e,crossTraceCalc:s4e}});var GX=B((rCe,YX)=>{"use strict";var ku=Dr(),E_=Vr(),es=Le(),u4e=es.strScale,HX=es.strTranslate,OX=da(),f4e=qc(),c4e=f4e.toMoveInsideBar,BX=rl(),v4e=BX.recordMinTextSize,d4e=BX.clearMinTextSize,h4e=bv(),Oc=L_(),p4e=Oc.attachFxHandlers,m4e=Oc.determineInsideTextFont,y4e=Oc.layoutAreas,g4e=Oc.prerenderTitles,b4e=Oc.positionTitleOutside,x4e=Oc.formatSliceLabel;YX.exports=function(r,t){var a=r._context.staticPlot,n=r._fullLayout;d4e("funnelarea",n),g4e(t,r),y4e(t,n._size),es.makeTraceGroups(n._funnelarealayer,t,"trace").each(function(i){var l=ku.select(this),o=i[0],s=o.trace;w4e(i),l.each(function(){var u=ku.select(this).selectAll("g.slice").data(i);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(c,v){if(c.hidden){ku.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=s.index;var h=o.cx,p=o.cy,m=ku.select(this),y=m.selectAll("path.surface").data([c]);y.enter().append("path").classed("surface",!0).style({"pointer-events":a?"none":"all"}),m.call(p4e,r,i);var x="M"+(h+c.TR[0])+","+(p+c.TR[1])+P_(c.TR,c.BR)+P_(c.BR,c.BL)+P_(c.BL,c.TL)+"Z";y.attr("d",x),x4e(r,c,o);var _=h4e.castOption(s.textposition,c.pts),w=m.selectAll("g.slicetext").data(c.text&&_!=="none"?[0]:[]);w.enter().append("g").classed("slicetext",!0),w.exit().remove(),w.each(function(){var b=es.ensureSingle(ku.select(this),"text","",function(N){N.attr("data-notex",1)}),M=es.ensureUniformFontSize(r,m4e(s,c,n.font));b.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(E_.font,M).call(OX.convertToTspans,r);var k=E_.bBox(b.node()),A,S,D,E=Math.min(c.BL[1],c.BR[1])+p,R=Math.max(c.TL[1],c.TR[1])+p;S=Math.max(c.TL[0],c.BL[0])+h,D=Math.min(c.TR[0],c.BR[0])+h,A=c4e(S,D,E,R,k,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),A.fontSize=M.size,v4e(s.type,A,n),i[v].transform=A,es.setTransormAndDisplay(b,A)})});var f=ku.select(this).selectAll("g.titletext").data(s.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=es.ensureSingle(ku.select(this),"text","",function(p){p.attr("data-notex",1)}),v=s.title.text;s._meta&&(v=es.templateString(v,s._meta)),c.text(v).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(E_.font,s.title.font).call(OX.convertToTspans,r);var h=b4e(o,n._size);c.attr("transform",HX(h.x,h.y)+u4e(Math.min(1,h.scale))+HX(h.tx,h.ty))})})})};function P_(e,r){var t=r[0]-e[0],a=r[1]-e[1];return"l"+t+","+a}function _4e(e,r){return[.5*(e[0]+r[0]),.5*(e[1]+r[1])]}function w4e(e){if(!e.length)return;var r=e[0],t=r.trace,a=t.aspectratio,n=t.baseratio;n>.999&&(n=.999);var i=Math.pow(n,2),l=r.vTotal,o=l*i/(1-i),s=l,u=o/l;function f(){var I=Math.sqrt(u);return{x:I,y:-I}}function c(){var I=f();return[I.x,I.y]}var v,h=[];h.push(c());var p,m;for(p=e.length-1;p>-1;p--)if(m=e[p],!m.hidden){var y=m.v/s;u+=y,h.push(c())}var x=1/0,_=-1/0;for(p=0;p<h.length;p++)v=h[p],x=Math.min(x,v[1]),_=Math.max(_,v[1]);for(p=0;p<h.length;p++)h[p][1]-=(_+x)/2;var w=h[h.length-1][0],b=r.r,M=(_-x)/2,k=b/w,A=b/M*a;for(r.r=A*M,p=0;p<h.length;p++)h[p][0]*=k,h[p][1]*=A;v=h[0];var S=[-v[0],v[1]],D=[v[0],v[1]],E=0;for(p=e.length-1;p>-1;p--)if(m=e[p],!m.hidden){E+=1;var R=h[E][0],N=h[E][1];m.TL=[-R,N],m.TR=[R,N],m.BL=S,m.BR=D,m.pxmid=_4e(m.TR,m.BR),S=m.TL,D=m.TR}}});var XX=B((tCe,VX)=>{"use strict";var UX=Dr(),T4e=Xf(),M4e=rl().resizeText;VX.exports=function(r){var t=r._fullLayout._funnelarealayer.selectAll(".trace");M4e(r,t,"funnelarea"),t.each(function(a){var n=a[0],i=n.trace,l=UX.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){UX.select(this).call(T4e,o,i,r)})})}});var ZX=B((aCe,WX)=>{"use strict";WX.exports={moduleType:"trace",name:"funnelarea",basePlotModule:LX(),categories:["pie-like","funnelarea","showLegend"],attributes:S_(),layoutAttributes:q_(),supplyDefaults:RX(),supplyLayoutDefaults:NX(),calc:D_().calc,crossTraceCalc:D_().crossTraceCalc,plot:GX(),style:XX(),styleOne:Xf(),meta:{}}});var $X=B((nCe,JX)=>{"use strict";JX.exports=ZX()});var QX=B(Bc=>{"use strict";var KX=Gt();Bc.name="indicator";Bc.plot=function(e,r,t,a){KX.plotBasePlot(Bc.name,e,r,t,a)};Bc.clean=function(e,r,t,a){KX.cleanBasePlot(Bc.name,e,r,t,a)}});var z_=B((lCe,nW)=>{"use strict";var rs=Tt().extendFlat,eW=Tt().extendDeep,A4e=Ri().overrideAll,rW=ma(),tW=ni(),k4e=Xo().attributes,Bt=Bn(),C4e=vt().templatedArray,Ky=zc(),jX=Hi().descriptionOnlyNumbers,R_=rW({editType:"plot",colorEditType:"plot"}),Dd={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:tW.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},aW={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},L4e=C4e("step",eW({},Dd,{range:aW}));nW.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:k4e({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:rs({},R_,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:jX("value")},font:rs({},R_,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:jX("value")},increasing:{symbol:{valType:"string",dflt:Ky.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:Ky.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:Ky.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:Ky.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:rs({},R_,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:eW({},Dd,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:tW.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:A4e({range:aW,visible:rs({},Bt.visible,{dflt:!0}),tickmode:Bt.minor.tickmode,nticks:Bt.nticks,tick0:Bt.tick0,dtick:Bt.dtick,tickvals:Bt.tickvals,ticktext:Bt.ticktext,ticks:rs({},Bt.ticks,{dflt:"outside"}),ticklen:Bt.ticklen,tickwidth:Bt.tickwidth,tickcolor:Bt.tickcolor,ticklabelstep:Bt.ticklabelstep,showticklabels:Bt.showticklabels,labelalias:Bt.labelalias,tickfont:rW({}),tickangle:Bt.tickangle,tickformat:Bt.tickformat,tickformatstops:Bt.tickformatstops,tickprefix:Bt.tickprefix,showtickprefix:Bt.showtickprefix,ticksuffix:Bt.ticksuffix,showticksuffix:Bt.showticksuffix,separatethousands:Bt.separatethousands,exponentformat:Bt.exponentformat,minexponent:Bt.minexponent,showexponent:Bt.showexponent,editType:"plot"},"plot"),steps:L4e,threshold:{line:{color:rs({},Dd.line.color,{}),width:rs({},Dd.line.width,{dflt:1}),editType:"plot"},thickness:rs({},Dd.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var N_=B((oCe,iW)=>{"use strict";iW.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var sW=B((sCe,oW)=>{"use strict";var Cl=Le(),jy=z_(),S4e=Xo().defaults,lW=vt(),q4e=si(),Qy=N_(),D4e=H1(),E4e=O1(),P4e=Y1(),R4e=G1();function z4e(e,r,t,a){function n(k,A){return Cl.coerce(e,r,jy,k,A)}S4e(r,a,n),n("mode"),r._hasNumber=r.mode.indexOf("number")!==-1,r._hasDelta=r.mode.indexOf("delta")!==-1,r._hasGauge=r.mode.indexOf("gauge")!==-1;var i=n("value");r._range=[0,typeof i=="number"?1.5*i:1];var l=new Array(2),o;if(r._hasNumber){n("number.valueformat");var s=Cl.extendFlat({},a.font);s.size=void 0,Cl.coerceFont(n,"number.font",s),r.number.font.size===void 0&&(r.number.font.size=Qy.defaultNumberFontSize,l[0]=!0),n("number.prefix"),n("number.suffix"),o=r.number.font.size}var u;if(r._hasDelta){var f=Cl.extendFlat({},a.font);f.size=void 0,Cl.coerceFont(n,"delta.font",f),r.delta.font.size===void 0&&(r.delta.font.size=(r._hasNumber?.5:1)*(o||Qy.defaultNumberFontSize),l[1]=!0),n("delta.reference",r.value),n("delta.relative"),n("delta.valueformat",r.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=r.delta.font.size}r._scaleNumbers=(!r._hasNumber||l[0])&&(!r._hasDelta||l[1])||!1;var c=Cl.extendFlat({},a.font);c.size=.25*(o||u||Qy.defaultNumberFontSize),Cl.coerceFont(n,"title.font",c),n("title.text");var v,h,p,m;function y(k,A){return Cl.coerce(v,h,jy.gauge,k,A)}function x(k,A){return Cl.coerce(p,m,jy.gauge.axis,k,A)}if(r._hasGauge){v=e.gauge,v||(v={}),h=lW.newContainer(r,"gauge"),y("shape");var _=r._isBullet=r.gauge.shape==="bullet";_||n("title.align","center");var w=r._isAngular=r.gauge.shape==="angular";w||n("align","center"),y("bgcolor",a.paper_bgcolor),y("borderwidth"),y("bordercolor"),y("bar.color"),y("bar.line.color"),y("bar.line.width");var b=Qy.valueThickness*(r.gauge.shape==="bullet"?.5:1);y("bar.thickness",b),q4e(v,h,{name:"steps",handleItemDefaults:N4e}),y("threshold.value"),y("threshold.thickness"),y("threshold.line.width"),y("threshold.line.color"),p={},v&&(p=v.axis||{}),m=lW.newContainer(h,"axis"),x("visible"),r._range=x("range",r._range);var M={font:a.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};D4e(p,m,x,"linear"),R4e(p,m,x,"linear",M),P4e(p,m,x,"linear",M),E4e(p,m,x,M)}else n("title.align","center"),n("align","center"),r._isAngular=r._isBullet=!1;r._length=null}function N4e(e,r){function t(a,n){return Cl.coerce(e,r,jy.gauge.steps,a,n)}t("color"),t("line.color"),t("line.width"),t("range"),t("thickness")}oW.exports={supplyDefaults:z4e}});var fW=B((uCe,uW)=>{"use strict";function F4e(e,r){var t=[],a=r.value;typeof r._lastValue!="number"&&(r._lastValue=r.value);var n=r._lastValue,i=n;return r._hasDelta&&typeof r.delta.reference=="number"&&(i=r.delta.reference),t[0]={y:a,lastY:n,delta:a-i,relativeDelta:(a-i)/i},t}uW.exports={calc:F4e}});function ro(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function ts(e,r){var t=Object.create(e.prototype);for(var a in r)t[a]=r[a];return t}var eg=rt(()=>{});function Sl(){}function vW(){return this.rgb().formatHex()}function V4e(){return this.rgb().formatHex8()}function X4e(){return bW(this).formatHsl()}function dW(){return this.rgb().formatRgb()}function ns(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=I4e.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?hW(r):t===3?new Ma(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?rg(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?rg(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=H4e.exec(e))?new Ma(r[1],r[2],r[3],1):(r=O4e.exec(e))?new Ma(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=B4e.exec(e))?rg(r[1],r[2],r[3],r[4]):(r=Y4e.exec(e))?rg(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=G4e.exec(e))?yW(r[1],r[2]/100,r[3]/100,1):(r=U4e.exec(e))?yW(r[1],r[2]/100,r[3]/100,r[4]):cW.hasOwnProperty(e)?hW(cW[e]):e==="transparent"?new Ma(NaN,NaN,NaN,0):null}function hW(e){return new Ma(e>>16&255,e>>8&255,e&255,1)}function rg(e,r,t,a){return a<=0&&(e=r=t=NaN),new Ma(e,r,t,a)}function Pd(e){return e instanceof Sl||(e=ns(e)),e?(e=e.rgb(),new Ma(e.r,e.g,e.b,e.opacity)):new Ma}function Gc(e,r,t,a){return arguments.length===1?Pd(e):new Ma(e,r,t,a==null?1:a)}function Ma(e,r,t,a){this.r=+e,this.g=+r,this.b=+t,this.opacity=+a}function pW(){return`#${Cu(this.r)}${Cu(this.g)}${Cu(this.b)}`}function W4e(){return`#${Cu(this.r)}${Cu(this.g)}${Cu(this.b)}${Cu((isNaN(this.opacity)?1:this.opacity)*255)}`}function mW(){let e=ag(this.opacity);return`${e===1?"rgb(":"rgba("}${Lu(this.r)}, ${Lu(this.g)}, ${Lu(this.b)}${e===1?")":`, ${e})`}`}function ag(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Lu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Cu(e){return e=Lu(e),(e<16?"0":"")+e.toString(16)}function yW(e,r,t,a){return a<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new al(e,r,t,a)}function bW(e){if(e instanceof al)return new al(e.h,e.s,e.l,e.opacity);if(e instanceof Sl||(e=ns(e)),!e)return new al;if(e instanceof al)return e;e=e.rgb();var r=e.r/255,t=e.g/255,a=e.b/255,n=Math.min(r,t,a),i=Math.max(r,t,a),l=NaN,o=i-n,s=(i+n)/2;return o?(r===i?l=(t-a)/o+(t<a)*6:t===i?l=(a-r)/o+2:l=(r-t)/o+4,o/=s<.5?i+n:2-i-n,l*=60):o=s>0&&s<1?0:l,new al(l,o,s,e.opacity)}function Rd(e,r,t,a){return arguments.length===1?bW(e):new al(e,r,t,a==null?1:a)}function al(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}function gW(e){return e=(e||0)%360,e<0?e+360:e}function tg(e){return Math.max(0,Math.min(1,e||0))}function F_(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}var as,Su,Yc,Ed,Ll,I4e,H4e,O4e,B4e,Y4e,G4e,U4e,cW,ng=rt(()=>{eg();as=.7,Su=1/as,Yc="\\s*([+-]?\\d+)\\s*",Ed="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ll="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",I4e=/^#([0-9a-f]{3,8})$/,H4e=new RegExp(`^rgb\\(${Yc},${Yc},${Yc}\\)$`),O4e=new RegExp(`^rgb\\(${Ll},${Ll},${Ll}\\)$`),B4e=new RegExp(`^rgba\\(${Yc},${Yc},${Yc},${Ed}\\)$`),Y4e=new RegExp(`^rgba\\(${Ll},${Ll},${Ll},${Ed}\\)$`),G4e=new RegExp(`^hsl\\(${Ed},${Ll},${Ll}\\)$`),U4e=new RegExp(`^hsla\\(${Ed},${Ll},${Ll},${Ed}\\)$`),cW={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};ro(Sl,ns,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:vW,formatHex:vW,formatHex8:V4e,formatHsl:X4e,formatRgb:dW,toString:dW});ro(Ma,Gc,ts(Sl,{brighter(e){return e=e==null?Su:Math.pow(Su,e),new Ma(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?as:Math.pow(as,e),new Ma(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ma(Lu(this.r),Lu(this.g),Lu(this.b),ag(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pW,formatHex:pW,formatHex8:W4e,formatRgb:mW,toString:mW}));ro(al,Rd,ts(Sl,{brighter(e){return e=e==null?Su:Math.pow(Su,e),new al(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?as:Math.pow(as,e),new al(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,a=t+(t<.5?t:1-t)*r,n=2*t-a;return new Ma(F_(e>=240?e-240:e+120,n,a),F_(e,n,a),F_(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new al(gW(this.h),tg(this.s),tg(this.l),ag(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ag(this.opacity);return`${e===1?"hsl(":"hsla("}${gW(this.h)}, ${tg(this.s)*100}%, ${tg(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var ig,lg,I_=rt(()=>{ig=Math.PI/180,lg=180/Math.PI});function AW(e){if(e instanceof ql)return new ql(e.l,e.a,e.b,e.opacity);if(e instanceof to)return kW(e);e instanceof Ma||(e=Pd(e));var r=Y_(e.r),t=Y_(e.g),a=Y_(e.b),n=H_((.2225045*r+.7168786*t+.0606169*a)/_W),i,l;return r===t&&t===a?i=l=n:(i=H_((.4360747*r+.3850649*t+.1430804*a)/xW),l=H_((.0139322*r+.0971045*t+.7141733*a)/wW)),new ql(116*n-16,500*(i-n),200*(n-l),e.opacity)}function Vc(e,r,t,a){return arguments.length===1?AW(e):new ql(e,r,t,a==null?1:a)}function ql(e,r,t,a){this.l=+e,this.a=+r,this.b=+t,this.opacity=+a}function H_(e){return e>Z4e?Math.pow(e,1/3):e/MW+TW}function O_(e){return e>Uc?e*e*e:MW*(e-TW)}function B_(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Y_(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function J4e(e){if(e instanceof to)return new to(e.h,e.c,e.l,e.opacity);if(e instanceof ql||(e=AW(e)),e.a===0&&e.b===0)return new to(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*lg;return new to(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function zd(e,r,t,a){return arguments.length===1?J4e(e):new to(e,r,t,a==null?1:a)}function to(e,r,t,a){this.h=+e,this.c=+r,this.l=+t,this.opacity=+a}function kW(e){if(isNaN(e.h))return new ql(e.l,0,0,e.opacity);var r=e.h*ig;return new ql(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}var og,xW,_W,wW,TW,Uc,MW,Z4e,CW=rt(()=>{eg();ng();I_();og=18,xW=.96422,_W=1,wW=.82521,TW=4/29,Uc=6/29,MW=3*Uc*Uc,Z4e=Uc*Uc*Uc;ro(ql,Vc,ts(Sl,{brighter(e){return new ql(this.l+og*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new ql(this.l-og*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return r=xW*O_(r),e=_W*O_(e),t=wW*O_(t),new Ma(B_(3.1338561*r-1.6168667*e-.4906146*t),B_(-.9787684*r+1.9161415*e+.033454*t),B_(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));ro(to,zd,ts(Sl,{brighter(e){return new to(this.h,this.c,this.l+og*(e==null?1:e),this.opacity)},darker(e){return new to(this.h,this.c,this.l-og*(e==null?1:e),this.opacity)},rgb(){return kW(this).rgb()}}))});function $4e(e){if(e instanceof qu)return new qu(e.h,e.s,e.l,e.opacity);e instanceof Ma||(e=Pd(e));var r=e.r/255,t=e.g/255,a=e.b/255,n=(qW*a+LW*r-SW*t)/(qW+LW-SW),i=a-n,l=(Nd*(t-n)-U_*i)/sg,o=Math.sqrt(l*l+i*i)/(Nd*n*(1-n)),s=o?Math.atan2(l,i)*lg-120:NaN;return new qu(s<0?s+360:s,o,n,e.opacity)}function Xc(e,r,t,a){return arguments.length===1?$4e(e):new qu(e,r,t,a==null?1:a)}function qu(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}var DW,G_,U_,sg,Nd,LW,SW,qW,EW=rt(()=>{eg();ng();I_();DW=-.14861,G_=1.78277,U_=-.29227,sg=-.90649,Nd=1.97294,LW=Nd*sg,SW=Nd*G_,qW=G_*U_-sg*DW;ro(qu,Xc,ts(Sl,{brighter(e){return e=e==null?Su:Math.pow(Su,e),new qu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?as:Math.pow(as,e),new qu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*ig,r=+this.l,t=isNaN(this.s)?0:this.s*r*(1-r),a=Math.cos(e),n=Math.sin(e);return new Ma(255*(r+t*(DW*a+G_*n)),255*(r+t*(U_*a+sg*n)),255*(r+t*(Nd*a)),this.opacity)}}))});var Du=rt(()=>{ng();CW();EW()});function V_(e,r,t,a,n){var i=e*e,l=i*e;return((1-3*e+3*i-l)*r+(4-6*i+3*l)*t+(1+3*e+3*i-3*l)*a+l*n)/6}function ug(e){var r=e.length-1;return function(t){var a=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),n=e[a],i=e[a+1],l=a>0?e[a-1]:2*n-i,o=a<r-1?e[a+2]:2*i-n;return V_((t-a/r)*r,l,n,i,o)}}var fg=rt(()=>{});function cg(e){var r=e.length;return function(t){var a=Math.floor(((t%=1)<0?++t:t)*r),n=e[(a+r-1)%r],i=e[a%r],l=e[(a+1)%r],o=e[(a+2)%r];return V_((t-a/r)*r,n,i,l,o)}}var X_=rt(()=>{fg()});var Wc,W_=rt(()=>{Wc=e=>()=>e});function PW(e,r){return function(t){return e+t*r}}function K4e(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(a){return Math.pow(e+a*r,t)}}function is(e,r){var t=r-e;return t?PW(e,t>180||t<-180?t-360*Math.round(t/360):t):Wc(isNaN(e)?r:e)}function RW(e){return(e=+e)==1?Xt:function(r,t){return t-r?K4e(r,t,e):Wc(isNaN(r)?t:r)}}function Xt(e,r){var t=r-e;return t?PW(e,t):Wc(isNaN(e)?r:e)}var Eu=rt(()=>{W_()});function zW(e){return function(r){var t=r.length,a=new Array(t),n=new Array(t),i=new Array(t),l,o;for(l=0;l<t;++l)o=Gc(r[l]),a[l]=o.r||0,n[l]=o.g||0,i[l]=o.b||0;return a=e(a),n=e(n),i=e(i),o.opacity=1,function(s){return o.r=a(s),o.g=n(s),o.b=i(s),o+""}}}var Fd,NW,FW,Z_=rt(()=>{Du();fg();X_();Eu();Fd=(function e(r){var t=RW(r);function a(n,i){var l=t((n=Gc(n)).r,(i=Gc(i)).r),o=t(n.g,i.g),s=t(n.b,i.b),u=Xt(n.opacity,i.opacity);return function(f){return n.r=l(f),n.g=o(f),n.b=s(f),n.opacity=u(f),n+""}}return a.gamma=e,a})(1);NW=zW(ug),FW=zW(cg)});function Zc(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,a=r.slice(),n;return function(i){for(n=0;n<t;++n)a[n]=e[n]*(1-i)+r[n]*i;return a}}function vg(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var dg=rt(()=>{});function IW(e,r){return(vg(r)?Zc:J_)(e,r)}function J_(e,r){var t=r?r.length:0,a=e?Math.min(t,e.length):0,n=new Array(a),i=new Array(t),l;for(l=0;l<a;++l)n[l]=ls(e[l],r[l]);for(;l<t;++l)i[l]=r[l];return function(o){for(l=0;l<a;++l)i[l]=n[l](o);return i}}var $_=rt(()=>{Id();dg()});function hg(e,r){var t=new Date;return e=+e,r=+r,function(a){return t.setTime(e*(1-a)+r*a),t}}var K_=rt(()=>{});function En(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}var Hd=rt(()=>{});function pg(e,r){var t={},a={},n;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(n in r)n in e?t[n]=ls(e[n],r[n]):a[n]=r[n];return function(i){for(n in t)a[n]=t[n](i);return a}}var Q_=rt(()=>{Id()});function Q4e(e){return function(){return e}}function j4e(e){return function(r){return e(r)+""}}function mg(e,r){var t=e7.lastIndex=j_.lastIndex=0,a,n,i,l=-1,o=[],s=[];for(e=e+"",r=r+"";(a=e7.exec(e))&&(n=j_.exec(r));)(i=n.index)>t&&(i=r.slice(t,i),o[l]?o[l]+=i:o[++l]=i),(a=a[0])===(n=n[0])?o[l]?o[l]+=n:o[++l]=n:(o[++l]=null,s.push({i:l,x:En(a,n)})),t=j_.lastIndex;return t<r.length&&(i=r.slice(t),o[l]?o[l]+=i:o[++l]=i),o.length<2?s[0]?j4e(s[0].x):Q4e(r):(r=s.length,function(u){for(var f=0,c;f<r;++f)o[(c=s[f]).i]=c.x(u);return o.join("")})}var e7,j_,r7=rt(()=>{Hd();e7=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,j_=new RegExp(e7.source,"g")});function ls(e,r){var t=typeof r,a;return r==null||t==="boolean"?Wc(r):(t==="number"?En:t==="string"?(a=ns(r))?(r=a,Fd):mg:r instanceof ns?Fd:r instanceof Date?hg:vg(r)?Zc:Array.isArray(r)?J_:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?pg:En)(e,r)}var Id=rt(()=>{Du();Z_();$_();K_();Hd();Q_();r7();W_();dg()});function HW(e){var r=e.length;return function(t){return e[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var OW=rt(()=>{});function BW(e,r){var t=is(+e,+r);return function(a){var n=t(a);return n-360*Math.floor(n/360)}}var YW=rt(()=>{Eu()});function GW(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}var UW=rt(()=>{});function t7(e,r,t,a,n,i){var l,o,s;return(l=Math.sqrt(e*e+r*r))&&(e/=l,r/=l),(s=e*t+r*a)&&(t-=e*s,a-=r*s),(o=Math.sqrt(t*t+a*a))&&(t/=o,a/=o,s/=o),e*a<r*t&&(e=-e,r=-r,s=-s,l=-l),{translateX:n,translateY:i,rotate:Math.atan2(r,e)*VW,skewX:Math.atan(s)*VW,scaleX:l,scaleY:o}}var VW,yg,XW=rt(()=>{VW=180/Math.PI,yg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function WW(e){let r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?yg:t7(r.a,r.b,r.c,r.d,r.e,r.f)}function ZW(e){return e==null?yg:(gg||(gg=document.createElementNS("http://www.w3.org/2000/svg","g")),gg.setAttribute("transform",e),(e=gg.transform.baseVal.consolidate())?(e=e.matrix,t7(e.a,e.b,e.c,e.d,e.e,e.f)):yg)}var gg,JW=rt(()=>{XW()});function $W(e,r,t,a){function n(u){return u.length?u.pop()+" ":""}function i(u,f,c,v,h,p){if(u!==c||f!==v){var m=h.push("translate(",null,r,null,t);p.push({i:m-4,x:En(u,c)},{i:m-2,x:En(f,v)})}else(c||v)&&h.push("translate("+c+r+v+t)}function l(u,f,c,v){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),v.push({i:c.push(n(c)+"rotate(",null,a)-2,x:En(u,f)})):f&&c.push(n(c)+"rotate("+f+a)}function o(u,f,c,v){u!==f?v.push({i:c.push(n(c)+"skewX(",null,a)-2,x:En(u,f)}):f&&c.push(n(c)+"skewX("+f+a)}function s(u,f,c,v,h,p){if(u!==c||f!==v){var m=h.push(n(h)+"scale(",null,",",null,")");p.push({i:m-4,x:En(u,c)},{i:m-2,x:En(f,v)})}else(c!==1||v!==1)&&h.push(n(h)+"scale("+c+","+v+")")}return function(u,f){var c=[],v=[];return u=e(u),f=e(f),i(u.translateX,u.translateY,f.translateX,f.translateY,c,v),l(u.rotate,f.rotate,c,v),o(u.skewX,f.skewX,c,v),s(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,v),u=f=null,function(h){for(var p=-1,m=v.length,y;++p<m;)c[(y=v[p]).i]=y.x(h);return c.join("")}}}var KW,QW,jW=rt(()=>{Hd();JW();KW=$W(WW,"px, ","px)","deg)"),QW=$W(ZW,", ",")",")")});function eZ(e){return((e=Math.exp(e))+1/e)/2}function r6e(e){return((e=Math.exp(e))-1/e)/2}function t6e(e){return((e=Math.exp(2*e))-1)/(e+1)}var e6e,rZ,tZ=rt(()=>{e6e=1e-12;rZ=(function e(r,t,a){function n(i,l){var o=i[0],s=i[1],u=i[2],f=l[0],c=l[1],v=l[2],h=f-o,p=c-s,m=h*h+p*p,y,x;if(m<e6e)x=Math.log(v/u)/r,y=function(A){return[o+A*h,s+A*p,u*Math.exp(r*A*x)]};else{var _=Math.sqrt(m),w=(v*v-u*u+a*m)/(2*u*t*_),b=(v*v-u*u-a*m)/(2*v*t*_),M=Math.log(Math.sqrt(w*w+1)-w),k=Math.log(Math.sqrt(b*b+1)-b);x=(k-M)/r,y=function(A){var S=A*x,D=eZ(M),E=u/(t*_)*(D*t6e(r*S+M)-r6e(M));return[o+E*h,s+E*p,u*D/eZ(r*S+M)]}}return y.duration=x*1e3*r/Math.SQRT2,y}return n.rho=function(i){var l=Math.max(.001,+i),o=l*l,s=o*o;return e(l,o,s)},n})(Math.SQRT2,2,4)});function aZ(e){return function(r,t){var a=e((r=Rd(r)).h,(t=Rd(t)).h),n=Xt(r.s,t.s),i=Xt(r.l,t.l),l=Xt(r.opacity,t.opacity);return function(o){return r.h=a(o),r.s=n(o),r.l=i(o),r.opacity=l(o),r+""}}}var nZ,iZ,lZ=rt(()=>{Du();Eu();nZ=aZ(is),iZ=aZ(Xt)});function a7(e,r){var t=Xt((e=Vc(e)).l,(r=Vc(r)).l),a=Xt(e.a,r.a),n=Xt(e.b,r.b),i=Xt(e.opacity,r.opacity);return function(l){return e.l=t(l),e.a=a(l),e.b=n(l),e.opacity=i(l),e+""}}var oZ=rt(()=>{Du();Eu()});function sZ(e){return function(r,t){var a=e((r=zd(r)).h,(t=zd(t)).h),n=Xt(r.c,t.c),i=Xt(r.l,t.l),l=Xt(r.opacity,t.opacity);return function(o){return r.h=a(o),r.c=n(o),r.l=i(o),r.opacity=l(o),r+""}}}var uZ,fZ,cZ=rt(()=>{Du();Eu();uZ=sZ(is),fZ=sZ(Xt)});function vZ(e){return(function r(t){t=+t;function a(n,i){var l=e((n=Xc(n)).h,(i=Xc(i)).h),o=Xt(n.s,i.s),s=Xt(n.l,i.l),u=Xt(n.opacity,i.opacity);return function(f){return n.h=l(f),n.s=o(f),n.l=s(Math.pow(f,t)),n.opacity=u(f),n+""}}return a.gamma=r,a})(1)}var dZ,hZ,pZ=rt(()=>{Du();Eu();dZ=vZ(is),hZ=vZ(Xt)});function n7(e,r){r===void 0&&(r=e,e=ls);for(var t=0,a=r.length-1,n=r[0],i=new Array(a<0?0:a);t<a;)i[t]=e(n,n=r[++t]);return function(l){var o=Math.max(0,Math.min(a-1,Math.floor(l*=a)));return i[o](l-o)}}var mZ=rt(()=>{Id()});function yZ(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e(a/(r-1));return t}var gZ=rt(()=>{});var i7={};rf(i7,{interpolate:()=>ls,interpolateArray:()=>IW,interpolateBasis:()=>ug,interpolateBasisClosed:()=>cg,interpolateCubehelix:()=>dZ,interpolateCubehelixLong:()=>hZ,interpolateDate:()=>hg,interpolateDiscrete:()=>HW,interpolateHcl:()=>uZ,interpolateHclLong:()=>fZ,interpolateHsl:()=>nZ,interpolateHslLong:()=>iZ,interpolateHue:()=>BW,interpolateLab:()=>a7,interpolateNumber:()=>En,interpolateNumberArray:()=>Zc,interpolateObject:()=>pg,interpolateRgb:()=>Fd,interpolateRgbBasis:()=>NW,interpolateRgbBasisClosed:()=>FW,interpolateRound:()=>GW,interpolateString:()=>mg,interpolateTransformCss:()=>KW,interpolateTransformSvg:()=>QW,interpolateZoom:()=>rZ,piecewise:()=>n7,quantize:()=>yZ});var l7=rt(()=>{Id();$_();fg();X_();K_();OW();YW();Hd();dg();Q_();UW();r7();jW();tZ();Z_();lZ();oZ();cZ();pZ();mZ();gZ()});var MZ=B((QLe,TZ)=>{"use strict";var Fu=Dr(),a6e=(l7(),Ga(i7)).interpolate,bZ=(l7(),Ga(i7)).interpolateNumber,os=Le(),n6e=os.strScale,Bd=os.strTranslate,i6e=os.rad2deg,l6e=za().MID_SHIFT,Nu=Vr(),Pu=N_(),xg=da(),Ba=Jr(),o6e=Zm(),s6e=$m(),u6e=Bn(),Jc=Ar(),o7={left:"start",center:"middle",right:"end"},Ru={left:0,center:.5,right:1},xZ=/[yzafpnµmkMGTPEZY]/;function Yd(e){return e&&e.duration>0}TZ.exports=function(r,t,a,n){var i=r._fullLayout,l;Yd(a)&&n&&(l=n()),os.makeTraceGroups(i._indicatorlayer,t,"trace").each(function(o){var s=o[0],u=s.trace,f=Fu.select(this),c=u._hasGauge,v=u._isAngular,h=u._isBullet,p=u.domain,m={w:i._size.w*(p.x[1]-p.x[0]),h:i._size.h*(p.y[1]-p.y[0]),l:i._size.l+i._size.w*p.x[0],r:i._size.r+i._size.w*(1-p.x[1]),t:i._size.t+i._size.h*(1-p.y[1]),b:i._size.b+i._size.h*p.y[0]},y=m.l+m.w/2,x=m.t+m.h/2,_=Math.min(m.w/2,m.h),w=Pu.innerRadius*_,b,M,k,A=u.align||"center";if(M=x,!c)b=m.l+Ru[A]*m.w,k=function(Y){return _Z(Y,m.w,m.h)};else if(v&&(b=y,M=x+_/2,k=function(Y){return h6e(Y,.9*w)}),h){var S=Pu.bulletPadding,D=1-Pu.bulletNumberDomainSize+S;b=m.l+(D+(1-D)*Ru[A])*m.w,k=function(Y){return _Z(Y,(Pu.bulletNumberDomainSize-S)*m.w,m.h)}}v6e(r,f,o,{numbersX:b,numbersY:M,numbersScaler:k,transitionOpts:a,onComplete:l});var E,R;c&&(E={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},R={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var N=f.selectAll("g.angular").data(v?o:[]);N.exit().remove();var I=f.selectAll("g.angularaxis").data(v?o:[]);I.exit().remove(),v&&c6e(r,f,o,{radius:_,innerRadius:w,gauge:N,layer:I,size:m,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var H=f.selectAll("g.bullet").data(h?o:[]);H.exit().remove();var O=f.selectAll("g.bulletaxis").data(h?o:[]);O.exit().remove(),h&&f6e(r,f,o,{gauge:H,layer:O,size:m,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var G=f.selectAll("text.title").data(o);G.exit().remove(),G.enter().append("text").classed("title",!0),G.attr("text-anchor",function(){return h?o7.right:o7[u.title.align]}).text(u.title.text).call(Nu.font,u.title.font).call(xg.convertToTspans,r),G.attr("transform",function(){var Y=m.l+m.w*Ru[u.title.align],V,U=Pu.titlePadding,Z=Nu.bBox(G.node());if(c){if(v)if(u.gauge.axis.visible){var X=Nu.bBox(I.node());V=X.top-U-Z.bottom}else V=m.t+m.h/2-_/2-Z.bottom-U;h&&(V=M-(Z.top+Z.bottom)/2,Y=m.l-Pu.bulletPadding*m.w)}else V=u._numbersTop-U-Z.bottom;return Bd(Y,V)})})};function f6e(e,r,t,a){var n=t[0].trace,i=a.gauge,l=a.layer,o=a.gaugeBg,s=a.gaugeOutline,u=a.size,f=n.domain,c=a.transitionOpts,v=a.onComplete,h,p,m,y,x;i.enter().append("g").classed("bullet",!0),i.attr("transform",Bd(u.l,u.t)),l.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),l.selectAll("g.xbulletaxistick,path,text").remove();var _=u.h,w=n.gauge.bar.thickness*_,b=f.x[0],M=f.x[0]+(f.x[1]-f.x[0])*(n._hasNumber||n._hasDelta?1-Pu.bulletNumberDomainSize:1);h=Od(e,n.gauge.axis),h._id="xbulletaxis",h.domain=[b,M],h.setScale(),p=Ba.calcTicks(h),m=Ba.makeTransTickFn(h),y=Ba.getTickSigns(h)[2],x=u.t+u.h,h.visible&&(Ba.drawTicks(e,h,{vals:h.ticks==="inside"?Ba.clipEnds(h,p):p,layer:l,path:Ba.makeTickPath(h,x,y),transFn:m}),Ba.drawLabels(e,h,{vals:p,layer:l,transFn:m,labelFns:Ba.makeLabelFns(h,x)}));function k(I){I.attr("width",function(H){return Math.max(0,h.c2p(H.range[1])-h.c2p(H.range[0]))}).attr("x",function(H){return h.c2p(H.range[0])}).attr("y",function(H){return .5*(1-H.thickness)*_}).attr("height",function(H){return H.thickness*_})}var A=[o].concat(n.gauge.steps),S=i.selectAll("g.bg-bullet").data(A);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(k).call(zu),S.exit().remove();var D=i.selectAll("g.value-bullet").data([n.gauge.bar]);D.enter().append("g").classed("value-bullet",!0).append("rect"),D.select("rect").attr("height",w).attr("y",(_-w)/2).call(zu),Yd(c)?D.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).attr("width",Math.max(0,h.c2p(Math.min(n.gauge.axis.range[1],t[0].y)))):D.select("rect").attr("width",typeof t[0].y=="number"?Math.max(0,h.c2p(Math.min(n.gauge.axis.range[1],t[0].y))):0),D.exit().remove();var E=t.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),R=i.selectAll("g.threshold-bullet").data(E);R.enter().append("g").classed("threshold-bullet",!0).append("line"),R.select("line").attr("x1",h.c2p(n.gauge.threshold.value)).attr("x2",h.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*_).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*_).call(Jc.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),R.exit().remove();var N=i.selectAll("g.gauge-outline").data([s]);N.enter().append("g").classed("gauge-outline",!0).append("rect"),N.select("rect").call(k).call(zu),N.exit().remove()}function c6e(e,r,t,a){var n=t[0].trace,i=a.size,l=a.radius,o=a.innerRadius,s=a.gaugeBg,u=a.gaugeOutline,f=[i.l+i.w/2,i.t+i.h/2+l/2],c=a.gauge,v=a.layer,h=a.transitionOpts,p=a.onComplete,m=Math.PI/2;function y($){var ae=n.gauge.axis.range[0],ie=n.gauge.axis.range[1],ve=($-ae)/(ie-ae)*Math.PI-m;return ve<-m?-m:ve>m?m:ve}function x($){return Fu.svg.arc().innerRadius((o+l)/2-$/2*(l-o)).outerRadius((o+l)/2+$/2*(l-o)).startAngle(-m)}function _($){$.attr("d",function(ae){return x(ae.thickness).startAngle(y(ae.range[0])).endAngle(y(ae.range[1]))()})}var w,b,M,k;c.enter().append("g").classed("angular",!0),c.attr("transform",Bd(f[0],f[1])),v.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),v.selectAll("g.xangularaxistick,path,text").remove(),w=Od(e,n.gauge.axis),w.type="linear",w.range=n.gauge.axis.range,w._id="xangularaxis",w.ticklabeloverflow="allow",w.setScale();var A=function($){return(w.range[0]-$.x)/(w.range[1]-w.range[0])*Math.PI+Math.PI},S={},D=Ba.makeLabelFns(w,0),E=D.labelStandoff;S.xFn=function($){var ae=A($);return Math.cos(ae)*E},S.yFn=function($){var ae=A($),ie=Math.sin(ae)>0?.2:1;return-Math.sin(ae)*(E+$.fontSize*ie)+Math.abs(Math.cos(ae))*($.fontSize*l6e)},S.anchorFn=function($){var ae=A($),ie=Math.cos(ae);return Math.abs(ie)<.1?"middle":ie>0?"start":"end"},S.heightFn=function($,ae,ie){var ve=A($);return-.5*(1+Math.sin(ve))*ie};var R=function($){return Bd(f[0]+l*Math.cos($),f[1]-l*Math.sin($))};M=function($){return R(A($))};var N=function($){var ae=A($);return R(ae)+"rotate("+-i6e(ae)+")"};if(b=Ba.calcTicks(w),k=Ba.getTickSigns(w)[2],w.visible){k=w.ticks==="inside"?-1:1;var I=(w.linewidth||1)/2;Ba.drawTicks(e,w,{vals:b,layer:v,path:"M"+k*I+",0h"+k*w.ticklen,transFn:N}),Ba.drawLabels(e,w,{vals:b,layer:v,transFn:M,labelFns:S})}var H=[s].concat(n.gauge.steps),O=c.selectAll("g.bg-arc").data(H);O.enter().append("g").classed("bg-arc",!0).append("path"),O.select("path").call(_).call(zu),O.exit().remove();var G=x(n.gauge.bar.thickness),Y=c.selectAll("g.value-arc").data([n.gauge.bar]);Y.enter().append("g").classed("value-arc",!0).append("path");var V=Y.select("path");Yd(h)?(V.transition().duration(h.duration).ease(h.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",d6e(G,y(t[0].lastY),y(t[0].y))),n._lastValue=t[0].y):V.attr("d",typeof t[0].y=="number"?G.endAngle(y(t[0].y)):"M0,0Z"),V.call(zu),Y.exit().remove(),H=[];var U=n.gauge.threshold.value;(U||U===0)&&H.push({range:[U,U],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var Z=c.selectAll("g.threshold-arc").data(H);Z.enter().append("g").classed("threshold-arc",!0).append("path"),Z.select("path").call(_).call(zu),Z.exit().remove();var X=c.selectAll("g.gauge-outline").data([u]);X.enter().append("g").classed("gauge-outline",!0).append("path"),X.select("path").call(_).call(zu),X.exit().remove()}function v6e(e,r,t,a){var n=t[0].trace,i=a.numbersX,l=a.numbersY,o=n.align||"center",s=o7[o],u=a.transitionOpts,f=a.onComplete,c=os.ensureSingle(r,"g","numbers"),v,h,p,m=[];n._hasNumber&&m.push("number"),n._hasDelta&&(m.push("delta"),n.delta.position==="left"&&m.reverse());var y=c.selectAll("text").data(m);y.enter().append("text"),y.attr("text-anchor",function(){return s}).attr("class",function(R){return R}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),y.exit().remove();function x(R,N,I,H){if(R.match("s")&&I>=0!=H>=0&&!N(I).slice(-1).match(xZ)&&!N(H).slice(-1).match(xZ)){var O=R.slice().replace("s","f").replace(/\d+/,function(Y){return parseInt(Y)-1}),G=Od(e,{tickformat:O});return function(Y){return Math.abs(Y)<1?Ba.tickText(G,Y).text:N(Y)}}else return N}function _(){var R=Od(e,{tickformat:n.number.valueformat},n._range);R.setScale(),Ba.prepTicks(R);var N=function(Y){return Ba.tickText(R,Y).text},I=n.number.suffix,H=n.number.prefix,O=c.select("text.number");function G(){var Y=typeof t[0].y=="number"?H+N(t[0].y)+I:"-";O.text(Y).call(Nu.font,n.number.font).call(xg.convertToTspans,e)}return Yd(u)?O.transition().duration(u.duration).ease(u.easing).each("end",function(){G(),f&&f()}).each("interrupt",function(){G(),f&&f()}).attrTween("text",function(){var Y=Fu.select(this),V=bZ(t[0].lastY,t[0].y);n._lastValue=t[0].y;var U=x(n.number.valueformat,N,t[0].lastY,t[0].y);return function(Z){Y.text(H+U(V(Z))+I)}}):G(),v=wZ(H+N(t[0].y)+I,n.number.font,s,e),O}function w(){var R=Od(e,{tickformat:n.delta.valueformat},n._range);R.setScale(),Ba.prepTicks(R);var N=function(Z){return Ba.tickText(R,Z).text},I=n.delta.suffix,H=n.delta.prefix,O=function(Z){var X=n.delta.relative?Z.relativeDelta:Z.delta;return X},G=function(Z,X){return Z===0||typeof Z!="number"||isNaN(Z)?"-":(Z>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+H+X(Z)+I},Y=function(Z){return Z.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=O(t[0]));var V=c.select("text.delta");V.call(Nu.font,n.delta.font).call(Jc.fill,Y({delta:n._deltaLastValue}));function U(){V.text(G(O(t[0]),N)).call(Jc.fill,Y(t[0])).call(xg.convertToTspans,e)}return Yd(u)?V.transition().duration(u.duration).ease(u.easing).tween("text",function(){var Z=Fu.select(this),X=O(t[0]),$=n._deltaLastValue,ae=x(n.delta.valueformat,N,$,X),ie=bZ($,X);return n._deltaLastValue=X,function(ve){Z.text(G(ie(ve),ae)),Z.call(Jc.fill,Y({delta:ie(ve)}))}}).each("end",function(){U(),f&&f()}).each("interrupt",function(){U(),f&&f()}):U(),h=wZ(G(O(t[0]),N),n.delta.font,s,e),V}var b=n.mode+n.align,M;if(n._hasDelta&&(M=w(),b+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,b+=n.delta.increasing.symbol+n.delta.decreasing.symbol,p=h),n._hasNumber&&(_(),b+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,p=v),n._hasDelta&&n._hasNumber){var k=[(v.left+v.right)/2,(v.top+v.bottom)/2],A=[(h.left+h.right)/2,(h.top+h.bottom)/2],S,D,E=.75*n.delta.font.size;n.delta.position==="left"&&(S=bg(n,"deltaPos",0,-1*(v.width*Ru[n.align]+h.width*(1-Ru[n.align])+E),b,Math.min),D=k[1]-A[1],p={width:v.width+h.width+E,height:Math.max(v.height,h.height),left:h.left+S,right:v.right,top:Math.min(v.top,h.top+D),bottom:Math.max(v.bottom,h.bottom+D)}),n.delta.position==="right"&&(S=bg(n,"deltaPos",0,v.width*(1-Ru[n.align])+h.width*Ru[n.align]+E,b,Math.max),D=k[1]-A[1],p={width:v.width+h.width+E,height:Math.max(v.height,h.height),left:v.left,right:h.right+S,top:Math.min(v.top,h.top+D),bottom:Math.max(v.bottom,h.bottom+D)}),n.delta.position==="bottom"&&(S=null,D=h.height,p={width:Math.max(v.width,h.width),height:v.height+h.height,left:Math.min(v.left,h.left),right:Math.max(v.right,h.right),top:v.bottom-v.height,bottom:v.bottom+h.height}),n.delta.position==="top"&&(S=null,D=v.top,p={width:Math.max(v.width,h.width),height:v.height+h.height,left:Math.min(v.left,h.left),right:Math.max(v.right,h.right),top:v.bottom-v.height-h.height,bottom:v.bottom}),M.attr({dx:S,dy:D})}(n._hasNumber||n._hasDelta)&&c.attr("transform",function(){var R=a.numbersScaler(p);b+=R[2];var N=bg(n,"numbersScale",1,R[0],b,Math.min),I;n._scaleNumbers||(N=1),n._isAngular?I=l-N*p.bottom:I=l-N*(p.top+p.bottom)/2,n._numbersTop=N*p.top+I;var H=p[o];o==="center"&&(H=(p.left+p.right)/2);var O=i-N*H;return O=bg(n,"numbersTranslate",0,O,b,Math.max),Bd(O,I)+n6e(N)})}function zu(e){e.each(function(r){Jc.stroke(Fu.select(this),r.line.color)}).each(function(r){Jc.fill(Fu.select(this),r.color)}).style("stroke-width",function(r){return r.line.width})}function d6e(e,r,t){return function(){var a=a6e(r,t);return function(n){return e.endAngle(a(n))()}}}function Od(e,r,t){var a=e._fullLayout,n=os.extendFlat({type:"linear",ticks:"outside",range:t,showline:!0},r),i={type:"linear",_id:"x"+r._id},l={letter:"x",font:a.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function o(s,u){return os.coerce(n,i,u6e,s,u)}return o6e(n,i,o,l,a),s6e(n,i,o,l),i}function _Z(e,r,t){var a=Math.min(r/e.width,t/e.height);return[a,e,r+"x"+t]}function h6e(e,r){var t=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),a=r/t;return[a,e,r]}function wZ(e,r,t,a){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),i=Fu.select(n);return i.text(e).attr("x",0).attr("y",0).attr("text-anchor",t).attr("data-unformatted",e).call(xg.convertToTspans,a).call(Nu.font,r),Nu.bBox(i.node())}function bg(e,r,t,a,n,i){var l="_cache"+r;e[l]&&e[l].key===n||(e[l]={key:n,value:t});var o=os.aggNums(i,null,[e[l].value,a],2);return e[l].value=o,o}});var kZ=B((jLe,AZ)=>{"use strict";AZ.exports={moduleType:"trace",name:"indicator",basePlotModule:QX(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:z_(),supplyDefaults:sW().supplyDefaults,calc:fW().calc,plot:MZ(),meta:{}}});var LZ=B((eSe,CZ)=>{"use strict";CZ.exports=kZ()});var wg=B((rSe,PZ)=>{"use strict";var _g=Le().extendFlat,Gd=Ui(),SZ=Hi().axisHoverFormat,{hovertemplateAttrs:p6e,templatefallbackAttrs:m6e}=Fn(),DZ=zi().dash,y6e=A0(),EZ=zc(),g6e=EZ.INCREASING.COLOR,b6e=EZ.DECREASING.COLOR,s7=Gd.line;function qZ(e){return{line:{color:_g({},s7.color,{dflt:e}),width:s7.width,dash:DZ,editType:"style"},editType:"style"}}PZ.exports={xperiod:Gd.xperiod,xperiod0:Gd.xperiod0,xperiodalignment:Gd.xperiodalignment,xhoverformat:SZ("x"),yhoverformat:SZ("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:_g({},s7.width,{}),dash:_g({},DZ,{}),editType:"style"},increasing:qZ(g6e),decreasing:qZ(b6e),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:p6e({},{keys:["open","high","low","close"]}),hovertemplatefallback:m6e(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:_g({},y6e.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:Gd.zorder}});var u7=B((tSe,RZ)=>{"use strict";var x6e=Mr(),_6e=Le();RZ.exports=function(r,t,a,n){var i=a("x"),l=a("open"),o=a("high"),s=a("low"),u=a("close");a("hoverlabel.split");var f=x6e.getComponentMethod("calendars","handleTraceDefaults");if(f(r,t,["x"],n),!!(l&&o&&s&&u)){var c=Math.min(l.length,o.length,s.length,u.length);return i&&(c=Math.min(c,_6e.minRowLength(i))),t._length=c,c}}});var FZ=B((aSe,NZ)=>{"use strict";var w6e=Le(),T6e=u7(),M6e=cu(),A6e=wg();NZ.exports=function(r,t,a,n){function i(o,s){return w6e.coerce(r,t,A6e,o,s)}var l=T6e(r,t,i,n);if(!l){t.visible=!1;return}M6e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),i("line.dash"),zZ(r,t,i,"increasing"),zZ(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("tickwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function zZ(e,r,t,a){t(a+".line.color"),t(a+".line.width",r.line.width),t(a+".line.dash",r.line.dash)}});var f7=B((nSe,HZ)=>{"use strict";var $c=Le(),Tg=$c._,Mg=Jr(),k6e=vu(),Ud=Dt().BADNUM;function C6e(e,r){var t=Mg.getFromId(e,r.xaxis),a=Mg.getFromId(e,r.yaxis),n=S6e(e,t,r),i=r._minDiff;r._minDiff=null;var l=r._origX;r._origX=null;var o=r._xcalc;r._xcalc=null;var s=IZ(e,r,l,o,a,L6e);return r._extremes[t._id]=Mg.findExtremes(t,o,{vpad:i/2}),s.length?($c.extendFlat(s[0].t,{wHover:i/2,tickLen:n}),s):[{t:{empty:!0}}]}function L6e(e,r,t,a){return{o:e,h:r,l:t,c:a}}function IZ(e,r,t,a,n,i){for(var l=n.makeCalcdata(r,"open"),o=n.makeCalcdata(r,"high"),s=n.makeCalcdata(r,"low"),u=n.makeCalcdata(r,"close"),f=$c.isArrayOrTypedArray(r.text),c=$c.isArrayOrTypedArray(r.hovertext),v=!0,h=null,p=!!r.xperiodalignment,m=[],y=0;y<a.length;y++){var x=a[y],_=l[y],w=o[y],b=s[y],M=u[y];if(x!==Ud&&_!==Ud&&w!==Ud&&b!==Ud&&M!==Ud){M===_?h!==null&&M!==h&&(v=M>h):v=M>_,h=M;var k=i(_,w,b,M);k.pos=x,k.yc=(_+M)/2,k.i=y,k.dir=v?"increasing":"decreasing",k.x=k.pos,k.y=[b,w],p&&(k.orig_p=t[y]),f&&(k.tx=r.text[y]),c&&(k.htx=r.hovertext[y]),m.push(k)}else m.push({pos:x,empty:!0})}return r._extremes[n._id]=Mg.findExtremes(n,$c.concat(s,o),{padded:!0}),m.length&&(m[0].t={labels:{open:Tg(e,"open:")+" ",high:Tg(e,"high:")+" ",low:Tg(e,"low:")+" ",close:Tg(e,"close:")+" "}}),m}function S6e(e,r,t){var a=t._minDiff;if(!a){var n=e._fullData,i=[];a=1/0;var l;for(l=0;l<n.length;l++){var o=n[l];if(o.type==="ohlc"&&o.visible===!0&&o.xaxis===r._id){i.push(o);var s=r.makeCalcdata(o,"x");o._origX=s;var u=k6e(t,r,"x",s).vals;o._xcalc=u;var f=$c.distinctVals(u).minDiff;f&&isFinite(f)&&(a=Math.min(a,f))}}for(a===1/0&&(a=1),l=0;l<i.length;l++)i[l]._minDiff=a}return a*t.tickwidth}HZ.exports={calc:C6e,calcCommon:IZ}});var YZ=B((iSe,BZ)=>{"use strict";var q6e=Dr(),OZ=Le();BZ.exports=function(r,t,a,n){var i=t.yaxis,l=t.xaxis,o=!!l.rangebreaks;OZ.makeTraceGroups(n,a,"trace ohlc").each(function(s){var u=q6e.select(this),f=s[0],c=f.t,v=f.trace;if(v.visible!==!0||c.empty){u.remove();return}var h=c.tickLen,p=u.selectAll("path").data(OZ.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(m){if(m.empty)return"M0,0Z";var y=l.c2p(m.pos-h,!0),x=l.c2p(m.pos+h,!0),_=o?(y+x)/2:l.c2p(m.pos,!0),w=i.c2p(m.o,!0),b=i.c2p(m.h,!0),M=i.c2p(m.l,!0),k=i.c2p(m.c,!0);return"M"+y+","+w+"H"+_+"M"+_+","+b+"V"+M+"M"+x+","+k+"H"+_})})}});var UZ=B((lSe,GZ)=>{"use strict";var c7=Dr(),D6e=Vr(),E6e=Ar();GZ.exports=function(r,t,a){var n=a||c7.select(r).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var l=i[0].trace;c7.select(this).selectAll("path").each(function(o){if(!o.empty){var s=l[o.dir].line;c7.select(this).style("fill","none").call(E6e.stroke,s.color).call(D6e.dashLine,s.dash,s.width).style("opacity",l.selectedpoints&&!o.selected?.3:1)}})})}});var d7=B((oSe,JZ)=>{"use strict";var v7=Jr(),P6e=Le(),Ag=vi(),R6e=Ar(),z6e=Le().fillText,VZ=zc(),N6e={increasing:VZ.INCREASING.SYMBOL,decreasing:VZ.DECREASING.SYMBOL};function F6e(e,r,t,a){var n=e.cd,i=n[0].trace;return i.hoverlabel.split?WZ(e,r,t,a):ZZ(e,r,t,a)}function XZ(e,r,t,a){var n=e.cd,i=e.xa,l=n[0].trace,o=n[0].t,s=l.type,u=s==="ohlc"?"l":"min",f=s==="ohlc"?"h":"max",c,v,h=o.bPos||0,p=function(E){return E.pos+h-r},m=o.bdPos||o.tickLen,y=o.wHover,x=Math.min(1,m/Math.abs(i.r2c(i.range[1])-i.r2c(i.range[0])));c=e.maxHoverDistance-x,v=e.maxSpikeDistance-x;function _(E){var R=p(E);return Ag.inbox(R-y,R+y,c)}function w(E){var R=E[u],N=E[f];return R===N||Ag.inbox(R-t,N-t,c)}function b(E){return(_(E)+w(E))/2}var M=Ag.getDistanceFunction(a,_,w,b);if(Ag.getClosest(n,M,e),e.index===!1)return null;var k=n[e.index];if(k.empty)return null;var A=k.dir,S=l[A],D=S.line.color;return R6e.opacity(D)&&S.line.width?e.color=D:e.color=S.fillcolor,e.x0=i.c2p(k.pos+h-m,!0),e.x1=i.c2p(k.pos+h+m,!0),e.xLabelVal=k.orig_p!==void 0?k.orig_p:k.pos,e.spikeDistance=b(k)*v/c,e.xSpike=i.c2p(k.pos,!0),e}function WZ(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=[],u=XZ(e,r,t,a);if(!u)return[];var f=n[u.index],c=f.hi||l.hoverinfo||"";if(c==="none"||c==="skip")return[];for(var v=["high","open","close","low"],h={},p=0;p<v.length;p++){var m=v[p],y=l[m][u.index],x=i.c2p(y,!0),_;y in h?(_=h[y],_.yLabel+="<br>"+o.labels[m]+v7.hoverLabelText(i,y,l.yhoverformat)):(_=P6e.extendFlat({},u),_.y0=_.y1=x,_.yLabelVal=y,_.yLabel=o.labels[m]+v7.hoverLabelText(i,y,l.yhoverformat),_.name="",s.push(_),h[y]=_)}return s}function ZZ(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=XZ(e,r,t,a);if(!s)return[];var u=s.index,f=n[u],c=s.index=f.i,v=f.dir;function h(b){return o.labels[b]+v7.hoverLabelText(i,l[b][c],l.yhoverformat)}var p=f.hi||l.hoverinfo||"",m=p.split("+"),y=p==="all",x=y||m.indexOf("y")!==-1,_=y||m.indexOf("text")!==-1,w=x?[h("open"),h("high"),h("low"),h("close")+" "+N6e[v]]:[];return _&&z6e(f,l,w),s.extraText=w.join("<br>"),s.y0=s.y1=i.c2p(f.yc,!0),[s]}JZ.exports={hoverPoints:F6e,hoverSplit:WZ,hoverOnPoints:ZZ}});var h7=B((sSe,$Z)=>{"use strict";$Z.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o,s=a[0].t.bPos||0;if(t===!1)for(o=0;o<a.length;o++)a[o].selected=0;else for(o=0;o<a.length;o++){var u=a[o];t.contains([n.c2p(u.pos+s),i.c2p(u.yc)],null,u.i,r)?(l.push({pointNumber:u.i,x:n.c2d(u.pos),y:i.c2d(u.yc)}),u.selected=1):u.selected=0}return l}});var QZ=B((uSe,KZ)=>{"use strict";KZ.exports={moduleType:"trace",name:"ohlc",basePlotModule:Wl(),categories:["cartesian","svg","showLegend"],meta:{},attributes:wg(),supplyDefaults:FZ(),calc:f7().calc,plot:YZ(),style:UZ(),hoverPoints:d7().hoverPoints,selectPoints:h7()}});var eJ=B((fSe,jZ)=>{"use strict";jZ.exports=QZ()});var iJ=B((cSe,nJ)=>{"use strict";var I6e=i4(),Ci=Ui(),rJ=Ql(),H6e=ni(),tJ=Hi().axisHoverFormat,{hovertemplateAttrs:O6e,templatefallbackAttrs:B6e}=Fn(),ao=Tt().extendFlat,Kc=Ci.marker,aJ=Kc.line;nJ.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:Ci.xperiod,yperiod:Ci.yperiod,xperiod0:Ci.xperiod0,yperiod0:Ci.yperiod0,xperiodalignment:Ci.xperiodalignment,yperiodalignment:Ci.yperiodalignment,xhoverformat:tJ("x"),yhoverformat:tJ("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:ao({},Kc.symbol,{arrayOk:!1,editType:"plot"}),opacity:ao({},Kc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:ao({},Kc.angle,{arrayOk:!1,editType:"calc"}),size:ao({},Kc.size,{arrayOk:!1,editType:"calc"}),color:ao({},Kc.color,{arrayOk:!1,editType:"style"}),line:{color:ao({},aJ.color,{arrayOk:!1,dflt:H6e.defaultLine,editType:"style"}),width:ao({},aJ.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:I6e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:rJ.offsetgroup,alignmentgroup:rJ.alignmentgroup,selected:{marker:Ci.selected.marker,editType:"style"},unselected:{marker:Ci.unselected.marker,editType:"style"},text:ao({},Ci.text,{}),hovertext:ao({},Ci.hovertext,{}),hovertemplate:O6e({}),hovertemplatefallback:B6e(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Ci.zorder}});var m7=B((vSe,sJ)=>{"use strict";var p7=Le().extendFlat,lJ=Hi().axisHoverFormat,pn=wg(),Qc=iJ();function oJ(e){return{line:{color:p7({},Qc.line.color,{dflt:e}),width:Qc.line.width,editType:"style"},fillcolor:Qc.fillcolor,editType:"style"}}sJ.exports={xperiod:pn.xperiod,xperiod0:pn.xperiod0,xperiodalignment:pn.xperiodalignment,xhoverformat:lJ("x"),yhoverformat:lJ("y"),x:pn.x,open:pn.open,high:pn.high,low:pn.low,close:pn.close,line:{width:p7({},Qc.line.width,{}),editType:"style"},increasing:oJ(pn.increasing.line.color.dflt),decreasing:oJ(pn.decreasing.line.color.dflt),text:pn.text,hovertext:pn.hovertext,hovertemplate:pn.hovertemplate,hovertemplatefallback:pn.hovertemplatefallback,whiskerwidth:p7({},Qc.whiskerwidth,{dflt:0}),hoverlabel:pn.hoverlabel,zorder:Qc.zorder}});var y7=B((dSe,uJ)=>{"use strict";uJ.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var vJ=B((hSe,cJ)=>{"use strict";var Y6e=Mr(),G6e=Le(),U6e=y7();function fJ(e,r,t,a,n){for(var i=n+"Layout",l=!1,o=0;o<t.length;o++){var s=t[o];if(Y6e.traceIs(s,i)){l=!0;break}}l&&(a(n+"mode"),a(n+"gap"),a(n+"groupgap"))}function V6e(e,r,t){function a(n,i){return G6e.coerce(e,r,U6e,n,i)}fJ(e,r,t,a,"box")}cJ.exports={supplyLayoutDefaults:V6e,_supply:fJ}});var yJ=B((pSe,mJ)=>{"use strict";var dJ=Jr(),X6e=Le(),W6e=lu().getAxisGroup,hJ=["v","h"];function Z6e(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i<hJ.length;i++){for(var l=hJ[i],o=l==="h"?n:a,s=[],u=0;u<t.length;u++){var f=t[u],c=f[0].t,v=f[0].trace;v.visible===!0&&(v.type==="box"||v.type==="candlestick")&&!c.empty&&(v.orientation||"v")===l&&v.xaxis===a._id&&v.yaxis===n._id&&s.push(u)}pJ("box",e,s,o)}}function pJ(e,r,t,a){var n=r.calcdata,i=r._fullLayout,l=a._id,o=l.charAt(0),s,u,f,c=[],v=0;for(s=0;s<t.length;s++)for(f=n[t[s]],u=0;u<f.length;u++)c.push(a.c2l(f[u].pos,!0)),v+=(f[u].pts2||[]).length;if(c.length){var h=X6e.distinctVals(c);(a.type==="category"||a.type==="multicategory")&&(h.minDiff=1);var p=h.minDiff/2;dJ.minDtick(a,h.minDiff,h.vals[0],!0);var m=e==="violin"?"_numViolins":"_numBoxes",y=i[m],x=i[e+"mode"]==="group"&&y>1,_=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s<t.length;s++){f=n[t[s]];var b=f[0].trace,M=f[0].t,k=b.width,A=b.side,S,D,E,R;if(k)S=D=R=k/2,E=0;else if(S=p,x){var N=W6e(i,a._id)+b.orientation,I=i._alignmentOpts[N]||{},H=I[b.alignmentgroup]||{},O=Object.keys(H.offsetGroups||{}).length,G=O||y,Y=O?b._offsetIndex:M.num;D=S*_*w/G,E=2*S*(-.5+(Y+.5)/G)*_,R=S*_/G}else D=S*_*w,E=0,R=S;M.dPos=S,M.bPos=E,M.bdPos=D,M.wHover=R;var V,U,Z=E+D,X,$,ae,ie,ve,K,he=!!k,oe=(b.boxpoints||b.points)&&v>0;if(A==="positive"?(V=S*(k?1:.5),X=Z,U=X=E):A==="negative"?(V=X=E,U=S*(k?1:.5),$=Z):(V=U=S,X=$=Z),oe){var be=b.pointpos,me=b.jitter,ce=b.marker.size/2,Me=0;be+me>=0&&(Me=Z*(be+me),Me>V?(he=!0,ve=ce,ae=Me):Me>X&&(ve=ce,ae=V)),Me<=V&&(ae=V);var De=0;be-me<=0&&(De=-Z*(be-me),De>U?(he=!0,K=ce,ie=De):De>$&&(K=ce,ie=U)),De<=U&&(ie=U)}else ae=V,ie=U;var Te=new Array(f.length);for(u=0;u<f.length;u++)Te[u]=f[u].pos;b._extremes[l]=dJ.findExtremes(a,Te,{padded:he,vpadminus:ie,vpadplus:ae,vpadLinearized:!0,ppadminus:{x:K,y:ve}[o],ppadplus:{x:ve,y:K}[o]})}}}mJ.exports={crossTraceCalc:Z6e,setPositionOffset:pJ}});var xJ=B((mSe,bJ)=>{"use strict";var J6e=Le(),$6e=Ar(),K6e=u7(),Q6e=cu(),j6e=m7();bJ.exports=function(r,t,a,n){function i(o,s){return J6e.coerce(r,t,j6e,o,s)}var l=K6e(r,t,i,n);if(!l){t.visible=!1;return}Q6e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),gJ(r,t,i,"increasing"),gJ(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("whiskerwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function gJ(e,r,t,a){var n=t(a+".line.color");t(a+".line.width",r.line.width),t(a+".fillcolor",$6e.addOpacity(n,.5))}});var MJ=B((ySe,TJ)=>{"use strict";var _J=Le(),wJ=Jr(),e_e=vu(),r_e=f7().calcCommon;TJ.exports=function(e,r){var t=e._fullLayout,a=wJ.getFromId(e,r.xaxis),n=wJ.getFromId(e,r.yaxis),i=a.makeCalcdata(r,"x"),l=e_e(r,a,"x",i).vals,o=r_e(e,r,i,l,n,t_e);return o.length?(_J.extendFlat(o[0].t,{num:t._numBoxes,dPos:_J.distinctVals(l).minDiff/2,posLetter:"x",valLetter:"y"}),t._numBoxes++,o):[{t:{empty:!0}}]};function t_e(e,r,t,a){return{min:t,q1:Math.min(e,a),med:a,q3:Math.max(e,a),max:r}}});var qJ=B((gSe,SJ)=>{"use strict";var jc=Dr(),Iu=Le(),a_e=Vr(),AJ=5,n_e=.01;function i_e(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,l=r.yaxis;Iu.makeTraceGroups(a,t,"trace boxes").each(function(o){var s=jc.select(this),u=o[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,h;c.orientation==="h"?(v=l,h=i):(v=i,h=l),kJ(s,{pos:v,val:h},c,f,n),CJ(s,{x:i,y:l},c,f),LJ(s,{pos:v,val:h},c,f)})}function kJ(e,r,t,a,n){var i=t.orientation==="h",l=r.val,o=r.pos,s=!!o.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,h=t.showwhiskers!==!1,p=t.notched||!1,m=p?1-2*t.notchwidth:1,y,x;Array.isArray(a.bdPos)?(y=a.bdPos[0],x=a.bdPos[1]):(y=a.bdPos,x=a.bdPos);var _=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Iu.identity:[]);_.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),_.exit().remove(),_.each(function(w){if(w.empty)return jc.select(this).attr("d","M0,0Z");var b=o.c2l(w.pos+u,!0),M=o.l2p(b-y)+c,k=o.l2p(b+x)+c,A=s?(M+k)/2:o.l2p(b)+c,S=t.whiskerwidth,D=s?M*S+(1-S)*A:o.l2p(b-f)+c,E=s?k*S+(1-S)*A:o.l2p(b+f)+c,R=o.l2p(b-y*m)+c,N=o.l2p(b+x*m)+c,I=t.sizemode==="sd",H=l.c2p(I?w.mean-w.sd:w.q1,!0),O=I?l.c2p(w.mean+w.sd,!0):l.c2p(w.q3,!0),G=Iu.constrain(I?l.c2p(w.mean,!0):l.c2p(w.med,!0),Math.min(H,O)+1,Math.max(H,O)-1),Y=w.lf===void 0||t.boxpoints===!1||I,V=l.c2p(Y?w.min:w.lf,!0),U=l.c2p(Y?w.max:w.uf,!0),Z=l.c2p(w.ln,!0),X=l.c2p(w.un,!0);i?jc.select(this).attr("d","M"+G+","+R+"V"+N+"M"+H+","+M+"V"+k+(p?"H"+Z+"L"+G+","+N+"L"+X+","+k:"")+"H"+O+"V"+M+(p?"H"+X+"L"+G+","+R+"L"+Z+","+M:"")+"Z"+(h?"M"+H+","+A+"H"+V+"M"+O+","+A+"H"+U+(v===0?"":"M"+V+","+D+"V"+E+"M"+U+","+D+"V"+E):"")):jc.select(this).attr("d","M"+R+","+G+"H"+N+"M"+M+","+H+"H"+k+(p?"V"+Z+"L"+N+","+G+"L"+k+","+X:"")+"V"+O+"H"+M+(p?"V"+X+"L"+R+","+G+"L"+M+","+Z:"")+"Z"+(h?"M"+A+","+H+"V"+V+"M"+A+","+O+"V"+U+(v===0?"":"M"+D+","+V+"H"+E+"M"+D+","+U+"H"+E):""))})}function CJ(e,r,t,a){var n=r.x,i=r.y,l=a.bdPos,o=a.bPos,s=t.boxpoints||t.points;Iu.seedPseudoRandom();var u=function(v){return v.forEach(function(h){h.t=a,h.trace=t}),v},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(v){var h,p=v.pts2,m=Math.max((v.max-v.min)/10,v.q3-v.q1),y=m*1e-9,x=m*n_e,_=[],w=0,b;if(t.jitter){if(m===0)for(w=1,_=new Array(p.length),h=0;h<p.length;h++)_[h]=1;else for(h=0;h<p.length;h++){var M=Math.max(0,h-AJ),k=p[M].v,A=Math.min(p.length-1,h+AJ),S=p[A].v;s!=="all"&&(p[h].v<v.lf?S=Math.min(S,v.lf):k=Math.max(k,v.uf));var D=Math.sqrt(x*(A-M)/(S-k+y))||0;D=Iu.constrain(Math.abs(D),0,1),_.push(D),w=Math.max(D,w)}b=t.jitter*2/(w||1)}for(h=0;h<p.length;h++){var E=p[h],R=E.v,N=t.jitter?b*_[h]*(Iu.pseudoRandom()-.5):0,I=v.pos+o+l*(t.pointpos+N);t.orientation==="h"?(E.y=I,E.x=R):(E.x=I,E.y=R),s==="suspectedoutliers"&&R<v.uo&&R>v.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(a_e.translatePoints,n,i)}function LJ(e,r,t,a){var n=r.val,i=r.pos,l=!!i.rangebreaks,o=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var v=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Iu.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(h){var p=i.c2l(h.pos+o,!0),m=i.l2p(p-f)+s,y=i.l2p(p+c)+s,x=l?(m+y)/2:i.l2p(p)+s,_=n.c2p(h.mean,!0),w=n.c2p(h.mean-h.sd,!0),b=n.c2p(h.mean+h.sd,!0);t.orientation==="h"?jc.select(this).attr("d","M"+_+","+m+"V"+y+(u==="sd"?"m0,0L"+w+","+x+"L"+_+","+m+"L"+b+","+x+"Z":"")):jc.select(this).attr("d","M"+m+","+_+"H"+y+(u==="sd"?"m0,0L"+x+","+w+"L"+m+","+_+"L"+x+","+b+"Z":""))})}SJ.exports={plot:i_e,plotBoxAndWhiskers:kJ,plotPoints:CJ,plotBoxMean:LJ}});var EJ=B((bSe,DJ)=>{"use strict";var g7=Dr(),b7=Ar(),x7=Vr();function l_e(e,r,t){var a=t||g7.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=g7.select(this),l=n[0].trace,o=l.line.width;function s(c,v,h,p){c.style("stroke-width",v+"px").call(b7.stroke,h).call(b7.fill,p)}var u=i.selectAll("path.box");if(l.type==="candlestick")u.each(function(c){if(!c.empty){var v=g7.select(this),h=l[c.dir];s(v,h.line.width,h.line.color,h.fillcolor),v.style("opacity",l.selectedpoints&&!c.selected?.3:1)}});else{s(u,o,l.line.color,l.fillcolor),i.selectAll("path.mean").style({"stroke-width":o,"stroke-dasharray":2*o+"px,"+o+"px"}).call(b7.stroke,l.line.color);var f=i.selectAll("path.point");x7.pointStyle(f,l,e)}})}function o_e(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?x7.selectedPointStyle(n,a):x7.pointStyle(n,a,e)}DJ.exports={style:l_e,styleOnSelect:o_e}});var RJ=B((xSe,PJ)=>{"use strict";PJ.exports={moduleType:"trace",name:"candlestick",basePlotModule:Wl(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:m7(),layoutAttributes:y7(),supplyLayoutDefaults:vJ().supplyLayoutDefaults,crossTraceCalc:yJ().crossTraceCalc,supplyDefaults:xJ(),calc:MJ(),plot:qJ().plot,layerName:"boxlayer",style:EJ().style,hoverPoints:d7().hoverPoints,selectPoints:h7()}});var NJ=B((_Se,zJ)=>{"use strict";zJ.exports=RJ()});var Wa=B((wSe,IJ)=>{"use strict";var FJ=Object.getOwnPropertySymbols,s_e=Object.prototype.hasOwnProperty,u_e=Object.prototype.propertyIsEnumerable;function f_e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function c_e(){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}}IJ.exports=c_e()?Object.assign:function(e,r){for(var t,a=f_e(e),n,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var l in t)s_e.call(t,l)&&(a[l]=t[l]);if(FJ){n=FJ(t);for(var o=0;o<n.length;o++)u_e.call(t,n[o])&&(a[n[o]]=t[n[o]])}}return a}});var Za=B((TSe,OJ)=>{var Cg=Wa();function HJ(){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={}}Cg(HJ.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 _7(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(Or.local.invalidDate||Or.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function kg(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Cg(_7.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(Or.local.invalidDate||Or.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(Or.local.differentCalendars||Or.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?"-":"")+kg(Math.abs(this.year()),4)+"-"+kg(this.month(),2)+"-"+kg(this.day(),2)}});function w7(){this.shortYearCutoff="+10"}Cg(w7.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Or.local.invalidDate||Or.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new _7(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Or.local.invalidYear||Or.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,Or.local.invalidYear||Or.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+kg(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Or.local.invalidYear||Or.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Or.local.invalidMonth||Or.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,Or.local.invalidMonth||Or.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Or.local.invalidYear||Or.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Or.local.invalidDate||Or.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,Or.local.invalidDate||Or.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Or.local.invalidDate||Or.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Or.local.invalidDate||Or.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),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;l<f.minMonth;)i--,l+=f.monthsInYear(i);for(var c=f.monthsInYear(i);l>c-1+f.minMonth;)i++,l-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),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,Or.local.invalidDate||Or.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,Or.local.invalidDate||Or.regionalOptions[""].invalidDate);return Or.instance().fromJD(this.toJD(a)).toJSDate()},fromJSDate:function(e){return this.fromJD(Or.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,a){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(Or.local.differentCalendars||Or.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 T7(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}T7.prototype=new w7;Cg(T7.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,Or.local.invalidYear||Or.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,Or.local.invalidMonth||Or.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,Or.local.invalidDate||Or.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),l=Math.floor((a-i)/30.6001),o=a-i-Math.floor(l*30.6001),s=l-(l>13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Or.local.invalidDate||Or.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 Or=OJ.exports=new HJ;Or.cdate=_7;Or.baseCalendar=w7;Or.calendars.gregorian=T7});var BJ=B(()=>{var M7=Wa(),Sa=Za();M7(Sa.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"});Sa.local=Sa.regionalOptions[""];M7(Sa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});M7(Sa.baseCalendar.prototype,{UNIX_EPOCH:Sa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Sa.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 Sa.local.invalidFormat||Sa.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,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,M){for(var k=1;w+k<e.length&&e.charAt(w+k)===b;)k++;return w+=k-1,Math.floor(k/(M||1))>1},f=function(b,M,k,A){var S=""+M;if(u(b,A))for(;S.length<k;)S="0"+S;return S},c=function(b,M,k,A){return u(b)?A[M]:k[M]},v=this,h=function(b){return typeof i=="function"?i.call(v,b,u("m")):y(f("m",b.month(),2))},p=function(b,M){return M?typeof o=="function"?o.call(v,b):o[b.month()-v.minMonth]:typeof l=="function"?l.call(v,b):l[b.month()-v.minMonth]},m=this.local.digits,y=function(b){return t.localNumbers&&m?m(b):b},x="",_=!1,w=0;w<e.length;w++)if(_)e.charAt(w)==="'"&&!u("'")?_=!1:x+=e.charAt(w);else switch(e.charAt(w)){case"d":x+=y(f("d",r.day(),2));break;case"D":x+=c("D",r.dayOfWeek(),a,n);break;case"o":x+=f("o",r.dayOfYear(),3);break;case"w":x+=f("w",r.weekOfYear(),2);break;case"m":x+=h(r);break;case"M":x+=p(r,u("M"));break;case"y":x+=u("y",2)?r.year():(r.year()%100<10?"0":"")+r.year()%100;break;case"Y":u("Y",2),x+=r.formatYear();break;case"J":x+=r.toJD();break;case"@":x+=(r.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":x+=(r.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":u("'")?x+="'":_=!0;break;default:x+=e.charAt(w)}return x},parseDate:function(e,r,t){if(r==null)throw Sa.local.invalidArguments||Sa.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,l=t.parseMonth||this.local.parseMonth,o=t.monthNumbers||this.local.monthNumbers,s=t.monthNamesShort||this.local.monthNamesShort,u=t.monthNames||this.local.monthNames,f=-1,c=-1,v=-1,h=-1,p=-1,m=!1,y=!1,x=function(N,I){for(var H=1;D+H<e.length&&e.charAt(D+H)===N;)H++;return D+=H-1,Math.floor(H/(I||1))>1},_=function(N,I){var H=x(N,I),O=[2,3,H?4:2,H?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],G=new RegExp("^-?\\d{1,"+O+"}"),Y=r.substring(S).match(G);if(!Y)throw(Sa.local.missingNumberAt||Sa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=Y[0].length,parseInt(Y[0],10)},w=this,b=function(){if(typeof o=="function"){x("m");var N=o.call(w,r.substring(S));return S+=N.length,N}return _("m")},M=function(N,I,H,O){for(var G=x(N,O)?H:I,Y=0;Y<G.length;Y++)if(r.substr(S,G[Y].length).toLowerCase()===G[Y].toLowerCase())return S+=G[Y].length,Y+w.minMonth;throw(Sa.local.unknownNameAt||Sa.regionalOptions[""].unknownNameAt).replace(/\{0\}/,S)},k=function(){if(typeof u=="function"){var N=x("M")?u.call(w,r.substring(S)):s.call(w,r.substring(S));return S+=N.length,N}return M("M",s,u)},A=function(){if(r.charAt(S)!==e.charAt(D))throw(Sa.local.unexpectedLiteralAt||Sa.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,S);S++},S=0,D=0;D<e.length;D++)if(y)e.charAt(D)==="'"&&!x("'")?y=!1:A();else switch(e.charAt(D)){case"d":h=_("d");break;case"D":M("D",n,i);break;case"o":p=_("o");break;case"w":_("w");break;case"m":v=b();break;case"M":v=k();break;case"y":var E=D;m=!x("y",2),D=E,c=_("y",2);break;case"Y":c=_("Y",2);break;case"J":f=_("J")+.5,r.charAt(S)==="."&&(S++,_("J"));break;case"@":f=_("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=_("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":S=r.length;break;case"'":x("'")?A():y=!0;break;default:A()}if(S<r.length)throw Sa.local.unexpectedText||Sa.regionalOptions[""].unexpectedText;if(c===-1?c=this.today().year():c<100&&m&&(c+=a===-1?1900:this.today().year()-this.today().year()%100-(c<=a?0:100)),typeof v=="string"&&(v=l.call(this,c,v)),p>-1){v=1,h=p;for(var R=this.daysInMonth(c,v);h>R;R=this.daysInMonth(c,v))v++,h-=R}return f>-1?this.fromJD(f):this.newDate(c,v,h)},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,l=function(o){try{return i.parseDate(a,o,n)}catch(c){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var YJ=B(()=>{var ss=Za(),v_e=Wa(),A7=ss.instance();function Lg(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Lg.prototype=new ss.baseCalendar;v_e(Lg.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(h_e);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(p_e);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(m_e);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 ss.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 ss.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=us[e-us[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,ss.local.invalidyear),n=fs[a-fs[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=A7.newDate(i,l,o),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=us[e-us[0]],a=t>>13,n=a?12:11;if(r>n)throw ss.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,ss.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=g_e(e,i,t,n);return A7.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=A7.fromJD(e),t=y_e(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(d_e),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(Lg.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),c=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);c!==u&&o.month(c)}return o}});var d_e=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,h_e=/^\d?\d[iI]?/m,p_e=/^闰?十?[一二三四五六七八九]?月/m,m_e=/^闰?十?[一二三四五六七八九]?/m;ss.calendars.chinese=Lg;var us=[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],fs=[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 y_e(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)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=fs[n.year-fs[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=fs[i.year-fs[0]];var c=u>>9&4095,v=u>>5&15,h=u&31,p,m=new Date(c,v-1,h),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var x=us[i.year-us[0]],_;for(_=0;_<13;_++){var w=x&1<<12-_?30:29;if(p<w)break;p-=w}var b=x>>13;return!b||_<b?(i.isIntercalary=!1,i.month=1+_):_===b?(i.isIntercalary=!0,i.month=_):(i.isIntercalary=!1,i.month=_),i.day=1+p,i}function g_e(e,r,t,a,n){var i,l;if(typeof e=="object")l=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)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||{}),l={year:e,month:r,day:t,isIntercalary:f}}var c;c=l.day-1;var v=us[l.year-us[0]],h=v>>13,p;h&&(l.month>h||l.isIntercalary)?p=l.month:p=l.month-1;for(var m=0;m<p;m++){var y=v&1<<12-m?30:29;c+=y}var x=fs[l.year-fs[0]],_=x>>9&4095,w=x>>5&15,b=x&31,M=new Date(_,w-1,b+c);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var GJ=B(()=>{var Hu=Za(),b_e=Wa();function k7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k7.prototype=new Hu.baseCalendar;b_e(k7.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,Hu.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,Hu.local.invalidYear||Hu.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,Hu.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,Hu.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)}});Hu.calendars.coptic=k7});var UJ=B(()=>{var no=Za(),x_e=Wa();function C7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C7.prototype=new no.baseCalendar;x_e(C7.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,no.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,no.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,no.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,no.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,no.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,no.local.invalidDate);return{century:__e[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,no.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 __e={20:"Fruitbat",21:"Anchovy"};no.calendars.discworld=C7});var VJ=B(()=>{var Ou=Za(),w_e=Wa();function L7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L7.prototype=new Ou.baseCalendar;w_e(L7.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,Ou.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,Ou.local.invalidYear||Ou.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,Ou.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,Ou.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)}});Ou.calendars.ethiopian=L7});var XJ=B(()=>{var cs=Za(),T_e=Wa();function S7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S7.prototype=new cs.baseCalendar;T_e(S7.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,cs.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Sg(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cs.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,cs.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,cs.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Sg(this.daysInYear(e),10)===5?30:r===9&&Sg(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,cs.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,cs.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 l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l<r;l++)i+=this.daysInMonth(e,l)}else for(var l=7;l<r;l++)i+=this.daysInMonth(e,l);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 Sg(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 Sg(e,r){return e-r*Math.floor(e/r)}cs.calendars.hebrew=S7});var WJ=B(()=>{var Vd=Za(),M_e=Wa();function q7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q7.prototype=new Vd.baseCalendar;M_e(q7.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,Vd.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,Vd.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,Vd.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)}});Vd.calendars.islamic=q7});var ZJ=B(()=>{var Xd=Za(),A_e=Wa();function D7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D7.prototype=new Xd.baseCalendar;A_e(D7.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,Xd.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,Xd.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,Xd.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),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});Xd.calendars.julian=D7});var $J=B(()=>{var Li=Za(),k_e=Wa();function P7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}P7.prototype=new Li.baseCalendar;k_e(P7.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,Li.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Li.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,Li.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Li.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Li.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Li.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Li.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Li.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Li.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=E7(e+8+340,365);return[Math.floor(r/20)+1,E7(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[JJ(e+20,20),JJ(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Li.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 E7(e,r){return e-r*Math.floor(e/r)}function JJ(e,r){return E7(e-1,r)+1}Li.calendars.mayan=P7});var QJ=B(()=>{var Bu=Za(),C_e=Wa();function R7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R7.prototype=new Bu.baseCalendar;var KJ=Bu.instance("gregorian");C_e(R7.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,Bu.local.invalidYear||Bu.regionalOptions[""].invalidYear);return KJ.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,Bu.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,Bu.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l<a.month();l++)i+=this.daysPerMonth[l-1];return i+KJ.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)}});Bu.calendars.nanakshahi=R7});var jJ=B(()=>{var Yu=Za(),L_e=Wa();function z7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z7.prototype=new Yu.baseCalendar;L_e(z7.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,Yu.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,Yu.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,Yu.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Yu.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Yu.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,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]}});Yu.calendars.nepali=z7});var e$=B(()=>{var e0=Za(),S_e=Wa();function Dg(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function qg(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}Dg.prototype=new e0.baseCalendar;S_e(Dg.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,e0.local.invalidYear);return qg(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,e0.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,e0.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i<e;i++)qg(i)&&n++;else if(e<0)for(var i=e;i<0;i++)qg(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,qg(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)}});e0.calendars.persian=Dg;e0.calendars.jalali=Dg});var r$=B(()=>{var Gu=Za(),q_e=Wa(),Eg=Gu.instance();function N7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N7.prototype=new Gu.baseCalendar;q_e(N7.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,Gu.local.invalidYear),t=this._t2gYear(r.year());return Eg.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Gu.local.invalidYear),n=this._t2gYear(a.year());return Eg.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Gu.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,Gu.local.invalidDate),n=this._t2gYear(a.year());return Eg.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Eg.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)}});Gu.calendars.taiwan=N7});var t$=B(()=>{var Uu=Za(),D_e=Wa(),Pg=Uu.instance();function F7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F7.prototype=new Uu.baseCalendar;D_e(F7.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,Uu.local.invalidYear),t=this._t2gYear(r.year());return Pg.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Uu.local.invalidYear),n=this._t2gYear(a.year());return Pg.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Uu.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,Uu.local.invalidDate),n=this._t2gYear(a.year());return Pg.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Pg.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)}});Uu.calendars.thai=F7});var a$=B(()=>{var Vu=Za(),E_e=Wa();function I7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I7.prototype=new Vu.baseCalendar;E_e(I7.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,Vu.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,Vu.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;i<vs.length;i++){if(vs[i]>a)return vs[n]-vs[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,Vu.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+vs[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;a<vs.length&&!(vs[a]>r);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-vs[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=Vu.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=Vu.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Vu.calendars.ummalqura=I7;var vs=[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 i$=B((eqe,n$)=>{"use strict";n$.exports=Za();BJ();YJ();GJ();UJ();VJ();XJ();WJ();ZJ();$J();QJ();jJ();e$();r$();t$();a$()});var v$=B((rqe,c$)=>{"use strict";var o$=i$(),Wd=Le(),s$=Dt(),P_e=s$.EPOCHJD,R_e=s$.ONEDAY,B7={valType:"enumerated",values:Wd.sortObjectKeys(o$.calendars),editType:"calc",dflt:"gregorian"},u$=function(e,r,t,a){var n={};return n[t]=B7,Wd.coerce(e,r,n,t,a)},z_e=function(e,r,t,a){for(var n=0;n<t.length;n++)u$(e,r,t[n]+"calendar",a.calendar)},N_e={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"},F_e={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"},I_e={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"]},Rg="##",H_e={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:Rg,w:Rg,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function O_e(e,r,t){for(var a=Math.floor((r+.05)/R_e)+P_e,n=f$(t).fromJD(a),i=0,l,o,s,u,f;(i=e.indexOf("%",i))!==-1;)l=e.charAt(i+1),l==="0"||l==="-"||l==="_"?(s=3,o=e.charAt(i+2),l==="_"&&(l="-")):(o=l,l="0",s=2),u=H_e[o],u?(u===Rg?f=Rg:f=n.formatDate(u[l]),e=e.slice(0,i)+f+e.slice(i+s),i+=f.length):i+=s;return e}var l$={};function f$(e){var r=l$[e];return r||(r=l$[e]=o$.instance(e),r)}function Zd(e){return Wd.extendFlat({},B7,{description:e})}function Y7(e){return"Sets the calendar system to use with `"+e+"` date data."}var O7={xcalendar:Zd(Y7("x"))},Dl=Wd.extendFlat({},O7,{ycalendar:Zd(Y7("y"))}),H7=Wd.extendFlat({},Dl,{zcalendar:Zd(Y7("z"))}),r0=Zd(["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(" "));c$.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:Dl,bar:Dl,box:Dl,heatmap:Dl,contour:Dl,histogram:Dl,histogram2d:Dl,histogram2dcontour:Dl,scatter3d:H7,surface:H7,mesh3d:H7,scattergl:Dl,ohlc:O7,candlestick:O7},layout:{calendar:Zd(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:r0},yaxis:{calendar:r0},scene:{xaxis:{calendar:r0},yaxis:{calendar:r0},zaxis:{calendar:r0}},polar:{radialaxis:{calendar:r0}}}},layoutAttributes:B7,handleDefaults:u$,handleTraceDefaults:z_e,CANONICAL_SUNDAY:F_e,CANONICAL_TICK:N_e,DFLTRANGE:I_e,getCal:f$,worldCalFmt:O_e}});var h$=B((tqe,d$)=>{"use strict";d$.exports=v$()});var B_e=B((aqe,m$)=>{var p$=_Y();p$.register([TG(),hU(),$U(),FV(),kX(),$X(),LZ(),eJ(),NJ(),h$()]);m$.exports=p$});return B_e();})();
/*! 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;
}));